diff --git a/sources_non_forked/coc.nvim/Readme.md b/sources_non_forked/coc.nvim/Readme.md index 59cb8e1f..e790abdd 100644 --- a/sources_non_forked/coc.nvim/Readme.md +++ b/sources_non_forked/coc.nvim/Readme.md @@ -14,38 +14,22 @@ --- -Gif +Gif -_True snippet and additional text editing support_ +_Custom popup menu with snippet support_ ## Why? -- 🚀 **Fast**: [instant increment completion](https://github.com/neoclide/coc.nvim/wiki/Completion-with-sources), increment buffer sync using buffer update events. +- 🚀 **Fast**: separated NodeJS process that not block your vim most of the time. - 💎 **Reliable**: typed language, tested with CI. -- 🌟 **Featured**: [full LSP support](https://github.com/neoclide/coc.nvim/wiki/Language-servers#supported-features) +- 🌟 **Featured**: all LSP 3.16 features are supported, see `:h coc-lsp`. - ❤️ **Flexible**: [configured like VSCode](https://github.com/neoclide/coc.nvim/wiki/Using-the-configuration-file), [extensions work like in VSCode](https://github.com/neoclide/coc.nvim/wiki/Using-coc-extensions) -**Gold Sponsors** - - - - - -**Silver Sponsors** - - - - - -**Bronze Sponsors** - - - - - ## Quick Start -Install [nodejs](https://nodejs.org/en/download/) >= 12.12: +Make sure use vim >= 8.1.1719 or neovim >= 0.4.0. + +Install [nodejs](https://nodejs.org/en/download/) >= 14.14: ```bash curl -sL install-node.vercel.app/lts | bash @@ -110,44 +94,31 @@ possible to avoid conflict with your other plugins. command like`:verbose imap ` to make sure that your keymap has taken effect. ```vim -" Set internal encoding of vim, not needed on neovim, since coc.nvim using some -" unicode characters in the file autoload/float.vim -set encoding=utf-8 - -" TextEdit might fail if hidden is not set. -set hidden - " Some servers have issues with backup files, see #649. set nobackup set nowritebackup -" Give more space for displaying messages. -set cmdheight=2 - " Having longer updatetime (default is 4000 ms = 4 s) leads to noticeable " delays and poor user experience. set updatetime=300 -" Don't pass messages to |ins-completion-menu|. -set shortmess+=c - " Always show the signcolumn, otherwise it would shift the text each time " diagnostics appear/become resolved. -if has("nvim-0.5.0") || has("patch-8.1.1564") - " Recently vim can merge signcolumn and number column into one - set signcolumn=number -else - set signcolumn=yes -endif +set signcolumn=yes " Use tab for trigger completion with characters ahead and navigate. " NOTE: Use command ':verbose imap ' to make sure tab is not mapped by " other plugin before putting this into your config. inoremap - \ pumvisible() ? "\" : - \ CheckBackspace() ? "\" : + \ coc#pum#visible() ? coc#pum#next(1): + \ CheckBackspace() ? "\" : \ coc#refresh() -inoremap pumvisible() ? "\" : "\" +inoremap coc#pum#visible() ? coc#pum#prev(1) : "\" + +" Make to accept selected completion item or notify coc.nvim to format +" u breaks current undo, please make your own choice. +inoremap coc#pum#visible() ? coc#pum#confirm() + \: "\u\\=coc#on_enter()\" function! CheckBackspace() abort let col = col('.') - 1 @@ -161,11 +132,6 @@ else inoremap coc#refresh() endif -" Make auto-select the first completion item and notify coc.nvim to -" format on enter, could be remapped by other vim plugin -inoremap pumvisible() ? coc#_select_confirm() - \: "\u\\=coc#on_enter()\" - " Use `[g` and `]g` to navigate diagnostics " Use `:CocDiagnostics` to get all diagnostics of current buffer in location list. nmap [g (coc-diagnostic-prev) @@ -625,6 +591,10 @@ Try these steps when you have problem with coc.nvim.
Rammiah

🐛 +
Alisue

🐛 +
bigshans

📖 +
Robert Boyd III

🐛 +
Yuki Iwanaga

💻 diff --git a/sources_non_forked/coc.nvim/autoload/coc.vim b/sources_non_forked/coc.nvim/autoload/coc.vim index ba25c5f2..d5cdaf69 100644 --- a/sources_non_forked/coc.nvim/autoload/coc.vim +++ b/sources_non_forked/coc.nvim/autoload/coc.vim @@ -9,7 +9,6 @@ let s:is_vim = !has('nvim') let s:error_sign = get(g:, 'coc_status_error_sign', has('mac') ? '❌ ' : 'E') let s:warning_sign = get(g:, 'coc_status_warning_sign', has('mac') ? '⚠️ ' : 'W') let s:select_api = exists('*nvim_select_popupmenu_item') -let s:complete_info_api = exists('*complete_info') let s:callbacks = {} let s:hide_pum = has('nvim-0.6.1') || has('patch-8.2.3389') @@ -33,10 +32,6 @@ function! coc#add_command(id, cmd, ...) call coc#rpc#notify('addCommand', [config]) endfunction -function! coc#refresh() abort - return "\=coc#start()\" -endfunction - function! coc#on_enter() call coc#rpc#notify('CocAutocmd', ['Enter', bufnr('%')]) return '' @@ -46,7 +41,6 @@ function! coc#_insert_key(method, key, ...) abort let prefix = '' if get(a:, 1, 1) if pumvisible() - let g:coc_hide_pum = 1 if s:hide_pum let prefix = "\\" else @@ -86,77 +80,12 @@ function! coc#_do_complete(start, items, preselect, changedtick) \ 'preselect': a:preselect \} if mode() =~# 'i' - if s:is_vim - " when the completeopt has longest, the input would be removed sometimes when not use feedkeys! - call feedkeys("\CocRefresh", 'i') - else - call coc#_complete() - endif - endif -endfunction - -function! coc#_select_confirm() abort - if !exists('*complete_info') - throw 'coc#_select_confirm requires complete_info function to work' - endif - let selected = complete_info()['selected'] - if selected != -1 - return "\" - elseif pumvisible() - return "\\" - endif - return '' -endfunction - -function! coc#_selected() - if !pumvisible() | return 0 | endif - return coc#rpc#request('hasSelected', []) -endfunction - -" Deprecated -function! coc#_hide() abort - if pumvisible() - call feedkeys("\", 'in') + call coc#_complete() endif endfunction function! coc#_cancel(...) - " hack for close pum - " Use of could cause bad insert when cursor just moved. - let g:coc#_context = {'start': 0, 'preselect': -1,'candidates': []} - if pumvisible() - let g:coc_hide_pum = 1 - if get(a:, 1, 0) - " Avoid delayed CompleteDone cancel new completion - let g:coc_disable_complete_done = 1 - endif - if s:hide_pum - call feedkeys("\\", 'in') - else - let g:coc_disable_space_report = 1 - call feedkeys("\\", 'in') - endif - endif - for winid in coc#float#get_float_win_list() - if getwinvar(winid, 'kind', '') ==# 'pum' - call coc#float#close(winid) - endif - endfor - let opt = get(a:, 2, '') - if !empty(opt) - execute 'noa set completeopt='.opt - endif -endfunction - -function! coc#_select() abort - if !pumvisible() | return | endif - call feedkeys("\", 'in') -endfunction - -function! coc#start(...) - let opt = coc#util#get_complete_option() - call CocActionAsync('startCompletion', extend(opt, get(a:, 1, {}))) - return '' + call coc#pum#close() endfunction " used for statusline @@ -217,10 +146,22 @@ function! coc#do_notify(id, method, result) endif endfunction +function! coc#start(...) + let opt = coc#util#get_complete_option() + call CocActionAsync('startCompletion', extend(opt, get(a:, 1, {}))) + return '' +endfunction + +function! coc#refresh() abort + return "\=coc#start()\" +endfunction + +function! coc#_select_confirm() abort + call timer_start(10, { -> coc#pum#select_confirm()}) + return s:is_vim || has('nvim-0.5.0') ? "\" : "\\" +endfunction + function! coc#complete_indent() abort - if has('patch-8.2.3100') - return 0 - endif let curpos = getcurpos() let indent_len = len(matchstr(getline('.'), '^\s*')) let startofline = &startofline @@ -234,11 +175,9 @@ function! coc#complete_indent() abort let curpos[2] += shift let curpos[4] += shift call cursor(curpos[1:]) - if shift != 0 + if shift != 0 if s:is_vim - doautocmd TextChangedP + call timer_start(0, { -> execute('redraw')}) endif - return 1 endif - return 0 endfunction diff --git a/sources_non_forked/coc.nvim/autoload/coc/compat.vim b/sources_non_forked/coc.nvim/autoload/coc/compat.vim index 9353c600..eb88e290 100644 --- a/sources_non_forked/coc.nvim/autoload/coc/compat.vim +++ b/sources_non_forked/coc.nvim/autoload/coc/compat.vim @@ -98,13 +98,7 @@ function! coc#compat#matchaddpos(group, pos, priority, winid) abort call matchaddpos(a:group, a:pos, a:priority, -1, {'window': a:winid}) endif else - if has('nvim-0.4.0') - call matchaddpos(a:group, a:pos, a:priority, -1, {'window': a:winid}) - elseif exists('*nvim_set_current_win') - noa call nvim_set_current_win(a:winid) - call matchaddpos(a:group, a:pos, a:priority, -1) - noa call nvim_set_current_win(curr) - endif + call matchaddpos(a:group, a:pos, a:priority, -1, {'window': a:winid}) endif endif endfunction @@ -129,25 +123,9 @@ endfunction " hlGroup, pos, priority function! coc#compat#matchaddgroups(winid, groups) abort - " add by winid - if has('patch-8.1.0218') || has('nvim-0.4.0') - for group in a:groups - call matchaddpos(group['hlGroup'], [group['pos']], group['priority'], -1, {'window': a:winid}) - endfor - return - endif - let curr = win_getid() - if curr == a:winid - for group in a:groups - call matchaddpos(group['hlGroup'], [group['pos']], group['priority'], -1) - endfor - elseif exists('*nvim_set_current_win') - noa call nvim_set_current_win(a:winid) - for group in a:groups - call matchaddpos(group['hlGroup'], [group['pos']], group['priority'], -1) - endfor - noa call nvim_set_current_win(curr) - endif + for group in a:groups + call matchaddpos(group['hlGroup'], [group['pos']], group['priority'], -1, {'window': a:winid}) + endfor endfunction function! coc#compat#del_var(name) abort diff --git a/sources_non_forked/coc.nvim/autoload/coc/dialog.vim b/sources_non_forked/coc.nvim/autoload/coc/dialog.vim index e3eb6c30..2a774b84 100644 --- a/sources_non_forked/coc.nvim/autoload/coc/dialog.vim +++ b/sources_non_forked/coc.nvim/autoload/coc/dialog.vim @@ -4,66 +4,70 @@ let s:root = expand(':h:h:h') let s:prompt_win_bufnr = 0 let s:list_win_bufnr = 0 let s:prompt_win_width = get(g:, 'coc_prompt_win_width', 32) -let s:float_supported = exists('*nvim_open_win') || has('patch-8.1.1719') let s:frames = ['· ', '·· ', '···', ' ··', ' ·', ' '] let s:sign_group = 'PopUpCocDialog' +let s:detail_bufnr = 0 " Float window aside pum -function! coc#dialog#create_pum_float(winid, bufnr, lines, config) abort - if !pumvisible() || !s:float_supported - return v:null +function! coc#dialog#create_pum_float(lines, config) abort + let winid = coc#float#get_float_by_kind('pumdetail') + if empty(a:lines) || !coc#pum#visible() + if winid + call coc#float#close(winid) + endif + return endif - let pumbounding = a:config['pumbounding'] - let pw = pumbounding['width'] + get(pumbounding, 'scrollbar', 0) + let pumbounding = coc#pum#info() + let border = get(a:config, 'border', []) + let pw = pumbounding['width'] + (pumbounding['border'] ? 0 : get(pumbounding, 'scrollbar', 0)) let rp = &columns - pumbounding['col'] - pw let showRight = pumbounding['col'] > rp ? 0 : 1 let maxWidth = showRight ? coc#math#min(rp - 1, a:config['maxWidth']) : coc#math#min(pumbounding['col'] - 1, a:config['maxWidth']) - let border = get(a:config, 'border', []) let bh = get(border, 0 ,0) + get(border, 2, 0) let maxHeight = &lines - pumbounding['row'] - &cmdheight - 1 - bh if maxWidth <= 2 || maxHeight < 1 return v:null endif - let ch = 0 let width = 0 for line in a:lines let dw = max([1, strdisplaywidth(line)]) let width = max([width, dw + 2]) - let ch += float2nr(ceil(str2float(string(dw))/(maxWidth - 2))) endfor let width = float2nr(coc#math#min(maxWidth, width)) + let ch = coc#string#content_height(a:lines, width - 2) let height = float2nr(coc#math#min(maxHeight, ch)) let lines = map(a:lines, {_, s -> s =~# '^─' ? repeat('─', width - 2 + (s:is_vim && ch > height ? -1 : 0)) : s}) let opts = { \ 'lines': lines, \ 'highlights': get(a:config, 'highlights', []), \ 'relative': 'editor', - \ 'col': showRight ? pumbounding['col'] + pw : pumbounding['col'] - width - 1, + \ 'col': showRight ? pumbounding['col'] + pw : pumbounding['col'] - width, \ 'row': pumbounding['row'], \ 'height': height, \ 'width': width - 2 + (s:is_vim && ch > height ? -1 : 0), + \ 'scrollinside': showRight ? 0 : 1, \ 'codes': get(a:config, 'codes', []), \ } - for key in ['border', 'highlight', 'borderhighlight', 'winblend', 'focusable', 'shadow'] + for key in ['border', 'highlight', 'borderhighlight', 'winblend', 'focusable', 'shadow', 'rounded'] if has_key(a:config, key) let opts[key] = a:config[key] endif endfor - call s:close_auto_hide_wins(a:winid) - let res = coc#float#create_float_win(a:winid, a:bufnr, opts) - if empty(res) - return v:null + call s:close_auto_hide_wins(winid) + let result = coc#float#create_float_win(winid, s:detail_bufnr, opts) + if empty(result) + return endif - call setwinvar(res[0], 'kind', 'pum') - if has('nvim') - call coc#float#nvim_scrollbar(res[0]) + let s:detail_bufnr = result[1] + call setwinvar(result[0], 'kind', 'pumdetail') + if !s:is_vim + call coc#float#nvim_scrollbar(result[0]) endif - return res endfunction " Float window below/above cursor function! coc#dialog#create_cursor_float(winid, bufnr, lines, config) abort - if !s:float_supported || coc#prompt#activated() + if coc#prompt#activated() return v:null endif let pumAlignTop = get(a:config, 'pumAlignTop', 0) @@ -86,7 +90,7 @@ function! coc#dialog#create_cursor_float(winid, bufnr, lines, config) abort if empty(dimension) return v:null endif - if pumvisible() && ((pumAlignTop && dimension['row'] <0)|| (!pumAlignTop && dimension['row'] > 0)) + if coc#pum#visible() && ((pumAlignTop && dimension['row'] <0)|| (!pumAlignTop && dimension['row'] > 0)) return v:null endif let width = dimension['width'] @@ -248,7 +252,6 @@ function! coc#dialog#create_menu(lines, config) abort return endif let s:prompt_win_bufnr = ids[1] - call s:place_sign(s:prompt_win_bufnr, 1) call coc#dialog#set_cursor(ids[0], ids[1], contentCount + 1) redraw if has('nvim') @@ -284,7 +287,7 @@ function! coc#dialog#create_dialog(lines, config) abort return endif if get(a:config, 'cursorline', 0) - call s:place_sign(bufnr, 1) + call coc#dialog#place_sign(bufnr, 1) endif if has('nvim') redraw @@ -324,7 +327,7 @@ function! coc#dialog#prompt_confirm(title, cb) abort \ 'focusable': v:false, \ 'relative': 'editor', \ 'highlight': 'Normal', - \ 'borderhighlight': ['MoreMsg'], + \ 'borderhighlight': 'MoreMsg', \ 'style': 'minimal', \ 'lines': [text], \ }) @@ -425,14 +428,13 @@ function! coc#dialog#get_config_cursor(lines, config) abort return v:null endif let maxHeight = coc#math#min(get(a:config, 'maxHeight', vh), vh) - let ch = 0 let width = coc#math#min(40, strdisplaywidth(title)) + 3 for line in a:lines let dw = max([1, strdisplaywidth(line)]) let width = max([width, dw + 2]) - let ch += float2nr(ceil(str2float(string(dw))/(maxWidth - 2))) endfor let width = coc#math#min(maxWidth, width) + let ch = coc#string#content_height(a:lines, width - 2) let [lineIdx, colIdx] = coc#cursor#screen_pos() " How much we should move left let offsetX = coc#math#min(get(a:config, 'offsetX', 0), colIdx) @@ -590,7 +592,14 @@ function! coc#dialog#set_cursor(winid, bufnr, line) abort else call nvim_win_set_cursor(a:winid, [a:line, 0]) endif - call s:place_sign(a:bufnr, a:line) + call coc#dialog#place_sign(a:bufnr, a:line) +endfunction + +function! coc#dialog#place_sign(bufnr, line) abort + call sign_unplace(s:sign_group, { 'buffer': a:bufnr }) + if a:line > 0 + call sign_place(6, s:sign_group, 'CocCurrentLine', a:bufnr, {'lnum': a:line}) + endif endfunction " Could be center(with optional marginTop) or cursor @@ -673,10 +682,3 @@ function! s:change_loading_buf(bufnr, idx) abort call timer_start(100, { -> s:change_loading_buf(a:bufnr, idx)}) endif endfunction - -function! s:place_sign(bufnr, line) abort - call sign_unplace(s:sign_group, { 'buffer': a:bufnr }) - if a:line > 0 - call sign_place(6, s:sign_group, 'CocCurrentLine', a:bufnr, {'lnum': a:line}) - endif -endfunction diff --git a/sources_non_forked/coc.nvim/autoload/coc/float.vim b/sources_non_forked/coc.nvim/autoload/coc/float.vim index 62d3af87..977f1305 100644 --- a/sources_non_forked/coc.nvim/autoload/coc/float.vim +++ b/sources_non_forked/coc.nvim/autoload/coc/float.vim @@ -102,7 +102,7 @@ endfunction " - cursorline: (optional) enable cursorline when is 1. " - autohide: (optional) window should be closed on CursorMoved when is 1. " - highlight: (optional) highlight of window, default to 'CocFloating' -" - borderhighlight: (optional) should be array for border highlights, +" - borderhighlight: (optional) should be array or string for border highlights, " highlight all borders with first value. " - close: (optional) show close button when is 1. " - highlights: (optional) highlight items. @@ -114,9 +114,18 @@ endfunction " - scrollinside: (optional) neovim only, create scrollbar inside window. " - rounded: (optional) use rounded borderchars, ignored when borderchars exists. " - borderchars: (optional) borderchars, should be length of 8 +" - nopad: (optional) not add pad when 1 +" - index: (optional) line index function! coc#float#create_float_win(winid, bufnr, config) abort let lines = get(a:config, 'lines', v:null) - let bufnr = coc#float#create_buf(a:bufnr, lines, 'hide') + let bufnr = a:bufnr + try + let bufnr = coc#float#create_buf(a:bufnr, lines, 'hide') + catch /E523:/ + " happens when using getchar() #3921 + return [] + endtry + let lnum = max([1, get(a:config, 'index', 0) + 1]) " use exists if a:winid && coc#float#valid(a:winid) if s:is_vim @@ -129,21 +138,29 @@ function! coc#float#create_float_win(winid, bufnr, config) abort \ 'minheight': a:config['height'], \ 'maxwidth': a:config['width'], \ 'maxheight': a:config['height'], - \ 'cursorline': get(a:config, 'cursorline', 0), \ 'title': get(a:config, 'title', ''), + \ 'highlight': get(a:config, 'highlight', 'CocFloating'), + \ 'borderhighlight': [s:get_borderhighlight(a:config)], \ } if !s:empty_border(get(a:config, 'border', [])) let opts['border'] = a:config['border'] endif call popup_setoptions(a:winid, opts) + call win_execute(a:winid, 'exe '.lnum) call coc#float#vim_buttons(a:winid, a:config) call s:add_highlights(a:winid, a:config, 0) return [a:winid, winbufnr(a:winid)] else let config = s:convert_config_nvim(a:config, 0) + let hlgroup = get(a:config, 'highlight', 'CocFloating') + let current = getwinvar(a:winid, '&winhl', '') + let winhl = coc#util#merge_winhl(current, [['Normal', hlgroup], ['NormalNC', hlgroup], ['FoldColumn', hlgroup]]) + if winhl !=# current + call setwinvar(a:winid, '&winhl', winhl) + endif call nvim_win_set_buf(a:winid, bufnr) call nvim_win_set_config(a:winid, config) - call nvim_win_set_cursor(a:winid, [1, 0]) + call nvim_win_set_cursor(a:winid, [lnum, 0]) call coc#float#nvim_create_related(a:winid, config, a:config) call s:add_highlights(a:winid, a:config, 0) return [a:winid, bufnr] @@ -155,34 +172,31 @@ function! coc#float#create_float_win(winid, bufnr, config) abort let title = get(a:config, 'title', '') let buttons = get(a:config, 'buttons', []) let hlgroup = get(a:config, 'highlight', 'CocFloating') + let nopad = get(a:config, 'nopad', 0) let border = s:empty_border(get(a:config, 'border', [])) ? [0, 0, 0, 0] : a:config['border'] let opts = { \ 'title': title, \ 'line': line, \ 'col': col, \ 'fixed': 1, - \ 'padding': [0, !border[1], 0, !border[3]], + \ 'padding': [0, !nopad && !border[1], 0, !nopad && !border[3]], \ 'borderchars': s:get_borderchars(a:config), \ 'highlight': hlgroup, - \ 'cursorline': get(a:config, 'cursorline', 0), \ 'minwidth': a:config['width'], \ 'minheight': a:config['height'], \ 'maxwidth': a:config['width'], \ 'maxheight': a:config['height'], \ 'close': get(a:config, 'close', 0) ? 'button' : 'none', \ 'border': border, - \ 'callback': { -> coc#float#on_close(winid)} + \ 'callback': { -> coc#float#on_close(winid)}, + \ 'borderhighlight': [s:get_borderhighlight(a:config)], \ } - if !empty(get(a:config, 'borderhighlight', v:null)) - let borderhighlight = a:config['borderhighlight'] - let opts['borderhighlight'] = type(borderhighlight) == 3 - \ ? map(borderhighlight, 'coc#highlight#compose_hlgroup(v:val,"'.hlgroup.'")') - \ : [coc#highlight#compose_hlgroup(borderhighlight, hlgroup)] - endif let winid = popup_create(bufnr, opts) if !s:popup_list_api call add(s:popup_list, winid) endif + call s:set_float_defaults(winid, a:config) + call win_execute(winid, 'exe '.lnum) call coc#float#vim_buttons(winid, a:config) else let config = s:convert_config_nvim(a:config, 1) @@ -194,31 +208,12 @@ function! coc#float#create_float_win(winid, bufnr, config) abort if winid is 0 return [] endif - let hlgroup = get(a:config, 'highlight', 'CocFloating') - call setwinvar(winid, '&winhl', 'Normal:'.hlgroup.',NormalNC:'.hlgroup.',FoldColumn:'.hlgroup) - call setwinvar(winid, 'border', get(a:config, 'border', [])) - call setwinvar(winid, 'scrollinside', get(a:config, 'scrollinside', 0)) - call setwinvar(winid, '&foldcolumn', s:nvim_enable_foldcolumn(get(a:config, 'border', v:null))) - call setwinvar(winid, '&cursorline', get(a:config, 'cursorline', 0)) " cursorline highlight not work on old neovim - call s:nvim_set_defaults(winid) - call nvim_win_set_cursor(winid, [1, 0]) + call s:set_float_defaults(winid, a:config) + call nvim_win_set_cursor(winid, [lnum, 0]) call coc#float#nvim_create_related(winid, config, a:config) call coc#float#nvim_set_winblend(winid, get(a:config, 'winblend', v:null)) endif - if get(a:config, 'autohide', 0) - call setwinvar(winid, 'autohide', 1) - endif - if s:is_vim || has('nvim-0.5.0') - call setwinvar(winid, '&scrolloff', 0) - endif - if has('nvim-0.6.0') || has("patch-8.1.2281") - call setwinvar(winid, '&showbreak', 'NONE') - endif - call setwinvar(winid, 'float', 1) - call setwinvar(winid, '&wrap', !get(a:config, 'cursorline', 0)) - call setwinvar(winid, '&linebreak', 1) - call setwinvar(winid, '&conceallevel', 0) call s:add_highlights(winid, a:config, 1) let g:coc_last_float_win = winid call coc#util#do_autocmd('CocOpenFloat') @@ -229,11 +224,9 @@ function! coc#float#nvim_create_related(winid, config, opts) abort let related = getwinvar(a:winid, 'related', []) let exists = !empty(related) let border = get(a:opts, 'border', []) - let highlights = get(a:opts, 'borderhighlight', []) - let borderhighlight = type(highlights) == 1 ? highlights : get(highlights, 0, 'CocFloating') - let borderhighlight = coc#highlight#compose_hlgroup(borderhighlight, get(a:opts, 'highlight', 'CocFloating')) + let borderhighlight = s:get_borderhighlight(a:opts) let buttons = get(a:opts, 'buttons', []) - let pad = empty(border) || get(border, 1, 0) == 0 + let pad = !get(a:opts, 'nopad', 0) && (empty(border) || get(border, 1, 0) == 0) let shadow = get(a:opts, 'shadow', 0) if get(a:opts, 'close', 0) call coc#float#nvim_close_btn(a:config, a:winid, border, borderhighlight, related) @@ -284,11 +277,11 @@ function! coc#float#nvim_border_win(config, borderchars, winid, border, title, h endif if winid call nvim_win_set_config(winid, opt) - call setwinvar(winid, '&winhl', 'Normal:'.a:hlgroup.',NormalNC:'.a:hlgroup) + call setwinvar(winid, '&winhl', 'Normal:'.a:hlgroup.',NormalNC:'.a:hlgroup.',Search:') else noa let winid = nvim_open_win(bufnr, 0, opt) call setwinvar(winid, 'delta', -1) - let winhl = 'Normal:'.a:hlgroup.',NormalNC:'.a:hlgroup + let winhl = 'Normal:'.a:hlgroup.',NormalNC:'.a:hlgroup.',Search:' call s:nvim_add_related(winid, a:winid, 'border', winhl, a:related) endif endfunction @@ -432,7 +425,7 @@ endfunction " Create or refresh scrollbar for winid " Need called on create, config, buffer change, scrolled function! coc#float#nvim_scrollbar(winid) abort - if !has('nvim-0.4.0') + if s:is_vim return endif let winids = nvim_tabpage_list_wins(nvim_get_current_tabpage()) @@ -590,6 +583,25 @@ function! coc#float#get_float_win_list(...) abort return [] endfunction +function! coc#float#get_float_by_kind(kind) abort + if s:is_vim + if s:popup_list_api + return get(filter(popup_list(), 'popup_getpos(v:val)["visible"] && getwinvar(v:val, "kind", "") ==# "'.a:kind.'"'), 0, 0) + endif + return get(filter(s:popup_list, 's:popup_visible(v:val) && getwinvar(v:val, "kind", "") ==# "'.a:kind.'"'), 0, 0) + else + let res = [] + for i in range(1, winnr('$')) + let winid = win_getid(i) + let config = nvim_win_get_config(winid) + if !empty(config['relative']) && getwinvar(winid, 'kind', '') ==# a:kind + return winid + endif + endfor + endif + return 0 +endfunction + " Check if a float window is scrollable function! coc#float#scrollable(winid) abort let bufnr = winbufnr(a:winid) @@ -625,16 +637,12 @@ function! coc#float#scroll(forward, ...) throw 'coc#float#scroll() requires nvim >= 0.4.0 or vim >= 8.2.0750' endif let amount = get(a:, 1, 0) - let winids = filter(coc#float#get_float_win_list(), 'coc#float#scrollable(v:val)') + let winids = filter(coc#float#get_float_win_list(), 'coc#float#scrollable(v:val) && getwinvar(v:val,"kind","") !=# "pum"') if empty(winids) - return '' + return mode() =~ '^i' || mode() ==# 'v' ? "" : "\" endif for winid in winids - if s:is_vim - call coc#float#scroll_win(winid, a:forward, amount) - else - call timer_start(0, { -> coc#float#scroll_win(winid, a:forward, amount)}) - endif + call s:scroll_win(winid, a:forward, amount) endfor return mode() =~ '^i' || mode() ==# 'v' ? "" : "\" endfunction @@ -737,11 +745,11 @@ function! coc#float#check_related() abort let ids = coc#float#get_float_win_list(1) for id in ids let target = getwinvar(id, 'target_winid', 0) - if (target && index(ids, target) == -1) || getwinvar(id, 'kind', '') == 'pum' + if target && index(ids, target) == -1 call add(invalids, id) endif endfor - if !s:popup_list_api + if s:is_vim && !s:popup_list_api let s:popup_list = filter(ids, "index(invalids, v:val) == -1") endif for id in invalids @@ -988,7 +996,8 @@ function! coc#float#nvim_scroll_adjust(winid) abort for winid in winids if nvim_win_is_valid(winid) if coc#window#get_var(winid, 'kind', '') != 'close' - let [row, column] = nvim_win_get_position(winid) + let config = nvim_win_get_config(winid) + let [row, column] = [config.row, config.col] call nvim_win_set_config(winid, { \ 'row': row, \ 'col': column - 1, @@ -1041,7 +1050,7 @@ function! s:convert_config_nvim(config, create) abort endif let result['width'] = float2nr(result['width'] + 1 - get(border,3, 0)) else - let result['width'] = float2nr(result['width'] + 1) + let result['width'] = float2nr(result['width'] + (get(a:config, 'nopad', 0) ? 0 : 1)) endif if has('nvim-0.5.1') && a:create let result['noautocmd'] = v:true @@ -1300,16 +1309,45 @@ function! s:win_setview(winid, topline, lnum) abort endif endfunction -function! s:nvim_set_defaults(winid) abort - call setwinvar(a:winid, '&signcolumn', 'auto') +function! s:set_float_defaults(winid, config) abort + if !s:is_vim + let hlgroup = get(a:config, 'highlight', 'CocFloating') + call setwinvar(a:winid, '&winhl', 'Normal:'.hlgroup.',NormalNC:'.hlgroup.',FoldColumn:'.hlgroup.',Search:') + call setwinvar(a:winid, 'border', get(a:config, 'border', [])) + call setwinvar(a:winid, 'scrollinside', get(a:config, 'scrollinside', 0)) + if !get(a:config, 'nopad', 0) + call setwinvar(a:winid, '&foldcolumn', s:nvim_enable_foldcolumn(get(a:config, 'border', v:null))) + endif + call setwinvar(a:winid, '&signcolumn', 'no') + call setwinvar(a:winid, '&cursorcolumn', 0) + else + call setwinvar(a:winid, '&foldcolumn', 0) + endif + if !s:is_vim || !has("patch-8.2.3100") + call setwinvar(a:winid, '&number', 0) + call setwinvar(a:winid, '&relativenumber', 0) + call setwinvar(a:winid, '&cursorline', 0) + endif + call setwinvar(a:winid, '&foldenable', 0) + call setwinvar(a:winid, '&colorcolumn', '') + call setwinvar(a:winid, '&spell', 0) + call setwinvar(a:winid, '&linebreak', 1) + call setwinvar(a:winid, '&conceallevel', 0) call setwinvar(a:winid, '&list', 0) - call setwinvar(a:winid, '&number', 0) - call setwinvar(a:winid, '&relativenumber', 0) - call setwinvar(a:winid, '&cursorcolumn', 0) - call setwinvar(a:winid, '&colorcolumn', 0) + call setwinvar(a:winid, '&wrap', !get(a:config, 'cursorline', 0)) + if s:is_vim || has('nvim-0.5.0') + call setwinvar(a:winid, '&scrolloff', 0) + endif + if has('nvim-0.6.0') || has("patch-8.1.2281") + call setwinvar(a:winid, '&showbreak', 'NONE') + endif if exists('*win_execute') call win_execute(a:winid, 'setl fillchars+=eob:\ ') endif + if get(a:config, 'autohide', 0) + call setwinvar(a:winid, 'autohide', 1) + endif + call setwinvar(a:winid, 'float', 1) endfunction function! s:nvim_add_related(winid, target, kind, winhl, related) abort @@ -1372,3 +1410,21 @@ function! s:get_borderchars(config) abort endif return get(a:config, 'rounded', 0) ? s:rounded_borderchars : s:borderchars endfunction + +function! s:scroll_win(winid, forward, amount) abort + if s:is_vim + call coc#float#scroll_win(a:winid, a:forward, a:amount) + else + call timer_start(0, { -> coc#float#scroll_win(a:winid, a:forward, a:amount)}) + endif +endfunction + +function! s:get_borderhighlight(config) abort + let hlgroup = get(a:config, 'highlight', 'CocFloating') + let borderhighlight = get(a:config, 'borderhighlight', v:null) + if empty(borderhighlight) + return hlgroup + endif + let highlight = type(borderhighlight) == 3 ? borderhighlight[0] : borderhighlight + return coc#highlight#compose_hlgroup(highlight, hlgroup) +endfunction diff --git a/sources_non_forked/coc.nvim/autoload/coc/highlight.vim b/sources_non_forked/coc.nvim/autoload/coc/highlight.vim index 86aead82..cb52692a 100644 --- a/sources_non_forked/coc.nvim/autoload/coc/highlight.vim +++ b/sources_non_forked/coc.nvim/autoload/coc/highlight.vim @@ -307,7 +307,7 @@ endfunction function! coc#highlight#add_highlight(bufnr, src_id, hl_group, line, col_start, col_end, ...) abort let opts = get(a:, 1, {}) let priority = get(opts, 'priority', v:null) - if has('nvim') + if !s:is_vim if s:set_extmark && a:src_id != -1 " get(opts, 'start_incl', 0) ? v:true : v:false, try @@ -369,7 +369,9 @@ function! coc#highlight#add_highlights(winid, codes, highlights) abort endif if !empty(a:highlights) for item in a:highlights - call coc#highlight#add_highlight(bufnr, -1, item['hlGroup'], item['lnum'], item['colStart'], item['colEnd']) + let hlGroup = item['hlGroup'] + let opts = hlGroup =~# 'Search$' ? {'priority': 999, 'combine': 1} : {} + call coc#highlight#add_highlight(bufnr, -1, hlGroup, item['lnum'], item['colStart'], item['colEnd']) endfor endif endfunction @@ -421,7 +423,7 @@ function! coc#highlight#compose_hlgroup(fgGroup, bgGroup) abort if a:fgGroup ==# a:bgGroup return a:fgGroup endif - if hlexists(hlGroup) + if hlexists(hlGroup) && match(execute('hi '.hlGroup, 'silent!'), 'cleared') == -1 return hlGroup endif let fgId = synIDtrans(hlID(a:fgGroup)) diff --git a/sources_non_forked/coc.nvim/autoload/coc/list.vim b/sources_non_forked/coc.nvim/autoload/coc/list.vim index caf46d49..ec01d1ba 100644 --- a/sources_non_forked/coc.nvim/autoload/coc/list.vim +++ b/sources_non_forked/coc.nvim/autoload/coc/list.vim @@ -294,6 +294,7 @@ function! s:get_topline(config, lnum, winid) abort endfunction function! s:set_preview_options(winid) abort + call setwinvar(a:winid, '&foldmethod', 'manual') call setwinvar(a:winid, '&signcolumn', 'no') call setwinvar(a:winid, '&number', 1) call setwinvar(a:winid, '&cursorline', 0) diff --git a/sources_non_forked/coc.nvim/autoload/coc/notify.vim b/sources_non_forked/coc.nvim/autoload/coc/notify.vim index 89351fbe..5d71a8de 100644 --- a/sources_non_forked/coc.nvim/autoload/coc/notify.vim +++ b/sources_non_forked/coc.nvim/autoload/coc/notify.vim @@ -166,7 +166,7 @@ function! coc#notify#create(lines, config) abort let height = height + 1 endif if !empty(actions) - let before = width - strwidth(actionText) + let before = max([width - strwidth(actionText), 0]) let lines = lines + [repeat(' ', before).actionText] let height = height + 1 call s:add_action_highlights(before, height - 1, highlights, actions) diff --git a/sources_non_forked/coc.nvim/autoload/coc/pum.vim b/sources_non_forked/coc.nvim/autoload/coc/pum.vim new file mode 100644 index 00000000..58979af9 --- /dev/null +++ b/sources_non_forked/coc.nvim/autoload/coc/pum.vim @@ -0,0 +1,495 @@ +scriptencoding utf-8 +let s:is_vim = !has('nvim') +let s:pum_bufnr = 0 +let s:pum_winid = 0 +let s:pum_index = -1 +let s:inserted = 0 +let s:virtual_text = 0 +let s:virtual_text_ns = 0 +let s:ignore = s:is_vim || has('nvim-0.5.0') ? "\" : "\\" +let s:hide_pum = has('nvim-0.6.1') || has('patch-8.2.3389') + +function! coc#pum#visible() abort + if !s:pum_winid + return 0 + endif + return getwinvar(s:pum_winid, 'float', 0) == 1 +endfunction + +function! coc#pum#winid() abort + return s:pum_winid +endfunction + +function! coc#pum#close_detail() abort + let winid = coc#float#get_float_by_kind('pumdetail') + if winid + call coc#float#close(winid) + if s:is_vim + call timer_start(0, { -> execute('redraw')}) + endif + endif +endfunction + +function! coc#pum#close(...) abort + if coc#float#valid(s:pum_winid) + if get(a:, 1, '') ==# 'cancel' + let input = getwinvar(s:pum_winid, 'input', '') + let s:pum_index = -1 + call s:insert_word(input) + call s:on_pum_change(0) + doautocmd TextChangedI + elseif get(a:, 1, '') ==# 'confirm' + let words = getwinvar(s:pum_winid, 'words', []) + if s:pum_index >= 0 + let word = get(words, s:pum_index, '') + call s:insert_word(word) + endif + doautocmd TextChangedI + endif + call s:close_pum() + if !get(a:, 2, 0) + let pretext = strpart(getline('.'), 0, col('.') - 1) + call coc#rpc#notify('CompleteStop', [get(a:, 1, ''), pretext]) + endif + endif +endfunction + +function! coc#pum#select_confirm() abort + if s:pum_index < 0 + let s:pum_index = 0 + call s:on_pum_change(0) + endif + call coc#pum#close('confirm') +endfunction + +function! coc#pum#insert() abort + call timer_start(10, { -> s:insert_current()}) + return s:ignore +endfunction + +function! coc#pum#_close() abort + if coc#float#valid(s:pum_winid) + call s:close_pum() + if s:is_vim + call timer_start(0, { -> execute('redraw')}) + endif + endif +endfunction + +function! s:insert_current() abort + if coc#float#valid(s:pum_winid) + if s:pum_index >= 0 + let words = getwinvar(s:pum_winid, 'words', []) + let word = get(words, s:pum_index, '') + call s:insert_word(word) + endif + doautocmd TextChangedI + call s:close_pum() + let pretext = strpart(getline('.'), 0, col('.') - 1) + call coc#rpc#notify('CompleteStop', ['', pretext]) + endif +endfunction + +function! s:close_pum() abort + call s:clear_virtual_text() + call coc#float#close(s:pum_winid) + let s:pum_winid = 0 + let winid = coc#float#get_float_by_kind('pumdetail') + if winid + call coc#float#close(winid) + endif +endfunction + +function! coc#pum#next(insert) abort + call timer_start(10, { -> s:navigate(1, a:insert)}) + return s:ignore +endfunction + +function! coc#pum#prev(insert) abort + call timer_start(10, { -> s:navigate(0, a:insert)}) + return s:ignore +endfunction + +function! coc#pum#stop() abort + call timer_start(10, { -> coc#pum#close()}) + return s:ignore +endfunction + +function! coc#pum#cancel() abort + call timer_start(10, { -> coc#pum#close('cancel')}) + return s:ignore +endfunction + +function! coc#pum#confirm() abort + call timer_start(10, { -> coc#pum#close('confirm')}) + return s:ignore +endfunction + +function! coc#pum#select(index, insert, confirm) abort + if !coc#float#valid(s:pum_winid) + return '' + endif + if a:index == -1 + call coc#pum#close('cancel') + return '' + endif + let total = coc#compat#buf_line_count(s:pum_bufnr) + if a:index < 0 || a:index >= total + throw 'index out of range ' . a:index + endif + call s:select_by_index(a:index, a:insert) + if a:confirm + call coc#pum#close('confirm') + endif + return '' +endfunction + +function! coc#pum#info() abort + let bufnr = winbufnr(s:pum_winid) + let size = coc#compat#buf_line_count(bufnr) + let words = getwinvar(s:pum_winid, 'words', []) + let word = s:pum_index < 0 ? '' : get(words, s:pum_index, '') + if s:is_vim + let pos = popup_getpos(s:pum_winid) + let border = has_key(popup_getoptions(s:pum_winid), 'border') + let add = pos['scrollbar'] && border ? 1 : 0 + return { + \ 'word': word, + \ 'index': s:pum_index, + \ 'scrollbar': pos['scrollbar'], + \ 'row': pos['line'] - 1, + \ 'col': pos['col'] - 1, + \ 'width': pos['width'] + add, + \ 'height': pos['height'], + \ 'size': size, + \ 'border': border, + \ 'inserted': s:inserted ? v:true : v:false, + \ } + else + let scrollbar = coc#float#get_related(s:pum_winid, 'scrollbar') + let winid = coc#float#get_related(s:pum_winid, 'border', s:pum_winid) + let pos = nvim_win_get_position(winid) + return { + \ 'word': word, + \ 'index': s:pum_index, + \ 'scrollbar': scrollbar && nvim_win_is_valid(scrollbar) ? 1 : 0, + \ 'row': pos[0], + \ 'col': pos[1], + \ 'width': nvim_win_get_width(winid), + \ 'height': nvim_win_get_height(winid), + \ 'size': size, + \ 'border': winid != s:pum_winid, + \ 'inserted': s:inserted ? v:true : v:false, + \ } + endif +endfunction + +function! coc#pum#scroll(forward) abort + if coc#pum#visible() + let size = coc#compat#buf_line_count(s:pum_bufnr) + let height = s:get_height(s:pum_winid) + if size > height + call timer_start(10, { -> s:scroll_pum(a:forward, height, size)}) + endif + endif + return s:ignore +endfunction + +function! s:get_height(winid) abort + if has('nvim') + return nvim_win_get_height(a:winid) + endif + return get(popup_getpos(a:winid), 'core_height', 0) +endfunction + +function! s:scroll_pum(forward, height, size) abort + let topline = s:get_topline(s:pum_winid) + if !a:forward && topline == 1 + if s:pum_index >= 0 + call s:select_line(s:pum_winid, 1) + call s:on_pum_change(1) + endif + return + endif + if a:forward && topline + a:height - 1 >= a:size + if s:pum_index >= 0 + call s:select_line(s:pum_winid, a:size) + call s:on_pum_change(1) + endif + return + endif + call coc#float#scroll_win(s:pum_winid, a:forward, a:height) + if s:pum_index >= 0 + let lnum = s:pum_index + 1 + let topline = s:get_topline(s:pum_winid) + if lnum >= topline && lnum <= topline + a:height - 1 + return + endif + call s:select_line(s:pum_winid, topline) + call s:on_pum_change(1) + endif +endfunction + +function! s:get_topline(winid) abort + if has('nvim') + let info = getwininfo(a:winid)[0] + return info['topline'] + else + let pos = popup_getpos(a:winid) + return pos['firstline'] + endif +endfunction + +function! s:navigate(next, insert) abort + if !coc#float#valid(s:pum_winid) + return + endif + let index = s:get_index(a:next) + call s:select_by_index(index, a:insert) +endfunction + +function! s:select_by_index(index, insert) abort + call s:set_cursor(s:pum_winid, a:index + 1) + if !s:is_vim + call coc#float#nvim_scrollbar(s:pum_winid) + endif + if a:insert + let s:inserted = 1 + if a:index < 0 + let input = getwinvar(s:pum_winid, 'input', '') + call s:insert_word(input) + call coc#pum#close_detail() + else + let words = getwinvar(s:pum_winid, 'words', []) + let word = get(words, a:index, '') + call s:insert_word(word) + endif + doautocmd TextChangedP + endif + call s:on_pum_change(1) +endfunction + +function! s:get_index(next) abort + let size = coc#compat#buf_line_count(s:pum_bufnr) + if a:next + let index = s:pum_index + 1 == size ? -1 : s:pum_index + 1 + else + let index = s:pum_index == -1 ? size - 1 : s:pum_index - 1 + endif + return index +endfunction + +function! s:insert_word(word) abort + let parts = getwinvar(s:pum_winid, 'parts', []) + if !empty(parts) && mode() ==# 'i' + let curr = getline('.') + if curr ==# parts[0].a:word.parts[1] + return + endif + let saved_completeopt = &completeopt + if saved_completeopt =~ 'menuone' + noa set completeopt=menu + endif + noa call complete(strlen(parts[0]) + 1, [a:word]) + if s:hide_pum + " exit complete state + call feedkeys("\\", 'in') + else + let g:coc_disable_space_report = 1 + call feedkeys("\\", 'in') + endif + execute 'noa set completeopt='.saved_completeopt + endif +endfunction + +" create or update pum with lines, CompleteOption and config. +" return winid & dimension +function! coc#pum#create(lines, opt, config) abort + if mode() !=# 'i' || a:opt['line'] != line('.') + return + endif + let len = col('.') - a:opt['col'] - 1 + if len < 0 + return + endif + let input = len == 0 ? '' : strpart(getline('.'), a:opt['col'], len) + if input !=# a:opt['input'] + return + endif + let config = s:get_pum_dimension(a:lines, a:opt['col'], a:config) + if empty(config) + return + endif + let s:virtual_text = has('nvim-0.5.0') && a:opt['virtualText'] + if s:virtual_text && !s:virtual_text_ns + let s:virtual_text_ns = coc#highlight#create_namespace('pum-virtual') + endif + let selected = a:opt['index'] + 1 + call extend(config, { + \ 'lines': a:lines, + \ 'relative': 'cursor', + \ 'nopad': 1, + \ 'cursorline': 1, + \ 'index': a:opt['index'], + \ 'focusable': v:false + \ }) + call extend(config, coc#dict#pick(a:config, ['highlight', 'rounded', 'highlights', 'winblend', 'shadow', 'border', 'borderhighlight'])) + if empty(get(config, 'winblend', 0)) && exists('&pumblend') + let config['winblend'] = &pumblend + endif + let result = coc#float#create_float_win(s:pum_winid, s:pum_bufnr, config) + if empty(result) + return + endif + let s:inserted = 0 + let s:pum_winid = result[0] + let s:pum_bufnr = result[1] + call setwinvar(s:pum_winid, 'above', config['row'] < 0) + let lnum = max([1, a:opt['index'] + 1]) + if s:is_vim + call popup_setoptions(s:pum_winid, { + \ 'firstline': s:get_firstline(lnum, len(a:lines), config['height']) + \ }) + else + let firstline = s:get_firstline(lnum, len(a:lines), config['height']) + call coc#compat#execute(s:pum_winid, 'call winrestview({"lnum":'.lnum.',"topline":'.firstline.'})') + endif + let s:pum_index = get(config, 'index', -1) + call coc#dialog#place_sign(s:pum_bufnr, s:pum_index + 1) + call setwinvar(s:pum_winid, 'kind', 'pum') + " content before col and content after cursor + let linetext = getline('.') + let parts = [strpart(linetext, 0, a:opt['col']), strpart(linetext, col('.') - 1)] + call setwinvar(s:pum_winid, 'input', input) + call setwinvar(s:pum_winid, 'parts', parts) + call setwinvar(s:pum_winid, 'words', a:opt['words']) + if !s:is_vim + if len(a:lines) > config['height'] + redraw + call coc#float#nvim_scrollbar(s:pum_winid) + else + call coc#float#close_related(s:pum_winid, 'scrollbar') + endif + endif + call timer_start(10, { -> s:on_pum_change(0)}) +endfunction + +function! s:get_firstline(lnum, total, height) abort + if a:lnum <= a:height + return 1 + endif + return min([a:total - a:height + 1, a:lnum - (a:height*2/3)]) +endfunction + +function! s:on_pum_change(move) abort + if coc#float#valid(s:pum_winid) + if s:virtual_text_ns + call s:insert_virtual_text() + endif + let ev = extend(coc#pum#info(), {'move': a:move ? v:true : v:false}) + call coc#rpc#notify('CocAutocmd', ['MenuPopupChanged', ev, win_screenpos(winnr())[0] + winline() - 2]) + endif +endfunction + +function! s:get_pum_dimension(lines, col, config) abort + let linecount = len(a:lines) + let [lineIdx, colIdx] = coc#cursor#screen_pos() + let bh = empty(get(a:config, 'border', [])) ? 0 : 2 + let width = min([&columns, max([exists('&pumwidth') ? &pumwidth : 15, a:config['width']])]) + let vh = &lines - &cmdheight - 1 - !empty(&tabline) + if vh <= 0 + return v:null + endif + let pumheight = empty(&pumheight) ? vh : &pumheight + let showTop = getwinvar(s:pum_winid, 'above', v:null) + if type(showTop) != v:t_number + if vh - lineIdx - bh - 1 < min([pumheight, linecount]) && lineIdx > vh - lineIdx + let showTop = 1 + else + let showTop = 0 + endif + endif + let height = showTop ? min([lineIdx - bh - !empty(&tabline), linecount, pumheight]) : min([vh - lineIdx - bh - 1, linecount, pumheight]) + if height <= 0 + return v:null + endif + let col = - (col('.') - a:col - 1) - 1 + let row = showTop ? - height : 1 + let delta = colIdx + col + if delta < 0 + let col = col - delta + elseif delta + width > &columns + let col = max([-colIdx, col - (delta + width - &columns)]) + endif + return { + \ 'row': row, + \ 'col': col, + \ 'width': width, + \ 'height': height + \ } +endfunction + +" can't use coc#dialog#set_cursor on vim8, don't know why +function! s:set_cursor(winid, line) abort + if s:is_vim + let pos = popup_getpos(a:winid) + let lastline = pos['firstline'] + pos['core_height'] - 1 + if a:line > lastline + call popup_setoptions(a:winid, { + \ 'firstline': pos['firstline'] + a:line - lastline, + \ }) + elseif a:line < pos['firstline'] + call popup_setoptions(a:winid, { + \ 'firstline': max([1, a:line]), + \ }) + endif + endif + call s:select_line(a:winid, a:line) +endfunction + +function! s:select_line(winid, line) abort + let s:pum_index = a:line - 1 + let lnum = max([1, a:line]) + if s:is_vim + call coc#compat#execute(a:winid, 'exe '.lnum) + else + call nvim_win_set_cursor(a:winid, [lnum, 0]) + endif + call coc#dialog#place_sign(winbufnr(a:winid), a:line) +endfunction + +function! s:insert_virtual_text() abort + if !s:virtual_text_ns + return + endif + let bufnr = bufnr('%') + if !s:virtual_text || !coc#pum#visible() || s:pum_index < 0 + call nvim_buf_clear_namespace(bufnr, s:virtual_text_ns, 0, -1) + else + " Check if could create + let insert = '' + let words = getwinvar(s:pum_winid, 'words', []) + let word = get(words, s:pum_index, '') + let parts = getwinvar(s:pum_winid, 'parts', []) + let input = strpart(getline('.'), strlen(parts[0]), col('.') - 1) + if strchars(word) > strchars(input) && strcharpart(word, 0, strchars(input)) ==# input + let insert = strcharpart(word, strchars(input)) + endif + call nvim_buf_clear_namespace(bufnr, s:virtual_text_ns, 0, -1) + if !empty(insert) + let opts = { + \ 'hl_mode': 'combine', + \ 'virt_text': [[insert, 'CocPumVirtualText']], + \ 'virt_text_pos': 'overlay', + \ 'virt_text_win_col': virtcol('.') - 1, + \ } + call nvim_buf_set_extmark(bufnr, s:virtual_text_ns, line('.') - 1, col('.') - 1, opts) + endif + endif +endfunction + +function! s:clear_virtual_text() abort + if s:virtual_text_ns + call nvim_buf_clear_namespace(bufnr('%'), s:virtual_text_ns, 0, -1) + endif +endfunction diff --git a/sources_non_forked/coc.nvim/autoload/coc/snippet.vim b/sources_non_forked/coc.nvim/autoload/coc/snippet.vim index 40e13530..049c88d2 100644 --- a/sources_non_forked/coc.nvim/autoload/coc/snippet.vim +++ b/sources_non_forked/coc.nvim/autoload/coc/snippet.vim @@ -105,8 +105,8 @@ function! coc#snippet#disable() endfunction function! coc#snippet#select(start, end, text) abort - if pumvisible() - call coc#_cancel() + if coc#pum#visible() + call coc#pum#close() endif if mode() == 's' call feedkeys("\", 'in') @@ -134,8 +134,8 @@ function! coc#snippet#move(position) abort let m = mode() if m == 's' call feedkeys("\", 'in') - elseif pumvisible() - call coc#_cancel() + elseif coc#pum#visible() + call coc#pum#close() endif let pos = coc#snippet#to_cursor(a:position) call cursor(pos) diff --git a/sources_non_forked/coc.nvim/autoload/coc/string.vim b/sources_non_forked/coc.nvim/autoload/coc/string.vim index 0f371508..70f52f8a 100644 --- a/sources_non_forked/coc.nvim/autoload/coc/string.vim +++ b/sources_non_forked/coc.nvim/autoload/coc/string.vim @@ -39,6 +39,35 @@ function! coc#string#reflow(lines, width) abort return empty(lines) ? [''] : lines endfunction +function! coc#string#content_height(lines, width) abort + let len = 0 + for line in a:lines + if strwidth(line) <= a:width + let len = len + 1 + else + let currlen = 0 + for part in split(line, '\<\|\>\|\ze\s') + let w = strwidth(part) + if currlen + w >= a:width + if currlen + w == a:width + let len = len + 1 + let currlen = 0 + else + let len = len + (a:width + w)/a:width + let currlen = w%a:width + endif + else + let currlen = currlen + w + endif + endfor + if currlen > 0 + let len = len + 1 + endif + endif + endfor + return len == 0 ? 1 : len +endfunction + " get change between two lines function! coc#string#diff(curr, previous, col) abort let end = strpart(a:curr, a:col - 1) diff --git a/sources_non_forked/coc.nvim/autoload/coc/ui.vim b/sources_non_forked/coc.nvim/autoload/coc/ui.vim index 0946bc07..e1339af1 100644 --- a/sources_non_forked/coc.nvim/autoload/coc/ui.vim +++ b/sources_non_forked/coc.nvim/autoload/coc/ui.vim @@ -4,6 +4,25 @@ let s:is_mac = has('mac') let s:sign_api = exists('*sign_getplaced') && exists('*sign_place') let s:sign_groups = [] +" Check and +function! coc#ui#check_pum_keymappings() abort + for key in ['', '', ''] + let lhs = maparg(key, 'i') + if lhs =~# '\ a:changedtick && bufnr('%') == a:bufnr " try apply current line change let lnum = line('.') - let idx = a:start - lnum + 1 - let previous = get(a:original, idx, 0) - if type(previous) == 1 - let content = getline('.') - if previous !=# content - let diff = coc#string#diff(content, previous, col('.')) - let changed = get(a:replacement, idx, 0) - if type(changed) == 1 && strcharpart(previous, 0, diff['end']) ==# strcharpart(changed, 0, diff['end']) - let applied = coc#string#apply(changed, diff) - let replacement = copy(a:replacement) - let replacement[idx] = applied - call coc#compat#buf_set_lines(a:bufnr, a:start, a:end, replacement) - return + " change for current line + if a:end - a:start == 1 && a:end == lnum && len(a:replacement) == 1 + let idx = a:start - lnum + 1 + let previous = get(a:original, idx, 0) + if type(previous) == 1 + let content = getline('.') + if previous !=# content + let diff = coc#string#diff(content, previous, col('.')) + let changed = get(a:replacement, idx, 0) + if type(changed) == 1 && strcharpart(previous, 0, diff['end']) ==# strcharpart(changed, 0, diff['end']) + let applied = coc#string#apply(changed, diff) + let replacement = copy(a:replacement) + let replacement[idx] = applied + call coc#compat#buf_set_lines(a:bufnr, a:start, a:end, replacement) + return + endif endif endif endif @@ -340,11 +362,7 @@ function! coc#ui#rename_file(oldPath, newPath, write) abort execute 'keepalt tab drop '.fnameescape(bufname(bufnr)) let winid = win_getid() endif - if exists('*nvim_buf_set_name') - call nvim_buf_set_name(bufnr, bufname) - else - call coc#compat#execute(winid, 'file '.fnameescape(bufname), 'silent') - endif + call coc#compat#execute(winid, 'keepalt file '.fnameescape(bufname), 'silent') call coc#compat#execute(winid, 'doautocmd BufEnter') if a:write call coc#compat#execute(winid, 'noa write!', 'silent') diff --git a/sources_non_forked/coc.nvim/autoload/coc/util.vim b/sources_non_forked/coc.nvim/autoload/coc/util.vim index 5be8bcf1..a0b66877 100644 --- a/sources_non_forked/coc.nvim/autoload/coc/util.vim +++ b/sources_non_forked/coc.nvim/autoload/coc/util.vim @@ -2,7 +2,7 @@ scriptencoding utf-8 let s:root = expand(':h:h:h') let s:is_win = has('win32') || has('win64') let s:is_vim = !has('nvim') -let s:vim_api_version = 30 +let s:vim_api_version = 31 function! coc#util#remote_fns(name) let fns = ['init', 'complete', 'should_complete', 'refresh', 'get_startcol', 'on_complete', 'on_enter'] @@ -15,6 +15,19 @@ function! coc#util#remote_fns(name) return res endfunction +function! coc#util#merge_winhl(curr, hls) abort + let highlightMap = {} + for parts in map(split(a:curr, ','), 'split(v:val, ":")') + if len(parts) == 2 + let highlightMap[parts[0]] = parts[1] + endif + endfor + for item in a:hls + let highlightMap[item[0]] = item[1] + endfor + return join(map(items(highlightMap), 'v:val[0].":".v:val[1]'), ',') +endfunction + function! coc#util#do_complete(name, opt, cb) abort let handler = 'coc#source#'.a:name.'#complete' let l:Cb = {res -> a:cb(v:null, res)} @@ -24,9 +37,9 @@ endfunction function! coc#util#suggest_variables(bufnr) abort return { - \ 'coc_suggest_disable': getbufvar(a:bufnr, 'coc_suggest_disable', 0), - \ 'coc_disabled_sources': getbufvar(a:bufnr, 'coc_disabled_sources', []), - \ 'coc_suggest_blacklist': getbufvar(a:bufnr, 'coc_suggest_blacklist', []), + \ 'disable': getbufvar(a:bufnr, 'coc_suggest_disable', 0), + \ 'disabled_sources': getbufvar(a:bufnr, 'coc_disabled_sources', []), + \ 'blacklist': getbufvar(a:bufnr, 'coc_suggest_blacklist', []), \ } endfunction @@ -282,7 +295,7 @@ function! coc#util#vim_info() \ 'filetypeMap': get(g:, 'coc_filetype_map', {}), \ 'version': coc#util#version(), \ 'completeOpt': &completeopt, - \ 'pumevent': exists('##MenuPopupChanged') || exists('##CompleteChanged'), + \ 'pumevent': 1, \ 'isVim': has('nvim') ? v:false : v:true, \ 'isCygwin': has('win32unix') ? v:true : v:false, \ 'isMacvim': has('gui_macvim') ? v:true : v:false, @@ -294,10 +307,12 @@ function! coc#util#vim_info() \ 'locationlist': get(g:,'coc_enable_locationlist', 1), \ 'progpath': v:progpath, \ 'guicursor': &guicursor, + \ 'pumwidth': exists('&pumwidth') ? &pumwidth : 15, \ 'tabCount': tabpagenr('$'), \ 'updateHighlight': has('nvim-0.5.0') || has('patch-8.1.1719') ? v:true : v:false, \ 'vimCommands': get(g:, 'coc_vim_commands', []), \ 'sign': exists('*sign_place') && exists('*sign_unplace'), + \ 'ambiguousIsNarrow': &ambiwidth ==# 'single' ? v:true : v:false, \ 'textprop': has('textprop') && has('patch-8.1.1719') && !has('nvim') ? v:true : v:false, \ 'dialog': has('nvim-0.4.0') || has('patch-8.2.0750') ? v:true : v:false, \ 'semanticHighlights': coc#util#semantic_hlgroups() diff --git a/sources_non_forked/coc.nvim/autoload/coc/window.vim b/sources_non_forked/coc.nvim/autoload/coc/window.vim index 712ce023..5c99fc8d 100644 --- a/sources_non_forked/coc.nvim/autoload/coc/window.vim +++ b/sources_non_forked/coc.nvim/autoload/coc/window.vim @@ -22,6 +22,13 @@ function! coc#window#tabnr(winid) abort endif endfunction +function! coc#window#get_cursor(winid) abort + if exists('*nvim_win_get_cursor') + return nvim_win_get_cursor(a:winid) + endif + return coc#api#exec('win_get_cursor', [a:winid]) +endfunction + " Check if winid visible on current tabpage function! coc#window#visible(winid) abort if s:is_vim diff --git a/sources_non_forked/coc.nvim/autoload/health/coc.vim b/sources_non_forked/coc.nvim/autoload/health/coc.vim index b1766922..24fbab41 100644 --- a/sources_non_forked/coc.nvim/autoload/health/coc.vim +++ b/sources_non_forked/coc.nvim/autoload/health/coc.vim @@ -16,8 +16,8 @@ endfunction function! s:checkEnvironment() abort let valid - \ = s:checkVim(has('nvim'), 'nvim', 'nvim-0.3.2') - \ + s:checkVim(!has('nvim'), 'vim', 'patch-0.8.1453') + \ = s:checkVim(has('nvim'), 'nvim', 'nvim-0.4.0') + \ + s:checkVim(!has('nvim'), 'vim', 'patch-8.1.1719') let node = get(g:, 'coc_node_path', $COC_NODE_PATH == '' ? 'node' : $COC_NODE_PATH) if !executable(node) let valid = 0 @@ -32,9 +32,9 @@ function! s:checkEnvironment() abort if empty(ms) let valid = 0 call health#report_error('Unable to detect version of node, make sure your node executable is http://nodejs.org/') - elseif str2nr(ms[1]) < 12 || (str2nr(ms[1]) == 12 && str2nr(ms[2]) < 12) + elseif str2nr(ms[1]) < 14 || (str2nr(ms[1]) == 14 && str2nr(ms[2]) < 14) let valid = 0 - call health#report_warn('Node.js version '.trim(output).' < 12.12.0, please upgrade node.js') + call health#report_warn('Node.js version '.trim(output).' < 14.14.0, please upgrade node.js') endif if valid call health#report_ok('Environment check passed') diff --git a/sources_non_forked/coc.nvim/build/index.js b/sources_non_forked/coc.nvim/build/index.js index 146677e4..ccf8575e 100644 --- a/sources_non_forked/coc.nvim/build/index.js +++ b/sources_non_forked/coc.nvim/build/index.js @@ -3,88 +3,88 @@ var parts = v.slice(1).split('.') var major = parseInt(parts[0], 10) var minor = parseInt(parts[1], 10) - if (major < 12 || (major == 12 && minor < 12)) { - throw new Error('coc.nvim requires node >= v12.12.0, current version: ' + v) + if (major < 14 || (major == 14 && minor < 14)) { + throw new Error('coc.nvim requires node >= v14.14.0, current version: ' + v) } })(); -var Vte=Object.create;var Jh=Object.defineProperty,eie=Object.defineProperties,tie=Object.getOwnPropertyDescriptor,iie=Object.getOwnPropertyDescriptors,nie=Object.getOwnPropertyNames,yR=Object.getOwnPropertySymbols,rie=Object.getPrototypeOf,wR=Object.prototype.hasOwnProperty,oie=Object.prototype.propertyIsEnumerable;var vR=(n,e,t)=>e in n?Jh(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,ge=(n,e)=>{for(var t in e||(e={}))wR.call(e,t)&&vR(n,t,e[t]);if(yR)for(var t of yR(e))oie.call(e,t)&&vR(n,t,e[t]);return n},Ba=(n,e)=>eie(n,iie(e)),DR=n=>Jh(n,"__esModule",{value:!0});var _=(n,e)=>()=>(n&&(e=n(n=0)),e);var m=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports),xs=(n,e)=>{for(var t in e)Jh(n,t,{get:e[t],enumerable:!0})},xR=(n,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of nie(e))!wR.call(n,r)&&(t||r!=="default")&&Jh(n,r,{get:()=>e[r],enumerable:!(i=tie(e,r))||i.enumerable});return n},C=(n,e)=>xR(DR(Jh(n!=null?Vte(rie(n)):{},"default",!e&&n&&n.__esModule?{get:()=>n.default,enumerable:!0}:{value:n,enumerable:!0})),n),Ha=(n=>(e,t)=>n&&n.get(e)||(t=xR(DR({}),e,1),n&&n.set(e,t),t))(typeof WeakMap!="undefined"?new WeakMap:0);var SR=m((QTe,CR)=>{var pu=1e3,mu=pu*60,bu=mu*60,qa=bu*24,sie=qa*7,aie=qa*365.25;CR.exports=function(n,e){e=e||{};var t=typeof n;if(t==="string"&&n.length>0)return lie(n);if(t==="number"&&isFinite(n))return e.long?cie(n):uie(n);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(n))};function lie(n){if(n=String(n),!(n.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(n);if(!!e){var t=parseFloat(e[1]),i=(e[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return t*aie;case"weeks":case"week":case"w":return t*sie;case"days":case"day":case"d":return t*qa;case"hours":case"hour":case"hrs":case"hr":case"h":return t*bu;case"minutes":case"minute":case"mins":case"min":case"m":return t*mu;case"seconds":case"second":case"secs":case"sec":case"s":return t*pu;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}}}function uie(n){var e=Math.abs(n);return e>=qa?Math.round(n/qa)+"d":e>=bu?Math.round(n/bu)+"h":e>=mu?Math.round(n/mu)+"m":e>=pu?Math.round(n/pu)+"s":n+"ms"}function cie(n){var e=Math.abs(n);return e>=qa?yp(n,e,qa,"day"):e>=bu?yp(n,e,bu,"hour"):e>=mu?yp(n,e,mu,"minute"):e>=pu?yp(n,e,pu,"second"):n+" ms"}function yp(n,e,t,i){var r=e>=t*1.5;return Math.round(n/t)+" "+i+(r?"s":"")}});var kx=m((KTe,TR)=>{function hie(n){t.debug=t,t.default=t,t.coerce=l,t.disable=o,t.enable=r,t.enabled=s,t.humanize=SR(),t.destroy=u,Object.keys(n).forEach(c=>{t[c]=n[c]}),t.names=[],t.skips=[],t.formatters={};function e(c){let h=0;for(let d=0;d{if(L==="%%")return"%";S++;let W=t.formatters[j];if(typeof W=="function"){let B=b[S];L=W.call(v,B),b.splice(S,1),S--}return L}),t.formatArgs.call(v,b),(v.log||t.log).apply(v,b)}return p.namespace=c,p.useColors=t.useColors(),p.color=t.selectColor(c),p.extend=i,p.destroy=t.destroy,Object.defineProperty(p,"enabled",{enumerable:!0,configurable:!1,get:()=>d!==null?d:(g!==t.namespaces&&(g=t.namespaces,f=t.enabled(c)),f),set:b=>{d=b}}),typeof t.init=="function"&&t.init(p),p}function i(c,h){let d=t(this.namespace+(typeof h>"u"?":":h)+c);return d.log=this.log,d}function r(c){t.save(c),t.namespaces=c,t.names=[],t.skips=[];let h,d=(typeof c=="string"?c:"").split(/[\s,]+/),g=d.length;for(h=0;h"-"+h)].join(",");return t.enable(""),c}function s(c){if(c[c.length-1]==="*")return!0;let h,d;for(h=0,d=t.skips.length;h{En.formatArgs=gie;En.save=fie;En.load=pie;En.useColors=die;En.storage=mie();En.destroy=(()=>{let n=!1;return()=>{n||(n=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();En.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function die(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function gie(n){if(n[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+n[0]+(this.useColors?"%c ":" ")+"+"+vp.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;n.splice(1,0,e,"color: inherit");let t=0,i=0;n[0].replace(/%[a-zA-Z%]/g,r=>{r!=="%%"&&(t++,r==="%c"&&(i=t))}),n.splice(i,0,e)}En.log=console.debug||console.log||(()=>{});function fie(n){try{n?En.storage.setItem("debug",n):En.storage.removeItem("debug")}catch{}}function pie(){let n;try{n=En.storage.getItem("debug")}catch{}return!n&&typeof process<"u"&&"env"in process&&(n=process.env.DEBUG),n}function mie(){try{return localStorage}catch{}}vp.exports=kx()(En);var{formatters:bie}=vp.exports;bie.j=function(n){try{return JSON.stringify(n)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var PR=m((zTe,ER)=>{"use strict";ER.exports=(n,e=process.argv)=>{let t=n.startsWith("-")?"":n.length===1?"-":"--",i=e.indexOf(t+n),r=e.indexOf("--");return i!==-1&&(r===-1||i{"use strict";var yie=require("os"),_R=require("tty"),Yn=PR(),{env:oi}=process,Cs;Yn("no-color")||Yn("no-colors")||Yn("color=false")||Yn("color=never")?Cs=0:(Yn("color")||Yn("colors")||Yn("color=true")||Yn("color=always"))&&(Cs=1);"FORCE_COLOR"in oi&&(oi.FORCE_COLOR==="true"?Cs=1:oi.FORCE_COLOR==="false"?Cs=0:Cs=oi.FORCE_COLOR.length===0?1:Math.min(parseInt(oi.FORCE_COLOR,10),3));function Ex(n){return n===0?!1:{level:n,hasBasic:!0,has256:n>=2,has16m:n>=3}}function Px(n,e){if(Cs===0)return 0;if(Yn("color=16m")||Yn("color=full")||Yn("color=truecolor"))return 3;if(Yn("color=256"))return 2;if(n&&!e&&Cs===void 0)return 0;let t=Cs||0;if(oi.TERM==="dumb")return t;if(process.platform==="win32"){let i=yie.release().split(".");return Number(i[0])>=10&&Number(i[2])>=10586?Number(i[2])>=14931?3:2:1}if("CI"in oi)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(i=>i in oi)||oi.CI_NAME==="codeship"?1:t;if("TEAMCITY_VERSION"in oi)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(oi.TEAMCITY_VERSION)?1:0;if(oi.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in oi){let i=parseInt((oi.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(oi.TERM_PROGRAM){case"iTerm.app":return i>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(oi.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(oi.TERM)||"COLORTERM"in oi?1:t}function vie(n){let e=Px(n,n&&n.isTTY);return Ex(e)}RR.exports={supportsColor:vie,stdout:Ex(Px(!0,_R.isatty(1))),stderr:Ex(Px(!0,_R.isatty(2)))}});var IR=m((fi,Dp)=>{var wie=require("tty"),wp=require("util");fi.init=Eie;fi.log=Sie;fi.formatArgs=xie;fi.save=Tie;fi.load=kie;fi.useColors=Die;fi.destroy=wp.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");fi.colors=[6,2,3,4,5,1];try{let n=LR();n&&(n.stderr||n).level>=2&&(fi.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}fi.inspectOpts=Object.keys(process.env).filter(n=>/^debug_/i.test(n)).reduce((n,e)=>{let t=e.substring(6).toLowerCase().replace(/_([a-z])/g,(r,o)=>o.toUpperCase()),i=process.env[e];return/^(yes|on|true|enabled)$/i.test(i)?i=!0:/^(no|off|false|disabled)$/i.test(i)?i=!1:i==="null"?i=null:i=Number(i),n[t]=i,n},{});function Die(){return"colors"in fi.inspectOpts?Boolean(fi.inspectOpts.colors):wie.isatty(process.stderr.fd)}function xie(n){let{namespace:e,useColors:t}=this;if(t){let i=this.color,r="\x1B[3"+(i<8?i:"8;5;"+i),o=` ${r};1m${e} \x1B[0m`;n[0]=o+n[0].split(` +var Ine=Object.create;var ld=Object.defineProperty,jne=Object.defineProperties,Ane=Object.getOwnPropertyDescriptor,Mne=Object.getOwnPropertyDescriptors,One=Object.getOwnPropertyNames,yL=Object.getOwnPropertySymbols,Nne=Object.getPrototypeOf,vL=Object.prototype.hasOwnProperty,Bne=Object.prototype.propertyIsEnumerable;var bL=(n,e,t)=>e in n?ld(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,ve=(n,e)=>{for(var t in e||(e={}))vL.call(e,t)&&bL(n,t,e[t]);if(yL)for(var t of yL(e))Bne.call(e,t)&&bL(n,t,e[t]);return n},Va=(n,e)=>jne(n,Mne(e)),wL=n=>ld(n,"__esModule",{value:!0});var _=(n,e)=>()=>(n&&(e=n(n=0)),e);var y=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports),Ms=(n,e)=>{for(var t in e)ld(n,t,{get:e[t],enumerable:!0})},DL=(n,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of One(e))!vL.call(n,r)&&(t||r!=="default")&&ld(n,r,{get:()=>e[r],enumerable:!(i=Ane(e,r))||i.enumerable});return n},x=(n,e)=>DL(wL(ld(n!=null?Ine(Nne(n)):{},"default",!e&&n&&n.__esModule?{get:()=>n.default,enumerable:!0}:{value:n,enumerable:!0})),n),Uo=(n=>(e,t)=>n&&n.get(e)||(t=DL(wL({}),e,1),n&&n.set(e,t),t))(typeof WeakMap!="undefined"?new WeakMap:0);var xL=y((REe,CL)=>{var _u=1e3,Ru=_u*60,Lu=Ru*60,el=Lu*24,Hne=el*7,qne=el*365.25;CL.exports=function(n,e){e=e||{};var t=typeof n;if(t==="string"&&n.length>0)return Yne(n);if(t==="number"&&isFinite(n))return e.long?Zne(n):Wne(n);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(n))};function Yne(n){if(n=String(n),!(n.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(n);if(!!e){var t=parseFloat(e[1]),i=(e[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return t*qne;case"weeks":case"week":case"w":return t*Hne;case"days":case"day":case"d":return t*el;case"hours":case"hour":case"hrs":case"hr":case"h":return t*Lu;case"minutes":case"minute":case"mins":case"min":case"m":return t*Ru;case"seconds":case"second":case"secs":case"sec":case"s":return t*_u;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}}}function Wne(n){var e=Math.abs(n);return e>=el?Math.round(n/el)+"d":e>=Lu?Math.round(n/Lu)+"h":e>=Ru?Math.round(n/Ru)+"m":e>=_u?Math.round(n/_u)+"s":n+"ms"}function Zne(n){var e=Math.abs(n);return e>=el?Nf(n,e,el,"day"):e>=Lu?Nf(n,e,Lu,"hour"):e>=Ru?Nf(n,e,Ru,"minute"):e>=_u?Nf(n,e,_u,"second"):n+" ms"}function Nf(n,e,t,i){var r=e>=t*1.5;return Math.round(n/t)+" "+i+(r?"s":"")}});var sx=y((LEe,SL)=>{function Jne(n){t.debug=t,t.default=t,t.coerce=l,t.disable=o,t.enable=r,t.enabled=s,t.humanize=xL(),t.destroy=u,Object.keys(n).forEach(c=>{t[c]=n[c]}),t.names=[],t.skips=[],t.formatters={};function e(c){let h=0;for(let d=0;d{if(N==="%%")return"%";T++;let X=t.formatters[H];if(typeof X=="function"){let B=m[T];N=X.call(b,B),m.splice(T,1),T--}return N}),t.formatArgs.call(b,m),(b.log||t.log).apply(b,m)}return f.namespace=c,f.useColors=t.useColors(),f.color=t.selectColor(c),f.extend=i,f.destroy=t.destroy,Object.defineProperty(f,"enabled",{enumerable:!0,configurable:!1,get:()=>d!==null?d:(g!==t.namespaces&&(g=t.namespaces,p=t.enabled(c)),p),set:m=>{d=m}}),typeof t.init=="function"&&t.init(f),f}function i(c,h){let d=t(this.namespace+(typeof h>"u"?":":h)+c);return d.log=this.log,d}function r(c){t.save(c),t.namespaces=c,t.names=[],t.skips=[];let h,d=(typeof c=="string"?c:"").split(/[\s,]+/),g=d.length;for(h=0;h"-"+h)].join(",");return t.enable(""),c}function s(c){if(c[c.length-1]==="*")return!0;let h,d;for(h=0,d=t.skips.length;h{Mn.formatArgs=Xne;Mn.save=Une;Mn.load=Gne;Mn.useColors=$ne;Mn.storage=Kne();Mn.destroy=(()=>{let n=!1;return()=>{n||(n=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();Mn.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function $ne(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function Xne(n){if(n[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+n[0]+(this.useColors?"%c ":" ")+"+"+Bf.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;n.splice(1,0,e,"color: inherit");let t=0,i=0;n[0].replace(/%[a-zA-Z%]/g,r=>{r!=="%%"&&(t++,r==="%c"&&(i=t))}),n.splice(i,0,e)}Mn.log=console.debug||console.log||(()=>{});function Une(n){try{n?Mn.storage.setItem("debug",n):Mn.storage.removeItem("debug")}catch{}}function Gne(){let n;try{n=Mn.storage.getItem("debug")}catch{}return!n&&typeof process<"u"&&"env"in process&&(n=process.env.DEBUG),n}function Kne(){try{return localStorage}catch{}}Bf.exports=sx()(Mn);var{formatters:Qne}=Bf.exports;Qne.j=function(n){try{return JSON.stringify(n)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var EL=y((FEe,kL)=>{"use strict";kL.exports=(n,e=process.argv)=>{let t=n.startsWith("-")?"":n.length===1?"-":"--",i=e.indexOf(t+n),r=e.indexOf("--");return i!==-1&&(r===-1||i{"use strict";var zne=require("os"),PL=require("tty"),Qn=EL(),{env:di}=process,Os;Qn("no-color")||Qn("no-colors")||Qn("color=false")||Qn("color=never")?Os=0:(Qn("color")||Qn("colors")||Qn("color=true")||Qn("color=always"))&&(Os=1);"FORCE_COLOR"in di&&(di.FORCE_COLOR==="true"?Os=1:di.FORCE_COLOR==="false"?Os=0:Os=di.FORCE_COLOR.length===0?1:Math.min(parseInt(di.FORCE_COLOR,10),3));function ax(n){return n===0?!1:{level:n,hasBasic:!0,has256:n>=2,has16m:n>=3}}function lx(n,e){if(Os===0)return 0;if(Qn("color=16m")||Qn("color=full")||Qn("color=truecolor"))return 3;if(Qn("color=256"))return 2;if(n&&!e&&Os===void 0)return 0;let t=Os||0;if(di.TERM==="dumb")return t;if(process.platform==="win32"){let i=zne.release().split(".");return Number(i[0])>=10&&Number(i[2])>=10586?Number(i[2])>=14931?3:2:1}if("CI"in di)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(i=>i in di)||di.CI_NAME==="codeship"?1:t;if("TEAMCITY_VERSION"in di)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(di.TEAMCITY_VERSION)?1:0;if(di.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in di){let i=parseInt((di.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(di.TERM_PROGRAM){case"iTerm.app":return i>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(di.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(di.TERM)||"COLORTERM"in di?1:t}function Vne(n){let e=lx(n,n&&n.isTTY);return ax(e)}_L.exports={supportsColor:Vne,stdout:ax(lx(!0,PL.isatty(1))),stderr:ax(lx(!0,PL.isatty(2)))}});var FL=y((vi,qf)=>{var ere=require("tty"),Hf=require("util");vi.init=are;vi.log=rre;vi.formatArgs=ire;vi.save=ore;vi.load=sre;vi.useColors=tre;vi.destroy=Hf.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");vi.colors=[6,2,3,4,5,1];try{let n=RL();n&&(n.stderr||n).level>=2&&(vi.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}vi.inspectOpts=Object.keys(process.env).filter(n=>/^debug_/i.test(n)).reduce((n,e)=>{let t=e.substring(6).toLowerCase().replace(/_([a-z])/g,(r,o)=>o.toUpperCase()),i=process.env[e];return/^(yes|on|true|enabled)$/i.test(i)?i=!0:/^(no|off|false|disabled)$/i.test(i)?i=!1:i==="null"?i=null:i=Number(i),n[t]=i,n},{});function tre(){return"colors"in vi.inspectOpts?Boolean(vi.inspectOpts.colors):ere.isatty(process.stderr.fd)}function ire(n){let{namespace:e,useColors:t}=this;if(t){let i=this.color,r="\x1B[3"+(i<8?i:"8;5;"+i),o=` ${r};1m${e} \x1B[0m`;n[0]=o+n[0].split(` `).join(` -`+o),n.push(r+"m+"+Dp.exports.humanize(this.diff)+"\x1B[0m")}else n[0]=Cie()+e+" "+n[0]}function Cie(){return fi.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Sie(...n){return process.stderr.write(wp.format(...n)+` -`)}function Tie(n){n?process.env.DEBUG=n:delete process.env.DEBUG}function kie(){return process.env.DEBUG}function Eie(n){n.inspectOpts={};let e=Object.keys(fi.inspectOpts);for(let t=0;te.trim()).join(" ")};FR.O=function(n){return this.inspectOpts.colors=this.useColors,wp.inspect(n,this.inspectOpts)}});var Ot=m((eke,_x)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?_x.exports=kR():_x.exports=IR()});var AR=m((tke,jR)=>{"use strict";jR.exports=Pie;function yu(n){return n instanceof Buffer?Buffer.from(n):new n.constructor(n.buffer.slice(),n.byteOffset,n.length)}function Pie(n){if(n=n||{},n.circles)return _ie(n);return n.proto?i:t;function e(r,o){for(var s=Object.keys(r),a=new Array(s.length),l=0;l{var Rie=require("util"),Ya=Ot()("log4js:configuration"),xp=[],Cp=[],OR=n=>!n,MR=n=>n&&typeof n=="object"&&!Array.isArray(n),Lie=n=>/^[A-Za-z][A-Za-z0-9_]*$/g.test(n),Fie=n=>n&&typeof n=="number"&&Number.isInteger(n),Iie=n=>{Cp.push(n),Ya(`Added listener, now ${Cp.length} listeners`)},jie=n=>{xp.push(n),Ya(`Added pre-processing listener, now ${xp.length} listeners`)},NR=(n,e,t)=>{(Array.isArray(e)?e:[e]).forEach(r=>{if(r)throw new Error(`Problem with log4js configuration: (${Rie.inspect(n,{depth:5})}) - ${t}`)})},Aie=n=>{Ya("New configuration to be validated: ",n),NR(n,OR(MR(n)),"must be an object."),Ya(`Calling pre-processing listeners (${xp.length})`),xp.forEach(e=>e(n)),Ya("Configuration pre-processing finished."),Ya(`Calling configuration listeners (${Cp.length})`),Cp.forEach(e=>e(n)),Ya("Configuration finished.")};BR.exports={configure:Aie,addListener:Iie,addPreProcessingListener:jie,throwExceptionIf:NR,anObject:MR,anInteger:Fie,validIdentifier:Lie,not:OR}});var Sp=m((nke,Wn)=>{"use strict";function HR(n,e){for(var t=n.toString();t.length-1?r:o,a=Za(e.getHours()),l=Za(e.getMinutes()),u=Za(e.getSeconds()),c=HR(e.getMilliseconds(),3),h=Oie(e.getTimezoneOffset()),d=n.replace(/dd/g,t).replace(/MM/g,i).replace(/y{1,4}/g,s).replace(/hh/g,a).replace(/mm/g,l).replace(/ss/g,u).replace(/SSS/g,c).replace(/O/g,h);return d}function Ja(n,e,t,i){n["set"+(i?"":"UTC")+e](t)}function Mie(n,e,t){var i=n.indexOf("O")<0,r=[{pattern:/y{1,4}/,regexp:"\\d{1,4}",fn:function(c,h){Ja(c,"FullYear",h,i)}},{pattern:/MM/,regexp:"\\d{1,2}",fn:function(c,h){Ja(c,"Month",h-1,i)}},{pattern:/dd/,regexp:"\\d{1,2}",fn:function(c,h){Ja(c,"Date",h,i)}},{pattern:/hh/,regexp:"\\d{1,2}",fn:function(c,h){Ja(c,"Hours",h,i)}},{pattern:/mm/,regexp:"\\d\\d",fn:function(c,h){Ja(c,"Minutes",h,i)}},{pattern:/ss/,regexp:"\\d\\d",fn:function(c,h){Ja(c,"Seconds",h,i)}},{pattern:/SSS/,regexp:"\\d\\d\\d",fn:function(c,h){Ja(c,"Milliseconds",h,i)}},{pattern:/O/,regexp:"[+-]\\d{1,2}:?\\d{2}?|Z",fn:function(c,h){h==="Z"?h=0:h=h.replace(":","");var d=Math.abs(h),g=(h>0?-1:1)*(d%100+Math.floor(d/100)*60);c.setUTCMinutes(c.getUTCMinutes()+g)}}],o=r.reduce(function(c,h){return h.pattern.test(c.regexp)?(h.index=c.regexp.match(h.pattern).index,c.regexp=c.regexp.replace(h.pattern,"("+h.regexp+")")):h.index=-1,c},{regexp:n,index:[]}),s=r.filter(function(c){return c.index>-1});s.sort(function(c,h){return c.index-h.index});var a=new RegExp(o.regexp),l=a.exec(e);if(l){var u=t||Wn.exports.now();return s.forEach(function(c,h){c.fn(u,l[h+1])}),u}throw new Error("String '"+e+"' could not be parsed as '"+n+"'")}function Nie(n,e,t){if(!n)throw new Error("pattern must be supplied");return Mie(n,e,t)}function Bie(){return new Date}Wn.exports=qR;Wn.exports.asString=qR;Wn.exports.parse=Nie;Wn.exports.now=Bie;Wn.exports.ISO8601_FORMAT="yyyy-MM-ddThh:mm:ss.SSS";Wn.exports.ISO8601_WITH_TZ_OFFSET_FORMAT="yyyy-MM-ddThh:mm:ss.SSSO";Wn.exports.DATETIME_FORMAT="dd MM yyyy hh:mm:ss.SSS";Wn.exports.ABSOLUTETIME_FORMAT="hh:mm:ss.SSS"});var Lx=m((rke,zR)=>{var Ss=Sp(),YR=require("os"),$h=require("util"),WR=require("path"),ZR={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[90,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[91,39],yellow:[33,39]};function JR(n){return n?`\x1B[${ZR[n][0]}m`:""}function $R(n){return n?`\x1B[${ZR[n][1]}m`:""}function Hie(n,e){return JR(e)+n+$R(e)}function XR(n,e){return Hie($h.format("[%s] [%s] %s - ",Ss.asString(n.startTime),n.level.toString(),n.categoryName),e)}function UR(n){return XR(n)+$h.format(...n.data)}function Tp(n){return XR(n,n.level.colour)+$h.format(...n.data)}function GR(n){return $h.format(...n.data)}function QR(n){return n.data[0]}function KR(n,e){let t="%r %p %c - %m%n",i=/%(-?[0-9]+)?(\.?-?[0-9]+)?([[\]cdhmnprzxXyflos%])(\{([^}]+)\})?|([^%]+)/;n=n||t;function r(I,M){let J=I.categoryName;if(M){let K=parseInt(M,10),ae=J.split(".");KK&&(J=ae.slice(-K).join(WR.sep))}return J}function D(I){return I.lineNumber?`${I.lineNumber}`:""}function S(I){return I.columnNumber?`${I.columnNumber}`:""}function F(I){return I.callStack||""}let L={c:r,d:o,h:s,m:a,n:l,p:u,r:c,"[":h,"]":d,y:p,z:f,"%":g,x:b,X:v,f:w,l:D,o:S,s:F};function j(I,M,J){return L[I](M,J)}function W(I,M){let J;return I?(J=parseInt(I.substr(1),10),J>0?M.slice(0,J):M.slice(J)):M}function B(I,M){let J;if(I)if(I.charAt(0)==="-")for(J=parseInt(I.substr(1),10);M.length{var Yt=Wa(),VR=["white","grey","black","blue","cyan","green","magenta","red","yellow"],zt=class{constructor(e,t,i){this.level=e,this.levelStr=t,this.colour=i}toString(){return this.levelStr}static getLevel(e,t){return e?e instanceof zt?e:(e instanceof Object&&e.levelStr&&(e=e.levelStr),zt[e.toString().toUpperCase()]||t):t}static addLevels(e){e&&(Object.keys(e).forEach(i=>{let r=i.toUpperCase();zt[r]=new zt(e[i].value,r,e[i].colour);let o=zt.levels.findIndex(s=>s.levelStr===r);o>-1?zt.levels[o]=zt[r]:zt.levels.push(zt[r])}),zt.levels.sort((i,r)=>i.level-r.level))}isLessThanOrEqualTo(e){return typeof e=="string"&&(e=zt.getLevel(e)),this.level<=e.level}isGreaterThanOrEqualTo(e){return typeof e=="string"&&(e=zt.getLevel(e)),this.level>=e.level}isEqualTo(e){return typeof e=="string"&&(e=zt.getLevel(e)),this.level===e.level}};zt.levels=[];zt.addLevels({ALL:{value:Number.MIN_VALUE,colour:"grey"},TRACE:{value:5e3,colour:"blue"},DEBUG:{value:1e4,colour:"cyan"},INFO:{value:2e4,colour:"green"},WARN:{value:3e4,colour:"yellow"},ERROR:{value:4e4,colour:"red"},FATAL:{value:5e4,colour:"magenta"},MARK:{value:9007199254740992,colour:"grey"},OFF:{value:Number.MAX_VALUE,colour:"grey"}});Yt.addListener(n=>{let e=n.levels;e&&(Yt.throwExceptionIf(n,Yt.not(Yt.anObject(e)),"levels must be an object"),Object.keys(e).forEach(i=>{Yt.throwExceptionIf(n,Yt.not(Yt.validIdentifier(i)),`level name "${i}" is not a valid identifier (must start with a letter, only contain A-Z,a-z,0-9,_)`),Yt.throwExceptionIf(n,Yt.not(Yt.anObject(e[i])),`level "${i}" must be an object`),Yt.throwExceptionIf(n,Yt.not(e[i].value),`level "${i}" must have a 'value' property`),Yt.throwExceptionIf(n,Yt.not(Yt.anInteger(e[i].value)),`level "${i}".value must have an integer value`),Yt.throwExceptionIf(n,Yt.not(e[i].colour),`level "${i}" must have a 'colour' property`),Yt.throwExceptionIf(n,Yt.not(VR.indexOf(e[i].colour)>-1),`level "${i}".colour must be one of ${VR.join(", ")}`)}))});Yt.addListener(n=>{zt.addLevels(n.levels)});eL.exports=zt});var cL=m(Uh=>{"use strict";var{parse:nL,stringify:rL}=JSON,{keys:qie}=Object,Xh=String,oL="string",tL={},kp="object",sL=(n,e)=>e,Yie=n=>n instanceof Xh?Xh(n):n,Wie=(n,e)=>typeof e===oL?new Xh(e):e,aL=(n,e,t,i)=>{let r=[];for(let o=qie(t),{length:s}=o,a=0;a{let i=Xh(e.push(t)-1);return n.set(t,i),i},lL=(n,e)=>{let t=nL(n,Wie).map(Yie),i=t[0],r=e||sL,o=typeof i===kp&&i?aL(t,new Set,i,r):i;return r.call({"":o},"",o)};Uh.parse=lL;var uL=(n,e,t)=>{let i=e&&typeof e===kp?(c,h)=>c===""||-1nL(uL(n));Uh.toJSON=Zie;var Jie=n=>lL(rL(n));Uh.fromJSON=Jie});var Fx=m((ake,gL)=>{var hL=cL(),dL=$a(),Gh=class{constructor(e,t,i,r,o){this.startTime=new Date,this.categoryName=e,this.data=i,this.level=t,this.context=Object.assign({},r),this.pid=process.pid,o&&(this.functionName=o.functionName,this.fileName=o.fileName,this.lineNumber=o.lineNumber,this.columnNumber=o.columnNumber,this.callStack=o.callStack)}serialise(){let e=this.data.map(t=>(t&&t.message&&t.stack&&(t=Object.assign({message:t.message,stack:t.stack},t)),t));return this.data=e,hL.stringify(this)}static deserialise(e){let t;try{let i=hL.parse(e);i.data=i.data.map(r=>{if(r&&r.message&&r.stack){let o=new Error(r);Object.keys(r).forEach(s=>{o[s]=r[s]}),r=o}return r}),t=new Gh(i.categoryName,dL.getLevel(i.level.levelStr),i.data,i.context),t.startTime=new Date(i.startTime),t.pid=i.pid,t.cluster=i.cluster}catch(i){t=new Gh("log4js",dL.ERROR,["Unable to parse log:",e,"because: ",i])}return t}};gL.exports=Gh});var Pp=m((lke,mL)=>{var Zn=Ot()("log4js:clustering"),$ie=Fx(),Xie=Wa(),vu=!1,Xr=null;try{Xr=require("cluster")}catch{Zn("cluster module not present"),vu=!0}var jx=[],Kh=!1,Qh="NODE_APP_INSTANCE",fL=()=>Kh&&process.env[Qh]==="0",Ix=()=>vu||Xr.isMaster||fL(),pL=n=>{jx.forEach(e=>e(n))},Ep=(n,e)=>{if(Zn("cluster message received from worker ",n,": ",e),n.topic&&n.data&&(e=n,n=void 0),e&&e.topic&&e.topic==="log4js:message"){Zn("received message: ",e.data);let t=$ie.deserialise(e.data);pL(t)}};vu||Xie.addListener(n=>{jx.length=0,{pm2:Kh,disableClustering:vu,pm2InstanceVar:Qh="NODE_APP_INSTANCE"}=n,Zn(`clustering disabled ? ${vu}`),Zn(`cluster.isMaster ? ${Xr&&Xr.isMaster}`),Zn(`pm2 enabled ? ${Kh}`),Zn(`pm2InstanceVar = ${Qh}`),Zn(`process.env[${Qh}] = ${process.env[Qh]}`),Kh&&process.removeListener("message",Ep),Xr&&Xr.removeListener&&Xr.removeListener("message",Ep),vu||n.disableClustering?Zn("Not listening for cluster messages, because clustering disabled."):fL()?(Zn("listening for PM2 broadcast messages"),process.on("message",Ep)):Xr.isMaster?(Zn("listening for cluster messages"),Xr.on("message",Ep)):Zn("not listening for messages, because we are not a master process")});mL.exports={onlyOnMaster:(n,e)=>Ix()?n():e,isMaster:Ix,send:n=>{Ix()?pL(n):(Kh||(n.cluster={workerId:Xr.worker.id,worker:process.pid}),process.send({topic:"log4js:message",data:n.serialise()}))},onMessage:n=>{jx.push(n)}}});var wL=m((uke,vL)=>{function Uie(n){if(typeof n=="number"&&Number.isInteger(n))return n;let e={K:1024,M:1024*1024,G:1024*1024*1024},t=Object.keys(e),i=n.substr(n.length-1).toLocaleUpperCase(),r=n.substring(0,n.length-1).trim();if(t.indexOf(i)<0||!Number.isInteger(Number(r)))throw Error(`maxLogSize: "${n}" is invalid`);return r*e[i]}function Gie(n,e){let t=Object.assign({},e);return Object.keys(n).forEach(i=>{t[i]&&(t[i]=n[i](e[i]))}),t}function bL(n){return Gie({maxLogSize:Uie},n)}var yL={file:bL,fileSync:bL};vL.exports.modifyConfig=n=>yL[n.type]?yL[n.type](n):n});var xL=m((cke,DL)=>{var Qie=console.log.bind(console);function Kie(n,e){return t=>{Qie(n(t,e))}}function zie(n,e){let t=e.colouredLayout;return n.layout&&(t=e.layout(n.layout.type,n.layout)),Kie(t,n.timezoneOffset)}DL.exports.configure=zie});var SL=m(CL=>{function Vie(n,e){return t=>{process.stdout.write(`${n(t,e)} -`)}}function ene(n,e){let t=e.colouredLayout;return n.layout&&(t=e.layout(n.layout.type,n.layout)),Vie(t,n.timezoneOffset)}CL.configure=ene});var kL=m((dke,TL)=>{function tne(n,e){return t=>{process.stderr.write(`${n(t,e)} -`)}}function ine(n,e){let t=e.colouredLayout;return n.layout&&(t=e.layout(n.layout.type,n.layout)),tne(t,n.timezoneOffset)}TL.exports.configure=ine});var PL=m((gke,EL)=>{function nne(n,e,t,i){let r=i.getLevel(n),o=i.getLevel(e,i.FATAL);return s=>{let a=s.level;a.isGreaterThanOrEqualTo(r)&&a.isLessThanOrEqualTo(o)&&t(s)}}function rne(n,e,t,i){let r=t(n.appender);return nne(n.level,n.maxLevel,r,i)}EL.exports.configure=rne});var LL=m((fke,RL)=>{var _L=Ot()("log4js:categoryFilter");function one(n,e){return typeof n=="string"&&(n=[n]),t=>{_L(`Checking ${t.categoryName} against ${n}`),n.indexOf(t.categoryName)===-1&&(_L("Not excluded, sending to appender"),e(t))}}function sne(n,e,t){let i=t(n.appender);return one(n.exclude,i)}RL.exports.configure=sne});var jL=m((pke,IL)=>{var FL=Ot()("log4js:noLogFilter");function ane(n){return n.filter(t=>t!=null&&t!=="")}function lne(n,e){return t=>{FL(`Checking data: ${t.data} against filters: ${n}`),typeof n=="string"&&(n=[n]),n=ane(n);let i=new RegExp(n.join("|"),"i");(n.length===0||t.data.findIndex(r=>i.test(r))<0)&&(FL("Not excluded, sending to appender"),e(t))}}function une(n,e,t){let i=t(n.appender);return lne(n.exclude,i)}IL.exports.configure=une});var gt=m(Ax=>{"use strict";Ax.fromCallback=function(n){return Object.defineProperty(function(...e){if(typeof e[e.length-1]=="function")n.apply(this,e);else return new Promise((t,i)=>{n.call(this,...e,(r,o)=>r!=null?i(r):t(o))})},"name",{value:n.name})};Ax.fromPromise=function(n){return Object.defineProperty(function(...e){let t=e[e.length-1];if(typeof t!="function")return n.apply(this,e);n.apply(this,e.slice(0,-1)).then(i=>t(null,i),t)},"name",{value:n.name})}});var OL=m((bke,AL)=>{var Ts=require("constants"),cne=process.cwd,_p=null,hne=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return _p||(_p=cne.call(process)),_p};try{process.cwd()}catch{}typeof process.chdir=="function"&&(Ox=process.chdir,process.chdir=function(n){_p=null,Ox.call(process,n)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Ox));var Ox;AL.exports=dne;function dne(n){Ts.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&e(n),n.lutimes||t(n),n.chown=o(n.chown),n.fchown=o(n.fchown),n.lchown=o(n.lchown),n.chmod=i(n.chmod),n.fchmod=i(n.fchmod),n.lchmod=i(n.lchmod),n.chownSync=s(n.chownSync),n.fchownSync=s(n.fchownSync),n.lchownSync=s(n.lchownSync),n.chmodSync=r(n.chmodSync),n.fchmodSync=r(n.fchmodSync),n.lchmodSync=r(n.lchmodSync),n.stat=a(n.stat),n.fstat=a(n.fstat),n.lstat=a(n.lstat),n.statSync=l(n.statSync),n.fstatSync=l(n.fstatSync),n.lstatSync=l(n.lstatSync),n.lchmod||(n.lchmod=function(c,h,d){d&&process.nextTick(d)},n.lchmodSync=function(){}),n.lchown||(n.lchown=function(c,h,d,g){g&&process.nextTick(g)},n.lchownSync=function(){}),hne==="win32"&&(n.rename=function(c){return function(h,d,g){var f=Date.now(),p=0;c(h,d,function b(v){if(v&&(v.code==="EACCES"||v.code==="EPERM")&&Date.now()-f<6e4){setTimeout(function(){n.stat(d,function(w,D){w&&w.code==="ENOENT"?c(h,d,b):g(v)})},p),p<100&&(p+=10);return}g&&g(v)})}}(n.rename)),n.read=function(c){function h(d,g,f,p,b,v){var w;if(v&&typeof v=="function"){var D=0;w=function(S,F,L){if(S&&S.code==="EAGAIN"&&D<10)return D++,c.call(n,d,g,f,p,b,w);v.apply(this,arguments)}}return c.call(n,d,g,f,p,b,w)}return Object.setPrototypeOf&&Object.setPrototypeOf(h,c),h}(n.read),n.readSync=function(c){return function(h,d,g,f,p){for(var b=0;;)try{return c.call(n,h,d,g,f,p)}catch(v){if(v.code==="EAGAIN"&&b<10){b++;continue}throw v}}}(n.readSync);function e(c){c.lchmod=function(h,d,g){c.open(h,Ts.O_WRONLY|Ts.O_SYMLINK,d,function(f,p){if(f){g&&g(f);return}c.fchmod(p,d,function(b){c.close(p,function(v){g&&g(b||v)})})})},c.lchmodSync=function(h,d){var g=c.openSync(h,Ts.O_WRONLY|Ts.O_SYMLINK,d),f=!0,p;try{p=c.fchmodSync(g,d),f=!1}finally{if(f)try{c.closeSync(g)}catch{}else c.closeSync(g)}return p}}function t(c){Ts.hasOwnProperty("O_SYMLINK")?(c.lutimes=function(h,d,g,f){c.open(h,Ts.O_SYMLINK,function(p,b){if(p){f&&f(p);return}c.futimes(b,d,g,function(v){c.close(b,function(w){f&&f(v||w)})})})},c.lutimesSync=function(h,d,g){var f=c.openSync(h,Ts.O_SYMLINK),p,b=!0;try{p=c.futimesSync(f,d,g),b=!1}finally{if(b)try{c.closeSync(f)}catch{}else c.closeSync(f)}return p}):(c.lutimes=function(h,d,g,f){f&&process.nextTick(f)},c.lutimesSync=function(){})}function i(c){return c&&function(h,d,g){return c.call(n,h,d,function(f){u(f)&&(f=null),g&&g.apply(this,arguments)})}}function r(c){return c&&function(h,d){try{return c.call(n,h,d)}catch(g){if(!u(g))throw g}}}function o(c){return c&&function(h,d,g,f){return c.call(n,h,d,g,function(p){u(p)&&(p=null),f&&f.apply(this,arguments)})}}function s(c){return c&&function(h,d,g){try{return c.call(n,h,d,g)}catch(f){if(!u(f))throw f}}}function a(c){return c&&function(h,d,g){typeof d=="function"&&(g=d,d=null);function f(p,b){b&&(b.uid<0&&(b.uid+=4294967296),b.gid<0&&(b.gid+=4294967296)),g&&g.apply(this,arguments)}return d?c.call(n,h,d,f):c.call(n,h,f)}}function l(c){return c&&function(h,d){var g=d?c.call(n,h,d):c.call(n,h);return g.uid<0&&(g.uid+=4294967296),g.gid<0&&(g.gid+=4294967296),g}}function u(c){if(!c||c.code==="ENOSYS")return!0;var h=!process.getuid||process.getuid()!==0;return!!(h&&(c.code==="EINVAL"||c.code==="EPERM"))}}});var BL=m((yke,NL)=>{var ML=require("stream").Stream;NL.exports=gne;function gne(n){return{ReadStream:e,WriteStream:t};function e(i,r){if(!(this instanceof e))return new e(i,r);ML.call(this);var o=this;this.path=i,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,r=r||{};for(var s=Object.keys(r),a=0,l=s.length;athis.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){o._read()});return}n.open(this.path,this.flags,this.mode,function(c,h){if(c){o.emit("error",c),o.readable=!1;return}o.fd=h,o.emit("open",h),o._read()})}function t(i,r){if(!(this instanceof t))return new t(i,r);ML.call(this),this.path=i,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,r=r||{};for(var o=Object.keys(r),s=0,a=o.length;s= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=n.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var qL=m((vke,HL)=>{"use strict";HL.exports=pne;var fne=Object.getPrototypeOf||function(n){return n.__proto__};function pne(n){if(n===null||typeof n!="object")return n;if(n instanceof Object)var e={__proto__:fne(n)};else var e=Object.create(null);return Object.getOwnPropertyNames(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}),e}});var Qe=m((wke,Nx)=>{var pi=require("fs"),mne=OL(),bne=BL(),yne=qL(),Rp=require("util"),mr,Lp;typeof Symbol=="function"&&typeof Symbol.for=="function"?(mr=Symbol.for("graceful-fs.queue"),Lp=Symbol.for("graceful-fs.previous")):(mr="___graceful-fs.queue",Lp="___graceful-fs.previous");function vne(){}function WL(n,e){Object.defineProperty(n,mr,{get:function(){return e}})}var zh=vne;Rp.debuglog?zh=Rp.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(zh=function(){var n=Rp.format.apply(Rp,arguments);n="GFS4: "+n.split(/\n/).join(` -GFS4: `),console.error(n)});pi[mr]||(YL=global[mr]||[],WL(pi,YL),pi.close=function(n){function e(t,i){return n.call(pi,t,function(r){r||ks(),typeof i=="function"&&i.apply(this,arguments)})}return Object.defineProperty(e,Lp,{value:n}),e}(pi.close),pi.closeSync=function(n){function e(t){n.apply(pi,arguments),ks()}return Object.defineProperty(e,Lp,{value:n}),e}(pi.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){zh(pi[mr]),require("assert").equal(pi[mr].length,0)}));var YL;global[mr]||WL(global,pi[mr]);Nx.exports=Mx(yne(pi));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!pi.__patched&&(Nx.exports=Mx(pi),pi.__patched=!0);function Mx(n){mne(n),n.gracefulify=Mx,n.createReadStream=F,n.createWriteStream=L;var e=n.readFile;n.readFile=t;function t(B,N,I){return typeof N=="function"&&(I=N,N=null),M(B,N,I);function M(J,K,ae){return e(J,K,function(je){je&&(je.code==="EMFILE"||je.code==="ENFILE")?wu([M,[J,K,ae]]):(typeof ae=="function"&&ae.apply(this,arguments),ks())})}}var i=n.writeFile;n.writeFile=r;function r(B,N,I,M){return typeof I=="function"&&(M=I,I=null),J(B,N,I,M);function J(K,ae,je,_e){return i(K,ae,je,function(Ve){Ve&&(Ve.code==="EMFILE"||Ve.code==="ENFILE")?wu([J,[K,ae,je,_e]]):(typeof _e=="function"&&_e.apply(this,arguments),ks())})}}var o=n.appendFile;o&&(n.appendFile=s);function s(B,N,I,M){return typeof I=="function"&&(M=I,I=null),J(B,N,I,M);function J(K,ae,je,_e){return o(K,ae,je,function(Ve){Ve&&(Ve.code==="EMFILE"||Ve.code==="ENFILE")?wu([J,[K,ae,je,_e]]):(typeof _e=="function"&&_e.apply(this,arguments),ks())})}}var a=n.copyFile;a&&(n.copyFile=l);function l(B,N,I,M){return typeof I=="function"&&(M=I,I=0),a(B,N,I,function(J){J&&(J.code==="EMFILE"||J.code==="ENFILE")?wu([a,[B,N,I,M]]):(typeof M=="function"&&M.apply(this,arguments),ks())})}var u=n.readdir;n.readdir=c;function c(B,N,I){var M=[B];return typeof N!="function"?M.push(N):I=N,M.push(J),h(M);function J(K,ae){ae&&ae.sort&&ae.sort(),K&&(K.code==="EMFILE"||K.code==="ENFILE")?wu([h,[M]]):(typeof I=="function"&&I.apply(this,arguments),ks())}}function h(B){return u.apply(n,B)}if(process.version.substr(0,4)==="v0.8"){var d=bne(n);v=d.ReadStream,D=d.WriteStream}var g=n.ReadStream;g&&(v.prototype=Object.create(g.prototype),v.prototype.open=w);var f=n.WriteStream;f&&(D.prototype=Object.create(f.prototype),D.prototype.open=S),Object.defineProperty(n,"ReadStream",{get:function(){return v},set:function(B){v=B},enumerable:!0,configurable:!0}),Object.defineProperty(n,"WriteStream",{get:function(){return D},set:function(B){D=B},enumerable:!0,configurable:!0});var p=v;Object.defineProperty(n,"FileReadStream",{get:function(){return p},set:function(B){p=B},enumerable:!0,configurable:!0});var b=D;Object.defineProperty(n,"FileWriteStream",{get:function(){return b},set:function(B){b=B},enumerable:!0,configurable:!0});function v(B,N){return this instanceof v?(g.apply(this,arguments),this):v.apply(Object.create(v.prototype),arguments)}function w(){var B=this;W(B.path,B.flags,B.mode,function(N,I){N?(B.autoClose&&B.destroy(),B.emit("error",N)):(B.fd=I,B.emit("open",I),B.read())})}function D(B,N){return this instanceof D?(f.apply(this,arguments),this):D.apply(Object.create(D.prototype),arguments)}function S(){var B=this;W(B.path,B.flags,B.mode,function(N,I){N?(B.destroy(),B.emit("error",N)):(B.fd=I,B.emit("open",I))})}function F(B,N){return new n.ReadStream(B,N)}function L(B,N){return new n.WriteStream(B,N)}var j=n.open;n.open=W;function W(B,N,I,M){return typeof I=="function"&&(M=I,I=null),J(B,N,I,M);function J(K,ae,je,_e){return j(K,ae,je,function(Ve,Et){Ve&&(Ve.code==="EMFILE"||Ve.code==="ENFILE")?wu([J,[K,ae,je,_e]]):(typeof _e=="function"&&_e.apply(this,arguments),ks())})}}return n}function wu(n){zh("ENQUEUE",n[0].name,n[1]),pi[mr].push(n)}function ks(){var n=pi[mr].shift();n&&(zh("RETRY",n[0].name,n[1]),n[0].apply(null,n[1]))}});var Xa=m(Es=>{"use strict";var ZL=gt().fromCallback,Pn=Qe(),wne=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(n=>typeof Pn[n]=="function");Object.assign(Es,Pn);wne.forEach(n=>{Es[n]=ZL(Pn[n])});Es.realpath.native=ZL(Pn.realpath.native);Es.exists=function(n,e){return typeof e=="function"?Pn.exists(n,e):new Promise(t=>Pn.exists(n,t))};Es.read=function(n,e,t,i,r,o){return typeof o=="function"?Pn.read(n,e,t,i,r,o):new Promise((s,a)=>{Pn.read(n,e,t,i,r,(l,u,c)=>{if(l)return a(l);s({bytesRead:u,buffer:c})})})};Es.write=function(n,e,...t){return typeof t[t.length-1]=="function"?Pn.write(n,e,...t):new Promise((i,r)=>{Pn.write(n,e,...t,(o,s,a)=>{if(o)return r(o);i({bytesWritten:s,buffer:a})})})};typeof Pn.writev=="function"&&(Es.writev=function(n,e,...t){return typeof t[t.length-1]=="function"?Pn.writev(n,e,...t):new Promise((i,r)=>{Pn.writev(n,e,...t,(o,s,a)=>{if(o)return r(o);i({bytesWritten:s,buffers:a})})})})});var $L=m((xke,JL)=>{"use strict";var Dne=require("path");JL.exports.checkPath=function(e){if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace(Dne.parse(e).root,""))){let i=new Error(`Path contains invalid characters: ${e}`);throw i.code="EINVAL",i}}});var QL=m((Cke,Bx)=>{"use strict";var XL=Xa(),{checkPath:UL}=$L(),GL=n=>{let e={mode:511};return typeof n=="number"?n:ge(ge({},e),n).mode};Bx.exports.makeDir=async(n,e)=>(UL(n),XL.mkdir(n,{mode:GL(e),recursive:!0}));Bx.exports.makeDirSync=(n,e)=>(UL(n),XL.mkdirSync(n,{mode:GL(e),recursive:!0}))});var br=m((Ske,KL)=>{"use strict";var xne=gt().fromPromise,{makeDir:Cne,makeDirSync:Hx}=QL(),qx=xne(Cne);KL.exports={mkdirs:qx,mkdirsSync:Hx,mkdirp:qx,mkdirpSync:Hx,ensureDir:qx,ensureDirSync:Hx}});var Yx=m((Tke,zL)=>{"use strict";var Du=Qe();function Sne(n,e,t,i){Du.open(n,"r+",(r,o)=>{if(r)return i(r);Du.futimes(o,e,t,s=>{Du.close(o,a=>{i&&i(s||a)})})})}function Tne(n,e,t){let i=Du.openSync(n,"r+");return Du.futimesSync(i,e,t),Du.closeSync(i)}zL.exports={utimesMillis:Sne,utimesMillisSync:Tne}});var Ua=m((kke,tF)=>{"use strict";var xu=Xa(),si=require("path"),kne=require("util");function Ene(n,e,t){let i=t.dereference?r=>xu.stat(r,{bigint:!0}):r=>xu.lstat(r,{bigint:!0});return Promise.all([i(n),i(e).catch(r=>{if(r.code==="ENOENT")return null;throw r})]).then(([r,o])=>({srcStat:r,destStat:o}))}function Pne(n,e,t){let i,r=t.dereference?s=>xu.statSync(s,{bigint:!0}):s=>xu.lstatSync(s,{bigint:!0}),o=r(n);try{i=r(e)}catch(s){if(s.code==="ENOENT")return{srcStat:o,destStat:null};throw s}return{srcStat:o,destStat:i}}function _ne(n,e,t,i,r){kne.callbackify(Ene)(n,e,i,(o,s)=>{if(o)return r(o);let{srcStat:a,destStat:l}=s;if(l){if(Vh(a,l)){let u=si.basename(n),c=si.basename(e);return t==="move"&&u!==c&&u.toLowerCase()===c.toLowerCase()?r(null,{srcStat:a,destStat:l,isChangingCase:!0}):r(new Error("Source and destination must not be the same."))}if(a.isDirectory()&&!l.isDirectory())return r(new Error(`Cannot overwrite non-directory '${e}' with directory '${n}'.`));if(!a.isDirectory()&&l.isDirectory())return r(new Error(`Cannot overwrite directory '${e}' with non-directory '${n}'.`))}return a.isDirectory()&&Wx(n,e)?r(new Error(Fp(n,e,t))):r(null,{srcStat:a,destStat:l})})}function Rne(n,e,t,i){let{srcStat:r,destStat:o}=Pne(n,e,i);if(o){if(Vh(r,o)){let s=si.basename(n),a=si.basename(e);if(t==="move"&&s!==a&&s.toLowerCase()===a.toLowerCase())return{srcStat:r,destStat:o,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(r.isDirectory()&&!o.isDirectory())throw new Error(`Cannot overwrite non-directory '${e}' with directory '${n}'.`);if(!r.isDirectory()&&o.isDirectory())throw new Error(`Cannot overwrite directory '${e}' with non-directory '${n}'.`)}if(r.isDirectory()&&Wx(n,e))throw new Error(Fp(n,e,t));return{srcStat:r,destStat:o}}function VL(n,e,t,i,r){let o=si.resolve(si.dirname(n)),s=si.resolve(si.dirname(t));if(s===o||s===si.parse(s).root)return r();xu.stat(s,{bigint:!0},(a,l)=>a?a.code==="ENOENT"?r():r(a):Vh(e,l)?r(new Error(Fp(n,t,i))):VL(n,e,s,i,r))}function eF(n,e,t,i){let r=si.resolve(si.dirname(n)),o=si.resolve(si.dirname(t));if(o===r||o===si.parse(o).root)return;let s;try{s=xu.statSync(o,{bigint:!0})}catch(a){if(a.code==="ENOENT")return;throw a}if(Vh(e,s))throw new Error(Fp(n,t,i));return eF(n,e,o,i)}function Vh(n,e){return e.ino&&e.dev&&e.ino===n.ino&&e.dev===n.dev}function Wx(n,e){let t=si.resolve(n).split(si.sep).filter(r=>r),i=si.resolve(e).split(si.sep).filter(r=>r);return t.reduce((r,o,s)=>r&&i[s]===o,!0)}function Fp(n,e,t){return`Cannot ${t} '${n}' to a subdirectory of itself, '${e}'.`}tF.exports={checkPaths:_ne,checkPathsSync:Rne,checkParentPaths:VL,checkParentPathsSync:eF,isSrcSubdir:Wx,areIdentical:Vh}});var sF=m((Eke,oF)=>{"use strict";var Ci=Qe(),ed=require("path"),Lne=br().mkdirsSync,Fne=Yx().utimesMillisSync,td=Ua();function Ine(n,e,t){typeof t=="function"&&(t={filter:t}),t=t||{},t.clobber="clobber"in t?!!t.clobber:!0,t.overwrite="overwrite"in t?!!t.overwrite:t.clobber,t.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended; +`+o),n.push(r+"m+"+qf.exports.humanize(this.diff)+"\x1B[0m")}else n[0]=nre()+e+" "+n[0]}function nre(){return vi.inspectOpts.hideDate?"":new Date().toISOString()+" "}function rre(...n){return process.stderr.write(Hf.format(...n)+` +`)}function ore(n){n?process.env.DEBUG=n:delete process.env.DEBUG}function sre(){return process.env.DEBUG}function are(n){n.inspectOpts={};let e=Object.keys(vi.inspectOpts);for(let t=0;te.trim()).join(" ")};LL.O=function(n){return this.inspectOpts.colors=this.useColors,Hf.inspect(n,this.inspectOpts)}});var Wt=y((jEe,ux)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?ux.exports=TL():ux.exports=FL()});var jL=y((AEe,IL)=>{"use strict";IL.exports=lre;function Fu(n){return n instanceof Buffer?Buffer.from(n):new n.constructor(n.buffer.slice(),n.byteOffset,n.length)}function lre(n){if(n=n||{},n.circles)return ure(n);return n.proto?i:t;function e(r,o){for(var s=Object.keys(r),a=new Array(s.length),l=0;l{var cre=require("util"),tl=Wt()("log4js:configuration"),Yf=[],Wf=[],AL=n=>!n,ML=n=>n&&typeof n=="object"&&!Array.isArray(n),hre=n=>/^[A-Za-z][A-Za-z0-9_]*$/g.test(n),dre=n=>n&&typeof n=="number"&&Number.isInteger(n),gre=n=>{Wf.push(n),tl(`Added listener, now ${Wf.length} listeners`)},pre=n=>{Yf.push(n),tl(`Added pre-processing listener, now ${Yf.length} listeners`)},OL=(n,e,t)=>{(Array.isArray(e)?e:[e]).forEach(r=>{if(r)throw new Error(`Problem with log4js configuration: (${cre.inspect(n,{depth:5})}) - ${t}`)})},fre=n=>{tl("New configuration to be validated: ",n),OL(n,AL(ML(n)),"must be an object."),tl(`Calling pre-processing listeners (${Yf.length})`),Yf.forEach(e=>e(n)),tl("Configuration pre-processing finished."),tl(`Calling configuration listeners (${Wf.length})`),Wf.forEach(e=>e(n)),tl("Configuration finished.")};NL.exports={configure:fre,addListener:gre,addPreProcessingListener:pre,throwExceptionIf:OL,anObject:ML,anInteger:dre,validIdentifier:hre,not:AL}});var Zf=y((OEe,zn)=>{"use strict";function BL(n,e){for(var t=n.toString();t.length-1?r:o,a=nl(e.getHours()),l=nl(e.getMinutes()),u=nl(e.getSeconds()),c=BL(e.getMilliseconds(),3),h=mre(e.getTimezoneOffset()),d=n.replace(/dd/g,t).replace(/MM/g,i).replace(/y{1,4}/g,s).replace(/hh/g,a).replace(/mm/g,l).replace(/ss/g,u).replace(/SSS/g,c).replace(/O/g,h);return d}function rl(n,e,t,i){n["set"+(i?"":"UTC")+e](t)}function yre(n,e,t){var i=n.indexOf("O")<0,r=[{pattern:/y{1,4}/,regexp:"\\d{1,4}",fn:function(c,h){rl(c,"FullYear",h,i)}},{pattern:/MM/,regexp:"\\d{1,2}",fn:function(c,h){rl(c,"Month",h-1,i)}},{pattern:/dd/,regexp:"\\d{1,2}",fn:function(c,h){rl(c,"Date",h,i)}},{pattern:/hh/,regexp:"\\d{1,2}",fn:function(c,h){rl(c,"Hours",h,i)}},{pattern:/mm/,regexp:"\\d\\d",fn:function(c,h){rl(c,"Minutes",h,i)}},{pattern:/ss/,regexp:"\\d\\d",fn:function(c,h){rl(c,"Seconds",h,i)}},{pattern:/SSS/,regexp:"\\d\\d\\d",fn:function(c,h){rl(c,"Milliseconds",h,i)}},{pattern:/O/,regexp:"[+-]\\d{1,2}:?\\d{2}?|Z",fn:function(c,h){h==="Z"?h=0:h=h.replace(":","");var d=Math.abs(h),g=(h>0?-1:1)*(d%100+Math.floor(d/100)*60);c.setUTCMinutes(c.getUTCMinutes()+g)}}],o=r.reduce(function(c,h){return h.pattern.test(c.regexp)?(h.index=c.regexp.match(h.pattern).index,c.regexp=c.regexp.replace(h.pattern,"("+h.regexp+")")):h.index=-1,c},{regexp:n,index:[]}),s=r.filter(function(c){return c.index>-1});s.sort(function(c,h){return c.index-h.index});var a=new RegExp(o.regexp),l=a.exec(e);if(l){var u=t||zn.exports.now();return s.forEach(function(c,h){c.fn(u,l[h+1])}),u}throw new Error("String '"+e+"' could not be parsed as '"+n+"'")}function bre(n,e,t){if(!n)throw new Error("pattern must be supplied");return yre(n,e,t)}function vre(){return new Date}zn.exports=HL;zn.exports.asString=HL;zn.exports.parse=bre;zn.exports.now=vre;zn.exports.ISO8601_FORMAT="yyyy-MM-ddThh:mm:ss.SSS";zn.exports.ISO8601_WITH_TZ_OFFSET_FORMAT="yyyy-MM-ddThh:mm:ss.SSSO";zn.exports.DATETIME_FORMAT="dd MM yyyy hh:mm:ss.SSS";zn.exports.ABSOLUTETIME_FORMAT="hh:mm:ss.SSS"});var hx=y((NEe,QL)=>{var Ns=Zf(),qL=require("os"),ud=require("util"),YL=require("path"),WL={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[90,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[91,39],yellow:[33,39]};function ZL(n){return n?`\x1B[${WL[n][0]}m`:""}function JL(n){return n?`\x1B[${WL[n][1]}m`:""}function wre(n,e){return ZL(e)+n+JL(e)}function $L(n,e){return wre(ud.format("[%s] [%s] %s - ",Ns.asString(n.startTime),n.level.toString(),n.categoryName),e)}function XL(n){return $L(n)+ud.format(...n.data)}function Jf(n){return $L(n,n.level.colour)+ud.format(...n.data)}function UL(n){return ud.format(...n.data)}function GL(n){return n.data[0]}function KL(n,e){let t="%r %p %c - %m%n",i=/%(-?[0-9]+)?(\.?-?[0-9]+)?([[\]cdhmnprzxXyflos%])(\{([^}]+)\})?|([^%]+)/;n=n||t;function r(F,O){let Z=F.categoryName;if(O){let ie=parseInt(O,10),ge=Z.split(".");ieie&&(Z=ge.slice(-ie).join(YL.sep))}return Z}function D(F){return F.lineNumber?`${F.lineNumber}`:""}function T(F){return F.columnNumber?`${F.columnNumber}`:""}function R(F){return F.callStack||""}let N={c:r,d:o,h:s,m:a,n:l,p:u,r:c,"[":h,"]":d,y:f,z:p,"%":g,x:m,X:b,f:w,l:D,o:T,s:R};function H(F,O,Z){return N[F](O,Z)}function X(F,O){let Z;return F?(Z=parseInt(F.substr(1),10),Z>0?O.slice(0,Z):O.slice(Z)):O}function B(F,O){let Z;if(F)if(F.charAt(0)==="-")for(Z=parseInt(F.substr(1),10);O.length{var Ut=il(),zL=["white","grey","black","blue","cyan","green","magenta","red","yellow"],ni=class{constructor(e,t,i){this.level=e,this.levelStr=t,this.colour=i}toString(){return this.levelStr}static getLevel(e,t){return e?e instanceof ni?e:(e instanceof Object&&e.levelStr&&(e=e.levelStr),ni[e.toString().toUpperCase()]||t):t}static addLevels(e){e&&(Object.keys(e).forEach(i=>{let r=i.toUpperCase();ni[r]=new ni(e[i].value,r,e[i].colour);let o=ni.levels.findIndex(s=>s.levelStr===r);o>-1?ni.levels[o]=ni[r]:ni.levels.push(ni[r])}),ni.levels.sort((i,r)=>i.level-r.level))}isLessThanOrEqualTo(e){return typeof e=="string"&&(e=ni.getLevel(e)),this.level<=e.level}isGreaterThanOrEqualTo(e){return typeof e=="string"&&(e=ni.getLevel(e)),this.level>=e.level}isEqualTo(e){return typeof e=="string"&&(e=ni.getLevel(e)),this.level===e.level}};ni.levels=[];ni.addLevels({ALL:{value:Number.MIN_VALUE,colour:"grey"},TRACE:{value:5e3,colour:"blue"},DEBUG:{value:1e4,colour:"cyan"},INFO:{value:2e4,colour:"green"},WARN:{value:3e4,colour:"yellow"},ERROR:{value:4e4,colour:"red"},FATAL:{value:5e4,colour:"magenta"},MARK:{value:9007199254740992,colour:"grey"},OFF:{value:Number.MAX_VALUE,colour:"grey"}});Ut.addListener(n=>{let e=n.levels;e&&(Ut.throwExceptionIf(n,Ut.not(Ut.anObject(e)),"levels must be an object"),Object.keys(e).forEach(i=>{Ut.throwExceptionIf(n,Ut.not(Ut.validIdentifier(i)),`level name "${i}" is not a valid identifier (must start with a letter, only contain A-Z,a-z,0-9,_)`),Ut.throwExceptionIf(n,Ut.not(Ut.anObject(e[i])),`level "${i}" must be an object`),Ut.throwExceptionIf(n,Ut.not(e[i].value),`level "${i}" must have a 'value' property`),Ut.throwExceptionIf(n,Ut.not(Ut.anInteger(e[i].value)),`level "${i}".value must have an integer value`),Ut.throwExceptionIf(n,Ut.not(e[i].colour),`level "${i}" must have a 'colour' property`),Ut.throwExceptionIf(n,Ut.not(zL.indexOf(e[i].colour)>-1),`level "${i}".colour must be one of ${zL.join(", ")}`)}))});Ut.addListener(n=>{ni.addLevels(n.levels)});VL.exports=ni});var uF=y(hd=>{"use strict";var{parse:iF,stringify:nF}=JSON,{keys:Dre}=Object,cd=String,rF="string",eF={},$f="object",oF=(n,e)=>e,Cre=n=>n instanceof cd?cd(n):n,xre=(n,e)=>typeof e===rF?new cd(e):e,sF=(n,e,t,i)=>{let r=[];for(let o=Dre(t),{length:s}=o,a=0;a{let i=cd(e.push(t)-1);return n.set(t,i),i},aF=(n,e)=>{let t=iF(n,xre).map(Cre),i=t[0],r=e||oF,o=typeof i===$f&&i?sF(t,new Set,i,r):i;return r.call({"":o},"",o)};hd.parse=aF;var lF=(n,e,t)=>{let i=e&&typeof e===$f?(c,h)=>c===""||-1iF(lF(n));hd.toJSON=Sre;var Tre=n=>aF(nF(n));hd.fromJSON=Tre});var dx=y((qEe,dF)=>{var cF=uF(),hF=ol(),dd=class{constructor(e,t,i,r,o){this.startTime=new Date,this.categoryName=e,this.data=i,this.level=t,this.context=Object.assign({},r),this.pid=process.pid,o&&(this.functionName=o.functionName,this.fileName=o.fileName,this.lineNumber=o.lineNumber,this.columnNumber=o.columnNumber,this.callStack=o.callStack)}serialise(){let e=this.data.map(t=>(t&&t.message&&t.stack&&(t=Object.assign({message:t.message,stack:t.stack},t)),t));return this.data=e,cF.stringify(this)}static deserialise(e){let t;try{let i=cF.parse(e);i.data=i.data.map(r=>{if(r&&r.message&&r.stack){let o=new Error(r);Object.keys(r).forEach(s=>{o[s]=r[s]}),r=o}return r}),t=new dd(i.categoryName,hF.getLevel(i.level.levelStr),i.data,i.context),t.startTime=new Date(i.startTime),t.pid=i.pid,t.cluster=i.cluster}catch(i){t=new dd("log4js",hF.ERROR,["Unable to parse log:",e,"because: ",i])}return t}};dF.exports=dd});var Uf=y((YEe,fF)=>{var Vn=Wt()("log4js:clustering"),kre=dx(),Ere=il(),Iu=!1,uo=null;try{uo=require("cluster")}catch{Vn("cluster module not present"),Iu=!0}var px=[],pd=!1,gd="NODE_APP_INSTANCE",gF=()=>pd&&process.env[gd]==="0",gx=()=>Iu||uo.isMaster||gF(),pF=n=>{px.forEach(e=>e(n))},Xf=(n,e)=>{if(Vn("cluster message received from worker ",n,": ",e),n.topic&&n.data&&(e=n,n=void 0),e&&e.topic&&e.topic==="log4js:message"){Vn("received message: ",e.data);let t=kre.deserialise(e.data);pF(t)}};Iu||Ere.addListener(n=>{px.length=0,{pm2:pd,disableClustering:Iu,pm2InstanceVar:gd="NODE_APP_INSTANCE"}=n,Vn(`clustering disabled ? ${Iu}`),Vn(`cluster.isMaster ? ${uo&&uo.isMaster}`),Vn(`pm2 enabled ? ${pd}`),Vn(`pm2InstanceVar = ${gd}`),Vn(`process.env[${gd}] = ${process.env[gd]}`),pd&&process.removeListener("message",Xf),uo&&uo.removeListener&&uo.removeListener("message",Xf),Iu||n.disableClustering?Vn("Not listening for cluster messages, because clustering disabled."):gF()?(Vn("listening for PM2 broadcast messages"),process.on("message",Xf)):uo.isMaster?(Vn("listening for cluster messages"),uo.on("message",Xf)):Vn("not listening for messages, because we are not a master process")});fF.exports={onlyOnMaster:(n,e)=>gx()?n():e,isMaster:gx,send:n=>{gx()?pF(n):(pd||(n.cluster={workerId:uo.worker.id,worker:process.pid}),process.send({topic:"log4js:message",data:n.serialise()}))},onMessage:n=>{px.push(n)}}});var vF=y((WEe,bF)=>{function Pre(n){if(typeof n=="number"&&Number.isInteger(n))return n;let e={K:1024,M:1024*1024,G:1024*1024*1024},t=Object.keys(e),i=n.substr(n.length-1).toLocaleUpperCase(),r=n.substring(0,n.length-1).trim();if(t.indexOf(i)<0||!Number.isInteger(Number(r)))throw Error(`maxLogSize: "${n}" is invalid`);return r*e[i]}function _re(n,e){let t=Object.assign({},e);return Object.keys(n).forEach(i=>{t[i]&&(t[i]=n[i](e[i]))}),t}function mF(n){return _re({maxLogSize:Pre},n)}var yF={file:mF,fileSync:mF};bF.exports.modifyConfig=n=>yF[n.type]?yF[n.type](n):n});var DF=y((ZEe,wF)=>{var Rre=console.log.bind(console);function Lre(n,e){return t=>{Rre(n(t,e))}}function Fre(n,e){let t=e.colouredLayout;return n.layout&&(t=e.layout(n.layout.type,n.layout)),Lre(t,n.timezoneOffset)}wF.exports.configure=Fre});var xF=y(CF=>{function Ire(n,e){return t=>{process.stdout.write(`${n(t,e)} +`)}}function jre(n,e){let t=e.colouredLayout;return n.layout&&(t=e.layout(n.layout.type,n.layout)),Ire(t,n.timezoneOffset)}CF.configure=jre});var TF=y(($Ee,SF)=>{function Are(n,e){return t=>{process.stderr.write(`${n(t,e)} +`)}}function Mre(n,e){let t=e.colouredLayout;return n.layout&&(t=e.layout(n.layout.type,n.layout)),Are(t,n.timezoneOffset)}SF.exports.configure=Mre});var EF=y((XEe,kF)=>{function Ore(n,e,t,i){let r=i.getLevel(n),o=i.getLevel(e,i.FATAL);return s=>{let a=s.level;a.isGreaterThanOrEqualTo(r)&&a.isLessThanOrEqualTo(o)&&t(s)}}function Nre(n,e,t,i){let r=t(n.appender);return Ore(n.level,n.maxLevel,r,i)}kF.exports.configure=Nre});var RF=y((UEe,_F)=>{var PF=Wt()("log4js:categoryFilter");function Bre(n,e){return typeof n=="string"&&(n=[n]),t=>{PF(`Checking ${t.categoryName} against ${n}`),n.indexOf(t.categoryName)===-1&&(PF("Not excluded, sending to appender"),e(t))}}function Hre(n,e,t){let i=t(n.appender);return Bre(n.exclude,i)}_F.exports.configure=Hre});var IF=y((GEe,FF)=>{var LF=Wt()("log4js:noLogFilter");function qre(n){return n.filter(t=>t!=null&&t!=="")}function Yre(n,e){return t=>{LF(`Checking data: ${t.data} against filters: ${n}`),typeof n=="string"&&(n=[n]),n=qre(n);let i=new RegExp(n.join("|"),"i");(n.length===0||t.data.findIndex(r=>i.test(r))<0)&&(LF("Not excluded, sending to appender"),e(t))}}function Wre(n,e,t){let i=t(n.appender);return Yre(n.exclude,i)}FF.exports.configure=Wre});var Ct=y(fx=>{"use strict";fx.fromCallback=function(n){return Object.defineProperty(function(...e){if(typeof e[e.length-1]=="function")n.apply(this,e);else return new Promise((t,i)=>{n.call(this,...e,(r,o)=>r!=null?i(r):t(o))})},"name",{value:n.name})};fx.fromPromise=function(n){return Object.defineProperty(function(...e){let t=e[e.length-1];if(typeof t!="function")return n.apply(this,e);n.apply(this,e.slice(0,-1)).then(i=>t(null,i),t)},"name",{value:n.name})}});var AF=y((QEe,jF)=>{var Bs=require("constants"),Zre=process.cwd,Gf=null,Jre=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Gf||(Gf=Zre.call(process)),Gf};try{process.cwd()}catch{}typeof process.chdir=="function"&&(mx=process.chdir,process.chdir=function(n){Gf=null,mx.call(process,n)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,mx));var mx;jF.exports=$re;function $re(n){Bs.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&e(n),n.lutimes||t(n),n.chown=o(n.chown),n.fchown=o(n.fchown),n.lchown=o(n.lchown),n.chmod=i(n.chmod),n.fchmod=i(n.fchmod),n.lchmod=i(n.lchmod),n.chownSync=s(n.chownSync),n.fchownSync=s(n.fchownSync),n.lchownSync=s(n.lchownSync),n.chmodSync=r(n.chmodSync),n.fchmodSync=r(n.fchmodSync),n.lchmodSync=r(n.lchmodSync),n.stat=a(n.stat),n.fstat=a(n.fstat),n.lstat=a(n.lstat),n.statSync=l(n.statSync),n.fstatSync=l(n.fstatSync),n.lstatSync=l(n.lstatSync),n.lchmod||(n.lchmod=function(c,h,d){d&&process.nextTick(d)},n.lchmodSync=function(){}),n.lchown||(n.lchown=function(c,h,d,g){g&&process.nextTick(g)},n.lchownSync=function(){}),Jre==="win32"&&(n.rename=function(c){return function(h,d,g){var p=Date.now(),f=0;c(h,d,function m(b){if(b&&(b.code==="EACCES"||b.code==="EPERM")&&Date.now()-p<6e4){setTimeout(function(){n.stat(d,function(w,D){w&&w.code==="ENOENT"?c(h,d,m):g(b)})},f),f<100&&(f+=10);return}g&&g(b)})}}(n.rename)),n.read=function(c){function h(d,g,p,f,m,b){var w;if(b&&typeof b=="function"){var D=0;w=function(T,R,N){if(T&&T.code==="EAGAIN"&&D<10)return D++,c.call(n,d,g,p,f,m,w);b.apply(this,arguments)}}return c.call(n,d,g,p,f,m,w)}return Object.setPrototypeOf&&Object.setPrototypeOf(h,c),h}(n.read),n.readSync=function(c){return function(h,d,g,p,f){for(var m=0;;)try{return c.call(n,h,d,g,p,f)}catch(b){if(b.code==="EAGAIN"&&m<10){m++;continue}throw b}}}(n.readSync);function e(c){c.lchmod=function(h,d,g){c.open(h,Bs.O_WRONLY|Bs.O_SYMLINK,d,function(p,f){if(p){g&&g(p);return}c.fchmod(f,d,function(m){c.close(f,function(b){g&&g(m||b)})})})},c.lchmodSync=function(h,d){var g=c.openSync(h,Bs.O_WRONLY|Bs.O_SYMLINK,d),p=!0,f;try{f=c.fchmodSync(g,d),p=!1}finally{if(p)try{c.closeSync(g)}catch{}else c.closeSync(g)}return f}}function t(c){Bs.hasOwnProperty("O_SYMLINK")?(c.lutimes=function(h,d,g,p){c.open(h,Bs.O_SYMLINK,function(f,m){if(f){p&&p(f);return}c.futimes(m,d,g,function(b){c.close(m,function(w){p&&p(b||w)})})})},c.lutimesSync=function(h,d,g){var p=c.openSync(h,Bs.O_SYMLINK),f,m=!0;try{f=c.futimesSync(p,d,g),m=!1}finally{if(m)try{c.closeSync(p)}catch{}else c.closeSync(p)}return f}):(c.lutimes=function(h,d,g,p){p&&process.nextTick(p)},c.lutimesSync=function(){})}function i(c){return c&&function(h,d,g){return c.call(n,h,d,function(p){u(p)&&(p=null),g&&g.apply(this,arguments)})}}function r(c){return c&&function(h,d){try{return c.call(n,h,d)}catch(g){if(!u(g))throw g}}}function o(c){return c&&function(h,d,g,p){return c.call(n,h,d,g,function(f){u(f)&&(f=null),p&&p.apply(this,arguments)})}}function s(c){return c&&function(h,d,g){try{return c.call(n,h,d,g)}catch(p){if(!u(p))throw p}}}function a(c){return c&&function(h,d,g){typeof d=="function"&&(g=d,d=null);function p(f,m){m&&(m.uid<0&&(m.uid+=4294967296),m.gid<0&&(m.gid+=4294967296)),g&&g.apply(this,arguments)}return d?c.call(n,h,d,p):c.call(n,h,p)}}function l(c){return c&&function(h,d){var g=d?c.call(n,h,d):c.call(n,h);return g.uid<0&&(g.uid+=4294967296),g.gid<0&&(g.gid+=4294967296),g}}function u(c){if(!c||c.code==="ENOSYS")return!0;var h=!process.getuid||process.getuid()!==0;return!!(h&&(c.code==="EINVAL"||c.code==="EPERM"))}}});var NF=y((zEe,OF)=>{var MF=require("stream").Stream;OF.exports=Xre;function Xre(n){return{ReadStream:e,WriteStream:t};function e(i,r){if(!(this instanceof e))return new e(i,r);MF.call(this);var o=this;this.path=i,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,r=r||{};for(var s=Object.keys(r),a=0,l=s.length;athis.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){o._read()});return}n.open(this.path,this.flags,this.mode,function(c,h){if(c){o.emit("error",c),o.readable=!1;return}o.fd=h,o.emit("open",h),o._read()})}function t(i,r){if(!(this instanceof t))return new t(i,r);MF.call(this),this.path=i,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,r=r||{};for(var o=Object.keys(r),s=0,a=o.length;s= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=n.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var HF=y((VEe,BF)=>{"use strict";BF.exports=Gre;var Ure=Object.getPrototypeOf||function(n){return n.__proto__};function Gre(n){if(n===null||typeof n!="object")return n;if(n instanceof Object)var e={__proto__:Ure(n)};else var e=Object.create(null);return Object.getOwnPropertyNames(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}),e}});var rt=y((ePe,bx)=>{var wi=require("fs"),Kre=AF(),Qre=NF(),zre=HF(),Kf=require("util"),Er,Qf;typeof Symbol=="function"&&typeof Symbol.for=="function"?(Er=Symbol.for("graceful-fs.queue"),Qf=Symbol.for("graceful-fs.previous")):(Er="___graceful-fs.queue",Qf="___graceful-fs.previous");function Vre(){}function YF(n,e){Object.defineProperty(n,Er,{get:function(){return e}})}var fd=Vre;Kf.debuglog?fd=Kf.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(fd=function(){var n=Kf.format.apply(Kf,arguments);n="GFS4: "+n.split(/\n/).join(` +GFS4: `),console.error(n)});wi[Er]||(qF=global[Er]||[],YF(wi,qF),wi.close=function(n){function e(t,i){return n.call(wi,t,function(r){r||Hs(),typeof i=="function"&&i.apply(this,arguments)})}return Object.defineProperty(e,Qf,{value:n}),e}(wi.close),wi.closeSync=function(n){function e(t){n.apply(wi,arguments),Hs()}return Object.defineProperty(e,Qf,{value:n}),e}(wi.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){fd(wi[Er]),require("assert").equal(wi[Er].length,0)}));var qF;global[Er]||YF(global,wi[Er]);bx.exports=yx(zre(wi));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!wi.__patched&&(bx.exports=yx(wi),wi.__patched=!0);function yx(n){Kre(n),n.gracefulify=yx,n.createReadStream=R,n.createWriteStream=N;var e=n.readFile;n.readFile=t;function t(B,M,F){return typeof M=="function"&&(F=M,M=null),O(B,M,F);function O(Z,ie,ge){return e(Z,ie,function(_e){_e&&(_e.code==="EMFILE"||_e.code==="ENFILE")?ju([O,[Z,ie,ge]]):(typeof ge=="function"&&ge.apply(this,arguments),Hs())})}}var i=n.writeFile;n.writeFile=r;function r(B,M,F,O){return typeof F=="function"&&(O=F,F=null),Z(B,M,F,O);function Z(ie,ge,_e,J){return i(ie,ge,_e,function(Y){Y&&(Y.code==="EMFILE"||Y.code==="ENFILE")?ju([Z,[ie,ge,_e,J]]):(typeof J=="function"&&J.apply(this,arguments),Hs())})}}var o=n.appendFile;o&&(n.appendFile=s);function s(B,M,F,O){return typeof F=="function"&&(O=F,F=null),Z(B,M,F,O);function Z(ie,ge,_e,J){return o(ie,ge,_e,function(Y){Y&&(Y.code==="EMFILE"||Y.code==="ENFILE")?ju([Z,[ie,ge,_e,J]]):(typeof J=="function"&&J.apply(this,arguments),Hs())})}}var a=n.copyFile;a&&(n.copyFile=l);function l(B,M,F,O){return typeof F=="function"&&(O=F,F=0),a(B,M,F,function(Z){Z&&(Z.code==="EMFILE"||Z.code==="ENFILE")?ju([a,[B,M,F,O]]):(typeof O=="function"&&O.apply(this,arguments),Hs())})}var u=n.readdir;n.readdir=c;function c(B,M,F){var O=[B];return typeof M!="function"?O.push(M):F=M,O.push(Z),h(O);function Z(ie,ge){ge&&ge.sort&&ge.sort(),ie&&(ie.code==="EMFILE"||ie.code==="ENFILE")?ju([h,[O]]):(typeof F=="function"&&F.apply(this,arguments),Hs())}}function h(B){return u.apply(n,B)}if(process.version.substr(0,4)==="v0.8"){var d=Qre(n);b=d.ReadStream,D=d.WriteStream}var g=n.ReadStream;g&&(b.prototype=Object.create(g.prototype),b.prototype.open=w);var p=n.WriteStream;p&&(D.prototype=Object.create(p.prototype),D.prototype.open=T),Object.defineProperty(n,"ReadStream",{get:function(){return b},set:function(B){b=B},enumerable:!0,configurable:!0}),Object.defineProperty(n,"WriteStream",{get:function(){return D},set:function(B){D=B},enumerable:!0,configurable:!0});var f=b;Object.defineProperty(n,"FileReadStream",{get:function(){return f},set:function(B){f=B},enumerable:!0,configurable:!0});var m=D;Object.defineProperty(n,"FileWriteStream",{get:function(){return m},set:function(B){m=B},enumerable:!0,configurable:!0});function b(B,M){return this instanceof b?(g.apply(this,arguments),this):b.apply(Object.create(b.prototype),arguments)}function w(){var B=this;X(B.path,B.flags,B.mode,function(M,F){M?(B.autoClose&&B.destroy(),B.emit("error",M)):(B.fd=F,B.emit("open",F),B.read())})}function D(B,M){return this instanceof D?(p.apply(this,arguments),this):D.apply(Object.create(D.prototype),arguments)}function T(){var B=this;X(B.path,B.flags,B.mode,function(M,F){M?(B.destroy(),B.emit("error",M)):(B.fd=F,B.emit("open",F))})}function R(B,M){return new n.ReadStream(B,M)}function N(B,M){return new n.WriteStream(B,M)}var H=n.open;n.open=X;function X(B,M,F,O){return typeof F=="function"&&(O=F,F=null),Z(B,M,F,O);function Z(ie,ge,_e,J){return H(ie,ge,_e,function(Y,K){Y&&(Y.code==="EMFILE"||Y.code==="ENFILE")?ju([Z,[ie,ge,_e,J]]):(typeof J=="function"&&J.apply(this,arguments),Hs())})}}return n}function ju(n){fd("ENQUEUE",n[0].name,n[1]),wi[Er].push(n)}function Hs(){var n=wi[Er].shift();n&&(fd("RETRY",n[0].name,n[1]),n[0].apply(null,n[1]))}});var sl=y(qs=>{"use strict";var WF=Ct().fromCallback,On=rt(),eoe=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(n=>typeof On[n]=="function");Object.assign(qs,On);eoe.forEach(n=>{qs[n]=WF(On[n])});qs.realpath.native=WF(On.realpath.native);qs.exists=function(n,e){return typeof e=="function"?On.exists(n,e):new Promise(t=>On.exists(n,t))};qs.read=function(n,e,t,i,r,o){return typeof o=="function"?On.read(n,e,t,i,r,o):new Promise((s,a)=>{On.read(n,e,t,i,r,(l,u,c)=>{if(l)return a(l);s({bytesRead:u,buffer:c})})})};qs.write=function(n,e,...t){return typeof t[t.length-1]=="function"?On.write(n,e,...t):new Promise((i,r)=>{On.write(n,e,...t,(o,s,a)=>{if(o)return r(o);i({bytesWritten:s,buffer:a})})})};typeof On.writev=="function"&&(qs.writev=function(n,e,...t){return typeof t[t.length-1]=="function"?On.writev(n,e,...t):new Promise((i,r)=>{On.writev(n,e,...t,(o,s,a)=>{if(o)return r(o);i({bytesWritten:s,buffers:a})})})})});var JF=y((iPe,ZF)=>{"use strict";var toe=require("path");ZF.exports.checkPath=function(e){if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace(toe.parse(e).root,""))){let i=new Error(`Path contains invalid characters: ${e}`);throw i.code="EINVAL",i}}});var GF=y((nPe,vx)=>{"use strict";var $F=sl(),{checkPath:XF}=JF(),UF=n=>{let e={mode:511};return typeof n=="number"?n:ve(ve({},e),n).mode};vx.exports.makeDir=async(n,e)=>(XF(n),$F.mkdir(n,{mode:UF(e),recursive:!0}));vx.exports.makeDirSync=(n,e)=>(XF(n),$F.mkdirSync(n,{mode:UF(e),recursive:!0}))});var Pr=y((rPe,KF)=>{"use strict";var ioe=Ct().fromPromise,{makeDir:noe,makeDirSync:wx}=GF(),Dx=ioe(noe);KF.exports={mkdirs:Dx,mkdirsSync:wx,mkdirp:Dx,mkdirpSync:wx,ensureDir:Dx,ensureDirSync:wx}});var Cx=y((oPe,QF)=>{"use strict";var Au=rt();function roe(n,e,t,i){Au.open(n,"r+",(r,o)=>{if(r)return i(r);Au.futimes(o,e,t,s=>{Au.close(o,a=>{i&&i(s||a)})})})}function ooe(n,e,t){let i=Au.openSync(n,"r+");return Au.futimesSync(i,e,t),Au.closeSync(i)}QF.exports={utimesMillis:roe,utimesMillisSync:ooe}});var al=y((sPe,eI)=>{"use strict";var Mu=sl(),gi=require("path"),soe=require("util");function aoe(n,e,t){let i=t.dereference?r=>Mu.stat(r,{bigint:!0}):r=>Mu.lstat(r,{bigint:!0});return Promise.all([i(n),i(e).catch(r=>{if(r.code==="ENOENT")return null;throw r})]).then(([r,o])=>({srcStat:r,destStat:o}))}function loe(n,e,t){let i,r=t.dereference?s=>Mu.statSync(s,{bigint:!0}):s=>Mu.lstatSync(s,{bigint:!0}),o=r(n);try{i=r(e)}catch(s){if(s.code==="ENOENT")return{srcStat:o,destStat:null};throw s}return{srcStat:o,destStat:i}}function uoe(n,e,t,i,r){soe.callbackify(aoe)(n,e,i,(o,s)=>{if(o)return r(o);let{srcStat:a,destStat:l}=s;if(l){if(md(a,l)){let u=gi.basename(n),c=gi.basename(e);return t==="move"&&u!==c&&u.toLowerCase()===c.toLowerCase()?r(null,{srcStat:a,destStat:l,isChangingCase:!0}):r(new Error("Source and destination must not be the same."))}if(a.isDirectory()&&!l.isDirectory())return r(new Error(`Cannot overwrite non-directory '${e}' with directory '${n}'.`));if(!a.isDirectory()&&l.isDirectory())return r(new Error(`Cannot overwrite directory '${e}' with non-directory '${n}'.`))}return a.isDirectory()&&xx(n,e)?r(new Error(zf(n,e,t))):r(null,{srcStat:a,destStat:l})})}function coe(n,e,t,i){let{srcStat:r,destStat:o}=loe(n,e,i);if(o){if(md(r,o)){let s=gi.basename(n),a=gi.basename(e);if(t==="move"&&s!==a&&s.toLowerCase()===a.toLowerCase())return{srcStat:r,destStat:o,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(r.isDirectory()&&!o.isDirectory())throw new Error(`Cannot overwrite non-directory '${e}' with directory '${n}'.`);if(!r.isDirectory()&&o.isDirectory())throw new Error(`Cannot overwrite directory '${e}' with non-directory '${n}'.`)}if(r.isDirectory()&&xx(n,e))throw new Error(zf(n,e,t));return{srcStat:r,destStat:o}}function zF(n,e,t,i,r){let o=gi.resolve(gi.dirname(n)),s=gi.resolve(gi.dirname(t));if(s===o||s===gi.parse(s).root)return r();Mu.stat(s,{bigint:!0},(a,l)=>a?a.code==="ENOENT"?r():r(a):md(e,l)?r(new Error(zf(n,t,i))):zF(n,e,s,i,r))}function VF(n,e,t,i){let r=gi.resolve(gi.dirname(n)),o=gi.resolve(gi.dirname(t));if(o===r||o===gi.parse(o).root)return;let s;try{s=Mu.statSync(o,{bigint:!0})}catch(a){if(a.code==="ENOENT")return;throw a}if(md(e,s))throw new Error(zf(n,t,i));return VF(n,e,o,i)}function md(n,e){return e.ino&&e.dev&&e.ino===n.ino&&e.dev===n.dev}function xx(n,e){let t=gi.resolve(n).split(gi.sep).filter(r=>r),i=gi.resolve(e).split(gi.sep).filter(r=>r);return t.reduce((r,o,s)=>r&&i[s]===o,!0)}function zf(n,e,t){return`Cannot ${t} '${n}' to a subdirectory of itself, '${e}'.`}eI.exports={checkPaths:uoe,checkPathsSync:coe,checkParentPaths:zF,checkParentPathsSync:VF,isSrcSubdir:xx,areIdentical:md}});var oI=y((aPe,rI)=>{"use strict";var Fi=rt(),yd=require("path"),hoe=Pr().mkdirsSync,doe=Cx().utimesMillisSync,bd=al();function goe(n,e,t){typeof t=="function"&&(t={filter:t}),t=t||{},t.clobber="clobber"in t?!!t.clobber:!0,t.overwrite="overwrite"in t?!!t.overwrite:t.clobber,t.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended; - see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:i,destStat:r}=td.checkPathsSync(n,e,"copy",t);return td.checkParentPathsSync(n,i,e,"copy"),jne(r,n,e,t)}function jne(n,e,t,i){if(i.filter&&!i.filter(e,t))return;let r=ed.dirname(t);return Ci.existsSync(r)||Lne(r),iF(n,e,t,i)}function Ane(n,e,t,i){if(!(i.filter&&!i.filter(e,t)))return iF(n,e,t,i)}function iF(n,e,t,i){let o=(i.dereference?Ci.statSync:Ci.lstatSync)(e);if(o.isDirectory())return Yne(o,n,e,t,i);if(o.isFile()||o.isCharacterDevice()||o.isBlockDevice())return One(o,n,e,t,i);if(o.isSymbolicLink())return Jne(n,e,t,i);throw o.isSocket()?new Error(`Cannot copy a socket file: ${e}`):o.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${e}`):new Error(`Unknown file: ${e}`)}function One(n,e,t,i,r){return e?Mne(n,t,i,r):nF(n,t,i,r)}function Mne(n,e,t,i){if(i.overwrite)return Ci.unlinkSync(t),nF(n,e,t,i);if(i.errorOnExist)throw new Error(`'${t}' already exists`)}function nF(n,e,t,i){return Ci.copyFileSync(e,t),i.preserveTimestamps&&Nne(n.mode,e,t),Zx(t,n.mode)}function Nne(n,e,t){return Bne(n)&&Hne(t,n),qne(e,t)}function Bne(n){return(n&128)===0}function Hne(n,e){return Zx(n,e|128)}function Zx(n,e){return Ci.chmodSync(n,e)}function qne(n,e){let t=Ci.statSync(n);return Fne(e,t.atime,t.mtime)}function Yne(n,e,t,i,r){return e?rF(t,i,r):Wne(n.mode,t,i,r)}function Wne(n,e,t,i){return Ci.mkdirSync(t),rF(e,t,i),Zx(t,n)}function rF(n,e,t){Ci.readdirSync(n).forEach(i=>Zne(i,n,e,t))}function Zne(n,e,t,i){let r=ed.join(e,n),o=ed.join(t,n),{destStat:s}=td.checkPathsSync(r,o,"copy",i);return Ane(s,r,o,i)}function Jne(n,e,t,i){let r=Ci.readlinkSync(e);if(i.dereference&&(r=ed.resolve(process.cwd(),r)),n){let o;try{o=Ci.readlinkSync(t)}catch(s){if(s.code==="EINVAL"||s.code==="UNKNOWN")return Ci.symlinkSync(r,t);throw s}if(i.dereference&&(o=ed.resolve(process.cwd(),o)),td.isSrcSubdir(r,o))throw new Error(`Cannot copy '${r}' to a subdirectory of itself, '${o}'.`);if(Ci.statSync(t).isDirectory()&&td.isSrcSubdir(o,r))throw new Error(`Cannot overwrite '${o}' with '${r}'.`);return $ne(r,t)}else return Ci.symlinkSync(r,t)}function $ne(n,e){return Ci.unlinkSync(e),Ci.symlinkSync(n,e)}oF.exports=Ine});var Jx=m((Pke,aF)=>{"use strict";aF.exports={copySync:sF()}});var Ps=m((_ke,uF)=>{"use strict";var Xne=gt().fromPromise,lF=Xa();function Une(n){return lF.access(n).then(()=>!0).catch(()=>!1)}uF.exports={pathExists:Xne(Une),pathExistsSync:lF.existsSync}});var bF=m((Rke,mF)=>{"use strict";var rn=Qe(),id=require("path"),Gne=br().mkdirs,Qne=Ps().pathExists,Kne=Yx().utimesMillis,nd=Ua();function zne(n,e,t,i){typeof t=="function"&&!i?(i=t,t={}):typeof t=="function"&&(t={filter:t}),i=i||function(){},t=t||{},t.clobber="clobber"in t?!!t.clobber:!0,t.overwrite="overwrite"in t?!!t.overwrite:t.clobber,t.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended; + see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:i,destStat:r}=bd.checkPathsSync(n,e,"copy",t);return bd.checkParentPathsSync(n,i,e,"copy"),poe(r,n,e,t)}function poe(n,e,t,i){if(i.filter&&!i.filter(e,t))return;let r=yd.dirname(t);return Fi.existsSync(r)||hoe(r),tI(n,e,t,i)}function foe(n,e,t,i){if(!(i.filter&&!i.filter(e,t)))return tI(n,e,t,i)}function tI(n,e,t,i){let o=(i.dereference?Fi.statSync:Fi.lstatSync)(e);if(o.isDirectory())return Coe(o,n,e,t,i);if(o.isFile()||o.isCharacterDevice()||o.isBlockDevice())return moe(o,n,e,t,i);if(o.isSymbolicLink())return Toe(n,e,t,i);throw o.isSocket()?new Error(`Cannot copy a socket file: ${e}`):o.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${e}`):new Error(`Unknown file: ${e}`)}function moe(n,e,t,i,r){return e?yoe(n,t,i,r):iI(n,t,i,r)}function yoe(n,e,t,i){if(i.overwrite)return Fi.unlinkSync(t),iI(n,e,t,i);if(i.errorOnExist)throw new Error(`'${t}' already exists`)}function iI(n,e,t,i){return Fi.copyFileSync(e,t),i.preserveTimestamps&&boe(n.mode,e,t),Sx(t,n.mode)}function boe(n,e,t){return voe(n)&&woe(t,n),Doe(e,t)}function voe(n){return(n&128)===0}function woe(n,e){return Sx(n,e|128)}function Sx(n,e){return Fi.chmodSync(n,e)}function Doe(n,e){let t=Fi.statSync(n);return doe(e,t.atime,t.mtime)}function Coe(n,e,t,i,r){return e?nI(t,i,r):xoe(n.mode,t,i,r)}function xoe(n,e,t,i){return Fi.mkdirSync(t),nI(e,t,i),Sx(t,n)}function nI(n,e,t){Fi.readdirSync(n).forEach(i=>Soe(i,n,e,t))}function Soe(n,e,t,i){let r=yd.join(e,n),o=yd.join(t,n),{destStat:s}=bd.checkPathsSync(r,o,"copy",i);return foe(s,r,o,i)}function Toe(n,e,t,i){let r=Fi.readlinkSync(e);if(i.dereference&&(r=yd.resolve(process.cwd(),r)),n){let o;try{o=Fi.readlinkSync(t)}catch(s){if(s.code==="EINVAL"||s.code==="UNKNOWN")return Fi.symlinkSync(r,t);throw s}if(i.dereference&&(o=yd.resolve(process.cwd(),o)),bd.isSrcSubdir(r,o))throw new Error(`Cannot copy '${r}' to a subdirectory of itself, '${o}'.`);if(Fi.statSync(t).isDirectory()&&bd.isSrcSubdir(o,r))throw new Error(`Cannot overwrite '${o}' with '${r}'.`);return koe(r,t)}else return Fi.symlinkSync(r,t)}function koe(n,e){return Fi.unlinkSync(e),Fi.symlinkSync(n,e)}rI.exports=goe});var Tx=y((lPe,sI)=>{"use strict";sI.exports={copySync:oI()}});var Ys=y((uPe,lI)=>{"use strict";var Eoe=Ct().fromPromise,aI=sl();function Poe(n){return aI.access(n).then(()=>!0).catch(()=>!1)}lI.exports={pathExists:Eoe(Poe),pathExistsSync:aI.existsSync}});var mI=y((cPe,fI)=>{"use strict";var bn=rt(),vd=require("path"),_oe=Pr().mkdirs,Roe=Ys().pathExists,Loe=Cx().utimesMillis,wd=al();function Foe(n,e,t,i){typeof t=="function"&&!i?(i=t,t={}):typeof t=="function"&&(t={filter:t}),i=i||function(){},t=t||{},t.clobber="clobber"in t?!!t.clobber:!0,t.overwrite="overwrite"in t?!!t.overwrite:t.clobber,t.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended; - see https://github.com/jprichardson/node-fs-extra/issues/269`),nd.checkPaths(n,e,"copy",t,(r,o)=>{if(r)return i(r);let{srcStat:s,destStat:a}=o;nd.checkParentPaths(n,s,e,"copy",l=>l?i(l):t.filter?dF(cF,a,n,e,t,i):cF(a,n,e,t,i))})}function cF(n,e,t,i,r){let o=id.dirname(t);Qne(o,(s,a)=>{if(s)return r(s);if(a)return Ip(n,e,t,i,r);Gne(o,l=>l?r(l):Ip(n,e,t,i,r))})}function dF(n,e,t,i,r,o){Promise.resolve(r.filter(t,i)).then(s=>s?n(e,t,i,r,o):o(),s=>o(s))}function Vne(n,e,t,i,r){return i.filter?dF(Ip,n,e,t,i,r):Ip(n,e,t,i,r)}function Ip(n,e,t,i,r){(i.dereference?rn.stat:rn.lstat)(e,(s,a)=>s?r(s):a.isDirectory()?sre(a,n,e,t,i,r):a.isFile()||a.isCharacterDevice()||a.isBlockDevice()?ere(a,n,e,t,i,r):a.isSymbolicLink()?ure(n,e,t,i,r):a.isSocket()?r(new Error(`Cannot copy a socket file: ${e}`)):a.isFIFO()?r(new Error(`Cannot copy a FIFO pipe: ${e}`)):r(new Error(`Unknown file: ${e}`)))}function ere(n,e,t,i,r,o){return e?tre(n,t,i,r,o):gF(n,t,i,r,o)}function tre(n,e,t,i,r){if(i.overwrite)rn.unlink(t,o=>o?r(o):gF(n,e,t,i,r));else return i.errorOnExist?r(new Error(`'${t}' already exists`)):r()}function gF(n,e,t,i,r){rn.copyFile(e,t,o=>o?r(o):i.preserveTimestamps?ire(n.mode,e,t,r):jp(t,n.mode,r))}function ire(n,e,t,i){return nre(n)?rre(t,n,r=>r?i(r):hF(n,e,t,i)):hF(n,e,t,i)}function nre(n){return(n&128)===0}function rre(n,e,t){return jp(n,e|128,t)}function hF(n,e,t,i){ore(e,t,r=>r?i(r):jp(t,n,i))}function jp(n,e,t){return rn.chmod(n,e,t)}function ore(n,e,t){rn.stat(n,(i,r)=>i?t(i):Kne(e,r.atime,r.mtime,t))}function sre(n,e,t,i,r,o){return e?fF(t,i,r,o):are(n.mode,t,i,r,o)}function are(n,e,t,i,r){rn.mkdir(t,o=>{if(o)return r(o);fF(e,t,i,s=>s?r(s):jp(t,n,r))})}function fF(n,e,t,i){rn.readdir(n,(r,o)=>r?i(r):pF(o,n,e,t,i))}function pF(n,e,t,i,r){let o=n.pop();return o?lre(n,o,e,t,i,r):r()}function lre(n,e,t,i,r,o){let s=id.join(t,e),a=id.join(i,e);nd.checkPaths(s,a,"copy",r,(l,u)=>{if(l)return o(l);let{destStat:c}=u;Vne(c,s,a,r,h=>h?o(h):pF(n,t,i,r,o))})}function ure(n,e,t,i,r){rn.readlink(e,(o,s)=>{if(o)return r(o);if(i.dereference&&(s=id.resolve(process.cwd(),s)),n)rn.readlink(t,(a,l)=>a?a.code==="EINVAL"||a.code==="UNKNOWN"?rn.symlink(s,t,r):r(a):(i.dereference&&(l=id.resolve(process.cwd(),l)),nd.isSrcSubdir(s,l)?r(new Error(`Cannot copy '${s}' to a subdirectory of itself, '${l}'.`)):n.isDirectory()&&nd.isSrcSubdir(l,s)?r(new Error(`Cannot overwrite '${l}' with '${s}'.`)):cre(s,t,r)));else return rn.symlink(s,t,r)})}function cre(n,e,t){rn.unlink(e,i=>i?t(i):rn.symlink(n,e,t))}mF.exports=zne});var $x=m((Lke,yF)=>{"use strict";var hre=gt().fromCallback;yF.exports={copy:hre(bF())}});var EF=m((Fke,kF)=>{"use strict";var vF=Qe(),CF=require("path"),ot=require("assert"),rd=process.platform==="win32";function SF(n){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(t=>{n[t]=n[t]||vF[t],t=t+"Sync",n[t]=n[t]||vF[t]}),n.maxBusyTries=n.maxBusyTries||3}function Xx(n,e,t){let i=0;typeof e=="function"&&(t=e,e={}),ot(n,"rimraf: missing path"),ot.strictEqual(typeof n,"string","rimraf: path should be a string"),ot.strictEqual(typeof t,"function","rimraf: callback function required"),ot(e,"rimraf: invalid options argument provided"),ot.strictEqual(typeof e,"object","rimraf: options should be object"),SF(e),wF(n,e,function r(o){if(o){if((o.code==="EBUSY"||o.code==="ENOTEMPTY"||o.code==="EPERM")&&iwF(n,e,r),s)}o.code==="ENOENT"&&(o=null)}t(o)})}function wF(n,e,t){ot(n),ot(e),ot(typeof t=="function"),e.lstat(n,(i,r)=>{if(i&&i.code==="ENOENT")return t(null);if(i&&i.code==="EPERM"&&rd)return DF(n,e,i,t);if(r&&r.isDirectory())return Ap(n,e,i,t);e.unlink(n,o=>{if(o){if(o.code==="ENOENT")return t(null);if(o.code==="EPERM")return rd?DF(n,e,o,t):Ap(n,e,o,t);if(o.code==="EISDIR")return Ap(n,e,o,t)}return t(o)})})}function DF(n,e,t,i){ot(n),ot(e),ot(typeof i=="function"),e.chmod(n,438,r=>{r?i(r.code==="ENOENT"?null:t):e.stat(n,(o,s)=>{o?i(o.code==="ENOENT"?null:t):s.isDirectory()?Ap(n,e,t,i):e.unlink(n,i)})})}function xF(n,e,t){let i;ot(n),ot(e);try{e.chmodSync(n,438)}catch(r){if(r.code==="ENOENT")return;throw t}try{i=e.statSync(n)}catch(r){if(r.code==="ENOENT")return;throw t}i.isDirectory()?Op(n,e,t):e.unlinkSync(n)}function Ap(n,e,t,i){ot(n),ot(e),ot(typeof i=="function"),e.rmdir(n,r=>{r&&(r.code==="ENOTEMPTY"||r.code==="EEXIST"||r.code==="EPERM")?dre(n,e,i):r&&r.code==="ENOTDIR"?i(t):i(r)})}function dre(n,e,t){ot(n),ot(e),ot(typeof t=="function"),e.readdir(n,(i,r)=>{if(i)return t(i);let o=r.length,s;if(o===0)return e.rmdir(n,t);r.forEach(a=>{Xx(CF.join(n,a),e,l=>{if(!s){if(l)return t(s=l);--o===0&&e.rmdir(n,t)}})})})}function TF(n,e){let t;e=e||{},SF(e),ot(n,"rimraf: missing path"),ot.strictEqual(typeof n,"string","rimraf: path should be a string"),ot(e,"rimraf: missing options"),ot.strictEqual(typeof e,"object","rimraf: options should be object");try{t=e.lstatSync(n)}catch(i){if(i.code==="ENOENT")return;i.code==="EPERM"&&rd&&xF(n,e,i)}try{t&&t.isDirectory()?Op(n,e,null):e.unlinkSync(n)}catch(i){if(i.code==="ENOENT")return;if(i.code==="EPERM")return rd?xF(n,e,i):Op(n,e,i);if(i.code!=="EISDIR")throw i;Op(n,e,i)}}function Op(n,e,t){ot(n),ot(e);try{e.rmdirSync(n)}catch(i){if(i.code==="ENOTDIR")throw t;if(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")gre(n,e);else if(i.code!=="ENOENT")throw i}}function gre(n,e){if(ot(n),ot(e),e.readdirSync(n).forEach(t=>TF(CF.join(n,t),e)),rd){let t=Date.now();do try{return e.rmdirSync(n,e)}catch{}while(Date.now()-t<500)}else return e.rmdirSync(n,e)}kF.exports=Xx;Xx.sync=TF});var od=m((Ike,_F)=>{"use strict";var Mp=Qe(),fre=gt().fromCallback,PF=EF();function pre(n,e){if(Mp.rm)return Mp.rm(n,{recursive:!0,force:!0},e);PF(n,e)}function mre(n){if(Mp.rmSync)return Mp.rmSync(n,{recursive:!0,force:!0});PF.sync(n)}_F.exports={remove:fre(pre),removeSync:mre}});var MF=m((jke,OF)=>{"use strict";var bre=gt().fromPromise,FF=Xa(),IF=require("path"),jF=br(),AF=od(),RF=bre(async function(e){let t;try{t=await FF.readdir(e)}catch{return jF.mkdirs(e)}return Promise.all(t.map(i=>AF.remove(IF.join(e,i))))});function LF(n){let e;try{e=FF.readdirSync(n)}catch{return jF.mkdirsSync(n)}e.forEach(t=>{t=IF.join(n,t),AF.removeSync(t)})}OF.exports={emptyDirSync:LF,emptydirSync:LF,emptyDir:RF,emptydir:RF}});var qF=m((Ake,HF)=>{"use strict";var yre=gt().fromCallback,NF=require("path"),_s=Qe(),BF=br();function vre(n,e){function t(){_s.writeFile(n,"",i=>{if(i)return e(i);e()})}_s.stat(n,(i,r)=>{if(!i&&r.isFile())return e();let o=NF.dirname(n);_s.stat(o,(s,a)=>{if(s)return s.code==="ENOENT"?BF.mkdirs(o,l=>{if(l)return e(l);t()}):e(s);a.isDirectory()?t():_s.readdir(o,l=>{if(l)return e(l)})})})}function wre(n){let e;try{e=_s.statSync(n)}catch{}if(e&&e.isFile())return;let t=NF.dirname(n);try{_s.statSync(t).isDirectory()||_s.readdirSync(t)}catch(i){if(i&&i.code==="ENOENT")BF.mkdirsSync(t);else throw i}_s.writeFileSync(n,"")}HF.exports={createFile:yre(vre),createFileSync:wre}});var $F=m((Oke,JF)=>{"use strict";var Dre=gt().fromCallback,YF=require("path"),Rs=Qe(),WF=br(),xre=Ps().pathExists,{areIdentical:ZF}=Ua();function Cre(n,e,t){function i(r,o){Rs.link(r,o,s=>{if(s)return t(s);t(null)})}Rs.lstat(e,(r,o)=>{Rs.lstat(n,(s,a)=>{if(s)return s.message=s.message.replace("lstat","ensureLink"),t(s);if(o&&ZF(a,o))return t(null);let l=YF.dirname(e);xre(l,(u,c)=>{if(u)return t(u);if(c)return i(n,e);WF.mkdirs(l,h=>{if(h)return t(h);i(n,e)})})})})}function Sre(n,e){let t;try{t=Rs.lstatSync(e)}catch{}try{let o=Rs.lstatSync(n);if(t&&ZF(o,t))return}catch(o){throw o.message=o.message.replace("lstat","ensureLink"),o}let i=YF.dirname(e);return Rs.existsSync(i)||WF.mkdirsSync(i),Rs.linkSync(n,e)}JF.exports={createLink:Dre(Cre),createLinkSync:Sre}});var UF=m((Mke,XF)=>{"use strict";var Ls=require("path"),sd=Qe(),Tre=Ps().pathExists;function kre(n,e,t){if(Ls.isAbsolute(n))return sd.lstat(n,i=>i?(i.message=i.message.replace("lstat","ensureSymlink"),t(i)):t(null,{toCwd:n,toDst:n}));{let i=Ls.dirname(e),r=Ls.join(i,n);return Tre(r,(o,s)=>o?t(o):s?t(null,{toCwd:r,toDst:n}):sd.lstat(n,a=>a?(a.message=a.message.replace("lstat","ensureSymlink"),t(a)):t(null,{toCwd:n,toDst:Ls.relative(i,n)})))}}function Ere(n,e){let t;if(Ls.isAbsolute(n)){if(t=sd.existsSync(n),!t)throw new Error("absolute srcpath does not exist");return{toCwd:n,toDst:n}}else{let i=Ls.dirname(e),r=Ls.join(i,n);if(t=sd.existsSync(r),t)return{toCwd:r,toDst:n};if(t=sd.existsSync(n),!t)throw new Error("relative srcpath does not exist");return{toCwd:n,toDst:Ls.relative(i,n)}}}XF.exports={symlinkPaths:kre,symlinkPathsSync:Ere}});var KF=m((Nke,QF)=>{"use strict";var GF=Qe();function Pre(n,e,t){if(t=typeof e=="function"?e:t,e=typeof e=="function"?!1:e,e)return t(null,e);GF.lstat(n,(i,r)=>{if(i)return t(null,"file");e=r&&r.isDirectory()?"dir":"file",t(null,e)})}function _re(n,e){let t;if(e)return e;try{t=GF.lstatSync(n)}catch{return"file"}return t&&t.isDirectory()?"dir":"file"}QF.exports={symlinkType:Pre,symlinkTypeSync:_re}});var oI=m((Bke,rI)=>{"use strict";var Rre=gt().fromCallback,VF=require("path"),yr=Xa(),eI=br(),Lre=eI.mkdirs,Fre=eI.mkdirsSync,tI=UF(),Ire=tI.symlinkPaths,jre=tI.symlinkPathsSync,iI=KF(),Are=iI.symlinkType,Ore=iI.symlinkTypeSync,Mre=Ps().pathExists,{areIdentical:nI}=Ua();function Nre(n,e,t,i){i=typeof t=="function"?t:i,t=typeof t=="function"?!1:t,yr.lstat(e,(r,o)=>{!r&&o.isSymbolicLink()?Promise.all([yr.stat(n),yr.stat(e)]).then(([s,a])=>{if(nI(s,a))return i(null);zF(n,e,t,i)}):zF(n,e,t,i)})}function zF(n,e,t,i){Ire(n,e,(r,o)=>{if(r)return i(r);n=o.toDst,Are(o.toCwd,t,(s,a)=>{if(s)return i(s);let l=VF.dirname(e);Mre(l,(u,c)=>{if(u)return i(u);if(c)return yr.symlink(n,e,a,i);Lre(l,h=>{if(h)return i(h);yr.symlink(n,e,a,i)})})})})}function Bre(n,e,t){let i;try{i=yr.lstatSync(e)}catch{}if(i&&i.isSymbolicLink()){let a=yr.statSync(n),l=yr.statSync(e);if(nI(a,l))return}let r=jre(n,e);n=r.toDst,t=Ore(r.toCwd,t);let o=VF.dirname(e);return yr.existsSync(o)||Fre(o),yr.symlinkSync(n,e,t)}rI.exports={createSymlink:Rre(Nre),createSymlinkSync:Bre}});var aI=m((Hke,sI)=>{"use strict";var Np=qF(),Bp=$F(),Hp=oI();sI.exports={createFile:Np.createFile,createFileSync:Np.createFileSync,ensureFile:Np.createFile,ensureFileSync:Np.createFileSync,createLink:Bp.createLink,createLinkSync:Bp.createLinkSync,ensureLink:Bp.createLink,ensureLinkSync:Bp.createLinkSync,createSymlink:Hp.createSymlink,createSymlinkSync:Hp.createSymlinkSync,ensureSymlink:Hp.createSymlink,ensureSymlinkSync:Hp.createSymlinkSync}});var Cu=m((qke,lI)=>{function Hre(n,{EOL:e=` -`,finalEOL:t=!0,replacer:i=null,spaces:r}={}){let o=t?e:"";return JSON.stringify(n,i,r).replace(/\n/g,e)+o}function qre(n){return Buffer.isBuffer(n)&&(n=n.toString("utf8")),n.replace(/^\uFEFF/,"")}lI.exports={stringify:Hre,stripBom:qre}});var Ux=m((Yke,hI)=>{var Su;try{Su=Qe()}catch{Su=require("fs")}var qp=gt(),{stringify:uI,stripBom:cI}=Cu();async function Yre(n,e={}){typeof e=="string"&&(e={encoding:e});let t=e.fs||Su,i="throws"in e?e.throws:!0,r=await qp.fromCallback(t.readFile)(n,e);r=cI(r);let o;try{o=JSON.parse(r,e?e.reviver:null)}catch(s){if(i)throw s.message=`${n}: ${s.message}`,s;return null}return o}var Wre=qp.fromPromise(Yre);function Zre(n,e={}){typeof e=="string"&&(e={encoding:e});let t=e.fs||Su,i="throws"in e?e.throws:!0;try{let r=t.readFileSync(n,e);return r=cI(r),JSON.parse(r,e.reviver)}catch(r){if(i)throw r.message=`${n}: ${r.message}`,r;return null}}async function Jre(n,e,t={}){let i=t.fs||Su,r=uI(e,t);await qp.fromCallback(i.writeFile)(n,r,t)}var $re=qp.fromPromise(Jre);function Xre(n,e,t={}){let i=t.fs||Su,r=uI(e,t);return i.writeFileSync(n,r,t)}var Ure={readFile:Wre,readFileSync:Zre,writeFile:$re,writeFileSync:Xre};hI.exports=Ure});var gI=m((Wke,dI)=>{"use strict";var Yp=Ux();dI.exports={readJson:Yp.readFile,readJsonSync:Yp.readFileSync,writeJson:Yp.writeFile,writeJsonSync:Yp.writeFileSync}});var Wp=m((Zke,mI)=>{"use strict";var Gre=gt().fromCallback,ad=Qe(),fI=require("path"),pI=br(),Qre=Ps().pathExists;function Kre(n,e,t,i){typeof t=="function"&&(i=t,t="utf8");let r=fI.dirname(n);Qre(r,(o,s)=>{if(o)return i(o);if(s)return ad.writeFile(n,e,t,i);pI.mkdirs(r,a=>{if(a)return i(a);ad.writeFile(n,e,t,i)})})}function zre(n,...e){let t=fI.dirname(n);if(ad.existsSync(t))return ad.writeFileSync(n,...e);pI.mkdirsSync(t),ad.writeFileSync(n,...e)}mI.exports={outputFile:Gre(Kre),outputFileSync:zre}});var yI=m((Jke,bI)=>{"use strict";var{stringify:Vre}=Cu(),{outputFile:eoe}=Wp();async function toe(n,e,t={}){let i=Vre(e,t);await eoe(n,i,t)}bI.exports=toe});var wI=m(($ke,vI)=>{"use strict";var{stringify:ioe}=Cu(),{outputFileSync:noe}=Wp();function roe(n,e,t){let i=ioe(e,t);noe(n,i,t)}vI.exports=roe});var xI=m((Xke,DI)=>{"use strict";var ooe=gt().fromPromise,qi=gI();qi.outputJson=ooe(yI());qi.outputJsonSync=wI();qi.outputJSON=qi.outputJson;qi.outputJSONSync=qi.outputJsonSync;qi.writeJSON=qi.writeJson;qi.writeJSONSync=qi.writeJsonSync;qi.readJSON=qi.readJson;qi.readJSONSync=qi.readJsonSync;DI.exports=qi});var EI=m((Uke,kI)=>{"use strict";var SI=Qe(),Qx=require("path"),soe=Jx().copySync,TI=od().removeSync,aoe=br().mkdirpSync,CI=Ua();function loe(n,e,t){t=t||{};let i=t.overwrite||t.clobber||!1,{srcStat:r,isChangingCase:o=!1}=CI.checkPathsSync(n,e,"move",t);return CI.checkParentPathsSync(n,r,e,"move"),uoe(e)||aoe(Qx.dirname(e)),coe(n,e,i,o)}function uoe(n){let e=Qx.dirname(n);return Qx.parse(e).root===e}function coe(n,e,t,i){if(i)return Gx(n,e,t);if(t)return TI(e),Gx(n,e,t);if(SI.existsSync(e))throw new Error("dest already exists.");return Gx(n,e,t)}function Gx(n,e,t){try{SI.renameSync(n,e)}catch(i){if(i.code!=="EXDEV")throw i;return hoe(n,e,t)}}function hoe(n,e,t){return soe(n,e,{overwrite:t,errorOnExist:!0}),TI(n)}kI.exports=loe});var _I=m((Gke,PI)=>{"use strict";PI.exports={moveSync:EI()}});var jI=m((Qke,II)=>{"use strict";var doe=Qe(),zx=require("path"),goe=$x().copy,FI=od().remove,foe=br().mkdirp,poe=Ps().pathExists,RI=Ua();function moe(n,e,t,i){typeof t=="function"&&(i=t,t={});let r=t.overwrite||t.clobber||!1;RI.checkPaths(n,e,"move",t,(o,s)=>{if(o)return i(o);let{srcStat:a,isChangingCase:l=!1}=s;RI.checkParentPaths(n,a,e,"move",u=>{if(u)return i(u);if(boe(e))return LI(n,e,r,l,i);foe(zx.dirname(e),c=>c?i(c):LI(n,e,r,l,i))})})}function boe(n){let e=zx.dirname(n);return zx.parse(e).root===e}function LI(n,e,t,i,r){if(i)return Kx(n,e,t,r);if(t)return FI(e,o=>o?r(o):Kx(n,e,t,r));poe(e,(o,s)=>o?r(o):s?r(new Error("dest already exists.")):Kx(n,e,t,r))}function Kx(n,e,t,i){doe.rename(n,e,r=>r?r.code!=="EXDEV"?i(r):yoe(n,e,t,i):i())}function yoe(n,e,t,i){goe(n,e,{overwrite:t,errorOnExist:!0},o=>o?i(o):FI(n,i))}II.exports=moe});var OI=m((Kke,AI)=>{"use strict";var voe=gt().fromCallback;AI.exports={move:voe(jI())}});var Vx=m((zke,MI)=>{"use strict";MI.exports=ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge({},Xa()),Jx()),$x()),MF()),aI()),xI()),br()),_I()),OI()),Wp()),Ps()),od())});var BI=m((Vke,NI)=>{NI.exports=()=>new Date});var qI=m((eEe,HI)=>{var woe=Ot()("streamroller:fileNameFormatter"),Doe=require("path"),xoe=".gz",Coe=".";HI.exports=({file:n,keepFileExt:e,needsIndex:t,alwaysIncludeDate:i,compress:r,fileNameSep:o})=>{let s=o||Coe,a=Doe.join(n.dir,n.name),l=g=>g+n.ext,u=(g,f,p)=>(t||!p)&&f?g+s+f:g,c=(g,f,p)=>(f>0||i)&&p?g+s+p:g,h=(g,f)=>f&&r?g+xoe:g,d=e?[c,u,l,h]:[l,c,u,h];return({date:g,index:f})=>(woe(`_formatFileName: date=${g}, index=${f}`),d.reduce((p,b)=>b(p,f,g),a))}});var JI=m((tEe,ZI)=>{var Ga=Ot()("streamroller:fileNameParser"),YI=".gz",WI=Sp(),Soe=".";ZI.exports=({file:n,keepFileExt:e,pattern:t,fileNameSep:i})=>{let r=i||Soe,o=(d,g)=>d.endsWith(YI)?(Ga("it is gzipped"),g.isCompressed=!0,d.slice(0,-1*YI.length)):d,s="__NOT_MATCHING__",h=[o,e?d=>d.startsWith(n.name)&&d.endsWith(n.ext)?(Ga("it starts and ends with the right things"),d.slice(n.name.length+1,-1*n.ext.length)):s:d=>d.startsWith(n.base)?(Ga("it starts with the right things"),d.slice(n.base.length+1)):s,t?(d,g)=>{let f=d.split(r),p=f[f.length-1];Ga("items: ",f,", indexStr: ",p);let b=d;p!==void 0&&p.match(/^\d+$/)?(b=d.slice(0,-1*(p.length+1)),Ga(`dateStr is ${b}`),t&&!b&&(b=p,p="0")):p="0";try{let v=WI.parse(t,b,new Date(0,0));return WI.asString(t,v)!==b?d:(g.index=parseInt(p,10),g.date=b,g.timestamp=v.getTime(),"")}catch(v){return Ga(`Problem parsing ${b} as ${t}, error was: `,v),d}}:(d,g)=>d.match(/^\d+$/)?(Ga("it has an index"),g.index=parseInt(d,10),""):d];return d=>{let g={filename:d,index:0,isCompressed:!1};return h.reduce((p,b)=>b(p,g),d)?null:g}}});var XI=m((iEe,$I)=>{var Is=Ot()("streamroller:moveAndMaybeCompressFile"),Fs=Vx(),Toe=require("zlib"),koe=function(n){let e={mode:parseInt("0600",8),compress:!1},t=Object.assign({},e,n);return Is(`_parseOption: moveAndMaybeCompressFile called with option=${JSON.stringify(t)}`),t},Eoe=async(n,e,t)=>{if(t=koe(t),n===e){Is("moveAndMaybeCompressFile: source and target are the same, not doing anything");return}if(await Fs.pathExists(n))if(Is(`moveAndMaybeCompressFile: moving file from ${n} to ${e} ${t.compress?"with":"without"} compress`),t.compress)await new Promise((i,r)=>{Fs.createReadStream(n).pipe(Toe.createGzip()).pipe(Fs.createWriteStream(e,{mode:t.mode})).on("finish",()=>{Is(`moveAndMaybeCompressFile: finished compressing ${e}, deleting ${n}`),Fs.unlink(n).then(i).catch(()=>{Is(`Deleting ${n} failed, truncating instead`),Fs.truncate(n).then(i).catch(r)})})});else{Is(`moveAndMaybeCompressFile: deleting file=${e}, renaming ${n} to ${e}`);try{await Fs.move(n,e,{overwrite:!0})}catch(i){Is(`moveAndMaybeCompressFile: error moving ${n} to ${e}`,i),Is("Trying copy+truncate instead"),await Fs.copy(n,e,{overwrite:!0}),await Fs.truncate(n)}}};$I.exports=Eoe});var Xp=m((nEe,GI)=>{var _n=Ot()("streamroller:RollingFileWriteStream"),ld=Vx(),Zp=require("path"),Jp=BI(),$p=Sp(),{Writable:Poe}=require("stream"),_oe=qI(),Roe=JI(),Loe=XI(),UI=class extends Poe{constructor(e,t){_n(`constructor: creating RollingFileWriteStream. path=${e}`);super(t);this.options=this._parseOption(t),this.fileObject=Zp.parse(e),this.fileObject.dir===""&&(this.fileObject=Zp.parse(Zp.join(process.cwd(),e))),this.fileFormatter=_oe({file:this.fileObject,alwaysIncludeDate:this.options.alwaysIncludePattern,needsIndex:this.options.maxSize 0`);if(i.numBackups||i.numBackups===0){if(i.numBackups<0)throw new Error(`options.numBackups (${i.numBackups}) should be >= 0`);if(i.numBackups>=Number.MAX_SAFE_INTEGER)throw new Error(`options.numBackups (${i.numBackups}) should be < Number.MAX_SAFE_INTEGER`);i.numToKeep=i.numBackups+1}else if(i.numToKeep<=0)throw new Error(`options.numToKeep (${i.numToKeep}) should be > 0`);return _n(`_parseOption: creating stream with option=${JSON.stringify(i)}`),i}_final(e){this.currentFileStream.end("",this.options.encoding,e)}_write(e,t,i){this._shouldRoll().then(()=>{_n(`_write: writing chunk. file=${this.currentFileStream.path} state=${JSON.stringify(this.state)} chunk=${e}`),this.currentFileStream.write(e,t,r=>{this.state.currentSize+=e.length,i(r)})})}async _shouldRoll(){(this._dateChanged()||this._tooBig())&&(_n(`_shouldRoll: rolling because dateChanged? ${this._dateChanged()} or tooBig? ${this._tooBig()}`),await this._roll())}_dateChanged(){return this.state.currentDate&&this.state.currentDate!==$p(this.options.pattern,Jp())}_tooBig(){return this.state.currentSize>=this.options.maxSize}_roll(){return _n("_roll: closing the current stream"),new Promise((e,t)=>{this.currentFileStream.end("",this.options.encoding,()=>{this._moveOldFiles().then(e).catch(t)})})}async _moveOldFiles(){let e=await this._getExistingFiles(),t=this.state.currentDate?e.filter(i=>i.date===this.state.currentDate):e;for(let i=t.length;i>=0;i--){_n(`_moveOldFiles: i = ${i}`);let r=this.fileFormatter({date:this.state.currentDate,index:i}),o=this.fileFormatter({date:this.state.currentDate,index:i+1}),s={compress:this.options.compress&&i===0,mode:this.options.mode};await Loe(r,o,s)}this.state.currentSize=0,this.state.currentDate=this.state.currentDate?$p(this.options.pattern,Jp()):null,_n(`_moveOldFiles: finished rolling files. state=${JSON.stringify(this.state)}`),this._renewWriteStream(),await new Promise((i,r)=>{this.currentFileStream.write("","utf8",()=>{this._clean().then(i).catch(r)})})}async _getExistingFiles(){let e=await ld.readdir(this.fileObject.dir).catch(()=>[]);_n(`_getExistingFiles: files=${e}`);let t=e.map(r=>this.fileNameParser(r)).filter(r=>r),i=r=>(r.timestamp?r.timestamp:Jp().getTime())-r.index;return t.sort((r,o)=>i(r)-i(o)),t}_renewWriteStream(){ld.ensureDirSync(this.fileObject.dir);let e=this.fileFormatter({date:this.state.currentDate,index:0}),t={flags:this.options.flags,encoding:this.options.encoding,mode:this.options.mode};this.currentFileStream=ld.createWriteStream(e,t),this.currentFileStream.on("error",i=>{this.emit("error",i)})}async _clean(){let e=await this._getExistingFiles();if(_n(`_clean: numToKeep = ${this.options.numToKeep}, existingFiles = ${e.length}`),_n("_clean: existing files are: ",e),this._tooManyFiles(e.length)){let t=e.slice(0,e.length-this.options.numToKeep).map(i=>Zp.format({dir:this.fileObject.dir,base:i.filename}));await Foe(t)}}_tooManyFiles(e){return this.options.numToKeep>0&&e>this.options.numToKeep}},Foe=n=>(_n(`deleteFiles: files to delete: ${n}`),Promise.all(n.map(e=>ld.unlink(e).catch(t=>{_n(`deleteFiles: error when unlinking ${e}, ignoring. Error was ${t}`)}))));GI.exports=UI});var zI=m((rEe,KI)=>{var Ioe=Xp(),QI=class extends Ioe{constructor(e,t,i,r){r||(r={}),t&&(r.maxSize=t),!r.numBackups&&r.numBackups!==0&&(!i&&i!==0&&(i=1),r.numBackups=i);super(e,r);this.backups=r.numBackups,this.size=this.options.maxSize}get theStream(){return this.currentFileStream}};KI.exports=QI});var tj=m((oEe,ej)=>{var joe=Xp(),VI=class extends joe{constructor(e,t,i){t&&typeof t=="object"&&(i=t,t=null),i||(i={}),t||(t="yyyy-MM-dd"),i.pattern=t,!i.numBackups&&i.numBackups!==0?(!i.daysToKeep&&i.daysToKeep!==0?i.daysToKeep=1:process.emitWarning("options.daysToKeep is deprecated due the confusion it causes when used together with file size rolling. Please use options.numBackups instead.","DeprecationWarning","StreamRoller0001"),i.numBackups=i.daysToKeep):i.daysToKeep=i.numBackups;super(e,i);this.mode=this.options.mode}get theStream(){return this.currentFileStream}};ej.exports=VI});var eC=m((sEe,ij)=>{ij.exports={RollingFileWriteStream:Xp(),RollingFileStream:zI(),DateRollingFileStream:tj()}});var aj=m((aEe,sj)=>{var nj=Ot()("log4js:file"),Aoe=require("path"),Ooe=eC(),Moe=require("os"),Noe=Moe.EOL,Up=!1,Gp=new Set;function rj(){Gp.forEach(n=>{n.sighupHandler()})}function oj(n,e,t,i){let r=new Ooe.RollingFileStream(n,e,t,i);return r.on("error",o=>{console.error("log4js.fileAppender - Writing to file %s, error happened ",n,o)}),r.on("drain",()=>{process.emit("log4js:pause",!1)}),r}function Boe(n,e,t,i,r,o){n=Aoe.normalize(n),i=!i&&i!==0?5:i,nj("Creating file appender (",n,", ",t,", ",i,", ",r,", ",o,")");let s=oj(n,t,i,r),a=function(l){if(!!s.writable){if(r.removeColor===!0){let u=/\x1b[[0-9;]*m/g;l.data=l.data.map(c=>typeof c=="string"?c.replace(u,""):c)}s.write(e(l,o)+Noe,"utf8")||process.emit("log4js:pause",!0)}};return a.reopen=function(){s.end(()=>{s=oj(n,t,i,r)})},a.sighupHandler=function(){nj("SIGHUP handler called."),a.reopen()},a.shutdown=function(l){Gp.delete(a),Gp.size===0&&Up&&(process.removeListener("SIGHUP",rj),Up=!1),s.end("","utf-8",l)},Gp.add(a),Up||(process.on("SIGHUP",rj),Up=!0),a}function Hoe(n,e){let t=e.basicLayout;return n.layout&&(t=e.layout(n.layout.type,n.layout)),n.mode=n.mode||384,Boe(n.filename,t,n.maxLogSize,n.backups,n,n.timezoneOffset)}sj.exports.configure=Hoe});var uj=m((lEe,lj)=>{var qoe=eC(),Yoe=require("os"),Woe=Yoe.EOL;function Zoe(n,e,t){let i=new qoe.DateRollingFileStream(n,e,t);return i.on("error",r=>{console.error("log4js.dateFileAppender - Writing to file %s, error happened ",n,r)}),i.on("drain",()=>{process.emit("log4js:pause",!1)}),i}function Joe(n,e,t,i,r){i.maxSize=i.maxLogSize;let o=Zoe(n,e,i),s=function(a){!o.writable||o.write(t(a,r)+Woe,"utf8")||process.emit("log4js:pause",!0)};return s.shutdown=function(a){o.end("","utf-8",a)},s}function $oe(n,e){let t=e.basicLayout;return n.layout&&(t=e.layout(n.layout.type,n.layout)),n.alwaysIncludePattern||(n.alwaysIncludePattern=!1),n.mode=n.mode||384,Joe(n.filename,n.pattern,t,n,n.timezoneOffset)}lj.exports.configure=$oe});var gj=m((uEe,dj)=>{var Ro=Ot()("log4js:fileSync"),Tu=require("path"),Ur=require("fs"),Xoe=require("os"),Uoe=Xoe.EOL||` -`;function cj(n,e){if(Ur.existsSync(n))return;let t=Ur.openSync(n,e.flags,e.mode);Ur.closeSync(t)}var hj=class{constructor(e,t,i,r){Ro("In RollingFileStream");function o(){if(!e||!t||t<=0)throw new Error("You must specify a filename and file size")}o(),this.filename=e,this.size=t,this.backups=i,this.options=r,this.currentSize=0;function s(a){let l=0;try{l=Ur.statSync(a).size}catch{cj(a,r)}return l}this.currentSize=s(this.filename)}shouldRoll(){return Ro("should roll with current size %d, and max size %d",this.currentSize,this.size),this.currentSize>=this.size}roll(e){let t=this,i=new RegExp(`^${Tu.basename(e)}`);function r(u){return i.test(u)}function o(u){return parseInt(u.substring(`${Tu.basename(e)}.`.length),10)||0}function s(u,c){return o(u)>o(c)?1:o(u) ${e}.${c+1}`),Ur.renameSync(Tu.join(Tu.dirname(e),u),`${e}.${c+1}`)}}function l(){Ro("Renaming the old files"),Ur.readdirSync(Tu.dirname(e)).filter(r).sort(s).reverse().forEach(a)}Ro("Rolling, rolling, rolling"),l()}write(e,t){let i=this;function r(){Ro("writing the chunk to the file"),i.currentSize+=e.length,Ur.appendFileSync(i.filename,e)}Ro("in write"),this.shouldRoll()&&(this.currentSize=0,this.roll(this.filename)),r()}};function Goe(n,e,t,i,r,o){Ro("fileSync appender created"),n=Tu.normalize(n),i=!i&&i!==0?5:i;function s(l,u,c){let h;return u?h=new hj(l,u,c,o):h=(d=>(cj(d,o),{write(g){Ur.appendFileSync(d,g)}}))(l),h}let a=s(n,t,i);return l=>{a.write(e(l,r)+Uoe)}}function Qoe(n,e){let t=e.basicLayout;n.layout&&(t=e.layout(n.layout.type,n.layout));let i={flags:n.flags||"a",encoding:n.encoding||"utf8",mode:n.mode||384};return Goe(n.filename,t,n.maxLogSize,n.backups,n.timezoneOffset,i)}dj.exports.configure=Qoe});var pj=m((cEe,fj)=>{var Gr=Ot()("log4js:tcp"),Koe=require("net");function zoe(n,e){let t=!1,i=[],r,o=3,s="__LOG4JS__";function a(h){Gr("Writing log event to socket"),t=r.write(`${e(h)}${s}`,"utf8")}function l(){let h;for(Gr("emptying buffer");h=i.shift();)a(h)}function u(){Gr(`appender creating socket to ${n.host||"localhost"}:${n.port||5e3}`),s=`${n.endMsg||"__LOG4JS__"}`,r=Koe.createConnection(n.port||5e3,n.host||"localhost"),r.on("connect",()=>{Gr("socket connected"),l(),t=!0}),r.on("drain",()=>{Gr("drain event received, emptying buffer"),t=!0,l()}),r.on("timeout",r.end.bind(r)),r.on("error",h=>{Gr("connection error",h),t=!1,l()}),r.on("close",u)}u();function c(h){t?a(h):(Gr("buffering log event because it cannot write at the moment"),i.push(h))}return c.shutdown=function(h){Gr("shutdown called"),i.length&&o?(Gr("buffer has items, waiting 100ms to empty"),o-=1,setTimeout(()=>{c.shutdown(h)},100)):(r.removeAllListeners("close"),r.end(h))},c}function Voe(n,e){Gr(`configure with config = ${n}`);let t=function(i){return i.serialise()};return n.layout&&(t=e.layout(n.layout.type,n.layout)),zoe(n,t)}fj.exports.configure=Voe});var nC=m((hEe,iC)=>{var ese=require("path"),Qa=Ot()("log4js:appenders"),Jn=Wa(),mj=Pp(),tse=$a(),ise=Lx(),nse=wL(),vr=new Map;vr.set("console",xL());vr.set("stdout",SL());vr.set("stderr",kL());vr.set("logLevelFilter",PL());vr.set("categoryFilter",LL());vr.set("noLogFilter",jL());vr.set("file",aj());vr.set("dateFile",uj());vr.set("fileSync",gj());vr.set("tcp",pj());var ud=new Map,tC=(n,e)=>{Qa("Loading module from ",n);try{return require(n)}catch(t){Jn.throwExceptionIf(e,t.code!=="MODULE_NOT_FOUND",`appender "${n}" could not be loaded (error was: ${t})`);return}},rse=(n,e)=>vr.get(n)||tC(`./${n}`,e)||tC(n,e)||""||tC(ese.join(process.cwd(),n),e),Qp=new Set,bj=(n,e)=>{if(ud.has(n))return ud.get(n);if(!e.appenders[n])return!1;if(Qp.has(n))throw new Error(`Dependency loop detected for appender ${n}.`);Qp.add(n),Qa(`Creating appender ${n}`);let t=ose(n,e);return Qp.delete(n),ud.set(n,t),t},ose=(n,e)=>{let t=e.appenders[n],i=t.type.configure?t.type:rse(t.type,e);return Jn.throwExceptionIf(e,Jn.not(i),`appender "${n}" is not valid (type "${t.type}" could not be found)`),i.appender&&Qa(`DEPRECATION: Appender ${t.type} exports an appender function.`),i.shutdown&&Qa(`DEPRECATION: Appender ${t.type} exports a shutdown function.`),Qa(`${n}: clustering.isMaster ? ${mj.isMaster()}`),Qa(`${n}: appenderModule is ${require("util").inspect(i)}`),mj.onlyOnMaster(()=>(Qa(`calling appenderModule.configure for ${n} / ${t.type}`),i.configure(nse.modifyConfig(t),ise,r=>bj(r,e),tse)),()=>{})},yj=n=>{ud.clear(),Qp.clear();let e=[];Object.values(n.categories).forEach(t=>{e.push(...t.appenders)}),Object.keys(n.appenders).forEach(t=>{(e.includes(t)||n.appenders[t].type==="tcp-server")&&bj(t,n)})},vj=()=>{yj({appenders:{out:{type:"stdout"}},categories:{default:{appenders:["out"],level:"trace"}}})};vj();Jn.addListener(n=>{Jn.throwExceptionIf(n,Jn.not(Jn.anObject(n.appenders)),'must have a property "appenders" of type object.');let e=Object.keys(n.appenders);Jn.throwExceptionIf(n,Jn.not(e.length),"must define at least one appender."),e.forEach(t=>{Jn.throwExceptionIf(n,Jn.not(n.appenders[t].type),`appender "${t}" is not valid (must be an object with property "type")`)})});Jn.addListener(yj);iC.exports=ud;iC.exports.init=vj});var oC=m((dEe,Kp)=>{var Ka=Ot()("log4js:categories"),Mt=Wa(),rC=$a(),wj=nC(),za=new Map;function Dj(n,e,t){if(e.inherit===!1)return;let i=t.lastIndexOf(".");if(i<0)return;let r=t.substring(0,i),o=n.categories[r];o||(o={inherit:!0,appenders:[]}),Dj(n,o,r),!n.categories[r]&&o.appenders&&o.appenders.length&&o.level&&(n.categories[r]=o),e.appenders=e.appenders||[],e.level=e.level||o.level,o.appenders.forEach(s=>{e.appenders.includes(s)||e.appenders.push(s)}),e.parent=o}function sse(n){if(!n.categories)return;Object.keys(n.categories).forEach(t=>{let i=n.categories[t];Dj(n,i,t)})}Mt.addPreProcessingListener(n=>sse(n));Mt.addListener(n=>{Mt.throwExceptionIf(n,Mt.not(Mt.anObject(n.categories)),'must have a property "categories" of type object.');let e=Object.keys(n.categories);Mt.throwExceptionIf(n,Mt.not(e.length),"must define at least one category."),e.forEach(t=>{let i=n.categories[t];Mt.throwExceptionIf(n,[Mt.not(i.appenders),Mt.not(i.level)],`category "${t}" is not valid (must be an object with properties "appenders" and "level")`),Mt.throwExceptionIf(n,Mt.not(Array.isArray(i.appenders)),`category "${t}" is not valid (appenders must be an array of appender names)`),Mt.throwExceptionIf(n,Mt.not(i.appenders.length),`category "${t}" is not valid (appenders must contain at least one appender name)`),Object.prototype.hasOwnProperty.call(i,"enableCallStack")&&Mt.throwExceptionIf(n,typeof i.enableCallStack!="boolean",`category "${t}" is not valid (enableCallStack must be boolean type)`),i.appenders.forEach(r=>{Mt.throwExceptionIf(n,Mt.not(wj.get(r)),`category "${t}" is not valid (appender "${r}" is not defined)`)}),Mt.throwExceptionIf(n,Mt.not(rC.getLevel(i.level)),`category "${t}" is not valid (level "${i.level}" not recognised; valid levels are ${rC.levels.join(", ")})`)}),Mt.throwExceptionIf(n,Mt.not(n.categories.default),'must define a "default" category.')});var xj=n=>{za.clear(),Object.keys(n.categories).forEach(t=>{let i=n.categories[t],r=[];i.appenders.forEach(o=>{r.push(wj.get(o)),Ka(`Creating category ${t}`),za.set(t,{appenders:r,level:rC.getLevel(i.level),enableCallStack:i.enableCallStack||!1})})})},Cj=()=>{xj({categories:{default:{appenders:["out"],level:"OFF"}}})};Cj();Mt.addListener(xj);var Va=n=>(Ka(`configForCategory: searching for config for ${n}`),za.has(n)?(Ka(`configForCategory: ${n} exists in config, returning it`),za.get(n)):n.indexOf(".")>0?(Ka(`configForCategory: ${n} has hierarchy, searching for parents`),Va(n.substring(0,n.lastIndexOf(".")))):(Ka("configForCategory: returning config for default category"),Va("default"))),ase=n=>Va(n).appenders,lse=n=>Va(n).level,use=(n,e)=>{let t=za.get(n);if(Ka(`setLevelForCategory: found ${t} for ${n}`),!t){let i=Va(n);Ka(`setLevelForCategory: no config found for category, found ${i} for parents of ${n}`),t={appenders:i.appenders}}t.level=e,za.set(n,t)},cse=n=>Va(n).enableCallStack===!0,hse=(n,e)=>{Va(n).enableCallStack=e};Kp.exports=za;Kp.exports=Object.assign(Kp.exports,{appendersForCategory:ase,getLevelForCategory:lse,setLevelForCategory:use,getEnableCallStackForCategory:cse,setEnableCallStackForCategory:hse,init:Cj})});var Ej=m((gEe,kj)=>{var Sj=Ot()("log4js:logger"),dse=Fx(),Lo=$a(),gse=Pp(),zp=oC(),fse=Wa(),pse=/at (?:(.+)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/;function mse(n,e=4){let t=n.stack.split(` -`).slice(e),i=pse.exec(t[0]);return i&&i.length===6?{functionName:i[1],fileName:i[2],lineNumber:parseInt(i[3],10),columnNumber:parseInt(i[4],10),callStack:t.join(` -`)}:null}var Vp=class{constructor(e){if(!e)throw new Error("No category provided.");this.category=e,this.context={},this.parseCallStack=mse,Sj(`Logger created (${this.category}, ${this.level})`)}get level(){return Lo.getLevel(zp.getLevelForCategory(this.category),Lo.TRACE)}set level(e){zp.setLevelForCategory(this.category,Lo.getLevel(e,this.level))}get useCallStack(){return zp.getEnableCallStackForCategory(this.category)}set useCallStack(e){zp.setEnableCallStackForCategory(this.category,e===!0)}log(e,...t){let i=Lo.getLevel(e);i||(this._log(Lo.WARN,"log4js:logger.log: invalid value for log-level as first parameter given: ",e),i=Lo.INFO),this.isLevelEnabled(i)&&this._log(i,t)}isLevelEnabled(e){return this.level.isLessThanOrEqualTo(e)}_log(e,t){Sj(`sending log data (${e}) to appenders`);let i=new dse(this.category,e,t,this.context,this.useCallStack&&this.parseCallStack(new Error));gse.send(i)}addContext(e,t){this.context[e]=t}removeContext(e){delete this.context[e]}clearContext(){this.context={}}setParseCallStackFunction(e){this.parseCallStack=e}};function Tj(n){let e=Lo.getLevel(n),i=e.toString().toLowerCase().replace(/_([a-z])/g,o=>o[1].toUpperCase()),r=i[0].toUpperCase()+i.slice(1);Vp.prototype[`is${r}Enabled`]=function(){return this.isLevelEnabled(e)},Vp.prototype[i]=function(...o){this.log(e,...o)}}Lo.levels.forEach(Tj);fse.addListener(()=>{Lo.levels.forEach(Tj)});kj.exports=Vp});var Rj=m((fEe,_j)=>{var ku=$a(),bse=':remote-addr - - ":method :url HTTP/:http-version" :status :content-length ":referrer" ":user-agent"';function yse(n){return n.originalUrl||n.url}function vse(n,e,t){let i=o=>{let s=o.concat();for(let a=0;ai.source?i.source:i);e=new RegExp(t.join("|"))}return e}function Dse(n,e,t){let i=e;if(t){let r=t.find(o=>{let s=!1;return o.from&&o.to?s=n>=o.from&&n<=o.to:s=o.codes.indexOf(n)!==-1,s});r&&(i=ku.getLevel(r.level,i))}return i}_j.exports=function(e,t){typeof t=="string"||typeof t=="function"?t={format:t}:t=t||{};let i=e,r=ku.getLevel(t.level,ku.INFO),o=t.format||bse,s=wse(t.nolog);return(a,l,u)=>{if(a._logging||s&&s.test(a.originalUrl))return u();if(i.isLevelEnabled(r)||t.level==="auto"){let c=new Date,{writeHead:h}=l;a._logging=!0,l.writeHead=(d,g)=>{l.writeHead=h,l.writeHead(d,g),l.__statusCode=d,l.__headers=g||{}},l.on("finish",()=>{l.responseTime=new Date-c,l.statusCode&&t.level==="auto"&&(r=ku.INFO,l.statusCode>=300&&(r=ku.WARN),l.statusCode>=400&&(r=ku.ERROR)),r=Dse(l.statusCode,r,t.statusRules);let d=vse(a,l,t.tokens||[]);if(t.context&&i.addContext("res",l),typeof o=="function"){let g=o(a,l,f=>Pj(f,d));g&&i.log(r,g)}else i.log(r,Pj(o,d));t.context&&i.removeContext("res")})}return u()}}});var Aj=m((pEe,jj)=>{var Lj=Ot()("log4js:recording"),em=[];function xse(){return function(n){Lj(`received logEvent, number of events now ${em.length+1}`),Lj("log event was ",n),em.push(n)}}function Fj(){return em.slice()}function Ij(){em.length=0}jj.exports={configure:xse,replay:Fj,playback:Fj,reset:Ij,erase:Ij}});var sC=m((mEe,qj)=>{var js=Ot()("log4js:main"),Cse=require("fs"),Sse=AR()({proto:!0}),Tse=Wa(),kse=Lx(),Ese=$a(),Oj=nC(),Mj=oC(),Pse=Ej(),_se=Pp(),Rse=Rj(),Lse=Aj(),cd=!1;function Fse(n){if(!cd)return;js("Received log event ",n),Mj.appendersForCategory(n.categoryName).forEach(t=>{t(n)})}function Ise(n){js(`Loading configuration from ${n}`);try{return JSON.parse(Cse.readFileSync(n,"utf8"))}catch(e){throw new Error(`Problem reading config from file "${n}". Error was ${e.message}`,e)}}function Nj(n){cd&&Bj();let e=n;return typeof e=="string"&&(e=Ise(n)),js(`Configuration is ${e}`),Tse.configure(Sse(e)),_se.onMessage(Fse),cd=!0,Hj}function jse(){return Lse}function Bj(n){js("Shutdown called. Disabling all log writing."),cd=!1;let e=Array.from(Oj.values());Oj.init(),Mj.init();let t=e.reduceRight((s,a)=>a.shutdown?s+1:s,0);if(t===0)return js("No appenders with shutdown functions found."),n!==void 0&&n();let i=0,r;js(`Found ${t} appenders with shutdown functions.`);function o(s){r=r||s,i+=1,js(`Appender shutdowns complete: ${i} / ${t}`),i>=t&&(js("All shutdown functions completed."),n&&n(r))}return e.filter(s=>s.shutdown).forEach(s=>s.shutdown(o)),null}function Ase(n){return cd||Nj(process.env.LOG4JS_CONFIG||{appenders:{out:{type:"stdout"}},categories:{default:{appenders:["out"],level:"OFF"}}}),new Pse(n||"default")}var Hj={getLogger:Ase,configure:Nj,shutdown:Bj,connectLogger:Rse,levels:Ese,addLayout:kse.addLayout,recording:jse};qj.exports=Hj});var hd=m(As=>{"use strict";var Yj=gt().fromCallback,Yi=Qe(),Ose=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(n=>typeof Yi[n]=="function");Object.keys(Yi).forEach(n=>{n!=="promises"&&(As[n]=Yi[n])});Ose.forEach(n=>{As[n]=Yj(Yi[n])});As.exists=function(n,e){return typeof e=="function"?Yi.exists(n,e):new Promise(t=>Yi.exists(n,t))};As.read=function(n,e,t,i,r,o){return typeof o=="function"?Yi.read(n,e,t,i,r,o):new Promise((s,a)=>{Yi.read(n,e,t,i,r,(l,u,c)=>{if(l)return a(l);s({bytesRead:u,buffer:c})})})};As.write=function(n,e,...t){return typeof t[t.length-1]=="function"?Yi.write(n,e,...t):new Promise((i,r)=>{Yi.write(n,e,...t,(o,s,a)=>{if(o)return r(o);i({bytesWritten:s,buffer:a})})})};typeof Yi.writev=="function"&&(As.writev=function(n,e,...t){return typeof t[t.length-1]=="function"?Yi.writev(n,e,...t):new Promise((i,r)=>{Yi.writev(n,e,...t,(o,s,a)=>{if(o)return r(o);i({bytesWritten:s,buffers:a})})})});typeof Yi.realpath.native=="function"&&(As.realpath.native=Yj(Yi.realpath.native))});var aC=m((yEe,Wj)=>{Wj.exports=n=>{let e=process.versions.node.split(".").map(t=>parseInt(t,10));return n=n.split(".").map(t=>parseInt(t,10)),e[0]>n[0]||e[0]===n[0]&&(e[1]>n[1]||e[1]===n[1]&&e[2]>=n[2])}});var Uj=m((vEe,lC)=>{"use strict";var Eu=hd(),Fo=require("path"),Mse=aC(),Zj=Mse("10.12.0"),Jj=n=>{if(process.platform==="win32"&&/[<>:"|?*]/.test(n.replace(Fo.parse(n).root,""))){let t=new Error(`Path contains invalid characters: ${n}`);throw t.code="EINVAL",t}},$j=n=>{let e={mode:511};return typeof n=="number"&&(n={mode:n}),ge(ge({},e),n)},Xj=n=>{let e=new Error(`operation not permitted, mkdir '${n}'`);return e.code="EPERM",e.errno=-4048,e.path=n,e.syscall="mkdir",e};lC.exports.makeDir=async(n,e)=>{if(Jj(n),e=$j(e),Zj){let i=Fo.resolve(n);return Eu.mkdir(i,{mode:e.mode,recursive:!0})}let t=async i=>{try{await Eu.mkdir(i,e.mode)}catch(r){if(r.code==="EPERM")throw r;if(r.code==="ENOENT"){if(Fo.dirname(i)===i)throw Xj(i);if(r.message.includes("null bytes"))throw r;return await t(Fo.dirname(i)),t(i)}try{if(!(await Eu.stat(i)).isDirectory())throw new Error("The path is not a directory")}catch{throw r}}};return t(Fo.resolve(n))};lC.exports.makeDirSync=(n,e)=>{if(Jj(n),e=$j(e),Zj){let i=Fo.resolve(n);return Eu.mkdirSync(i,{mode:e.mode,recursive:!0})}let t=i=>{try{Eu.mkdirSync(i,e.mode)}catch(r){if(r.code==="EPERM")throw r;if(r.code==="ENOENT"){if(Fo.dirname(i)===i)throw Xj(i);if(r.message.includes("null bytes"))throw r;return t(Fo.dirname(i)),t(i)}try{if(!Eu.statSync(i).isDirectory())throw new Error("The path is not a directory")}catch{throw r}}};return t(Fo.resolve(n))}});var wr=m((wEe,Gj)=>{"use strict";var Nse=gt().fromPromise,{makeDir:Bse,makeDirSync:uC}=Uj(),cC=Nse(Bse);Gj.exports={mkdirs:cC,mkdirsSync:uC,mkdirp:cC,mkdirpSync:uC,ensureDir:cC,ensureDirSync:uC}});var hC=m((DEe,Qj)=>{"use strict";var Pu=Qe();function Hse(n,e,t,i){Pu.open(n,"r+",(r,o)=>{if(r)return i(r);Pu.futimes(o,e,t,s=>{Pu.close(o,a=>{i&&i(s||a)})})})}function qse(n,e,t){let i=Pu.openSync(n,"r+");return Pu.futimesSync(i,e,t),Pu.closeSync(i)}Qj.exports={utimesMillis:Hse,utimesMillisSync:qse}});var dd=m((xEe,e1)=>{"use strict";var _u=hd(),on=require("path"),Yse=require("util"),Wse=aC(),tm=Wse("10.5.0"),Kj=n=>tm?_u.stat(n,{bigint:!0}):_u.stat(n),dC=n=>tm?_u.statSync(n,{bigint:!0}):_u.statSync(n);function Zse(n,e){return Promise.all([Kj(n),Kj(e).catch(t=>{if(t.code==="ENOENT")return null;throw t})]).then(([t,i])=>({srcStat:t,destStat:i}))}function Jse(n,e){let t,i=dC(n);try{t=dC(e)}catch(r){if(r.code==="ENOENT")return{srcStat:i,destStat:null};throw r}return{srcStat:i,destStat:t}}function $se(n,e,t,i){Yse.callbackify(Zse)(n,e,(r,o)=>{if(r)return i(r);let{srcStat:s,destStat:a}=o;return a&&im(s,a)?i(new Error("Source and destination must not be the same.")):s.isDirectory()&&gC(n,e)?i(new Error(nm(n,e,t))):i(null,{srcStat:s,destStat:a})})}function Xse(n,e,t){let{srcStat:i,destStat:r}=Jse(n,e);if(r&&im(i,r))throw new Error("Source and destination must not be the same.");if(i.isDirectory()&&gC(n,e))throw new Error(nm(n,e,t));return{srcStat:i,destStat:r}}function zj(n,e,t,i,r){let o=on.resolve(on.dirname(n)),s=on.resolve(on.dirname(t));if(s===o||s===on.parse(s).root)return r();let a=(l,u)=>l?l.code==="ENOENT"?r():r(l):im(e,u)?r(new Error(nm(n,t,i))):zj(n,e,s,i,r);tm?_u.stat(s,{bigint:!0},a):_u.stat(s,a)}function Vj(n,e,t,i){let r=on.resolve(on.dirname(n)),o=on.resolve(on.dirname(t));if(o===r||o===on.parse(o).root)return;let s;try{s=dC(o)}catch(a){if(a.code==="ENOENT")return;throw a}if(im(e,s))throw new Error(nm(n,t,i));return Vj(n,e,o,i)}function im(n,e){return!!(e.ino&&e.dev&&e.ino===n.ino&&e.dev===n.dev&&(tm||e.inor),i=on.resolve(e).split(on.sep).filter(r=>r);return t.reduce((r,o,s)=>r&&i[s]===o,!0)}function nm(n,e,t){return`Cannot ${t} '${n}' to a subdirectory of itself, '${e}'.`}e1.exports={checkPaths:$se,checkPathsSync:Xse,checkParentPaths:zj,checkParentPathsSync:Vj,isSrcSubdir:gC}});var o1=m((CEe,r1)=>{"use strict";var Si=Qe(),gd=require("path"),Use=wr().mkdirsSync,Gse=hC().utimesMillisSync,fd=dd();function Qse(n,e,t){typeof t=="function"&&(t={filter:t}),t=t||{},t.clobber="clobber"in t?!!t.clobber:!0,t.overwrite="overwrite"in t?!!t.overwrite:t.clobber,t.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended; + see https://github.com/jprichardson/node-fs-extra/issues/269`),wd.checkPaths(n,e,"copy",t,(r,o)=>{if(r)return i(r);let{srcStat:s,destStat:a}=o;wd.checkParentPaths(n,s,e,"copy",l=>l?i(l):t.filter?hI(uI,a,n,e,t,i):uI(a,n,e,t,i))})}function uI(n,e,t,i,r){let o=vd.dirname(t);Roe(o,(s,a)=>{if(s)return r(s);if(a)return Vf(n,e,t,i,r);_oe(o,l=>l?r(l):Vf(n,e,t,i,r))})}function hI(n,e,t,i,r,o){Promise.resolve(r.filter(t,i)).then(s=>s?n(e,t,i,r,o):o(),s=>o(s))}function Ioe(n,e,t,i,r){return i.filter?hI(Vf,n,e,t,i,r):Vf(n,e,t,i,r)}function Vf(n,e,t,i,r){(i.dereference?bn.stat:bn.lstat)(e,(s,a)=>s?r(s):a.isDirectory()?Hoe(a,n,e,t,i,r):a.isFile()||a.isCharacterDevice()||a.isBlockDevice()?joe(a,n,e,t,i,r):a.isSymbolicLink()?Woe(n,e,t,i,r):a.isSocket()?r(new Error(`Cannot copy a socket file: ${e}`)):a.isFIFO()?r(new Error(`Cannot copy a FIFO pipe: ${e}`)):r(new Error(`Unknown file: ${e}`)))}function joe(n,e,t,i,r,o){return e?Aoe(n,t,i,r,o):dI(n,t,i,r,o)}function Aoe(n,e,t,i,r){if(i.overwrite)bn.unlink(t,o=>o?r(o):dI(n,e,t,i,r));else return i.errorOnExist?r(new Error(`'${t}' already exists`)):r()}function dI(n,e,t,i,r){bn.copyFile(e,t,o=>o?r(o):i.preserveTimestamps?Moe(n.mode,e,t,r):em(t,n.mode,r))}function Moe(n,e,t,i){return Ooe(n)?Noe(t,n,r=>r?i(r):cI(n,e,t,i)):cI(n,e,t,i)}function Ooe(n){return(n&128)===0}function Noe(n,e,t){return em(n,e|128,t)}function cI(n,e,t,i){Boe(e,t,r=>r?i(r):em(t,n,i))}function em(n,e,t){return bn.chmod(n,e,t)}function Boe(n,e,t){bn.stat(n,(i,r)=>i?t(i):Loe(e,r.atime,r.mtime,t))}function Hoe(n,e,t,i,r,o){return e?gI(t,i,r,o):qoe(n.mode,t,i,r,o)}function qoe(n,e,t,i,r){bn.mkdir(t,o=>{if(o)return r(o);gI(e,t,i,s=>s?r(s):em(t,n,r))})}function gI(n,e,t,i){bn.readdir(n,(r,o)=>r?i(r):pI(o,n,e,t,i))}function pI(n,e,t,i,r){let o=n.pop();return o?Yoe(n,o,e,t,i,r):r()}function Yoe(n,e,t,i,r,o){let s=vd.join(t,e),a=vd.join(i,e);wd.checkPaths(s,a,"copy",r,(l,u)=>{if(l)return o(l);let{destStat:c}=u;Ioe(c,s,a,r,h=>h?o(h):pI(n,t,i,r,o))})}function Woe(n,e,t,i,r){bn.readlink(e,(o,s)=>{if(o)return r(o);if(i.dereference&&(s=vd.resolve(process.cwd(),s)),n)bn.readlink(t,(a,l)=>a?a.code==="EINVAL"||a.code==="UNKNOWN"?bn.symlink(s,t,r):r(a):(i.dereference&&(l=vd.resolve(process.cwd(),l)),wd.isSrcSubdir(s,l)?r(new Error(`Cannot copy '${s}' to a subdirectory of itself, '${l}'.`)):n.isDirectory()&&wd.isSrcSubdir(l,s)?r(new Error(`Cannot overwrite '${l}' with '${s}'.`)):Zoe(s,t,r)));else return bn.symlink(s,t,r)})}function Zoe(n,e,t){bn.unlink(e,i=>i?t(i):bn.symlink(n,e,t))}fI.exports=Foe});var kx=y((hPe,yI)=>{"use strict";var Joe=Ct().fromCallback;yI.exports={copy:Joe(mI())}});var kI=y((dPe,TI)=>{"use strict";var bI=rt(),CI=require("path"),gt=require("assert"),Dd=process.platform==="win32";function xI(n){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(t=>{n[t]=n[t]||bI[t],t=t+"Sync",n[t]=n[t]||bI[t]}),n.maxBusyTries=n.maxBusyTries||3}function Ex(n,e,t){let i=0;typeof e=="function"&&(t=e,e={}),gt(n,"rimraf: missing path"),gt.strictEqual(typeof n,"string","rimraf: path should be a string"),gt.strictEqual(typeof t,"function","rimraf: callback function required"),gt(e,"rimraf: invalid options argument provided"),gt.strictEqual(typeof e,"object","rimraf: options should be object"),xI(e),vI(n,e,function r(o){if(o){if((o.code==="EBUSY"||o.code==="ENOTEMPTY"||o.code==="EPERM")&&ivI(n,e,r),s)}o.code==="ENOENT"&&(o=null)}t(o)})}function vI(n,e,t){gt(n),gt(e),gt(typeof t=="function"),e.lstat(n,(i,r)=>{if(i&&i.code==="ENOENT")return t(null);if(i&&i.code==="EPERM"&&Dd)return wI(n,e,i,t);if(r&&r.isDirectory())return tm(n,e,i,t);e.unlink(n,o=>{if(o){if(o.code==="ENOENT")return t(null);if(o.code==="EPERM")return Dd?wI(n,e,o,t):tm(n,e,o,t);if(o.code==="EISDIR")return tm(n,e,o,t)}return t(o)})})}function wI(n,e,t,i){gt(n),gt(e),gt(typeof i=="function"),e.chmod(n,438,r=>{r?i(r.code==="ENOENT"?null:t):e.stat(n,(o,s)=>{o?i(o.code==="ENOENT"?null:t):s.isDirectory()?tm(n,e,t,i):e.unlink(n,i)})})}function DI(n,e,t){let i;gt(n),gt(e);try{e.chmodSync(n,438)}catch(r){if(r.code==="ENOENT")return;throw t}try{i=e.statSync(n)}catch(r){if(r.code==="ENOENT")return;throw t}i.isDirectory()?im(n,e,t):e.unlinkSync(n)}function tm(n,e,t,i){gt(n),gt(e),gt(typeof i=="function"),e.rmdir(n,r=>{r&&(r.code==="ENOTEMPTY"||r.code==="EEXIST"||r.code==="EPERM")?$oe(n,e,i):r&&r.code==="ENOTDIR"?i(t):i(r)})}function $oe(n,e,t){gt(n),gt(e),gt(typeof t=="function"),e.readdir(n,(i,r)=>{if(i)return t(i);let o=r.length,s;if(o===0)return e.rmdir(n,t);r.forEach(a=>{Ex(CI.join(n,a),e,l=>{if(!s){if(l)return t(s=l);--o===0&&e.rmdir(n,t)}})})})}function SI(n,e){let t;e=e||{},xI(e),gt(n,"rimraf: missing path"),gt.strictEqual(typeof n,"string","rimraf: path should be a string"),gt(e,"rimraf: missing options"),gt.strictEqual(typeof e,"object","rimraf: options should be object");try{t=e.lstatSync(n)}catch(i){if(i.code==="ENOENT")return;i.code==="EPERM"&&Dd&&DI(n,e,i)}try{t&&t.isDirectory()?im(n,e,null):e.unlinkSync(n)}catch(i){if(i.code==="ENOENT")return;if(i.code==="EPERM")return Dd?DI(n,e,i):im(n,e,i);if(i.code!=="EISDIR")throw i;im(n,e,i)}}function im(n,e,t){gt(n),gt(e);try{e.rmdirSync(n)}catch(i){if(i.code==="ENOTDIR")throw t;if(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")Xoe(n,e);else if(i.code!=="ENOENT")throw i}}function Xoe(n,e){if(gt(n),gt(e),e.readdirSync(n).forEach(t=>SI(CI.join(n,t),e)),Dd){let t=Date.now();do try{return e.rmdirSync(n,e)}catch{}while(Date.now()-t<500)}else return e.rmdirSync(n,e)}TI.exports=Ex;Ex.sync=SI});var Cd=y((gPe,PI)=>{"use strict";var nm=rt(),Uoe=Ct().fromCallback,EI=kI();function Goe(n,e){if(nm.rm)return nm.rm(n,{recursive:!0,force:!0},e);EI(n,e)}function Koe(n){if(nm.rmSync)return nm.rmSync(n,{recursive:!0,force:!0});EI.sync(n)}PI.exports={remove:Uoe(Goe),removeSync:Koe}});var MI=y((pPe,AI)=>{"use strict";var Qoe=Ct().fromPromise,LI=sl(),FI=require("path"),II=Pr(),jI=Cd(),_I=Qoe(async function(e){let t;try{t=await LI.readdir(e)}catch{return II.mkdirs(e)}return Promise.all(t.map(i=>jI.remove(FI.join(e,i))))});function RI(n){let e;try{e=LI.readdirSync(n)}catch{return II.mkdirsSync(n)}e.forEach(t=>{t=FI.join(n,t),jI.removeSync(t)})}AI.exports={emptyDirSync:RI,emptydirSync:RI,emptyDir:_I,emptydir:_I}});var HI=y((fPe,BI)=>{"use strict";var zoe=Ct().fromCallback,OI=require("path"),Ws=rt(),NI=Pr();function Voe(n,e){function t(){Ws.writeFile(n,"",i=>{if(i)return e(i);e()})}Ws.stat(n,(i,r)=>{if(!i&&r.isFile())return e();let o=OI.dirname(n);Ws.stat(o,(s,a)=>{if(s)return s.code==="ENOENT"?NI.mkdirs(o,l=>{if(l)return e(l);t()}):e(s);a.isDirectory()?t():Ws.readdir(o,l=>{if(l)return e(l)})})})}function ese(n){let e;try{e=Ws.statSync(n)}catch{}if(e&&e.isFile())return;let t=OI.dirname(n);try{Ws.statSync(t).isDirectory()||Ws.readdirSync(t)}catch(i){if(i&&i.code==="ENOENT")NI.mkdirsSync(t);else throw i}Ws.writeFileSync(n,"")}BI.exports={createFile:zoe(Voe),createFileSync:ese}});var JI=y((mPe,ZI)=>{"use strict";var tse=Ct().fromCallback,qI=require("path"),Zs=rt(),YI=Pr(),ise=Ys().pathExists,{areIdentical:WI}=al();function nse(n,e,t){function i(r,o){Zs.link(r,o,s=>{if(s)return t(s);t(null)})}Zs.lstat(e,(r,o)=>{Zs.lstat(n,(s,a)=>{if(s)return s.message=s.message.replace("lstat","ensureLink"),t(s);if(o&&WI(a,o))return t(null);let l=qI.dirname(e);ise(l,(u,c)=>{if(u)return t(u);if(c)return i(n,e);YI.mkdirs(l,h=>{if(h)return t(h);i(n,e)})})})})}function rse(n,e){let t;try{t=Zs.lstatSync(e)}catch{}try{let o=Zs.lstatSync(n);if(t&&WI(o,t))return}catch(o){throw o.message=o.message.replace("lstat","ensureLink"),o}let i=qI.dirname(e);return Zs.existsSync(i)||YI.mkdirsSync(i),Zs.linkSync(n,e)}ZI.exports={createLink:tse(nse),createLinkSync:rse}});var XI=y((yPe,$I)=>{"use strict";var Js=require("path"),xd=rt(),ose=Ys().pathExists;function sse(n,e,t){if(Js.isAbsolute(n))return xd.lstat(n,i=>i?(i.message=i.message.replace("lstat","ensureSymlink"),t(i)):t(null,{toCwd:n,toDst:n}));{let i=Js.dirname(e),r=Js.join(i,n);return ose(r,(o,s)=>o?t(o):s?t(null,{toCwd:r,toDst:n}):xd.lstat(n,a=>a?(a.message=a.message.replace("lstat","ensureSymlink"),t(a)):t(null,{toCwd:n,toDst:Js.relative(i,n)})))}}function ase(n,e){let t;if(Js.isAbsolute(n)){if(t=xd.existsSync(n),!t)throw new Error("absolute srcpath does not exist");return{toCwd:n,toDst:n}}else{let i=Js.dirname(e),r=Js.join(i,n);if(t=xd.existsSync(r),t)return{toCwd:r,toDst:n};if(t=xd.existsSync(n),!t)throw new Error("relative srcpath does not exist");return{toCwd:n,toDst:Js.relative(i,n)}}}$I.exports={symlinkPaths:sse,symlinkPathsSync:ase}});var KI=y((bPe,GI)=>{"use strict";var UI=rt();function lse(n,e,t){if(t=typeof e=="function"?e:t,e=typeof e=="function"?!1:e,e)return t(null,e);UI.lstat(n,(i,r)=>{if(i)return t(null,"file");e=r&&r.isDirectory()?"dir":"file",t(null,e)})}function use(n,e){let t;if(e)return e;try{t=UI.lstatSync(n)}catch{return"file"}return t&&t.isDirectory()?"dir":"file"}GI.exports={symlinkType:lse,symlinkTypeSync:use}});var rj=y((vPe,nj)=>{"use strict";var cse=Ct().fromCallback,zI=require("path"),_r=sl(),VI=Pr(),hse=VI.mkdirs,dse=VI.mkdirsSync,ej=XI(),gse=ej.symlinkPaths,pse=ej.symlinkPathsSync,tj=KI(),fse=tj.symlinkType,mse=tj.symlinkTypeSync,yse=Ys().pathExists,{areIdentical:ij}=al();function bse(n,e,t,i){i=typeof t=="function"?t:i,t=typeof t=="function"?!1:t,_r.lstat(e,(r,o)=>{!r&&o.isSymbolicLink()?Promise.all([_r.stat(n),_r.stat(e)]).then(([s,a])=>{if(ij(s,a))return i(null);QI(n,e,t,i)}):QI(n,e,t,i)})}function QI(n,e,t,i){gse(n,e,(r,o)=>{if(r)return i(r);n=o.toDst,fse(o.toCwd,t,(s,a)=>{if(s)return i(s);let l=zI.dirname(e);yse(l,(u,c)=>{if(u)return i(u);if(c)return _r.symlink(n,e,a,i);hse(l,h=>{if(h)return i(h);_r.symlink(n,e,a,i)})})})})}function vse(n,e,t){let i;try{i=_r.lstatSync(e)}catch{}if(i&&i.isSymbolicLink()){let a=_r.statSync(n),l=_r.statSync(e);if(ij(a,l))return}let r=pse(n,e);n=r.toDst,t=mse(r.toCwd,t);let o=zI.dirname(e);return _r.existsSync(o)||dse(o),_r.symlinkSync(n,e,t)}nj.exports={createSymlink:cse(bse),createSymlinkSync:vse}});var sj=y((wPe,oj)=>{"use strict";var rm=HI(),om=JI(),sm=rj();oj.exports={createFile:rm.createFile,createFileSync:rm.createFileSync,ensureFile:rm.createFile,ensureFileSync:rm.createFileSync,createLink:om.createLink,createLinkSync:om.createLinkSync,ensureLink:om.createLink,ensureLinkSync:om.createLinkSync,createSymlink:sm.createSymlink,createSymlinkSync:sm.createSymlinkSync,ensureSymlink:sm.createSymlink,ensureSymlinkSync:sm.createSymlinkSync}});var Ou=y((DPe,aj)=>{function wse(n,{EOL:e=` +`,finalEOL:t=!0,replacer:i=null,spaces:r}={}){let o=t?e:"";return JSON.stringify(n,i,r).replace(/\n/g,e)+o}function Dse(n){return Buffer.isBuffer(n)&&(n=n.toString("utf8")),n.replace(/^\uFEFF/,"")}aj.exports={stringify:wse,stripBom:Dse}});var Px=y((CPe,cj)=>{var Nu;try{Nu=rt()}catch{Nu=require("fs")}var am=Ct(),{stringify:lj,stripBom:uj}=Ou();async function Cse(n,e={}){typeof e=="string"&&(e={encoding:e});let t=e.fs||Nu,i="throws"in e?e.throws:!0,r=await am.fromCallback(t.readFile)(n,e);r=uj(r);let o;try{o=JSON.parse(r,e?e.reviver:null)}catch(s){if(i)throw s.message=`${n}: ${s.message}`,s;return null}return o}var xse=am.fromPromise(Cse);function Sse(n,e={}){typeof e=="string"&&(e={encoding:e});let t=e.fs||Nu,i="throws"in e?e.throws:!0;try{let r=t.readFileSync(n,e);return r=uj(r),JSON.parse(r,e.reviver)}catch(r){if(i)throw r.message=`${n}: ${r.message}`,r;return null}}async function Tse(n,e,t={}){let i=t.fs||Nu,r=lj(e,t);await am.fromCallback(i.writeFile)(n,r,t)}var kse=am.fromPromise(Tse);function Ese(n,e,t={}){let i=t.fs||Nu,r=lj(e,t);return i.writeFileSync(n,r,t)}var Pse={readFile:xse,readFileSync:Sse,writeFile:kse,writeFileSync:Ese};cj.exports=Pse});var dj=y((xPe,hj)=>{"use strict";var lm=Px();hj.exports={readJson:lm.readFile,readJsonSync:lm.readFileSync,writeJson:lm.writeFile,writeJsonSync:lm.writeFileSync}});var um=y((SPe,fj)=>{"use strict";var _se=Ct().fromCallback,Sd=rt(),gj=require("path"),pj=Pr(),Rse=Ys().pathExists;function Lse(n,e,t,i){typeof t=="function"&&(i=t,t="utf8");let r=gj.dirname(n);Rse(r,(o,s)=>{if(o)return i(o);if(s)return Sd.writeFile(n,e,t,i);pj.mkdirs(r,a=>{if(a)return i(a);Sd.writeFile(n,e,t,i)})})}function Fse(n,...e){let t=gj.dirname(n);if(Sd.existsSync(t))return Sd.writeFileSync(n,...e);pj.mkdirsSync(t),Sd.writeFileSync(n,...e)}fj.exports={outputFile:_se(Lse),outputFileSync:Fse}});var yj=y((TPe,mj)=>{"use strict";var{stringify:Ise}=Ou(),{outputFile:jse}=um();async function Ase(n,e,t={}){let i=Ise(e,t);await jse(n,i,t)}mj.exports=Ase});var vj=y((kPe,bj)=>{"use strict";var{stringify:Mse}=Ou(),{outputFileSync:Ose}=um();function Nse(n,e,t){let i=Mse(e,t);Ose(n,i,t)}bj.exports=Nse});var Dj=y((EPe,wj)=>{"use strict";var Bse=Ct().fromPromise,Qi=dj();Qi.outputJson=Bse(yj());Qi.outputJsonSync=vj();Qi.outputJSON=Qi.outputJson;Qi.outputJSONSync=Qi.outputJsonSync;Qi.writeJSON=Qi.writeJson;Qi.writeJSONSync=Qi.writeJsonSync;Qi.readJSON=Qi.readJson;Qi.readJSONSync=Qi.readJsonSync;wj.exports=Qi});var kj=y((PPe,Tj)=>{"use strict";var xj=rt(),Rx=require("path"),Hse=Tx().copySync,Sj=Cd().removeSync,qse=Pr().mkdirpSync,Cj=al();function Yse(n,e,t){t=t||{};let i=t.overwrite||t.clobber||!1,{srcStat:r,isChangingCase:o=!1}=Cj.checkPathsSync(n,e,"move",t);return Cj.checkParentPathsSync(n,r,e,"move"),Wse(e)||qse(Rx.dirname(e)),Zse(n,e,i,o)}function Wse(n){let e=Rx.dirname(n);return Rx.parse(e).root===e}function Zse(n,e,t,i){if(i)return _x(n,e,t);if(t)return Sj(e),_x(n,e,t);if(xj.existsSync(e))throw new Error("dest already exists.");return _x(n,e,t)}function _x(n,e,t){try{xj.renameSync(n,e)}catch(i){if(i.code!=="EXDEV")throw i;return Jse(n,e,t)}}function Jse(n,e,t){return Hse(n,e,{overwrite:t,errorOnExist:!0}),Sj(n)}Tj.exports=Yse});var Pj=y((_Pe,Ej)=>{"use strict";Ej.exports={moveSync:kj()}});var Ij=y((RPe,Fj)=>{"use strict";var $se=rt(),Fx=require("path"),Xse=kx().copy,Lj=Cd().remove,Use=Pr().mkdirp,Gse=Ys().pathExists,_j=al();function Kse(n,e,t,i){typeof t=="function"&&(i=t,t={});let r=t.overwrite||t.clobber||!1;_j.checkPaths(n,e,"move",t,(o,s)=>{if(o)return i(o);let{srcStat:a,isChangingCase:l=!1}=s;_j.checkParentPaths(n,a,e,"move",u=>{if(u)return i(u);if(Qse(e))return Rj(n,e,r,l,i);Use(Fx.dirname(e),c=>c?i(c):Rj(n,e,r,l,i))})})}function Qse(n){let e=Fx.dirname(n);return Fx.parse(e).root===e}function Rj(n,e,t,i,r){if(i)return Lx(n,e,t,r);if(t)return Lj(e,o=>o?r(o):Lx(n,e,t,r));Gse(e,(o,s)=>o?r(o):s?r(new Error("dest already exists.")):Lx(n,e,t,r))}function Lx(n,e,t,i){$se.rename(n,e,r=>r?r.code!=="EXDEV"?i(r):zse(n,e,t,i):i())}function zse(n,e,t,i){Xse(n,e,{overwrite:t,errorOnExist:!0},o=>o?i(o):Lj(n,i))}Fj.exports=Kse});var Aj=y((LPe,jj)=>{"use strict";var Vse=Ct().fromCallback;jj.exports={move:Vse(Ij())}});var Ix=y((FPe,Mj)=>{"use strict";Mj.exports=ve(ve(ve(ve(ve(ve(ve(ve(ve(ve(ve(ve({},sl()),Tx()),kx()),MI()),sj()),Dj()),Pr()),Pj()),Aj()),um()),Ys()),Cd())});var Nj=y((IPe,Oj)=>{Oj.exports=()=>new Date});var Hj=y((jPe,Bj)=>{var eae=Wt()("streamroller:fileNameFormatter"),tae=require("path"),iae=".gz",nae=".";Bj.exports=({file:n,keepFileExt:e,needsIndex:t,alwaysIncludeDate:i,compress:r,fileNameSep:o})=>{let s=o||nae,a=tae.join(n.dir,n.name),l=g=>g+n.ext,u=(g,p,f)=>(t||!f)&&p?g+s+p:g,c=(g,p,f)=>(p>0||i)&&f?g+s+f:g,h=(g,p)=>p&&r?g+iae:g,d=e?[c,u,l,h]:[l,c,u,h];return({date:g,index:p})=>(eae(`_formatFileName: date=${g}, index=${p}`),d.reduce((f,m)=>m(f,p,g),a))}});var Zj=y((APe,Wj)=>{var ll=Wt()("streamroller:fileNameParser"),qj=".gz",Yj=Zf(),rae=".";Wj.exports=({file:n,keepFileExt:e,pattern:t,fileNameSep:i})=>{let r=i||rae,o=(d,g)=>d.endsWith(qj)?(ll("it is gzipped"),g.isCompressed=!0,d.slice(0,-1*qj.length)):d,s="__NOT_MATCHING__",h=[o,e?d=>d.startsWith(n.name)&&d.endsWith(n.ext)?(ll("it starts and ends with the right things"),d.slice(n.name.length+1,-1*n.ext.length)):s:d=>d.startsWith(n.base)?(ll("it starts with the right things"),d.slice(n.base.length+1)):s,t?(d,g)=>{let p=d.split(r),f=p[p.length-1];ll("items: ",p,", indexStr: ",f);let m=d;f!==void 0&&f.match(/^\d+$/)?(m=d.slice(0,-1*(f.length+1)),ll(`dateStr is ${m}`),t&&!m&&(m=f,f="0")):f="0";try{let b=Yj.parse(t,m,new Date(0,0));return Yj.asString(t,b)!==m?d:(g.index=parseInt(f,10),g.date=m,g.timestamp=b.getTime(),"")}catch(b){return ll(`Problem parsing ${m} as ${t}, error was: `,b),d}}:(d,g)=>d.match(/^\d+$/)?(ll("it has an index"),g.index=parseInt(d,10),""):d];return d=>{let g={filename:d,index:0,isCompressed:!1};return h.reduce((f,m)=>m(f,g),d)?null:g}}});var $j=y((MPe,Jj)=>{var Xs=Wt()("streamroller:moveAndMaybeCompressFile"),$s=Ix(),oae=require("zlib"),sae=function(n){let e={mode:parseInt("0600",8),compress:!1},t=Object.assign({},e,n);return Xs(`_parseOption: moveAndMaybeCompressFile called with option=${JSON.stringify(t)}`),t},aae=async(n,e,t)=>{if(t=sae(t),n===e){Xs("moveAndMaybeCompressFile: source and target are the same, not doing anything");return}if(await $s.pathExists(n))if(Xs(`moveAndMaybeCompressFile: moving file from ${n} to ${e} ${t.compress?"with":"without"} compress`),t.compress)await new Promise((i,r)=>{$s.createReadStream(n).pipe(oae.createGzip()).pipe($s.createWriteStream(e,{mode:t.mode})).on("finish",()=>{Xs(`moveAndMaybeCompressFile: finished compressing ${e}, deleting ${n}`),$s.unlink(n).then(i).catch(()=>{Xs(`Deleting ${n} failed, truncating instead`),$s.truncate(n).then(i).catch(r)})})});else{Xs(`moveAndMaybeCompressFile: deleting file=${e}, renaming ${n} to ${e}`);try{await $s.move(n,e,{overwrite:!0})}catch(i){Xs(`moveAndMaybeCompressFile: error moving ${n} to ${e}`,i),Xs("Trying copy+truncate instead"),await $s.copy(n,e,{overwrite:!0}),await $s.truncate(n)}}};Jj.exports=aae});var gm=y((OPe,Uj)=>{var Nn=Wt()("streamroller:RollingFileWriteStream"),Td=Ix(),cm=require("path"),hm=Nj(),dm=Zf(),{Writable:lae}=require("stream"),uae=Hj(),cae=Zj(),hae=$j(),Xj=class extends lae{constructor(e,t){Nn(`constructor: creating RollingFileWriteStream. path=${e}`);super(t);this.options=this._parseOption(t),this.fileObject=cm.parse(e),this.fileObject.dir===""&&(this.fileObject=cm.parse(cm.join(process.cwd(),e))),this.fileFormatter=uae({file:this.fileObject,alwaysIncludeDate:this.options.alwaysIncludePattern,needsIndex:this.options.maxSize 0`);if(i.numBackups||i.numBackups===0){if(i.numBackups<0)throw new Error(`options.numBackups (${i.numBackups}) should be >= 0`);if(i.numBackups>=Number.MAX_SAFE_INTEGER)throw new Error(`options.numBackups (${i.numBackups}) should be < Number.MAX_SAFE_INTEGER`);i.numToKeep=i.numBackups+1}else if(i.numToKeep<=0)throw new Error(`options.numToKeep (${i.numToKeep}) should be > 0`);return Nn(`_parseOption: creating stream with option=${JSON.stringify(i)}`),i}_final(e){this.currentFileStream.end("",this.options.encoding,e)}_write(e,t,i){this._shouldRoll().then(()=>{Nn(`_write: writing chunk. file=${this.currentFileStream.path} state=${JSON.stringify(this.state)} chunk=${e}`),this.currentFileStream.write(e,t,r=>{this.state.currentSize+=e.length,i(r)})})}async _shouldRoll(){(this._dateChanged()||this._tooBig())&&(Nn(`_shouldRoll: rolling because dateChanged? ${this._dateChanged()} or tooBig? ${this._tooBig()}`),await this._roll())}_dateChanged(){return this.state.currentDate&&this.state.currentDate!==dm(this.options.pattern,hm())}_tooBig(){return this.state.currentSize>=this.options.maxSize}_roll(){return Nn("_roll: closing the current stream"),new Promise((e,t)=>{this.currentFileStream.end("",this.options.encoding,()=>{this._moveOldFiles().then(e).catch(t)})})}async _moveOldFiles(){let e=await this._getExistingFiles(),t=this.state.currentDate?e.filter(i=>i.date===this.state.currentDate):e;for(let i=t.length;i>=0;i--){Nn(`_moveOldFiles: i = ${i}`);let r=this.fileFormatter({date:this.state.currentDate,index:i}),o=this.fileFormatter({date:this.state.currentDate,index:i+1}),s={compress:this.options.compress&&i===0,mode:this.options.mode};await hae(r,o,s)}this.state.currentSize=0,this.state.currentDate=this.state.currentDate?dm(this.options.pattern,hm()):null,Nn(`_moveOldFiles: finished rolling files. state=${JSON.stringify(this.state)}`),this._renewWriteStream(),await new Promise((i,r)=>{this.currentFileStream.write("","utf8",()=>{this._clean().then(i).catch(r)})})}async _getExistingFiles(){let e=await Td.readdir(this.fileObject.dir).catch(()=>[]);Nn(`_getExistingFiles: files=${e}`);let t=e.map(r=>this.fileNameParser(r)).filter(r=>r),i=r=>(r.timestamp?r.timestamp:hm().getTime())-r.index;return t.sort((r,o)=>i(r)-i(o)),t}_renewWriteStream(){Td.ensureDirSync(this.fileObject.dir);let e=this.fileFormatter({date:this.state.currentDate,index:0}),t={flags:this.options.flags,encoding:this.options.encoding,mode:this.options.mode};this.currentFileStream=Td.createWriteStream(e,t),this.currentFileStream.on("error",i=>{this.emit("error",i)})}async _clean(){let e=await this._getExistingFiles();if(Nn(`_clean: numToKeep = ${this.options.numToKeep}, existingFiles = ${e.length}`),Nn("_clean: existing files are: ",e),this._tooManyFiles(e.length)){let t=e.slice(0,e.length-this.options.numToKeep).map(i=>cm.format({dir:this.fileObject.dir,base:i.filename}));await dae(t)}}_tooManyFiles(e){return this.options.numToKeep>0&&e>this.options.numToKeep}},dae=n=>(Nn(`deleteFiles: files to delete: ${n}`),Promise.all(n.map(e=>Td.unlink(e).catch(t=>{Nn(`deleteFiles: error when unlinking ${e}, ignoring. Error was ${t}`)}))));Uj.exports=Xj});var Qj=y((NPe,Kj)=>{var gae=gm(),Gj=class extends gae{constructor(e,t,i,r){r||(r={}),t&&(r.maxSize=t),!r.numBackups&&r.numBackups!==0&&(!i&&i!==0&&(i=1),r.numBackups=i);super(e,r);this.backups=r.numBackups,this.size=this.options.maxSize}get theStream(){return this.currentFileStream}};Kj.exports=Gj});var e1=y((BPe,Vj)=>{var pae=gm(),zj=class extends pae{constructor(e,t,i){t&&typeof t=="object"&&(i=t,t=null),i||(i={}),t||(t="yyyy-MM-dd"),i.pattern=t,!i.numBackups&&i.numBackups!==0?(!i.daysToKeep&&i.daysToKeep!==0?i.daysToKeep=1:process.emitWarning("options.daysToKeep is deprecated due the confusion it causes when used together with file size rolling. Please use options.numBackups instead.","DeprecationWarning","StreamRoller0001"),i.numBackups=i.daysToKeep):i.daysToKeep=i.numBackups;super(e,i);this.mode=this.options.mode}get theStream(){return this.currentFileStream}};Vj.exports=zj});var jx=y((HPe,t1)=>{t1.exports={RollingFileWriteStream:gm(),RollingFileStream:Qj(),DateRollingFileStream:e1()}});var s1=y((qPe,o1)=>{var i1=Wt()("log4js:file"),fae=require("path"),mae=jx(),yae=require("os"),bae=yae.EOL,pm=!1,fm=new Set;function n1(){fm.forEach(n=>{n.sighupHandler()})}function r1(n,e,t,i){let r=new mae.RollingFileStream(n,e,t,i);return r.on("error",o=>{console.error("log4js.fileAppender - Writing to file %s, error happened ",n,o)}),r.on("drain",()=>{process.emit("log4js:pause",!1)}),r}function vae(n,e,t,i,r,o){n=fae.normalize(n),i=!i&&i!==0?5:i,i1("Creating file appender (",n,", ",t,", ",i,", ",r,", ",o,")");let s=r1(n,t,i,r),a=function(l){if(!!s.writable){if(r.removeColor===!0){let u=/\x1b[[0-9;]*m/g;l.data=l.data.map(c=>typeof c=="string"?c.replace(u,""):c)}s.write(e(l,o)+bae,"utf8")||process.emit("log4js:pause",!0)}};return a.reopen=function(){s.end(()=>{s=r1(n,t,i,r)})},a.sighupHandler=function(){i1("SIGHUP handler called."),a.reopen()},a.shutdown=function(l){fm.delete(a),fm.size===0&&pm&&(process.removeListener("SIGHUP",n1),pm=!1),s.end("","utf-8",l)},fm.add(a),pm||(process.on("SIGHUP",n1),pm=!0),a}function wae(n,e){let t=e.basicLayout;return n.layout&&(t=e.layout(n.layout.type,n.layout)),n.mode=n.mode||384,vae(n.filename,t,n.maxLogSize,n.backups,n,n.timezoneOffset)}o1.exports.configure=wae});var l1=y((YPe,a1)=>{var Dae=jx(),Cae=require("os"),xae=Cae.EOL;function Sae(n,e,t){let i=new Dae.DateRollingFileStream(n,e,t);return i.on("error",r=>{console.error("log4js.dateFileAppender - Writing to file %s, error happened ",n,r)}),i.on("drain",()=>{process.emit("log4js:pause",!1)}),i}function Tae(n,e,t,i,r){i.maxSize=i.maxLogSize;let o=Sae(n,e,i),s=function(a){!o.writable||o.write(t(a,r)+xae,"utf8")||process.emit("log4js:pause",!0)};return s.shutdown=function(a){o.end("","utf-8",a)},s}function kae(n,e){let t=e.basicLayout;return n.layout&&(t=e.layout(n.layout.type,n.layout)),n.alwaysIncludePattern||(n.alwaysIncludePattern=!1),n.mode=n.mode||384,Tae(n.filename,n.pattern,t,n,n.timezoneOffset)}a1.exports.configure=kae});var d1=y((WPe,h1)=>{var Go=Wt()("log4js:fileSync"),Bu=require("path"),co=require("fs"),Eae=require("os"),Pae=Eae.EOL||` +`;function u1(n,e){if(co.existsSync(n))return;let t=co.openSync(n,e.flags,e.mode);co.closeSync(t)}var c1=class{constructor(e,t,i,r){Go("In RollingFileStream");function o(){if(!e||!t||t<=0)throw new Error("You must specify a filename and file size")}o(),this.filename=e,this.size=t,this.backups=i,this.options=r,this.currentSize=0;function s(a){let l=0;try{l=co.statSync(a).size}catch{u1(a,r)}return l}this.currentSize=s(this.filename)}shouldRoll(){return Go("should roll with current size %d, and max size %d",this.currentSize,this.size),this.currentSize>=this.size}roll(e){let t=this,i=new RegExp(`^${Bu.basename(e)}`);function r(u){return i.test(u)}function o(u){return parseInt(u.substring(`${Bu.basename(e)}.`.length),10)||0}function s(u,c){return o(u)>o(c)?1:o(u) ${e}.${c+1}`),co.renameSync(Bu.join(Bu.dirname(e),u),`${e}.${c+1}`)}}function l(){Go("Renaming the old files"),co.readdirSync(Bu.dirname(e)).filter(r).sort(s).reverse().forEach(a)}Go("Rolling, rolling, rolling"),l()}write(e,t){let i=this;function r(){Go("writing the chunk to the file"),i.currentSize+=e.length,co.appendFileSync(i.filename,e)}Go("in write"),this.shouldRoll()&&(this.currentSize=0,this.roll(this.filename)),r()}};function _ae(n,e,t,i,r,o){Go("fileSync appender created"),n=Bu.normalize(n),i=!i&&i!==0?5:i;function s(l,u,c){let h;return u?h=new c1(l,u,c,o):h=(d=>(u1(d,o),{write(g){co.appendFileSync(d,g)}}))(l),h}let a=s(n,t,i);return l=>{a.write(e(l,r)+Pae)}}function Rae(n,e){let t=e.basicLayout;n.layout&&(t=e.layout(n.layout.type,n.layout));let i={flags:n.flags||"a",encoding:n.encoding||"utf8",mode:n.mode||384};return _ae(n.filename,t,n.maxLogSize,n.backups,n.timezoneOffset,i)}h1.exports.configure=Rae});var p1=y((ZPe,g1)=>{var ho=Wt()("log4js:tcp"),Lae=require("net");function Fae(n,e){let t=!1,i=[],r,o=3,s="__LOG4JS__";function a(h){ho("Writing log event to socket"),t=r.write(`${e(h)}${s}`,"utf8")}function l(){let h;for(ho("emptying buffer");h=i.shift();)a(h)}function u(){ho(`appender creating socket to ${n.host||"localhost"}:${n.port||5e3}`),s=`${n.endMsg||"__LOG4JS__"}`,r=Lae.createConnection(n.port||5e3,n.host||"localhost"),r.on("connect",()=>{ho("socket connected"),l(),t=!0}),r.on("drain",()=>{ho("drain event received, emptying buffer"),t=!0,l()}),r.on("timeout",r.end.bind(r)),r.on("error",h=>{ho("connection error",h),t=!1,l()}),r.on("close",u)}u();function c(h){t?a(h):(ho("buffering log event because it cannot write at the moment"),i.push(h))}return c.shutdown=function(h){ho("shutdown called"),i.length&&o?(ho("buffer has items, waiting 100ms to empty"),o-=1,setTimeout(()=>{c.shutdown(h)},100)):(r.removeAllListeners("close"),r.end(h))},c}function Iae(n,e){ho(`configure with config = ${n}`);let t=function(i){return i.serialise()};return n.layout&&(t=e.layout(n.layout.type,n.layout)),Fae(n,t)}g1.exports.configure=Iae});var Ox=y((JPe,Mx)=>{var jae=require("path"),ul=Wt()("log4js:appenders"),er=il(),f1=Uf(),Aae=ol(),Mae=hx(),Oae=vF(),Rr=new Map;Rr.set("console",DF());Rr.set("stdout",xF());Rr.set("stderr",TF());Rr.set("logLevelFilter",EF());Rr.set("categoryFilter",RF());Rr.set("noLogFilter",IF());Rr.set("file",s1());Rr.set("dateFile",l1());Rr.set("fileSync",d1());Rr.set("tcp",p1());var kd=new Map,Ax=(n,e)=>{ul("Loading module from ",n);try{return require(n)}catch(t){er.throwExceptionIf(e,t.code!=="MODULE_NOT_FOUND",`appender "${n}" could not be loaded (error was: ${t})`);return}},Nae=(n,e)=>Rr.get(n)||Ax(`./${n}`,e)||Ax(n,e)||""||Ax(jae.join(process.cwd(),n),e),mm=new Set,m1=(n,e)=>{if(kd.has(n))return kd.get(n);if(!e.appenders[n])return!1;if(mm.has(n))throw new Error(`Dependency loop detected for appender ${n}.`);mm.add(n),ul(`Creating appender ${n}`);let t=Bae(n,e);return mm.delete(n),kd.set(n,t),t},Bae=(n,e)=>{let t=e.appenders[n],i=t.type.configure?t.type:Nae(t.type,e);return er.throwExceptionIf(e,er.not(i),`appender "${n}" is not valid (type "${t.type}" could not be found)`),i.appender&&ul(`DEPRECATION: Appender ${t.type} exports an appender function.`),i.shutdown&&ul(`DEPRECATION: Appender ${t.type} exports a shutdown function.`),ul(`${n}: clustering.isMaster ? ${f1.isMaster()}`),ul(`${n}: appenderModule is ${require("util").inspect(i)}`),f1.onlyOnMaster(()=>(ul(`calling appenderModule.configure for ${n} / ${t.type}`),i.configure(Oae.modifyConfig(t),Mae,r=>m1(r,e),Aae)),()=>{})},y1=n=>{kd.clear(),mm.clear();let e=[];Object.values(n.categories).forEach(t=>{e.push(...t.appenders)}),Object.keys(n.appenders).forEach(t=>{(e.includes(t)||n.appenders[t].type==="tcp-server")&&m1(t,n)})},b1=()=>{y1({appenders:{out:{type:"stdout"}},categories:{default:{appenders:["out"],level:"trace"}}})};b1();er.addListener(n=>{er.throwExceptionIf(n,er.not(er.anObject(n.appenders)),'must have a property "appenders" of type object.');let e=Object.keys(n.appenders);er.throwExceptionIf(n,er.not(e.length),"must define at least one appender."),e.forEach(t=>{er.throwExceptionIf(n,er.not(n.appenders[t].type),`appender "${t}" is not valid (must be an object with property "type")`)})});er.addListener(y1);Mx.exports=kd;Mx.exports.init=b1});var Bx=y(($Pe,ym)=>{var cl=Wt()("log4js:categories"),Zt=il(),Nx=ol(),v1=Ox(),hl=new Map;function w1(n,e,t){if(e.inherit===!1)return;let i=t.lastIndexOf(".");if(i<0)return;let r=t.substring(0,i),o=n.categories[r];o||(o={inherit:!0,appenders:[]}),w1(n,o,r),!n.categories[r]&&o.appenders&&o.appenders.length&&o.level&&(n.categories[r]=o),e.appenders=e.appenders||[],e.level=e.level||o.level,o.appenders.forEach(s=>{e.appenders.includes(s)||e.appenders.push(s)}),e.parent=o}function Hae(n){if(!n.categories)return;Object.keys(n.categories).forEach(t=>{let i=n.categories[t];w1(n,i,t)})}Zt.addPreProcessingListener(n=>Hae(n));Zt.addListener(n=>{Zt.throwExceptionIf(n,Zt.not(Zt.anObject(n.categories)),'must have a property "categories" of type object.');let e=Object.keys(n.categories);Zt.throwExceptionIf(n,Zt.not(e.length),"must define at least one category."),e.forEach(t=>{let i=n.categories[t];Zt.throwExceptionIf(n,[Zt.not(i.appenders),Zt.not(i.level)],`category "${t}" is not valid (must be an object with properties "appenders" and "level")`),Zt.throwExceptionIf(n,Zt.not(Array.isArray(i.appenders)),`category "${t}" is not valid (appenders must be an array of appender names)`),Zt.throwExceptionIf(n,Zt.not(i.appenders.length),`category "${t}" is not valid (appenders must contain at least one appender name)`),Object.prototype.hasOwnProperty.call(i,"enableCallStack")&&Zt.throwExceptionIf(n,typeof i.enableCallStack!="boolean",`category "${t}" is not valid (enableCallStack must be boolean type)`),i.appenders.forEach(r=>{Zt.throwExceptionIf(n,Zt.not(v1.get(r)),`category "${t}" is not valid (appender "${r}" is not defined)`)}),Zt.throwExceptionIf(n,Zt.not(Nx.getLevel(i.level)),`category "${t}" is not valid (level "${i.level}" not recognised; valid levels are ${Nx.levels.join(", ")})`)}),Zt.throwExceptionIf(n,Zt.not(n.categories.default),'must define a "default" category.')});var D1=n=>{hl.clear(),Object.keys(n.categories).forEach(t=>{let i=n.categories[t],r=[];i.appenders.forEach(o=>{r.push(v1.get(o)),cl(`Creating category ${t}`),hl.set(t,{appenders:r,level:Nx.getLevel(i.level),enableCallStack:i.enableCallStack||!1})})})},C1=()=>{D1({categories:{default:{appenders:["out"],level:"OFF"}}})};C1();Zt.addListener(D1);var dl=n=>(cl(`configForCategory: searching for config for ${n}`),hl.has(n)?(cl(`configForCategory: ${n} exists in config, returning it`),hl.get(n)):n.indexOf(".")>0?(cl(`configForCategory: ${n} has hierarchy, searching for parents`),dl(n.substring(0,n.lastIndexOf(".")))):(cl("configForCategory: returning config for default category"),dl("default"))),qae=n=>dl(n).appenders,Yae=n=>dl(n).level,Wae=(n,e)=>{let t=hl.get(n);if(cl(`setLevelForCategory: found ${t} for ${n}`),!t){let i=dl(n);cl(`setLevelForCategory: no config found for category, found ${i} for parents of ${n}`),t={appenders:i.appenders}}t.level=e,hl.set(n,t)},Zae=n=>dl(n).enableCallStack===!0,Jae=(n,e)=>{dl(n).enableCallStack=e};ym.exports=hl;ym.exports=Object.assign(ym.exports,{appendersForCategory:qae,getLevelForCategory:Yae,setLevelForCategory:Wae,getEnableCallStackForCategory:Zae,setEnableCallStackForCategory:Jae,init:C1})});var k1=y((XPe,T1)=>{var x1=Wt()("log4js:logger"),$ae=dx(),Ko=ol(),Xae=Uf(),bm=Bx(),Uae=il(),Gae=/at (?:(.+)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/;function Kae(n,e=4){let t=n.stack.split(` +`).slice(e),i=Gae.exec(t[0]);return i&&i.length===6?{functionName:i[1],fileName:i[2],lineNumber:parseInt(i[3],10),columnNumber:parseInt(i[4],10),callStack:t.join(` +`)}:null}var vm=class{constructor(e){if(!e)throw new Error("No category provided.");this.category=e,this.context={},this.parseCallStack=Kae,x1(`Logger created (${this.category}, ${this.level})`)}get level(){return Ko.getLevel(bm.getLevelForCategory(this.category),Ko.TRACE)}set level(e){bm.setLevelForCategory(this.category,Ko.getLevel(e,this.level))}get useCallStack(){return bm.getEnableCallStackForCategory(this.category)}set useCallStack(e){bm.setEnableCallStackForCategory(this.category,e===!0)}log(e,...t){let i=Ko.getLevel(e);i||(this._log(Ko.WARN,"log4js:logger.log: invalid value for log-level as first parameter given: ",e),i=Ko.INFO),this.isLevelEnabled(i)&&this._log(i,t)}isLevelEnabled(e){return this.level.isLessThanOrEqualTo(e)}_log(e,t){x1(`sending log data (${e}) to appenders`);let i=new $ae(this.category,e,t,this.context,this.useCallStack&&this.parseCallStack(new Error));Xae.send(i)}addContext(e,t){this.context[e]=t}removeContext(e){delete this.context[e]}clearContext(){this.context={}}setParseCallStackFunction(e){this.parseCallStack=e}};function S1(n){let e=Ko.getLevel(n),i=e.toString().toLowerCase().replace(/_([a-z])/g,o=>o[1].toUpperCase()),r=i[0].toUpperCase()+i.slice(1);vm.prototype[`is${r}Enabled`]=function(){return this.isLevelEnabled(e)},vm.prototype[i]=function(...o){this.log(e,...o)}}Ko.levels.forEach(S1);Uae.addListener(()=>{Ko.levels.forEach(S1)});T1.exports=vm});var _1=y((UPe,P1)=>{var Hu=ol(),Qae=':remote-addr - - ":method :url HTTP/:http-version" :status :content-length ":referrer" ":user-agent"';function zae(n){return n.originalUrl||n.url}function Vae(n,e,t){let i=o=>{let s=o.concat();for(let a=0;ai.source?i.source:i);e=new RegExp(t.join("|"))}return e}function tle(n,e,t){let i=e;if(t){let r=t.find(o=>{let s=!1;return o.from&&o.to?s=n>=o.from&&n<=o.to:s=o.codes.indexOf(n)!==-1,s});r&&(i=Hu.getLevel(r.level,i))}return i}P1.exports=function(e,t){typeof t=="string"||typeof t=="function"?t={format:t}:t=t||{};let i=e,r=Hu.getLevel(t.level,Hu.INFO),o=t.format||Qae,s=ele(t.nolog);return(a,l,u)=>{if(a._logging||s&&s.test(a.originalUrl))return u();if(i.isLevelEnabled(r)||t.level==="auto"){let c=new Date,{writeHead:h}=l;a._logging=!0,l.writeHead=(d,g)=>{l.writeHead=h,l.writeHead(d,g),l.__statusCode=d,l.__headers=g||{}},l.on("finish",()=>{l.responseTime=new Date-c,l.statusCode&&t.level==="auto"&&(r=Hu.INFO,l.statusCode>=300&&(r=Hu.WARN),l.statusCode>=400&&(r=Hu.ERROR)),r=tle(l.statusCode,r,t.statusRules);let d=Vae(a,l,t.tokens||[]);if(t.context&&i.addContext("res",l),typeof o=="function"){let g=o(a,l,p=>E1(p,d));g&&i.log(r,g)}else i.log(r,E1(o,d));t.context&&i.removeContext("res")})}return u()}}});var j1=y((GPe,I1)=>{var R1=Wt()("log4js:recording"),wm=[];function ile(){return function(n){R1(`received logEvent, number of events now ${wm.length+1}`),R1("log event was ",n),wm.push(n)}}function L1(){return wm.slice()}function F1(){wm.length=0}I1.exports={configure:ile,replay:L1,playback:L1,reset:F1,erase:F1}});var Hx=y((KPe,H1)=>{var Us=Wt()("log4js:main"),nle=require("fs"),rle=jL()({proto:!0}),ole=il(),sle=hx(),ale=ol(),A1=Ox(),M1=Bx(),lle=k1(),ule=Uf(),cle=_1(),hle=j1(),Ed=!1;function dle(n){if(!Ed)return;Us("Received log event ",n),M1.appendersForCategory(n.categoryName).forEach(t=>{t(n)})}function gle(n){Us(`Loading configuration from ${n}`);try{return JSON.parse(nle.readFileSync(n,"utf8"))}catch(e){throw new Error(`Problem reading config from file "${n}". Error was ${e.message}`,e)}}function O1(n){Ed&&N1();let e=n;return typeof e=="string"&&(e=gle(n)),Us(`Configuration is ${e}`),ole.configure(rle(e)),ule.onMessage(dle),Ed=!0,B1}function ple(){return hle}function N1(n){Us("Shutdown called. Disabling all log writing."),Ed=!1;let e=Array.from(A1.values());A1.init(),M1.init();let t=e.reduceRight((s,a)=>a.shutdown?s+1:s,0);if(t===0)return Us("No appenders with shutdown functions found."),n!==void 0&&n();let i=0,r;Us(`Found ${t} appenders with shutdown functions.`);function o(s){r=r||s,i+=1,Us(`Appender shutdowns complete: ${i} / ${t}`),i>=t&&(Us("All shutdown functions completed."),n&&n(r))}return e.filter(s=>s.shutdown).forEach(s=>s.shutdown(o)),null}function fle(n){return Ed||O1(process.env.LOG4JS_CONFIG||{appenders:{out:{type:"stdout"}},categories:{default:{appenders:["out"],level:"OFF"}}}),new lle(n||"default")}var B1={getLogger:fle,configure:O1,shutdown:N1,connectLogger:cle,levels:ale,addLayout:sle.addLayout,recording:ple};H1.exports=B1});var Pd=y(Gs=>{"use strict";var q1=Ct().fromCallback,zi=rt(),mle=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(n=>typeof zi[n]=="function");Object.keys(zi).forEach(n=>{n!=="promises"&&(Gs[n]=zi[n])});mle.forEach(n=>{Gs[n]=q1(zi[n])});Gs.exists=function(n,e){return typeof e=="function"?zi.exists(n,e):new Promise(t=>zi.exists(n,t))};Gs.read=function(n,e,t,i,r,o){return typeof o=="function"?zi.read(n,e,t,i,r,o):new Promise((s,a)=>{zi.read(n,e,t,i,r,(l,u,c)=>{if(l)return a(l);s({bytesRead:u,buffer:c})})})};Gs.write=function(n,e,...t){return typeof t[t.length-1]=="function"?zi.write(n,e,...t):new Promise((i,r)=>{zi.write(n,e,...t,(o,s,a)=>{if(o)return r(o);i({bytesWritten:s,buffer:a})})})};typeof zi.writev=="function"&&(Gs.writev=function(n,e,...t){return typeof t[t.length-1]=="function"?zi.writev(n,e,...t):new Promise((i,r)=>{zi.writev(n,e,...t,(o,s,a)=>{if(o)return r(o);i({bytesWritten:s,buffers:a})})})});typeof zi.realpath.native=="function"&&(Gs.realpath.native=q1(zi.realpath.native))});var qx=y((zPe,Y1)=>{Y1.exports=n=>{let e=process.versions.node.split(".").map(t=>parseInt(t,10));return n=n.split(".").map(t=>parseInt(t,10)),e[0]>n[0]||e[0]===n[0]&&(e[1]>n[1]||e[1]===n[1]&&e[2]>=n[2])}});var X1=y((VPe,Yx)=>{"use strict";var qu=Pd(),Qo=require("path"),yle=qx(),W1=yle("10.12.0"),Z1=n=>{if(process.platform==="win32"&&/[<>:"|?*]/.test(n.replace(Qo.parse(n).root,""))){let t=new Error(`Path contains invalid characters: ${n}`);throw t.code="EINVAL",t}},J1=n=>{let e={mode:511};return typeof n=="number"&&(n={mode:n}),ve(ve({},e),n)},$1=n=>{let e=new Error(`operation not permitted, mkdir '${n}'`);return e.code="EPERM",e.errno=-4048,e.path=n,e.syscall="mkdir",e};Yx.exports.makeDir=async(n,e)=>{if(Z1(n),e=J1(e),W1){let i=Qo.resolve(n);return qu.mkdir(i,{mode:e.mode,recursive:!0})}let t=async i=>{try{await qu.mkdir(i,e.mode)}catch(r){if(r.code==="EPERM")throw r;if(r.code==="ENOENT"){if(Qo.dirname(i)===i)throw $1(i);if(r.message.includes("null bytes"))throw r;return await t(Qo.dirname(i)),t(i)}try{if(!(await qu.stat(i)).isDirectory())throw new Error("The path is not a directory")}catch{throw r}}};return t(Qo.resolve(n))};Yx.exports.makeDirSync=(n,e)=>{if(Z1(n),e=J1(e),W1){let i=Qo.resolve(n);return qu.mkdirSync(i,{mode:e.mode,recursive:!0})}let t=i=>{try{qu.mkdirSync(i,e.mode)}catch(r){if(r.code==="EPERM")throw r;if(r.code==="ENOENT"){if(Qo.dirname(i)===i)throw $1(i);if(r.message.includes("null bytes"))throw r;return t(Qo.dirname(i)),t(i)}try{if(!qu.statSync(i).isDirectory())throw new Error("The path is not a directory")}catch{throw r}}};return t(Qo.resolve(n))}});var Lr=y((e_e,U1)=>{"use strict";var ble=Ct().fromPromise,{makeDir:vle,makeDirSync:Wx}=X1(),Zx=ble(vle);U1.exports={mkdirs:Zx,mkdirsSync:Wx,mkdirp:Zx,mkdirpSync:Wx,ensureDir:Zx,ensureDirSync:Wx}});var Jx=y((t_e,G1)=>{"use strict";var Yu=rt();function wle(n,e,t,i){Yu.open(n,"r+",(r,o)=>{if(r)return i(r);Yu.futimes(o,e,t,s=>{Yu.close(o,a=>{i&&i(s||a)})})})}function Dle(n,e,t){let i=Yu.openSync(n,"r+");return Yu.futimesSync(i,e,t),Yu.closeSync(i)}G1.exports={utimesMillis:wle,utimesMillisSync:Dle}});var _d=y((i_e,V1)=>{"use strict";var Wu=Pd(),vn=require("path"),Cle=require("util"),xle=qx(),Dm=xle("10.5.0"),K1=n=>Dm?Wu.stat(n,{bigint:!0}):Wu.stat(n),$x=n=>Dm?Wu.statSync(n,{bigint:!0}):Wu.statSync(n);function Sle(n,e){return Promise.all([K1(n),K1(e).catch(t=>{if(t.code==="ENOENT")return null;throw t})]).then(([t,i])=>({srcStat:t,destStat:i}))}function Tle(n,e){let t,i=$x(n);try{t=$x(e)}catch(r){if(r.code==="ENOENT")return{srcStat:i,destStat:null};throw r}return{srcStat:i,destStat:t}}function kle(n,e,t,i){Cle.callbackify(Sle)(n,e,(r,o)=>{if(r)return i(r);let{srcStat:s,destStat:a}=o;return a&&Cm(s,a)?i(new Error("Source and destination must not be the same.")):s.isDirectory()&&Xx(n,e)?i(new Error(xm(n,e,t))):i(null,{srcStat:s,destStat:a})})}function Ele(n,e,t){let{srcStat:i,destStat:r}=Tle(n,e);if(r&&Cm(i,r))throw new Error("Source and destination must not be the same.");if(i.isDirectory()&&Xx(n,e))throw new Error(xm(n,e,t));return{srcStat:i,destStat:r}}function Q1(n,e,t,i,r){let o=vn.resolve(vn.dirname(n)),s=vn.resolve(vn.dirname(t));if(s===o||s===vn.parse(s).root)return r();let a=(l,u)=>l?l.code==="ENOENT"?r():r(l):Cm(e,u)?r(new Error(xm(n,t,i))):Q1(n,e,s,i,r);Dm?Wu.stat(s,{bigint:!0},a):Wu.stat(s,a)}function z1(n,e,t,i){let r=vn.resolve(vn.dirname(n)),o=vn.resolve(vn.dirname(t));if(o===r||o===vn.parse(o).root)return;let s;try{s=$x(o)}catch(a){if(a.code==="ENOENT")return;throw a}if(Cm(e,s))throw new Error(xm(n,t,i));return z1(n,e,o,i)}function Cm(n,e){return!!(e.ino&&e.dev&&e.ino===n.ino&&e.dev===n.dev&&(Dm||e.inor),i=vn.resolve(e).split(vn.sep).filter(r=>r);return t.reduce((r,o,s)=>r&&i[s]===o,!0)}function xm(n,e,t){return`Cannot ${t} '${n}' to a subdirectory of itself, '${e}'.`}V1.exports={checkPaths:kle,checkPathsSync:Ele,checkParentPaths:Q1,checkParentPathsSync:z1,isSrcSubdir:Xx}});var rA=y((n_e,nA)=>{"use strict";var Ii=rt(),Rd=require("path"),Ple=Lr().mkdirsSync,_le=Jx().utimesMillisSync,Ld=_d();function Rle(n,e,t){typeof t=="function"&&(t={filter:t}),t=t||{},t.clobber="clobber"in t?!!t.clobber:!0,t.overwrite="overwrite"in t?!!t.overwrite:t.clobber,t.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended; - see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:i,destStat:r}=fd.checkPathsSync(n,e,"copy");return fd.checkParentPathsSync(n,i,e,"copy"),Kse(r,n,e,t)}function Kse(n,e,t,i){if(i.filter&&!i.filter(e,t))return;let r=gd.dirname(t);return Si.existsSync(r)||Use(r),t1(n,e,t,i)}function t1(n,e,t,i){if(!(i.filter&&!i.filter(e,t)))return zse(n,e,t,i)}function zse(n,e,t,i){let o=(i.dereference?Si.statSync:Si.lstatSync)(e);if(o.isDirectory())return oae(o,n,e,t,i);if(o.isFile()||o.isCharacterDevice()||o.isBlockDevice())return Vse(o,n,e,t,i);if(o.isSymbolicLink())return lae(n,e,t,i)}function Vse(n,e,t,i,r){return e?eae(n,t,i,r):i1(n,t,i,r)}function eae(n,e,t,i){if(i.overwrite)return Si.unlinkSync(t),i1(n,e,t,i);if(i.errorOnExist)throw new Error(`'${t}' already exists`)}function i1(n,e,t,i){return Si.copyFileSync(e,t),i.preserveTimestamps&&tae(n.mode,e,t),fC(t,n.mode)}function tae(n,e,t){return iae(n)&&nae(t,n),rae(e,t)}function iae(n){return(n&128)===0}function nae(n,e){return fC(n,e|128)}function fC(n,e){return Si.chmodSync(n,e)}function rae(n,e){let t=Si.statSync(n);return Gse(e,t.atime,t.mtime)}function oae(n,e,t,i,r){if(!e)return sae(n.mode,t,i,r);if(e&&!e.isDirectory())throw new Error(`Cannot overwrite non-directory '${i}' with directory '${t}'.`);return n1(t,i,r)}function sae(n,e,t,i){return Si.mkdirSync(t),n1(e,t,i),fC(t,n)}function n1(n,e,t){Si.readdirSync(n).forEach(i=>aae(i,n,e,t))}function aae(n,e,t,i){let r=gd.join(e,n),o=gd.join(t,n),{destStat:s}=fd.checkPathsSync(r,o,"copy");return t1(s,r,o,i)}function lae(n,e,t,i){let r=Si.readlinkSync(e);if(i.dereference&&(r=gd.resolve(process.cwd(),r)),n){let o;try{o=Si.readlinkSync(t)}catch(s){if(s.code==="EINVAL"||s.code==="UNKNOWN")return Si.symlinkSync(r,t);throw s}if(i.dereference&&(o=gd.resolve(process.cwd(),o)),fd.isSrcSubdir(r,o))throw new Error(`Cannot copy '${r}' to a subdirectory of itself, '${o}'.`);if(Si.statSync(t).isDirectory()&&fd.isSrcSubdir(o,r))throw new Error(`Cannot overwrite '${o}' with '${r}'.`);return uae(r,t)}else return Si.symlinkSync(r,t)}function uae(n,e){return Si.unlinkSync(e),Si.symlinkSync(n,e)}r1.exports=Qse});var pC=m((SEe,s1)=>{"use strict";s1.exports={copySync:o1()}});var Os=m((TEe,l1)=>{"use strict";var cae=gt().fromPromise,a1=hd();function hae(n){return a1.access(n).then(()=>!0).catch(()=>!1)}l1.exports={pathExists:cae(hae),pathExistsSync:a1.existsSync}});var b1=m((kEe,m1)=>{"use strict";var sn=Qe(),pd=require("path"),dae=wr().mkdirs,gae=Os().pathExists,fae=hC().utimesMillis,md=dd();function pae(n,e,t,i){typeof t=="function"&&!i?(i=t,t={}):typeof t=="function"&&(t={filter:t}),i=i||function(){},t=t||{},t.clobber="clobber"in t?!!t.clobber:!0,t.overwrite="overwrite"in t?!!t.overwrite:t.clobber,t.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended; + see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:i,destStat:r}=Ld.checkPathsSync(n,e,"copy");return Ld.checkParentPathsSync(n,i,e,"copy"),Lle(r,n,e,t)}function Lle(n,e,t,i){if(i.filter&&!i.filter(e,t))return;let r=Rd.dirname(t);return Ii.existsSync(r)||Ple(r),eA(n,e,t,i)}function eA(n,e,t,i){if(!(i.filter&&!i.filter(e,t)))return Fle(n,e,t,i)}function Fle(n,e,t,i){let o=(i.dereference?Ii.statSync:Ii.lstatSync)(e);if(o.isDirectory())return Ble(o,n,e,t,i);if(o.isFile()||o.isCharacterDevice()||o.isBlockDevice())return Ile(o,n,e,t,i);if(o.isSymbolicLink())return Yle(n,e,t,i)}function Ile(n,e,t,i,r){return e?jle(n,t,i,r):tA(n,t,i,r)}function jle(n,e,t,i){if(i.overwrite)return Ii.unlinkSync(t),tA(n,e,t,i);if(i.errorOnExist)throw new Error(`'${t}' already exists`)}function tA(n,e,t,i){return Ii.copyFileSync(e,t),i.preserveTimestamps&&Ale(n.mode,e,t),Ux(t,n.mode)}function Ale(n,e,t){return Mle(n)&&Ole(t,n),Nle(e,t)}function Mle(n){return(n&128)===0}function Ole(n,e){return Ux(n,e|128)}function Ux(n,e){return Ii.chmodSync(n,e)}function Nle(n,e){let t=Ii.statSync(n);return _le(e,t.atime,t.mtime)}function Ble(n,e,t,i,r){if(!e)return Hle(n.mode,t,i,r);if(e&&!e.isDirectory())throw new Error(`Cannot overwrite non-directory '${i}' with directory '${t}'.`);return iA(t,i,r)}function Hle(n,e,t,i){return Ii.mkdirSync(t),iA(e,t,i),Ux(t,n)}function iA(n,e,t){Ii.readdirSync(n).forEach(i=>qle(i,n,e,t))}function qle(n,e,t,i){let r=Rd.join(e,n),o=Rd.join(t,n),{destStat:s}=Ld.checkPathsSync(r,o,"copy");return eA(s,r,o,i)}function Yle(n,e,t,i){let r=Ii.readlinkSync(e);if(i.dereference&&(r=Rd.resolve(process.cwd(),r)),n){let o;try{o=Ii.readlinkSync(t)}catch(s){if(s.code==="EINVAL"||s.code==="UNKNOWN")return Ii.symlinkSync(r,t);throw s}if(i.dereference&&(o=Rd.resolve(process.cwd(),o)),Ld.isSrcSubdir(r,o))throw new Error(`Cannot copy '${r}' to a subdirectory of itself, '${o}'.`);if(Ii.statSync(t).isDirectory()&&Ld.isSrcSubdir(o,r))throw new Error(`Cannot overwrite '${o}' with '${r}'.`);return Wle(r,t)}else return Ii.symlinkSync(r,t)}function Wle(n,e){return Ii.unlinkSync(e),Ii.symlinkSync(n,e)}nA.exports=Rle});var Gx=y((r_e,oA)=>{"use strict";oA.exports={copySync:rA()}});var Ks=y((o_e,aA)=>{"use strict";var Zle=Ct().fromPromise,sA=Pd();function Jle(n){return sA.access(n).then(()=>!0).catch(()=>!1)}aA.exports={pathExists:Zle(Jle),pathExistsSync:sA.existsSync}});var mA=y((s_e,fA)=>{"use strict";var wn=rt(),Fd=require("path"),$le=Lr().mkdirs,Xle=Ks().pathExists,Ule=Jx().utimesMillis,Id=_d();function Gle(n,e,t,i){typeof t=="function"&&!i?(i=t,t={}):typeof t=="function"&&(t={filter:t}),i=i||function(){},t=t||{},t.clobber="clobber"in t?!!t.clobber:!0,t.overwrite="overwrite"in t?!!t.overwrite:t.clobber,t.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended; - see https://github.com/jprichardson/node-fs-extra/issues/269`),md.checkPaths(n,e,"copy",(r,o)=>{if(r)return i(r);let{srcStat:s,destStat:a}=o;md.checkParentPaths(n,s,e,"copy",l=>l?i(l):t.filter?d1(u1,a,n,e,t,i):u1(a,n,e,t,i))})}function u1(n,e,t,i,r){let o=pd.dirname(t);gae(o,(s,a)=>{if(s)return r(s);if(a)return mC(n,e,t,i,r);dae(o,l=>l?r(l):mC(n,e,t,i,r))})}function d1(n,e,t,i,r,o){Promise.resolve(r.filter(t,i)).then(s=>s?n(e,t,i,r,o):o(),s=>o(s))}function mC(n,e,t,i,r){return i.filter?d1(c1,n,e,t,i,r):c1(n,e,t,i,r)}function c1(n,e,t,i,r){(i.dereference?sn.stat:sn.lstat)(e,(s,a)=>{if(s)return r(s);if(a.isDirectory())return xae(a,n,e,t,i,r);if(a.isFile()||a.isCharacterDevice()||a.isBlockDevice())return mae(a,n,e,t,i,r);if(a.isSymbolicLink())return Tae(n,e,t,i,r)})}function mae(n,e,t,i,r,o){return e?bae(n,t,i,r,o):g1(n,t,i,r,o)}function bae(n,e,t,i,r){if(i.overwrite)sn.unlink(t,o=>o?r(o):g1(n,e,t,i,r));else return i.errorOnExist?r(new Error(`'${t}' already exists`)):r()}function g1(n,e,t,i,r){sn.copyFile(e,t,o=>o?r(o):i.preserveTimestamps?yae(n.mode,e,t,r):rm(t,n.mode,r))}function yae(n,e,t,i){return vae(n)?wae(t,n,r=>r?i(r):h1(n,e,t,i)):h1(n,e,t,i)}function vae(n){return(n&128)===0}function wae(n,e,t){return rm(n,e|128,t)}function h1(n,e,t,i){Dae(e,t,r=>r?i(r):rm(t,n,i))}function rm(n,e,t){return sn.chmod(n,e,t)}function Dae(n,e,t){sn.stat(n,(i,r)=>i?t(i):fae(e,r.atime,r.mtime,t))}function xae(n,e,t,i,r,o){return e?e&&!e.isDirectory()?o(new Error(`Cannot overwrite non-directory '${i}' with directory '${t}'.`)):f1(t,i,r,o):Cae(n.mode,t,i,r,o)}function Cae(n,e,t,i,r){sn.mkdir(t,o=>{if(o)return r(o);f1(e,t,i,s=>s?r(s):rm(t,n,r))})}function f1(n,e,t,i){sn.readdir(n,(r,o)=>r?i(r):p1(o,n,e,t,i))}function p1(n,e,t,i,r){let o=n.pop();return o?Sae(n,o,e,t,i,r):r()}function Sae(n,e,t,i,r,o){let s=pd.join(t,e),a=pd.join(i,e);md.checkPaths(s,a,"copy",(l,u)=>{if(l)return o(l);let{destStat:c}=u;mC(c,s,a,r,h=>h?o(h):p1(n,t,i,r,o))})}function Tae(n,e,t,i,r){sn.readlink(e,(o,s)=>{if(o)return r(o);if(i.dereference&&(s=pd.resolve(process.cwd(),s)),n)sn.readlink(t,(a,l)=>a?a.code==="EINVAL"||a.code==="UNKNOWN"?sn.symlink(s,t,r):r(a):(i.dereference&&(l=pd.resolve(process.cwd(),l)),md.isSrcSubdir(s,l)?r(new Error(`Cannot copy '${s}' to a subdirectory of itself, '${l}'.`)):n.isDirectory()&&md.isSrcSubdir(l,s)?r(new Error(`Cannot overwrite '${l}' with '${s}'.`)):kae(s,t,r)));else return sn.symlink(s,t,r)})}function kae(n,e,t){sn.unlink(e,i=>i?t(i):sn.symlink(n,e,t))}m1.exports=pae});var bC=m((EEe,y1)=>{"use strict";var Eae=gt().fromCallback;y1.exports={copy:Eae(b1())}});var E1=m((PEe,k1)=>{"use strict";var v1=Qe(),C1=require("path"),st=require("assert"),bd=process.platform==="win32";function S1(n){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(t=>{n[t]=n[t]||v1[t],t=t+"Sync",n[t]=n[t]||v1[t]}),n.maxBusyTries=n.maxBusyTries||3}function yC(n,e,t){let i=0;typeof e=="function"&&(t=e,e={}),st(n,"rimraf: missing path"),st.strictEqual(typeof n,"string","rimraf: path should be a string"),st.strictEqual(typeof t,"function","rimraf: callback function required"),st(e,"rimraf: invalid options argument provided"),st.strictEqual(typeof e,"object","rimraf: options should be object"),S1(e),w1(n,e,function r(o){if(o){if((o.code==="EBUSY"||o.code==="ENOTEMPTY"||o.code==="EPERM")&&iw1(n,e,r),s)}o.code==="ENOENT"&&(o=null)}t(o)})}function w1(n,e,t){st(n),st(e),st(typeof t=="function"),e.lstat(n,(i,r)=>{if(i&&i.code==="ENOENT")return t(null);if(i&&i.code==="EPERM"&&bd)return D1(n,e,i,t);if(r&&r.isDirectory())return om(n,e,i,t);e.unlink(n,o=>{if(o){if(o.code==="ENOENT")return t(null);if(o.code==="EPERM")return bd?D1(n,e,o,t):om(n,e,o,t);if(o.code==="EISDIR")return om(n,e,o,t)}return t(o)})})}function D1(n,e,t,i){st(n),st(e),st(typeof i=="function"),e.chmod(n,438,r=>{r?i(r.code==="ENOENT"?null:t):e.stat(n,(o,s)=>{o?i(o.code==="ENOENT"?null:t):s.isDirectory()?om(n,e,t,i):e.unlink(n,i)})})}function x1(n,e,t){let i;st(n),st(e);try{e.chmodSync(n,438)}catch(r){if(r.code==="ENOENT")return;throw t}try{i=e.statSync(n)}catch(r){if(r.code==="ENOENT")return;throw t}i.isDirectory()?sm(n,e,t):e.unlinkSync(n)}function om(n,e,t,i){st(n),st(e),st(typeof i=="function"),e.rmdir(n,r=>{r&&(r.code==="ENOTEMPTY"||r.code==="EEXIST"||r.code==="EPERM")?Pae(n,e,i):r&&r.code==="ENOTDIR"?i(t):i(r)})}function Pae(n,e,t){st(n),st(e),st(typeof t=="function"),e.readdir(n,(i,r)=>{if(i)return t(i);let o=r.length,s;if(o===0)return e.rmdir(n,t);r.forEach(a=>{yC(C1.join(n,a),e,l=>{if(!s){if(l)return t(s=l);--o===0&&e.rmdir(n,t)}})})})}function T1(n,e){let t;e=e||{},S1(e),st(n,"rimraf: missing path"),st.strictEqual(typeof n,"string","rimraf: path should be a string"),st(e,"rimraf: missing options"),st.strictEqual(typeof e,"object","rimraf: options should be object");try{t=e.lstatSync(n)}catch(i){if(i.code==="ENOENT")return;i.code==="EPERM"&&bd&&x1(n,e,i)}try{t&&t.isDirectory()?sm(n,e,null):e.unlinkSync(n)}catch(i){if(i.code==="ENOENT")return;if(i.code==="EPERM")return bd?x1(n,e,i):sm(n,e,i);if(i.code!=="EISDIR")throw i;sm(n,e,i)}}function sm(n,e,t){st(n),st(e);try{e.rmdirSync(n)}catch(i){if(i.code==="ENOTDIR")throw t;if(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")_ae(n,e);else if(i.code!=="ENOENT")throw i}}function _ae(n,e){if(st(n),st(e),e.readdirSync(n).forEach(t=>T1(C1.join(n,t),e)),bd){let t=Date.now();do try{return e.rmdirSync(n,e)}catch{}while(Date.now()-t<500)}else return e.rmdirSync(n,e)}k1.exports=yC;yC.sync=T1});var yd=m((_Ee,_1)=>{"use strict";var Rae=gt().fromCallback,P1=E1();_1.exports={remove:Rae(P1),removeSync:P1.sync}});var M1=m((REe,O1)=>{"use strict";var Lae=gt().fromCallback,F1=Qe(),I1=require("path"),j1=wr(),A1=yd(),R1=Lae(function(e,t){t=t||function(){},F1.readdir(e,(i,r)=>{if(i)return j1.mkdirs(e,t);r=r.map(s=>I1.join(e,s)),o();function o(){let s=r.pop();if(!s)return t();A1.remove(s,a=>{if(a)return t(a);o()})}})});function L1(n){let e;try{e=F1.readdirSync(n)}catch{return j1.mkdirsSync(n)}e.forEach(t=>{t=I1.join(n,t),A1.removeSync(t)})}O1.exports={emptyDirSync:L1,emptydirSync:L1,emptyDir:R1,emptydir:R1}});var q1=m((LEe,H1)=>{"use strict";var Fae=gt().fromCallback,N1=require("path"),Ms=Qe(),B1=wr();function Iae(n,e){function t(){Ms.writeFile(n,"",i=>{if(i)return e(i);e()})}Ms.stat(n,(i,r)=>{if(!i&&r.isFile())return e();let o=N1.dirname(n);Ms.stat(o,(s,a)=>{if(s)return s.code==="ENOENT"?B1.mkdirs(o,l=>{if(l)return e(l);t()}):e(s);a.isDirectory()?t():Ms.readdir(o,l=>{if(l)return e(l)})})})}function jae(n){let e;try{e=Ms.statSync(n)}catch{}if(e&&e.isFile())return;let t=N1.dirname(n);try{Ms.statSync(t).isDirectory()||Ms.readdirSync(t)}catch(i){if(i&&i.code==="ENOENT")B1.mkdirsSync(t);else throw i}Ms.writeFileSync(n,"")}H1.exports={createFile:Fae(Iae),createFileSync:jae}});var $1=m((FEe,J1)=>{"use strict";var Aae=gt().fromCallback,W1=require("path"),el=Qe(),Z1=wr(),Y1=Os().pathExists;function Oae(n,e,t){function i(r,o){el.link(r,o,s=>{if(s)return t(s);t(null)})}Y1(e,(r,o)=>{if(r)return t(r);if(o)return t(null);el.lstat(n,s=>{if(s)return s.message=s.message.replace("lstat","ensureLink"),t(s);let a=W1.dirname(e);Y1(a,(l,u)=>{if(l)return t(l);if(u)return i(n,e);Z1.mkdirs(a,c=>{if(c)return t(c);i(n,e)})})})})}function Mae(n,e){if(el.existsSync(e))return;try{el.lstatSync(n)}catch(o){throw o.message=o.message.replace("lstat","ensureLink"),o}let i=W1.dirname(e);return el.existsSync(i)||Z1.mkdirsSync(i),el.linkSync(n,e)}J1.exports={createLink:Aae(Oae),createLinkSync:Mae}});var U1=m((IEe,X1)=>{"use strict";var Ns=require("path"),vd=Qe(),Nae=Os().pathExists;function Bae(n,e,t){if(Ns.isAbsolute(n))return vd.lstat(n,i=>i?(i.message=i.message.replace("lstat","ensureSymlink"),t(i)):t(null,{toCwd:n,toDst:n}));{let i=Ns.dirname(e),r=Ns.join(i,n);return Nae(r,(o,s)=>o?t(o):s?t(null,{toCwd:r,toDst:n}):vd.lstat(n,a=>a?(a.message=a.message.replace("lstat","ensureSymlink"),t(a)):t(null,{toCwd:n,toDst:Ns.relative(i,n)})))}}function Hae(n,e){let t;if(Ns.isAbsolute(n)){if(t=vd.existsSync(n),!t)throw new Error("absolute srcpath does not exist");return{toCwd:n,toDst:n}}else{let i=Ns.dirname(e),r=Ns.join(i,n);if(t=vd.existsSync(r),t)return{toCwd:r,toDst:n};if(t=vd.existsSync(n),!t)throw new Error("relative srcpath does not exist");return{toCwd:n,toDst:Ns.relative(i,n)}}}X1.exports={symlinkPaths:Bae,symlinkPathsSync:Hae}});var K1=m((jEe,Q1)=>{"use strict";var G1=Qe();function qae(n,e,t){if(t=typeof e=="function"?e:t,e=typeof e=="function"?!1:e,e)return t(null,e);G1.lstat(n,(i,r)=>{if(i)return t(null,"file");e=r&&r.isDirectory()?"dir":"file",t(null,e)})}function Yae(n,e){let t;if(e)return e;try{t=G1.lstatSync(n)}catch{return"file"}return t&&t.isDirectory()?"dir":"file"}Q1.exports={symlinkType:qae,symlinkTypeSync:Yae}});var rA=m((AEe,nA)=>{"use strict";var Wae=gt().fromCallback,V1=require("path"),Ru=Qe(),eA=wr(),Zae=eA.mkdirs,Jae=eA.mkdirsSync,tA=U1(),$ae=tA.symlinkPaths,Xae=tA.symlinkPathsSync,iA=K1(),Uae=iA.symlinkType,Gae=iA.symlinkTypeSync,z1=Os().pathExists;function Qae(n,e,t,i){i=typeof t=="function"?t:i,t=typeof t=="function"?!1:t,z1(e,(r,o)=>{if(r)return i(r);if(o)return i(null);$ae(n,e,(s,a)=>{if(s)return i(s);n=a.toDst,Uae(a.toCwd,t,(l,u)=>{if(l)return i(l);let c=V1.dirname(e);z1(c,(h,d)=>{if(h)return i(h);if(d)return Ru.symlink(n,e,u,i);Zae(c,g=>{if(g)return i(g);Ru.symlink(n,e,u,i)})})})})})}function Kae(n,e,t){if(Ru.existsSync(e))return;let r=Xae(n,e);n=r.toDst,t=Gae(r.toCwd,t);let o=V1.dirname(e);return Ru.existsSync(o)||Jae(o),Ru.symlinkSync(n,e,t)}nA.exports={createSymlink:Wae(Qae),createSymlinkSync:Kae}});var sA=m((OEe,oA)=>{"use strict";var am=q1(),lm=$1(),um=rA();oA.exports={createFile:am.createFile,createFileSync:am.createFileSync,ensureFile:am.createFile,ensureFileSync:am.createFileSync,createLink:lm.createLink,createLinkSync:lm.createLinkSync,ensureLink:lm.createLink,ensureLinkSync:lm.createLinkSync,createSymlink:um.createSymlink,createSymlinkSync:um.createSymlinkSync,ensureSymlink:um.createSymlink,ensureSymlinkSync:um.createSymlinkSync}});var lA=m((MEe,aA)=>{"use strict";var cm=Ux();aA.exports={readJson:cm.readFile,readJsonSync:cm.readFileSync,writeJson:cm.writeFile,writeJsonSync:cm.writeFileSync}});var hm=m((NEe,hA)=>{"use strict";var zae=gt().fromCallback,wd=Qe(),uA=require("path"),cA=wr(),Vae=Os().pathExists;function ele(n,e,t,i){typeof t=="function"&&(i=t,t="utf8");let r=uA.dirname(n);Vae(r,(o,s)=>{if(o)return i(o);if(s)return wd.writeFile(n,e,t,i);cA.mkdirs(r,a=>{if(a)return i(a);wd.writeFile(n,e,t,i)})})}function tle(n,...e){let t=uA.dirname(n);if(wd.existsSync(t))return wd.writeFileSync(n,...e);cA.mkdirsSync(t),wd.writeFileSync(n,...e)}hA.exports={outputFile:zae(ele),outputFileSync:tle}});var gA=m((BEe,dA)=>{"use strict";var{stringify:ile}=Cu(),{outputFile:nle}=hm();async function rle(n,e,t={}){let i=ile(e,t);await nle(n,i,t)}dA.exports=rle});var pA=m((HEe,fA)=>{"use strict";var{stringify:ole}=Cu(),{outputFileSync:sle}=hm();function ale(n,e,t){let i=ole(e,t);sle(n,i,t)}fA.exports=ale});var bA=m((qEe,mA)=>{"use strict";var lle=gt().fromPromise,Wi=lA();Wi.outputJson=lle(gA());Wi.outputJsonSync=pA();Wi.outputJSON=Wi.outputJson;Wi.outputJSONSync=Wi.outputJsonSync;Wi.writeJSON=Wi.writeJson;Wi.writeJSONSync=Wi.writeJsonSync;Wi.readJSON=Wi.readJson;Wi.readJSONSync=Wi.readJsonSync;mA.exports=Wi});var CA=m((YEe,xA)=>{"use strict";var wA=Qe(),ule=require("path"),cle=pC().copySync,DA=yd().removeSync,hle=wr().mkdirpSync,yA=dd();function dle(n,e,t){t=t||{};let i=t.overwrite||t.clobber||!1,{srcStat:r}=yA.checkPathsSync(n,e,"move");return yA.checkParentPathsSync(n,r,e,"move"),hle(ule.dirname(e)),gle(n,e,i)}function gle(n,e,t){if(t)return DA(e),vA(n,e,t);if(wA.existsSync(e))throw new Error("dest already exists.");return vA(n,e,t)}function vA(n,e,t){try{wA.renameSync(n,e)}catch(i){if(i.code!=="EXDEV")throw i;return fle(n,e,t)}}function fle(n,e,t){return cle(n,e,{overwrite:t,errorOnExist:!0}),DA(n)}xA.exports=dle});var TA=m((WEe,SA)=>{"use strict";SA.exports={moveSync:CA()}});var RA=m((ZEe,_A)=>{"use strict";var ple=Qe(),mle=require("path"),ble=bC().copy,PA=yd().remove,yle=wr().mkdirp,vle=Os().pathExists,kA=dd();function wle(n,e,t,i){typeof t=="function"&&(i=t,t={});let r=t.overwrite||t.clobber||!1;kA.checkPaths(n,e,"move",(o,s)=>{if(o)return i(o);let{srcStat:a}=s;kA.checkParentPaths(n,a,e,"move",l=>{if(l)return i(l);yle(mle.dirname(e),u=>u?i(u):Dle(n,e,r,i))})})}function Dle(n,e,t,i){if(t)return PA(e,r=>r?i(r):EA(n,e,t,i));vle(e,(r,o)=>r?i(r):o?i(new Error("dest already exists.")):EA(n,e,t,i))}function EA(n,e,t,i){ple.rename(n,e,r=>r?r.code!=="EXDEV"?i(r):xle(n,e,t,i):i())}function xle(n,e,t,i){ble(n,e,{overwrite:t,errorOnExist:!0},o=>o?i(o):PA(n,i))}_A.exports=wle});var FA=m((JEe,LA)=>{"use strict";var Cle=gt().fromCallback;LA.exports={move:Cle(RA())}});var Rn=m(($Ee,vC)=>{"use strict";vC.exports=ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge({},hd()),pC()),bC()),M1()),sA()),bA()),wr()),TA()),FA()),hm()),Os()),yd());var IA=require("fs");Object.getOwnPropertyDescriptor(IA,"promises")&&Object.defineProperty(vC.exports,"promises",{get(){return IA.promises}})});var q=m((OA,MA)=>{"use strict";var tl=C(require("fs")),wC=C(sC()),dm=C(require("path")),jA=C(require("os")),AA=C(Rn());function DC(){let n=process.env.NVIM_COC_LOG_FILE;if(n)return n;let e=process.env.XDG_RUNTIME_DIR;if(e)try{return tl.default.accessSync(e,tl.default.constants.R_OK|tl.default.constants.W_OK),dm.default.join(e,`coc-nvim-${process.pid}.log`)}catch{}let t=jA.default.tmpdir();return e=dm.default.join(t,`coc.nvim-${process.pid}`),tl.default.existsSync(e)||(0,AA.mkdirpSync)(e),dm.default.join(e,"coc-nvim.log")}var Sle=1024*1024,Tle=10,gm=DC(),kle=process.env.NVIM_COC_LOG_LEVEL||"info";if(tl.default.existsSync(gm))try{tl.default.writeFileSync(gm,"",{encoding:"utf8",mode:438})}catch{}OA.getLogFile=DC;wC.default.configure({disableClustering:!0,appenders:{out:{type:"file",mode:438,filename:gm,maxLogSize:Sle,backups:Tle,layout:{type:"pattern",pattern:`%d{ISO8601} %p (pid:${process.pid}) [%c] - %m`}}},categories:{default:{appenders:["out"],level:kle}}});MA.exports=(n="coc-nvim")=>{let e=wC.default.getLogger(n);return Object.assign(e,{getLogFile:DC,logfile:gm})}});var xC=_(()=>{"use strict";Promise.prototype.logError=function(){this.catch(n=>{q()("util-extensions").error(n)})}});var BA=m((SC,NA)=>{NA.exports=CC(typeof Buffer<"u"&&Buffer)||CC(SC.Buffer)||CC(typeof window<"u"&&window.Buffer)||SC.Buffer;function CC(n){return n&&n.isBuffer&&n}});var fm=m((XEe,HA)=>{var Ele={}.toString;HA.exports=Array.isArray||function(n){return Ele.call(n)=="[object Array]"}});var WA=m((Fu,YA)=>{var Lu=Ln(),Fu=YA.exports=qA(0);Fu.alloc=qA;Fu.concat=Lu.concat;Fu.from=Ple;function qA(n){return new Array(n)}function Ple(n){if(!Lu.isBuffer(n)&&Lu.isView(n))n=Lu.Uint8Array.from(n);else if(Lu.isArrayBuffer(n))n=new Uint8Array(n);else{if(typeof n=="string")return Lu.from.call(Fu,n);if(typeof n=="number")throw new TypeError('"value" argument must not be a number')}return Array.prototype.slice.call(n)}});var $A=m((ju,JA)=>{var Io=Ln(),Iu=Io.global,ju=JA.exports=Io.hasBuffer?ZA(0):[];ju.alloc=Io.hasBuffer&&Iu.alloc||ZA;ju.concat=Io.concat;ju.from=_le;function ZA(n){return new Iu(n)}function _le(n){if(!Io.isBuffer(n)&&Io.isView(n))n=Io.Uint8Array.from(n);else if(Io.isArrayBuffer(n))n=new Uint8Array(n);else{if(typeof n=="string")return Io.from.call(ju,n);if(typeof n=="number")throw new TypeError('"value" argument must not be a number')}return Iu.from&&Iu.from.length!==1?Iu.from(n):new Iu(n)}});var GA=m((Au,UA)=>{var pm=Ln(),Au=UA.exports=pm.hasArrayBuffer?XA(0):[];Au.alloc=XA;Au.concat=pm.concat;Au.from=Rle;function XA(n){return new Uint8Array(n)}function Rle(n){if(pm.isView(n)){var e=n.byteOffset,t=n.byteLength;n=n.buffer,n.byteLength!==t&&(n.slice?n=n.slice(e,e+t):(n=new Uint8Array(n),n.byteLength!==t&&(n=Array.prototype.slice.call(n,e,e+t))))}else{if(typeof n=="string")return pm.from.call(Au,n);if(typeof n=="number")throw new TypeError('"value" argument must not be a number')}return new Uint8Array(n)}});var QA=m(mm=>{mm.copy=Ile;mm.toString=Fle;mm.write=Lle;function Lle(n,e){for(var t=this,i=e||(e|=0),r=n.length,o=0,s=0;s>>6,t[i++]=128|o&63):o<55296||o>57343?(t[i++]=224|o>>>12,t[i++]=128|o>>>6&63,t[i++]=128|o&63):(o=(o-55296<<10|n.charCodeAt(s++)-56320)+65536,t[i++]=240|o>>>18,t[i++]=128|o>>>12&63,t[i++]=128|o>>>6&63,t[i++]=128|o&63);return i-e}function Fle(n,e,t){var i=this,r=e|0;t||(t=i.length);for(var o="",s=0;r=65536?(s-=65536,o+=String.fromCharCode((s>>>10)+55296,(s&1023)+56320)):o+=String.fromCharCode(s)}return o}function Ile(n,e,t,i){var r;t||(t=0),!i&&i!==0&&(i=this.length),e||(e=0);var o=i-t;if(n===this&&t=0;r--)n[r+e]=this[r+t];else for(r=0;r{var TC=QA();Dd.copy=eO;Dd.slice=tO;Dd.toString=jle;Dd.write=Ale("write");var Bs=Ln(),KA=Bs.global,zA=Bs.hasBuffer&&"TYPED_ARRAY_SUPPORT"in KA,VA=zA&&!KA.TYPED_ARRAY_SUPPORT;function eO(n,e,t,i){var r=Bs.isBuffer(this),o=Bs.isBuffer(n);if(r&&o)return this.copy(n,e,t,i);if(!VA&&!r&&!o&&Bs.isView(this)&&Bs.isView(n)){var s=t||i!=null?tO.call(this,t,i):this;return n.set(s,e),s.length}else return TC.copy.call(this,n,e,t,i)}function tO(n,e){var t=this.slice||!VA&&this.subarray;if(t)return t.call(this,n,e);var i=Bs.alloc.call(this,e-n);return eO.call(this,i,0,n,e),i}function jle(n,e,t){var i=!zA&&Bs.isBuffer(this)?this.toString:TC.toString;return i.apply(this,arguments)}function Ale(n){return e;function e(){var t=this[n]||TC[n];return t.apply(this,arguments)}}});var Ln=m(Ti=>{var kC=Ti.global=BA(),oO=Ti.hasBuffer=kC&&!!kC.isBuffer,PC=Ti.hasArrayBuffer=typeof ArrayBuffer<"u",Ole=Ti.isArray=fm();Ti.isArrayBuffer=PC?Yle:RC;var Mle=Ti.isBuffer=oO?kC.isBuffer:RC,Nle=Ti.isView=PC?ArrayBuffer.isView||aO("ArrayBuffer","buffer"):RC;Ti.alloc=_C;Ti.concat=Hle;Ti.from=Ble;var iO=Ti.Array=WA(),nO=Ti.Buffer=$A(),rO=Ti.Uint8Array=GA(),EC=Ti.prototype=bm();function Ble(n){return typeof n=="string"?Wle.call(this,n):sO(this).from(n)}function _C(n){return sO(this).alloc(n)}function Hle(n,e){e||(e=0,Array.prototype.forEach.call(n,o));var t=this!==Ti&&this||n[0],i=_C.call(t,e),r=0;return Array.prototype.forEach.call(n,s),i;function o(a){e+=a.length}function s(a){r+=EC.copy.call(a,i,r)}}var qle=aO("ArrayBuffer");function Yle(n){return n instanceof ArrayBuffer||qle(n)}function Wle(n){var e=n.length*3,t=_C.call(this,e),i=EC.write.call(t,n);return e!==i&&(t=EC.slice.call(t,0,i)),t}function sO(n){return Mle(n)?nO:Nle(n)?rO:Ole(n)?iO:oO?nO:PC?rO:iO}function RC(){return!1}function aO(n,e){return n="[object "+n+"]",function(t){return t!=null&&{}.toString.call(e?t[e]:t)===n}}});var ym=m(lO=>{lO.ExtBuffer=LC;var Zle=Ln();function LC(n,e){if(!(this instanceof LC))return new LC(n,e);this.buffer=Zle.from(n),this.type=e}});var cO=m(uO=>{uO.setExtPackers=Xle;var vm=Ln(),Jle=vm.global,Dr=vm.Uint8Array.from,FC,$le={name:1,message:1,stack:1,columnNumber:1,fileName:1,lineNumber:1};function Xle(n){n.addExtPacker(14,Error,[il,$n]),n.addExtPacker(1,EvalError,[il,$n]),n.addExtPacker(2,RangeError,[il,$n]),n.addExtPacker(3,ReferenceError,[il,$n]),n.addExtPacker(4,SyntaxError,[il,$n]),n.addExtPacker(5,TypeError,[il,$n]),n.addExtPacker(6,URIError,[il,$n]),n.addExtPacker(10,RegExp,[Ule,$n]),n.addExtPacker(11,Boolean,[IC,$n]),n.addExtPacker(12,String,[IC,$n]),n.addExtPacker(13,Date,[Number,$n]),n.addExtPacker(15,Number,[IC,$n]),typeof Uint8Array<"u"&&(n.addExtPacker(17,Int8Array,Dr),n.addExtPacker(18,Uint8Array,Dr),n.addExtPacker(19,Int16Array,Dr),n.addExtPacker(20,Uint16Array,Dr),n.addExtPacker(21,Int32Array,Dr),n.addExtPacker(22,Uint32Array,Dr),n.addExtPacker(23,Float32Array,Dr),typeof Float64Array<"u"&&n.addExtPacker(24,Float64Array,Dr),typeof Uint8ClampedArray<"u"&&n.addExtPacker(25,Uint8ClampedArray,Dr),n.addExtPacker(26,ArrayBuffer,Dr),n.addExtPacker(29,DataView,Dr)),vm.hasBuffer&&n.addExtPacker(27,Jle,vm.from)}function $n(n){return FC||(FC=jC().encode),FC(n)}function IC(n){return n.valueOf()}function Ule(n){n=RegExp.prototype.toString.call(n).split("/"),n.shift();var e=[n.pop()];return e.unshift(n.join("/")),e}function il(n){var e={};for(var t in $le)e[t]=n[t];return e}});var wm=m(xd=>{var Gle,Qle,Kle,zle;(function(n){var e="undefined",t=e!==typeof Buffer&&Buffer,i=e!==typeof Uint8Array&&Uint8Array,r=e!==typeof ArrayBuffer&&ArrayBuffer,o=[0,0,0,0,0,0,0,0],s=Array.isArray||F,a=4294967296,l=16777216,u;Gle=c("Uint64BE",!0,!0),Qle=c("Int64BE",!0,!1),Kle=c("Uint64LE",!1,!0),zle=c("Int64LE",!1,!1);function c(L,j,W){var B=j?0:4,N=j?4:0,I=j?0:3,M=j?1:2,J=j?2:1,K=j?3:0,ae=j?v:D,je=j?w:S,_e=xi.prototype,Ve="is"+L,Et="_"+Ve;return _e.buffer=void 0,_e.offset=0,_e[Et]=!0,_e.toNumber=bp,_e.toString=Sx,_e.toJSON=bp,_e.toArray=h,t&&(_e.toBuffer=d),i&&(_e.toArrayBuffer=g),xi[Ve]=ys,n[L]=xi,xi;function xi(Re,Se,Te,Le){return this instanceof xi?_o(this,Re,Se,Te,Le):new xi(Re,Se,Te,Le)}function ys(Re){return!!(Re&&Re[Et])}function _o(Re,Se,Te,Le,It){if(i&&r&&(Se instanceof r&&(Se=new i(Se)),Le instanceof r&&(Le=new i(Le))),!Se&&!Te&&!Le&&!u){Re.buffer=b(o,0);return}if(!f(Se,Te)){var fr=u||Array;It=Te,Le=Se,Te=0,Se=new fr(8)}Re.buffer=Se,Re.offset=Te|=0,e!==typeof Le&&(typeof Le=="string"?mp(Se,Te,Le,It||10):f(Le,It)?p(Se,Te,Le,It):typeof It=="number"?(du(Se,Te+B,Le),du(Se,Te+N,It)):Le>0?ae(Se,Te,Le):Le<0?je(Se,Te,Le):p(Se,Te,o,0))}function mp(Re,Se,Te,Le){var It=0,fr=Te.length,pr=0,kn=0;Te[0]==="-"&&It++;for(var vs=It;It=0))break;kn=kn*Le+ws,pr=pr*Le+Math.floor(kn/a),kn%=a}vs&&(pr=~pr,kn?kn=a-kn:pr++),du(Re,Se+B,pr),du(Re,Se+N,kn)}function bp(){var Re=this.buffer,Se=this.offset,Te=gu(Re,Se+B),Le=gu(Re,Se+N);return W||(Te|=0),Te?Te*a+Le:Le}function Sx(Re){var Se=this.buffer,Te=this.offset,Le=gu(Se,Te+B),It=gu(Se,Te+N),fr="",pr=!W&&Le&2147483648;for(pr&&(Le=~Le,It=a-It),Re=Re||10;;){var kn=Le%Re*a+It;if(Le=Math.floor(Le/Re),It=Math.floor(kn/Re),fr=(kn%Re).toString(Re)+fr,!Le&&!It)break}return pr&&(fr="-"+fr),fr}function du(Re,Se,Te){Re[Se+K]=Te&255,Te=Te>>8,Re[Se+J]=Te&255,Te=Te>>8,Re[Se+M]=Te&255,Te=Te>>8,Re[Se+I]=Te&255}function gu(Re,Se){return Re[Se+I]*l+(Re[Se+M]<<16)+(Re[Se+J]<<8)+Re[Se+K]}}function h(L){var j=this.buffer,W=this.offset;return u=null,L!==!1&&W===0&&j.length===8&&s(j)?j:b(j,W)}function d(L){var j=this.buffer,W=this.offset;if(u=t,L!==!1&&W===0&&j.length===8&&Buffer.isBuffer(j))return j;var B=new t(8);return p(B,0,j,W),B}function g(L){var j=this.buffer,W=this.offset,B=j.buffer;if(u=i,L!==!1&&W===0&&B instanceof r&&B.byteLength===8)return B;var N=new i(8);return p(N,0,j,W),N.buffer}function f(L,j){var W=L&&L.length;return j|=0,W&&j+8<=W&&typeof L[j]!="string"}function p(L,j,W,B){j|=0,B|=0;for(var N=0;N<8;N++)L[j++]=W[B++]&255}function b(L,j){return Array.prototype.slice.call(L,j,j+8)}function v(L,j,W){for(var B=j+8;B>j;)L[--B]=W&255,W/=256}function w(L,j,W){var B=j+8;for(W++;B>j;)L[--B]=-W&255^255,W/=256}function D(L,j,W){for(var B=j+8;j{AC.read=function(n,e,t,i,r){var o,s,a=r*8-i-1,l=(1<>1,c=-7,h=t?r-1:0,d=t?-1:1,g=n[e+h];for(h+=d,o=g&(1<<-c)-1,g>>=-c,c+=a;c>0;o=o*256+n[e+h],h+=d,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=i;c>0;s=s*256+n[e+h],h+=d,c-=8);if(o===0)o=1-u;else{if(o===l)return s?NaN:(g?-1:1)*(1/0);s=s+Math.pow(2,i),o=o-u}return(g?-1:1)*s*Math.pow(2,o-i)};AC.write=function(n,e,t,i,r,o){var s,a,l,u=o*8-r-1,c=(1<>1,d=r===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=i?0:o-1,f=i?1:-1,p=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=c):(s=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-s))<1&&(s--,l*=2),s+h>=1?e+=d/l:e+=d*Math.pow(2,1-h),e*l>=2&&(s++,l/=2),s+h>=c?(a=0,s=c):s+h>=1?(a=(e*l-1)*Math.pow(2,r),s=s+h):(a=e*Math.pow(2,h-1)*Math.pow(2,r),s=0));r>=8;n[t+g]=a&255,g+=f,a/=256,r-=8);for(s=s<0;n[t+g]=s&255,g+=f,s/=256,u-=8);n[t+g-f]|=p*128}});var MC=m(hO=>{var Vle=hO.uint8=new Array(256);for(Cd=0;Cd<=255;Cd++)Vle[Cd]=eue(Cd);var Cd;function eue(n){return function(e){var t=e.reserve(1);e.buffer[t]=n}}});var xO=m(DO=>{var gO=OC(),fO=wm(),tue=fO.Uint64BE,iue=fO.Int64BE,pO=MC().uint8,Dm=Ln(),Dt=Dm.global,nue=Dm.hasBuffer&&"TYPED_ARRAY_SUPPORT"in Dt,rue=nue&&!Dt.TYPED_ARRAY_SUPPORT,dO=Dm.hasBuffer&&Dt.prototype||{};DO.getWriteToken=oue;function oue(n){return n&&n.uint8array?sue():rue||Dm.hasBuffer&&n&&n.safe?aue():mO()}function sue(){var n=mO();return n[202]=Ke(202,4,vO),n[203]=Ke(203,8,wO),n}function mO(){var n=pO.slice();return n[196]=Sd(196),n[197]=nl(197),n[198]=rl(198),n[199]=Sd(199),n[200]=nl(200),n[201]=rl(201),n[202]=Ke(202,4,dO.writeFloatBE||vO,!0),n[203]=Ke(203,8,dO.writeDoubleBE||wO,!0),n[204]=Sd(204),n[205]=nl(205),n[206]=rl(206),n[207]=Ke(207,8,bO),n[208]=Sd(208),n[209]=nl(209),n[210]=rl(210),n[211]=Ke(211,8,yO),n[217]=Sd(217),n[218]=nl(218),n[219]=rl(219),n[220]=nl(220),n[221]=rl(221),n[222]=nl(222),n[223]=rl(223),n}function aue(){var n=pO.slice();return n[196]=Ke(196,1,Dt.prototype.writeUInt8),n[197]=Ke(197,2,Dt.prototype.writeUInt16BE),n[198]=Ke(198,4,Dt.prototype.writeUInt32BE),n[199]=Ke(199,1,Dt.prototype.writeUInt8),n[200]=Ke(200,2,Dt.prototype.writeUInt16BE),n[201]=Ke(201,4,Dt.prototype.writeUInt32BE),n[202]=Ke(202,4,Dt.prototype.writeFloatBE),n[203]=Ke(203,8,Dt.prototype.writeDoubleBE),n[204]=Ke(204,1,Dt.prototype.writeUInt8),n[205]=Ke(205,2,Dt.prototype.writeUInt16BE),n[206]=Ke(206,4,Dt.prototype.writeUInt32BE),n[207]=Ke(207,8,bO),n[208]=Ke(208,1,Dt.prototype.writeInt8),n[209]=Ke(209,2,Dt.prototype.writeInt16BE),n[210]=Ke(210,4,Dt.prototype.writeInt32BE),n[211]=Ke(211,8,yO),n[217]=Ke(217,1,Dt.prototype.writeUInt8),n[218]=Ke(218,2,Dt.prototype.writeUInt16BE),n[219]=Ke(219,4,Dt.prototype.writeUInt32BE),n[220]=Ke(220,2,Dt.prototype.writeUInt16BE),n[221]=Ke(221,4,Dt.prototype.writeUInt32BE),n[222]=Ke(222,2,Dt.prototype.writeUInt16BE),n[223]=Ke(223,4,Dt.prototype.writeUInt32BE),n}function Sd(n){return function(e,t){var i=e.reserve(2),r=e.buffer;r[i++]=n,r[i]=t}}function nl(n){return function(e,t){var i=e.reserve(3),r=e.buffer;r[i++]=n,r[i++]=t>>>8,r[i]=t}}function rl(n){return function(e,t){var i=e.reserve(5),r=e.buffer;r[i++]=n,r[i++]=t>>>24,r[i++]=t>>>16,r[i++]=t>>>8,r[i]=t}}function Ke(n,e,t,i){return function(r,o){var s=r.reserve(e+1);r.buffer[s++]=n,t.call(r.buffer,o,s,i)}}function bO(n,e){new tue(this,e,n)}function yO(n,e){new iue(this,e,n)}function vO(n,e){gO.write(this,n,e,!1,23,4)}function wO(n,e){gO.write(this,n,e,!1,52,8)}});var EO=m(kO=>{var lue=fm(),TO=wm(),uue=TO.Uint64BE,cue=TO.Int64BE,CO=Ln(),SO=bm(),hue=xO(),due=MC().uint8,gue=ym().ExtBuffer,fue=typeof Uint8Array<"u",pue=typeof Map<"u",Ou=[];Ou[1]=212;Ou[2]=213;Ou[4]=214;Ou[8]=215;Ou[16]=216;kO.getWriteType=mue;function mue(n){var e=hue.getWriteToken(n),t=n&&n.useraw,i=fue&&n&&n.binarraybuffer,r=i?CO.isArrayBuffer:CO.isBuffer,o=i?F:S,s=pue&&n&&n.usemap,a=s?W:j,l={boolean:u,function:w,number:c,object:t?v:b,string:p(t?f:g),symbol:w,undefined:w};return l;function u(N,I){var M=I?195:194;e[M](N,I)}function c(N,I){var M=I|0,J;if(I!==M){J=203,e[J](N,I);return}else-32<=M&&M<=127?J=M&255:0<=M?J=M<=255?204:M<=65535?205:206:J=-128<=M?208:-32768<=M?209:210;e[J](N,M)}function h(N,I){var M=207;e[M](N,I.toArray())}function d(N,I){var M=211;e[M](N,I.toArray())}function g(N){return N<32?1:N<=255?2:N<=65535?3:5}function f(N){return N<32?1:N<=65535?3:5}function p(N){return I;function I(M,J){var K=J.length,ae=5+K*3;M.offset=M.reserve(ae);var je=M.buffer,_e=N(K),Ve=M.offset+_e;K=SO.write.call(je,J,Ve);var Et=N(K);if(_e!==Et){var xi=Ve+Et-_e,ys=Ve+K;SO.copy.call(je,je,xi,Ve,ys)}var _o=Et===1?160+K:Et<=3?215+Et:219;e[_o](M,K),M.offset+=K}}function b(N,I){if(I===null)return w(N,I);if(r(I))return o(N,I);if(lue(I))return D(N,I);if(uue.isUint64BE(I))return h(N,I);if(cue.isInt64BE(I))return d(N,I);var M=N.codec.getExtPacker(I);if(M&&(I=M(I)),I instanceof gue)return L(N,I);a(N,I)}function v(N,I){if(r(I))return B(N,I);b(N,I)}function w(N,I){var M=192;e[M](N,I)}function D(N,I){var M=I.length,J=M<16?144+M:M<=65535?220:221;e[J](N,M);for(var K=N.codec.encode,ae=0;ae{var bue=fm();Td.createCodec=PO;Td.install=vue;Td.filter=xue;var yue=Ln();function Mu(n){if(!(this instanceof Mu))return new Mu(n);this.options=n,this.init()}Mu.prototype.init=function(){var n=this.options;return n&&n.uint8array&&(this.bufferish=yue.Uint8Array),this};function vue(n){for(var e in n)Mu.prototype[e]=wue(Mu.prototype[e],n[e])}function wue(n,e){return n&&e?t:n||e;function t(){return n.apply(this,arguments),e.apply(this,arguments)}}function Due(n){return n=n.slice(),function(t){return n.reduce(e,t)};function e(t,i){return i(t)}}function xue(n){return bue(n)?Due(n):n}function PO(n){return new Mu(n)}Td.preset=PO({preset:!0})});var xm=m(RO=>{var Cue=ym().ExtBuffer,Sue=cO(),Tue=EO(),NC=kd();NC.install({addExtPacker:Eue,getExtPacker:Pue,init:_O});RO.preset=_O.call(NC.preset);function kue(n){var e=Tue.getWriteType(n);return t;function t(i,r){var o=e[typeof r];if(!o)throw new Error('Unsupported type "'+typeof r+'": '+r);o(i,r)}}function _O(){var n=this.options;return this.encode=kue(n),n&&n.preset&&Sue.setExtPackers(this),this}function Eue(n,e,t){t=NC.filter(t);var i=e.name;if(i&&i!=="Object"){var r=this.extPackers||(this.extPackers={});r[i]=s}else{var o=this.extEncoderList||(this.extEncoderList=[]);o.unshift([e,s])}function s(a){return t&&(a=t(a)),new Cue(a,n)}}function Pue(n){var e=this.extPackers||(this.extPackers={}),t=n.constructor,i=t&&t.name&&e[t.name];if(i)return i;for(var r=this.extEncoderList||(this.extEncoderList=[]),o=r.length,s=0;s{BC.FlexDecoder=Nu;BC.FlexEncoder=Bu;var Ed=Ln(),_ue=2048,Rue=65536,LO="BUFFER_SHORTAGE";function Nu(){if(!(this instanceof Nu))return new Nu}function Bu(){if(!(this instanceof Bu))return new Bu}Nu.mixin=jO(Lue());Nu.mixin(Nu.prototype);Bu.mixin=jO(Fue());Bu.mixin(Bu.prototype);function Lue(){return{bufferish:Ed,write:n,fetch:jue,flush:e,push:IO,pull:Aue,read:FO,reserve:t,offset:0};function n(i){var r=this.offset?Ed.prototype.slice.call(this.buffer,this.offset):this.buffer;this.buffer=r?i?this.bufferish.concat([r,i]):r:i,this.offset=0}function e(){for(;this.offsetthis.buffer.length)throw new Error(LO);return this.offset=o,r}}function Fue(){return{bufferish:Ed,write:Iue,fetch:n,flush:e,push:IO,pull:t,read:FO,reserve:i,send:r,maxBufferSize:Rue,minBufferSize:_ue,offset:0,start:0};function n(){var o=this.start;if(o1?this.bufferish.concat(o):o[0];return o.length=0,s}function i(o){var s=o|0;if(this.buffer){var a=this.buffer.length,l=this.offset|0,u=l+s;if(uthis.minBufferSize)this.flush(),this.push(o);else{var a=this.reserve(s);Ed.prototype.copy.call(o,this.buffer,a)}}}function Iue(){throw new Error("method not implemented: write()")}function jue(){throw new Error("method not implemented: fetch()")}function FO(){var n=this.buffers&&this.buffers.length;return n?(this.flush(),this.pull()):this.fetch()}function IO(n){var e=this.buffers||(this.buffers=[]);e.push(n)}function Aue(){var n=this.buffers||(this.buffers=[]);return n.shift()}function jO(n){return e;function e(t){for(var i in n)t[i]=n[i];return t}}});var Cm=m(AO=>{AO.EncodeBuffer=Hu;var Oue=xm().preset,Mue=HC().FlexEncoder;Mue.mixin(Hu.prototype);function Hu(n){if(!(this instanceof Hu))return new Hu(n);if(n&&(this.options=n,n.codec)){var e=this.codec=n.codec;e.bufferish&&(this.bufferish=e.bufferish)}}Hu.prototype.codec=Oue;Hu.prototype.write=function(n){this.codec.encode(this,n)}});var jC=m(OO=>{OO.encode=Bue;var Nue=Cm().EncodeBuffer;function Bue(n,e){var t=new Nue(e);return t.write(n),t.read()}});var BO=m(NO=>{NO.setExtUnpackers=Yue;var MO=Ln(),Hue=MO.global,qC,que={name:1,message:1,stack:1,columnNumber:1,fileName:1,lineNumber:1};function Yue(n){n.addExtUnpacker(14,[Xn,ol(Error)]),n.addExtUnpacker(1,[Xn,ol(EvalError)]),n.addExtUnpacker(2,[Xn,ol(RangeError)]),n.addExtUnpacker(3,[Xn,ol(ReferenceError)]),n.addExtUnpacker(4,[Xn,ol(SyntaxError)]),n.addExtUnpacker(5,[Xn,ol(TypeError)]),n.addExtUnpacker(6,[Xn,ol(URIError)]),n.addExtUnpacker(10,[Xn,Wue]),n.addExtUnpacker(11,[Xn,Zi(Boolean)]),n.addExtUnpacker(12,[Xn,Zi(String)]),n.addExtUnpacker(13,[Xn,Zi(Date)]),n.addExtUnpacker(15,[Xn,Zi(Number)]),typeof Uint8Array<"u"&&(n.addExtUnpacker(17,Zi(Int8Array)),n.addExtUnpacker(18,Zi(Uint8Array)),n.addExtUnpacker(19,[Hs,Zi(Int16Array)]),n.addExtUnpacker(20,[Hs,Zi(Uint16Array)]),n.addExtUnpacker(21,[Hs,Zi(Int32Array)]),n.addExtUnpacker(22,[Hs,Zi(Uint32Array)]),n.addExtUnpacker(23,[Hs,Zi(Float32Array)]),typeof Float64Array<"u"&&n.addExtUnpacker(24,[Hs,Zi(Float64Array)]),typeof Uint8ClampedArray<"u"&&n.addExtUnpacker(25,Zi(Uint8ClampedArray)),n.addExtUnpacker(26,Hs),n.addExtUnpacker(29,[Hs,Zi(DataView)])),MO.hasBuffer&&n.addExtUnpacker(27,Zi(Hue))}function Xn(n){return qC||(qC=YC().decode),qC(n)}function Wue(n){return RegExp.apply(null,n)}function ol(n){return function(e){var t=new n;for(var i in que)t[i]=e[i];return t}}function Zi(n){return function(e){return new n(e)}}function Hs(n){return new Uint8Array(n).buffer}});var JC=m(ZC=>{var HO=OC(),qO=wm(),YO=qO.Uint64BE,WO=qO.Int64BE;ZC.getReadFormat=$ue;ZC.readUint8=ZO;var WC=Ln(),Tm=bm(),Zue=typeof Map<"u",Jue=!0;function $ue(n){var e=WC.hasArrayBuffer&&n&&n.binarraybuffer,t=n&&n.int64,i=Zue&&n&&n.usemap,r={map:i?Uue:Xue,array:Gue,str:Que,bin:e?zue:Kue,ext:Vue,uint8:ZO,uint16:tce,uint32:nce,uint64:Sm(8,t?ace:oce),int8:ece,int16:ice,int32:rce,int64:Sm(8,t?lce:sce),float32:Sm(4,uce),float64:Sm(8,cce)};return r}function Xue(n,e){var t={},i,r=new Array(e),o=new Array(e),s=n.codec.decode;for(i=0;i{var hce=JC();$O.getReadToken=dce;function dce(n){var e=hce.getReadFormat(n);return n&&n.useraw?gce(e):JO(e)}function JO(n){var e,t=new Array(256);for(e=0;e<=127;e++)t[e]=Pd(e);for(e=128;e<=143;e++)t[e]=jo(e-128,n.map);for(e=144;e<=159;e++)t[e]=jo(e-144,n.array);for(e=160;e<=191;e++)t[e]=jo(e-160,n.str);for(t[192]=Pd(null),t[193]=null,t[194]=Pd(!1),t[195]=Pd(!0),t[196]=Fn(n.uint8,n.bin),t[197]=Fn(n.uint16,n.bin),t[198]=Fn(n.uint32,n.bin),t[199]=Fn(n.uint8,n.ext),t[200]=Fn(n.uint16,n.ext),t[201]=Fn(n.uint32,n.ext),t[202]=n.float32,t[203]=n.float64,t[204]=n.uint8,t[205]=n.uint16,t[206]=n.uint32,t[207]=n.uint64,t[208]=n.int8,t[209]=n.int16,t[210]=n.int32,t[211]=n.int64,t[212]=jo(1,n.ext),t[213]=jo(2,n.ext),t[214]=jo(4,n.ext),t[215]=jo(8,n.ext),t[216]=jo(16,n.ext),t[217]=Fn(n.uint8,n.str),t[218]=Fn(n.uint16,n.str),t[219]=Fn(n.uint32,n.str),t[220]=Fn(n.uint16,n.array),t[221]=Fn(n.uint32,n.array),t[222]=Fn(n.uint16,n.map),t[223]=Fn(n.uint32,n.map),e=224;e<=255;e++)t[e]=Pd(e-256);return t}function gce(n){var e,t=JO(n).slice();for(t[217]=t[196],t[218]=t[197],t[219]=t[198],e=160;e<=191;e++)t[e]=jo(e-160,n.bin);return t}function Pd(n){return function(){return n}}function Fn(n,e){return function(t){var i=n(t);return e(t,i)}}function jo(n,e){return function(t){return e(t,n)}}});var km=m(GO=>{var fce=ym().ExtBuffer,pce=BO(),mce=JC().readUint8,bce=XO(),$C=kd();$C.install({addExtUnpacker:vce,getExtUnpacker:wce,init:UO});GO.preset=UO.call($C.preset);function yce(n){var e=bce.getReadToken(n);return t;function t(i){var r=mce(i),o=e[r];if(!o)throw new Error("Invalid type: "+(r&&"0x"+r.toString(16)));return o(i)}}function UO(){var n=this.options;return this.decode=yce(n),n&&n.preset&&pce.setExtUnpackers(this),this}function vce(n,e){var t=this.extUnpackers||(this.extUnpackers=[]);t[n]=$C.filter(e)}function wce(n){var e=this.extUnpackers||(this.extUnpackers=[]);return e[n]||t;function t(i){return new fce(i,n)}}});var Em=m(QO=>{QO.DecodeBuffer=qu;var Dce=km().preset,xce=HC().FlexDecoder;xce.mixin(qu.prototype);function qu(n){if(!(this instanceof qu))return new qu(n);if(n&&(this.options=n,n.codec)){var e=this.codec=n.codec;e.bufferish&&(this.bufferish=e.bufferish)}}qu.prototype.codec=Dce;qu.prototype.fetch=function(){return this.codec.decode(this)}});var YC=m(KO=>{KO.decode=Sce;var Cce=Em().DecodeBuffer;function Sce(n,e){var t=new Cce(e);return t.write(n),t.read()}});var GC=m((pPe,UC)=>{function XC(){if(!(this instanceof XC))return new XC}(function(n){typeof UC<"u"&&(UC.exports=n);var e="listeners",t={on:r,once:o,off:s,emit:a};i(n.prototype),n.mixin=i;function i(u){for(var c in t)u[c]=t[c];return u}function r(u,c){return l(this,u).push(c),this}function o(u,c){var h=this;return d.originalListener=c,l(h,u).push(d),h;function d(){s.call(h,u,d),c.apply(this,arguments)}}function s(u,c){var h=this,d;if(!arguments.length)delete h[e];else if(c){if(d=l(h,u,!0),d){if(d=d.filter(g),!d.length)return s.call(h,u);h[e][u]=d}}else if(d=h[e],d&&(delete d[u],!Object.keys(d).length))return s.call(h);return h;function g(f){return f!==c&&f.originalListener!==c}}function a(u,c){var h=this,d=l(h,u,!0);if(!d)return!1;var g=arguments.length;if(g===1)d.forEach(p);else if(g===2)d.forEach(b);else{var f=Array.prototype.slice.call(arguments,1);d.forEach(v)}return!!d.length;function p(w){w.call(h)}function b(w){w.call(h,c)}function v(w){w.apply(h,f)}}function l(u,c,h){if(!(h&&!u[e])){var d=u[e]||(u[e]={});return d[c]||(d[c]=[])}}})(XC)});var eM=m(VO=>{VO.Encoder=sl;var Tce=GC(),zO=Cm().EncodeBuffer;function sl(n){if(!(this instanceof sl))return new sl(n);zO.call(this,n)}sl.prototype=new zO;Tce.mixin(sl.prototype);sl.prototype.encode=function(n){this.write(n),this.emit("data",this.read())};sl.prototype.end=function(n){arguments.length&&this.encode(n),this.flush(),this.emit("end")}});var nM=m(iM=>{iM.Decoder=qs;var kce=GC(),tM=Em().DecodeBuffer;function qs(n){if(!(this instanceof qs))return new qs(n);tM.call(this,n)}qs.prototype=new tM;kce.mixin(qs.prototype);qs.prototype.decode=function(n){arguments.length&&this.write(n),this.flush()};qs.prototype.push=function(n){this.emit("data",n)};qs.prototype.end=function(n){this.decode(n),this.emit("end")}});var sM=m(oM=>{oM.createEncodeStream=Yu;var Ece=require("util"),rM=require("stream").Transform,Pce=Cm().EncodeBuffer;Ece.inherits(Yu,rM);var _ce={objectMode:!0};function Yu(n){if(!(this instanceof Yu))return new Yu(n);n?n.objectMode=!0:n=_ce,rM.call(this,n);var e=this,t=this.encoder=new Pce(n);t.push=function(i){e.push(i)}}Yu.prototype._transform=function(n,e,t){this.encoder.write(n),t&&t()};Yu.prototype._flush=function(n){this.encoder.flush(),n&&n()}});var uM=m(lM=>{lM.createDecodeStream=_d;var Rce=require("util"),aM=require("stream").Transform,Lce=Em().DecodeBuffer;Rce.inherits(_d,aM);var Fce={objectMode:!0};function _d(n){if(!(this instanceof _d))return new _d(n);n?n.objectMode=!0:n=Fce,aM.call(this,n);var e=this,t=this.decoder=new Lce(n);t.push=function(i){e.push(i)}}_d.prototype._transform=function(n,e,t){this.decoder.write(n),this.decoder.flush(),t&&t()}});var hM=m(cM=>{km();xm();cM.createCodec=kd().createCodec});var gM=m(dM=>{km();xm();dM.codec={preset:kd().preset}});var fM=m(Ao=>{Ao.encode=jC().encode;Ao.decode=YC().decode;Ao.Encoder=eM().Encoder;Ao.Decoder=nM().Decoder;Ao.createEncodeStream=sM().createEncodeStream;Ao.createDecodeStream=uM().createDecodeStream;Ao.createCodec=hM().createCodec;Ao.codec=gM().codec});var mM=m(QC=>{"use strict";Object.defineProperty(QC,"__esModule",{value:!0});var Ice=require("stream"),pM=class extends Ice.Transform{constructor(){super({readableHighWaterMark:10*1024*1024,writableHighWaterMark:10*1024*1024});this.chunks=null,this.timer=null}sendData(){let{chunks:e}=this;if(e){this.chunks=null;let t=Buffer.concat(e);this.push(t)}}_transform(e,t,i){let{chunks:r,timer:o}=this,s=Buffer.poolSize;if(o&&clearTimeout(o),e.length{"use strict";Object.defineProperty(Pm,"__esModule",{value:!0});Pm.BaseApi=void 0;var jce=require("events"),Ace=process.env.VIM_NODE_RPC=="1",bM=class extends jce.EventEmitter{constructor({transport:e,data:t,client:i}){super();this.setTransport(e),this.data=t,this.client=i}setTransport(e){this.transport=e}equals(e){try{return String(this.data)===String(e.data)}catch{return!1}}async request(e,t=[]){let i=Error().stack;return new Promise((r,o)=>{this.transport.request(e,this.getArgsByPrefix(t),(s,a)=>{if(s){let l=new Error(`${s[1].split(/\r?\n/)[0]}`);l.stack=`Error: request error on ${e} - ${s[1]} + see https://github.com/jprichardson/node-fs-extra/issues/269`),Id.checkPaths(n,e,"copy",(r,o)=>{if(r)return i(r);let{srcStat:s,destStat:a}=o;Id.checkParentPaths(n,s,e,"copy",l=>l?i(l):t.filter?hA(lA,a,n,e,t,i):lA(a,n,e,t,i))})}function lA(n,e,t,i,r){let o=Fd.dirname(t);Xle(o,(s,a)=>{if(s)return r(s);if(a)return Kx(n,e,t,i,r);$le(o,l=>l?r(l):Kx(n,e,t,i,r))})}function hA(n,e,t,i,r,o){Promise.resolve(r.filter(t,i)).then(s=>s?n(e,t,i,r,o):o(),s=>o(s))}function Kx(n,e,t,i,r){return i.filter?hA(uA,n,e,t,i,r):uA(n,e,t,i,r)}function uA(n,e,t,i,r){(i.dereference?wn.stat:wn.lstat)(e,(s,a)=>{if(s)return r(s);if(a.isDirectory())return iue(a,n,e,t,i,r);if(a.isFile()||a.isCharacterDevice()||a.isBlockDevice())return Kle(a,n,e,t,i,r);if(a.isSymbolicLink())return oue(n,e,t,i,r)})}function Kle(n,e,t,i,r,o){return e?Qle(n,t,i,r,o):dA(n,t,i,r,o)}function Qle(n,e,t,i,r){if(i.overwrite)wn.unlink(t,o=>o?r(o):dA(n,e,t,i,r));else return i.errorOnExist?r(new Error(`'${t}' already exists`)):r()}function dA(n,e,t,i,r){wn.copyFile(e,t,o=>o?r(o):i.preserveTimestamps?zle(n.mode,e,t,r):Sm(t,n.mode,r))}function zle(n,e,t,i){return Vle(n)?eue(t,n,r=>r?i(r):cA(n,e,t,i)):cA(n,e,t,i)}function Vle(n){return(n&128)===0}function eue(n,e,t){return Sm(n,e|128,t)}function cA(n,e,t,i){tue(e,t,r=>r?i(r):Sm(t,n,i))}function Sm(n,e,t){return wn.chmod(n,e,t)}function tue(n,e,t){wn.stat(n,(i,r)=>i?t(i):Ule(e,r.atime,r.mtime,t))}function iue(n,e,t,i,r,o){return e?e&&!e.isDirectory()?o(new Error(`Cannot overwrite non-directory '${i}' with directory '${t}'.`)):gA(t,i,r,o):nue(n.mode,t,i,r,o)}function nue(n,e,t,i,r){wn.mkdir(t,o=>{if(o)return r(o);gA(e,t,i,s=>s?r(s):Sm(t,n,r))})}function gA(n,e,t,i){wn.readdir(n,(r,o)=>r?i(r):pA(o,n,e,t,i))}function pA(n,e,t,i,r){let o=n.pop();return o?rue(n,o,e,t,i,r):r()}function rue(n,e,t,i,r,o){let s=Fd.join(t,e),a=Fd.join(i,e);Id.checkPaths(s,a,"copy",(l,u)=>{if(l)return o(l);let{destStat:c}=u;Kx(c,s,a,r,h=>h?o(h):pA(n,t,i,r,o))})}function oue(n,e,t,i,r){wn.readlink(e,(o,s)=>{if(o)return r(o);if(i.dereference&&(s=Fd.resolve(process.cwd(),s)),n)wn.readlink(t,(a,l)=>a?a.code==="EINVAL"||a.code==="UNKNOWN"?wn.symlink(s,t,r):r(a):(i.dereference&&(l=Fd.resolve(process.cwd(),l)),Id.isSrcSubdir(s,l)?r(new Error(`Cannot copy '${s}' to a subdirectory of itself, '${l}'.`)):n.isDirectory()&&Id.isSrcSubdir(l,s)?r(new Error(`Cannot overwrite '${l}' with '${s}'.`)):sue(s,t,r)));else return wn.symlink(s,t,r)})}function sue(n,e,t){wn.unlink(e,i=>i?t(i):wn.symlink(n,e,t))}fA.exports=Gle});var Qx=y((a_e,yA)=>{"use strict";var aue=Ct().fromCallback;yA.exports={copy:aue(mA())}});var kA=y((l_e,TA)=>{"use strict";var bA=rt(),CA=require("path"),pt=require("assert"),jd=process.platform==="win32";function xA(n){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(t=>{n[t]=n[t]||bA[t],t=t+"Sync",n[t]=n[t]||bA[t]}),n.maxBusyTries=n.maxBusyTries||3}function zx(n,e,t){let i=0;typeof e=="function"&&(t=e,e={}),pt(n,"rimraf: missing path"),pt.strictEqual(typeof n,"string","rimraf: path should be a string"),pt.strictEqual(typeof t,"function","rimraf: callback function required"),pt(e,"rimraf: invalid options argument provided"),pt.strictEqual(typeof e,"object","rimraf: options should be object"),xA(e),vA(n,e,function r(o){if(o){if((o.code==="EBUSY"||o.code==="ENOTEMPTY"||o.code==="EPERM")&&ivA(n,e,r),s)}o.code==="ENOENT"&&(o=null)}t(o)})}function vA(n,e,t){pt(n),pt(e),pt(typeof t=="function"),e.lstat(n,(i,r)=>{if(i&&i.code==="ENOENT")return t(null);if(i&&i.code==="EPERM"&&jd)return wA(n,e,i,t);if(r&&r.isDirectory())return Tm(n,e,i,t);e.unlink(n,o=>{if(o){if(o.code==="ENOENT")return t(null);if(o.code==="EPERM")return jd?wA(n,e,o,t):Tm(n,e,o,t);if(o.code==="EISDIR")return Tm(n,e,o,t)}return t(o)})})}function wA(n,e,t,i){pt(n),pt(e),pt(typeof i=="function"),e.chmod(n,438,r=>{r?i(r.code==="ENOENT"?null:t):e.stat(n,(o,s)=>{o?i(o.code==="ENOENT"?null:t):s.isDirectory()?Tm(n,e,t,i):e.unlink(n,i)})})}function DA(n,e,t){let i;pt(n),pt(e);try{e.chmodSync(n,438)}catch(r){if(r.code==="ENOENT")return;throw t}try{i=e.statSync(n)}catch(r){if(r.code==="ENOENT")return;throw t}i.isDirectory()?km(n,e,t):e.unlinkSync(n)}function Tm(n,e,t,i){pt(n),pt(e),pt(typeof i=="function"),e.rmdir(n,r=>{r&&(r.code==="ENOTEMPTY"||r.code==="EEXIST"||r.code==="EPERM")?lue(n,e,i):r&&r.code==="ENOTDIR"?i(t):i(r)})}function lue(n,e,t){pt(n),pt(e),pt(typeof t=="function"),e.readdir(n,(i,r)=>{if(i)return t(i);let o=r.length,s;if(o===0)return e.rmdir(n,t);r.forEach(a=>{zx(CA.join(n,a),e,l=>{if(!s){if(l)return t(s=l);--o===0&&e.rmdir(n,t)}})})})}function SA(n,e){let t;e=e||{},xA(e),pt(n,"rimraf: missing path"),pt.strictEqual(typeof n,"string","rimraf: path should be a string"),pt(e,"rimraf: missing options"),pt.strictEqual(typeof e,"object","rimraf: options should be object");try{t=e.lstatSync(n)}catch(i){if(i.code==="ENOENT")return;i.code==="EPERM"&&jd&&DA(n,e,i)}try{t&&t.isDirectory()?km(n,e,null):e.unlinkSync(n)}catch(i){if(i.code==="ENOENT")return;if(i.code==="EPERM")return jd?DA(n,e,i):km(n,e,i);if(i.code!=="EISDIR")throw i;km(n,e,i)}}function km(n,e,t){pt(n),pt(e);try{e.rmdirSync(n)}catch(i){if(i.code==="ENOTDIR")throw t;if(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")uue(n,e);else if(i.code!=="ENOENT")throw i}}function uue(n,e){if(pt(n),pt(e),e.readdirSync(n).forEach(t=>SA(CA.join(n,t),e)),jd){let t=Date.now();do try{return e.rmdirSync(n,e)}catch{}while(Date.now()-t<500)}else return e.rmdirSync(n,e)}TA.exports=zx;zx.sync=SA});var Ad=y((u_e,PA)=>{"use strict";var cue=Ct().fromCallback,EA=kA();PA.exports={remove:cue(EA),removeSync:EA.sync}});var MA=y((c_e,AA)=>{"use strict";var hue=Ct().fromCallback,LA=rt(),FA=require("path"),IA=Lr(),jA=Ad(),_A=hue(function(e,t){t=t||function(){},LA.readdir(e,(i,r)=>{if(i)return IA.mkdirs(e,t);r=r.map(s=>FA.join(e,s)),o();function o(){let s=r.pop();if(!s)return t();jA.remove(s,a=>{if(a)return t(a);o()})}})});function RA(n){let e;try{e=LA.readdirSync(n)}catch{return IA.mkdirsSync(n)}e.forEach(t=>{t=FA.join(n,t),jA.removeSync(t)})}AA.exports={emptyDirSync:RA,emptydirSync:RA,emptyDir:_A,emptydir:_A}});var HA=y((h_e,BA)=>{"use strict";var due=Ct().fromCallback,OA=require("path"),Qs=rt(),NA=Lr();function gue(n,e){function t(){Qs.writeFile(n,"",i=>{if(i)return e(i);e()})}Qs.stat(n,(i,r)=>{if(!i&&r.isFile())return e();let o=OA.dirname(n);Qs.stat(o,(s,a)=>{if(s)return s.code==="ENOENT"?NA.mkdirs(o,l=>{if(l)return e(l);t()}):e(s);a.isDirectory()?t():Qs.readdir(o,l=>{if(l)return e(l)})})})}function pue(n){let e;try{e=Qs.statSync(n)}catch{}if(e&&e.isFile())return;let t=OA.dirname(n);try{Qs.statSync(t).isDirectory()||Qs.readdirSync(t)}catch(i){if(i&&i.code==="ENOENT")NA.mkdirsSync(t);else throw i}Qs.writeFileSync(n,"")}BA.exports={createFile:due(gue),createFileSync:pue}});var JA=y((d_e,ZA)=>{"use strict";var fue=Ct().fromCallback,YA=require("path"),gl=rt(),WA=Lr(),qA=Ks().pathExists;function mue(n,e,t){function i(r,o){gl.link(r,o,s=>{if(s)return t(s);t(null)})}qA(e,(r,o)=>{if(r)return t(r);if(o)return t(null);gl.lstat(n,s=>{if(s)return s.message=s.message.replace("lstat","ensureLink"),t(s);let a=YA.dirname(e);qA(a,(l,u)=>{if(l)return t(l);if(u)return i(n,e);WA.mkdirs(a,c=>{if(c)return t(c);i(n,e)})})})})}function yue(n,e){if(gl.existsSync(e))return;try{gl.lstatSync(n)}catch(o){throw o.message=o.message.replace("lstat","ensureLink"),o}let i=YA.dirname(e);return gl.existsSync(i)||WA.mkdirsSync(i),gl.linkSync(n,e)}ZA.exports={createLink:fue(mue),createLinkSync:yue}});var XA=y((g_e,$A)=>{"use strict";var zs=require("path"),Md=rt(),bue=Ks().pathExists;function vue(n,e,t){if(zs.isAbsolute(n))return Md.lstat(n,i=>i?(i.message=i.message.replace("lstat","ensureSymlink"),t(i)):t(null,{toCwd:n,toDst:n}));{let i=zs.dirname(e),r=zs.join(i,n);return bue(r,(o,s)=>o?t(o):s?t(null,{toCwd:r,toDst:n}):Md.lstat(n,a=>a?(a.message=a.message.replace("lstat","ensureSymlink"),t(a)):t(null,{toCwd:n,toDst:zs.relative(i,n)})))}}function wue(n,e){let t;if(zs.isAbsolute(n)){if(t=Md.existsSync(n),!t)throw new Error("absolute srcpath does not exist");return{toCwd:n,toDst:n}}else{let i=zs.dirname(e),r=zs.join(i,n);if(t=Md.existsSync(r),t)return{toCwd:r,toDst:n};if(t=Md.existsSync(n),!t)throw new Error("relative srcpath does not exist");return{toCwd:n,toDst:zs.relative(i,n)}}}$A.exports={symlinkPaths:vue,symlinkPathsSync:wue}});var KA=y((p_e,GA)=>{"use strict";var UA=rt();function Due(n,e,t){if(t=typeof e=="function"?e:t,e=typeof e=="function"?!1:e,e)return t(null,e);UA.lstat(n,(i,r)=>{if(i)return t(null,"file");e=r&&r.isDirectory()?"dir":"file",t(null,e)})}function Cue(n,e){let t;if(e)return e;try{t=UA.lstatSync(n)}catch{return"file"}return t&&t.isDirectory()?"dir":"file"}GA.exports={symlinkType:Due,symlinkTypeSync:Cue}});var nM=y((f_e,iM)=>{"use strict";var xue=Ct().fromCallback,zA=require("path"),Zu=rt(),VA=Lr(),Sue=VA.mkdirs,Tue=VA.mkdirsSync,eM=XA(),kue=eM.symlinkPaths,Eue=eM.symlinkPathsSync,tM=KA(),Pue=tM.symlinkType,_ue=tM.symlinkTypeSync,QA=Ks().pathExists;function Rue(n,e,t,i){i=typeof t=="function"?t:i,t=typeof t=="function"?!1:t,QA(e,(r,o)=>{if(r)return i(r);if(o)return i(null);kue(n,e,(s,a)=>{if(s)return i(s);n=a.toDst,Pue(a.toCwd,t,(l,u)=>{if(l)return i(l);let c=zA.dirname(e);QA(c,(h,d)=>{if(h)return i(h);if(d)return Zu.symlink(n,e,u,i);Sue(c,g=>{if(g)return i(g);Zu.symlink(n,e,u,i)})})})})})}function Lue(n,e,t){if(Zu.existsSync(e))return;let r=Eue(n,e);n=r.toDst,t=_ue(r.toCwd,t);let o=zA.dirname(e);return Zu.existsSync(o)||Tue(o),Zu.symlinkSync(n,e,t)}iM.exports={createSymlink:xue(Rue),createSymlinkSync:Lue}});var oM=y((m_e,rM)=>{"use strict";var Em=HA(),Pm=JA(),_m=nM();rM.exports={createFile:Em.createFile,createFileSync:Em.createFileSync,ensureFile:Em.createFile,ensureFileSync:Em.createFileSync,createLink:Pm.createLink,createLinkSync:Pm.createLinkSync,ensureLink:Pm.createLink,ensureLinkSync:Pm.createLinkSync,createSymlink:_m.createSymlink,createSymlinkSync:_m.createSymlinkSync,ensureSymlink:_m.createSymlink,ensureSymlinkSync:_m.createSymlinkSync}});var aM=y((y_e,sM)=>{"use strict";var Rm=Px();sM.exports={readJson:Rm.readFile,readJsonSync:Rm.readFileSync,writeJson:Rm.writeFile,writeJsonSync:Rm.writeFileSync}});var Lm=y((b_e,cM)=>{"use strict";var Fue=Ct().fromCallback,Od=rt(),lM=require("path"),uM=Lr(),Iue=Ks().pathExists;function jue(n,e,t,i){typeof t=="function"&&(i=t,t="utf8");let r=lM.dirname(n);Iue(r,(o,s)=>{if(o)return i(o);if(s)return Od.writeFile(n,e,t,i);uM.mkdirs(r,a=>{if(a)return i(a);Od.writeFile(n,e,t,i)})})}function Aue(n,...e){let t=lM.dirname(n);if(Od.existsSync(t))return Od.writeFileSync(n,...e);uM.mkdirsSync(t),Od.writeFileSync(n,...e)}cM.exports={outputFile:Fue(jue),outputFileSync:Aue}});var dM=y((v_e,hM)=>{"use strict";var{stringify:Mue}=Ou(),{outputFile:Oue}=Lm();async function Nue(n,e,t={}){let i=Mue(e,t);await Oue(n,i,t)}hM.exports=Nue});var pM=y((w_e,gM)=>{"use strict";var{stringify:Bue}=Ou(),{outputFileSync:Hue}=Lm();function que(n,e,t){let i=Bue(e,t);Hue(n,i,t)}gM.exports=que});var mM=y((D_e,fM)=>{"use strict";var Yue=Ct().fromPromise,Vi=aM();Vi.outputJson=Yue(dM());Vi.outputJsonSync=pM();Vi.outputJSON=Vi.outputJson;Vi.outputJSONSync=Vi.outputJsonSync;Vi.writeJSON=Vi.writeJson;Vi.writeJSONSync=Vi.writeJsonSync;Vi.readJSON=Vi.readJson;Vi.readJSONSync=Vi.readJsonSync;fM.exports=Vi});var CM=y((C_e,DM)=>{"use strict";var vM=rt(),Wue=require("path"),Zue=Gx().copySync,wM=Ad().removeSync,Jue=Lr().mkdirpSync,yM=_d();function $ue(n,e,t){t=t||{};let i=t.overwrite||t.clobber||!1,{srcStat:r}=yM.checkPathsSync(n,e,"move");return yM.checkParentPathsSync(n,r,e,"move"),Jue(Wue.dirname(e)),Xue(n,e,i)}function Xue(n,e,t){if(t)return wM(e),bM(n,e,t);if(vM.existsSync(e))throw new Error("dest already exists.");return bM(n,e,t)}function bM(n,e,t){try{vM.renameSync(n,e)}catch(i){if(i.code!=="EXDEV")throw i;return Uue(n,e,t)}}function Uue(n,e,t){return Zue(n,e,{overwrite:t,errorOnExist:!0}),wM(n)}DM.exports=$ue});var SM=y((x_e,xM)=>{"use strict";xM.exports={moveSync:CM()}});var _M=y((S_e,PM)=>{"use strict";var Gue=rt(),Kue=require("path"),Que=Qx().copy,EM=Ad().remove,zue=Lr().mkdirp,Vue=Ks().pathExists,TM=_d();function ece(n,e,t,i){typeof t=="function"&&(i=t,t={});let r=t.overwrite||t.clobber||!1;TM.checkPaths(n,e,"move",(o,s)=>{if(o)return i(o);let{srcStat:a}=s;TM.checkParentPaths(n,a,e,"move",l=>{if(l)return i(l);zue(Kue.dirname(e),u=>u?i(u):tce(n,e,r,i))})})}function tce(n,e,t,i){if(t)return EM(e,r=>r?i(r):kM(n,e,t,i));Vue(e,(r,o)=>r?i(r):o?i(new Error("dest already exists.")):kM(n,e,t,i))}function kM(n,e,t,i){Gue.rename(n,e,r=>r?r.code!=="EXDEV"?i(r):ice(n,e,t,i):i())}function ice(n,e,t,i){Que(n,e,{overwrite:t,errorOnExist:!0},o=>o?i(o):EM(n,i))}PM.exports=ece});var LM=y((T_e,RM)=>{"use strict";var nce=Ct().fromCallback;RM.exports={move:nce(_M())}});var Bn=y((k_e,Vx)=>{"use strict";Vx.exports=ve(ve(ve(ve(ve(ve(ve(ve(ve(ve(ve(ve({},Pd()),Gx()),Qx()),MA()),oM()),mM()),Lr()),SM()),LM()),Lm()),Ks()),Ad());var FM=require("fs");Object.getOwnPropertyDescriptor(FM,"promises")&&Object.defineProperty(Vx.exports,"promises",{get(){return FM.promises}})});var W=y((AM,MM)=>{"use strict";var pl=x(require("fs")),eS=x(Hx()),Fm=x(require("path")),IM=x(require("os")),jM=x(Bn());function tS(){let n=process.env.NVIM_COC_LOG_FILE;if(n)return n;let e=process.env.XDG_RUNTIME_DIR;if(e)try{return pl.default.accessSync(e,pl.default.constants.R_OK|pl.default.constants.W_OK),Fm.default.join(e,`coc-nvim-${process.pid}.log`)}catch{}let t=IM.default.tmpdir();return e=Fm.default.join(t,`coc.nvim-${process.pid}`),pl.default.existsSync(e)||(0,jM.mkdirpSync)(e),Fm.default.join(e,"coc-nvim.log")}var rce=1024*1024,oce=10,Im=tS(),sce=process.env.NVIM_COC_LOG_LEVEL||"info";if(pl.default.existsSync(Im))try{pl.default.writeFileSync(Im,"",{encoding:"utf8",mode:438})}catch{}AM.getLogFile=tS;eS.default.configure({disableClustering:!0,appenders:{out:{type:"file",mode:438,filename:Im,maxLogSize:rce,backups:oce,layout:{type:"pattern",pattern:`%d{ISO8601} %p (pid:${process.pid}) [%c] - %m`}}},categories:{default:{appenders:["out"],level:sce}}});MM.exports=(n="coc-nvim")=>{let e=eS.default.getLogger(n);return Object.assign(e,{getLogFile:tS,logfile:Im})}});var iS=_(()=>{"use strict";Promise.prototype.logError=function(){this.catch(n=>{W()("util-extensions").error(n)})}});var NM=y((rS,OM)=>{OM.exports=nS(typeof Buffer<"u"&&Buffer)||nS(rS.Buffer)||nS(typeof window<"u"&&window.Buffer)||rS.Buffer;function nS(n){return n&&n.isBuffer&&n}});var jm=y((E_e,BM)=>{var ace={}.toString;BM.exports=Array.isArray||function(n){return ace.call(n)=="[object Array]"}});var YM=y(($u,qM)=>{var Ju=Hn(),$u=qM.exports=HM(0);$u.alloc=HM;$u.concat=Ju.concat;$u.from=lce;function HM(n){return new Array(n)}function lce(n){if(!Ju.isBuffer(n)&&Ju.isView(n))n=Ju.Uint8Array.from(n);else if(Ju.isArrayBuffer(n))n=new Uint8Array(n);else{if(typeof n=="string")return Ju.from.call($u,n);if(typeof n=="number")throw new TypeError('"value" argument must not be a number')}return Array.prototype.slice.call(n)}});var JM=y((Uu,ZM)=>{var zo=Hn(),Xu=zo.global,Uu=ZM.exports=zo.hasBuffer?WM(0):[];Uu.alloc=zo.hasBuffer&&Xu.alloc||WM;Uu.concat=zo.concat;Uu.from=uce;function WM(n){return new Xu(n)}function uce(n){if(!zo.isBuffer(n)&&zo.isView(n))n=zo.Uint8Array.from(n);else if(zo.isArrayBuffer(n))n=new Uint8Array(n);else{if(typeof n=="string")return zo.from.call(Uu,n);if(typeof n=="number")throw new TypeError('"value" argument must not be a number')}return Xu.from&&Xu.from.length!==1?Xu.from(n):new Xu(n)}});var UM=y((Gu,XM)=>{var Am=Hn(),Gu=XM.exports=Am.hasArrayBuffer?$M(0):[];Gu.alloc=$M;Gu.concat=Am.concat;Gu.from=cce;function $M(n){return new Uint8Array(n)}function cce(n){if(Am.isView(n)){var e=n.byteOffset,t=n.byteLength;n=n.buffer,n.byteLength!==t&&(n.slice?n=n.slice(e,e+t):(n=new Uint8Array(n),n.byteLength!==t&&(n=Array.prototype.slice.call(n,e,e+t))))}else{if(typeof n=="string")return Am.from.call(Gu,n);if(typeof n=="number")throw new TypeError('"value" argument must not be a number')}return new Uint8Array(n)}});var GM=y(Mm=>{Mm.copy=gce;Mm.toString=dce;Mm.write=hce;function hce(n,e){for(var t=this,i=e||(e|=0),r=n.length,o=0,s=0;s>>6,t[i++]=128|o&63):o<55296||o>57343?(t[i++]=224|o>>>12,t[i++]=128|o>>>6&63,t[i++]=128|o&63):(o=(o-55296<<10|n.charCodeAt(s++)-56320)+65536,t[i++]=240|o>>>18,t[i++]=128|o>>>12&63,t[i++]=128|o>>>6&63,t[i++]=128|o&63);return i-e}function dce(n,e,t){var i=this,r=e|0;t||(t=i.length);for(var o="",s=0;r=65536?(s-=65536,o+=String.fromCharCode((s>>>10)+55296,(s&1023)+56320)):o+=String.fromCharCode(s)}return o}function gce(n,e,t,i){var r;t||(t=0),!i&&i!==0&&(i=this.length),e||(e=0);var o=i-t;if(n===this&&t=0;r--)n[r+e]=this[r+t];else for(r=0;r{var oS=GM();Nd.copy=VM;Nd.slice=eO;Nd.toString=pce;Nd.write=fce("write");var Vs=Hn(),KM=Vs.global,QM=Vs.hasBuffer&&"TYPED_ARRAY_SUPPORT"in KM,zM=QM&&!KM.TYPED_ARRAY_SUPPORT;function VM(n,e,t,i){var r=Vs.isBuffer(this),o=Vs.isBuffer(n);if(r&&o)return this.copy(n,e,t,i);if(!zM&&!r&&!o&&Vs.isView(this)&&Vs.isView(n)){var s=t||i!=null?eO.call(this,t,i):this;return n.set(s,e),s.length}else return oS.copy.call(this,n,e,t,i)}function eO(n,e){var t=this.slice||!zM&&this.subarray;if(t)return t.call(this,n,e);var i=Vs.alloc.call(this,e-n);return VM.call(this,i,0,n,e),i}function pce(n,e,t){var i=!QM&&Vs.isBuffer(this)?this.toString:oS.toString;return i.apply(this,arguments)}function fce(n){return e;function e(){var t=this[n]||oS[n];return t.apply(this,arguments)}}});var Hn=y(ji=>{var sS=ji.global=NM(),rO=ji.hasBuffer=sS&&!!sS.isBuffer,lS=ji.hasArrayBuffer=typeof ArrayBuffer<"u",mce=ji.isArray=jm();ji.isArrayBuffer=lS?Cce:cS;var yce=ji.isBuffer=rO?sS.isBuffer:cS,bce=ji.isView=lS?ArrayBuffer.isView||sO("ArrayBuffer","buffer"):cS;ji.alloc=uS;ji.concat=wce;ji.from=vce;var tO=ji.Array=YM(),iO=ji.Buffer=JM(),nO=ji.Uint8Array=UM(),aS=ji.prototype=Om();function vce(n){return typeof n=="string"?xce.call(this,n):oO(this).from(n)}function uS(n){return oO(this).alloc(n)}function wce(n,e){e||(e=0,Array.prototype.forEach.call(n,o));var t=this!==ji&&this||n[0],i=uS.call(t,e),r=0;return Array.prototype.forEach.call(n,s),i;function o(a){e+=a.length}function s(a){r+=aS.copy.call(a,i,r)}}var Dce=sO("ArrayBuffer");function Cce(n){return n instanceof ArrayBuffer||Dce(n)}function xce(n){var e=n.length*3,t=uS.call(this,e),i=aS.write.call(t,n);return e!==i&&(t=aS.slice.call(t,0,i)),t}function oO(n){return yce(n)?iO:bce(n)?nO:mce(n)?tO:rO?iO:lS?nO:tO}function cS(){return!1}function sO(n,e){return n="[object "+n+"]",function(t){return t!=null&&{}.toString.call(e?t[e]:t)===n}}});var Nm=y(aO=>{aO.ExtBuffer=hS;var Sce=Hn();function hS(n,e){if(!(this instanceof hS))return new hS(n,e);this.buffer=Sce.from(n),this.type=e}});var uO=y(lO=>{lO.setExtPackers=Ece;var Bm=Hn(),Tce=Bm.global,Fr=Bm.Uint8Array.from,dS,kce={name:1,message:1,stack:1,columnNumber:1,fileName:1,lineNumber:1};function Ece(n){n.addExtPacker(14,Error,[fl,tr]),n.addExtPacker(1,EvalError,[fl,tr]),n.addExtPacker(2,RangeError,[fl,tr]),n.addExtPacker(3,ReferenceError,[fl,tr]),n.addExtPacker(4,SyntaxError,[fl,tr]),n.addExtPacker(5,TypeError,[fl,tr]),n.addExtPacker(6,URIError,[fl,tr]),n.addExtPacker(10,RegExp,[Pce,tr]),n.addExtPacker(11,Boolean,[gS,tr]),n.addExtPacker(12,String,[gS,tr]),n.addExtPacker(13,Date,[Number,tr]),n.addExtPacker(15,Number,[gS,tr]),typeof Uint8Array<"u"&&(n.addExtPacker(17,Int8Array,Fr),n.addExtPacker(18,Uint8Array,Fr),n.addExtPacker(19,Int16Array,Fr),n.addExtPacker(20,Uint16Array,Fr),n.addExtPacker(21,Int32Array,Fr),n.addExtPacker(22,Uint32Array,Fr),n.addExtPacker(23,Float32Array,Fr),typeof Float64Array<"u"&&n.addExtPacker(24,Float64Array,Fr),typeof Uint8ClampedArray<"u"&&n.addExtPacker(25,Uint8ClampedArray,Fr),n.addExtPacker(26,ArrayBuffer,Fr),n.addExtPacker(29,DataView,Fr)),Bm.hasBuffer&&n.addExtPacker(27,Tce,Bm.from)}function tr(n){return dS||(dS=pS().encode),dS(n)}function gS(n){return n.valueOf()}function Pce(n){n=RegExp.prototype.toString.call(n).split("/"),n.shift();var e=[n.pop()];return e.unshift(n.join("/")),e}function fl(n){var e={};for(var t in kce)e[t]=n[t];return e}});var Hm=y(Bd=>{var _ce,Rce,Lce,Fce;(function(n){var e="undefined",t=e!==typeof Buffer&&Buffer,i=e!==typeof Uint8Array&&Uint8Array,r=e!==typeof ArrayBuffer&&ArrayBuffer,o=[0,0,0,0,0,0,0,0],s=Array.isArray||R,a=4294967296,l=16777216,u;_ce=c("Uint64BE",!0,!0),Rce=c("Int64BE",!0,!1),Lce=c("Uint64LE",!1,!0),Fce=c("Int64LE",!1,!1);function c(N,H,X){var B=H?0:4,M=H?4:0,F=H?0:3,O=H?1:2,Z=H?2:1,ie=H?3:0,ge=H?b:D,_e=H?w:T,J=z.prototype,Y="is"+N,K="_"+Y;return J.buffer=void 0,J.offset=0,J[K]=!0,J.toNumber=jn,J.toString=Ri,J.toJSON=jn,J.toArray=h,t&&(J.toBuffer=d),i&&(J.toArrayBuffer=g),z[Y]=ke,n[N]=z,z;function z(Re,Me,Oe,Le){return this instanceof z?Se(this,Re,Me,Oe,Le):new z(Re,Me,Oe,Le)}function ke(Re){return!!(Re&&Re[K])}function Se(Re,Me,Oe,Le,ti){if(i&&r&&(Me instanceof r&&(Me=new i(Me)),Le instanceof r&&(Le=new i(Le))),!Me&&!Oe&&!Le&&!u){Re.buffer=m(o,0);return}if(!p(Me,Oe)){var kr=u||Array;ti=Oe,Le=Me,Oe=0,Me=new kr(8)}Re.buffer=Me,Re.offset=Oe|=0,e!==typeof Le&&(typeof Le=="string"?Ge(Me,Oe,Le,ti||10):p(Le,ti)?f(Me,Oe,Le,ti):typeof ti=="number"?(Li(Me,Oe+B,Le),Li(Me,Oe+M,ti)):Le>0?ge(Me,Oe,Le):Le<0?_e(Me,Oe,Le):f(Me,Oe,o,0))}function Ge(Re,Me,Oe,Le){var ti=0,kr=Oe.length,mn=0,An=0;Oe[0]==="-"&&ti++;for(var od=ti;ti=0))break;An=An*Le+Of,mn=mn*Le+Math.floor(An/a),An%=a}od&&(mn=~mn,An?An=a-An:mn++),Li(Re,Me+B,mn),Li(Re,Me+M,An)}function jn(){var Re=this.buffer,Me=this.offset,Oe=Tr(Re,Me+B),Le=Tr(Re,Me+M);return X||(Oe|=0),Oe?Oe*a+Le:Le}function Ri(Re){var Me=this.buffer,Oe=this.offset,Le=Tr(Me,Oe+B),ti=Tr(Me,Oe+M),kr="",mn=!X&&Le&2147483648;for(mn&&(Le=~Le,ti=a-ti),Re=Re||10;;){var An=Le%Re*a+ti;if(Le=Math.floor(Le/Re),ti=Math.floor(An/Re),kr=(An%Re).toString(Re)+kr,!Le&&!ti)break}return mn&&(kr="-"+kr),kr}function Li(Re,Me,Oe){Re[Me+ie]=Oe&255,Oe=Oe>>8,Re[Me+Z]=Oe&255,Oe=Oe>>8,Re[Me+O]=Oe&255,Oe=Oe>>8,Re[Me+F]=Oe&255}function Tr(Re,Me){return Re[Me+F]*l+(Re[Me+O]<<16)+(Re[Me+Z]<<8)+Re[Me+ie]}}function h(N){var H=this.buffer,X=this.offset;return u=null,N!==!1&&X===0&&H.length===8&&s(H)?H:m(H,X)}function d(N){var H=this.buffer,X=this.offset;if(u=t,N!==!1&&X===0&&H.length===8&&Buffer.isBuffer(H))return H;var B=new t(8);return f(B,0,H,X),B}function g(N){var H=this.buffer,X=this.offset,B=H.buffer;if(u=i,N!==!1&&X===0&&B instanceof r&&B.byteLength===8)return B;var M=new i(8);return f(M,0,H,X),M.buffer}function p(N,H){var X=N&&N.length;return H|=0,X&&H+8<=X&&typeof N[H]!="string"}function f(N,H,X,B){H|=0,B|=0;for(var M=0;M<8;M++)N[H++]=X[B++]&255}function m(N,H){return Array.prototype.slice.call(N,H,H+8)}function b(N,H,X){for(var B=H+8;B>H;)N[--B]=X&255,X/=256}function w(N,H,X){var B=H+8;for(X++;B>H;)N[--B]=-X&255^255,X/=256}function D(N,H,X){for(var B=H+8;H{fS.read=function(n,e,t,i,r){var o,s,a=r*8-i-1,l=(1<>1,c=-7,h=t?r-1:0,d=t?-1:1,g=n[e+h];for(h+=d,o=g&(1<<-c)-1,g>>=-c,c+=a;c>0;o=o*256+n[e+h],h+=d,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=i;c>0;s=s*256+n[e+h],h+=d,c-=8);if(o===0)o=1-u;else{if(o===l)return s?NaN:(g?-1:1)*(1/0);s=s+Math.pow(2,i),o=o-u}return(g?-1:1)*s*Math.pow(2,o-i)};fS.write=function(n,e,t,i,r,o){var s,a,l,u=o*8-r-1,c=(1<>1,d=r===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=i?0:o-1,p=i?1:-1,f=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=c):(s=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-s))<1&&(s--,l*=2),s+h>=1?e+=d/l:e+=d*Math.pow(2,1-h),e*l>=2&&(s++,l/=2),s+h>=c?(a=0,s=c):s+h>=1?(a=(e*l-1)*Math.pow(2,r),s=s+h):(a=e*Math.pow(2,h-1)*Math.pow(2,r),s=0));r>=8;n[t+g]=a&255,g+=p,a/=256,r-=8);for(s=s<0;n[t+g]=s&255,g+=p,s/=256,u-=8);n[t+g-p]|=f*128}});var yS=y(cO=>{var Ice=cO.uint8=new Array(256);for(Hd=0;Hd<=255;Hd++)Ice[Hd]=jce(Hd);var Hd;function jce(n){return function(e){var t=e.reserve(1);e.buffer[t]=n}}});var DO=y(wO=>{var dO=mS(),gO=Hm(),Ace=gO.Uint64BE,Mce=gO.Int64BE,pO=yS().uint8,qm=Hn(),Ft=qm.global,Oce=qm.hasBuffer&&"TYPED_ARRAY_SUPPORT"in Ft,Nce=Oce&&!Ft.TYPED_ARRAY_SUPPORT,hO=qm.hasBuffer&&Ft.prototype||{};wO.getWriteToken=Bce;function Bce(n){return n&&n.uint8array?Hce():Nce||qm.hasBuffer&&n&&n.safe?qce():fO()}function Hce(){var n=fO();return n[202]=ot(202,4,bO),n[203]=ot(203,8,vO),n}function fO(){var n=pO.slice();return n[196]=qd(196),n[197]=ml(197),n[198]=yl(198),n[199]=qd(199),n[200]=ml(200),n[201]=yl(201),n[202]=ot(202,4,hO.writeFloatBE||bO,!0),n[203]=ot(203,8,hO.writeDoubleBE||vO,!0),n[204]=qd(204),n[205]=ml(205),n[206]=yl(206),n[207]=ot(207,8,mO),n[208]=qd(208),n[209]=ml(209),n[210]=yl(210),n[211]=ot(211,8,yO),n[217]=qd(217),n[218]=ml(218),n[219]=yl(219),n[220]=ml(220),n[221]=yl(221),n[222]=ml(222),n[223]=yl(223),n}function qce(){var n=pO.slice();return n[196]=ot(196,1,Ft.prototype.writeUInt8),n[197]=ot(197,2,Ft.prototype.writeUInt16BE),n[198]=ot(198,4,Ft.prototype.writeUInt32BE),n[199]=ot(199,1,Ft.prototype.writeUInt8),n[200]=ot(200,2,Ft.prototype.writeUInt16BE),n[201]=ot(201,4,Ft.prototype.writeUInt32BE),n[202]=ot(202,4,Ft.prototype.writeFloatBE),n[203]=ot(203,8,Ft.prototype.writeDoubleBE),n[204]=ot(204,1,Ft.prototype.writeUInt8),n[205]=ot(205,2,Ft.prototype.writeUInt16BE),n[206]=ot(206,4,Ft.prototype.writeUInt32BE),n[207]=ot(207,8,mO),n[208]=ot(208,1,Ft.prototype.writeInt8),n[209]=ot(209,2,Ft.prototype.writeInt16BE),n[210]=ot(210,4,Ft.prototype.writeInt32BE),n[211]=ot(211,8,yO),n[217]=ot(217,1,Ft.prototype.writeUInt8),n[218]=ot(218,2,Ft.prototype.writeUInt16BE),n[219]=ot(219,4,Ft.prototype.writeUInt32BE),n[220]=ot(220,2,Ft.prototype.writeUInt16BE),n[221]=ot(221,4,Ft.prototype.writeUInt32BE),n[222]=ot(222,2,Ft.prototype.writeUInt16BE),n[223]=ot(223,4,Ft.prototype.writeUInt32BE),n}function qd(n){return function(e,t){var i=e.reserve(2),r=e.buffer;r[i++]=n,r[i]=t}}function ml(n){return function(e,t){var i=e.reserve(3),r=e.buffer;r[i++]=n,r[i++]=t>>>8,r[i]=t}}function yl(n){return function(e,t){var i=e.reserve(5),r=e.buffer;r[i++]=n,r[i++]=t>>>24,r[i++]=t>>>16,r[i++]=t>>>8,r[i]=t}}function ot(n,e,t,i){return function(r,o){var s=r.reserve(e+1);r.buffer[s++]=n,t.call(r.buffer,o,s,i)}}function mO(n,e){new Ace(this,e,n)}function yO(n,e){new Mce(this,e,n)}function bO(n,e){dO.write(this,n,e,!1,23,4)}function vO(n,e){dO.write(this,n,e,!1,52,8)}});var kO=y(TO=>{var Yce=jm(),SO=Hm(),Wce=SO.Uint64BE,Zce=SO.Int64BE,CO=Hn(),xO=Om(),Jce=DO(),$ce=yS().uint8,Xce=Nm().ExtBuffer,Uce=typeof Uint8Array<"u",Gce=typeof Map<"u",Ku=[];Ku[1]=212;Ku[2]=213;Ku[4]=214;Ku[8]=215;Ku[16]=216;TO.getWriteType=Kce;function Kce(n){var e=Jce.getWriteToken(n),t=n&&n.useraw,i=Uce&&n&&n.binarraybuffer,r=i?CO.isArrayBuffer:CO.isBuffer,o=i?R:T,s=Gce&&n&&n.usemap,a=s?X:H,l={boolean:u,function:w,number:c,object:t?b:m,string:f(t?p:g),symbol:w,undefined:w};return l;function u(M,F){var O=F?195:194;e[O](M,F)}function c(M,F){var O=F|0,Z;if(F!==O){Z=203,e[Z](M,F);return}else-32<=O&&O<=127?Z=O&255:0<=O?Z=O<=255?204:O<=65535?205:206:Z=-128<=O?208:-32768<=O?209:210;e[Z](M,O)}function h(M,F){var O=207;e[O](M,F.toArray())}function d(M,F){var O=211;e[O](M,F.toArray())}function g(M){return M<32?1:M<=255?2:M<=65535?3:5}function p(M){return M<32?1:M<=65535?3:5}function f(M){return F;function F(O,Z){var ie=Z.length,ge=5+ie*3;O.offset=O.reserve(ge);var _e=O.buffer,J=M(ie),Y=O.offset+J;ie=xO.write.call(_e,Z,Y);var K=M(ie);if(J!==K){var z=Y+K-J,ke=Y+ie;xO.copy.call(_e,_e,z,Y,ke)}var Se=K===1?160+ie:K<=3?215+K:219;e[Se](O,ie),O.offset+=ie}}function m(M,F){if(F===null)return w(M,F);if(r(F))return o(M,F);if(Yce(F))return D(M,F);if(Wce.isUint64BE(F))return h(M,F);if(Zce.isInt64BE(F))return d(M,F);var O=M.codec.getExtPacker(F);if(O&&(F=O(F)),F instanceof Xce)return N(M,F);a(M,F)}function b(M,F){if(r(F))return B(M,F);m(M,F)}function w(M,F){var O=192;e[O](M,F)}function D(M,F){var O=F.length,Z=O<16?144+O:O<=65535?220:221;e[Z](M,O);for(var ie=M.codec.encode,ge=0;ge{var Qce=jm();Yd.createCodec=EO;Yd.install=Vce;Yd.filter=ihe;var zce=Hn();function Qu(n){if(!(this instanceof Qu))return new Qu(n);this.options=n,this.init()}Qu.prototype.init=function(){var n=this.options;return n&&n.uint8array&&(this.bufferish=zce.Uint8Array),this};function Vce(n){for(var e in n)Qu.prototype[e]=ehe(Qu.prototype[e],n[e])}function ehe(n,e){return n&&e?t:n||e;function t(){return n.apply(this,arguments),e.apply(this,arguments)}}function the(n){return n=n.slice(),function(t){return n.reduce(e,t)};function e(t,i){return i(t)}}function ihe(n){return Qce(n)?the(n):n}function EO(n){return new Qu(n)}Yd.preset=EO({preset:!0})});var Ym=y(_O=>{var nhe=Nm().ExtBuffer,rhe=uO(),ohe=kO(),bS=Wd();bS.install({addExtPacker:ahe,getExtPacker:lhe,init:PO});_O.preset=PO.call(bS.preset);function she(n){var e=ohe.getWriteType(n);return t;function t(i,r){var o=e[typeof r];if(!o)throw new Error('Unsupported type "'+typeof r+'": '+r);o(i,r)}}function PO(){var n=this.options;return this.encode=she(n),n&&n.preset&&rhe.setExtPackers(this),this}function ahe(n,e,t){t=bS.filter(t);var i=e.name;if(i&&i!=="Object"){var r=this.extPackers||(this.extPackers={});r[i]=s}else{var o=this.extEncoderList||(this.extEncoderList=[]);o.unshift([e,s])}function s(a){return t&&(a=t(a)),new nhe(a,n)}}function lhe(n){var e=this.extPackers||(this.extPackers={}),t=n.constructor,i=t&&t.name&&e[t.name];if(i)return i;for(var r=this.extEncoderList||(this.extEncoderList=[]),o=r.length,s=0;s{vS.FlexDecoder=zu;vS.FlexEncoder=Vu;var Zd=Hn(),uhe=2048,che=65536,RO="BUFFER_SHORTAGE";function zu(){if(!(this instanceof zu))return new zu}function Vu(){if(!(this instanceof Vu))return new Vu}zu.mixin=IO(hhe());zu.mixin(zu.prototype);Vu.mixin=IO(dhe());Vu.mixin(Vu.prototype);function hhe(){return{bufferish:Zd,write:n,fetch:phe,flush:e,push:FO,pull:fhe,read:LO,reserve:t,offset:0};function n(i){var r=this.offset?Zd.prototype.slice.call(this.buffer,this.offset):this.buffer;this.buffer=r?i?this.bufferish.concat([r,i]):r:i,this.offset=0}function e(){for(;this.offsetthis.buffer.length)throw new Error(RO);return this.offset=o,r}}function dhe(){return{bufferish:Zd,write:ghe,fetch:n,flush:e,push:FO,pull:t,read:LO,reserve:i,send:r,maxBufferSize:che,minBufferSize:uhe,offset:0,start:0};function n(){var o=this.start;if(o1?this.bufferish.concat(o):o[0];return o.length=0,s}function i(o){var s=o|0;if(this.buffer){var a=this.buffer.length,l=this.offset|0,u=l+s;if(uthis.minBufferSize)this.flush(),this.push(o);else{var a=this.reserve(s);Zd.prototype.copy.call(o,this.buffer,a)}}}function ghe(){throw new Error("method not implemented: write()")}function phe(){throw new Error("method not implemented: fetch()")}function LO(){var n=this.buffers&&this.buffers.length;return n?(this.flush(),this.pull()):this.fetch()}function FO(n){var e=this.buffers||(this.buffers=[]);e.push(n)}function fhe(){var n=this.buffers||(this.buffers=[]);return n.shift()}function IO(n){return e;function e(t){for(var i in n)t[i]=n[i];return t}}});var Wm=y(jO=>{jO.EncodeBuffer=ec;var mhe=Ym().preset,yhe=wS().FlexEncoder;yhe.mixin(ec.prototype);function ec(n){if(!(this instanceof ec))return new ec(n);if(n&&(this.options=n,n.codec)){var e=this.codec=n.codec;e.bufferish&&(this.bufferish=e.bufferish)}}ec.prototype.codec=mhe;ec.prototype.write=function(n){this.codec.encode(this,n)}});var pS=y(AO=>{AO.encode=vhe;var bhe=Wm().EncodeBuffer;function vhe(n,e){var t=new bhe(e);return t.write(n),t.read()}});var NO=y(OO=>{OO.setExtUnpackers=Che;var MO=Hn(),whe=MO.global,DS,Dhe={name:1,message:1,stack:1,columnNumber:1,fileName:1,lineNumber:1};function Che(n){n.addExtUnpacker(14,[ir,bl(Error)]),n.addExtUnpacker(1,[ir,bl(EvalError)]),n.addExtUnpacker(2,[ir,bl(RangeError)]),n.addExtUnpacker(3,[ir,bl(ReferenceError)]),n.addExtUnpacker(4,[ir,bl(SyntaxError)]),n.addExtUnpacker(5,[ir,bl(TypeError)]),n.addExtUnpacker(6,[ir,bl(URIError)]),n.addExtUnpacker(10,[ir,xhe]),n.addExtUnpacker(11,[ir,en(Boolean)]),n.addExtUnpacker(12,[ir,en(String)]),n.addExtUnpacker(13,[ir,en(Date)]),n.addExtUnpacker(15,[ir,en(Number)]),typeof Uint8Array<"u"&&(n.addExtUnpacker(17,en(Int8Array)),n.addExtUnpacker(18,en(Uint8Array)),n.addExtUnpacker(19,[ea,en(Int16Array)]),n.addExtUnpacker(20,[ea,en(Uint16Array)]),n.addExtUnpacker(21,[ea,en(Int32Array)]),n.addExtUnpacker(22,[ea,en(Uint32Array)]),n.addExtUnpacker(23,[ea,en(Float32Array)]),typeof Float64Array<"u"&&n.addExtUnpacker(24,[ea,en(Float64Array)]),typeof Uint8ClampedArray<"u"&&n.addExtUnpacker(25,en(Uint8ClampedArray)),n.addExtUnpacker(26,ea),n.addExtUnpacker(29,[ea,en(DataView)])),MO.hasBuffer&&n.addExtUnpacker(27,en(whe))}function ir(n){return DS||(DS=CS().decode),DS(n)}function xhe(n){return RegExp.apply(null,n)}function bl(n){return function(e){var t=new n;for(var i in Dhe)t[i]=e[i];return t}}function en(n){return function(e){return new n(e)}}function ea(n){return new Uint8Array(n).buffer}});var TS=y(SS=>{var BO=mS(),HO=Hm(),qO=HO.Uint64BE,YO=HO.Int64BE;SS.getReadFormat=khe;SS.readUint8=WO;var xS=Hn(),Jm=Om(),She=typeof Map<"u",The=!0;function khe(n){var e=xS.hasArrayBuffer&&n&&n.binarraybuffer,t=n&&n.int64,i=She&&n&&n.usemap,r={map:i?Phe:Ehe,array:_he,str:Rhe,bin:e?Fhe:Lhe,ext:Ihe,uint8:WO,uint16:Ahe,uint32:Ohe,uint64:Zm(8,t?qhe:Bhe),int8:jhe,int16:Mhe,int32:Nhe,int64:Zm(8,t?Yhe:Hhe),float32:Zm(4,Whe),float64:Zm(8,Zhe)};return r}function Ehe(n,e){var t={},i,r=new Array(e),o=new Array(e),s=n.codec.decode;for(i=0;i{var Jhe=TS();JO.getReadToken=$he;function $he(n){var e=Jhe.getReadFormat(n);return n&&n.useraw?Xhe(e):ZO(e)}function ZO(n){var e,t=new Array(256);for(e=0;e<=127;e++)t[e]=Jd(e);for(e=128;e<=143;e++)t[e]=Vo(e-128,n.map);for(e=144;e<=159;e++)t[e]=Vo(e-144,n.array);for(e=160;e<=191;e++)t[e]=Vo(e-160,n.str);for(t[192]=Jd(null),t[193]=null,t[194]=Jd(!1),t[195]=Jd(!0),t[196]=qn(n.uint8,n.bin),t[197]=qn(n.uint16,n.bin),t[198]=qn(n.uint32,n.bin),t[199]=qn(n.uint8,n.ext),t[200]=qn(n.uint16,n.ext),t[201]=qn(n.uint32,n.ext),t[202]=n.float32,t[203]=n.float64,t[204]=n.uint8,t[205]=n.uint16,t[206]=n.uint32,t[207]=n.uint64,t[208]=n.int8,t[209]=n.int16,t[210]=n.int32,t[211]=n.int64,t[212]=Vo(1,n.ext),t[213]=Vo(2,n.ext),t[214]=Vo(4,n.ext),t[215]=Vo(8,n.ext),t[216]=Vo(16,n.ext),t[217]=qn(n.uint8,n.str),t[218]=qn(n.uint16,n.str),t[219]=qn(n.uint32,n.str),t[220]=qn(n.uint16,n.array),t[221]=qn(n.uint32,n.array),t[222]=qn(n.uint16,n.map),t[223]=qn(n.uint32,n.map),e=224;e<=255;e++)t[e]=Jd(e-256);return t}function Xhe(n){var e,t=ZO(n).slice();for(t[217]=t[196],t[218]=t[197],t[219]=t[198],e=160;e<=191;e++)t[e]=Vo(e-160,n.bin);return t}function Jd(n){return function(){return n}}function qn(n,e){return function(t){var i=n(t);return e(t,i)}}function Vo(n,e){return function(t){return e(t,n)}}});var $m=y(UO=>{var Uhe=Nm().ExtBuffer,Ghe=NO(),Khe=TS().readUint8,Qhe=$O(),kS=Wd();kS.install({addExtUnpacker:Vhe,getExtUnpacker:ede,init:XO});UO.preset=XO.call(kS.preset);function zhe(n){var e=Qhe.getReadToken(n);return t;function t(i){var r=Khe(i),o=e[r];if(!o)throw new Error("Invalid type: "+(r&&"0x"+r.toString(16)));return o(i)}}function XO(){var n=this.options;return this.decode=zhe(n),n&&n.preset&&Ghe.setExtUnpackers(this),this}function Vhe(n,e){var t=this.extUnpackers||(this.extUnpackers=[]);t[n]=kS.filter(e)}function ede(n){var e=this.extUnpackers||(this.extUnpackers=[]);return e[n]||t;function t(i){return new Uhe(i,n)}}});var Xm=y(GO=>{GO.DecodeBuffer=tc;var tde=$m().preset,ide=wS().FlexDecoder;ide.mixin(tc.prototype);function tc(n){if(!(this instanceof tc))return new tc(n);if(n&&(this.options=n,n.codec)){var e=this.codec=n.codec;e.bufferish&&(this.bufferish=e.bufferish)}}tc.prototype.codec=tde;tc.prototype.fetch=function(){return this.codec.decode(this)}});var CS=y(KO=>{KO.decode=rde;var nde=Xm().DecodeBuffer;function rde(n,e){var t=new nde(e);return t.write(n),t.read()}});var _S=y((G_e,PS)=>{function ES(){if(!(this instanceof ES))return new ES}(function(n){typeof PS<"u"&&(PS.exports=n);var e="listeners",t={on:r,once:o,off:s,emit:a};i(n.prototype),n.mixin=i;function i(u){for(var c in t)u[c]=t[c];return u}function r(u,c){return l(this,u).push(c),this}function o(u,c){var h=this;return d.originalListener=c,l(h,u).push(d),h;function d(){s.call(h,u,d),c.apply(this,arguments)}}function s(u,c){var h=this,d;if(!arguments.length)delete h[e];else if(c){if(d=l(h,u,!0),d){if(d=d.filter(g),!d.length)return s.call(h,u);h[e][u]=d}}else if(d=h[e],d&&(delete d[u],!Object.keys(d).length))return s.call(h);return h;function g(p){return p!==c&&p.originalListener!==c}}function a(u,c){var h=this,d=l(h,u,!0);if(!d)return!1;var g=arguments.length;if(g===1)d.forEach(f);else if(g===2)d.forEach(m);else{var p=Array.prototype.slice.call(arguments,1);d.forEach(b)}return!!d.length;function f(w){w.call(h)}function m(w){w.call(h,c)}function b(w){w.apply(h,p)}}function l(u,c,h){if(!(h&&!u[e])){var d=u[e]||(u[e]={});return d[c]||(d[c]=[])}}})(ES)});var VO=y(zO=>{zO.Encoder=vl;var ode=_S(),QO=Wm().EncodeBuffer;function vl(n){if(!(this instanceof vl))return new vl(n);QO.call(this,n)}vl.prototype=new QO;ode.mixin(vl.prototype);vl.prototype.encode=function(n){this.write(n),this.emit("data",this.read())};vl.prototype.end=function(n){arguments.length&&this.encode(n),this.flush(),this.emit("end")}});var iN=y(tN=>{tN.Decoder=ta;var sde=_S(),eN=Xm().DecodeBuffer;function ta(n){if(!(this instanceof ta))return new ta(n);eN.call(this,n)}ta.prototype=new eN;sde.mixin(ta.prototype);ta.prototype.decode=function(n){arguments.length&&this.write(n),this.flush()};ta.prototype.push=function(n){this.emit("data",n)};ta.prototype.end=function(n){this.decode(n),this.emit("end")}});var oN=y(rN=>{rN.createEncodeStream=ic;var ade=require("util"),nN=require("stream").Transform,lde=Wm().EncodeBuffer;ade.inherits(ic,nN);var ude={objectMode:!0};function ic(n){if(!(this instanceof ic))return new ic(n);n?n.objectMode=!0:n=ude,nN.call(this,n);var e=this,t=this.encoder=new lde(n);t.push=function(i){e.push(i)}}ic.prototype._transform=function(n,e,t){this.encoder.write(n),t&&t()};ic.prototype._flush=function(n){this.encoder.flush(),n&&n()}});var lN=y(aN=>{aN.createDecodeStream=$d;var cde=require("util"),sN=require("stream").Transform,hde=Xm().DecodeBuffer;cde.inherits($d,sN);var dde={objectMode:!0};function $d(n){if(!(this instanceof $d))return new $d(n);n?n.objectMode=!0:n=dde,sN.call(this,n);var e=this,t=this.decoder=new hde(n);t.push=function(i){e.push(i)}}$d.prototype._transform=function(n,e,t){this.decoder.write(n),this.decoder.flush(),t&&t()}});var cN=y(uN=>{$m();Ym();uN.createCodec=Wd().createCodec});var dN=y(hN=>{$m();Ym();hN.codec={preset:Wd().preset}});var gN=y(es=>{es.encode=pS().encode;es.decode=CS().decode;es.Encoder=VO().Encoder;es.Decoder=iN().Decoder;es.createEncodeStream=oN().createEncodeStream;es.createDecodeStream=lN().createDecodeStream;es.createCodec=cN().createCodec;es.codec=dN().codec});var fN=y(RS=>{"use strict";Object.defineProperty(RS,"__esModule",{value:!0});var gde=require("stream"),pN=class extends gde.Transform{constructor(){super({readableHighWaterMark:10*1024*1024,writableHighWaterMark:10*1024*1024});this.chunks=null,this.timer=null}sendData(){let{chunks:e}=this;if(e){this.chunks=null;let t=Buffer.concat(e);this.push(t)}}_transform(e,t,i){let{chunks:r,timer:o}=this,s=Buffer.poolSize;if(o&&clearTimeout(o),e.length{"use strict";Object.defineProperty(Um,"__esModule",{value:!0});Um.BaseApi=void 0;var pde=require("events"),fde=process.env.VIM_NODE_RPC=="1",mN=class extends pde.EventEmitter{constructor({transport:e,data:t,client:i}){super();this.setTransport(e),this.data=t,this.client=i}setTransport(e){this.transport=e}equals(e){try{return String(this.data)===String(e.data)}catch{return!1}}async request(e,t=[]){let i=Error().stack;return new Promise((r,o)=>{this.transport.request(e,this.getArgsByPrefix(t),(s,a)=>{if(s){let l=new Error(`${s[1].split(/\r?\n/)[0]}`);l.stack=`Error: request error on ${e} - ${s[1]} `+i.split(/\r?\n/).slice(3).join(` -`),e.endsWith("get_var")||this.client.logError(`request error on "${e}"`,t,s[1],i),o(l)}else r(a)})})}getArgsByPrefix(e){return this.prefix!=="nvim_"&&e[0]!=this?[Ace?this.data:this,...e]:e}getVar(e){return this.request(`${this.prefix}get_var`,[e]).then(t=>t,t=>null)}setVar(e,t,i=!1){if(i){this.notify(`${this.prefix}set_var`,[e,t]);return}return this.request(`${this.prefix}set_var`,[e,t])}deleteVar(e){this.notify(`${this.prefix}del_var`,[e])}getOption(e){return this.request(`${this.prefix}get_option`,[e])}setOption(e,t,i){if(i){this.notify(`${this.prefix}set_option`,[e,t]);return}return this.request(`${this.prefix}set_option`,[e,t])}notify(e,t=[]){this.transport.notify(e,this.getArgsByPrefix(t))}};Pm.BaseApi=bM});var Ld=m(_m=>{"use strict";Object.defineProperty(_m,"__esModule",{value:!0});_m.Buffer=void 0;var Oce=Rd(),yM=class extends Oce.BaseApi{constructor(){super(...arguments);this.prefix="nvim_buf_"}async attach(e=!1,t={}){return await this.request(`${this.prefix}attach`,[e,t])}async detach(){return await this.request(`${this.prefix}detach`,[])}get id(){return this.data}get length(){return this.request(`${this.prefix}line_count`,[])}get lines(){return this.getLines()}get changedtick(){return this.request(`${this.prefix}get_changedtick`,[])}get commands(){return this.getCommands()}getCommands(e={}){return this.request(`${this.prefix}get_commands`,[e])}getLines({start:e,end:t,strictIndexing:i}={start:0,end:-1,strictIndexing:!0}){let r=typeof i>"u"?!0:i;return this.request(`${this.prefix}get_lines`,[e,t,r])}setLines(e,t,i=!1){let{start:r,end:o,strictIndexing:s}=t!=null?t:{};r=r!=null?r:0,o=o!=null?o:r+1;let a=s!=null?s:!0;return this[i?"notify":"request"](`${this.prefix}set_lines`,[r,o,a,typeof e=="string"?[e]:e])}setVirtualText(e,t,i,r={}){return this.client.isVim?Promise.resolve(-1):(this.notify(`${this.prefix}set_virtual_text`,[e,t,i,r]),Promise.resolve(e))}deleteExtMark(e,t){this.client.isVim||this.notify(`${this.prefix}del_extmark`,[e,t])}async getExtMarkById(e,t,i={}){return this.client.isVim?Promise.resolve([]):this.request(`${this.prefix}get_extmark_by_id`,[e,t,i])}async getExtMarks(e,t,i,r={}){return this.client.isVim?Promise.resolve([]):this.request(`${this.prefix}get_extmarks`,[e,t,i,r])}setExtMark(e,t,i,r={}){this.client.isVim||this.notify(`${this.prefix}set_extmark`,[e,t,i,r])}insert(e,t){return this.setLines(e,{start:t,end:t,strictIndexing:!0})}replace(e,t){let i=typeof e=="string"?[e]:e;return this.setLines(i,{start:t,end:t+i.length,strictIndexing:!1})}remove(e,t,i=!1){return this.setLines([],{start:e,end:t,strictIndexing:i})}append(e){return this.setLines(e,{start:-1,end:-1,strictIndexing:!1})}get name(){return this.request(`${this.prefix}get_name`,[])}setName(e){return this.request(`${this.prefix}set_name`,[e])}get valid(){return this.request(`${this.prefix}is_valid`,[])}mark(e){return this.request(`${this.prefix}get_mark`,[e])}getKeymap(e){return this.request(`${this.prefix}get_keymap`,[e])}setKeymap(e,t,i,r={}){this.client.call("coc#compat#buf_add_keymap",[this.id,e,t,i,r],!0)}get loaded(){return this.request(`${this.prefix}is_loaded`,[])}getOffset(e){return this.request(`${this.prefix}get_offset`,[e])}addHighlight({hlGroup:e,line:t,colStart:i,colEnd:r,srcId:o}){if(!e)throw new Error("hlGroup should not empty");let s=typeof r<"u"?r:-1,a=typeof i<"u"?i:-0,l=typeof o<"u"?o:-1,u=l==0?"request":"notify",c=this[u](`${this.prefix}add_highlight`,[l,e,t,a,s]);return u==="request"?c:Promise.resolve(null)}clearHighlight(e={}){let t={srcId:-1,lineStart:0,lineEnd:-1},{srcId:i,lineStart:r,lineEnd:o}=Object.assign({},t,e);return this.notify(`${this.prefix}clear_highlight`,[i,r,o])}highlightRanges(e,t,i){this.client.call("coc#highlight#ranges",[this.id,e,t,i],!0)}clearNamespace(e,t=0,i=-1){this.client.call("coc#highlight#clear_highlight",[this.id,e,t,i],!0)}placeSign(e){let t={lnum:e.lnum};typeof e.priority=="number"&&(t.priority=e.priority),this.client.call("sign_place",[e.id||0,e.group||"",e.name,this.id,t],!0)}unplaceSign(e){let t={buffer:this.id};e.id!=null&&(t.id=e.id),this.client.call("sign_unplace",[e.group||"",t],!0)}async getSigns(e){return(await this.client.call("sign_getplaced",[this.id,e||{}]))[0].signs}async getHighlights(e,t=0,i=-1){let r=[],o=await this.client.call("coc#highlight#get_highlights",[this.id,e,t,i]);for(let s of o)r.push({hlGroup:s[0],lnum:s[1],colStart:s[2],colEnd:s[3],id:s[4]});return r}updateHighlights(e,t,i={}){if(typeof i=="number"){this.client.logError("Bad option for buffer.updateHighlights()",new Error().stack);return}let r=typeof i.start=="number"?i.start:0,o=typeof i.end=="number"?i.end:-1,s=typeof i.changedtick=="number"?i.changedtick:null,a=typeof i.priority=="number"?i.priority:null;if(r==0&&o==-1){let l=t.map(u=>[u.hlGroup,u.lnum,u.colStart,u.colEnd,u.combine===!1?0:1,u.start_incl?1:0,u.end_incl?1:0]);this.client.call("coc#highlight#buffer_update",[this.id,e,l,a,s],!0);return}this.client.call("coc#highlight#update_highlights",[this.id,e,t,r,o,a,s],!0)}listen(e,t,i){this.client.attachBufferEvent(this,e,t),i&&i.push({dispose:()=>{this.client.detachBufferEvent(this,e,t)}})}};_m.Buffer=yM});var Fd=m(Rm=>{"use strict";Object.defineProperty(Rm,"__esModule",{value:!0});Rm.Window=void 0;var Mce=Rd(),KC=require("timers"),vM=class extends Mce.BaseApi{constructor(){super(...arguments);this.prefix="nvim_win_"}get id(){return this.data}get buffer(){return this.request(`${this.prefix}get_buf`,[])}get tabpage(){return this.request(`${this.prefix}get_tabpage`,[])}get cursor(){return this.request(`${this.prefix}get_cursor`,[])}setCursor(e,t=!1){return this[t?"notify":"request"](`${this.prefix}set_cursor`,[e])}get height(){return this.request(`${this.prefix}get_height`,[])}setHeight(e,t=!1){return this[t?"notify":"request"](`${this.prefix}set_height`,[e])}get width(){return this.request(`${this.prefix}get_width`,[])}setWidth(e,t=!1){return this[t?"notify":"request"](`${this.prefix}set_height`,[e])}get position(){return this.request(`${this.prefix}get_position`,[])}get row(){return this.request(`${this.prefix}get_position`,[]).then(e=>e[0])}get col(){return this.request(`${this.prefix}get_position`,[]).then(e=>e[1])}get valid(){return this.request(`${this.prefix}is_valid`,[])}get number(){return this.request(`${this.prefix}get_number`,[])}setConfig(e,t){return this[t?"notify":"request"](`${this.prefix}set_config`,[e])}getConfig(){return this.request(`${this.prefix}get_config`,[])}close(e,t){if(t){this.notify(`${this.prefix}close`,[e]);let i=0,r=setInterval(()=>{if(i==5)return(0,KC.clearInterval)(r);this.request(`${this.prefix}is_valid`,[]).then(o=>{o?this.notify(`${this.prefix}close`,[e]):(0,KC.clearInterval)(r)},()=>{(0,KC.clearInterval)(r)}),i++},50);return null}return this.request(`${this.prefix}close`,[e])}highlightRanges(e,t,i=10,r){if(r){this.client.call("coc#highlight#match_ranges",[this.id,0,t,e,i],!0);return}return this.client.call("coc#highlight#match_ranges",[this.id,0,t,e,i])}clearMatchGroup(e){this.client.call("coc#highlight#clear_match_group",[this.id,e],!0)}clearMatches(e){this.client.call("coc#highlight#clear_matches",[this.id,e],!0)}};Rm.Window=vM});var Id=m(Lm=>{"use strict";Object.defineProperty(Lm,"__esModule",{value:!0});Lm.Tabpage=void 0;var Nce=Rd(),wM=class extends Nce.BaseApi{constructor(){super(...arguments);this.prefix="nvim_tabpage_"}get windows(){return this.request(`${this.prefix}list_wins`,[])}get window(){return this.request(`${this.prefix}get_win`,[])}get valid(){return this.request(`${this.prefix}is_valid`,[])}get number(){return this.request(`${this.prefix}get_number`,[])}getOption(){throw new Error("Tabpage does not have `getOption`")}setOption(){throw new Error("Tabpage does not have `setOption`")}};Lm.Tabpage=wM});var DM=m(al=>{"use strict";Object.defineProperty(al,"__esModule",{value:!0});al.Metadata=al.ExtType=void 0;var Bce=Ld(),Hce=Fd(),qce=Id(),Yce;(function(n){n[n.Buffer=0]="Buffer",n[n.Window=1]="Window",n[n.Tabpage=2]="Tabpage"})(Yce=al.ExtType||(al.ExtType={}));al.Metadata=[{constructor:Bce.Buffer,name:"Buffer",prefix:"nvim_buf_"},{constructor:Hce.Window,name:"Window",prefix:"nvim_win_"},{constructor:qce.Tabpage,name:"Tabpage",prefix:"nvim_tabpage_"}]});var Wu=m(Ys=>{"use strict";var iS=Ys&&Ys.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Ys,"__esModule",{value:!0});Ys.createLogger=Ys.nullLogger=void 0;var zC=iS(require("fs")),Wce=iS(require("os")),VC=iS(require("path"));Ys.nullLogger={debug:()=>{},info:()=>{},warn:()=>{},error:()=>{},trace:()=>{}};function Zce(){let n=process.env.NODE_CLIENT_LOG_FILE;if(n)return n;let e=process.env.XDG_RUNTIME_DIR;return e?VC.default.join(e,"node-client.log"):VC.default.join(Wce.default.tmpdir(),`node-client-${process.pid}.log`)}var eS=Zce(),xM=process.env.NODE_CLIENT_LOG_LEVEL||"info",tS=process.getuid&&process.getuid()==0;if(!tS)try{zC.default.mkdirSync(VC.default.dirname(eS),{recursive:!0}),zC.default.writeFileSync(eS,"",{encoding:"utf8",mode:438})}catch{tS=!0}function CM(n){return n==null?n:Array.isArray(n)?n.map(e=>CM(e)):typeof n=="object"&&typeof n.prefix=="string"&&typeof n.data=="number"?"["+n.prefix+n.data+"]":n}function Jce(n){return n==null?String(n):typeof n=="object"?JSON.stringify(n,null,2):String(n)}function $ce(n){return`${n.getHours()}:${n.getMinutes()}:${n.getSeconds()}.${n.getMilliseconds()}`}var SM=class{constructor(e){this.name=e}get stream(){return tS?null:this._stream?this._stream:(this._stream=zC.default.createWriteStream(eS,{encoding:"utf8"}),this._stream)}getText(e,t,i){let r="";if(i.length){let o=CM(i);r=" "+o.map(s=>Jce(s))}return`${$ce(new Date)} ${e.toUpperCase()} [${this.name}] - ${t}${r} -`}debug(e,...t){xM!="debug"||this.stream==null||this.stream.write(this.getText("debug",e,t))}info(e,...t){this.stream!=null&&this.stream.write(this.getText("info",e,t))}warn(e,...t){this.stream!=null&&this.stream.write(this.getText("warn",e,t))}error(e,...t){this.stream!=null&&this.stream.write(this.getText("error",e,t))}trace(e,...t){xM!="trace"||this.stream==null||this.stream.write(this.getText("trace",e,t))}};function Xce(n){return new SM(n)}Ys.createLogger=Xce});var rS=m(nS=>{"use strict";Object.defineProperty(nS,"__esModule",{value:!0});var Uce=require("events"),Gce=Wu(),TM=process.env.NODE_CLIENT_LOG_LEVEL=="debug",jd=(0,Gce.createLogger)("transport"),kM=class extends Uce.EventEmitter{constructor(e){super();this.logger=e,this.pauseLevel=0,this.paused=new Map}debug(e,...t){!TM||jd.debug(e,...t)}info(e,...t){jd.info(e,...t)}debugMessage(e){if(!TM)return;let t=e[0];t==0?jd.debug("receive request:",e.slice(1)):t==1||(t==2?jd.debug("receive notification:",e.slice(1)):jd.debug("unknown message:",e))}pauseNotification(){this.pauseLevel=this.pauseLevel+1,this.paused.set(this.pauseLevel,[])}cancelNotification(){let{pauseLevel:e}=this;e>0&&(this.paused.delete(e),this.pauseLevel=e-1)}resumeNotification(e=!1){let{pauseLevel:t}=this;if(t==0)return e?null:Promise.resolve([[],null]);let i=Error().stack;this.pauseLevel=t-1;let r=this.paused.get(t);return this.paused.delete(t),r&&r.length?new Promise((o,s)=>{if(!e)return this.request("nvim_call_atomic",[r],(a,l)=>{if(a){let u=new Error(`call_atomic error: ${a[1]}`);return u.stack=i,s(u)}if(Array.isArray(l)&&l[1]!=null){let[u,c,h]=l[1],[d,g]=r[u],f=new Error(`call_atomic request error on "${d}": ${h}`);return f.stack=i,this.logger.error(`call_atomic request error ${c} on "${d}"`,g,h,i),s(f)}o(l)});this.notify("nvim_call_atomic",[r]),o(void 0)}):e?null:Promise.resolve([[],void 0])}};nS.default=kM});var _M=m(Un=>{"use strict";var Qce=Un&&Un.__createBinding||(Object.create?function(n,e,t,i){i===void 0&&(i=t);var r=Object.getOwnPropertyDescriptor(e,t);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(n,i,r)}:function(n,e,t,i){i===void 0&&(i=t),n[i]=e[t]}),Kce=Un&&Un.__setModuleDefault||(Object.create?function(n,e){Object.defineProperty(n,"default",{enumerable:!0,value:e})}:function(n,e){n.default=e}),zce=Un&&Un.__importStar||function(n){if(n&&n.__esModule)return n;var e={};if(n!=null)for(var t in n)t!=="default"&&Object.prototype.hasOwnProperty.call(n,t)&&Qce(e,n,t);return Kce(e,n),e},EM=Un&&Un.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Un,"__esModule",{value:!0});Un.NvimTransport=void 0;var Oo=zce(fM()),Vce=EM(mM()),ehe=DM(),the=EM(rS()),PM=class extends the.default{constructor(e){super(e);this.pending=new Map,this.nextRequestId=1,this.attached=!1;let t=this.setupCodec();this.encodeStream=Oo.createEncodeStream({codec:t}),this.decodeStream=Oo.createDecodeStream({codec:t}),this.decodeStream.on("data",i=>{this.parseMessage(i)}),this.decodeStream.on("end",()=>{this.detach(),this.emit("detach")})}parseMessage(e){let t=e[0];if(this.debugMessage(e),t===0)this.emit("request",e[2].toString(),e[3],this.createResponse(e[1]));else if(t===1){let i=e[1],r=this.pending.get(i);if(r){this.pending.delete(i);let o=e[2];o&&o.length!=2&&(o=[0,o instanceof Error?o.message:o]),r(o,e[3])}}else t===2?this.emit("notification",e[1].toString(),e[2]):console.error(`Invalid message type ${t}`)}setupCodec(){let e=Oo.createCodec();return ehe.Metadata.forEach(({constructor:t},i)=>{e.addExtPacker(i,t,r=>Oo.encode(r.data)),e.addExtUnpacker(i,r=>new t({transport:this,client:this.client,data:Oo.decode(r)}))}),this.codec=e,this.codec}attach(e,t,i){this.encodeStream=this.encodeStream.pipe(e);let r=new Vce.default;t.pipe(r).pipe(this.decodeStream),this.writer=e,this.reader=t,this.client=i,this.attached=!0}detach(){!this.attached||(this.attached=!1,this.encodeStream.unpipe(this.writer),this.reader.unpipe(this.decodeStream))}request(e,t,i){if(!this.attached)return;let r=this.nextRequestId;this.nextRequestId=this.nextRequestId+1;let o=Date.now();this.debug("request to nvim:",r,e,t),this.encodeStream.write(Oo.encode([0,r,e,t],{codec:this.codec}));let s=Error().stack,a=setTimeout(()=>{this.debug(`request to vim blocked more than 1s: ${e}`,t,s)},1e3);this.pending.set(r,(l,u)=>{clearTimeout(a),this.debug("response of nvim:",r,`${Date.now()-o}ms`,u,l),i(l,u)})}notify(e,t){if(!!this.attached){if(this.pauseLevel!=0){let i=this.paused.get(this.pauseLevel);if(i){i.push([e,t]);return}}this.debug("nvim notification:",e,t),this.encodeStream.write(Oo.encode([2,e,t],{codec:this.codec}))}}send(e){this.encodeStream.write(Oo.encode(e,{codec:this.codec}))}createResponse(e){let{encodeStream:t}=this,i=Date.now(),r=!1,o=setTimeout(()=>{this.debug("request to client cost more than 1s",e)},1e3);return{send:(s,a)=>{clearTimeout(o),!(r||!this.attached)&&(this.debug("response of client:",e,`${Date.now()-i}ms`,s,a==!0),r=!0,t.write(Oo.encode([1,e,a?s:null,a?null:s])))}}}};Un.NvimTransport=PM});var FM=m(Ad=>{"use strict";var RM=Ad&&Ad.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Ad,"__esModule",{value:!0});var ihe=RM(require("events")),nhe=RM(require("readline")),rhe=Wu(),Zu=(0,rhe.createLogger)("connection"),LM=class extends ihe.default{constructor(e,t){super();this.readable=e,this.writeable=t;let i=nhe.default.createInterface(this.readable);i.on("line",r=>{this.parseData(r)}),i.on("close",()=>{Zu.error("connection closed"),process.exit(0)})}parseData(e){if(e.length==0)return;let t;try{t=JSON.parse(e)}catch{console.error(`Invalid data from vim: ${e}`);return}let[i,r]=t;i>0?(Zu.debug("received request:",i,r),this.emit("request",i,r)):i==0?(Zu.debug("received notification:",r),this.emit("notification",r)):(Zu.debug("received response:",i,r),this.emit("response",i,r))}response(e,t){this.send([e,t||null])}notify(e,t){this.send([0,[e,t||null]])}send(e){Zu.debug("send to vim:",e);try{this.writeable.write(JSON.stringify(e)+` -`)}catch{Zu.error("Send error:",e)}}redraw(e){this.send(["redraw",e?"force":""])}command(e){this.send(["ex",e])}expr(e){this.send(["expr",e])}call(e,t,i){if(!i){this.send(["call",e,t]);return}this.send(["call",e,t,i])}dispose(){this.removeAllListeners()}};Ad.default=LM});var jM=m(oS=>{"use strict";Object.defineProperty(oS,"__esModule",{value:!0});var ohe=Wu(),IPe=(0,ohe.createLogger)("request"),she=process.env.COC_NVIM=="1"?"coc#api#call":"nvim#api#call",IM=class{constructor(e,t,i){this.connection=e,this.cb=t,this.id=i}request(e,t=[]){this.method=e,this.connection.call(she,[e.slice(5),t],this.id)}callback(e,t,i){let{method:r,cb:o}=this;if(t)return o([0,t.toString()]);switch(r){case"nvim_list_wins":case"nvim_tabpage_list_wins":return o(null,i.map(s=>e.createWindow(s)));case"nvim_tabpage_get_win":case"nvim_get_current_win":case"nvim_open_win":return o(null,e.createWindow(i));case"nvim_list_bufs":return o(null,i.map(s=>e.createBuffer(s)));case"nvim_win_get_buf":case"nvim_create_buf":case"nvim_get_current_buf":return o(null,e.createBuffer(i));case"nvim_list_tabpages":return o(null,i.map(s=>e.createTabpage(s)));case"nvim_get_current_tabpage":return o(null,e.createTabpage(i));default:return o(null,i)}}};oS.default=IM});var OM=m(Ju=>{"use strict";var sS=Ju&&Ju.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Ju,"__esModule",{value:!0});Ju.VimTransport=void 0;var ahe=sS(rS()),lhe=sS(FM()),uhe=sS(jM()),AM=class extends ahe.default{constructor(e){super(e);this.pending=new Map,this.nextRequestId=-1,this.attached=!1,this.errText="",this.outText="",this.notifyMethod=process.env.COC_NVIM=="1"?"coc#api#notify":"nvim#api#notify"}attach(e,t,i){let r=this.connection=new lhe.default(t,e);this.attached=!0,this.client=i,r.on("request",(o,s)=>{let[a,l]=s;this.emit("request",a,l,this.createResponse(o))}),r.on("notification",o=>{let[s,a]=o;this.emit("notification",s.toString(),a)}),r.on("response",(o,s)=>{let a=this.pending.get(o);if(a){this.pending.delete(o);let l=null,u=null;Array.isArray(s)?(l=s[0],u=s[1]):l=s,a.callback(this.client,l,u)}})}send(e){this.connection.send(e)}detach(){!this.attached||(this.attached=!1,this.connection.dispose())}request(e,t,i){if(!this.attached)return i([0,"transport disconnected"]);let r=this.nextRequestId;this.nextRequestId=this.nextRequestId-1;let o=Date.now();this.debug("request to vim:",r,e,t);let s=setTimeout(()=>{this.debug("request to vim cost more than 1s",e,t)},1e3),a=new uhe.default(this.connection,(l,u)=>{clearTimeout(s),this.debug("response from vim cost:",r,`${Date.now()-o}ms`),i(l,u)},r);this.pending.set(r,a),a.request(e,t)}notify(e,t){if(!this.attached)return;if(this.pauseLevel!=0){let r=this.paused.get(this.pauseLevel);if(r){r.push([e,t]);return}}let i=e.slice(5);if(i=="err_write"){this.errText=this.errText+t[0].toString();return}if(i=="out_write"){let r=t[0].toString()||"";if(!r.includes(` -`))this.outText=this.outText+r;else{let o=this.outText+t[0].toString();this.outText="",this.connection.call(this.notifyMethod,[i,[o]])}return}if(i=="err_writeln"){let r=this.errText+t[0].toString();this.errText="",this.connection.call(this.notifyMethod,[i,[r]]);return}this.connection.call(this.notifyMethod,[i,t])}createResponse(e){let t=!1,{connection:i}=this,r=Date.now(),o=setTimeout(()=>{this.debug("request to client cost more than 1s",e)},1e3);return{send:(s,a)=>{if(clearTimeout(o),t||!this.attached)return;t=!0;let l=null;a&&(l=typeof s=="string"?s:s.toString()),this.debug("response of client cost:",e,`${Date.now()-r}ms`),i.response(e,[l,a?null:s])}}}};Ju.VimTransport=AM});var NM=m(Fm=>{"use strict";Object.defineProperty(Fm,"__esModule",{value:!0});Fm.Neovim=void 0;var che=Rd(),hhe=Ld(),dhe=Id(),ghe=Fd(),fhe=process.env.VIM_NODE_RPC=="1",MM=class extends che.BaseApi{constructor(){super(...arguments);this.prefix="nvim_",this.Buffer=hhe.Buffer,this.Window=ghe.Window,this.Tabpage=dhe.Tabpage}getArgs(e){return e?Array.isArray(e)?e:[e]:[]}get apiInfo(){return this.request(`${this.prefix}get_api_info`)}get buffers(){return this.request(`${this.prefix}list_bufs`)}get buffer(){return this.request(`${this.prefix}get_current_buf`)}async setBuffer(e){await this.request(`${this.prefix}set_current_buf`,[e])}get chans(){return this.request(`${this.prefix}list_chans`)}getChanInfo(e){return this.request(`${this.prefix}get_chan_info`,[e])}createNamespace(e=""){return process.env.COC_NVIM=="1"?(e=e.startsWith("coc-")?e.slice(4):e,this.request(`${this.prefix}call_function`,["coc#highlight#create_namespace",[e]])):this.request(`${this.prefix}create_namespace`,[e])}get namespaces(){return this.request(`${this.prefix}get_namespaces`,[])}get commands(){return this.getCommands()}getCommands(e={}){return this.request(`${this.prefix}get_commands`,[e])}get tabpages(){return this.request(`${this.prefix}list_tabpages`)}get tabpage(){return this.request(`${this.prefix}get_current_tabpage`)}async setTabpage(e){await this.request(`${this.prefix}set_current_tabpage`,[e])}get windows(){return this.getWindows()}get window(){return this.request(`${this.prefix}get_current_win`)}getWindows(){return this.request(`${this.prefix}list_wins`)}async setWindow(e){await this.request(`${this.prefix}set_current_win`,[e])}get runtimePaths(){return this.request(`${this.prefix}list_runtime_paths`)}setDirectory(e){return this.request(`${this.prefix}set_current_dir`,[e])}get line(){return this.getLine()}createNewBuffer(e=!1,t=!1){return this.request(`${this.prefix}create_buf`,[e,t])}openFloatWindow(e,t,i){return this.request(`${this.prefix}open_win`,[e,t,i])}getLine(){return this.request(`${this.prefix}get_current_line`)}setLine(e){return this.request(`${this.prefix}set_current_line`,[e])}getKeymap(e){return this.request(`${this.prefix}get_keymap`,[e])}get mode(){return this.request(`${this.prefix}get_mode`)}get colorMap(){return this.request(`${this.prefix}get_color_map`)}getColorByName(e){return this.request(`${this.prefix}get_color_by_name`,[e])}getHighlight(e,t=!0){let i=typeof e=="string"?"by_name":"by_id";return this.request(`${this.prefix}get_hl_${i}`,[e,t])}getHighlightByName(e,t=!0){return this.request(`${this.prefix}get_hl_by_name`,[e,t])}getHighlightById(e,t=!0){return this.request(`${this.prefix}get_hl_by_id`,[e,t])}deleteCurrentLine(){return this.request(`${this.prefix}del_current_line`)}eval(e){return this.request(`${this.prefix}eval`,[e])}lua(e,t=[]){return this.request(`${this.prefix}exec_lua`,[e,t])}executeLua(e,t=[]){let i=this.getArgs(t);return this.lua(e,i)}callDictFunction(e,t,i=[]){let r=this.getArgs(i);return this.request(`${this.prefix}call_dict_function`,[e,t,r])}call(e,t=[],i){let r=this.getArgs(t);return i?(this.notify(`${this.prefix}call_function`,[e,r]),null):this.request(`${this.prefix}call_function`,[e,r])}callTimer(e,t=[],i){let r=this.getArgs(t);return i?(this.notify(`${this.prefix}call_function`,["coc#util#timer",[e,r]]),null):fhe?(this.notify(`${this.prefix}call_function`,["coc#util#timer",[e,r]]),new Promise(o=>{setTimeout(()=>{o(null)},20)})):this.request(`${this.prefix}call_function`,["coc#util#timer",[e,r]])}callAsync(e,t=[]){let i=this.getArgs(t);return this.client.sendAsyncRequest(e,i)}callFunction(e,t=[]){return this.call(e,t)}callAtomic(e){return this.request(`${this.prefix}call_atomic`,[e])}command(e,t){return t?(this.notify(`${this.prefix}command`,[e]),null):this.request(`${this.prefix}command`,[e])}commandOutput(e){return this.request(`${this.prefix}command_output`,[e])}exec(e,t=!1){return this.request(`${this.prefix}exec`,[e,t])}getVvar(e){return this.request(`${this.prefix}get_vvar`,[e])}feedKeys(e,t,i){return this.request(`${this.prefix}feedkeys`,[e,t,i])}input(e){return this.request(`${this.prefix}input`,[e])}parseExpression(e,t,i){return this.request(`${this.prefix}parse_expression`,[e,t,i])}getProc(e){return this.request(`${this.prefix}get_proc`,[e])}getProcChildren(e){return this.request(`${this.prefix}get_proc_children`,[e])}replaceTermcodes(e,t,i,r){return this.request(`${this.prefix}replace_termcodes`,[e,t,i,r])}strWidth(e){return this.request(`${this.prefix}strwidth`,[e])}outWrite(e){this.notify(`${this.prefix}out_write`,[e])}outWriteLine(e){this.outWrite(`${e} -`)}errWrite(e){this.notify(`${this.prefix}err_write`,[e])}errWriteLine(e){this.notify(`${this.prefix}err_writeln`,[e])}get uis(){return this.request(`${this.prefix}list_uis`)}uiAttach(e,t,i){return this.request(`${this.prefix}ui_attach`,[e,t,i])}uiDetach(){return this.request(`${this.prefix}ui_detach`,[])}uiTryResize(e,t){return this.request(`${this.prefix}ui_try_resize`,[e,t])}uiSetOption(e,t){return this.request(`${this.prefix}ui_set_option`,[e,t])}subscribe(e){return this.request(`${this.prefix}subscribe`,[e])}unsubscribe(e){return this.request(`${this.prefix}unsubscribe`,[e])}setClientInfo(e,t,i,r,o){this.notify(`${this.prefix}set_client_info`,[e,t,i,r,o])}async quit(){this.command("qa!",!0),this.transport&&this.transport.detach()}};Fm.Neovim=MM});var jm=m($u=>{"use strict";Object.defineProperty($u,"__esModule",{value:!0});$u.NeovimClient=$u.AsyncResponse=void 0;var phe=_M(),mhe=OM(),bhe=NM(),yhe=Ld(),vhe=Fd(),whe=Id(),Dhe=Wu(),BM=(0,Dhe.createLogger)("client"),Im=process.env.VIM_NODE_RPC=="1",aS=class{constructor(e,t){this.requestId=e,this.cb=t,this.finished=!1}finish(e,t){if(!this.finished){if(this.finished=!0,e){this.cb(new Error(e));return}this.cb(null,t)}}};$u.AsyncResponse=aS;var HM=class extends bhe.Neovim{constructor(e){super({});this.logger=e,this.requestId=1,this.responses=new Map,this.attachedBuffers=new Map,this.isVim=Im,Object.defineProperty(this,"client",{value:this});let t=Im?new mhe.VimTransport(e):new phe.NvimTransport(e);this.setTransport(t),this.transportAttached=!1,this.handleRequest=this.handleRequest.bind(this),this.handleNotification=this.handleNotification.bind(this)}echoError(e){let t=process.env.COC_NVIM=="1"?"[coc.nvim] ":"";e instanceof Error?(this.errWriteLine(t+e.message+" use :CocOpenLog for details"),this.logError(e.message||"Unknown error",e.stack)):(this.errWriteLine(t+e),this.logError(e.toString(),Error().stack))}logError(e,...t){!this.logger||this.logger.error(e,...t)}createBuffer(e){return new yhe.Buffer({transport:this.transport,data:e,client:this})}createWindow(e){return new vhe.Window({transport:this.transport,data:e,client:this})}createTabpage(e){return new whe.Tabpage({transport:this.transport,data:e,client:this})}send(e){this.transport.send(e)}redrawVim(e){!Im||this.transport.notify("nvim_command",["redraw"+(e?"!":"")])}attach({reader:e,writer:t},i=!0){this.transport.attach(t,e,this),this.transportAttached=!0,this.setupTransport(i)}detach(){this.transport.detach(),this.transportAttached=!1}get isApiReady(){return this.transportAttached&&typeof this._channelId<"u"}get channelId(){return this._isReady.then(()=>this._channelId)}isAttached(e){return this.attachedBuffers.has(e)}handleRequest(e,t,i){this.emit("request",e,t,i)}sendAsyncRequest(e,t){let i=this.requestId;return this.requestId=i+1,this.notify("nvim_call_function",["coc#rpc#async_request",[i,e,t||[]]]),new Promise((r,o)=>{let s=new aS(i,(a,l)=>{if(a)return o(a);r(l)});this.responses.set(i,s)})}emitNotification(e,t){if(e.endsWith("_event")){if(e.startsWith("nvim_buf_")){let i=e.replace(/nvim_buf_(.*)_event/,"$1"),{id:r}=t[0];if(!this.attachedBuffers.has(r))return;(this.attachedBuffers.get(r).get(i)||[]).forEach(a=>a(...t)),i==="detach"&&this.attachedBuffers.delete(r);return}if(e.startsWith("nvim_async_request")){let[i,r,o]=t;this.handleRequest(r,o,{send:(s,a)=>{this.notify("nvim_call_function",["coc#rpc#async_response",[i,s,a]])}});return}if(e.startsWith("nvim_async_response")){let[i,r,o]=t,s=this.responses.get(i);if(!s){console.error(`Response not found for request ${i}`);return}this.responses.delete(i),s.finish(r,o);return}if(e==="nvim_error_event"){this.logger.error("Error event from nvim:",t[0],t[1]);return}this.logger.debug(`Unhandled event: ${e}`,t)}else this.emit("notification",e,t)}handleNotification(e,t){this.emitNotification(e,t)}setupTransport(e=!0){if(!this.transportAttached)throw new Error("Not attached to input/output");this.transport.on("request",this.handleRequest),this.transport.on("notification",this.handleNotification),this.transport.on("detach",()=>{this.emit("disconnect"),this.transport.removeAllListeners("request"),this.transport.removeAllListeners("notification"),this.transport.removeAllListeners("detach")}),e?this._isReady=this.generateApi():(this._channelId=0,this._isReady=Promise.resolve(!0))}requestApi(){return new Promise((e,t)=>{this.transport.request("nvim_get_api_info",[],(i,r)=>{i?t(new Error(Array.isArray(i)?i[1]:i.message||i.toString())):e(r)})})}async generateApi(){let e;try{e=await this.requestApi()}catch(t){console.error("Could not get vim api results"),BM.error(t)}if(e)try{let[t,i]=e;return this.functions=i.functions.map(r=>r.name),this._channelId=t,!0}catch(t){return BM.error(t.stack),null}return null}attachBufferEvent(e,t,i){let r=this.attachedBuffers.get(e.id)||new Map,o=r.get(t)||[];o.includes(i)||(o.push(i),r.set(t,o),this.attachedBuffers.set(e.id,r))}detachBufferEvent(e,t,i){let r=this.attachedBuffers.get(e.id);if(!r||!r.has(t))return;let o=r.get(t).filter(s=>s!==i);r.set(t,o)}pauseNotification(){let e=Error().stack;this.transport.pauseLevel!=0&&this.logError("Nested nvim.pauseNotification() detected, please avoid it:",e),this.transport.pauseNotification(),process.nextTick(()=>{this.transport.pauseLevel>0&&this.logError("resumeNotification not called within same tick:",e)})}resumeNotification(e,t){return Im&&e&&this.transport.notify("nvim_command",["redraw"]),t?(this.transport.resumeNotification(!0),Promise.resolve(null)):this.transport.resumeNotification()}hasFunction(e){return this.functions?this.functions.includes(e):!0}};$u.NeovimClient=HM});var qM=m(Am=>{"use strict";Object.defineProperty(Am,"__esModule",{value:!0});Am.attach=void 0;var xhe=require("net"),Che=jm(),She=Wu();function The({reader:n,writer:e,proc:t,socket:i},r=null,o=!0){let s,a,l;if(r||(r=She.nullLogger),i){let u=(0,xhe.createConnection)(i);s=u,a=u,u.once("close",()=>{l.detach()})}else n&&e?(s=e,a=n):t&&(s=t.stdin,a=t.stdout,t.once("disconnect",()=>{l.detach()}));if(s.on("error",u=>{u.code=="EPIPE"&&l.detach()}),s&&a)return l=new Che.NeovimClient(r),l.attach({writer:s,reader:a},o),l;throw new Error("Invalid arguments, could not attach")}Am.attach=The});var YM=m(Gn=>{"use strict";Object.defineProperty(Gn,"__esModule",{value:!0});Gn.Tabpage=Gn.Window=Gn.Buffer=Gn.NeovimClient=Gn.Neovim=void 0;var khe=jm();Object.defineProperty(Gn,"Neovim",{enumerable:!0,get:function(){return khe.NeovimClient}});var Ehe=jm();Object.defineProperty(Gn,"NeovimClient",{enumerable:!0,get:function(){return Ehe.NeovimClient}});var Phe=Ld();Object.defineProperty(Gn,"Buffer",{enumerable:!0,get:function(){return Phe.Buffer}});var _he=Fd();Object.defineProperty(Gn,"Window",{enumerable:!0,get:function(){return _he.Window}});var Rhe=Id();Object.defineProperty(Gn,"Tabpage",{enumerable:!0,get:function(){return Rhe.Tabpage}})});var WM=m(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});an.Window=an.Tabpage=an.Buffer=an.NeovimClient=an.Neovim=an.attach=void 0;var Lhe=qM();Object.defineProperty(an,"attach",{enumerable:!0,get:function(){return Lhe.attach}});var Od=YM();Object.defineProperty(an,"Neovim",{enumerable:!0,get:function(){return Od.Neovim}});Object.defineProperty(an,"NeovimClient",{enumerable:!0,get:function(){return Od.NeovimClient}});Object.defineProperty(an,"Buffer",{enumerable:!0,get:function(){return Od.Buffer}});Object.defineProperty(an,"Tabpage",{enumerable:!0,get:function(){return Od.Tabpage}});Object.defineProperty(an,"Window",{enumerable:!0,get:function(){return Od.Window}})});var Mo=m(cS=>{"use strict";Object.defineProperty(cS,"__esModule",{value:!0});var lS;function uS(){if(lS===void 0)throw new Error("No runtime abstraction layer installed");return lS}(function(n){function e(t){if(t===void 0)throw new Error("No runtime abstraction layer provided");lS=t}n.install=e})(uS||(uS={}));cS.default=uS});var hS=m(Md=>{"use strict";Object.defineProperty(Md,"__esModule",{value:!0});Md.Disposable=void 0;var Fhe;(function(n){function e(t){return{dispose:t}}n.create=e})(Fhe=Md.Disposable||(Md.Disposable={}))});var JM=m(Om=>{"use strict";Object.defineProperty(Om,"__esModule",{value:!0});Om.AbstractMessageBuffer=void 0;var Ihe=13,jhe=10,Ahe=`\r -`,ZM=class{constructor(e="utf-8"){this._encoding=e,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(e){let t=typeof e=="string"?this.fromString(e,this._encoding):e;this._chunks.push(t),this._totalLength+=t.byteLength}tryReadHeaders(){if(this._chunks.length===0)return;let e=0,t=0,i=0,r=0;e:for(;tthis._totalLength)throw new Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===e){let o=this._chunks[0];return this._chunks.shift(),this._totalLength-=e,this.asNative(o)}if(this._chunks[0].byteLength>e){let o=this._chunks[0],s=this.asNative(o,e);return this._chunks[0]=o.slice(e),this._totalLength-=e,s}let t=this.allocNative(e),i=0,r=0;for(;e>0;){let o=this._chunks[r];if(o.byteLength>e){let s=o.slice(0,e);t.set(s,i),i+=e,this._chunks[r]=o.slice(e),this._totalLength-=e,e-=e}else t.set(o,i),i+=o.byteLength,this._chunks.shift(),this._totalLength-=o.byteLength,e-=o.byteLength}return t}};Om.AbstractMessageBuffer=ZM});var QM=m(gS=>{"use strict";Object.defineProperty(gS,"__esModule",{value:!0});var Ohe=Mo(),$M=require("util"),ll=hS(),Mhe=JM(),Nd=class extends Mhe.AbstractMessageBuffer{constructor(e="utf-8"){super(e)}emptyBuffer(){return Nd.emptyBuffer}fromString(e,t){return Buffer.from(e,t)}toString(e,t){return e instanceof Buffer?e.toString(t):new $M.TextDecoder(t).decode(e)}asNative(e,t){return t===void 0?e instanceof Buffer?e:Buffer.from(e):e instanceof Buffer?e.slice(0,t):Buffer.from(e,0,t)}allocNative(e){return Buffer.allocUnsafe(e)}};Nd.emptyBuffer=Buffer.allocUnsafe(0);var XM=class{constructor(e){this.stream=e}onClose(e){return this.stream.on("close",e),ll.Disposable.create(()=>this.stream.off("close",e))}onError(e){return this.stream.on("error",e),ll.Disposable.create(()=>this.stream.off("error",e))}onEnd(e){return this.stream.on("end",e),ll.Disposable.create(()=>this.stream.off("end",e))}onData(e){return this.stream.on("data",e),ll.Disposable.create(()=>this.stream.off("data",e))}},UM=class{constructor(e){this.stream=e}onClose(e){return this.stream.on("close",e),ll.Disposable.create(()=>this.stream.off("close",e))}onError(e){return this.stream.on("error",e),ll.Disposable.create(()=>this.stream.off("error",e))}onEnd(e){return this.stream.on("end",e),ll.Disposable.create(()=>this.stream.off("end",e))}write(e,t){return new Promise((i,r)=>{let o=s=>{s==null?i():r(s)};typeof e=="string"?this.stream.write(e,t,o):this.stream.write(e,o)})}end(){this.stream.end()}},GM=Object.freeze({messageBuffer:Object.freeze({create:n=>new Nd(n)}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:(n,e)=>{try{return Promise.resolve(Buffer.from(JSON.stringify(n,void 0,0),e.charset))}catch(t){return Promise.reject(t)}}}),decoder:Object.freeze({name:"application/json",decode:(n,e)=>{try{return n instanceof Buffer?Promise.resolve(JSON.parse(n.toString(e.charset))):Promise.resolve(JSON.parse(new $M.TextDecoder(e.charset).decode(n)))}catch(t){return Promise.reject(t)}}})}),stream:Object.freeze({asReadableStream:n=>new XM(n),asWritableStream:n=>new UM(n)}),console,timer:Object.freeze({setTimeout(n,e,...t){return setTimeout(n,e,...t)},clearTimeout(n){clearTimeout(n)},setImmediate(n,...e){return setImmediate(n,...e)},clearImmediate(n){clearImmediate(n)}})});function dS(){return GM}(function(n){function e(){Ohe.default.install(GM)}n.install=e})(dS||(dS={}));gS.default=dS});var Xu=m(ki=>{"use strict";Object.defineProperty(ki,"__esModule",{value:!0});ki.stringArray=ki.array=ki.func=ki.error=ki.number=ki.string=ki.boolean=void 0;function Nhe(n){return n===!0||n===!1}ki.boolean=Nhe;function KM(n){return typeof n=="string"||n instanceof String}ki.string=KM;function Bhe(n){return typeof n=="number"||n instanceof Number}ki.number=Bhe;function Hhe(n){return n instanceof Error}ki.error=Hhe;function qhe(n){return typeof n=="function"}ki.func=qhe;function zM(n){return Array.isArray(n)}ki.array=zM;function Yhe(n){return zM(n)&&n.every(e=>KM(e))}ki.stringArray=Yhe});var fS=m(ne=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0});ne.isResponseMessage=ne.isNotificationMessage=ne.isRequestMessage=ne.NotificationType9=ne.NotificationType8=ne.NotificationType7=ne.NotificationType6=ne.NotificationType5=ne.NotificationType4=ne.NotificationType3=ne.NotificationType2=ne.NotificationType1=ne.NotificationType0=ne.NotificationType=ne.RequestType9=ne.RequestType8=ne.RequestType7=ne.RequestType6=ne.RequestType5=ne.RequestType4=ne.RequestType3=ne.RequestType2=ne.RequestType1=ne.RequestType=ne.RequestType0=ne.AbstractMessageSignature=ne.ParameterStructures=ne.ResponseError=ne.ErrorCodes=void 0;var ul=Xu(),VM;(function(n){n.ParseError=-32700,n.InvalidRequest=-32600,n.MethodNotFound=-32601,n.InvalidParams=-32602,n.InternalError=-32603,n.jsonrpcReservedErrorRangeStart=-32099,n.serverErrorStart=n.jsonrpcReservedErrorRangeStart,n.MessageWriteError=-32099,n.MessageReadError=-32098,n.ServerNotInitialized=-32002,n.UnknownErrorCode=-32001,n.jsonrpcReservedErrorRangeEnd=-32e3,n.serverErrorEnd=n.jsonrpcReservedErrorRangeEnd})(VM=ne.ErrorCodes||(ne.ErrorCodes={}));var Mm=class extends Error{constructor(e,t,i){super(t);this.code=ul.number(e)?e:VM.UnknownErrorCode,this.data=i,Object.setPrototypeOf(this,Mm.prototype)}toJson(){return{code:this.code,message:this.message,data:this.data}}};ne.ResponseError=Mm;var mi=class{constructor(e){this.kind=e}static is(e){return e===mi.auto||e===mi.byName||e===mi.byPosition}toString(){return this.kind}};ne.ParameterStructures=mi;mi.auto=new mi("auto");mi.byPosition=new mi("byPosition");mi.byName=new mi("byName");var xt=class{constructor(e,t){this.method=e,this.numberOfParams=t}get parameterStructures(){return mi.auto}};ne.AbstractMessageSignature=xt;var eN=class extends xt{constructor(e){super(e,0)}};ne.RequestType0=eN;var tN=class extends xt{constructor(e,t=mi.auto){super(e,1);this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}};ne.RequestType=tN;var iN=class extends xt{constructor(e,t=mi.auto){super(e,1);this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}};ne.RequestType1=iN;var nN=class extends xt{constructor(e){super(e,2)}};ne.RequestType2=nN;var rN=class extends xt{constructor(e){super(e,3)}};ne.RequestType3=rN;var oN=class extends xt{constructor(e){super(e,4)}};ne.RequestType4=oN;var sN=class extends xt{constructor(e){super(e,5)}};ne.RequestType5=sN;var aN=class extends xt{constructor(e){super(e,6)}};ne.RequestType6=aN;var lN=class extends xt{constructor(e){super(e,7)}};ne.RequestType7=lN;var uN=class extends xt{constructor(e){super(e,8)}};ne.RequestType8=uN;var cN=class extends xt{constructor(e){super(e,9)}};ne.RequestType9=cN;var hN=class extends xt{constructor(e,t=mi.auto){super(e,1);this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}};ne.NotificationType=hN;var dN=class extends xt{constructor(e){super(e,0)}};ne.NotificationType0=dN;var gN=class extends xt{constructor(e,t=mi.auto){super(e,1);this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}};ne.NotificationType1=gN;var fN=class extends xt{constructor(e){super(e,2)}};ne.NotificationType2=fN;var pN=class extends xt{constructor(e){super(e,3)}};ne.NotificationType3=pN;var mN=class extends xt{constructor(e){super(e,4)}};ne.NotificationType4=mN;var bN=class extends xt{constructor(e){super(e,5)}};ne.NotificationType5=bN;var yN=class extends xt{constructor(e){super(e,6)}};ne.NotificationType6=yN;var vN=class extends xt{constructor(e){super(e,7)}};ne.NotificationType7=vN;var wN=class extends xt{constructor(e){super(e,8)}};ne.NotificationType8=wN;var DN=class extends xt{constructor(e){super(e,9)}};ne.NotificationType9=DN;function Whe(n){let e=n;return e&&ul.string(e.method)&&(ul.string(e.id)||ul.number(e.id))}ne.isRequestMessage=Whe;function Zhe(n){let e=n;return e&&ul.string(e.method)&&n.id===void 0}ne.isNotificationMessage=Zhe;function Jhe(n){let e=n;return e&&(e.result!==void 0||!!e.error)&&(ul.string(e.id)||ul.number(e.id)||e.id===null)}ne.isResponseMessage=Jhe});var Uu=m(cl=>{"use strict";Object.defineProperty(cl,"__esModule",{value:!0});cl.Emitter=cl.Event=void 0;var $he=Mo(),Xhe;(function(n){let e={dispose(){}};n.None=function(){return e}})(Xhe=cl.Event||(cl.Event={}));var xN=class{add(e,t=null,i){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(t),Array.isArray(i)&&i.push({dispose:()=>this.remove(e,t)})}remove(e,t=null){if(!this._callbacks)return;let i=!1;for(let r=0,o=this._callbacks.length;r{this._callbacks||(this._callbacks=new xN),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(e,t);let r={dispose:()=>{!this._callbacks||(this._callbacks.remove(e,t),r.dispose=Bd._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(i)&&i.push(r),r}),this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}};cl.Emitter=Bd;Bd._noop=function(){}});var yS=m(hl=>{"use strict";Object.defineProperty(hl,"__esModule",{value:!0});hl.CancellationTokenSource=hl.CancellationToken=void 0;var CN=Mo(),Uhe=Xu(),pS=Uu(),mS;(function(n){n.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:pS.Event.None}),n.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:pS.Event.None});function e(t){let i=t;return i&&(i===n.None||i===n.Cancelled||Uhe.boolean(i.isCancellationRequested)&&!!i.onCancellationRequested)}n.is=e})(mS=hl.CancellationToken||(hl.CancellationToken={}));var Ghe=Object.freeze(function(n,e){let t=CN.default().timer.setTimeout(n.bind(e),0);return{dispose(){CN.default().timer.clearTimeout(t)}}}),bS=class{constructor(){this._isCancelled=!1}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?Ghe:(this._emitter||(this._emitter=new pS.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},SN=class{get token(){return this._token||(this._token=new bS),this._token}cancel(){this._token?this._token.cancel():this._token=mS.Cancelled}dispose(){this._token?this._token instanceof bS&&this._token.dispose():this._token=mS.None}};hl.CancellationTokenSource=SN});var kN=m(No=>{"use strict";Object.defineProperty(No,"__esModule",{value:!0});No.ReadableStreamMessageReader=No.AbstractMessageReader=No.MessageReader=void 0;var Nm=Mo(),Gu=Xu(),vS=Uu(),Qhe;(function(n){function e(t){let i=t;return i&&Gu.func(i.listen)&&Gu.func(i.dispose)&&Gu.func(i.onError)&&Gu.func(i.onClose)&&Gu.func(i.onPartialMessage)}n.is=e})(Qhe=No.MessageReader||(No.MessageReader={}));var DS=class{constructor(){this.errorEmitter=new vS.Emitter,this.closeEmitter=new vS.Emitter,this.partialMessageEmitter=new vS.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e){this.errorEmitter.fire(this.asError(e))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(e){this.partialMessageEmitter.fire(e)}asError(e){return e instanceof Error?e:new Error(`Reader received error. Reason: ${Gu.string(e.message)?e.message:"unknown"}`)}};No.AbstractMessageReader=DS;var wS;(function(n){function e(t){var i;let r,o,s,a=new Map,l,u=new Map;if(t===void 0||typeof t=="string")r=t!=null?t:"utf-8";else{if(r=(i=t.charset)!==null&&i!==void 0?i:"utf-8",t.contentDecoder!==void 0&&(s=t.contentDecoder,a.set(s.name,s)),t.contentDecoders!==void 0)for(let c of t.contentDecoders)a.set(c.name,c);if(t.contentTypeDecoder!==void 0&&(l=t.contentTypeDecoder,u.set(l.name,l)),t.contentTypeDecoders!==void 0)for(let c of t.contentTypeDecoders)u.set(c.name,c)}return l===void 0&&(l=Nm.default().applicationJson.decoder,u.set(l.name,l)),{charset:r,contentDecoder:s,contentDecoders:a,contentTypeDecoder:l,contentTypeDecoders:u}}n.fromOptions=e})(wS||(wS={}));var TN=class extends DS{constructor(e,t){super();this.readable=e,this.options=wS.fromOptions(t),this.buffer=Nm.default().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0}set partialMessageTimeout(e){this._partialMessageTimeout=e}get partialMessageTimeout(){return this._partialMessageTimeout}listen(e){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=e;let t=this.readable.onData(i=>{this.onData(i)});return this.readable.onError(i=>this.fireError(i)),this.readable.onClose(()=>this.fireClose()),t}onData(e){for(this.buffer.append(e);;){if(this.nextMessageLength===-1){let r=this.buffer.tryReadHeaders();if(!r)return;let o=r.get("Content-Length");if(!o)throw new Error("Header must provide a Content-Length property.");let s=parseInt(o);if(isNaN(s))throw new Error("Content-Length value must be a number.");this.nextMessageLength=s}let t=this.buffer.tryReadBody(this.nextMessageLength);if(t===void 0){this.setPartialMessageTimer();return}this.clearPartialMessageTimer(),this.nextMessageLength=-1;let i;this.options.contentDecoder!==void 0?i=this.options.contentDecoder.decode(t):i=Promise.resolve(t),i.then(r=>{this.options.contentTypeDecoder.decode(r,this.options).then(o=>{this.callback(o)},o=>{this.fireError(o)})},r=>{this.fireError(r)})}}clearPartialMessageTimer(){this.partialMessageTimer&&(Nm.default().timer.clearTimeout(this.partialMessageTimer),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),!(this._partialMessageTimeout<=0)&&(this.partialMessageTimer=Nm.default().timer.setTimeout((e,t)=>{this.partialMessageTimer=void 0,e===this.messageToken&&(this.firePartialMessage({messageToken:e,waitingTime:t}),this.setPartialMessageTimer())},this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}};No.ReadableStreamMessageReader=TN});var PN=m(Bm=>{"use strict";Object.defineProperty(Bm,"__esModule",{value:!0});Bm.Semaphore=void 0;var Khe=Mo(),EN=class{constructor(e=1){if(e<=0)throw new Error("Capacity must be greater than 0");this._capacity=e,this._active=0,this._waiting=[]}lock(e){return new Promise((t,i)=>{this._waiting.push({thunk:e,resolve:t,reject:i}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length===0||this._active===this._capacity||Khe.default().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;let e=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("To many thunks active");try{let t=e.thunk();t instanceof Promise?t.then(i=>{this._active--,e.resolve(i),this.runNext()},i=>{this._active--,e.reject(i),this.runNext()}):(this._active--,e.resolve(t),this.runNext())}catch(t){this._active--,e.reject(t),this.runNext()}}};Bm.Semaphore=EN});var IN=m(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});Bo.WriteableStreamMessageWriter=Bo.AbstractMessageWriter=Bo.MessageWriter=void 0;var _N=Mo(),Hd=Xu(),zhe=PN(),RN=Uu(),Vhe="Content-Length: ",LN=`\r -`,ede;(function(n){function e(t){let i=t;return i&&Hd.func(i.dispose)&&Hd.func(i.onClose)&&Hd.func(i.onError)&&Hd.func(i.write)}n.is=e})(ede=Bo.MessageWriter||(Bo.MessageWriter={}));var CS=class{constructor(){this.errorEmitter=new RN.Emitter,this.closeEmitter=new RN.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e,t,i){this.errorEmitter.fire([this.asError(e),t,i])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}asError(e){return e instanceof Error?e:new Error(`Writer received error. Reason: ${Hd.string(e.message)?e.message:"unknown"}`)}};Bo.AbstractMessageWriter=CS;var xS;(function(n){function e(t){var i,r;return t===void 0||typeof t=="string"?{charset:t!=null?t:"utf-8",contentTypeEncoder:_N.default().applicationJson.encoder}:{charset:(i=t.charset)!==null&&i!==void 0?i:"utf-8",contentEncoder:t.contentEncoder,contentTypeEncoder:(r=t.contentTypeEncoder)!==null&&r!==void 0?r:_N.default().applicationJson.encoder}}n.fromOptions=e})(xS||(xS={}));var FN=class extends CS{constructor(e,t){super();this.writable=e,this.options=xS.fromOptions(t),this.errorCount=0,this.writeSemaphore=new zhe.Semaphore(1),this.writable.onError(i=>this.fireError(i)),this.writable.onClose(()=>this.fireClose())}async write(e){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(e,this.options).then(i=>this.options.contentEncoder!==void 0?this.options.contentEncoder.encode(i):i).then(i=>{let r=[];return r.push(Vhe,i.byteLength.toString(),LN),r.push(LN),this.doWrite(e,r,i)},i=>{throw this.fireError(i),i}))}async doWrite(e,t,i){try{return await this.writable.write(t.join(""),"ascii"),this.writable.write(i)}catch(r){return this.handleError(r,e),Promise.reject(r)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){this.writable.end()}};Bo.WriteableStreamMessageWriter=FN});var AN=m(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.LRUCache=Ho.LinkedMap=Ho.Touch=void 0;var Ji;(function(n){n.None=0,n.First=1,n.AsOld=n.First,n.Last=2,n.AsNew=n.Last})(Ji=Ho.Touch||(Ho.Touch={}));var SS=class{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(e=this._head)===null||e===void 0?void 0:e.value}get last(){var e;return(e=this._tail)===null||e===void 0?void 0:e.value}has(e){return this._map.has(e)}get(e,t=Ji.None){let i=this._map.get(e);if(!!i)return t!==Ji.None&&this.touch(i,t),i.value}set(e,t,i=Ji.None){let r=this._map.get(e);if(r)r.value=t,i!==Ji.None&&this.touch(r,i);else{switch(r={key:e,value:t,next:void 0,previous:void 0},i){case Ji.None:this.addItemLast(r);break;case Ji.First:this.addItemFirst(r);break;case Ji.Last:this.addItemLast(r);break;default:this.addItemLast(r);break}this._map.set(e,r),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){let 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");let e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){let i=this._state,r=this._head;for(;r;){if(t?e.bind(t)(r.value,r.key,this):e(r.value,r.key,this),this._state!==i)throw new Error("LinkedMap got modified during iteration.");r=r.next}}keys(){let e=this,t=this._state,i=this._head,r={[Symbol.iterator](){return r},next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){let o={value:i.key,done:!1};return i=i.next,o}else return{value:void 0,done:!0}}};return r}values(){let e=this,t=this._state,i=this._head,r={[Symbol.iterator](){return r},next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){let o={value:i.value,done:!1};return i=i.next,o}else return{value:void 0,done:!0}}};return r}entries(){let e=this,t=this._state,i=this._head,r={[Symbol.iterator](){return r},next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){let o={value:[i.key,i.value],done:!1};return i=i.next,o}else return{value:void 0,done:!0}}};return r}[Symbol.iterator](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let t=this._head,i=this.size;for(;t&&i>e;)this._map.delete(t.key),t=t.next,i--;this._head=t,this._size=i,t&&(t.previous=void 0),this._state++}addItemFirst(e){if(!this._head&&!this._tail)this._tail=e;else if(this._head)e.next=this._head,this._head.previous=e;else throw new Error("Invalid list");this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(this._tail)e.previous=this._tail,this._tail.next=e;else throw new Error("Invalid list");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{let t=e.next,i=e.previous;if(!t||!i)throw new Error("Invalid list");t.previous=i,i.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(!(t!==Ji.First&&t!==Ji.Last)){if(t===Ji.First){if(e===this._head)return;let i=e.next,r=e.previous;e===this._tail?(r.next=void 0,this._tail=r):(i.previous=r,r.next=i),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(t===Ji.Last){if(e===this._tail)return;let i=e.next,r=e.previous;e===this._head?(i.previous=void 0,this._head=i):(i.previous=r,r.next=i),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){let e=[];return this.forEach((t,i)=>{e.push([i,t])}),e}fromJSON(e){this.clear();for(let[t,i]of e)this.set(t,i)}};Ho.LinkedMap=SS;var jN=class extends SS{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 ratio(){return this._ratio}set ratio(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()}get(e,t=Ji.AsNew){return super.get(e,t)}peek(e){return super.get(e,Ji.None)}set(e,t){return super.set(e,t,Ji.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}};Ho.LRUCache=jN});var qN=m(be=>{"use strict";Object.defineProperty(be,"__esModule",{value:!0});be.createMessageConnection=be.ConnectionOptions=be.CancellationStrategy=be.CancellationSenderStrategy=be.CancellationReceiverStrategy=be.ConnectionStrategy=be.ConnectionError=be.ConnectionErrors=be.LogTraceNotification=be.SetTraceNotification=be.TraceFormat=be.Trace=be.NullLogger=be.ProgressType=void 0;var ON=Mo(),ai=Xu(),me=fS(),MN=AN(),qd=Uu(),TS=yS(),Yd;(function(n){n.type=new me.NotificationType("$/cancelRequest")})(Yd||(Yd={}));var qm;(function(n){n.type=new me.NotificationType("$/progress")})(qm||(qm={}));var NN=class{constructor(){}};be.ProgressType=NN;var kS;(function(n){function e(t){return ai.func(t)}n.is=e})(kS||(kS={}));be.NullLogger=Object.freeze({error:()=>{},warn:()=>{},info:()=>{},log:()=>{}});var Wt;(function(n){n[n.Off=0]="Off",n[n.Messages=1]="Messages",n[n.Verbose=2]="Verbose"})(Wt=be.Trace||(be.Trace={}));(function(n){function e(i){if(!ai.string(i))return n.Off;switch(i=i.toLowerCase(),i){case"off":return n.Off;case"messages":return n.Messages;case"verbose":return n.Verbose;default:return n.Off}}n.fromString=e;function t(i){switch(i){case n.Off:return"off";case n.Messages:return"messages";case n.Verbose:return"verbose";default:return"off"}}n.toString=t})(Wt=be.Trace||(be.Trace={}));var xr;(function(n){n.Text="text",n.JSON="json"})(xr=be.TraceFormat||(be.TraceFormat={}));(function(n){function e(t){return t=t.toLowerCase(),t==="json"?n.JSON:n.Text}n.fromString=e})(xr=be.TraceFormat||(be.TraceFormat={}));var BN;(function(n){n.type=new me.NotificationType("$/setTrace")})(BN=be.SetTraceNotification||(be.SetTraceNotification={}));var ES;(function(n){n.type=new me.NotificationType("$/logTrace")})(ES=be.LogTraceNotification||(be.LogTraceNotification={}));var Hm;(function(n){n[n.Closed=1]="Closed",n[n.Disposed=2]="Disposed",n[n.AlreadyListening=3]="AlreadyListening"})(Hm=be.ConnectionErrors||(be.ConnectionErrors={}));var dl=class extends Error{constructor(e,t){super(t);this.code=e,Object.setPrototypeOf(this,dl.prototype)}};be.ConnectionError=dl;var HN;(function(n){function e(t){let i=t;return i&&ai.func(i.cancelUndispatched)}n.is=e})(HN=be.ConnectionStrategy||(be.ConnectionStrategy={}));var PS;(function(n){n.Message=Object.freeze({createCancellationTokenSource(t){return new TS.CancellationTokenSource}});function e(t){let i=t;return i&&ai.func(i.createCancellationTokenSource)}n.is=e})(PS=be.CancellationReceiverStrategy||(be.CancellationReceiverStrategy={}));var _S;(function(n){n.Message=Object.freeze({sendCancellation(t,i){t.sendNotification(Yd.type,{id:i})},cleanup(t){}});function e(t){let i=t;return i&&ai.func(i.sendCancellation)&&ai.func(i.cleanup)}n.is=e})(_S=be.CancellationSenderStrategy||(be.CancellationSenderStrategy={}));var RS;(function(n){n.Message=Object.freeze({receiver:PS.Message,sender:_S.Message});function e(t){let i=t;return i&&PS.is(i.receiver)&&_S.is(i.sender)}n.is=e})(RS=be.CancellationStrategy||(be.CancellationStrategy={}));var tde;(function(n){function e(t){let i=t;return i&&(RS.is(i.cancellationStrategy)||HN.is(i.connectionStrategy))}n.is=e})(tde=be.ConnectionOptions||(be.ConnectionOptions={}));var Cr;(function(n){n[n.New=1]="New",n[n.Listening=2]="Listening",n[n.Closed=3]="Closed",n[n.Disposed=4]="Disposed"})(Cr||(Cr={}));function ide(n,e,t,i){let r=t!==void 0?t:be.NullLogger,o=0,s=0,a=0,l="2.0",u,c=Object.create(null),h,d=Object.create(null),g=new Map,f,p=new MN.LinkedMap,b=Object.create(null),v=Object.create(null),w=Wt.Off,D=xr.Text,S,F=Cr.New,L=new qd.Emitter,j=new qd.Emitter,W=new qd.Emitter,B=new qd.Emitter,N=new qd.Emitter,I=i&&i.cancellationStrategy?i.cancellationStrategy:RS.Message;function M(P){if(P===null)throw new Error("Can't send requests with id null since the response can't be correlated.");return"req-"+P.toString()}function J(P){return P===null?"res-unknown-"+(++a).toString():"res-"+P.toString()}function K(){return"not-"+(++s).toString()}function ae(P,$){me.isRequestMessage($)?P.set(M($.id),$):me.isResponseMessage($)?P.set(J($.id),$):P.set(K(),$)}function je(P){}function _e(){return F===Cr.Listening}function Ve(){return F===Cr.Closed}function Et(){return F===Cr.Disposed}function xi(){(F===Cr.New||F===Cr.Listening)&&(F=Cr.Closed,j.fire(void 0))}function ys(P){L.fire([P,void 0,void 0])}function _o(P){L.fire(P)}n.onClose(xi),n.onError(ys),e.onClose(xi),e.onError(_o);function mp(){f||p.size===0||(f=ON.default().timer.setImmediate(()=>{f=void 0,bp()}))}function bp(){if(p.size===0)return;let P=p.shift();try{me.isRequestMessage(P)?du(P):me.isNotificationMessage(P)?Re(P):me.isResponseMessage(P)?gu(P):Se(P)}finally{mp()}}let Sx=P=>{try{if(me.isNotificationMessage(P)&&P.method===Yd.type.method){let $=M(P.params.id),G=p.get($);if(me.isRequestMessage(G)){let ce=i==null?void 0:i.connectionStrategy,Ye=ce&&ce.cancelUndispatched?ce.cancelUndispatched(G,je):void 0;if(Ye&&(Ye.error!==void 0||Ye.result!==void 0)){p.delete($),Ye.id=G.id,It(Ye,P.method,Date.now()),e.write(Ye);return}}}ae(p,P)}finally{mp()}};function du(P){if(Et())return;function $($e,At,Xe){let Kt={jsonrpc:l,id:P.id};$e instanceof me.ResponseError?Kt.error=$e.toJson():Kt.result=$e===void 0?null:$e,It(Kt,At,Xe),e.write(Kt)}function G($e,At,Xe){let Kt={jsonrpc:l,id:P.id,error:$e.toJson()};It(Kt,At,Xe),e.write(Kt)}function ce($e,At,Xe){$e===void 0&&($e=null);let Kt={jsonrpc:l,id:P.id,result:$e};It(Kt,At,Xe),e.write(Kt)}fr(P);let Ye=c[P.method],jt,Qt;Ye&&(jt=Ye.type,Qt=Ye.handler);let ri=Date.now();if(Qt||u){let $e=String(P.id),At=I.receiver.createCancellationTokenSource($e);v[$e]=At;try{let Xe;if(Qt)if(P.params===void 0){if(jt!==void 0&&jt.numberOfParams!==0){G(new me.ResponseError(me.ErrorCodes.InvalidParams,`Request ${P.method} defines ${jt.numberOfParams} params but recevied none.`),P.method,ri);return}Xe=Qt(At.token)}else if(Array.isArray(P.params)){if(jt!==void 0&&jt.parameterStructures===me.ParameterStructures.byName){G(new me.ResponseError(me.ErrorCodes.InvalidParams,`Request ${P.method} defines parameters by name but received parameters by position`),P.method,ri);return}Xe=Qt(...P.params,At.token)}else{if(jt!==void 0&&jt.parameterStructures===me.ParameterStructures.byPosition){G(new me.ResponseError(me.ErrorCodes.InvalidParams,`Request ${P.method} defines parameters by position but received parameters by name`),P.method,ri);return}Xe=Qt(P.params,At.token)}else u&&(Xe=u(P.method,P.params,At.token));let Kt=Xe;Xe?Kt.then?Kt.then(nn=>{delete v[$e],$(nn,P.method,ri)},nn=>{delete v[$e],nn instanceof me.ResponseError?G(nn,P.method,ri):nn&&ai.string(nn.message)?G(new me.ResponseError(me.ErrorCodes.InternalError,`Request ${P.method} failed with message: ${nn.message}`),P.method,ri):G(new me.ResponseError(me.ErrorCodes.InternalError,`Request ${P.method} failed unexpectedly without providing any details.`),P.method,ri)}):(delete v[$e],$(Xe,P.method,ri)):(delete v[$e],ce(Xe,P.method,ri))}catch(Xe){delete v[$e],Xe instanceof me.ResponseError?$(Xe,P.method,ri):Xe&&ai.string(Xe.message)?G(new me.ResponseError(me.ErrorCodes.InternalError,`Request ${P.method} failed with message: ${Xe.message}`),P.method,ri):G(new me.ResponseError(me.ErrorCodes.InternalError,`Request ${P.method} failed unexpectedly without providing any details.`),P.method,ri)}}else G(new me.ResponseError(me.ErrorCodes.MethodNotFound,`Unhandled method ${P.method}`),P.method,ri)}function gu(P){if(!Et())if(P.id===null)P.error?r.error(`Received response message without id: Error is: -${JSON.stringify(P.error,void 0,4)}`):r.error("Received response message without id. No further error information provided.");else{let $=String(P.id),G=b[$];if(kn(P,G),G){delete b[$];try{if(P.error){let ce=P.error;G.reject(new me.ResponseError(ce.code,ce.message,ce.data))}else if(P.result!==void 0)G.resolve(P.result);else throw new Error("Should never happen.")}catch(ce){ce.message?r.error(`Response handler '${G.method}' failed with message: ${ce.message}`):r.error(`Response handler '${G.method}' failed unexpectedly.`)}}}}function Re(P){if(Et())return;let $,G;if(P.method===Yd.type.method)G=ce=>{let Ye=ce.id,jt=v[String(Ye)];jt&&jt.cancel()};else{let ce=d[P.method];ce&&(G=ce.handler,$=ce.type)}if(G||h)try{pr(P),G?P.params===void 0?($!==void 0&&$.numberOfParams!==0&&$.parameterStructures!==me.ParameterStructures.byName&&r.error(`Notification ${P.method} defines ${$.numberOfParams} params but recevied none.`),G()):Array.isArray(P.params)?($!==void 0&&($.parameterStructures===me.ParameterStructures.byName&&r.error(`Notification ${P.method} defines parameters by name but received parameters by position`),$.numberOfParams!==P.params.length&&r.error(`Notification ${P.method} defines ${$.numberOfParams} params but received ${P.params.length} argumennts`)),G(...P.params)):($!==void 0&&$.parameterStructures===me.ParameterStructures.byPosition&&r.error(`Notification ${P.method} defines parameters by position but received parameters by name`),G(P.params)):h&&h(P.method,P.params)}catch(ce){ce.message?r.error(`Notification handler '${P.method}' failed with message: ${ce.message}`):r.error(`Notification handler '${P.method}' failed unexpectedly.`)}else W.fire(P)}function Se(P){if(!P){r.error("Received empty message.");return}r.error(`Received message which is neither a response nor a notification message: -${JSON.stringify(P,null,4)}`);let $=P;if(ai.string($.id)||ai.number($.id)){let G=String($.id),ce=b[G];ce&&ce.reject(new Error("The received response has neither a result nor an error property."))}}function Te(P){if(!(w===Wt.Off||!S))if(D===xr.Text){let $;w===Wt.Verbose&&P.params&&($=`Params: ${JSON.stringify(P.params,null,4)} +`),e.endsWith("get_var")||this.client.logError(`request error on "${e}"`,t,s[1],i),o(l)}else r(a)})})}getArgsByPrefix(e){return this.prefix!=="nvim_"&&e[0]!=this?[fde?this.data:this,...e]:e}getVar(e){return this.request(`${this.prefix}get_var`,[e]).then(t=>t,t=>null)}setVar(e,t,i=!1){if(i){this.notify(`${this.prefix}set_var`,[e,t]);return}return this.request(`${this.prefix}set_var`,[e,t])}deleteVar(e){this.notify(`${this.prefix}del_var`,[e])}getOption(e){return this.request(`${this.prefix}get_option`,[e])}setOption(e,t,i){if(i){this.notify(`${this.prefix}set_option`,[e,t]);return}return this.request(`${this.prefix}set_option`,[e,t])}notify(e,t=[]){this.transport.notify(e,this.getArgsByPrefix(t))}};Um.BaseApi=mN});var Ud=y(Gm=>{"use strict";Object.defineProperty(Gm,"__esModule",{value:!0});Gm.Buffer=void 0;var mde=Xd(),yN=class extends mde.BaseApi{constructor(){super(...arguments);this.prefix="nvim_buf_"}async attach(e=!1,t={}){return await this.request(`${this.prefix}attach`,[e,t])}async detach(){return await this.request(`${this.prefix}detach`,[])}get id(){return this.data}get length(){return this.request(`${this.prefix}line_count`,[])}get lines(){return this.getLines()}get changedtick(){return this.request(`${this.prefix}get_changedtick`,[])}get commands(){return this.getCommands()}getCommands(e={}){return this.request(`${this.prefix}get_commands`,[e])}getLines({start:e,end:t,strictIndexing:i}={start:0,end:-1,strictIndexing:!0}){let r=typeof i>"u"?!0:i;return this.request(`${this.prefix}get_lines`,[e,t,r])}setLines(e,t,i=!1){let{start:r,end:o,strictIndexing:s}=t??{};r=r??0,o=o??r+1;let a=s??!0;return this[i?"notify":"request"](`${this.prefix}set_lines`,[r,o,a,typeof e=="string"?[e]:e])}setVirtualText(e,t,i,r={}){return this.client.isVim?Promise.resolve(-1):(this.notify(`${this.prefix}set_virtual_text`,[e,t,i,r]),Promise.resolve(e))}deleteExtMark(e,t){this.client.isVim||this.notify(`${this.prefix}del_extmark`,[e,t])}async getExtMarkById(e,t,i={}){return this.client.isVim?Promise.resolve([]):this.request(`${this.prefix}get_extmark_by_id`,[e,t,i])}async getExtMarks(e,t,i,r={}){return this.client.isVim?Promise.resolve([]):this.request(`${this.prefix}get_extmarks`,[e,t,i,r])}setExtMark(e,t,i,r={}){this.client.isVim||this.notify(`${this.prefix}set_extmark`,[e,t,i,r])}insert(e,t){return this.setLines(e,{start:t,end:t,strictIndexing:!0})}replace(e,t){let i=typeof e=="string"?[e]:e;return this.setLines(i,{start:t,end:t+i.length,strictIndexing:!1})}remove(e,t,i=!1){return this.setLines([],{start:e,end:t,strictIndexing:i})}append(e){return this.setLines(e,{start:-1,end:-1,strictIndexing:!1})}get name(){return this.request(`${this.prefix}get_name`,[])}setName(e){return this.request(`${this.prefix}set_name`,[e])}get valid(){return this.request(`${this.prefix}is_valid`,[])}mark(e){return this.request(`${this.prefix}get_mark`,[e])}getKeymap(e){return this.request(`${this.prefix}get_keymap`,[e])}setKeymap(e,t,i,r={}){this.client.call("coc#compat#buf_add_keymap",[this.id,e,t,i,r],!0)}get loaded(){return this.request(`${this.prefix}is_loaded`,[])}getOffset(e){return this.request(`${this.prefix}get_offset`,[e])}addHighlight({hlGroup:e,line:t,colStart:i,colEnd:r,srcId:o}){if(!e)throw new Error("hlGroup should not empty");let s=typeof r<"u"?r:-1,a=typeof i<"u"?i:-0,l=typeof o<"u"?o:-1,u=l==0?"request":"notify",c=this[u](`${this.prefix}add_highlight`,[l,e,t,a,s]);return u==="request"?c:Promise.resolve(null)}clearHighlight(e={}){let t={srcId:-1,lineStart:0,lineEnd:-1},{srcId:i,lineStart:r,lineEnd:o}=Object.assign({},t,e);return this.notify(`${this.prefix}clear_highlight`,[i,r,o])}highlightRanges(e,t,i){this.client.call("coc#highlight#ranges",[this.id,e,t,i],!0)}clearNamespace(e,t=0,i=-1){this.client.call("coc#highlight#clear_highlight",[this.id,e,t,i],!0)}placeSign(e){let t={lnum:e.lnum};typeof e.priority=="number"&&(t.priority=e.priority),this.client.call("sign_place",[e.id||0,e.group||"",e.name,this.id,t],!0)}unplaceSign(e){let t={buffer:this.id};e.id!=null&&(t.id=e.id),this.client.call("sign_unplace",[e.group||"",t],!0)}async getSigns(e){return(await this.client.call("sign_getplaced",[this.id,e||{}]))[0].signs}async getHighlights(e,t=0,i=-1){let r=[],o=await this.client.call("coc#highlight#get_highlights",[this.id,e,t,i]);for(let s of o)r.push({hlGroup:s[0],lnum:s[1],colStart:s[2],colEnd:s[3],id:s[4]});return r}updateHighlights(e,t,i={}){if(typeof i=="number"){this.client.logError("Bad option for buffer.updateHighlights()",new Error().stack);return}let r=typeof i.start=="number"?i.start:0,o=typeof i.end=="number"?i.end:-1,s=typeof i.changedtick=="number"?i.changedtick:null,a=typeof i.priority=="number"?i.priority:null;if(r==0&&o==-1){let l=t.map(u=>[u.hlGroup,u.lnum,u.colStart,u.colEnd,u.combine===!1?0:1,u.start_incl?1:0,u.end_incl?1:0]);this.client.call("coc#highlight#buffer_update",[this.id,e,l,a,s],!0);return}this.client.call("coc#highlight#update_highlights",[this.id,e,t,r,o,a,s],!0)}listen(e,t,i){this.client.attachBufferEvent(this,e,t),i&&i.push({dispose:()=>{this.client.detachBufferEvent(this,e,t)}})}};Gm.Buffer=yN});var Gd=y(Km=>{"use strict";Object.defineProperty(Km,"__esModule",{value:!0});Km.Window=void 0;var yde=Xd(),LS=require("timers"),bN=class extends yde.BaseApi{constructor(){super(...arguments);this.prefix="nvim_win_"}get id(){return this.data}get buffer(){return this.request(`${this.prefix}get_buf`,[])}get tabpage(){return this.request(`${this.prefix}get_tabpage`,[])}get cursor(){return this.request(`${this.prefix}get_cursor`,[])}setCursor(e,t=!1){return this[t?"notify":"request"](`${this.prefix}set_cursor`,[e])}get height(){return this.request(`${this.prefix}get_height`,[])}setHeight(e,t=!1){return this[t?"notify":"request"](`${this.prefix}set_height`,[e])}get width(){return this.request(`${this.prefix}get_width`,[])}setWidth(e,t=!1){return this[t?"notify":"request"](`${this.prefix}set_height`,[e])}get position(){return this.request(`${this.prefix}get_position`,[])}get row(){return this.request(`${this.prefix}get_position`,[]).then(e=>e[0])}get col(){return this.request(`${this.prefix}get_position`,[]).then(e=>e[1])}get valid(){return this.request(`${this.prefix}is_valid`,[])}get number(){return this.request(`${this.prefix}get_number`,[])}setConfig(e,t){return this[t?"notify":"request"](`${this.prefix}set_config`,[e])}getConfig(){return this.request(`${this.prefix}get_config`,[])}close(e,t){if(t){this.notify(`${this.prefix}close`,[e]);let i=0,r=setInterval(()=>{if(i==5)return(0,LS.clearInterval)(r);this.request(`${this.prefix}is_valid`,[]).then(o=>{o?this.notify(`${this.prefix}close`,[e]):(0,LS.clearInterval)(r)},()=>{(0,LS.clearInterval)(r)}),i++},50);return null}return this.request(`${this.prefix}close`,[e])}highlightRanges(e,t,i=10,r){if(r){this.client.call("coc#highlight#match_ranges",[this.id,0,t,e,i],!0);return}return this.client.call("coc#highlight#match_ranges",[this.id,0,t,e,i])}clearMatchGroup(e){this.client.call("coc#highlight#clear_match_group",[this.id,e],!0)}clearMatches(e){this.client.call("coc#highlight#clear_matches",[this.id,e],!0)}};Km.Window=bN});var Kd=y(Qm=>{"use strict";Object.defineProperty(Qm,"__esModule",{value:!0});Qm.Tabpage=void 0;var bde=Xd(),vN=class extends bde.BaseApi{constructor(){super(...arguments);this.prefix="nvim_tabpage_"}get windows(){return this.request(`${this.prefix}list_wins`,[])}get window(){return this.request(`${this.prefix}get_win`,[])}get valid(){return this.request(`${this.prefix}is_valid`,[])}get number(){return this.request(`${this.prefix}get_number`,[])}getOption(){throw new Error("Tabpage does not have `getOption`")}setOption(){throw new Error("Tabpage does not have `setOption`")}};Qm.Tabpage=vN});var wN=y(wl=>{"use strict";Object.defineProperty(wl,"__esModule",{value:!0});wl.Metadata=wl.ExtType=void 0;var vde=Ud(),wde=Gd(),Dde=Kd(),Cde;(function(n){n[n.Buffer=0]="Buffer",n[n.Window=1]="Window",n[n.Tabpage=2]="Tabpage"})(Cde=wl.ExtType||(wl.ExtType={}));wl.Metadata=[{constructor:vde.Buffer,name:"Buffer",prefix:"nvim_buf_"},{constructor:wde.Window,name:"Window",prefix:"nvim_win_"},{constructor:Dde.Tabpage,name:"Tabpage",prefix:"nvim_tabpage_"}]});var nc=y(ia=>{"use strict";var MS=ia&&ia.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(ia,"__esModule",{value:!0});ia.createLogger=ia.nullLogger=void 0;var FS=MS(require("fs")),xde=MS(require("os")),IS=MS(require("path"));ia.nullLogger={debug:()=>{},info:()=>{},warn:()=>{},error:()=>{},trace:()=>{}};function Sde(){let n=process.env.NODE_CLIENT_LOG_FILE;if(n)return n;let e=process.env.XDG_RUNTIME_DIR;return e?IS.default.join(e,"node-client.log"):IS.default.join(xde.default.tmpdir(),`node-client-${process.pid}.log`)}var jS=Sde(),DN=process.env.NODE_CLIENT_LOG_LEVEL||"info",AS=process.getuid&&process.getuid()==0;if(!AS)try{FS.default.mkdirSync(IS.default.dirname(jS),{recursive:!0}),FS.default.writeFileSync(jS,"",{encoding:"utf8",mode:438})}catch{AS=!0}function CN(n){return n==null?n:Array.isArray(n)?n.map(e=>CN(e)):typeof n=="object"&&typeof n.prefix=="string"&&typeof n.data=="number"?"["+n.prefix+n.data+"]":n}function Tde(n){return n==null?String(n):typeof n=="object"?JSON.stringify(n,null,2):String(n)}function kde(n){return`${n.getHours()}:${n.getMinutes()}:${n.getSeconds()}.${n.getMilliseconds()}`}var xN=class{constructor(e){this.name=e}get stream(){return AS?null:this._stream?this._stream:(this._stream=FS.default.createWriteStream(jS,{encoding:"utf8"}),this._stream)}getText(e,t,i){let r="";if(i.length){let o=CN(i);r=" "+o.map(s=>Tde(s))}return`${kde(new Date)} ${e.toUpperCase()} [${this.name}] - ${t}${r} +`}debug(e,...t){DN!="debug"||this.stream==null||this.stream.write(this.getText("debug",e,t))}info(e,...t){this.stream!=null&&this.stream.write(this.getText("info",e,t))}warn(e,...t){this.stream!=null&&this.stream.write(this.getText("warn",e,t))}error(e,...t){this.stream!=null&&this.stream.write(this.getText("error",e,t))}trace(e,...t){DN!="trace"||this.stream==null||this.stream.write(this.getText("trace",e,t))}};function Ede(n){return new xN(n)}ia.createLogger=Ede});var NS=y(OS=>{"use strict";Object.defineProperty(OS,"__esModule",{value:!0});var Pde=require("events"),_de=nc(),SN=process.env.NODE_CLIENT_LOG_LEVEL=="debug",Qd=(0,_de.createLogger)("transport"),TN=class extends Pde.EventEmitter{constructor(e){super();this.logger=e,this.pauseLevel=0,this.paused=new Map}debug(e,...t){!SN||Qd.debug(e,...t)}info(e,...t){Qd.info(e,...t)}debugMessage(e){if(!SN)return;let t=e[0];t==0?Qd.debug("receive request:",e.slice(1)):t==1||(t==2?Qd.debug("receive notification:",e.slice(1)):Qd.debug("unknown message:",e))}pauseNotification(){this.pauseLevel=this.pauseLevel+1,this.paused.set(this.pauseLevel,[])}cancelNotification(){let{pauseLevel:e}=this;e>0&&(this.paused.delete(e),this.pauseLevel=e-1)}resumeNotification(e=!1){let{pauseLevel:t}=this;if(t==0)return e?null:Promise.resolve([[],null]);let i=Error().stack;this.pauseLevel=t-1;let r=this.paused.get(t);return this.paused.delete(t),r&&r.length?new Promise((o,s)=>{if(!e)return this.request("nvim_call_atomic",[r],(a,l)=>{if(a){let u=new Error(`call_atomic error: ${a[1]}`);return u.stack=i,s(u)}if(Array.isArray(l)&&l[1]!=null){let[u,c,h]=l[1],[d,g]=r[u],p=new Error(`call_atomic request error on "${d}": ${h}`);return p.stack=i,this.logger.error(`call_atomic request error ${c} on "${d}"`,g,h,i),s(p)}o(l)});this.notify("nvim_call_atomic",[r]),o(void 0)}):e?null:Promise.resolve([[],void 0])}};OS.default=TN});var PN=y(nr=>{"use strict";var Rde=nr&&nr.__createBinding||(Object.create?function(n,e,t,i){i===void 0&&(i=t);var r=Object.getOwnPropertyDescriptor(e,t);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(n,i,r)}:function(n,e,t,i){i===void 0&&(i=t),n[i]=e[t]}),Lde=nr&&nr.__setModuleDefault||(Object.create?function(n,e){Object.defineProperty(n,"default",{enumerable:!0,value:e})}:function(n,e){n.default=e}),Fde=nr&&nr.__importStar||function(n){if(n&&n.__esModule)return n;var e={};if(n!=null)for(var t in n)t!=="default"&&Object.prototype.hasOwnProperty.call(n,t)&&Rde(e,n,t);return Lde(e,n),e},kN=nr&&nr.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(nr,"__esModule",{value:!0});nr.NvimTransport=void 0;var ts=Fde(gN()),Ide=kN(fN()),jde=wN(),Ade=kN(NS()),EN=class extends Ade.default{constructor(e){super(e);this.pending=new Map,this.nextRequestId=1,this.attached=!1;let t=this.setupCodec();this.encodeStream=ts.createEncodeStream({codec:t}),this.decodeStream=ts.createDecodeStream({codec:t}),this.decodeStream.on("data",i=>{this.parseMessage(i)}),this.decodeStream.on("end",()=>{this.detach(),this.emit("detach")})}parseMessage(e){let t=e[0];if(this.debugMessage(e),t===0)this.emit("request",e[2].toString(),e[3],this.createResponse(e[1]));else if(t===1){let i=e[1],r=this.pending.get(i);if(r){this.pending.delete(i);let o=e[2];o&&o.length!=2&&(o=[0,o instanceof Error?o.message:o]),r(o,e[3])}}else t===2?this.emit("notification",e[1].toString(),e[2]):console.error(`Invalid message type ${t}`)}setupCodec(){let e=ts.createCodec();return jde.Metadata.forEach(({constructor:t},i)=>{e.addExtPacker(i,t,r=>ts.encode(r.data)),e.addExtUnpacker(i,r=>new t({transport:this,client:this.client,data:ts.decode(r)}))}),this.codec=e,this.codec}attach(e,t,i){this.encodeStream=this.encodeStream.pipe(e);let r=new Ide.default;t.pipe(r).pipe(this.decodeStream),this.writer=e,this.reader=t,this.client=i,this.attached=!0}detach(){!this.attached||(this.attached=!1,this.encodeStream.unpipe(this.writer),this.reader.unpipe(this.decodeStream))}request(e,t,i){if(!this.attached)return;let r=this.nextRequestId;this.nextRequestId=this.nextRequestId+1;let o=Date.now();this.debug("request to nvim:",r,e,t),this.encodeStream.write(ts.encode([0,r,e,t],{codec:this.codec}));let s=Error().stack,a=setTimeout(()=>{this.debug(`request to vim blocked more than 1s: ${e}`,t,s)},1e3);this.pending.set(r,(l,u)=>{clearTimeout(a),this.debug("response of nvim:",r,`${Date.now()-o}ms`,u,l),i(l,u)})}notify(e,t){if(!!this.attached){if(this.pauseLevel!=0){let i=this.paused.get(this.pauseLevel);if(i){i.push([e,t]);return}}this.debug("nvim notification:",e,t),this.encodeStream.write(ts.encode([2,e,t],{codec:this.codec}))}}send(e){this.encodeStream.write(ts.encode(e,{codec:this.codec}))}createResponse(e){let{encodeStream:t}=this,i=Date.now(),r=!1,o=setTimeout(()=>{this.debug("request to client cost more than 1s",e)},1e3);return{send:(s,a)=>{clearTimeout(o),!(r||!this.attached)&&(this.debug("response of client:",e,`${Date.now()-i}ms`,s,a==!0),r=!0,t.write(ts.encode([1,e,a?s:null,a?null:s])))}}}};nr.NvimTransport=EN});var LN=y(zd=>{"use strict";var _N=zd&&zd.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(zd,"__esModule",{value:!0});var Mde=_N(require("events")),Ode=_N(require("readline")),Nde=nc(),rc=(0,Nde.createLogger)("connection"),RN=class extends Mde.default{constructor(e,t){super();this.readable=e,this.writeable=t;let i=Ode.default.createInterface(this.readable);i.on("line",r=>{this.parseData(r)}),i.on("close",()=>{rc.error("connection closed"),process.exit(0)})}parseData(e){if(e.length==0)return;let t;try{t=JSON.parse(e)}catch{console.error(`Invalid data from vim: ${e}`);return}let[i,r]=t;i>0?(rc.debug("received request:",i,r),this.emit("request",i,r)):i==0?(rc.debug("received notification:",r),this.emit("notification",r)):(rc.debug("received response:",i,r),this.emit("response",i,r))}response(e,t){this.send([e,t||null])}notify(e,t){this.send([0,[e,t||null]])}send(e){rc.debug("send to vim:",e);try{this.writeable.write(JSON.stringify(e)+` +`)}catch{rc.error("Send error:",e)}}redraw(e){this.send(["redraw",e?"force":""])}command(e){this.send(["ex",e])}expr(e){this.send(["expr",e])}call(e,t,i){if(!i){this.send(["call",e,t]);return}this.send(["call",e,t,i])}dispose(){this.removeAllListeners()}};zd.default=RN});var IN=y(BS=>{"use strict";Object.defineProperty(BS,"__esModule",{value:!0});var Bde=nc(),gRe=(0,Bde.createLogger)("request"),Hde=process.env.COC_NVIM=="1"?"coc#api#call":"nvim#api#call",FN=class{constructor(e,t,i){this.connection=e,this.cb=t,this.id=i}request(e,t=[]){this.method=e,this.connection.call(Hde,[e.slice(5),t],this.id)}callback(e,t,i){let{method:r,cb:o}=this;if(t)return o([0,t.toString()]);switch(r){case"nvim_list_wins":case"nvim_tabpage_list_wins":return o(null,i.map(s=>e.createWindow(s)));case"nvim_tabpage_get_win":case"nvim_get_current_win":case"nvim_open_win":return o(null,e.createWindow(i));case"nvim_list_bufs":return o(null,i.map(s=>e.createBuffer(s)));case"nvim_win_get_buf":case"nvim_create_buf":case"nvim_get_current_buf":return o(null,e.createBuffer(i));case"nvim_list_tabpages":return o(null,i.map(s=>e.createTabpage(s)));case"nvim_get_current_tabpage":return o(null,e.createTabpage(i));default:return o(null,i)}}};BS.default=FN});var AN=y(oc=>{"use strict";var HS=oc&&oc.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(oc,"__esModule",{value:!0});oc.VimTransport=void 0;var qde=HS(NS()),Yde=HS(LN()),Wde=HS(IN()),jN=class extends qde.default{constructor(e){super(e);this.pending=new Map,this.nextRequestId=-1,this.attached=!1,this.errText="",this.outText="",this.notifyMethod=process.env.COC_NVIM=="1"?"coc#api#notify":"nvim#api#notify"}attach(e,t,i){let r=this.connection=new Yde.default(t,e);this.attached=!0,this.client=i,r.on("request",(o,s)=>{let[a,l]=s;this.emit("request",a,l,this.createResponse(o))}),r.on("notification",o=>{let[s,a]=o;this.emit("notification",s.toString(),a)}),r.on("response",(o,s)=>{let a=this.pending.get(o);if(a){this.pending.delete(o);let l=null,u=null;Array.isArray(s)?(l=s[0],u=s[1]):l=s,a.callback(this.client,l,u)}})}send(e){this.connection.send(e)}detach(){!this.attached||(this.attached=!1,this.connection.dispose())}request(e,t,i){if(!this.attached)return i([0,"transport disconnected"]);let r=this.nextRequestId;this.nextRequestId=this.nextRequestId-1;let o=Date.now();this.debug("request to vim:",r,e,t);let s=setTimeout(()=>{this.debug("request to vim cost more than 1s",e,t)},1e3),a=new Wde.default(this.connection,(l,u)=>{clearTimeout(s),this.debug("response from vim cost:",r,`${Date.now()-o}ms`),i(l,u)},r);this.pending.set(r,a),a.request(e,t)}notify(e,t){if(!this.attached)return;if(this.pauseLevel!=0){let r=this.paused.get(this.pauseLevel);if(r){r.push([e,t]);return}}let i=e.slice(5);if(i=="err_write"){this.errText=this.errText+t[0].toString();return}if(i=="out_write"){let r=t[0].toString()||"";if(!r.includes(` +`))this.outText=this.outText+r;else{let o=this.outText+t[0].toString();this.outText="",this.connection.call(this.notifyMethod,[i,[o]])}return}if(i=="err_writeln"){let r=this.errText+t[0].toString();this.errText="",this.connection.call(this.notifyMethod,[i,[r]]);return}this.connection.call(this.notifyMethod,[i,t])}createResponse(e){let t=!1,{connection:i}=this,r=Date.now(),o=setTimeout(()=>{this.debug("request to client cost more than 1s",e)},1e3);return{send:(s,a)=>{if(clearTimeout(o),t||!this.attached)return;t=!0;let l=null;a&&(l=typeof s=="string"?s:s.toString()),this.debug("response of client cost:",e,`${Date.now()-r}ms`),i.response(e,[l,a?null:s])}}}};oc.VimTransport=jN});var ON=y(zm=>{"use strict";Object.defineProperty(zm,"__esModule",{value:!0});zm.Neovim=void 0;var Zde=Xd(),Jde=Ud(),$de=Kd(),Xde=Gd(),Ude=process.env.VIM_NODE_RPC=="1",MN=class extends Zde.BaseApi{constructor(){super(...arguments);this.prefix="nvim_",this.Buffer=Jde.Buffer,this.Window=Xde.Window,this.Tabpage=$de.Tabpage}getArgs(e){return e?Array.isArray(e)?e:[e]:[]}get apiInfo(){return this.request(`${this.prefix}get_api_info`)}get buffers(){return this.request(`${this.prefix}list_bufs`)}get buffer(){return this.request(`${this.prefix}get_current_buf`)}async setBuffer(e){await this.request(`${this.prefix}set_current_buf`,[e])}get chans(){return this.request(`${this.prefix}list_chans`)}getChanInfo(e){return this.request(`${this.prefix}get_chan_info`,[e])}createNamespace(e=""){return process.env.COC_NVIM=="1"?(e=e.startsWith("coc-")?e.slice(4):e,this.request(`${this.prefix}call_function`,["coc#highlight#create_namespace",[e]])):this.request(`${this.prefix}create_namespace`,[e])}get namespaces(){return this.request(`${this.prefix}get_namespaces`,[])}get commands(){return this.getCommands()}getCommands(e={}){return this.request(`${this.prefix}get_commands`,[e])}get tabpages(){return this.request(`${this.prefix}list_tabpages`)}get tabpage(){return this.request(`${this.prefix}get_current_tabpage`)}async setTabpage(e){await this.request(`${this.prefix}set_current_tabpage`,[e])}get windows(){return this.getWindows()}get window(){return this.request(`${this.prefix}get_current_win`)}getWindows(){return this.request(`${this.prefix}list_wins`)}async setWindow(e){await this.request(`${this.prefix}set_current_win`,[e])}get runtimePaths(){return this.request(`${this.prefix}list_runtime_paths`)}setDirectory(e){return this.request(`${this.prefix}set_current_dir`,[e])}get line(){return this.getLine()}createNewBuffer(e=!1,t=!1){return this.request(`${this.prefix}create_buf`,[e,t])}openFloatWindow(e,t,i){return this.request(`${this.prefix}open_win`,[e,t,i])}getLine(){return this.request(`${this.prefix}get_current_line`)}setLine(e){return this.request(`${this.prefix}set_current_line`,[e])}getKeymap(e){return this.request(`${this.prefix}get_keymap`,[e])}get mode(){return this.request(`${this.prefix}get_mode`)}get colorMap(){return this.request(`${this.prefix}get_color_map`)}getColorByName(e){return this.request(`${this.prefix}get_color_by_name`,[e])}getHighlight(e,t=!0){let i=typeof e=="string"?"by_name":"by_id";return this.request(`${this.prefix}get_hl_${i}`,[e,t])}getHighlightByName(e,t=!0){return this.request(`${this.prefix}get_hl_by_name`,[e,t])}getHighlightById(e,t=!0){return this.request(`${this.prefix}get_hl_by_id`,[e,t])}deleteCurrentLine(){return this.request(`${this.prefix}del_current_line`)}eval(e){return this.request(`${this.prefix}eval`,[e])}lua(e,t=[]){return this.request(`${this.prefix}exec_lua`,[e,t])}executeLua(e,t=[]){let i=this.getArgs(t);return this.lua(e,i)}callDictFunction(e,t,i=[]){let r=this.getArgs(i);return this.request(`${this.prefix}call_dict_function`,[e,t,r])}call(e,t=[],i){let r=this.getArgs(t);return i?(this.notify(`${this.prefix}call_function`,[e,r]),null):this.request(`${this.prefix}call_function`,[e,r])}callTimer(e,t=[],i){let r=this.getArgs(t);return i?(this.notify(`${this.prefix}call_function`,["coc#util#timer",[e,r]]),null):Ude?(this.notify(`${this.prefix}call_function`,["coc#util#timer",[e,r]]),new Promise(o=>{setTimeout(()=>{o(null)},20)})):this.request(`${this.prefix}call_function`,["coc#util#timer",[e,r]])}callAsync(e,t=[]){let i=this.getArgs(t);return this.client.sendAsyncRequest(e,i)}callFunction(e,t=[]){return this.call(e,t)}callAtomic(e){return this.request(`${this.prefix}call_atomic`,[e])}command(e,t){return t?(this.notify(`${this.prefix}command`,[e]),null):this.request(`${this.prefix}command`,[e])}commandOutput(e){return this.request(`${this.prefix}command_output`,[e])}exec(e,t=!1){return this.request(`${this.prefix}exec`,[e,t])}getVvar(e){return this.request(`${this.prefix}get_vvar`,[e])}feedKeys(e,t,i){return this.request(`${this.prefix}feedkeys`,[e,t,i])}input(e){return this.request(`${this.prefix}input`,[e])}parseExpression(e,t,i){return this.request(`${this.prefix}parse_expression`,[e,t,i])}getProc(e){return this.request(`${this.prefix}get_proc`,[e])}getProcChildren(e){return this.request(`${this.prefix}get_proc_children`,[e])}replaceTermcodes(e,t,i,r){return this.request(`${this.prefix}replace_termcodes`,[e,t,i,r])}strWidth(e){return this.request(`${this.prefix}strwidth`,[e])}outWrite(e){this.notify(`${this.prefix}out_write`,[e])}outWriteLine(e){this.outWrite(`${e} +`)}errWrite(e){this.notify(`${this.prefix}err_write`,[e])}errWriteLine(e){this.notify(`${this.prefix}err_writeln`,[e])}get uis(){return this.request(`${this.prefix}list_uis`)}uiAttach(e,t,i){return this.request(`${this.prefix}ui_attach`,[e,t,i])}uiDetach(){return this.request(`${this.prefix}ui_detach`,[])}uiTryResize(e,t){return this.request(`${this.prefix}ui_try_resize`,[e,t])}uiSetOption(e,t){return this.request(`${this.prefix}ui_set_option`,[e,t])}subscribe(e){return this.request(`${this.prefix}subscribe`,[e])}unsubscribe(e){return this.request(`${this.prefix}unsubscribe`,[e])}setClientInfo(e,t,i,r,o){this.notify(`${this.prefix}set_client_info`,[e,t,i,r,o])}async quit(){this.command("qa!",!0),this.transport&&this.transport.detach()}};zm.Neovim=MN});var ey=y(sc=>{"use strict";Object.defineProperty(sc,"__esModule",{value:!0});sc.NeovimClient=sc.AsyncResponse=void 0;var Gde=PN(),Kde=AN(),Qde=ON(),zde=Ud(),Vde=Gd(),ege=Kd(),tge=nc(),NN=(0,tge.createLogger)("client"),Vm=process.env.VIM_NODE_RPC=="1",qS=class{constructor(e,t){this.requestId=e,this.cb=t,this.finished=!1}finish(e,t){if(!this.finished){if(this.finished=!0,e){this.cb(new Error(e));return}this.cb(null,t)}}};sc.AsyncResponse=qS;var BN=class extends Qde.Neovim{constructor(e){super({});this.logger=e,this.requestId=1,this.responses=new Map,this.attachedBuffers=new Map,this.isVim=Vm,Object.defineProperty(this,"client",{value:this});let t=Vm?new Kde.VimTransport(e):new Gde.NvimTransport(e);this.setTransport(t),this.transportAttached=!1,this.handleRequest=this.handleRequest.bind(this),this.handleNotification=this.handleNotification.bind(this)}echoError(e){let t=process.env.COC_NVIM=="1"?"[coc.nvim] ":"";e instanceof Error?(this.errWriteLine(t+e.message+" use :CocOpenLog for details"),this.logError(e.message||"Unknown error",e.stack)):(this.errWriteLine(t+e),this.logError(e.toString(),Error().stack))}logError(e,...t){!this.logger||this.logger.error(e,...t)}createBuffer(e){return new zde.Buffer({transport:this.transport,data:e,client:this})}createWindow(e){return new Vde.Window({transport:this.transport,data:e,client:this})}createTabpage(e){return new ege.Tabpage({transport:this.transport,data:e,client:this})}send(e){this.transport.send(e)}redrawVim(e){!Vm||this.transport.notify("nvim_command",["redraw"+(e?"!":"")])}attach({reader:e,writer:t},i=!0){this.transport.attach(t,e,this),this.transportAttached=!0,this.setupTransport(i)}detach(){this.transport.detach(),this.transportAttached=!1}get isApiReady(){return this.transportAttached&&typeof this._channelId<"u"}get channelId(){return this._isReady.then(()=>this._channelId)}isAttached(e){return this.attachedBuffers.has(e)}handleRequest(e,t,i){this.emit("request",e,t,i)}sendAsyncRequest(e,t){let i=this.requestId;return this.requestId=i+1,this.notify("nvim_call_function",["coc#rpc#async_request",[i,e,t||[]]]),new Promise((r,o)=>{let s=new qS(i,(a,l)=>{if(a)return o(a);r(l)});this.responses.set(i,s)})}emitNotification(e,t){if(e.endsWith("_event")){if(e.startsWith("nvim_buf_")){let i=e.replace(/nvim_buf_(.*)_event/,"$1"),{id:r}=t[0];if(!this.attachedBuffers.has(r))return;(this.attachedBuffers.get(r).get(i)||[]).forEach(a=>a(...t)),i==="detach"&&this.attachedBuffers.delete(r);return}if(e.startsWith("nvim_async_request")){let[i,r,o]=t;this.handleRequest(r,o,{send:(s,a)=>{this.notify("nvim_call_function",["coc#rpc#async_response",[i,s,a]])}});return}if(e.startsWith("nvim_async_response")){let[i,r,o]=t,s=this.responses.get(i);if(!s){console.error(`Response not found for request ${i}`);return}this.responses.delete(i),s.finish(r,o);return}if(e==="nvim_error_event"){this.logger.error("Error event from nvim:",t[0],t[1]);return}this.logger.debug(`Unhandled event: ${e}`,t)}else this.emit("notification",e,t)}handleNotification(e,t){this.emitNotification(e,t)}setupTransport(e=!0){if(!this.transportAttached)throw new Error("Not attached to input/output");this.transport.on("request",this.handleRequest),this.transport.on("notification",this.handleNotification),this.transport.on("detach",()=>{this.emit("disconnect"),this.transport.removeAllListeners("request"),this.transport.removeAllListeners("notification"),this.transport.removeAllListeners("detach")}),e?this._isReady=this.generateApi():(this._channelId=0,this._isReady=Promise.resolve(!0))}requestApi(){return new Promise((e,t)=>{this.transport.request("nvim_get_api_info",[],(i,r)=>{i?t(new Error(Array.isArray(i)?i[1]:i.message||i.toString())):e(r)})})}async generateApi(){let e;try{e=await this.requestApi()}catch(t){console.error("Could not get vim api results"),NN.error(t)}if(e)try{let[t,i]=e;return this.functions=i.functions.map(r=>r.name),this._channelId=t,!0}catch(t){return NN.error(t.stack),null}return null}attachBufferEvent(e,t,i){let r=this.attachedBuffers.get(e.id)||new Map,o=r.get(t)||[];o.includes(i)||(o.push(i),r.set(t,o),this.attachedBuffers.set(e.id,r))}detachBufferEvent(e,t,i){let r=this.attachedBuffers.get(e.id);if(!r||!r.has(t))return;let o=r.get(t).filter(s=>s!==i);r.set(t,o)}pauseNotification(){let e=Error().stack;this.transport.pauseLevel!=0&&this.logError("Nested nvim.pauseNotification() detected, please avoid it:",e),this.transport.pauseNotification(),process.nextTick(()=>{this.transport.pauseLevel>0&&this.logError("resumeNotification not called within same tick:",e)})}resumeNotification(e,t){return Vm&&e&&this.transport.notify("nvim_command",["redraw"]),t?(this.transport.resumeNotification(!0),Promise.resolve(null)):this.transport.resumeNotification()}hasFunction(e){return this.functions?this.functions.includes(e):!0}};sc.NeovimClient=BN});var HN=y(ty=>{"use strict";Object.defineProperty(ty,"__esModule",{value:!0});ty.attach=void 0;var ige=require("net"),nge=ey(),rge=nc();function oge({reader:n,writer:e,proc:t,socket:i},r=null,o=!0){let s,a,l;if(r||(r=rge.nullLogger),i){let u=(0,ige.createConnection)(i);s=u,a=u,u.once("close",()=>{l.detach()})}else n&&e?(s=e,a=n):t&&(s=t.stdin,a=t.stdout,t.once("disconnect",()=>{l.detach()}));if(s.on("error",u=>{u.code=="EPIPE"&&l.detach()}),s&&a)return l=new nge.NeovimClient(r),l.attach({writer:s,reader:a},o),l;throw new Error("Invalid arguments, could not attach")}ty.attach=oge});var qN=y(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.Tabpage=rr.Window=rr.Buffer=rr.NeovimClient=rr.Neovim=void 0;var sge=ey();Object.defineProperty(rr,"Neovim",{enumerable:!0,get:function(){return sge.NeovimClient}});var age=ey();Object.defineProperty(rr,"NeovimClient",{enumerable:!0,get:function(){return age.NeovimClient}});var lge=Ud();Object.defineProperty(rr,"Buffer",{enumerable:!0,get:function(){return lge.Buffer}});var uge=Gd();Object.defineProperty(rr,"Window",{enumerable:!0,get:function(){return uge.Window}});var cge=Kd();Object.defineProperty(rr,"Tabpage",{enumerable:!0,get:function(){return cge.Tabpage}})});var YN=y(Dn=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.Window=Dn.Tabpage=Dn.Buffer=Dn.NeovimClient=Dn.Neovim=Dn.attach=void 0;var hge=HN();Object.defineProperty(Dn,"attach",{enumerable:!0,get:function(){return hge.attach}});var Vd=qN();Object.defineProperty(Dn,"Neovim",{enumerable:!0,get:function(){return Vd.Neovim}});Object.defineProperty(Dn,"NeovimClient",{enumerable:!0,get:function(){return Vd.NeovimClient}});Object.defineProperty(Dn,"Buffer",{enumerable:!0,get:function(){return Vd.Buffer}});Object.defineProperty(Dn,"Tabpage",{enumerable:!0,get:function(){return Vd.Tabpage}});Object.defineProperty(Dn,"Window",{enumerable:!0,get:function(){return Vd.Window}})});var is=y(ZS=>{"use strict";Object.defineProperty(ZS,"__esModule",{value:!0});var YS;function WS(){if(YS===void 0)throw new Error("No runtime abstraction layer installed");return YS}(function(n){function e(t){if(t===void 0)throw new Error("No runtime abstraction layer provided");YS=t}n.install=e})(WS||(WS={}));ZS.default=WS});var JS=y(eg=>{"use strict";Object.defineProperty(eg,"__esModule",{value:!0});eg.Disposable=void 0;var dge;(function(n){function e(t){return{dispose:t}}n.create=e})(dge=eg.Disposable||(eg.Disposable={}))});var ZN=y(iy=>{"use strict";Object.defineProperty(iy,"__esModule",{value:!0});iy.AbstractMessageBuffer=void 0;var gge=13,pge=10,fge=`\r +`,WN=class{constructor(e="utf-8"){this._encoding=e,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(e){let t=typeof e=="string"?this.fromString(e,this._encoding):e;this._chunks.push(t),this._totalLength+=t.byteLength}tryReadHeaders(){if(this._chunks.length===0)return;let e=0,t=0,i=0,r=0;e:for(;tthis._totalLength)throw new Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===e){let o=this._chunks[0];return this._chunks.shift(),this._totalLength-=e,this.asNative(o)}if(this._chunks[0].byteLength>e){let o=this._chunks[0],s=this.asNative(o,e);return this._chunks[0]=o.slice(e),this._totalLength-=e,s}let t=this.allocNative(e),i=0,r=0;for(;e>0;){let o=this._chunks[r];if(o.byteLength>e){let s=o.slice(0,e);t.set(s,i),i+=e,this._chunks[r]=o.slice(e),this._totalLength-=e,e-=e}else t.set(o,i),i+=o.byteLength,this._chunks.shift(),this._totalLength-=o.byteLength,e-=o.byteLength}return t}};iy.AbstractMessageBuffer=WN});var GN=y(XS=>{"use strict";Object.defineProperty(XS,"__esModule",{value:!0});var mge=is(),JN=require("util"),Dl=JS(),yge=ZN(),tg=class extends yge.AbstractMessageBuffer{constructor(e="utf-8"){super(e)}emptyBuffer(){return tg.emptyBuffer}fromString(e,t){return Buffer.from(e,t)}toString(e,t){return e instanceof Buffer?e.toString(t):new JN.TextDecoder(t).decode(e)}asNative(e,t){return t===void 0?e instanceof Buffer?e:Buffer.from(e):e instanceof Buffer?e.slice(0,t):Buffer.from(e,0,t)}allocNative(e){return Buffer.allocUnsafe(e)}};tg.emptyBuffer=Buffer.allocUnsafe(0);var $N=class{constructor(e){this.stream=e}onClose(e){return this.stream.on("close",e),Dl.Disposable.create(()=>this.stream.off("close",e))}onError(e){return this.stream.on("error",e),Dl.Disposable.create(()=>this.stream.off("error",e))}onEnd(e){return this.stream.on("end",e),Dl.Disposable.create(()=>this.stream.off("end",e))}onData(e){return this.stream.on("data",e),Dl.Disposable.create(()=>this.stream.off("data",e))}},XN=class{constructor(e){this.stream=e}onClose(e){return this.stream.on("close",e),Dl.Disposable.create(()=>this.stream.off("close",e))}onError(e){return this.stream.on("error",e),Dl.Disposable.create(()=>this.stream.off("error",e))}onEnd(e){return this.stream.on("end",e),Dl.Disposable.create(()=>this.stream.off("end",e))}write(e,t){return new Promise((i,r)=>{let o=s=>{s==null?i():r(s)};typeof e=="string"?this.stream.write(e,t,o):this.stream.write(e,o)})}end(){this.stream.end()}},UN=Object.freeze({messageBuffer:Object.freeze({create:n=>new tg(n)}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:(n,e)=>{try{return Promise.resolve(Buffer.from(JSON.stringify(n,void 0,0),e.charset))}catch(t){return Promise.reject(t)}}}),decoder:Object.freeze({name:"application/json",decode:(n,e)=>{try{return n instanceof Buffer?Promise.resolve(JSON.parse(n.toString(e.charset))):Promise.resolve(JSON.parse(new JN.TextDecoder(e.charset).decode(n)))}catch(t){return Promise.reject(t)}}})}),stream:Object.freeze({asReadableStream:n=>new $N(n),asWritableStream:n=>new XN(n)}),console,timer:Object.freeze({setTimeout(n,e,...t){let i=setTimeout(n,e,...t);return{dispose:()=>clearTimeout(i)}},setImmediate(n,...e){let t=setImmediate(n,...e);return{dispose:()=>clearImmediate(t)}},setInterval(n,e,...t){let i=setInterval(n,e,...t);return{dispose:()=>clearInterval(i)}}})});function $S(){return UN}(function(n){function e(){mge.default.install(UN)}n.install=e})($S||($S={}));XS.default=$S});var ac=y(Ai=>{"use strict";Object.defineProperty(Ai,"__esModule",{value:!0});Ai.stringArray=Ai.array=Ai.func=Ai.error=Ai.number=Ai.string=Ai.boolean=void 0;function bge(n){return n===!0||n===!1}Ai.boolean=bge;function KN(n){return typeof n=="string"||n instanceof String}Ai.string=KN;function vge(n){return typeof n=="number"||n instanceof Number}Ai.number=vge;function wge(n){return n instanceof Error}Ai.error=wge;function Dge(n){return typeof n=="function"}Ai.func=Dge;function QN(n){return Array.isArray(n)}Ai.array=QN;function Cge(n){return QN(n)&&n.every(e=>KN(e))}Ai.stringArray=Cge});var US=y(ce=>{"use strict";Object.defineProperty(ce,"__esModule",{value:!0});ce.Message=ce.NotificationType9=ce.NotificationType8=ce.NotificationType7=ce.NotificationType6=ce.NotificationType5=ce.NotificationType4=ce.NotificationType3=ce.NotificationType2=ce.NotificationType1=ce.NotificationType0=ce.NotificationType=ce.RequestType9=ce.RequestType8=ce.RequestType7=ce.RequestType6=ce.RequestType5=ce.RequestType4=ce.RequestType3=ce.RequestType2=ce.RequestType1=ce.RequestType=ce.RequestType0=ce.AbstractMessageSignature=ce.ParameterStructures=ce.ResponseError=ce.ErrorCodes=void 0;var Cl=ac(),zN;(function(n){n.ParseError=-32700,n.InvalidRequest=-32600,n.MethodNotFound=-32601,n.InvalidParams=-32602,n.InternalError=-32603,n.jsonrpcReservedErrorRangeStart=-32099,n.serverErrorStart=-32099,n.MessageWriteError=-32099,n.MessageReadError=-32098,n.PendingResponseRejected=-32097,n.ConnectionInactive=-32096,n.ServerNotInitialized=-32002,n.UnknownErrorCode=-32001,n.jsonrpcReservedErrorRangeEnd=-32e3,n.serverErrorEnd=-32e3})(zN=ce.ErrorCodes||(ce.ErrorCodes={}));var ny=class extends Error{constructor(e,t,i){super(t);this.code=Cl.number(e)?e:zN.UnknownErrorCode,this.data=i,Object.setPrototypeOf(this,ny.prototype)}toJson(){let e={code:this.code,message:this.message};return this.data!==void 0&&(e.data=this.data),e}};ce.ResponseError=ny;var Di=class{constructor(e){this.kind=e}static is(e){return e===Di.auto||e===Di.byName||e===Di.byPosition}toString(){return this.kind}};ce.ParameterStructures=Di;Di.auto=new Di("auto");Di.byPosition=new Di("byPosition");Di.byName=new Di("byName");var It=class{constructor(e,t){this.method=e,this.numberOfParams=t}get parameterStructures(){return Di.auto}};ce.AbstractMessageSignature=It;var VN=class extends It{constructor(e){super(e,0)}};ce.RequestType0=VN;var eB=class extends It{constructor(e,t=Di.auto){super(e,1);this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}};ce.RequestType=eB;var tB=class extends It{constructor(e,t=Di.auto){super(e,1);this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}};ce.RequestType1=tB;var iB=class extends It{constructor(e){super(e,2)}};ce.RequestType2=iB;var nB=class extends It{constructor(e){super(e,3)}};ce.RequestType3=nB;var rB=class extends It{constructor(e){super(e,4)}};ce.RequestType4=rB;var oB=class extends It{constructor(e){super(e,5)}};ce.RequestType5=oB;var sB=class extends It{constructor(e){super(e,6)}};ce.RequestType6=sB;var aB=class extends It{constructor(e){super(e,7)}};ce.RequestType7=aB;var lB=class extends It{constructor(e){super(e,8)}};ce.RequestType8=lB;var uB=class extends It{constructor(e){super(e,9)}};ce.RequestType9=uB;var cB=class extends It{constructor(e,t=Di.auto){super(e,1);this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}};ce.NotificationType=cB;var hB=class extends It{constructor(e){super(e,0)}};ce.NotificationType0=hB;var dB=class extends It{constructor(e,t=Di.auto){super(e,1);this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}};ce.NotificationType1=dB;var gB=class extends It{constructor(e){super(e,2)}};ce.NotificationType2=gB;var pB=class extends It{constructor(e){super(e,3)}};ce.NotificationType3=pB;var fB=class extends It{constructor(e){super(e,4)}};ce.NotificationType4=fB;var mB=class extends It{constructor(e){super(e,5)}};ce.NotificationType5=mB;var yB=class extends It{constructor(e){super(e,6)}};ce.NotificationType6=yB;var bB=class extends It{constructor(e){super(e,7)}};ce.NotificationType7=bB;var vB=class extends It{constructor(e){super(e,8)}};ce.NotificationType8=vB;var wB=class extends It{constructor(e){super(e,9)}};ce.NotificationType9=wB;var xge;(function(n){function e(r){let o=r;return o&&Cl.string(o.method)&&(Cl.string(o.id)||Cl.number(o.id))}n.isRequest=e;function t(r){let o=r;return o&&Cl.string(o.method)&&r.id===void 0}n.isNotification=t;function i(r){let o=r;return o&&(o.result!==void 0||!!o.error)&&(Cl.string(o.id)||Cl.number(o.id)||o.id===null)}n.isResponse=i})(xge=ce.Message||(ce.Message={}))});var KS=y(ns=>{"use strict";var DB;Object.defineProperty(ns,"__esModule",{value:!0});ns.LRUCache=ns.LinkedMap=ns.Touch=void 0;var tn;(function(n){n.None=0,n.First=1,n.AsOld=n.First,n.Last=2,n.AsNew=n.Last})(tn=ns.Touch||(ns.Touch={}));var GS=class{constructor(){this[DB]="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(e=this._head)==null?void 0:e.value}get last(){var e;return(e=this._tail)==null?void 0:e.value}has(e){return this._map.has(e)}get(e,t=tn.None){let i=this._map.get(e);if(!!i)return t!==tn.None&&this.touch(i,t),i.value}set(e,t,i=tn.None){let r=this._map.get(e);if(r)r.value=t,i!==tn.None&&this.touch(r,i);else{switch(r={key:e,value:t,next:void 0,previous:void 0},i){case tn.None:this.addItemLast(r);break;case tn.First:this.addItemFirst(r);break;case tn.Last:this.addItemLast(r);break;default:this.addItemLast(r);break}this._map.set(e,r),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){let 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");let e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){let i=this._state,r=this._head;for(;r;){if(t?e.bind(t)(r.value,r.key,this):e(r.value,r.key,this),this._state!==i)throw new Error("LinkedMap got modified during iteration.");r=r.next}}keys(){let e=this._state,t=this._head,i={[Symbol.iterator]:()=>i,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(t){let r={value:t.key,done:!1};return t=t.next,r}else return{value:void 0,done:!0}}};return i}values(){let e=this._state,t=this._head,i={[Symbol.iterator]:()=>i,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(t){let r={value:t.value,done:!1};return t=t.next,r}else return{value:void 0,done:!0}}};return i}entries(){let e=this._state,t=this._head,i={[Symbol.iterator]:()=>i,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(t){let r={value:[t.key,t.value],done:!1};return t=t.next,r}else return{value:void 0,done:!0}}};return i}[(DB=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let t=this._head,i=this.size;for(;t&&i>e;)this._map.delete(t.key),t=t.next,i--;this._head=t,this._size=i,t&&(t.previous=void 0),this._state++}addItemFirst(e){if(!this._head&&!this._tail)this._tail=e;else if(this._head)e.next=this._head,this._head.previous=e;else throw new Error("Invalid list");this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(this._tail)e.previous=this._tail,this._tail.next=e;else throw new Error("Invalid list");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{let t=e.next,i=e.previous;if(!t||!i)throw new Error("Invalid list");t.previous=i,i.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(!(t!==tn.First&&t!==tn.Last)){if(t===tn.First){if(e===this._head)return;let i=e.next,r=e.previous;e===this._tail?(r.next=void 0,this._tail=r):(i.previous=r,r.next=i),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(t===tn.Last){if(e===this._tail)return;let i=e.next,r=e.previous;e===this._head?(i.previous=void 0,this._head=i):(i.previous=r,r.next=i),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){let e=[];return this.forEach((t,i)=>{e.push([i,t])}),e}fromJSON(e){this.clear();for(let[t,i]of e)this.set(t,i)}};ns.LinkedMap=GS;var CB=class extends GS{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 ratio(){return this._ratio}set ratio(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()}get(e,t=tn.AsNew){return super.get(e,t)}peek(e){return super.get(e,tn.None)}set(e,t){return super.set(e,t,tn.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}};ns.LRUCache=CB});var lc=y(xl=>{"use strict";Object.defineProperty(xl,"__esModule",{value:!0});xl.Emitter=xl.Event=void 0;var Sge=is(),Tge;(function(n){let e={dispose(){}};n.None=function(){return e}})(Tge=xl.Event||(xl.Event={}));var xB=class{add(e,t=null,i){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(t),Array.isArray(i)&&i.push({dispose:()=>this.remove(e,t)})}remove(e,t=null){if(!this._callbacks)return;let i=!1;for(let r=0,o=this._callbacks.length;r{this._callbacks||(this._callbacks=new xB),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(e,t);let r={dispose:()=>{!this._callbacks||(this._callbacks.remove(e,t),r.dispose=ig._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(i)&&i.push(r),r}),this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}};xl.Emitter=ig;ig._noop=function(){}});var e0=y(Sl=>{"use strict";Object.defineProperty(Sl,"__esModule",{value:!0});Sl.CancellationTokenSource=Sl.CancellationToken=void 0;var kge=is(),Ege=ac(),QS=lc(),zS;(function(n){n.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:QS.Event.None}),n.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:QS.Event.None});function e(t){let i=t;return i&&(i===n.None||i===n.Cancelled||Ege.boolean(i.isCancellationRequested)&&!!i.onCancellationRequested)}n.is=e})(zS=Sl.CancellationToken||(Sl.CancellationToken={}));var Pge=Object.freeze(function(n,e){let t=(0,kge.default)().timer.setTimeout(n.bind(e),0);return{dispose(){t.dispose()}}}),VS=class{constructor(){this._isCancelled=!1}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?Pge:(this._emitter||(this._emitter=new QS.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},SB=class{get token(){return this._token||(this._token=new VS),this._token}cancel(){this._token?this._token.cancel():this._token=zS.Cancelled}dispose(){this._token?this._token instanceof VS&&this._token.dispose():this._token=zS.None}};Sl.CancellationTokenSource=SB});var kB=y(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});rs.ReadableStreamMessageReader=rs.AbstractMessageReader=rs.MessageReader=void 0;var i0=is(),uc=ac(),t0=lc(),_ge;(function(n){function e(t){let i=t;return i&&uc.func(i.listen)&&uc.func(i.dispose)&&uc.func(i.onError)&&uc.func(i.onClose)&&uc.func(i.onPartialMessage)}n.is=e})(_ge=rs.MessageReader||(rs.MessageReader={}));var r0=class{constructor(){this.errorEmitter=new t0.Emitter,this.closeEmitter=new t0.Emitter,this.partialMessageEmitter=new t0.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e){this.errorEmitter.fire(this.asError(e))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(e){this.partialMessageEmitter.fire(e)}asError(e){return e instanceof Error?e:new Error(`Reader received error. Reason: ${uc.string(e.message)?e.message:"unknown"}`)}};rs.AbstractMessageReader=r0;var n0;(function(n){function e(t){let i,r,o,s=new Map,a,l=new Map;if(t===void 0||typeof t=="string")i=t??"utf-8";else{if(i=t.charset??"utf-8",t.contentDecoder!==void 0&&(o=t.contentDecoder,s.set(o.name,o)),t.contentDecoders!==void 0)for(let u of t.contentDecoders)s.set(u.name,u);if(t.contentTypeDecoder!==void 0&&(a=t.contentTypeDecoder,l.set(a.name,a)),t.contentTypeDecoders!==void 0)for(let u of t.contentTypeDecoders)l.set(u.name,u)}return a===void 0&&(a=(0,i0.default)().applicationJson.decoder,l.set(a.name,a)),{charset:i,contentDecoder:o,contentDecoders:s,contentTypeDecoder:a,contentTypeDecoders:l}}n.fromOptions=e})(n0||(n0={}));var TB=class extends r0{constructor(e,t){super();this.readable=e,this.options=n0.fromOptions(t),this.buffer=(0,i0.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0}set partialMessageTimeout(e){this._partialMessageTimeout=e}get partialMessageTimeout(){return this._partialMessageTimeout}listen(e){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=e;let t=this.readable.onData(i=>{this.onData(i)});return this.readable.onError(i=>this.fireError(i)),this.readable.onClose(()=>this.fireClose()),t}onData(e){for(this.buffer.append(e);;){if(this.nextMessageLength===-1){let r=this.buffer.tryReadHeaders();if(!r)return;let o=r.get("Content-Length");if(!o)throw new Error("Header must provide a Content-Length property.");let s=parseInt(o);if(isNaN(s))throw new Error("Content-Length value must be a number.");this.nextMessageLength=s}let t=this.buffer.tryReadBody(this.nextMessageLength);if(t===void 0){this.setPartialMessageTimer();return}this.clearPartialMessageTimer(),this.nextMessageLength=-1;let i;this.options.contentDecoder!==void 0?i=this.options.contentDecoder.decode(t):i=Promise.resolve(t),i.then(r=>{this.options.contentTypeDecoder.decode(r,this.options).then(o=>{this.callback(o)},o=>{this.fireError(o)})},r=>{this.fireError(r)})}}clearPartialMessageTimer(){this.partialMessageTimer&&(this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),!(this._partialMessageTimeout<=0)&&(this.partialMessageTimer=(0,i0.default)().timer.setTimeout((e,t)=>{this.partialMessageTimer=void 0,e===this.messageToken&&(this.firePartialMessage({messageToken:e,waitingTime:t}),this.setPartialMessageTimer())},this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}};rs.ReadableStreamMessageReader=TB});var PB=y(ry=>{"use strict";Object.defineProperty(ry,"__esModule",{value:!0});ry.Semaphore=void 0;var Rge=is(),EB=class{constructor(e=1){if(e<=0)throw new Error("Capacity must be greater than 0");this._capacity=e,this._active=0,this._waiting=[]}lock(e){return new Promise((t,i)=>{this._waiting.push({thunk:e,resolve:t,reject:i}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length===0||this._active===this._capacity||(0,Rge.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;let e=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("To many thunks active");try{let t=e.thunk();t instanceof Promise?t.then(i=>{this._active--,e.resolve(i),this.runNext()},i=>{this._active--,e.reject(i),this.runNext()}):(this._active--,e.resolve(t),this.runNext())}catch(t){this._active--,e.reject(t),this.runNext()}}};ry.Semaphore=EB});var IB=y(os=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});os.WriteableStreamMessageWriter=os.AbstractMessageWriter=os.MessageWriter=void 0;var _B=is(),ng=ac(),Lge=PB(),RB=lc(),Fge="Content-Length: ",LB=`\r +`,Ige;(function(n){function e(t){let i=t;return i&&ng.func(i.dispose)&&ng.func(i.onClose)&&ng.func(i.onError)&&ng.func(i.write)}n.is=e})(Ige=os.MessageWriter||(os.MessageWriter={}));var s0=class{constructor(){this.errorEmitter=new RB.Emitter,this.closeEmitter=new RB.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e,t,i){this.errorEmitter.fire([this.asError(e),t,i])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}asError(e){return e instanceof Error?e:new Error(`Writer received error. Reason: ${ng.string(e.message)?e.message:"unknown"}`)}};os.AbstractMessageWriter=s0;var o0;(function(n){function e(t){return t===void 0||typeof t=="string"?{charset:t??"utf-8",contentTypeEncoder:(0,_B.default)().applicationJson.encoder}:{charset:t.charset??"utf-8",contentEncoder:t.contentEncoder,contentTypeEncoder:t.contentTypeEncoder??(0,_B.default)().applicationJson.encoder}}n.fromOptions=e})(o0||(o0={}));var FB=class extends s0{constructor(e,t){super();this.writable=e,this.options=o0.fromOptions(t),this.errorCount=0,this.writeSemaphore=new Lge.Semaphore(1),this.writable.onError(i=>this.fireError(i)),this.writable.onClose(()=>this.fireClose())}async write(e){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(e,this.options).then(i=>this.options.contentEncoder!==void 0?this.options.contentEncoder.encode(i):i).then(i=>{let r=[];return r.push(Fge,i.byteLength.toString(),LB),r.push(LB),this.doWrite(e,r,i)},i=>{throw this.fireError(i),i}))}async doWrite(e,t,i){try{return await this.writable.write(t.join(""),"ascii"),this.writable.write(i)}catch(r){return this.handleError(r,e),Promise.reject(r)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){this.writable.end()}};os.WriteableStreamMessageWriter=FB});var HB=y(ye=>{"use strict";Object.defineProperty(ye,"__esModule",{value:!0});ye.createMessageConnection=ye.ConnectionOptions=ye.CancellationStrategy=ye.CancellationSenderStrategy=ye.CancellationReceiverStrategy=ye.ConnectionStrategy=ye.ConnectionError=ye.ConnectionErrors=ye.LogTraceNotification=ye.SetTraceNotification=ye.TraceFormat=ye.TraceValues=ye.Trace=ye.NullLogger=ye.ProgressType=ye.ProgressToken=void 0;var jB=is(),ri=ac(),De=US(),AB=KS(),rg=lc(),a0=e0(),sg;(function(n){n.type=new De.NotificationType("$/cancelRequest")})(sg||(sg={}));var MB;(function(n){function e(t){return typeof t=="string"||typeof t=="number"}n.is=e})(MB=ye.ProgressToken||(ye.ProgressToken={}));var og;(function(n){n.type=new De.NotificationType("$/progress")})(og||(og={}));var OB=class{constructor(){}};ye.ProgressType=OB;var l0;(function(n){function e(t){return ri.func(t)}n.is=e})(l0||(l0={}));ye.NullLogger=Object.freeze({error:()=>{},warn:()=>{},info:()=>{},log:()=>{}});var st;(function(n){n[n.Off=0]="Off",n[n.Messages=1]="Messages",n[n.Compact=2]="Compact",n[n.Verbose=3]="Verbose"})(st=ye.Trace||(ye.Trace={}));var jge;(function(n){n.Off="off",n.Messages="messages",n.Compact="compact",n.Verbose="verbose"})(jge=ye.TraceValues||(ye.TraceValues={}));(function(n){function e(i){if(!ri.string(i))return n.Off;switch(i=i.toLowerCase(),i){case"off":return n.Off;case"messages":return n.Messages;case"compact":return n.Compact;case"verbose":return n.Verbose;default:return n.Off}}n.fromString=e;function t(i){switch(i){case n.Off:return"off";case n.Messages:return"messages";case n.Compact:return"compact";case n.Verbose:return"verbose";default:return"off"}}n.toString=t})(st=ye.Trace||(ye.Trace={}));var Ir;(function(n){n.Text="text",n.JSON="json"})(Ir=ye.TraceFormat||(ye.TraceFormat={}));(function(n){function e(t){return ri.string(t)?(t=t.toLowerCase(),t==="json"?n.JSON:n.Text):n.Text}n.fromString=e})(Ir=ye.TraceFormat||(ye.TraceFormat={}));var NB;(function(n){n.type=new De.NotificationType("$/setTrace")})(NB=ye.SetTraceNotification||(ye.SetTraceNotification={}));var u0;(function(n){n.type=new De.NotificationType("$/logTrace")})(u0=ye.LogTraceNotification||(ye.LogTraceNotification={}));var oy;(function(n){n[n.Closed=1]="Closed",n[n.Disposed=2]="Disposed",n[n.AlreadyListening=3]="AlreadyListening"})(oy=ye.ConnectionErrors||(ye.ConnectionErrors={}));var Tl=class extends Error{constructor(e,t){super(t);this.code=e,Object.setPrototypeOf(this,Tl.prototype)}};ye.ConnectionError=Tl;var BB;(function(n){function e(t){let i=t;return i&&ri.func(i.cancelUndispatched)}n.is=e})(BB=ye.ConnectionStrategy||(ye.ConnectionStrategy={}));var c0;(function(n){n.Message=Object.freeze({createCancellationTokenSource(t){return new a0.CancellationTokenSource}});function e(t){let i=t;return i&&ri.func(i.createCancellationTokenSource)}n.is=e})(c0=ye.CancellationReceiverStrategy||(ye.CancellationReceiverStrategy={}));var h0;(function(n){n.Message=Object.freeze({sendCancellation(t,i){return t.sendNotification(sg.type,{id:i})},cleanup(t){}});function e(t){let i=t;return i&&ri.func(i.sendCancellation)&&ri.func(i.cleanup)}n.is=e})(h0=ye.CancellationSenderStrategy||(ye.CancellationSenderStrategy={}));var d0;(function(n){n.Message=Object.freeze({receiver:c0.Message,sender:h0.Message});function e(t){let i=t;return i&&c0.is(i.receiver)&&h0.is(i.sender)}n.is=e})(d0=ye.CancellationStrategy||(ye.CancellationStrategy={}));var Age;(function(n){function e(t){let i=t;return i&&(d0.is(i.cancellationStrategy)||BB.is(i.connectionStrategy))}n.is=e})(Age=ye.ConnectionOptions||(ye.ConnectionOptions={}));var jr;(function(n){n[n.New=1]="New",n[n.Listening=2]="Listening",n[n.Closed=3]="Closed",n[n.Disposed=4]="Disposed"})(jr||(jr={}));function Mge(n,e,t,i){let r=t!==void 0?t:ye.NullLogger,o=0,s=0,a=0,l="2.0",u,c=new Map,h,d=new Map,g=new Map,p,f=new AB.LinkedMap,m=new Map,b=new Set,w=new Map,D=st.Off,T=Ir.Text,R,N=jr.New,H=new rg.Emitter,X=new rg.Emitter,B=new rg.Emitter,M=new rg.Emitter,F=new rg.Emitter,O=i&&i.cancellationStrategy?i.cancellationStrategy:d0.Message;function Z(E){if(E===null)throw new Error("Can't send requests with id null since the response can't be correlated.");return"req-"+E.toString()}function ie(E){return E===null?"res-unknown-"+(++a).toString():"res-"+E.toString()}function ge(){return"not-"+(++s).toString()}function _e(E,Q){De.Message.isRequest(Q)?E.set(Z(Q.id),Q):De.Message.isResponse(Q)?E.set(ie(Q.id),Q):E.set(ge(),Q)}function J(E){}function Y(){return N===jr.Listening}function K(){return N===jr.Closed}function z(){return N===jr.Disposed}function ke(){(N===jr.New||N===jr.Listening)&&(N=jr.Closed,X.fire(void 0))}function Se(E){H.fire([E,void 0,void 0])}function Ge(E){H.fire(E)}n.onClose(ke),n.onError(Se),e.onClose(ke),e.onError(Ge);function jn(){p||f.size===0||(p=(0,jB.default)().timer.setImmediate(()=>{p=void 0,Ri()}))}function Ri(){if(f.size===0)return;let E=f.shift();try{De.Message.isRequest(E)?Tr(E):De.Message.isNotification(E)?Me(E):De.Message.isResponse(E)?Re(E):Oe(E)}finally{jn()}}let Li=E=>{try{if(De.Message.isNotification(E)&&E.method===sg.type.method){let Q=E.params.id,te=Z(Q),ue=f.get(te);if(De.Message.isRequest(ue)){let Et=i==null?void 0:i.connectionStrategy,Dt=Et&&Et.cancelUndispatched?Et.cancelUndispatched(ue,J):void 0;if(Dt&&(Dt.error!==void 0||Dt.result!==void 0)){f.delete(te),w.delete(Q),Dt.id=ue.id,mn(Dt,E.method,Date.now()),e.write(Dt).catch(()=>r.error("Sending response for canceled message failed."));return}}let kt=w.get(Q);if(kt!==void 0){kt.cancel(),od(E);return}else b.add(Q)}_e(f,E)}finally{jn()}};function Tr(E){if(z())return;function Q($e,Ot,tt){let ii={jsonrpc:l,id:E.id};$e instanceof De.ResponseError?ii.error=$e.toJson():ii.result=$e===void 0?null:$e,mn(ii,Ot,tt),e.write(ii).catch(()=>r.error("Sending response failed."))}function te($e,Ot,tt){let ii={jsonrpc:l,id:E.id,error:$e.toJson()};mn(ii,Ot,tt),e.write(ii).catch(()=>r.error("Sending response failed."))}function ue($e,Ot,tt){$e===void 0&&($e=null);let ii={jsonrpc:l,id:E.id,result:$e};mn(ii,Ot,tt),e.write(ii).catch(()=>r.error("Sending response failed."))}An(E);let kt=c.get(E.method),Et,Dt;kt&&(Et=kt.type,Dt=kt.handler);let hi=Date.now();if(Dt||u){let $e=E.id??String(Date.now()),Ot=O.receiver.createCancellationTokenSource($e);E.id!==null&&b.has(E.id)&&Ot.cancel(),E.id!==null&&w.set($e,Ot);try{let tt;if(Dt)if(E.params===void 0){if(Et!==void 0&&Et.numberOfParams!==0){te(new De.ResponseError(De.ErrorCodes.InvalidParams,`Request ${E.method} defines ${Et.numberOfParams} params but received none.`),E.method,hi);return}tt=Dt(Ot.token)}else if(Array.isArray(E.params)){if(Et!==void 0&&Et.parameterStructures===De.ParameterStructures.byName){te(new De.ResponseError(De.ErrorCodes.InvalidParams,`Request ${E.method} defines parameters by name but received parameters by position`),E.method,hi);return}tt=Dt(...E.params,Ot.token)}else{if(Et!==void 0&&Et.parameterStructures===De.ParameterStructures.byPosition){te(new De.ResponseError(De.ErrorCodes.InvalidParams,`Request ${E.method} defines parameters by position but received parameters by name`),E.method,hi);return}tt=Dt(E.params,Ot.token)}else u&&(tt=u(E.method,E.params,Ot.token));let ii=tt;tt?ii.then?ii.then(yn=>{w.delete($e),Q(yn,E.method,hi)},yn=>{w.delete($e),yn instanceof De.ResponseError?te(yn,E.method,hi):yn&&ri.string(yn.message)?te(new De.ResponseError(De.ErrorCodes.InternalError,`Request ${E.method} failed with message: ${yn.message}`),E.method,hi):te(new De.ResponseError(De.ErrorCodes.InternalError,`Request ${E.method} failed unexpectedly without providing any details.`),E.method,hi)}):(w.delete($e),Q(tt,E.method,hi)):(w.delete($e),ue(tt,E.method,hi))}catch(tt){w.delete($e),tt instanceof De.ResponseError?Q(tt,E.method,hi):tt&&ri.string(tt.message)?te(new De.ResponseError(De.ErrorCodes.InternalError,`Request ${E.method} failed with message: ${tt.message}`),E.method,hi):te(new De.ResponseError(De.ErrorCodes.InternalError,`Request ${E.method} failed unexpectedly without providing any details.`),E.method,hi)}}else te(new De.ResponseError(De.ErrorCodes.MethodNotFound,`Unhandled method ${E.method}`),E.method,hi)}function Re(E){if(!z())if(E.id===null)E.error?r.error(`Received response message without id: Error is: +${JSON.stringify(E.error,void 0,4)}`):r.error("Received response message without id. No further error information provided.");else{let Q=E.id,te=m.get(Q);if(Of(E,te),te!==void 0){m.delete(Q);try{if(E.error){let ue=E.error;te.reject(new De.ResponseError(ue.code,ue.message,ue.data))}else if(E.result!==void 0)te.resolve(E.result);else throw new Error("Should never happen.")}catch(ue){ue.message?r.error(`Response handler '${te.method}' failed with message: ${ue.message}`):r.error(`Response handler '${te.method}' failed unexpectedly.`)}}}}function Me(E){if(z())return;let Q,te;if(E.method===sg.type.method){let ue=E.params.id;b.delete(ue),od(E);return}else{let ue=d.get(E.method);ue&&(te=ue.handler,Q=ue.type)}if(te||h)try{if(od(E),te)if(E.params===void 0)Q!==void 0&&Q.numberOfParams!==0&&Q.parameterStructures!==De.ParameterStructures.byName&&r.error(`Notification ${E.method} defines ${Q.numberOfParams} params but received none.`),te();else if(Array.isArray(E.params)){let ue=E.params;E.method===og.type.method&&ue.length===2&&MB.is(ue[0])?te({token:ue[0],value:ue[1]}):(Q!==void 0&&(Q.parameterStructures===De.ParameterStructures.byName&&r.error(`Notification ${E.method} defines parameters by name but received parameters by position`),Q.numberOfParams!==E.params.length&&r.error(`Notification ${E.method} defines ${Q.numberOfParams} params but received ${ue.length} arguments`)),te(...ue))}else Q!==void 0&&Q.parameterStructures===De.ParameterStructures.byPosition&&r.error(`Notification ${E.method} defines parameters by position but received parameters by name`),te(E.params);else h&&h(E.method,E.params)}catch(ue){ue.message?r.error(`Notification handler '${E.method}' failed with message: ${ue.message}`):r.error(`Notification handler '${E.method}' failed unexpectedly.`)}else B.fire(E)}function Oe(E){if(!E){r.error("Received empty message.");return}r.error(`Received message which is neither a response nor a notification message: +${JSON.stringify(E,null,4)}`);let Q=E;if(ri.string(Q.id)||ri.number(Q.id)){let te=Q.id,ue=m.get(te);ue&&ue.reject(new Error("The received response has neither a result nor an error property."))}}function Le(E){if(E!=null)switch(D){case st.Verbose:return JSON.stringify(E,null,4);case st.Compact:return JSON.stringify(E);default:return}}function ti(E){if(!(D===st.Off||!R))if(T===Ir.Text){let Q;(D===st.Verbose||D===st.Compact)&&E.params&&(Q=`Params: ${Le(E.params)} -`),S.log(`Sending request '${P.method} - (${P.id})'.`,$)}else vs("send-request",P)}function Le(P){if(!(w===Wt.Off||!S))if(D===xr.Text){let $;w===Wt.Verbose&&(P.params?$=`Params: ${JSON.stringify(P.params,null,4)} +`),R.log(`Sending request '${E.method} - (${E.id})'.`,Q)}else Eu("send-request",E)}function kr(E){if(!(D===st.Off||!R))if(T===Ir.Text){let Q;(D===st.Verbose||D===st.Compact)&&(E.params?Q=`Params: ${Le(E.params)} -`:$=`No parameters provided. +`:Q=`No parameters provided. -`),S.log(`Sending notification '${P.method}'.`,$)}else vs("send-notification",P)}function It(P,$,G){if(!(w===Wt.Off||!S))if(D===xr.Text){let ce;w===Wt.Verbose&&(P.error&&P.error.data?ce=`Error data: ${JSON.stringify(P.error.data,null,4)} +`),R.log(`Sending notification '${E.method}'.`,Q)}else Eu("send-notification",E)}function mn(E,Q,te){if(!(D===st.Off||!R))if(T===Ir.Text){let ue;(D===st.Verbose||D===st.Compact)&&(E.error&&E.error.data?ue=`Error data: ${Le(E.error.data)} -`:P.result?ce=`Result: ${JSON.stringify(P.result,null,4)} +`:E.result?ue=`Result: ${Le(E.result)} -`:P.error===void 0&&(ce=`No result returned. +`:E.error===void 0&&(ue=`No result returned. -`)),S.log(`Sending response '${$} - (${P.id})'. Processing request took ${Date.now()-G}ms`,ce)}else vs("send-response",P)}function fr(P){if(!(w===Wt.Off||!S))if(D===xr.Text){let $;w===Wt.Verbose&&P.params&&($=`Params: ${JSON.stringify(P.params,null,4)} +`)),R.log(`Sending response '${Q} - (${E.id})'. Processing request took ${Date.now()-te}ms`,ue)}else Eu("send-response",E)}function An(E){if(!(D===st.Off||!R))if(T===Ir.Text){let Q;(D===st.Verbose||D===st.Compact)&&E.params&&(Q=`Params: ${Le(E.params)} -`),S.log(`Received request '${P.method} - (${P.id})'.`,$)}else vs("receive-request",P)}function pr(P){if(!(w===Wt.Off||!S||P.method===ES.type.method))if(D===xr.Text){let $;w===Wt.Verbose&&(P.params?$=`Params: ${JSON.stringify(P.params,null,4)} +`),R.log(`Received request '${E.method} - (${E.id})'.`,Q)}else Eu("receive-request",E)}function od(E){if(!(D===st.Off||!R||E.method===u0.type.method))if(T===Ir.Text){let Q;(D===st.Verbose||D===st.Compact)&&(E.params?Q=`Params: ${Le(E.params)} -`:$=`No parameters provided. +`:Q=`No parameters provided. -`),S.log(`Received notification '${P.method}'.`,$)}else vs("receive-notification",P)}function kn(P,$){if(!(w===Wt.Off||!S))if(D===xr.Text){let G;if(w===Wt.Verbose&&(P.error&&P.error.data?G=`Error data: ${JSON.stringify(P.error.data,null,4)} +`),R.log(`Received notification '${E.method}'.`,Q)}else Eu("receive-notification",E)}function Of(E,Q){if(!(D===st.Off||!R))if(T===Ir.Text){let te;if((D===st.Verbose||D===st.Compact)&&(E.error&&E.error.data?te=`Error data: ${Le(E.error.data)} -`:P.result?G=`Result: ${JSON.stringify(P.result,null,4)} +`:E.result?te=`Result: ${Le(E.result)} -`:P.error===void 0&&(G=`No result returned. +`:E.error===void 0&&(te=`No result returned. -`)),$){let ce=P.error?` Request failed: ${P.error.message} (${P.error.code}).`:"";S.log(`Received response '${$.method} - (${P.id})' in ${Date.now()-$.timerStart}ms.${ce}`,G)}else S.log(`Received response ${P.id} without active response promise.`,G)}else vs("receive-response",P)}function vs(P,$){if(!S||w===Wt.Off)return;let G={isLSPMessage:!0,type:P,message:$,timestamp:Date.now()};S.log(G)}function ws(){if(Ve())throw new dl(Hm.Closed,"Connection is closed.");if(Et())throw new dl(Hm.Disposed,"Connection is disposed.")}function Kte(){if(_e())throw new dl(Hm.AlreadyListening,"Connection is already listening")}function zte(){if(!_e())throw new Error("Call listen() first.")}function Zh(P){return P===void 0?null:P}function pR(P){if(P!==null)return P}function mR(P){return P!=null&&!Array.isArray(P)&&typeof P=="object"}function Tx(P,$){switch(P){case me.ParameterStructures.auto:return mR($)?pR($):[Zh($)];case me.ParameterStructures.byName:if(!mR($))throw new Error("Recevied parameters by name but param is not an object literal.");return pR($);case me.ParameterStructures.byPosition:return[Zh($)];default:throw new Error(`Unknown parameter structure ${P.toString()}`)}}function bR(P,$){let G,ce=P.numberOfParams;switch(ce){case 0:G=void 0;break;case 1:G=Tx(P.parameterStructures,$[0]);break;default:G=[];for(let Ye=0;Ye<$.length&&Ye{ws();let G,ce;if(ai.string(P)){G=P;let jt=$[0],Qt=0,ri=me.ParameterStructures.auto;me.ParameterStructures.is(jt)&&(Qt=1,ri=jt);let $e=$.length,At=$e-Qt;switch(At){case 0:ce=void 0;break;case 1:ce=Tx(ri,$[Qt]);break;default:if(ri===me.ParameterStructures.byName)throw new Error(`Recevied ${At} parameters for 'by Name' notification parameter structure.`);ce=$.slice(Qt,$e).map(Xe=>Zh(Xe));break}}else{let jt=$;G=P.method,ce=bR(P,jt)}let Ye={jsonrpc:l,method:G,params:ce};Le(Ye),e.write(Ye)},onNotification:(P,$)=>{ws();let G;return ai.func(P)?h=P:$&&(ai.string(P)?(G=P,d[P]={type:void 0,handler:$}):(G=P.method,d[P.method]={type:P,handler:$})),{dispose:()=>{G!==void 0?delete d[G]:h=void 0}}},onProgress:(P,$,G)=>{if(g.has($))throw new Error(`Progress handler for token ${$} already registered`);return g.set($,G),{dispose:()=>{g.delete($)}}},sendProgress:(P,$,G)=>{fu.sendNotification(qm.type,{token:$,value:G})},onUnhandledProgress:B.event,sendRequest:(P,...$)=>{ws(),zte();let G,ce,Ye;if(ai.string(P)){G=P;let $e=$[0],At=$[$.length-1],Xe=0,Kt=me.ParameterStructures.auto;me.ParameterStructures.is($e)&&(Xe=1,Kt=$e);let nn=$.length;TS.CancellationToken.is(At)&&(nn=nn-1,Ye=At);let Na=nn-Xe;switch(Na){case 0:ce=void 0;break;case 1:ce=Tx(Kt,$[Xe]);break;default:if(Kt===me.ParameterStructures.byName)throw new Error(`Recevied ${Na} parameters for 'by Name' request parameter structure.`);ce=$.slice(Xe,nn).map(Ds=>Zh(Ds));break}}else{let $e=$;G=P.method,ce=bR(P,$e);let At=P.numberOfParams;Ye=TS.CancellationToken.is($e[At])?$e[At]:void 0}let jt=o++,Qt;return Ye&&(Qt=Ye.onCancellationRequested(()=>{I.sender.sendCancellation(fu,jt)})),new Promise(($e,At)=>{let Xe={jsonrpc:l,id:jt,method:G,params:ce},Kt=Ds=>{$e(Ds),I.sender.cleanup(jt),Qt==null||Qt.dispose()},nn=Ds=>{At(Ds),I.sender.cleanup(jt),Qt==null||Qt.dispose()},Na={method:G,timerStart:Date.now(),resolve:Kt,reject:nn};Te(Xe);try{e.write(Xe)}catch(Ds){Na.reject(new me.ResponseError(me.ErrorCodes.MessageWriteError,Ds.message?Ds.message:"Unknown reason")),Na=null}Na&&(b[String(jt)]=Na)})},onRequest:(P,$)=>{ws();let G=null;return kS.is(P)?(G=void 0,u=P):ai.string(P)?(G=null,$!==void 0&&(G=P,c[P]={handler:$,type:void 0})):$!==void 0&&(G=P.method,c[P.method]={type:P,handler:$}),{dispose:()=>{G!==null&&(G!==void 0?delete c[G]:u=void 0)}}},trace:(P,$,G)=>{let ce=!1,Ye=xr.Text;G!==void 0&&(ai.boolean(G)?ce=G:(ce=G.sendNotification||!1,Ye=G.traceFormat||xr.Text)),w=P,D=Ye,w===Wt.Off?S=void 0:S=$,ce&&!Ve()&&!Et()&&fu.sendNotification(BN.type,{value:Wt.toString(P)})},onError:L.event,onClose:j.event,onUnhandledNotification:W.event,onDispose:N.event,end:()=>{e.end()},dispose:()=>{if(Et())return;F=Cr.Disposed,N.fire(void 0);let P=new Error("Connection got disposed.");Object.keys(b).forEach($=>{b[$].reject(P)}),b=Object.create(null),v=Object.create(null),p=new MN.LinkedMap,ai.func(e.dispose)&&e.dispose(),ai.func(n.dispose)&&n.dispose()},listen:()=>{ws(),Kte(),F=Cr.Listening,n.listen(Sx)},inspect:()=>{ON.default().console.log("inspect")}};return fu.onNotification(ES.type,P=>{w===Wt.Off||!S||S.log(P.message,w===Wt.Verbose?P.verbose:void 0)}),fu.onNotification(qm.type,P=>{let $=g.get(P.token);$?$(P.value):B.fire(P)}),fu}be.createMessageConnection=ide});var IS=m(X=>{"use strict";Object.defineProperty(X,"__esModule",{value:!0});X.CancellationSenderStrategy=X.CancellationReceiverStrategy=X.ConnectionError=X.ConnectionErrors=X.LogTraceNotification=X.SetTraceNotification=X.TraceFormat=X.Trace=X.ProgressType=X.createMessageConnection=X.NullLogger=X.ConnectionOptions=X.ConnectionStrategy=X.WriteableStreamMessageWriter=X.AbstractMessageWriter=X.MessageWriter=X.ReadableStreamMessageReader=X.AbstractMessageReader=X.MessageReader=X.CancellationToken=X.CancellationTokenSource=X.Emitter=X.Event=X.Disposable=X.ParameterStructures=X.NotificationType9=X.NotificationType8=X.NotificationType7=X.NotificationType6=X.NotificationType5=X.NotificationType4=X.NotificationType3=X.NotificationType2=X.NotificationType1=X.NotificationType0=X.NotificationType=X.ErrorCodes=X.ResponseError=X.RequestType9=X.RequestType8=X.RequestType7=X.RequestType6=X.RequestType5=X.RequestType4=X.RequestType3=X.RequestType2=X.RequestType1=X.RequestType0=X.RequestType=X.RAL=void 0;X.CancellationStrategy=void 0;var mt=fS();Object.defineProperty(X,"RequestType",{enumerable:!0,get:function(){return mt.RequestType}});Object.defineProperty(X,"RequestType0",{enumerable:!0,get:function(){return mt.RequestType0}});Object.defineProperty(X,"RequestType1",{enumerable:!0,get:function(){return mt.RequestType1}});Object.defineProperty(X,"RequestType2",{enumerable:!0,get:function(){return mt.RequestType2}});Object.defineProperty(X,"RequestType3",{enumerable:!0,get:function(){return mt.RequestType3}});Object.defineProperty(X,"RequestType4",{enumerable:!0,get:function(){return mt.RequestType4}});Object.defineProperty(X,"RequestType5",{enumerable:!0,get:function(){return mt.RequestType5}});Object.defineProperty(X,"RequestType6",{enumerable:!0,get:function(){return mt.RequestType6}});Object.defineProperty(X,"RequestType7",{enumerable:!0,get:function(){return mt.RequestType7}});Object.defineProperty(X,"RequestType8",{enumerable:!0,get:function(){return mt.RequestType8}});Object.defineProperty(X,"RequestType9",{enumerable:!0,get:function(){return mt.RequestType9}});Object.defineProperty(X,"ResponseError",{enumerable:!0,get:function(){return mt.ResponseError}});Object.defineProperty(X,"ErrorCodes",{enumerable:!0,get:function(){return mt.ErrorCodes}});Object.defineProperty(X,"NotificationType",{enumerable:!0,get:function(){return mt.NotificationType}});Object.defineProperty(X,"NotificationType0",{enumerable:!0,get:function(){return mt.NotificationType0}});Object.defineProperty(X,"NotificationType1",{enumerable:!0,get:function(){return mt.NotificationType1}});Object.defineProperty(X,"NotificationType2",{enumerable:!0,get:function(){return mt.NotificationType2}});Object.defineProperty(X,"NotificationType3",{enumerable:!0,get:function(){return mt.NotificationType3}});Object.defineProperty(X,"NotificationType4",{enumerable:!0,get:function(){return mt.NotificationType4}});Object.defineProperty(X,"NotificationType5",{enumerable:!0,get:function(){return mt.NotificationType5}});Object.defineProperty(X,"NotificationType6",{enumerable:!0,get:function(){return mt.NotificationType6}});Object.defineProperty(X,"NotificationType7",{enumerable:!0,get:function(){return mt.NotificationType7}});Object.defineProperty(X,"NotificationType8",{enumerable:!0,get:function(){return mt.NotificationType8}});Object.defineProperty(X,"NotificationType9",{enumerable:!0,get:function(){return mt.NotificationType9}});Object.defineProperty(X,"ParameterStructures",{enumerable:!0,get:function(){return mt.ParameterStructures}});var nde=hS();Object.defineProperty(X,"Disposable",{enumerable:!0,get:function(){return nde.Disposable}});var YN=Uu();Object.defineProperty(X,"Event",{enumerable:!0,get:function(){return YN.Event}});Object.defineProperty(X,"Emitter",{enumerable:!0,get:function(){return YN.Emitter}});var WN=yS();Object.defineProperty(X,"CancellationTokenSource",{enumerable:!0,get:function(){return WN.CancellationTokenSource}});Object.defineProperty(X,"CancellationToken",{enumerable:!0,get:function(){return WN.CancellationToken}});var LS=kN();Object.defineProperty(X,"MessageReader",{enumerable:!0,get:function(){return LS.MessageReader}});Object.defineProperty(X,"AbstractMessageReader",{enumerable:!0,get:function(){return LS.AbstractMessageReader}});Object.defineProperty(X,"ReadableStreamMessageReader",{enumerable:!0,get:function(){return LS.ReadableStreamMessageReader}});var FS=IN();Object.defineProperty(X,"MessageWriter",{enumerable:!0,get:function(){return FS.MessageWriter}});Object.defineProperty(X,"AbstractMessageWriter",{enumerable:!0,get:function(){return FS.AbstractMessageWriter}});Object.defineProperty(X,"WriteableStreamMessageWriter",{enumerable:!0,get:function(){return FS.WriteableStreamMessageWriter}});var ln=qN();Object.defineProperty(X,"ConnectionStrategy",{enumerable:!0,get:function(){return ln.ConnectionStrategy}});Object.defineProperty(X,"ConnectionOptions",{enumerable:!0,get:function(){return ln.ConnectionOptions}});Object.defineProperty(X,"NullLogger",{enumerable:!0,get:function(){return ln.NullLogger}});Object.defineProperty(X,"createMessageConnection",{enumerable:!0,get:function(){return ln.createMessageConnection}});Object.defineProperty(X,"ProgressType",{enumerable:!0,get:function(){return ln.ProgressType}});Object.defineProperty(X,"Trace",{enumerable:!0,get:function(){return ln.Trace}});Object.defineProperty(X,"TraceFormat",{enumerable:!0,get:function(){return ln.TraceFormat}});Object.defineProperty(X,"SetTraceNotification",{enumerable:!0,get:function(){return ln.SetTraceNotification}});Object.defineProperty(X,"LogTraceNotification",{enumerable:!0,get:function(){return ln.LogTraceNotification}});Object.defineProperty(X,"ConnectionErrors",{enumerable:!0,get:function(){return ln.ConnectionErrors}});Object.defineProperty(X,"ConnectionError",{enumerable:!0,get:function(){return ln.ConnectionError}});Object.defineProperty(X,"CancellationReceiverStrategy",{enumerable:!0,get:function(){return ln.CancellationReceiverStrategy}});Object.defineProperty(X,"CancellationSenderStrategy",{enumerable:!0,get:function(){return ln.CancellationSenderStrategy}});Object.defineProperty(X,"CancellationStrategy",{enumerable:!0,get:function(){return ln.CancellationStrategy}});var rde=Mo();X.RAL=rde.default});var Vu=m(We=>{"use strict";var ode=We&&We.__createBinding||(Object.create?function(n,e,t,i){i===void 0&&(i=t),Object.defineProperty(n,i,{enumerable:!0,get:function(){return e[t]}})}:function(n,e,t,i){i===void 0&&(i=t),n[i]=e[t]}),sde=We&&We.__exportStar||function(n,e){for(var t in n)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&ode(e,n,t)};Object.defineProperty(We,"__esModule",{value:!0});We.createMessageConnection=We.createServerSocketTransport=We.createClientSocketTransport=We.createServerPipeTransport=We.createClientPipeTransport=We.generateRandomPipeName=We.StreamMessageWriter=We.StreamMessageReader=We.SocketMessageWriter=We.SocketMessageReader=We.IPCMessageWriter=We.IPCMessageReader=void 0;var Qu=QM();Qu.default.install();var Qr=IS(),ZN=require("path"),ade=require("os"),lde=require("crypto"),Ym=require("net");sde(IS(),We);var $N=class extends Qr.AbstractMessageReader{constructor(e){super();this.process=e;let t=this.process;t.on("error",i=>this.fireError(i)),t.on("close",()=>this.fireClose())}listen(e){return this.process.on("message",e),Qr.Disposable.create(()=>this.process.off("message",e))}};We.IPCMessageReader=$N;var XN=class extends Qr.AbstractMessageWriter{constructor(e){super();this.process=e,this.errorCount=0;let t=this.process;t.on("error",i=>this.fireError(i)),t.on("close",()=>this.fireClose)}write(e){try{return typeof this.process.send=="function"&&this.process.send(e,void 0,void 0,t=>{t?(this.errorCount++,this.handleError(t,e)):this.errorCount=0}),Promise.resolve()}catch(t){return this.handleError(t,e),Promise.reject(t)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){}};We.IPCMessageWriter=XN;var Ku=class extends Qr.ReadableStreamMessageReader{constructor(e,t="utf-8"){super(Qu.default().stream.asReadableStream(e),t)}};We.SocketMessageReader=Ku;var zu=class extends Qr.WriteableStreamMessageWriter{constructor(e,t){super(Qu.default().stream.asWritableStream(e),t);this.socket=e}dispose(){super.dispose(),this.socket.destroy()}};We.SocketMessageWriter=zu;var jS=class extends Qr.ReadableStreamMessageReader{constructor(e,t){super(Qu.default().stream.asReadableStream(e),t)}};We.StreamMessageReader=jS;var AS=class extends Qr.WriteableStreamMessageWriter{constructor(e,t){super(Qu.default().stream.asWritableStream(e),t)}};We.StreamMessageWriter=AS;var JN=process.env.XDG_RUNTIME_DIR,ude=new Map([["linux",107],["darwin",103]]);function cde(){let n=lde.randomBytes(21).toString("hex");if(process.platform==="win32")return`\\\\.\\pipe\\vscode-jsonrpc-${n}-sock`;let e;JN?e=ZN.join(JN,`vscode-ipc-${n}.sock`):e=ZN.join(ade.tmpdir(),`vscode-${n}.sock`);let t=ude.get(process.platform);return t!==void 0&&e.length>=t&&Qu.default().console.warn(`WARNING: IPC handle "${e}" is longer than ${t} characters.`),e}We.generateRandomPipeName=cde;function hde(n,e="utf-8"){let t,i=new Promise((r,o)=>{t=r});return new Promise((r,o)=>{let s=Ym.createServer(a=>{s.close(),t([new Ku(a,e),new zu(a,e)])});s.on("error",o),s.listen(n,()=>{s.removeListener("error",o),r({onConnected:()=>i})})})}We.createClientPipeTransport=hde;function dde(n,e="utf-8"){let t=Ym.createConnection(n);return[new Ku(t,e),new zu(t,e)]}We.createServerPipeTransport=dde;function gde(n,e="utf-8"){let t,i=new Promise((r,o)=>{t=r});return new Promise((r,o)=>{let s=Ym.createServer(a=>{s.close(),t([new Ku(a,e),new zu(a,e)])});s.on("error",o),s.listen(n,"127.0.0.1",()=>{s.removeListener("error",o),r({onConnected:()=>i})})})}We.createClientSocketTransport=gde;function fde(n,e="utf-8"){let t=Ym.createConnection(n,"127.0.0.1");return[new Ku(t,e),new zu(t,e)]}We.createServerSocketTransport=fde;function pde(n){let e=n;return e.read!==void 0&&e.addListener!==void 0}function mde(n){let e=n;return e.write!==void 0&&e.addListener!==void 0}function bde(n,e,t,i){t||(t=Qr.NullLogger);let r=pde(n)?new jS(n):n,o=mde(e)?new AS(e):e;return Qr.ConnectionStrategy.is(i)&&(i={connectionStrategy:i}),Qr.createMessageConnection(r,o,t,i)}We.createMessageConnection=bde});var OS=m((i_e,UN)=>{"use strict";UN.exports=Vu()});var QN={};xs(QN,{AnnotatedTextEdit:()=>qo,ChangeAnnotation:()=>gl,ChangeAnnotationIdentifier:()=>bi,CodeAction:()=>g0,CodeActionContext:()=>d0,CodeActionKind:()=>h0,CodeDescription:()=>JS,CodeLens:()=>f0,Color:()=>Zm,ColorInformation:()=>BS,ColorPresentation:()=>HS,Command:()=>ec,CompletionItem:()=>e0,CompletionItemKind:()=>GS,CompletionItemTag:()=>KS,CompletionList:()=>t0,CreateFile:()=>Zs,DeleteFile:()=>Yo,Diagnostic:()=>Zd,DiagnosticRelatedInformation:()=>Jm,DiagnosticSeverity:()=>WS,DiagnosticTag:()=>ZS,DocumentHighlight:()=>s0,DocumentHighlightKind:()=>o0,DocumentLink:()=>m0,DocumentSymbol:()=>c0,EOL:()=>vde,FoldingRange:()=>YS,FoldingRangeKind:()=>qS,FormattingOptions:()=>p0,Hover:()=>i0,InsertReplaceEdit:()=>zS,InsertTextFormat:()=>QS,InsertTextMode:()=>VS,Location:()=>cn,LocationLink:()=>NS,MarkedString:()=>$d,MarkupContent:()=>Xm,MarkupKind:()=>tc,OptionalVersionedTextDocumentIdentifier:()=>Jd,ParameterInformation:()=>n0,Position:()=>Vt,Range:()=>Ne,RenameFile:()=>Js,SelectionRange:()=>b0,SignatureInformation:()=>r0,SymbolInformation:()=>u0,SymbolKind:()=>a0,SymbolTag:()=>l0,TextDocument:()=>y0,TextDocumentEdit:()=>Ws,TextDocumentIdentifier:()=>$S,TextDocumentItem:()=>US,TextEdit:()=>un,VersionedTextDocumentIdentifier:()=>XS,WorkspaceChange:()=>yde,WorkspaceEdit:()=>$m,integer:()=>MS,uinteger:()=>Wd});var MS,Wd,Vt,Ne,cn,NS,Zm,BS,HS,qS,YS,Jm,WS,ZS,JS,Zd,ec,un,gl,bi,qo,Ws,Zs,Js,Yo,$m,Wm,GN,yde,$S,XS,Jd,US,tc,Xm,GS,QS,KS,zS,VS,e0,t0,$d,i0,n0,r0,o0,s0,a0,l0,u0,c0,h0,d0,g0,f0,p0,m0,b0,vde,y0,wde,Y,Kr=_(()=>{"use strict";(function(n){n.MIN_VALUE=-2147483648,n.MAX_VALUE=2147483647})(MS||(MS={}));(function(n){n.MIN_VALUE=0,n.MAX_VALUE=2147483647})(Wd||(Wd={}));(function(n){function e(i,r){return i===Number.MAX_VALUE&&(i=Wd.MAX_VALUE),r===Number.MAX_VALUE&&(r=Wd.MAX_VALUE),{line:i,character:r}}n.create=e;function t(i){var r=i;return Y.objectLiteral(r)&&Y.uinteger(r.line)&&Y.uinteger(r.character)}n.is=t})(Vt||(Vt={}));(function(n){function e(i,r,o,s){if(Y.uinteger(i)&&Y.uinteger(r)&&Y.uinteger(o)&&Y.uinteger(s))return{start:Vt.create(i,r),end:Vt.create(o,s)};if(Vt.is(i)&&Vt.is(r))return{start:i,end:r};throw new Error("Range#create called with invalid arguments["+i+", "+r+", "+o+", "+s+"]")}n.create=e;function t(i){var r=i;return Y.objectLiteral(r)&&Vt.is(r.start)&&Vt.is(r.end)}n.is=t})(Ne||(Ne={}));(function(n){function e(i,r){return{uri:i,range:r}}n.create=e;function t(i){var r=i;return Y.defined(r)&&Ne.is(r.range)&&(Y.string(r.uri)||Y.undefined(r.uri))}n.is=t})(cn||(cn={}));(function(n){function e(i,r,o,s){return{targetUri:i,targetRange:r,targetSelectionRange:o,originSelectionRange:s}}n.create=e;function t(i){var r=i;return Y.defined(r)&&Ne.is(r.targetRange)&&Y.string(r.targetUri)&&(Ne.is(r.targetSelectionRange)||Y.undefined(r.targetSelectionRange))&&(Ne.is(r.originSelectionRange)||Y.undefined(r.originSelectionRange))}n.is=t})(NS||(NS={}));(function(n){function e(i,r,o,s){return{red:i,green:r,blue:o,alpha:s}}n.create=e;function t(i){var r=i;return Y.numberRange(r.red,0,1)&&Y.numberRange(r.green,0,1)&&Y.numberRange(r.blue,0,1)&&Y.numberRange(r.alpha,0,1)}n.is=t})(Zm||(Zm={}));(function(n){function e(i,r){return{range:i,color:r}}n.create=e;function t(i){var r=i;return Ne.is(r.range)&&Zm.is(r.color)}n.is=t})(BS||(BS={}));(function(n){function e(i,r,o){return{label:i,textEdit:r,additionalTextEdits:o}}n.create=e;function t(i){var r=i;return Y.string(r.label)&&(Y.undefined(r.textEdit)||un.is(r))&&(Y.undefined(r.additionalTextEdits)||Y.typedArray(r.additionalTextEdits,un.is))}n.is=t})(HS||(HS={}));(function(n){n.Comment="comment",n.Imports="imports",n.Region="region"})(qS||(qS={}));(function(n){function e(i,r,o,s,a){var l={startLine:i,endLine:r};return Y.defined(o)&&(l.startCharacter=o),Y.defined(s)&&(l.endCharacter=s),Y.defined(a)&&(l.kind=a),l}n.create=e;function t(i){var r=i;return Y.uinteger(r.startLine)&&Y.uinteger(r.startLine)&&(Y.undefined(r.startCharacter)||Y.uinteger(r.startCharacter))&&(Y.undefined(r.endCharacter)||Y.uinteger(r.endCharacter))&&(Y.undefined(r.kind)||Y.string(r.kind))}n.is=t})(YS||(YS={}));(function(n){function e(i,r){return{location:i,message:r}}n.create=e;function t(i){var r=i;return Y.defined(r)&&cn.is(r.location)&&Y.string(r.message)}n.is=t})(Jm||(Jm={}));(function(n){n.Error=1,n.Warning=2,n.Information=3,n.Hint=4})(WS||(WS={}));(function(n){n.Unnecessary=1,n.Deprecated=2})(ZS||(ZS={}));(function(n){function e(t){var i=t;return i!=null&&Y.string(i.href)}n.is=e})(JS||(JS={}));(function(n){function e(i,r,o,s,a,l){var u={range:i,message:r};return Y.defined(o)&&(u.severity=o),Y.defined(s)&&(u.code=s),Y.defined(a)&&(u.source=a),Y.defined(l)&&(u.relatedInformation=l),u}n.create=e;function t(i){var r,o=i;return Y.defined(o)&&Ne.is(o.range)&&Y.string(o.message)&&(Y.number(o.severity)||Y.undefined(o.severity))&&(Y.integer(o.code)||Y.string(o.code)||Y.undefined(o.code))&&(Y.undefined(o.codeDescription)||Y.string((r=o.codeDescription)===null||r===void 0?void 0:r.href))&&(Y.string(o.source)||Y.undefined(o.source))&&(Y.undefined(o.relatedInformation)||Y.typedArray(o.relatedInformation,Jm.is))}n.is=t})(Zd||(Zd={}));(function(n){function e(i,r){for(var o=[],s=2;s0&&(a.arguments=o),a}n.create=e;function t(i){var r=i;return Y.defined(r)&&Y.string(r.title)&&Y.string(r.command)}n.is=t})(ec||(ec={}));(function(n){function e(o,s){return{range:o,newText:s}}n.replace=e;function t(o,s){return{range:{start:o,end:o},newText:s}}n.insert=t;function i(o){return{range:o,newText:""}}n.del=i;function r(o){var s=o;return Y.objectLiteral(s)&&Y.string(s.newText)&&Ne.is(s.range)}n.is=r})(un||(un={}));(function(n){function e(i,r,o){var s={label:i};return r!==void 0&&(s.needsConfirmation=r),o!==void 0&&(s.description=o),s}n.create=e;function t(i){var r=i;return r!==void 0&&Y.objectLiteral(r)&&Y.string(r.label)&&(Y.boolean(r.needsConfirmation)||r.needsConfirmation===void 0)&&(Y.string(r.description)||r.description===void 0)}n.is=t})(gl||(gl={}));(function(n){function e(t){var i=t;return typeof i=="string"}n.is=e})(bi||(bi={}));(function(n){function e(o,s,a){return{range:o,newText:s,annotationId:a}}n.replace=e;function t(o,s,a){return{range:{start:o,end:o},newText:s,annotationId:a}}n.insert=t;function i(o,s){return{range:o,newText:"",annotationId:s}}n.del=i;function r(o){var s=o;return un.is(s)&&(gl.is(s.annotationId)||bi.is(s.annotationId))}n.is=r})(qo||(qo={}));(function(n){function e(i,r){return{textDocument:i,edits:r}}n.create=e;function t(i){var r=i;return Y.defined(r)&&Jd.is(r.textDocument)&&Array.isArray(r.edits)}n.is=t})(Ws||(Ws={}));(function(n){function e(i,r,o){var s={kind:"create",uri:i};return r!==void 0&&(r.overwrite!==void 0||r.ignoreIfExists!==void 0)&&(s.options=r),o!==void 0&&(s.annotationId=o),s}n.create=e;function t(i){var r=i;return r&&r.kind==="create"&&Y.string(r.uri)&&(r.options===void 0||(r.options.overwrite===void 0||Y.boolean(r.options.overwrite))&&(r.options.ignoreIfExists===void 0||Y.boolean(r.options.ignoreIfExists)))&&(r.annotationId===void 0||bi.is(r.annotationId))}n.is=t})(Zs||(Zs={}));(function(n){function e(i,r,o,s){var a={kind:"rename",oldUri:i,newUri:r};return o!==void 0&&(o.overwrite!==void 0||o.ignoreIfExists!==void 0)&&(a.options=o),s!==void 0&&(a.annotationId=s),a}n.create=e;function t(i){var r=i;return r&&r.kind==="rename"&&Y.string(r.oldUri)&&Y.string(r.newUri)&&(r.options===void 0||(r.options.overwrite===void 0||Y.boolean(r.options.overwrite))&&(r.options.ignoreIfExists===void 0||Y.boolean(r.options.ignoreIfExists)))&&(r.annotationId===void 0||bi.is(r.annotationId))}n.is=t})(Js||(Js={}));(function(n){function e(i,r,o){var s={kind:"delete",uri:i};return r!==void 0&&(r.recursive!==void 0||r.ignoreIfNotExists!==void 0)&&(s.options=r),o!==void 0&&(s.annotationId=o),s}n.create=e;function t(i){var r=i;return r&&r.kind==="delete"&&Y.string(r.uri)&&(r.options===void 0||(r.options.recursive===void 0||Y.boolean(r.options.recursive))&&(r.options.ignoreIfNotExists===void 0||Y.boolean(r.options.ignoreIfNotExists)))&&(r.annotationId===void 0||bi.is(r.annotationId))}n.is=t})(Yo||(Yo={}));(function(n){function e(t){var i=t;return i&&(i.changes!==void 0||i.documentChanges!==void 0)&&(i.documentChanges===void 0||i.documentChanges.every(function(r){return Y.string(r.kind)?Zs.is(r)||Js.is(r)||Yo.is(r):Ws.is(r)}))}n.is=e})($m||($m={}));Wm=function(){function n(e,t){this.edits=e,this.changeAnnotations=t}return n.prototype.insert=function(e,t,i){var r,o;if(i===void 0?r=un.insert(e,t):bi.is(i)?(o=i,r=qo.insert(e,t,i)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(i),r=qo.insert(e,t,o)),this.edits.push(r),o!==void 0)return o},n.prototype.replace=function(e,t,i){var r,o;if(i===void 0?r=un.replace(e,t):bi.is(i)?(o=i,r=qo.replace(e,t,i)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(i),r=qo.replace(e,t,o)),this.edits.push(r),o!==void 0)return o},n.prototype.delete=function(e,t){var i,r;if(t===void 0?i=un.del(e):bi.is(t)?(r=t,i=qo.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(t),i=qo.del(e,r)),this.edits.push(i),r!==void 0)return r},n.prototype.add=function(e){this.edits.push(e)},n.prototype.all=function(){return this.edits},n.prototype.clear=function(){this.edits.splice(0,this.edits.length)},n.prototype.assertChangeAnnotations=function(e){if(e===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},n}(),GN=function(){function n(e){this._annotations=e===void 0?Object.create(null):e,this._counter=0,this._size=0}return n.prototype.all=function(){return this._annotations},Object.defineProperty(n.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),n.prototype.manage=function(e,t){var i;if(bi.is(e)?i=e:(i=this.nextId(),t=e),this._annotations[i]!==void 0)throw new Error("Id "+i+" is already in use.");if(t===void 0)throw new Error("No annotation provided for id "+i);return this._annotations[i]=t,this._size++,i},n.prototype.nextId=function(){return this._counter++,this._counter.toString()},n}(),yde=function(){function n(e){var t=this;this._textEditChanges=Object.create(null),e!==void 0?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new GN(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach(function(i){if(Ws.is(i)){var r=new Wm(i.edits,t._changeAnnotations);t._textEditChanges[i.textDocument.uri]=r}})):e.changes&&Object.keys(e.changes).forEach(function(i){var r=new Wm(e.changes[i]);t._textEditChanges[i]=r})):this._workspaceEdit={}}return Object.defineProperty(n.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),n.prototype.getTextEditChange=function(e){if(Jd.is(e)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var t={uri:e.uri,version:e.version},i=this._textEditChanges[t.uri];if(!i){var r=[],o={textDocument:t,edits:r};this._workspaceEdit.documentChanges.push(o),i=new Wm(r,this._changeAnnotations),this._textEditChanges[t.uri]=i}return i}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var i=this._textEditChanges[e];if(!i){var r=[];this._workspaceEdit.changes[e]=r,i=new Wm(r),this._textEditChanges[e]=i}return i}},n.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new GN,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},n.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},n.prototype.createFile=function(e,t,i){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var r;gl.is(t)||bi.is(t)?r=t:i=t;var o,s;if(r===void 0?o=Zs.create(e,i):(s=bi.is(r)?r:this._changeAnnotations.manage(r),o=Zs.create(e,i,s)),this._workspaceEdit.documentChanges.push(o),s!==void 0)return s},n.prototype.renameFile=function(e,t,i,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var o;gl.is(i)||bi.is(i)?o=i:r=i;var s,a;if(o===void 0?s=Js.create(e,t,r):(a=bi.is(o)?o:this._changeAnnotations.manage(o),s=Js.create(e,t,r,a)),this._workspaceEdit.documentChanges.push(s),a!==void 0)return a},n.prototype.deleteFile=function(e,t,i){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var r;gl.is(t)||bi.is(t)?r=t:i=t;var o,s;if(r===void 0?o=Yo.create(e,i):(s=bi.is(r)?r:this._changeAnnotations.manage(r),o=Yo.create(e,i,s)),this._workspaceEdit.documentChanges.push(o),s!==void 0)return s},n}();(function(n){function e(i){return{uri:i}}n.create=e;function t(i){var r=i;return Y.defined(r)&&Y.string(r.uri)}n.is=t})($S||($S={}));(function(n){function e(i,r){return{uri:i,version:r}}n.create=e;function t(i){var r=i;return Y.defined(r)&&Y.string(r.uri)&&Y.integer(r.version)}n.is=t})(XS||(XS={}));(function(n){function e(i,r){return{uri:i,version:r}}n.create=e;function t(i){var r=i;return Y.defined(r)&&Y.string(r.uri)&&(r.version===null||Y.integer(r.version))}n.is=t})(Jd||(Jd={}));(function(n){function e(i,r,o,s){return{uri:i,languageId:r,version:o,text:s}}n.create=e;function t(i){var r=i;return Y.defined(r)&&Y.string(r.uri)&&Y.string(r.languageId)&&Y.integer(r.version)&&Y.string(r.text)}n.is=t})(US||(US={}));(function(n){n.PlainText="plaintext",n.Markdown="markdown"})(tc||(tc={}));(function(n){function e(t){var i=t;return i===n.PlainText||i===n.Markdown}n.is=e})(tc||(tc={}));(function(n){function e(t){var i=t;return Y.objectLiteral(t)&&tc.is(i.kind)&&Y.string(i.value)}n.is=e})(Xm||(Xm={}));(function(n){n.Text=1,n.Method=2,n.Function=3,n.Constructor=4,n.Field=5,n.Variable=6,n.Class=7,n.Interface=8,n.Module=9,n.Property=10,n.Unit=11,n.Value=12,n.Enum=13,n.Keyword=14,n.Snippet=15,n.Color=16,n.File=17,n.Reference=18,n.Folder=19,n.EnumMember=20,n.Constant=21,n.Struct=22,n.Event=23,n.Operator=24,n.TypeParameter=25})(GS||(GS={}));(function(n){n.PlainText=1,n.Snippet=2})(QS||(QS={}));(function(n){n.Deprecated=1})(KS||(KS={}));(function(n){function e(i,r,o){return{newText:i,insert:r,replace:o}}n.create=e;function t(i){var r=i;return r&&Y.string(r.newText)&&Ne.is(r.insert)&&Ne.is(r.replace)}n.is=t})(zS||(zS={}));(function(n){n.asIs=1,n.adjustIndentation=2})(VS||(VS={}));(function(n){function e(t){return{label:t}}n.create=e})(e0||(e0={}));(function(n){function e(t,i){return{items:t||[],isIncomplete:!!i}}n.create=e})(t0||(t0={}));(function(n){function e(i){return i.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}n.fromPlainText=e;function t(i){var r=i;return Y.string(r)||Y.objectLiteral(r)&&Y.string(r.language)&&Y.string(r.value)}n.is=t})($d||($d={}));(function(n){function e(t){var i=t;return!!i&&Y.objectLiteral(i)&&(Xm.is(i.contents)||$d.is(i.contents)||Y.typedArray(i.contents,$d.is))&&(t.range===void 0||Ne.is(t.range))}n.is=e})(i0||(i0={}));(function(n){function e(t,i){return i?{label:t,documentation:i}:{label:t}}n.create=e})(n0||(n0={}));(function(n){function e(t,i){for(var r=[],o=2;o{sd();let te,ue;if(ri.string(E)){te=E;let Et=Q[0],Dt=0,hi=De.ParameterStructures.auto;De.ParameterStructures.is(Et)&&(Dt=1,hi=Et);let $e=Q.length,Ot=$e-Dt;switch(Ot){case 0:ue=void 0;break;case 1:ue=ox(hi,Q[Dt]);break;default:if(hi===De.ParameterStructures.byName)throw new Error(`Received ${Ot} parameters for 'by Name' notification parameter structure.`);ue=Q.slice(Dt,$e).map(tt=>ad(tt));break}}else{let Et=Q;te=E.method,ue=mL(E,Et)}let kt={jsonrpc:l,method:te,params:ue};return kr(kt),e.write(kt).catch(()=>r.error("Sending notification failed."))},onNotification:(E,Q)=>{sd();let te;return ri.func(E)?h=E:Q&&(ri.string(E)?(te=E,d.set(E,{type:void 0,handler:Q})):(te=E.method,d.set(E.method,{type:E,handler:Q}))),{dispose:()=>{te!==void 0?d.delete(te):h=void 0}}},onProgress:(E,Q,te)=>{if(g.has(Q))throw new Error(`Progress handler for token ${Q} already registered`);return g.set(Q,te),{dispose:()=>{g.delete(Q)}}},sendProgress:(E,Q,te)=>Pu.sendNotification(og.type,{token:Q,value:te}),onUnhandledProgress:M.event,sendRequest:(E,...Q)=>{sd(),Fne();let te,ue,kt;if(ri.string(E)){te=E;let $e=Q[0],Ot=Q[Q.length-1],tt=0,ii=De.ParameterStructures.auto;De.ParameterStructures.is($e)&&(tt=1,ii=$e);let yn=Q.length;a0.CancellationToken.is(Ot)&&(yn=yn-1,kt=Ot);let za=yn-tt;switch(za){case 0:ue=void 0;break;case 1:ue=ox(ii,Q[tt]);break;default:if(ii===De.ParameterStructures.byName)throw new Error(`Received ${za} parameters for 'by Name' request parameter structure.`);ue=Q.slice(tt,yn).map(As=>ad(As));break}}else{let $e=Q;te=E.method,ue=mL(E,$e);let Ot=E.numberOfParams;kt=a0.CancellationToken.is($e[Ot])?$e[Ot]:void 0}let Et=o++,Dt;return kt&&(Dt=kt.onCancellationRequested(()=>{let $e=O.sender.sendCancellation(Pu,Et);return $e===void 0?(r.log(`Received no promise from cancellation strategy when cancelling id ${Et}`),Promise.resolve()):$e.catch(()=>{r.log(`Sending cancellation messages for id ${Et} failed`)})})),new Promise(($e,Ot)=>{let tt={jsonrpc:l,id:Et,method:te,params:ue},ii=As=>{$e(As),O.sender.cleanup(Et),Dt==null||Dt.dispose()},yn=As=>{Ot(As),O.sender.cleanup(Et),Dt==null||Dt.dispose()},za={method:te,timerStart:Date.now(),resolve:ii,reject:yn};ti(tt);try{e.write(tt).catch(()=>r.error("Sending request failed."))}catch(As){za.reject(new De.ResponseError(De.ErrorCodes.MessageWriteError,As.message?As.message:"Unknown reason")),za=null}za&&m.set(Et,za)})},onRequest:(E,Q)=>{sd();let te=null;return l0.is(E)?(te=void 0,u=E):ri.string(E)?(te=null,Q!==void 0&&(te=E,c.set(E,{handler:Q,type:void 0}))):Q!==void 0&&(te=E.method,c.set(E.method,{type:E,handler:Q})),{dispose:()=>{te!==null&&(te!==void 0?c.delete(te):u=void 0)}}},hasPendingResponse:()=>m.size>0,trace:async(E,Q,te)=>{let ue=!1,kt=Ir.Text;te!==void 0&&(ri.boolean(te)?ue=te:(ue=te.sendNotification||!1,kt=te.traceFormat||Ir.Text)),D=E,T=kt,D===st.Off?R=void 0:R=Q,ue&&!K()&&!z()&&await Pu.sendNotification(NB.type,{value:st.toString(E)})},onError:H.event,onClose:X.event,onUnhandledNotification:B.event,onDispose:F.event,end:()=>{e.end()},dispose:()=>{if(z())return;N=jr.Disposed,F.fire(void 0);let E=new De.ResponseError(De.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(let Q of m.values())Q.reject(E);m=new Map,w=new Map,b=new Set,f=new AB.LinkedMap,ri.func(e.dispose)&&e.dispose(),ri.func(n.dispose)&&n.dispose()},listen:()=>{sd(),Lne(),N=jr.Listening,n.listen(Li)},inspect:()=>{(0,jB.default)().console.log("inspect")}};return Pu.onNotification(u0.type,E=>{if(D===st.Off||!R)return;let Q=D===st.Verbose||D===st.Compact;R.log(E.message,Q?E.verbose:void 0)}),Pu.onNotification(og.type,E=>{let Q=g.get(E.token);Q?Q(E.value):M.fire(E)}),Pu}ye.createMessageConnection=Mge});var m0=y(U=>{"use strict";Object.defineProperty(U,"__esModule",{value:!0});U.TraceFormat=U.TraceValues=U.Trace=U.ProgressType=U.ProgressToken=U.createMessageConnection=U.NullLogger=U.ConnectionOptions=U.ConnectionStrategy=U.WriteableStreamMessageWriter=U.AbstractMessageWriter=U.MessageWriter=U.ReadableStreamMessageReader=U.AbstractMessageReader=U.MessageReader=U.CancellationToken=U.CancellationTokenSource=U.Emitter=U.Event=U.Disposable=U.LRUCache=U.Touch=U.LinkedMap=U.ParameterStructures=U.NotificationType9=U.NotificationType8=U.NotificationType7=U.NotificationType6=U.NotificationType5=U.NotificationType4=U.NotificationType3=U.NotificationType2=U.NotificationType1=U.NotificationType0=U.NotificationType=U.ErrorCodes=U.ResponseError=U.RequestType9=U.RequestType8=U.RequestType7=U.RequestType6=U.RequestType5=U.RequestType4=U.RequestType3=U.RequestType2=U.RequestType1=U.RequestType0=U.RequestType=U.Message=U.RAL=void 0;U.CancellationStrategy=U.CancellationSenderStrategy=U.CancellationReceiverStrategy=U.ConnectionError=U.ConnectionErrors=U.LogTraceNotification=U.SetTraceNotification=void 0;var xt=US();Object.defineProperty(U,"Message",{enumerable:!0,get:function(){return xt.Message}});Object.defineProperty(U,"RequestType",{enumerable:!0,get:function(){return xt.RequestType}});Object.defineProperty(U,"RequestType0",{enumerable:!0,get:function(){return xt.RequestType0}});Object.defineProperty(U,"RequestType1",{enumerable:!0,get:function(){return xt.RequestType1}});Object.defineProperty(U,"RequestType2",{enumerable:!0,get:function(){return xt.RequestType2}});Object.defineProperty(U,"RequestType3",{enumerable:!0,get:function(){return xt.RequestType3}});Object.defineProperty(U,"RequestType4",{enumerable:!0,get:function(){return xt.RequestType4}});Object.defineProperty(U,"RequestType5",{enumerable:!0,get:function(){return xt.RequestType5}});Object.defineProperty(U,"RequestType6",{enumerable:!0,get:function(){return xt.RequestType6}});Object.defineProperty(U,"RequestType7",{enumerable:!0,get:function(){return xt.RequestType7}});Object.defineProperty(U,"RequestType8",{enumerable:!0,get:function(){return xt.RequestType8}});Object.defineProperty(U,"RequestType9",{enumerable:!0,get:function(){return xt.RequestType9}});Object.defineProperty(U,"ResponseError",{enumerable:!0,get:function(){return xt.ResponseError}});Object.defineProperty(U,"ErrorCodes",{enumerable:!0,get:function(){return xt.ErrorCodes}});Object.defineProperty(U,"NotificationType",{enumerable:!0,get:function(){return xt.NotificationType}});Object.defineProperty(U,"NotificationType0",{enumerable:!0,get:function(){return xt.NotificationType0}});Object.defineProperty(U,"NotificationType1",{enumerable:!0,get:function(){return xt.NotificationType1}});Object.defineProperty(U,"NotificationType2",{enumerable:!0,get:function(){return xt.NotificationType2}});Object.defineProperty(U,"NotificationType3",{enumerable:!0,get:function(){return xt.NotificationType3}});Object.defineProperty(U,"NotificationType4",{enumerable:!0,get:function(){return xt.NotificationType4}});Object.defineProperty(U,"NotificationType5",{enumerable:!0,get:function(){return xt.NotificationType5}});Object.defineProperty(U,"NotificationType6",{enumerable:!0,get:function(){return xt.NotificationType6}});Object.defineProperty(U,"NotificationType7",{enumerable:!0,get:function(){return xt.NotificationType7}});Object.defineProperty(U,"NotificationType8",{enumerable:!0,get:function(){return xt.NotificationType8}});Object.defineProperty(U,"NotificationType9",{enumerable:!0,get:function(){return xt.NotificationType9}});Object.defineProperty(U,"ParameterStructures",{enumerable:!0,get:function(){return xt.ParameterStructures}});var g0=KS();Object.defineProperty(U,"LinkedMap",{enumerable:!0,get:function(){return g0.LinkedMap}});Object.defineProperty(U,"LRUCache",{enumerable:!0,get:function(){return g0.LRUCache}});Object.defineProperty(U,"Touch",{enumerable:!0,get:function(){return g0.Touch}});var Oge=JS();Object.defineProperty(U,"Disposable",{enumerable:!0,get:function(){return Oge.Disposable}});var qB=lc();Object.defineProperty(U,"Event",{enumerable:!0,get:function(){return qB.Event}});Object.defineProperty(U,"Emitter",{enumerable:!0,get:function(){return qB.Emitter}});var YB=e0();Object.defineProperty(U,"CancellationTokenSource",{enumerable:!0,get:function(){return YB.CancellationTokenSource}});Object.defineProperty(U,"CancellationToken",{enumerable:!0,get:function(){return YB.CancellationToken}});var p0=kB();Object.defineProperty(U,"MessageReader",{enumerable:!0,get:function(){return p0.MessageReader}});Object.defineProperty(U,"AbstractMessageReader",{enumerable:!0,get:function(){return p0.AbstractMessageReader}});Object.defineProperty(U,"ReadableStreamMessageReader",{enumerable:!0,get:function(){return p0.ReadableStreamMessageReader}});var f0=IB();Object.defineProperty(U,"MessageWriter",{enumerable:!0,get:function(){return f0.MessageWriter}});Object.defineProperty(U,"AbstractMessageWriter",{enumerable:!0,get:function(){return f0.AbstractMessageWriter}});Object.defineProperty(U,"WriteableStreamMessageWriter",{enumerable:!0,get:function(){return f0.WriteableStreamMessageWriter}});var Mi=HB();Object.defineProperty(U,"ConnectionStrategy",{enumerable:!0,get:function(){return Mi.ConnectionStrategy}});Object.defineProperty(U,"ConnectionOptions",{enumerable:!0,get:function(){return Mi.ConnectionOptions}});Object.defineProperty(U,"NullLogger",{enumerable:!0,get:function(){return Mi.NullLogger}});Object.defineProperty(U,"createMessageConnection",{enumerable:!0,get:function(){return Mi.createMessageConnection}});Object.defineProperty(U,"ProgressToken",{enumerable:!0,get:function(){return Mi.ProgressToken}});Object.defineProperty(U,"ProgressType",{enumerable:!0,get:function(){return Mi.ProgressType}});Object.defineProperty(U,"Trace",{enumerable:!0,get:function(){return Mi.Trace}});Object.defineProperty(U,"TraceValues",{enumerable:!0,get:function(){return Mi.TraceValues}});Object.defineProperty(U,"TraceFormat",{enumerable:!0,get:function(){return Mi.TraceFormat}});Object.defineProperty(U,"SetTraceNotification",{enumerable:!0,get:function(){return Mi.SetTraceNotification}});Object.defineProperty(U,"LogTraceNotification",{enumerable:!0,get:function(){return Mi.LogTraceNotification}});Object.defineProperty(U,"ConnectionErrors",{enumerable:!0,get:function(){return Mi.ConnectionErrors}});Object.defineProperty(U,"ConnectionError",{enumerable:!0,get:function(){return Mi.ConnectionError}});Object.defineProperty(U,"CancellationReceiverStrategy",{enumerable:!0,get:function(){return Mi.CancellationReceiverStrategy}});Object.defineProperty(U,"CancellationSenderStrategy",{enumerable:!0,get:function(){return Mi.CancellationSenderStrategy}});Object.defineProperty(U,"CancellationStrategy",{enumerable:!0,get:function(){return Mi.CancellationStrategy}});var Nge=is();U.RAL=Nge.default});var kl=y(Ve=>{"use strict";var Bge=Ve&&Ve.__createBinding||(Object.create?function(n,e,t,i){i===void 0&&(i=t);var r=Object.getOwnPropertyDescriptor(e,t);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(n,i,r)}:function(n,e,t,i){i===void 0&&(i=t),n[i]=e[t]}),Hge=Ve&&Ve.__exportStar||function(n,e){for(var t in n)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&Bge(e,n,t)};Object.defineProperty(Ve,"__esModule",{value:!0});Ve.createMessageConnection=Ve.createServerSocketTransport=Ve.createClientSocketTransport=Ve.createServerPipeTransport=Ve.createClientPipeTransport=Ve.generateRandomPipeName=Ve.StreamMessageWriter=Ve.StreamMessageReader=Ve.SocketMessageWriter=Ve.SocketMessageReader=Ve.IPCMessageWriter=Ve.IPCMessageReader=void 0;var cc=GN();cc.default.install();var go=m0(),WB=require("path"),qge=require("os"),Yge=require("crypto"),sy=require("net");Hge(m0(),Ve);var JB=class extends go.AbstractMessageReader{constructor(e){super();this.process=e;let t=this.process;t.on("error",i=>this.fireError(i)),t.on("close",()=>this.fireClose())}listen(e){return this.process.on("message",e),go.Disposable.create(()=>this.process.off("message",e))}};Ve.IPCMessageReader=JB;var $B=class extends go.AbstractMessageWriter{constructor(e){super();this.process=e,this.errorCount=0;let t=this.process;t.on("error",i=>this.fireError(i)),t.on("close",()=>this.fireClose)}write(e){try{return typeof this.process.send=="function"&&this.process.send(e,void 0,void 0,t=>{t?(this.errorCount++,this.handleError(t,e)):this.errorCount=0}),Promise.resolve()}catch(t){return this.handleError(t,e),Promise.reject(t)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){}};Ve.IPCMessageWriter=$B;var hc=class extends go.ReadableStreamMessageReader{constructor(e,t="utf-8"){super((0,cc.default)().stream.asReadableStream(e),t)}};Ve.SocketMessageReader=hc;var dc=class extends go.WriteableStreamMessageWriter{constructor(e,t){super((0,cc.default)().stream.asWritableStream(e),t);this.socket=e}dispose(){super.dispose(),this.socket.destroy()}};Ve.SocketMessageWriter=dc;var y0=class extends go.ReadableStreamMessageReader{constructor(e,t){super((0,cc.default)().stream.asReadableStream(e),t)}};Ve.StreamMessageReader=y0;var b0=class extends go.WriteableStreamMessageWriter{constructor(e,t){super((0,cc.default)().stream.asWritableStream(e),t)}};Ve.StreamMessageWriter=b0;var ZB=process.env.XDG_RUNTIME_DIR,Wge=new Map([["linux",107],["darwin",103]]);function Zge(){let n=(0,Yge.randomBytes)(21).toString("hex");if(process.platform==="win32")return`\\\\.\\pipe\\vscode-jsonrpc-${n}-sock`;let e;ZB?e=WB.join(ZB,`vscode-ipc-${n}.sock`):e=WB.join(qge.tmpdir(),`vscode-${n}.sock`);let t=Wge.get(process.platform);return t!==void 0&&e.length>=t&&(0,cc.default)().console.warn(`WARNING: IPC handle "${e}" is longer than ${t} characters.`),e}Ve.generateRandomPipeName=Zge;function Jge(n,e="utf-8"){let t,i=new Promise((r,o)=>{t=r});return new Promise((r,o)=>{let s=(0,sy.createServer)(a=>{s.close(),t([new hc(a,e),new dc(a,e)])});s.on("error",o),s.listen(n,()=>{s.removeListener("error",o),r({onConnected:()=>i})})})}Ve.createClientPipeTransport=Jge;function $ge(n,e="utf-8"){let t=(0,sy.createConnection)(n);return[new hc(t,e),new dc(t,e)]}Ve.createServerPipeTransport=$ge;function Xge(n,e="utf-8"){let t,i=new Promise((r,o)=>{t=r});return new Promise((r,o)=>{let s=(0,sy.createServer)(a=>{s.close(),t([new hc(a,e),new dc(a,e)])});s.on("error",o),s.listen(n,"127.0.0.1",()=>{s.removeListener("error",o),r({onConnected:()=>i})})})}Ve.createClientSocketTransport=Xge;function Uge(n,e="utf-8"){let t=(0,sy.createConnection)(n,"127.0.0.1");return[new hc(t,e),new dc(t,e)]}Ve.createServerSocketTransport=Uge;function Gge(n){let e=n;return e.read!==void 0&&e.addListener!==void 0}function Kge(n){let e=n;return e.write!==void 0&&e.addListener!==void 0}function Qge(n,e,t,i){t||(t=go.NullLogger);let r=Gge(n)?new y0(n):n,o=Kge(e)?new b0(e):e;return go.ConnectionStrategy.is(i)&&(i={connectionStrategy:i}),(0,go.createMessageConnection)(r,o,t,i)}Ve.createMessageConnection=Qge});var v0=y((MRe,XB)=>{"use strict";XB.exports=kl()});var fy={};Ms(fy,{AnnotatedTextEdit:()=>ss,ChangeAnnotation:()=>El,ChangeAnnotationIdentifier:()=>Ci,CodeAction:()=>V0,CodeActionContext:()=>z0,CodeActionKind:()=>Q0,CodeActionTriggerKind:()=>hg,CodeDescription:()=>_0,CodeLens:()=>eT,Color:()=>uy,ColorInformation:()=>x0,ColorPresentation:()=>S0,Command:()=>Pl,CompletionItem:()=>B0,CompletionItemKind:()=>I0,CompletionItemLabelDetails:()=>N0,CompletionItemTag:()=>A0,CompletionList:()=>H0,CreateFile:()=>ra,DeleteFile:()=>as,Diagnostic:()=>lg,DiagnosticRelatedInformation:()=>cy,DiagnosticSeverity:()=>E0,DiagnosticTag:()=>P0,DocumentHighlight:()=>J0,DocumentHighlightKind:()=>Z0,DocumentLink:()=>iT,DocumentSymbol:()=>K0,DocumentUri:()=>w0,EOL:()=>Vge,FoldingRange:()=>k0,FoldingRangeKind:()=>T0,FormattingOptions:()=>tT,Hover:()=>q0,InlayHint:()=>hT,InlayHintKind:()=>gy,InlayHintLabelPart:()=>py,InlineValueContext:()=>cT,InlineValueEvaluatableExpression:()=>uT,InlineValueText:()=>aT,InlineValueVariableLookup:()=>lT,InsertReplaceEdit:()=>M0,InsertTextFormat:()=>j0,InsertTextMode:()=>O0,Location:()=>rn,LocationLink:()=>C0,MarkedString:()=>cg,MarkupContent:()=>gc,MarkupKind:()=>dy,OptionalVersionedTextDocumentIdentifier:()=>ug,ParameterInformation:()=>Y0,Position:()=>Gt,Range:()=>Ye,RenameFile:()=>oa,SelectionRange:()=>nT,SemanticTokenModifiers:()=>oT,SemanticTokenTypes:()=>rT,SemanticTokens:()=>sT,SignatureInformation:()=>W0,SymbolInformation:()=>U0,SymbolKind:()=>$0,SymbolTag:()=>X0,TextDocument:()=>gT,TextDocumentEdit:()=>na,TextDocumentIdentifier:()=>R0,TextDocumentItem:()=>F0,TextEdit:()=>nn,URI:()=>ly,VersionedTextDocumentIdentifier:()=>L0,WorkspaceChange:()=>zge,WorkspaceEdit:()=>hy,WorkspaceFolder:()=>dT,WorkspaceSymbol:()=>G0,integer:()=>D0,uinteger:()=>ag});var w0,ly,D0,ag,Gt,Ye,rn,C0,uy,x0,S0,T0,k0,cy,E0,P0,_0,lg,Pl,nn,El,Ci,ss,na,ra,oa,as,hy,ay,UB,zge,R0,L0,ug,F0,dy,gc,I0,j0,A0,M0,O0,N0,B0,H0,cg,q0,Y0,W0,Z0,J0,$0,X0,U0,G0,K0,Q0,hg,z0,V0,eT,tT,iT,nT,rT,oT,sT,aT,lT,uT,cT,gy,py,hT,dT,Vge,gT,epe,A,or=_(()=>{"use strict";(function(n){function e(t){return typeof t=="string"}n.is=e})(w0||(w0={}));(function(n){function e(t){return typeof t=="string"}n.is=e})(ly||(ly={}));(function(n){n.MIN_VALUE=-2147483648,n.MAX_VALUE=2147483647;function e(t){return typeof t=="number"&&n.MIN_VALUE<=t&&t<=n.MAX_VALUE}n.is=e})(D0||(D0={}));(function(n){n.MIN_VALUE=0,n.MAX_VALUE=2147483647;function e(t){return typeof t=="number"&&n.MIN_VALUE<=t&&t<=n.MAX_VALUE}n.is=e})(ag||(ag={}));(function(n){function e(i,r){return i===Number.MAX_VALUE&&(i=ag.MAX_VALUE),r===Number.MAX_VALUE&&(r=ag.MAX_VALUE),{line:i,character:r}}n.create=e;function t(i){var r=i;return A.objectLiteral(r)&&A.uinteger(r.line)&&A.uinteger(r.character)}n.is=t})(Gt||(Gt={}));(function(n){function e(i,r,o,s){if(A.uinteger(i)&&A.uinteger(r)&&A.uinteger(o)&&A.uinteger(s))return{start:Gt.create(i,r),end:Gt.create(o,s)};if(Gt.is(i)&&Gt.is(r))return{start:i,end:r};throw new Error("Range#create called with invalid arguments[".concat(i,", ").concat(r,", ").concat(o,", ").concat(s,"]"))}n.create=e;function t(i){var r=i;return A.objectLiteral(r)&&Gt.is(r.start)&&Gt.is(r.end)}n.is=t})(Ye||(Ye={}));(function(n){function e(i,r){return{uri:i,range:r}}n.create=e;function t(i){var r=i;return A.objectLiteral(r)&&Ye.is(r.range)&&(A.string(r.uri)||A.undefined(r.uri))}n.is=t})(rn||(rn={}));(function(n){function e(i,r,o,s){return{targetUri:i,targetRange:r,targetSelectionRange:o,originSelectionRange:s}}n.create=e;function t(i){var r=i;return A.objectLiteral(r)&&Ye.is(r.targetRange)&&A.string(r.targetUri)&&Ye.is(r.targetSelectionRange)&&(Ye.is(r.originSelectionRange)||A.undefined(r.originSelectionRange))}n.is=t})(C0||(C0={}));(function(n){function e(i,r,o,s){return{red:i,green:r,blue:o,alpha:s}}n.create=e;function t(i){var r=i;return A.objectLiteral(r)&&A.numberRange(r.red,0,1)&&A.numberRange(r.green,0,1)&&A.numberRange(r.blue,0,1)&&A.numberRange(r.alpha,0,1)}n.is=t})(uy||(uy={}));(function(n){function e(i,r){return{range:i,color:r}}n.create=e;function t(i){var r=i;return A.objectLiteral(r)&&Ye.is(r.range)&&uy.is(r.color)}n.is=t})(x0||(x0={}));(function(n){function e(i,r,o){return{label:i,textEdit:r,additionalTextEdits:o}}n.create=e;function t(i){var r=i;return A.objectLiteral(r)&&A.string(r.label)&&(A.undefined(r.textEdit)||nn.is(r))&&(A.undefined(r.additionalTextEdits)||A.typedArray(r.additionalTextEdits,nn.is))}n.is=t})(S0||(S0={}));(function(n){n.Comment="comment",n.Imports="imports",n.Region="region"})(T0||(T0={}));(function(n){function e(i,r,o,s,a,l){var u={startLine:i,endLine:r};return A.defined(o)&&(u.startCharacter=o),A.defined(s)&&(u.endCharacter=s),A.defined(a)&&(u.kind=a),A.defined(l)&&(u.collapsedText=l),u}n.create=e;function t(i){var r=i;return A.objectLiteral(r)&&A.uinteger(r.startLine)&&A.uinteger(r.startLine)&&(A.undefined(r.startCharacter)||A.uinteger(r.startCharacter))&&(A.undefined(r.endCharacter)||A.uinteger(r.endCharacter))&&(A.undefined(r.kind)||A.string(r.kind))}n.is=t})(k0||(k0={}));(function(n){function e(i,r){return{location:i,message:r}}n.create=e;function t(i){var r=i;return A.defined(r)&&rn.is(r.location)&&A.string(r.message)}n.is=t})(cy||(cy={}));(function(n){n.Error=1,n.Warning=2,n.Information=3,n.Hint=4})(E0||(E0={}));(function(n){n.Unnecessary=1,n.Deprecated=2})(P0||(P0={}));(function(n){function e(t){var i=t;return A.objectLiteral(i)&&A.string(i.href)}n.is=e})(_0||(_0={}));(function(n){function e(i,r,o,s,a,l){var u={range:i,message:r};return A.defined(o)&&(u.severity=o),A.defined(s)&&(u.code=s),A.defined(a)&&(u.source=a),A.defined(l)&&(u.relatedInformation=l),u}n.create=e;function t(i){var r,o=i;return A.defined(o)&&Ye.is(o.range)&&A.string(o.message)&&(A.number(o.severity)||A.undefined(o.severity))&&(A.integer(o.code)||A.string(o.code)||A.undefined(o.code))&&(A.undefined(o.codeDescription)||A.string((r=o.codeDescription)===null||r===void 0?void 0:r.href))&&(A.string(o.source)||A.undefined(o.source))&&(A.undefined(o.relatedInformation)||A.typedArray(o.relatedInformation,cy.is))}n.is=t})(lg||(lg={}));(function(n){function e(i,r){for(var o=[],s=2;s0&&(a.arguments=o),a}n.create=e;function t(i){var r=i;return A.defined(r)&&A.string(r.title)&&A.string(r.command)}n.is=t})(Pl||(Pl={}));(function(n){function e(o,s){return{range:o,newText:s}}n.replace=e;function t(o,s){return{range:{start:o,end:o},newText:s}}n.insert=t;function i(o){return{range:o,newText:""}}n.del=i;function r(o){var s=o;return A.objectLiteral(s)&&A.string(s.newText)&&Ye.is(s.range)}n.is=r})(nn||(nn={}));(function(n){function e(i,r,o){var s={label:i};return r!==void 0&&(s.needsConfirmation=r),o!==void 0&&(s.description=o),s}n.create=e;function t(i){var r=i;return A.objectLiteral(r)&&A.string(r.label)&&(A.boolean(r.needsConfirmation)||r.needsConfirmation===void 0)&&(A.string(r.description)||r.description===void 0)}n.is=t})(El||(El={}));(function(n){function e(t){var i=t;return A.string(i)}n.is=e})(Ci||(Ci={}));(function(n){function e(o,s,a){return{range:o,newText:s,annotationId:a}}n.replace=e;function t(o,s,a){return{range:{start:o,end:o},newText:s,annotationId:a}}n.insert=t;function i(o,s){return{range:o,newText:"",annotationId:s}}n.del=i;function r(o){var s=o;return nn.is(s)&&(El.is(s.annotationId)||Ci.is(s.annotationId))}n.is=r})(ss||(ss={}));(function(n){function e(i,r){return{textDocument:i,edits:r}}n.create=e;function t(i){var r=i;return A.defined(r)&&ug.is(r.textDocument)&&Array.isArray(r.edits)}n.is=t})(na||(na={}));(function(n){function e(i,r,o){var s={kind:"create",uri:i};return r!==void 0&&(r.overwrite!==void 0||r.ignoreIfExists!==void 0)&&(s.options=r),o!==void 0&&(s.annotationId=o),s}n.create=e;function t(i){var r=i;return r&&r.kind==="create"&&A.string(r.uri)&&(r.options===void 0||(r.options.overwrite===void 0||A.boolean(r.options.overwrite))&&(r.options.ignoreIfExists===void 0||A.boolean(r.options.ignoreIfExists)))&&(r.annotationId===void 0||Ci.is(r.annotationId))}n.is=t})(ra||(ra={}));(function(n){function e(i,r,o,s){var a={kind:"rename",oldUri:i,newUri:r};return o!==void 0&&(o.overwrite!==void 0||o.ignoreIfExists!==void 0)&&(a.options=o),s!==void 0&&(a.annotationId=s),a}n.create=e;function t(i){var r=i;return r&&r.kind==="rename"&&A.string(r.oldUri)&&A.string(r.newUri)&&(r.options===void 0||(r.options.overwrite===void 0||A.boolean(r.options.overwrite))&&(r.options.ignoreIfExists===void 0||A.boolean(r.options.ignoreIfExists)))&&(r.annotationId===void 0||Ci.is(r.annotationId))}n.is=t})(oa||(oa={}));(function(n){function e(i,r,o){var s={kind:"delete",uri:i};return r!==void 0&&(r.recursive!==void 0||r.ignoreIfNotExists!==void 0)&&(s.options=r),o!==void 0&&(s.annotationId=o),s}n.create=e;function t(i){var r=i;return r&&r.kind==="delete"&&A.string(r.uri)&&(r.options===void 0||(r.options.recursive===void 0||A.boolean(r.options.recursive))&&(r.options.ignoreIfNotExists===void 0||A.boolean(r.options.ignoreIfNotExists)))&&(r.annotationId===void 0||Ci.is(r.annotationId))}n.is=t})(as||(as={}));(function(n){function e(t){var i=t;return i&&(i.changes!==void 0||i.documentChanges!==void 0)&&(i.documentChanges===void 0||i.documentChanges.every(function(r){return A.string(r.kind)?ra.is(r)||oa.is(r)||as.is(r):na.is(r)}))}n.is=e})(hy||(hy={}));ay=function(){function n(e,t){this.edits=e,this.changeAnnotations=t}return n.prototype.insert=function(e,t,i){var r,o;if(i===void 0?r=nn.insert(e,t):Ci.is(i)?(o=i,r=ss.insert(e,t,i)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(i),r=ss.insert(e,t,o)),this.edits.push(r),o!==void 0)return o},n.prototype.replace=function(e,t,i){var r,o;if(i===void 0?r=nn.replace(e,t):Ci.is(i)?(o=i,r=ss.replace(e,t,i)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(i),r=ss.replace(e,t,o)),this.edits.push(r),o!==void 0)return o},n.prototype.delete=function(e,t){var i,r;if(t===void 0?i=nn.del(e):Ci.is(t)?(r=t,i=ss.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(t),i=ss.del(e,r)),this.edits.push(i),r!==void 0)return r},n.prototype.add=function(e){this.edits.push(e)},n.prototype.all=function(){return this.edits},n.prototype.clear=function(){this.edits.splice(0,this.edits.length)},n.prototype.assertChangeAnnotations=function(e){if(e===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},n}(),UB=function(){function n(e){this._annotations=e===void 0?Object.create(null):e,this._counter=0,this._size=0}return n.prototype.all=function(){return this._annotations},Object.defineProperty(n.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),n.prototype.manage=function(e,t){var i;if(Ci.is(e)?i=e:(i=this.nextId(),t=e),this._annotations[i]!==void 0)throw new Error("Id ".concat(i," is already in use."));if(t===void 0)throw new Error("No annotation provided for id ".concat(i));return this._annotations[i]=t,this._size++,i},n.prototype.nextId=function(){return this._counter++,this._counter.toString()},n}(),zge=function(){function n(e){var t=this;this._textEditChanges=Object.create(null),e!==void 0?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new UB(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach(function(i){if(na.is(i)){var r=new ay(i.edits,t._changeAnnotations);t._textEditChanges[i.textDocument.uri]=r}})):e.changes&&Object.keys(e.changes).forEach(function(i){var r=new ay(e.changes[i]);t._textEditChanges[i]=r})):this._workspaceEdit={}}return Object.defineProperty(n.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),n.prototype.getTextEditChange=function(e){if(ug.is(e)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var t={uri:e.uri,version:e.version},i=this._textEditChanges[t.uri];if(!i){var r=[],o={textDocument:t,edits:r};this._workspaceEdit.documentChanges.push(o),i=new ay(r,this._changeAnnotations),this._textEditChanges[t.uri]=i}return i}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var i=this._textEditChanges[e];if(!i){var r=[];this._workspaceEdit.changes[e]=r,i=new ay(r),this._textEditChanges[e]=i}return i}},n.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new UB,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},n.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},n.prototype.createFile=function(e,t,i){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var r;El.is(t)||Ci.is(t)?r=t:i=t;var o,s;if(r===void 0?o=ra.create(e,i):(s=Ci.is(r)?r:this._changeAnnotations.manage(r),o=ra.create(e,i,s)),this._workspaceEdit.documentChanges.push(o),s!==void 0)return s},n.prototype.renameFile=function(e,t,i,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var o;El.is(i)||Ci.is(i)?o=i:r=i;var s,a;if(o===void 0?s=oa.create(e,t,r):(a=Ci.is(o)?o:this._changeAnnotations.manage(o),s=oa.create(e,t,r,a)),this._workspaceEdit.documentChanges.push(s),a!==void 0)return a},n.prototype.deleteFile=function(e,t,i){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var r;El.is(t)||Ci.is(t)?r=t:i=t;var o,s;if(r===void 0?o=as.create(e,i):(s=Ci.is(r)?r:this._changeAnnotations.manage(r),o=as.create(e,i,s)),this._workspaceEdit.documentChanges.push(o),s!==void 0)return s},n}();(function(n){function e(i){return{uri:i}}n.create=e;function t(i){var r=i;return A.defined(r)&&A.string(r.uri)}n.is=t})(R0||(R0={}));(function(n){function e(i,r){return{uri:i,version:r}}n.create=e;function t(i){var r=i;return A.defined(r)&&A.string(r.uri)&&A.integer(r.version)}n.is=t})(L0||(L0={}));(function(n){function e(i,r){return{uri:i,version:r}}n.create=e;function t(i){var r=i;return A.defined(r)&&A.string(r.uri)&&(r.version===null||A.integer(r.version))}n.is=t})(ug||(ug={}));(function(n){function e(i,r,o,s){return{uri:i,languageId:r,version:o,text:s}}n.create=e;function t(i){var r=i;return A.defined(r)&&A.string(r.uri)&&A.string(r.languageId)&&A.integer(r.version)&&A.string(r.text)}n.is=t})(F0||(F0={}));(function(n){n.PlainText="plaintext",n.Markdown="markdown";function e(t){var i=t;return i===n.PlainText||i===n.Markdown}n.is=e})(dy||(dy={}));(function(n){function e(t){var i=t;return A.objectLiteral(t)&&dy.is(i.kind)&&A.string(i.value)}n.is=e})(gc||(gc={}));(function(n){n.Text=1,n.Method=2,n.Function=3,n.Constructor=4,n.Field=5,n.Variable=6,n.Class=7,n.Interface=8,n.Module=9,n.Property=10,n.Unit=11,n.Value=12,n.Enum=13,n.Keyword=14,n.Snippet=15,n.Color=16,n.File=17,n.Reference=18,n.Folder=19,n.EnumMember=20,n.Constant=21,n.Struct=22,n.Event=23,n.Operator=24,n.TypeParameter=25})(I0||(I0={}));(function(n){n.PlainText=1,n.Snippet=2})(j0||(j0={}));(function(n){n.Deprecated=1})(A0||(A0={}));(function(n){function e(i,r,o){return{newText:i,insert:r,replace:o}}n.create=e;function t(i){var r=i;return r&&A.string(r.newText)&&Ye.is(r.insert)&&Ye.is(r.replace)}n.is=t})(M0||(M0={}));(function(n){n.asIs=1,n.adjustIndentation=2})(O0||(O0={}));(function(n){function e(t){var i=t;return i&&(A.string(i.detail)||i.detail===void 0)&&(A.string(i.description)||i.description===void 0)}n.is=e})(N0||(N0={}));(function(n){function e(t){return{label:t}}n.create=e})(B0||(B0={}));(function(n){function e(t,i){return{items:t||[],isIncomplete:!!i}}n.create=e})(H0||(H0={}));(function(n){function e(i){return i.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}n.fromPlainText=e;function t(i){var r=i;return A.string(r)||A.objectLiteral(r)&&A.string(r.language)&&A.string(r.value)}n.is=t})(cg||(cg={}));(function(n){function e(t){var i=t;return!!i&&A.objectLiteral(i)&&(gc.is(i.contents)||cg.is(i.contents)||A.typedArray(i.contents,cg.is))&&(t.range===void 0||Ye.is(t.range))}n.is=e})(q0||(q0={}));(function(n){function e(t,i){return i?{label:t,documentation:i}:{label:t}}n.create=e})(Y0||(Y0={}));(function(n){function e(t,i){for(var r=[],o=2;o=0;c--){var h=l[c],d=o.offsetAt(h.range.start),g=o.offsetAt(h.range.end);if(g<=u)a=a.substring(0,d)+h.newText+a.substring(g,a.length);else throw new Error("Overlapping edit");u=d}return a}n.applyEdits=i;function r(o,s){if(o.length<=1)return o;var a=o.length/2|0,l=o.slice(0,a),u=o.slice(a);r(l,s),r(u,s);for(var c=0,h=0,d=0;c=0;c--){var h=l[c],d=o.offsetAt(h.range.start),g=o.offsetAt(h.range.end);if(g<=u)a=a.substring(0,d)+h.newText+a.substring(g,a.length);else throw new Error("Overlapping edit");u=d}return a}n.applyEdits=i;function r(o,s){if(o.length<=1)return o;var a=o.length/2|0,l=o.slice(0,a),u=o.slice(a);r(l,s),r(u,s);for(var c=0,h=0,d=0;c0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},n.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),i=0,r=t.length;if(r===0)return Vt.create(0,e);for(;ie?r=o:i=o+1}var s=i-1;return Vt.create(s,e-t[s])},n.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var i=t[e.line],r=e.line+1"u"}n.undefined=i;function r(g){return g===!0||g===!1}n.boolean=r;function o(g){return e.call(g)==="[object String]"}n.string=o;function s(g){return e.call(g)==="[object Number]"}n.number=s;function a(g,f,p){return e.call(g)==="[object Number]"&&f<=g&&g<=p}n.numberRange=a;function l(g){return e.call(g)==="[object Number]"&&-2147483648<=g&&g<=2147483647}n.integer=l;function u(g){return e.call(g)==="[object Number]"&&0<=g&&g<=2147483647}n.uinteger=u;function c(g){return e.call(g)==="[object Function]"}n.func=c;function h(g){return g!==null&&typeof g=="object"}n.objectLiteral=h;function d(g,f){return Array.isArray(g)&&g.every(f)}n.typedArray=d})(Y||(Y={}))});var li=m(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.ProtocolNotificationType=Qn.ProtocolNotificationType0=Qn.ProtocolRequestType=Qn.ProtocolRequestType0=Qn.RegistrationType=void 0;var ic=Vu(),KN=class{constructor(e){this.method=e}};Qn.RegistrationType=KN;var zN=class extends ic.RequestType0{constructor(e){super(e)}};Qn.ProtocolRequestType0=zN;var VN=class extends ic.RequestType{constructor(e){super(e,ic.ParameterStructures.byName)}};Qn.ProtocolRequestType=VN;var eB=class extends ic.NotificationType0{constructor(e){super(e)}};Qn.ProtocolNotificationType0=eB;var tB=class extends ic.NotificationType{constructor(e){super(e,ic.ParameterStructures.byName)}};Qn.ProtocolNotificationType=tB});var rB=m(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.objectLiteral=Zt.typedArray=Zt.stringArray=Zt.array=Zt.func=Zt.error=Zt.number=Zt.string=Zt.boolean=void 0;function Dde(n){return n===!0||n===!1}Zt.boolean=Dde;function iB(n){return typeof n=="string"||n instanceof String}Zt.string=iB;function xde(n){return typeof n=="number"||n instanceof Number}Zt.number=xde;function Cde(n){return n instanceof Error}Zt.error=Cde;function Sde(n){return typeof n=="function"}Zt.func=Sde;function nB(n){return Array.isArray(n)}Zt.array=nB;function Tde(n){return nB(n)&&n.every(e=>iB(e))}Zt.stringArray=Tde;function kde(n,e){return Array.isArray(n)&&n.every(e)}Zt.typedArray=kde;function Ede(n){return n!==null&&typeof n=="object"}Zt.objectLiteral=Ede});var oB=m(Xd=>{"use strict";Object.defineProperty(Xd,"__esModule",{value:!0});Xd.ImplementationRequest=void 0;var Pde=li(),_de;(function(n){n.method="textDocument/implementation",n.type=new Pde.ProtocolRequestType(n.method)})(_de=Xd.ImplementationRequest||(Xd.ImplementationRequest={}))});var sB=m(Ud=>{"use strict";Object.defineProperty(Ud,"__esModule",{value:!0});Ud.TypeDefinitionRequest=void 0;var Rde=li(),Lde;(function(n){n.method="textDocument/typeDefinition",n.type=new Rde.ProtocolRequestType(n.method)})(Lde=Ud.TypeDefinitionRequest||(Ud.TypeDefinitionRequest={}))});var lB=m($s=>{"use strict";Object.defineProperty($s,"__esModule",{value:!0});$s.DidChangeWorkspaceFoldersNotification=$s.WorkspaceFoldersRequest=void 0;var aB=li(),Fde;(function(n){n.type=new aB.ProtocolRequestType0("workspace/workspaceFolders")})(Fde=$s.WorkspaceFoldersRequest||($s.WorkspaceFoldersRequest={}));var Ide;(function(n){n.type=new aB.ProtocolNotificationType("workspace/didChangeWorkspaceFolders")})(Ide=$s.DidChangeWorkspaceFoldersNotification||($s.DidChangeWorkspaceFoldersNotification={}))});var uB=m(Gd=>{"use strict";Object.defineProperty(Gd,"__esModule",{value:!0});Gd.ConfigurationRequest=void 0;var jde=li(),Ade;(function(n){n.type=new jde.ProtocolRequestType("workspace/configuration")})(Ade=Gd.ConfigurationRequest||(Gd.ConfigurationRequest={}))});var hB=m(Xs=>{"use strict";Object.defineProperty(Xs,"__esModule",{value:!0});Xs.ColorPresentationRequest=Xs.DocumentColorRequest=void 0;var cB=li(),Ode;(function(n){n.method="textDocument/documentColor",n.type=new cB.ProtocolRequestType(n.method)})(Ode=Xs.DocumentColorRequest||(Xs.DocumentColorRequest={}));var Mde;(function(n){n.type=new cB.ProtocolRequestType("textDocument/colorPresentation")})(Mde=Xs.ColorPresentationRequest||(Xs.ColorPresentationRequest={}))});var dB=m(Us=>{"use strict";Object.defineProperty(Us,"__esModule",{value:!0});Us.FoldingRangeRequest=Us.FoldingRangeKind=void 0;var Nde=li(),Bde;(function(n){n.Comment="comment",n.Imports="imports",n.Region="region"})(Bde=Us.FoldingRangeKind||(Us.FoldingRangeKind={}));var Hde;(function(n){n.method="textDocument/foldingRange",n.type=new Nde.ProtocolRequestType(n.method)})(Hde=Us.FoldingRangeRequest||(Us.FoldingRangeRequest={}))});var gB=m(Qd=>{"use strict";Object.defineProperty(Qd,"__esModule",{value:!0});Qd.DeclarationRequest=void 0;var qde=li(),Yde;(function(n){n.method="textDocument/declaration",n.type=new qde.ProtocolRequestType(n.method)})(Yde=Qd.DeclarationRequest||(Qd.DeclarationRequest={}))});var fB=m(Kd=>{"use strict";Object.defineProperty(Kd,"__esModule",{value:!0});Kd.SelectionRangeRequest=void 0;var Wde=li(),Zde;(function(n){n.method="textDocument/selectionRange",n.type=new Wde.ProtocolRequestType(n.method)})(Zde=Kd.SelectionRangeRequest||(Kd.SelectionRangeRequest={}))});var mB=m(Sr=>{"use strict";Object.defineProperty(Sr,"__esModule",{value:!0});Sr.WorkDoneProgressCancelNotification=Sr.WorkDoneProgressCreateRequest=Sr.WorkDoneProgress=void 0;var Jde=Vu(),pB=li(),$de;(function(n){n.type=new Jde.ProgressType;function e(t){return t===n.type}n.is=e})($de=Sr.WorkDoneProgress||(Sr.WorkDoneProgress={}));var Xde;(function(n){n.type=new pB.ProtocolRequestType("window/workDoneProgress/create")})(Xde=Sr.WorkDoneProgressCreateRequest||(Sr.WorkDoneProgressCreateRequest={}));var Ude;(function(n){n.type=new pB.ProtocolNotificationType("window/workDoneProgress/cancel")})(Ude=Sr.WorkDoneProgressCancelNotification||(Sr.WorkDoneProgressCancelNotification={}))});var bB=m(Tr=>{"use strict";Object.defineProperty(Tr,"__esModule",{value:!0});Tr.CallHierarchyOutgoingCallsRequest=Tr.CallHierarchyIncomingCallsRequest=Tr.CallHierarchyPrepareRequest=void 0;var v0=li(),Gde;(function(n){n.method="textDocument/prepareCallHierarchy",n.type=new v0.ProtocolRequestType(n.method)})(Gde=Tr.CallHierarchyPrepareRequest||(Tr.CallHierarchyPrepareRequest={}));var Qde;(function(n){n.method="callHierarchy/incomingCalls",n.type=new v0.ProtocolRequestType(n.method)})(Qde=Tr.CallHierarchyIncomingCallsRequest||(Tr.CallHierarchyIncomingCallsRequest={}));var Kde;(function(n){n.method="callHierarchy/outgoingCalls",n.type=new v0.ProtocolRequestType(n.method)})(Kde=Tr.CallHierarchyOutgoingCallsRequest||(Tr.CallHierarchyOutgoingCallsRequest={}))});var yB=m(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.SemanticTokensRefreshRequest=ze.SemanticTokensRangeRequest=ze.SemanticTokensDeltaRequest=ze.SemanticTokensRequest=ze.SemanticTokensRegistrationType=ze.TokenFormat=ze.SemanticTokens=ze.SemanticTokenModifiers=ze.SemanticTokenTypes=void 0;var zd=li(),zde;(function(n){n.namespace="namespace",n.type="type",n.class="class",n.enum="enum",n.interface="interface",n.struct="struct",n.typeParameter="typeParameter",n.parameter="parameter",n.variable="variable",n.property="property",n.enumMember="enumMember",n.event="event",n.function="function",n.method="method",n.macro="macro",n.keyword="keyword",n.modifier="modifier",n.comment="comment",n.string="string",n.number="number",n.regexp="regexp",n.operator="operator"})(zde=ze.SemanticTokenTypes||(ze.SemanticTokenTypes={}));var Vde;(function(n){n.declaration="declaration",n.definition="definition",n.readonly="readonly",n.static="static",n.deprecated="deprecated",n.abstract="abstract",n.async="async",n.modification="modification",n.documentation="documentation",n.defaultLibrary="defaultLibrary"})(Vde=ze.SemanticTokenModifiers||(ze.SemanticTokenModifiers={}));var ege;(function(n){function e(t){let i=t;return i!==void 0&&(i.resultId===void 0||typeof i.resultId=="string")&&Array.isArray(i.data)&&(i.data.length===0||typeof i.data[0]=="number")}n.is=e})(ege=ze.SemanticTokens||(ze.SemanticTokens={}));var tge;(function(n){n.Relative="relative"})(tge=ze.TokenFormat||(ze.TokenFormat={}));var ige;(function(n){n.method="textDocument/semanticTokens",n.type=new zd.RegistrationType(n.method)})(ige=ze.SemanticTokensRegistrationType||(ze.SemanticTokensRegistrationType={}));var nge;(function(n){n.method="textDocument/semanticTokens/full",n.type=new zd.ProtocolRequestType(n.method)})(nge=ze.SemanticTokensRequest||(ze.SemanticTokensRequest={}));var rge;(function(n){n.method="textDocument/semanticTokens/full/delta",n.type=new zd.ProtocolRequestType(n.method)})(rge=ze.SemanticTokensDeltaRequest||(ze.SemanticTokensDeltaRequest={}));var oge;(function(n){n.method="textDocument/semanticTokens/range",n.type=new zd.ProtocolRequestType(n.method)})(oge=ze.SemanticTokensRangeRequest||(ze.SemanticTokensRangeRequest={}));var sge;(function(n){n.method="workspace/semanticTokens/refresh",n.type=new zd.ProtocolRequestType0(n.method)})(sge=ze.SemanticTokensRefreshRequest||(ze.SemanticTokensRefreshRequest={}))});var vB=m(Vd=>{"use strict";Object.defineProperty(Vd,"__esModule",{value:!0});Vd.ShowDocumentRequest=void 0;var age=li(),lge;(function(n){n.method="window/showDocument",n.type=new age.ProtocolRequestType(n.method)})(lge=Vd.ShowDocumentRequest||(Vd.ShowDocumentRequest={}))});var wB=m(eg=>{"use strict";Object.defineProperty(eg,"__esModule",{value:!0});eg.LinkedEditingRangeRequest=void 0;var uge=li(),cge;(function(n){n.method="textDocument/linkedEditingRange",n.type=new uge.ProtocolRequestType(n.method)})(cge=eg.LinkedEditingRangeRequest||(eg.LinkedEditingRangeRequest={}))});var DB=m(Pt=>{"use strict";Object.defineProperty(Pt,"__esModule",{value:!0});Pt.WillDeleteFilesRequest=Pt.DidDeleteFilesNotification=Pt.DidRenameFilesNotification=Pt.WillRenameFilesRequest=Pt.DidCreateFilesNotification=Pt.WillCreateFilesRequest=Pt.FileOperationPatternKind=void 0;var nc=li(),hge;(function(n){n.file="file",n.folder="folder"})(hge=Pt.FileOperationPatternKind||(Pt.FileOperationPatternKind={}));var dge;(function(n){n.method="workspace/willCreateFiles",n.type=new nc.ProtocolRequestType(n.method)})(dge=Pt.WillCreateFilesRequest||(Pt.WillCreateFilesRequest={}));var gge;(function(n){n.method="workspace/didCreateFiles",n.type=new nc.ProtocolNotificationType(n.method)})(gge=Pt.DidCreateFilesNotification||(Pt.DidCreateFilesNotification={}));var fge;(function(n){n.method="workspace/willRenameFiles",n.type=new nc.ProtocolRequestType(n.method)})(fge=Pt.WillRenameFilesRequest||(Pt.WillRenameFilesRequest={}));var pge;(function(n){n.method="workspace/didRenameFiles",n.type=new nc.ProtocolNotificationType(n.method)})(pge=Pt.DidRenameFilesNotification||(Pt.DidRenameFilesNotification={}));var mge;(function(n){n.method="workspace/didDeleteFiles",n.type=new nc.ProtocolNotificationType(n.method)})(mge=Pt.DidDeleteFilesNotification||(Pt.DidDeleteFilesNotification={}));var bge;(function(n){n.method="workspace/willDeleteFiles",n.type=new nc.ProtocolRequestType(n.method)})(bge=Pt.WillDeleteFilesRequest||(Pt.WillDeleteFilesRequest={}))});var xB=m(kr=>{"use strict";Object.defineProperty(kr,"__esModule",{value:!0});kr.MonikerRequest=kr.MonikerKind=kr.UniquenessLevel=void 0;var yge=li(),vge;(function(n){n.document="document",n.project="project",n.group="group",n.scheme="scheme",n.global="global"})(vge=kr.UniquenessLevel||(kr.UniquenessLevel={}));var wge;(function(n){n.import="import",n.export="export",n.local="local"})(wge=kr.MonikerKind||(kr.MonikerKind={}));var Dge;(function(n){n.method="textDocument/moniker",n.type=new yge.ProtocolRequestType(n.method)})(Dge=kr.MonikerRequest||(kr.MonikerRequest={}))});var EB=m(T=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0});T.DocumentLinkRequest=T.CodeLensRefreshRequest=T.CodeLensResolveRequest=T.CodeLensRequest=T.WorkspaceSymbolRequest=T.CodeActionResolveRequest=T.CodeActionRequest=T.DocumentSymbolRequest=T.DocumentHighlightRequest=T.ReferencesRequest=T.DefinitionRequest=T.SignatureHelpRequest=T.SignatureHelpTriggerKind=T.HoverRequest=T.CompletionResolveRequest=T.CompletionRequest=T.CompletionTriggerKind=T.PublishDiagnosticsNotification=T.WatchKind=T.FileChangeType=T.DidChangeWatchedFilesNotification=T.WillSaveTextDocumentWaitUntilRequest=T.WillSaveTextDocumentNotification=T.TextDocumentSaveReason=T.DidSaveTextDocumentNotification=T.DidCloseTextDocumentNotification=T.DidChangeTextDocumentNotification=T.TextDocumentContentChangeEvent=T.DidOpenTextDocumentNotification=T.TextDocumentSyncKind=T.TelemetryEventNotification=T.LogMessageNotification=T.ShowMessageRequest=T.ShowMessageNotification=T.MessageType=T.DidChangeConfigurationNotification=T.ExitNotification=T.ShutdownRequest=T.InitializedNotification=T.InitializeError=T.InitializeRequest=T.WorkDoneProgressOptions=T.TextDocumentRegistrationOptions=T.StaticRegistrationOptions=T.FailureHandlingKind=T.ResourceOperationKind=T.UnregistrationRequest=T.RegistrationRequest=T.DocumentSelector=T.DocumentFilter=void 0;T.MonikerRequest=T.MonikerKind=T.UniquenessLevel=T.WillDeleteFilesRequest=T.DidDeleteFilesNotification=T.WillRenameFilesRequest=T.DidRenameFilesNotification=T.WillCreateFilesRequest=T.DidCreateFilesNotification=T.FileOperationPatternKind=T.LinkedEditingRangeRequest=T.ShowDocumentRequest=T.SemanticTokensRegistrationType=T.SemanticTokensRefreshRequest=T.SemanticTokensRangeRequest=T.SemanticTokensDeltaRequest=T.SemanticTokensRequest=T.TokenFormat=T.SemanticTokens=T.SemanticTokenModifiers=T.SemanticTokenTypes=T.CallHierarchyPrepareRequest=T.CallHierarchyOutgoingCallsRequest=T.CallHierarchyIncomingCallsRequest=T.WorkDoneProgressCancelNotification=T.WorkDoneProgressCreateRequest=T.WorkDoneProgress=T.SelectionRangeRequest=T.DeclarationRequest=T.FoldingRangeRequest=T.ColorPresentationRequest=T.DocumentColorRequest=T.ConfigurationRequest=T.DidChangeWorkspaceFoldersNotification=T.WorkspaceFoldersRequest=T.TypeDefinitionRequest=T.ImplementationRequest=T.ApplyWorkspaceEditRequest=T.ExecuteCommandRequest=T.PrepareRenameRequest=T.RenameRequest=T.PrepareSupportDefaultBehavior=T.DocumentOnTypeFormattingRequest=T.DocumentRangeFormattingRequest=T.DocumentFormattingRequest=T.DocumentLinkResolveRequest=void 0;var Gs=rB(),ve=li(),xge=oB();Object.defineProperty(T,"ImplementationRequest",{enumerable:!0,get:function(){return xge.ImplementationRequest}});var Cge=sB();Object.defineProperty(T,"TypeDefinitionRequest",{enumerable:!0,get:function(){return Cge.TypeDefinitionRequest}});var CB=lB();Object.defineProperty(T,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return CB.WorkspaceFoldersRequest}});Object.defineProperty(T,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return CB.DidChangeWorkspaceFoldersNotification}});var Sge=uB();Object.defineProperty(T,"ConfigurationRequest",{enumerable:!0,get:function(){return Sge.ConfigurationRequest}});var SB=hB();Object.defineProperty(T,"DocumentColorRequest",{enumerable:!0,get:function(){return SB.DocumentColorRequest}});Object.defineProperty(T,"ColorPresentationRequest",{enumerable:!0,get:function(){return SB.ColorPresentationRequest}});var Tge=dB();Object.defineProperty(T,"FoldingRangeRequest",{enumerable:!0,get:function(){return Tge.FoldingRangeRequest}});var kge=gB();Object.defineProperty(T,"DeclarationRequest",{enumerable:!0,get:function(){return kge.DeclarationRequest}});var Ege=fB();Object.defineProperty(T,"SelectionRangeRequest",{enumerable:!0,get:function(){return Ege.SelectionRangeRequest}});var w0=mB();Object.defineProperty(T,"WorkDoneProgress",{enumerable:!0,get:function(){return w0.WorkDoneProgress}});Object.defineProperty(T,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return w0.WorkDoneProgressCreateRequest}});Object.defineProperty(T,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return w0.WorkDoneProgressCancelNotification}});var D0=bB();Object.defineProperty(T,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return D0.CallHierarchyIncomingCallsRequest}});Object.defineProperty(T,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return D0.CallHierarchyOutgoingCallsRequest}});Object.defineProperty(T,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return D0.CallHierarchyPrepareRequest}});var Wo=yB();Object.defineProperty(T,"SemanticTokenTypes",{enumerable:!0,get:function(){return Wo.SemanticTokenTypes}});Object.defineProperty(T,"SemanticTokenModifiers",{enumerable:!0,get:function(){return Wo.SemanticTokenModifiers}});Object.defineProperty(T,"SemanticTokens",{enumerable:!0,get:function(){return Wo.SemanticTokens}});Object.defineProperty(T,"TokenFormat",{enumerable:!0,get:function(){return Wo.TokenFormat}});Object.defineProperty(T,"SemanticTokensRequest",{enumerable:!0,get:function(){return Wo.SemanticTokensRequest}});Object.defineProperty(T,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return Wo.SemanticTokensDeltaRequest}});Object.defineProperty(T,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return Wo.SemanticTokensRangeRequest}});Object.defineProperty(T,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return Wo.SemanticTokensRefreshRequest}});Object.defineProperty(T,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return Wo.SemanticTokensRegistrationType}});var Pge=vB();Object.defineProperty(T,"ShowDocumentRequest",{enumerable:!0,get:function(){return Pge.ShowDocumentRequest}});var _ge=wB();Object.defineProperty(T,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return _ge.LinkedEditingRangeRequest}});var fl=DB();Object.defineProperty(T,"FileOperationPatternKind",{enumerable:!0,get:function(){return fl.FileOperationPatternKind}});Object.defineProperty(T,"DidCreateFilesNotification",{enumerable:!0,get:function(){return fl.DidCreateFilesNotification}});Object.defineProperty(T,"WillCreateFilesRequest",{enumerable:!0,get:function(){return fl.WillCreateFilesRequest}});Object.defineProperty(T,"DidRenameFilesNotification",{enumerable:!0,get:function(){return fl.DidRenameFilesNotification}});Object.defineProperty(T,"WillRenameFilesRequest",{enumerable:!0,get:function(){return fl.WillRenameFilesRequest}});Object.defineProperty(T,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return fl.DidDeleteFilesNotification}});Object.defineProperty(T,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return fl.WillDeleteFilesRequest}});var x0=xB();Object.defineProperty(T,"UniquenessLevel",{enumerable:!0,get:function(){return x0.UniquenessLevel}});Object.defineProperty(T,"MonikerKind",{enumerable:!0,get:function(){return x0.MonikerKind}});Object.defineProperty(T,"MonikerRequest",{enumerable:!0,get:function(){return x0.MonikerRequest}});var TB;(function(n){function e(t){let i=t;return Gs.string(i.language)||Gs.string(i.scheme)||Gs.string(i.pattern)}n.is=e})(TB=T.DocumentFilter||(T.DocumentFilter={}));var kB;(function(n){function e(t){if(!Array.isArray(t))return!1;for(let i of t)if(!Gs.string(i)&&!TB.is(i))return!1;return!0}n.is=e})(kB=T.DocumentSelector||(T.DocumentSelector={}));var Rge;(function(n){n.type=new ve.ProtocolRequestType("client/registerCapability")})(Rge=T.RegistrationRequest||(T.RegistrationRequest={}));var Lge;(function(n){n.type=new ve.ProtocolRequestType("client/unregisterCapability")})(Lge=T.UnregistrationRequest||(T.UnregistrationRequest={}));var Fge;(function(n){n.Create="create",n.Rename="rename",n.Delete="delete"})(Fge=T.ResourceOperationKind||(T.ResourceOperationKind={}));var Ige;(function(n){n.Abort="abort",n.Transactional="transactional",n.TextOnlyTransactional="textOnlyTransactional",n.Undo="undo"})(Ige=T.FailureHandlingKind||(T.FailureHandlingKind={}));var jge;(function(n){function e(t){let i=t;return i&&Gs.string(i.id)&&i.id.length>0}n.hasId=e})(jge=T.StaticRegistrationOptions||(T.StaticRegistrationOptions={}));var Age;(function(n){function e(t){let i=t;return i&&(i.documentSelector===null||kB.is(i.documentSelector))}n.is=e})(Age=T.TextDocumentRegistrationOptions||(T.TextDocumentRegistrationOptions={}));var Oge;(function(n){function e(i){let r=i;return Gs.objectLiteral(r)&&(r.workDoneProgress===void 0||Gs.boolean(r.workDoneProgress))}n.is=e;function t(i){let r=i;return r&&Gs.boolean(r.workDoneProgress)}n.hasWorkDoneProgress=t})(Oge=T.WorkDoneProgressOptions||(T.WorkDoneProgressOptions={}));var Mge;(function(n){n.type=new ve.ProtocolRequestType("initialize")})(Mge=T.InitializeRequest||(T.InitializeRequest={}));var Nge;(function(n){n.unknownProtocolVersion=1})(Nge=T.InitializeError||(T.InitializeError={}));var Bge;(function(n){n.type=new ve.ProtocolNotificationType("initialized")})(Bge=T.InitializedNotification||(T.InitializedNotification={}));var Hge;(function(n){n.type=new ve.ProtocolRequestType0("shutdown")})(Hge=T.ShutdownRequest||(T.ShutdownRequest={}));var qge;(function(n){n.type=new ve.ProtocolNotificationType0("exit")})(qge=T.ExitNotification||(T.ExitNotification={}));var Yge;(function(n){n.type=new ve.ProtocolNotificationType("workspace/didChangeConfiguration")})(Yge=T.DidChangeConfigurationNotification||(T.DidChangeConfigurationNotification={}));var Wge;(function(n){n.Error=1,n.Warning=2,n.Info=3,n.Log=4})(Wge=T.MessageType||(T.MessageType={}));var Zge;(function(n){n.type=new ve.ProtocolNotificationType("window/showMessage")})(Zge=T.ShowMessageNotification||(T.ShowMessageNotification={}));var Jge;(function(n){n.type=new ve.ProtocolRequestType("window/showMessageRequest")})(Jge=T.ShowMessageRequest||(T.ShowMessageRequest={}));var $ge;(function(n){n.type=new ve.ProtocolNotificationType("window/logMessage")})($ge=T.LogMessageNotification||(T.LogMessageNotification={}));var Xge;(function(n){n.type=new ve.ProtocolNotificationType("telemetry/event")})(Xge=T.TelemetryEventNotification||(T.TelemetryEventNotification={}));var Uge;(function(n){n.None=0,n.Full=1,n.Incremental=2})(Uge=T.TextDocumentSyncKind||(T.TextDocumentSyncKind={}));var Gge;(function(n){n.method="textDocument/didOpen",n.type=new ve.ProtocolNotificationType(n.method)})(Gge=T.DidOpenTextDocumentNotification||(T.DidOpenTextDocumentNotification={}));var Qge;(function(n){function e(i){let r=i;return r!=null&&typeof r.text=="string"&&r.range!==void 0&&(r.rangeLength===void 0||typeof r.rangeLength=="number")}n.isIncremental=e;function t(i){let r=i;return r!=null&&typeof r.text=="string"&&r.range===void 0&&r.rangeLength===void 0}n.isFull=t})(Qge=T.TextDocumentContentChangeEvent||(T.TextDocumentContentChangeEvent={}));var Kge;(function(n){n.method="textDocument/didChange",n.type=new ve.ProtocolNotificationType(n.method)})(Kge=T.DidChangeTextDocumentNotification||(T.DidChangeTextDocumentNotification={}));var zge;(function(n){n.method="textDocument/didClose",n.type=new ve.ProtocolNotificationType(n.method)})(zge=T.DidCloseTextDocumentNotification||(T.DidCloseTextDocumentNotification={}));var Vge;(function(n){n.method="textDocument/didSave",n.type=new ve.ProtocolNotificationType(n.method)})(Vge=T.DidSaveTextDocumentNotification||(T.DidSaveTextDocumentNotification={}));var efe;(function(n){n.Manual=1,n.AfterDelay=2,n.FocusOut=3})(efe=T.TextDocumentSaveReason||(T.TextDocumentSaveReason={}));var tfe;(function(n){n.method="textDocument/willSave",n.type=new ve.ProtocolNotificationType(n.method)})(tfe=T.WillSaveTextDocumentNotification||(T.WillSaveTextDocumentNotification={}));var ife;(function(n){n.method="textDocument/willSaveWaitUntil",n.type=new ve.ProtocolRequestType(n.method)})(ife=T.WillSaveTextDocumentWaitUntilRequest||(T.WillSaveTextDocumentWaitUntilRequest={}));var nfe;(function(n){n.type=new ve.ProtocolNotificationType("workspace/didChangeWatchedFiles")})(nfe=T.DidChangeWatchedFilesNotification||(T.DidChangeWatchedFilesNotification={}));var rfe;(function(n){n.Created=1,n.Changed=2,n.Deleted=3})(rfe=T.FileChangeType||(T.FileChangeType={}));var ofe;(function(n){n.Create=1,n.Change=2,n.Delete=4})(ofe=T.WatchKind||(T.WatchKind={}));var sfe;(function(n){n.type=new ve.ProtocolNotificationType("textDocument/publishDiagnostics")})(sfe=T.PublishDiagnosticsNotification||(T.PublishDiagnosticsNotification={}));var afe;(function(n){n.Invoked=1,n.TriggerCharacter=2,n.TriggerForIncompleteCompletions=3})(afe=T.CompletionTriggerKind||(T.CompletionTriggerKind={}));var lfe;(function(n){n.method="textDocument/completion",n.type=new ve.ProtocolRequestType(n.method)})(lfe=T.CompletionRequest||(T.CompletionRequest={}));var ufe;(function(n){n.method="completionItem/resolve",n.type=new ve.ProtocolRequestType(n.method)})(ufe=T.CompletionResolveRequest||(T.CompletionResolveRequest={}));var cfe;(function(n){n.method="textDocument/hover",n.type=new ve.ProtocolRequestType(n.method)})(cfe=T.HoverRequest||(T.HoverRequest={}));var hfe;(function(n){n.Invoked=1,n.TriggerCharacter=2,n.ContentChange=3})(hfe=T.SignatureHelpTriggerKind||(T.SignatureHelpTriggerKind={}));var dfe;(function(n){n.method="textDocument/signatureHelp",n.type=new ve.ProtocolRequestType(n.method)})(dfe=T.SignatureHelpRequest||(T.SignatureHelpRequest={}));var gfe;(function(n){n.method="textDocument/definition",n.type=new ve.ProtocolRequestType(n.method)})(gfe=T.DefinitionRequest||(T.DefinitionRequest={}));var ffe;(function(n){n.method="textDocument/references",n.type=new ve.ProtocolRequestType(n.method)})(ffe=T.ReferencesRequest||(T.ReferencesRequest={}));var pfe;(function(n){n.method="textDocument/documentHighlight",n.type=new ve.ProtocolRequestType(n.method)})(pfe=T.DocumentHighlightRequest||(T.DocumentHighlightRequest={}));var mfe;(function(n){n.method="textDocument/documentSymbol",n.type=new ve.ProtocolRequestType(n.method)})(mfe=T.DocumentSymbolRequest||(T.DocumentSymbolRequest={}));var bfe;(function(n){n.method="textDocument/codeAction",n.type=new ve.ProtocolRequestType(n.method)})(bfe=T.CodeActionRequest||(T.CodeActionRequest={}));var yfe;(function(n){n.method="codeAction/resolve",n.type=new ve.ProtocolRequestType(n.method)})(yfe=T.CodeActionResolveRequest||(T.CodeActionResolveRequest={}));var vfe;(function(n){n.method="workspace/symbol",n.type=new ve.ProtocolRequestType(n.method)})(vfe=T.WorkspaceSymbolRequest||(T.WorkspaceSymbolRequest={}));var wfe;(function(n){n.method="textDocument/codeLens",n.type=new ve.ProtocolRequestType(n.method)})(wfe=T.CodeLensRequest||(T.CodeLensRequest={}));var Dfe;(function(n){n.method="codeLens/resolve",n.type=new ve.ProtocolRequestType(n.method)})(Dfe=T.CodeLensResolveRequest||(T.CodeLensResolveRequest={}));var xfe;(function(n){n.method="workspace/codeLens/refresh",n.type=new ve.ProtocolRequestType0(n.method)})(xfe=T.CodeLensRefreshRequest||(T.CodeLensRefreshRequest={}));var Cfe;(function(n){n.method="textDocument/documentLink",n.type=new ve.ProtocolRequestType(n.method)})(Cfe=T.DocumentLinkRequest||(T.DocumentLinkRequest={}));var Sfe;(function(n){n.method="documentLink/resolve",n.type=new ve.ProtocolRequestType(n.method)})(Sfe=T.DocumentLinkResolveRequest||(T.DocumentLinkResolveRequest={}));var Tfe;(function(n){n.method="textDocument/formatting",n.type=new ve.ProtocolRequestType(n.method)})(Tfe=T.DocumentFormattingRequest||(T.DocumentFormattingRequest={}));var kfe;(function(n){n.method="textDocument/rangeFormatting",n.type=new ve.ProtocolRequestType(n.method)})(kfe=T.DocumentRangeFormattingRequest||(T.DocumentRangeFormattingRequest={}));var Efe;(function(n){n.method="textDocument/onTypeFormatting",n.type=new ve.ProtocolRequestType(n.method)})(Efe=T.DocumentOnTypeFormattingRequest||(T.DocumentOnTypeFormattingRequest={}));var Pfe;(function(n){n.Identifier=1})(Pfe=T.PrepareSupportDefaultBehavior||(T.PrepareSupportDefaultBehavior={}));var _fe;(function(n){n.method="textDocument/rename",n.type=new ve.ProtocolRequestType(n.method)})(_fe=T.RenameRequest||(T.RenameRequest={}));var Rfe;(function(n){n.method="textDocument/prepareRename",n.type=new ve.ProtocolRequestType(n.method)})(Rfe=T.PrepareRenameRequest||(T.PrepareRenameRequest={}));var Lfe;(function(n){n.type=new ve.ProtocolRequestType("workspace/executeCommand")})(Lfe=T.ExecuteCommandRequest||(T.ExecuteCommandRequest={}));var Ffe;(function(n){n.type=new ve.ProtocolRequestType("workspace/applyEdit")})(Ffe=T.ApplyWorkspaceEditRequest||(T.ApplyWorkspaceEditRequest={}))});var _B=m(Um=>{"use strict";Object.defineProperty(Um,"__esModule",{value:!0});Um.createProtocolConnection=void 0;var PB=Vu();function Ife(n,e,t,i){return PB.ConnectionStrategy.is(i)&&(i={connectionStrategy:i}),PB.createMessageConnection(n,e,t,i)}Um.createProtocolConnection=Ife});var RB=m($i=>{"use strict";var jfe=$i&&$i.__createBinding||(Object.create?function(n,e,t,i){i===void 0&&(i=t),Object.defineProperty(n,i,{enumerable:!0,get:function(){return e[t]}})}:function(n,e,t,i){i===void 0&&(i=t),n[i]=e[t]}),Gm=$i&&$i.__exportStar||function(n,e){for(var t in n)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&jfe(e,n,t)};Object.defineProperty($i,"__esModule",{value:!0});$i.LSPErrorCodes=$i.createProtocolConnection=void 0;Gm(Vu(),$i);Gm((Kr(),Ha(QN)),$i);Gm(li(),$i);Gm(EB(),$i);var Afe=_B();Object.defineProperty($i,"createProtocolConnection",{enumerable:!0,get:function(){return Afe.createProtocolConnection}});var Ofe;(function(n){n.lspReservedErrorRangeStart=-32899,n.ContentModified=-32801,n.RequestCancelled=-32800,n.lspReservedErrorRangeEnd=-32800})(Ofe=$i.LSPErrorCodes||($i.LSPErrorCodes={}))});var H=m(zr=>{"use strict";var Mfe=zr&&zr.__createBinding||(Object.create?function(n,e,t,i){i===void 0&&(i=t),Object.defineProperty(n,i,{enumerable:!0,get:function(){return e[t]}})}:function(n,e,t,i){i===void 0&&(i=t),n[i]=e[t]}),LB=zr&&zr.__exportStar||function(n,e){for(var t in n)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&Mfe(e,n,t)};Object.defineProperty(zr,"__esModule",{value:!0});zr.createProtocolConnection=void 0;var Nfe=OS();LB(OS(),zr);LB(RB(),zr);function Bfe(n,e,t,i){return Nfe.createMessageConnection(n,e,t,i)}zr.createProtocolConnection=Bfe});var Ei=m((S_e,FB)=>{function C0(n,e,t){var i,r,o,s,a;e==null&&(e=100);function l(){var c=Date.now()-s;c=0?i=setTimeout(l,e-c):(i=null,t||(a=n.apply(o,r),o=r=null))}var u=function(){o=this,r=arguments,s=Date.now();var c=t&&!i;return i||(i=setTimeout(l,e)),c&&(a=n.apply(o,r),o=r=null),a};return u.clear=function(){i&&(clearTimeout(i),i=null)},u.flush=function(){i&&(a=n.apply(o,r),o=r=null,clearTimeout(i),i=null)},u}C0.debounce=C0;FB.exports=C0});var jB=m((T_e,IB)=>{"use strict";var Nt={rfc3986:{}};Nt.generate=function(){var n="|",e="0-9",t="["+e+"]",i="a-zA-Z",r="["+i+"]";Nt.rfc3986.cidr=t+n+"[1-2]"+t+n+"3[0-2]";var o=e+"A-Fa-f",s="["+o+"]",a=i+e+"-\\._~",l="!\\$&'\\(\\)\\*\\+,;=",u="%"+o,c=a+u+l+":@",h="["+c+"]",d="0?",g="(?:"+d+d+t+n+d+"[1-9]"+t+n+"1"+t+t+n+"2[0-4]"+t+n+"25[0-5])";Nt.rfc3986.IPv4address="(?:"+g+"\\.){3}"+g;var f=s+"{1,4}",p="(?:"+f+":"+f+"|"+Nt.rfc3986.IPv4address+")",b="(?:"+f+":){6}"+p,v="::(?:"+f+":){5}"+p,w="(?:"+f+")?::(?:"+f+":){4}"+p,D="(?:(?:"+f+":){0,1}"+f+")?::(?:"+f+":){3}"+p,S="(?:(?:"+f+":){0,2}"+f+")?::(?:"+f+":){2}"+p,F="(?:(?:"+f+":){0,3}"+f+")?::"+f+":"+p,L="(?:(?:"+f+":){0,4}"+f+")?::"+p,j="(?:(?:"+f+":){0,5}"+f+")?::"+f,W="(?:(?:"+f+":){0,6}"+f+")?::";Nt.rfc3986.IPv6address="(?:"+b+n+v+n+w+n+D+n+S+n+F+n+L+n+j+n+W+")",Nt.rfc3986.IPvFuture="v"+s+"+\\.["+a+l+":]+",Nt.rfc3986.scheme=r+"["+i+e+"+-\\.]*";var B="["+a+u+l+":]*";Nt.rfc3986.IPLiteral="\\[(?:"+Nt.rfc3986.IPv6address+n+Nt.rfc3986.IPvFuture+")\\]";var N="["+a+u+l+"]{0,255}",I="(?:"+Nt.rfc3986.IPLiteral+n+Nt.rfc3986.IPv4address+n+N+")",M=t+"*",J="(?:"+B+"@)?"+I+"(?::"+M+")?",K=h+"*",ae=h+"+",je="(?:\\/"+K+")*",_e="\\/(?:"+ae+je+")?",Ve=ae+je;Nt.rfc3986.hierPart="(?:(?:\\/\\/"+J+je+")"+n+_e+n+Ve+")",Nt.rfc3986.query="["+c+"\\/\\?]*(?=#|$)",Nt.rfc3986.fragment="["+c+"\\/\\?]*",Nt.rfc3986.uri="^(?:"+Nt.rfc3986.scheme+":"+Nt.rfc3986.hierPart+")(?:\\?"+Nt.rfc3986.query+")?(?:#"+Nt.rfc3986.fragment+")?$"};Nt.generate();IB.exports=Nt.rfc3986});var S0=m((k_e,AB)=>{"use strict";var tg=jB();function Hfe(n){return n.replace(/[\^\$\.\*\+\-\?\=\!\:\|\\\/\(\)\[\]\{\}\,]/g,"\\$&")}var ig={Uri:{createUriRegex:function(n){if(n=n||{},typeof n!="object"||Array.isArray(n))throw new Error("options must be an object");var e="";if(n.scheme){if(Array.isArray(n.scheme)||(n.scheme=[n.scheme]),n.scheme.length<=0)throw new Error("scheme must have at least 1 scheme specified");for(var t=0;t=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||o===45||o===46||o===95||o===126||e&&o===47)i!==-1&&(t+=encodeURIComponent(n.substring(i,r)),i=-1),t!==void 0&&(t+=n.charAt(r));else{t===void 0&&(t=n.substr(0,r));var s=HB[o];s!==void 0?(i!==-1&&(t+=encodeURIComponent(n.substring(i,r)),i=-1),t+=s):i===-1&&(i=r)}}return i!==-1&&(t+=encodeURIComponent(n.substring(i))),t!==void 0?t:n}function Gfe(n){for(var e=void 0,t=0;t1&&n.scheme==="file"?t="//"+n.authority+n.path:n.path.charCodeAt(0)===47&&(n.path.charCodeAt(1)>=65&&n.path.charCodeAt(1)<=90||n.path.charCodeAt(1)>=97&&n.path.charCodeAt(1)<=122)&&n.path.charCodeAt(2)===58?e?t=n.path.substr(1):t=n.path[1].toLowerCase()+n.path.substr(2):t=n.path,ng&&(t=t.replace(/\//g,"\\")),t}function T0(n,e){var t=e?Gfe:MB,i="",r=n.scheme,o=n.authority,s=n.path,a=n.query,l=n.fragment;if(r&&(i+=r,i+=":"),(o||r==="file")&&(i+=Er,i+=Er),o){var u=o.indexOf("@");if(u!==-1){var c=o.substr(0,u);o=o.substr(u+1),u=c.indexOf(":"),u===-1?i+=t(c,!1):(i+=t(c.substr(0,u),!1),i+=":",i+=t(c.substr(u+1),!1)),i+="@"}o=o.toLowerCase(),u=o.indexOf(":"),u===-1?i+=t(o,!1):(i+=t(o.substr(0,u),!1),i+=o.substr(u))}if(s){if(s.length>=3&&s.charCodeAt(0)===47&&s.charCodeAt(2)===58){var h=s.charCodeAt(1);h>=65&&h<=90&&(s="/"+String.fromCharCode(h+32)+":"+s.substr(3))}else if(s.length>=2&&s.charCodeAt(1)===58){var h=s.charCodeAt(0);h>=65&&h<=90&&(s=String.fromCharCode(h+32)+":"+s.substr(2))}i+=t(s,!0)}return a&&(i+="?",i+=t(a,!1)),l&&(i+="#",i+=e?l:MB(l,!1)),i}function YB(n){try{return decodeURIComponent(n)}catch{return n.length>3?n.substr(0,3)+YB(n.substr(3)):n}}function Qm(n){return n.match(NB)?n.replace(NB,function(e){return YB(e)}):n}var qfe,Bt,ng,OB,Yfe,Wfe,Zfe,at,Er,Ufe,O,BB,rc,HB,NB,we=_(()=>{"use strict";qfe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var o in r)r.hasOwnProperty(o)&&(i[o]=r[o])},n(e,t)};return function(e,t){n(e,t);function i(){this.constructor=e}e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}();typeof process=="object"?ng=process.platform==="win32":typeof navigator=="object"&&(OB=navigator.userAgent,ng=OB.indexOf("Windows")>=0);Yfe=/^\w[\w\d+.-]*$/,Wfe=/^\//,Zfe=/^\/\//;at="",Er="/",Ufe=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,O=function(){function n(e,t,i,r,o,s){s===void 0&&(s=!1),typeof e=="object"?(this.scheme=e.scheme||at,this.authority=e.authority||at,this.path=e.path||at,this.query=e.query||at,this.fragment=e.fragment||at):(this.scheme=$fe(e,s),this.authority=t||at,this.path=Xfe(this.scheme,i||at),this.query=r||at,this.fragment=o||at,Jfe(this,s))}return n.isUri=function(e){return e instanceof n?!0:e?typeof e.authority=="string"&&typeof e.fragment=="string"&&typeof e.path=="string"&&typeof e.query=="string"&&typeof e.scheme=="string"&&typeof e.fsPath=="function"&&typeof e.with=="function"&&typeof e.toString=="function":!1},Object.defineProperty(n.prototype,"fsPath",{get:function(){return qB(this,!1)},enumerable:!0,configurable:!0}),n.prototype.with=function(e){if(!e)return this;var t=e.scheme,i=e.authority,r=e.path,o=e.query,s=e.fragment;return t===void 0?t=this.scheme:t===null&&(t=at),i===void 0?i=this.authority:i===null&&(i=at),r===void 0?r=this.path:r===null&&(r=at),o===void 0?o=this.query:o===null&&(o=at),s===void 0?s=this.fragment:s===null&&(s=at),t===this.scheme&&i===this.authority&&r===this.path&&o===this.query&&s===this.fragment?this:new rc(t,i,r,o,s)},n.parse=function(e,t){t===void 0&&(t=!1);var i=Ufe.exec(e);return i?new rc(i[2]||at,Qm(i[4]||at),Qm(i[5]||at),Qm(i[7]||at),Qm(i[9]||at),t):new rc(at,at,at,at,at)},n.file=function(e){var t=at;if(ng&&(e=e.replace(/\\/g,Er)),e[0]===Er&&e[1]===Er){var i=e.indexOf(Er,2);i===-1?(t=e.substring(2),e=Er):(t=e.substring(2,i),e=e.substring(i)||Er)}return new rc("file",t,e,at,at)},n.from=function(e){return new rc(e.scheme,e.authority,e.path,e.query,e.fragment)},n.prototype.toString=function(e){return e===void 0&&(e=!1),T0(this,e)},n.prototype.toJSON=function(){return this},n.revive=function(e){if(e){if(e instanceof n)return e;var t=new rc(e);return t._formatted=e.external,t._fsPath=e._sep===BB?e.fsPath:null,t}else return e},n}(),BB=ng?1:void 0,rc=function(n){qfe(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t._formatted=null,t._fsPath=null,t}return Object.defineProperty(e.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=qB(this,!1)),this._fsPath},enumerable:!0,configurable:!0}),e.prototype.toString=function(t){return t===void 0&&(t=!1),t?T0(this,!0):(this._formatted||(this._formatted=T0(this,!1)),this._formatted)},e.prototype.toJSON=function(){var t={$mid:1};return this._fsPath&&(t.fsPath=this._fsPath,t._sep=BB),this._formatted&&(t.external=this._formatted),this.path&&(t.path=this.path),this.scheme&&(t.scheme=this.scheme),this.authority&&(t.authority=this.authority),this.query&&(t.query=this.query),this.fragment&&(t.fragment=this.fragment),t},e}(O),HB=(Bt={},Bt[58]="%3A",Bt[47]="%2F",Bt[63]="%3F",Bt[35]="%23",Bt[91]="%5B",Bt[93]="%5D",Bt[64]="%40",Bt[33]="%21",Bt[36]="%24",Bt[38]="%26",Bt[39]="%27",Bt[40]="%28",Bt[41]="%29",Bt[42]="%2A",Bt[43]="%2B",Bt[44]="%2C",Bt[59]="%3B",Bt[61]="%3D",Bt[32]="%20",Bt);NB=/(%[0-9A-Za-z][0-9A-Za-z])+/g});var XB=m((P_e,$B)=>{$B.exports=JB;JB.sync=Kfe;var WB=require("fs");function Qfe(n,e){var t=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!t||(t=t.split(";"),t.indexOf("")!==-1))return!0;for(var i=0;i{KB.exports=GB;GB.sync=zfe;var UB=require("fs");function GB(n,e,t){UB.stat(n,function(i,r){t(i,i?!1:QB(r,e))})}function zfe(n,e){return QB(UB.statSync(n),e)}function QB(n,e){return n.isFile()&&Vfe(n,e)}function Vfe(n,e){var t=n.mode,i=n.uid,r=n.gid,o=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),s=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),a=parseInt("100",8),l=parseInt("010",8),u=parseInt("001",8),c=a|l,h=t&u||t&l&&r===s||t&a&&i===o||t&c&&o===0;return h}});var eH=m((L_e,VB)=>{var R_e=require("fs"),Km;process.platform==="win32"||global.TESTING_WINDOWS?Km=XB():Km=zB();VB.exports=k0;k0.sync=epe;function k0(n,e,t){if(typeof e=="function"&&(t=e,e={}),!t){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(i,r){k0(n,e||{},function(o,s){o?r(o):i(s)})})}Km(n,e||{},function(i,r){i&&(i.code==="EACCES"||e&&e.ignoreErrors)&&(i=null,r=!1),t(i,r)})}function epe(n,e){try{return Km.sync(n,e||{})}catch(t){if(e&&e.ignoreErrors||t.code==="EACCES")return!1;throw t}}});var rg=m((F_e,sH)=>{var oc=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",tH=require("path"),tpe=oc?";":":",iH=eH(),nH=n=>Object.assign(new Error(`not found: ${n}`),{code:"ENOENT"}),rH=(n,e)=>{let t=e.colon||tpe,i=n.match(/\//)||oc&&n.match(/\\/)?[""]:[...oc?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(t)],r=oc?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",o=oc?r.split(t):[""];return oc&&n.indexOf(".")!==-1&&o[0]!==""&&o.unshift(""),{pathEnv:i,pathExt:o,pathExtExe:r}},oH=(n,e,t)=>{typeof e=="function"&&(t=e,e={}),e||(e={});let{pathEnv:i,pathExt:r,pathExtExe:o}=rH(n,e),s=[],a=u=>new Promise((c,h)=>{if(u===i.length)return e.all&&s.length?c(s):h(nH(n));let d=i[u],g=/^".*"$/.test(d)?d.slice(1,-1):d,f=tH.join(g,n),p=!g&&/^\.[\\\/]/.test(n)?n.slice(0,2)+f:f;c(l(p,u,0))}),l=(u,c,h)=>new Promise((d,g)=>{if(h===r.length)return d(a(c+1));let f=r[h];iH(u+f,{pathExt:o},(p,b)=>{if(!p&&b)if(e.all)s.push(u+f);else return d(u+f);return d(l(u,c,h+1))})});return t?a(0).then(u=>t(null,u),t):a(0)},ipe=(n,e)=>{e=e||{};let{pathEnv:t,pathExt:i,pathExtExe:r}=rH(n,e),o=[];for(let s=0;shpe,OperatingSystem:()=>lH,Platform:()=>aH,globals:()=>cpe,isLinux:()=>ope,isMacintosh:()=>sc,isNative:()=>spe,isWeb:()=>ape,isWindows:()=>Xi,language:()=>rpe,platform:()=>lpe});var Vm,eb,E0,P0,npe,rpe,aH,zm,Xi,sc,ope,spe,ape,lpe,upe,cpe,lH,hpe,ac=_(()=>{"use strict";Vm=!1,eb=!1,E0=!1,P0=!1,npe=!1,rpe="en";typeof process=="object"&&typeof process.nextTick=="function"&&typeof process.platform=="string"&&(Vm=process.platform==="win32",eb=process.platform==="darwin",E0=process.platform==="linux",P0=!0);aH=(r=>(r[r.Web=0]="Web",r[r.Mac=1]="Mac",r[r.Linux=2]="Linux",r[r.Windows=3]="Windows",r))(aH||{}),zm=0;P0&&(eb?zm=1:Vm?zm=3:E0&&(zm=2));Xi=Vm,sc=eb,ope=E0,spe=P0,ape=npe,lpe=zm,upe=typeof self=="object"?self:typeof global=="object"?global:{},cpe=upe,lH=(i=>(i[i.Windows=1]="Windows",i[i.Macintosh=2]="Macintosh",i[i.Linux=3]="Linux",i))(lH||{}),hpe=eb?2:Vm?1:3});function og(n){return!!(pl.MarkupContent.is(n)&&n.kind==pl.MarkupKind.Markdown)}function bt(n){return n<=0?Promise.resolve(void 0):new Promise(e=>{setTimeout(()=>{e(void 0)},n)})}function fH(n){return new Promise(e=>{process.nextTick(()=>{n&&n(),e(void 0)})})}function Vr(){return new Promise(n=>{setImmediate(()=>{n(void 0)})})}function tb(n,e,t,i){return n?(Xi&&!i&&!n.startsWith("jdt://")&&(n=_0.default.win32.normalize(n)),_0.default.isAbsolute(n)?O.file(n).toString():dH.default.isValid(n)?O.parse(n).toString():t!=""?`${t}:${e}`:`unknown:${e}`):`untitled:${e}`}function Z(n){for(;n.length;){let e=n.pop();e&&e.dispose()}}function sg(n){try{gH.default.sync(n)}catch{return!1}return!0}function eo(n,e={},t){return Xi||(e.shell=e.shell||process.env.SHELL),e.maxBuffer=500*1024,new Promise((i,r)=>{let o;t&&(o=setTimeout(()=>{r(new Error(`timeout after ${t}s`))},t*1e3)),(0,uH.exec)(n,e,(s,a,l)=>{if(o&&clearTimeout(o),s){r(new Error(`exited with ${s.code} +`&&r++}i&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},n.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),i=0,r=t.length;if(r===0)return Gt.create(0,e);for(;ie?r=o:i=o+1}var s=i-1;return Gt.create(s,e-t[s])},n.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var i=t[e.line],r=e.line+1"u"}n.undefined=i;function r(g){return g===!0||g===!1}n.boolean=r;function o(g){return e.call(g)==="[object String]"}n.string=o;function s(g){return e.call(g)==="[object Number]"}n.number=s;function a(g,p,f){return e.call(g)==="[object Number]"&&p<=g&&g<=f}n.numberRange=a;function l(g){return e.call(g)==="[object Number]"&&-2147483648<=g&&g<=2147483647}n.integer=l;function u(g){return e.call(g)==="[object Number]"&&0<=g&&g<=2147483647}n.uinteger=u;function c(g){return e.call(g)==="[object Function]"}n.func=c;function h(g){return g!==null&&typeof g=="object"}n.objectLiteral=h;function d(g,p){return Array.isArray(g)&&g.every(p)}n.typedArray=d})(A||(A={}))});var Nt=y(on=>{"use strict";Object.defineProperty(on,"__esModule",{value:!0});on.ProtocolNotificationType=on.ProtocolNotificationType0=on.ProtocolRequestType=on.ProtocolRequestType0=on.RegistrationType=on.MessageDirection=void 0;var pc=kl(),tpe;(function(n){n.clientToServer="clientToServer",n.serverToClient="serverToClient",n.both="both"})(tpe=on.MessageDirection||(on.MessageDirection={}));var GB=class{constructor(e){this.method=e}};on.RegistrationType=GB;var KB=class extends pc.RequestType0{constructor(e){super(e)}};on.ProtocolRequestType0=KB;var QB=class extends pc.RequestType{constructor(e){super(e,pc.ParameterStructures.byName)}};on.ProtocolRequestType=QB;var zB=class extends pc.NotificationType0{constructor(e){super(e)}};on.ProtocolNotificationType0=zB;var VB=class extends pc.NotificationType{constructor(e){super(e,pc.ParameterStructures.byName)}};on.ProtocolNotificationType=VB});var my=y(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.objectLiteral=Kt.typedArray=Kt.stringArray=Kt.array=Kt.func=Kt.error=Kt.number=Kt.string=Kt.boolean=void 0;function ipe(n){return n===!0||n===!1}Kt.boolean=ipe;function eH(n){return typeof n=="string"||n instanceof String}Kt.string=eH;function npe(n){return typeof n=="number"||n instanceof Number}Kt.number=npe;function rpe(n){return n instanceof Error}Kt.error=rpe;function ope(n){return typeof n=="function"}Kt.func=ope;function tH(n){return Array.isArray(n)}Kt.array=tH;function spe(n){return tH(n)&&n.every(e=>eH(e))}Kt.stringArray=spe;function ape(n,e){return Array.isArray(n)&&n.every(e)}Kt.typedArray=ape;function lpe(n){return n!==null&&typeof n=="object"}Kt.objectLiteral=lpe});var nH=y(dg=>{"use strict";Object.defineProperty(dg,"__esModule",{value:!0});dg.ImplementationRequest=void 0;var iH=Nt(),upe;(function(n){n.method="textDocument/implementation",n.messageDirection=iH.MessageDirection.clientToServer,n.type=new iH.ProtocolRequestType(n.method)})(upe=dg.ImplementationRequest||(dg.ImplementationRequest={}))});var oH=y(gg=>{"use strict";Object.defineProperty(gg,"__esModule",{value:!0});gg.TypeDefinitionRequest=void 0;var rH=Nt(),cpe;(function(n){n.method="textDocument/typeDefinition",n.messageDirection=rH.MessageDirection.clientToServer,n.type=new rH.ProtocolRequestType(n.method)})(cpe=gg.TypeDefinitionRequest||(gg.TypeDefinitionRequest={}))});var sH=y(sa=>{"use strict";Object.defineProperty(sa,"__esModule",{value:!0});sa.DidChangeWorkspaceFoldersNotification=sa.WorkspaceFoldersRequest=void 0;var yy=Nt(),hpe;(function(n){n.method="workspace/workspaceFolders",n.messageDirection=yy.MessageDirection.serverToClient,n.type=new yy.ProtocolRequestType0(n.method)})(hpe=sa.WorkspaceFoldersRequest||(sa.WorkspaceFoldersRequest={}));var dpe;(function(n){n.method="workspace/didChangeWorkspaceFolders",n.messageDirection=yy.MessageDirection.clientToServer,n.type=new yy.ProtocolNotificationType(n.method)})(dpe=sa.DidChangeWorkspaceFoldersNotification||(sa.DidChangeWorkspaceFoldersNotification={}))});var lH=y(pg=>{"use strict";Object.defineProperty(pg,"__esModule",{value:!0});pg.ConfigurationRequest=void 0;var aH=Nt(),gpe;(function(n){n.method="workspace/configuration",n.messageDirection=aH.MessageDirection.serverToClient,n.type=new aH.ProtocolRequestType(n.method)})(gpe=pg.ConfigurationRequest||(pg.ConfigurationRequest={}))});var uH=y(aa=>{"use strict";Object.defineProperty(aa,"__esModule",{value:!0});aa.ColorPresentationRequest=aa.DocumentColorRequest=void 0;var by=Nt(),ppe;(function(n){n.method="textDocument/documentColor",n.messageDirection=by.MessageDirection.clientToServer,n.type=new by.ProtocolRequestType(n.method)})(ppe=aa.DocumentColorRequest||(aa.DocumentColorRequest={}));var fpe;(function(n){n.method="textDocument/colorPresentation",n.messageDirection=by.MessageDirection.clientToServer,n.type=new by.ProtocolRequestType(n.method)})(fpe=aa.ColorPresentationRequest||(aa.ColorPresentationRequest={}))});var hH=y(fg=>{"use strict";Object.defineProperty(fg,"__esModule",{value:!0});fg.FoldingRangeRequest=void 0;var cH=Nt(),mpe;(function(n){n.method="textDocument/foldingRange",n.messageDirection=cH.MessageDirection.clientToServer,n.type=new cH.ProtocolRequestType(n.method)})(mpe=fg.FoldingRangeRequest||(fg.FoldingRangeRequest={}))});var gH=y(mg=>{"use strict";Object.defineProperty(mg,"__esModule",{value:!0});mg.DeclarationRequest=void 0;var dH=Nt(),ype;(function(n){n.method="textDocument/declaration",n.messageDirection=dH.MessageDirection.clientToServer,n.type=new dH.ProtocolRequestType(n.method)})(ype=mg.DeclarationRequest||(mg.DeclarationRequest={}))});var fH=y(yg=>{"use strict";Object.defineProperty(yg,"__esModule",{value:!0});yg.SelectionRangeRequest=void 0;var pH=Nt(),bpe;(function(n){n.method="textDocument/selectionRange",n.messageDirection=pH.MessageDirection.clientToServer,n.type=new pH.ProtocolRequestType(n.method)})(bpe=yg.SelectionRangeRequest||(yg.SelectionRangeRequest={}))});var mH=y(Ar=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});Ar.WorkDoneProgressCancelNotification=Ar.WorkDoneProgressCreateRequest=Ar.WorkDoneProgress=void 0;var vpe=kl(),vy=Nt(),wpe;(function(n){n.type=new vpe.ProgressType;function e(t){return t===n.type}n.is=e})(wpe=Ar.WorkDoneProgress||(Ar.WorkDoneProgress={}));var Dpe;(function(n){n.method="window/workDoneProgress/create",n.messageDirection=vy.MessageDirection.serverToClient,n.type=new vy.ProtocolRequestType(n.method)})(Dpe=Ar.WorkDoneProgressCreateRequest||(Ar.WorkDoneProgressCreateRequest={}));var Cpe;(function(n){n.method="window/workDoneProgress/cancel",n.messageDirection=vy.MessageDirection.clientToServer,n.type=new vy.ProtocolNotificationType(n.method)})(Cpe=Ar.WorkDoneProgressCancelNotification||(Ar.WorkDoneProgressCancelNotification={}))});var yH=y(Mr=>{"use strict";Object.defineProperty(Mr,"__esModule",{value:!0});Mr.CallHierarchyOutgoingCallsRequest=Mr.CallHierarchyIncomingCallsRequest=Mr.CallHierarchyPrepareRequest=void 0;var fc=Nt(),xpe;(function(n){n.method="textDocument/prepareCallHierarchy",n.messageDirection=fc.MessageDirection.clientToServer,n.type=new fc.ProtocolRequestType(n.method)})(xpe=Mr.CallHierarchyPrepareRequest||(Mr.CallHierarchyPrepareRequest={}));var Spe;(function(n){n.method="callHierarchy/incomingCalls",n.messageDirection=fc.MessageDirection.clientToServer,n.type=new fc.ProtocolRequestType(n.method)})(Spe=Mr.CallHierarchyIncomingCallsRequest||(Mr.CallHierarchyIncomingCallsRequest={}));var Tpe;(function(n){n.method="callHierarchy/outgoingCalls",n.messageDirection=fc.MessageDirection.clientToServer,n.type=new fc.ProtocolRequestType(n.method)})(Tpe=Mr.CallHierarchyOutgoingCallsRequest||(Mr.CallHierarchyOutgoingCallsRequest={}))});var bH=y(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.SemanticTokensRefreshRequest=Qt.SemanticTokensRangeRequest=Qt.SemanticTokensDeltaRequest=Qt.SemanticTokensRequest=Qt.SemanticTokensRegistrationType=Qt.TokenFormat=void 0;var ls=Nt(),kpe;(function(n){n.Relative="relative"})(kpe=Qt.TokenFormat||(Qt.TokenFormat={}));var wy;(function(n){n.method="textDocument/semanticTokens",n.type=new ls.RegistrationType(n.method)})(wy=Qt.SemanticTokensRegistrationType||(Qt.SemanticTokensRegistrationType={}));var Epe;(function(n){n.method="textDocument/semanticTokens/full",n.messageDirection=ls.MessageDirection.clientToServer,n.type=new ls.ProtocolRequestType(n.method),n.registrationMethod=wy.method})(Epe=Qt.SemanticTokensRequest||(Qt.SemanticTokensRequest={}));var Ppe;(function(n){n.method="textDocument/semanticTokens/full/delta",n.messageDirection=ls.MessageDirection.clientToServer,n.type=new ls.ProtocolRequestType(n.method),n.registrationMethod=wy.method})(Ppe=Qt.SemanticTokensDeltaRequest||(Qt.SemanticTokensDeltaRequest={}));var _pe;(function(n){n.method="textDocument/semanticTokens/range",n.messageDirection=ls.MessageDirection.clientToServer,n.type=new ls.ProtocolRequestType(n.method),n.registrationMethod=wy.method})(_pe=Qt.SemanticTokensRangeRequest||(Qt.SemanticTokensRangeRequest={}));var Rpe;(function(n){n.method="workspace/semanticTokens/refresh",n.messageDirection=ls.MessageDirection.clientToServer,n.type=new ls.ProtocolRequestType0(n.method)})(Rpe=Qt.SemanticTokensRefreshRequest||(Qt.SemanticTokensRefreshRequest={}))});var wH=y(bg=>{"use strict";Object.defineProperty(bg,"__esModule",{value:!0});bg.ShowDocumentRequest=void 0;var vH=Nt(),Lpe;(function(n){n.method="window/showDocument",n.messageDirection=vH.MessageDirection.serverToClient,n.type=new vH.ProtocolRequestType(n.method)})(Lpe=bg.ShowDocumentRequest||(bg.ShowDocumentRequest={}))});var CH=y(vg=>{"use strict";Object.defineProperty(vg,"__esModule",{value:!0});vg.LinkedEditingRangeRequest=void 0;var DH=Nt(),Fpe;(function(n){n.method="textDocument/linkedEditingRange",n.messageDirection=DH.MessageDirection.clientToServer,n.type=new DH.ProtocolRequestType(n.method)})(Fpe=vg.LinkedEditingRangeRequest||(vg.LinkedEditingRangeRequest={}))});var xH=y(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.WillDeleteFilesRequest=Bt.DidDeleteFilesNotification=Bt.DidRenameFilesNotification=Bt.WillRenameFilesRequest=Bt.DidCreateFilesNotification=Bt.WillCreateFilesRequest=Bt.FileOperationPatternKind=void 0;var sr=Nt(),Ipe;(function(n){n.file="file",n.folder="folder"})(Ipe=Bt.FileOperationPatternKind||(Bt.FileOperationPatternKind={}));var jpe;(function(n){n.method="workspace/willCreateFiles",n.messageDirection=sr.MessageDirection.clientToServer,n.type=new sr.ProtocolRequestType(n.method)})(jpe=Bt.WillCreateFilesRequest||(Bt.WillCreateFilesRequest={}));var Ape;(function(n){n.method="workspace/didCreateFiles",n.messageDirection=sr.MessageDirection.clientToServer,n.type=new sr.ProtocolNotificationType(n.method)})(Ape=Bt.DidCreateFilesNotification||(Bt.DidCreateFilesNotification={}));var Mpe;(function(n){n.method="workspace/willRenameFiles",n.messageDirection=sr.MessageDirection.clientToServer,n.type=new sr.ProtocolRequestType(n.method)})(Mpe=Bt.WillRenameFilesRequest||(Bt.WillRenameFilesRequest={}));var Ope;(function(n){n.method="workspace/didRenameFiles",n.messageDirection=sr.MessageDirection.clientToServer,n.type=new sr.ProtocolNotificationType(n.method)})(Ope=Bt.DidRenameFilesNotification||(Bt.DidRenameFilesNotification={}));var Npe;(function(n){n.method="workspace/didDeleteFiles",n.messageDirection=sr.MessageDirection.clientToServer,n.type=new sr.ProtocolNotificationType(n.method)})(Npe=Bt.DidDeleteFilesNotification||(Bt.DidDeleteFilesNotification={}));var Bpe;(function(n){n.method="workspace/willDeleteFiles",n.messageDirection=sr.MessageDirection.clientToServer,n.type=new sr.ProtocolRequestType(n.method)})(Bpe=Bt.WillDeleteFilesRequest||(Bt.WillDeleteFilesRequest={}))});var TH=y(Or=>{"use strict";Object.defineProperty(Or,"__esModule",{value:!0});Or.MonikerRequest=Or.MonikerKind=Or.UniquenessLevel=void 0;var SH=Nt(),Hpe;(function(n){n.document="document",n.project="project",n.group="group",n.scheme="scheme",n.global="global"})(Hpe=Or.UniquenessLevel||(Or.UniquenessLevel={}));var qpe;(function(n){n.$import="import",n.$export="export",n.local="local"})(qpe=Or.MonikerKind||(Or.MonikerKind={}));var Ype;(function(n){n.method="textDocument/moniker",n.messageDirection=SH.MessageDirection.clientToServer,n.type=new SH.ProtocolRequestType(n.method)})(Ype=Or.MonikerRequest||(Or.MonikerRequest={}))});var kH=y(Nr=>{"use strict";Object.defineProperty(Nr,"__esModule",{value:!0});Nr.TypeHierarchySubtypesRequest=Nr.TypeHierarchySupertypesRequest=Nr.TypeHierarchyPrepareRequest=void 0;var mc=Nt(),Wpe;(function(n){n.method="textDocument/prepareTypeHierarchy",n.messageDirection=mc.MessageDirection.clientToServer,n.type=new mc.ProtocolRequestType(n.method)})(Wpe=Nr.TypeHierarchyPrepareRequest||(Nr.TypeHierarchyPrepareRequest={}));var Zpe;(function(n){n.method="typeHierarchy/supertypes",n.messageDirection=mc.MessageDirection.clientToServer,n.type=new mc.ProtocolRequestType(n.method)})(Zpe=Nr.TypeHierarchySupertypesRequest||(Nr.TypeHierarchySupertypesRequest={}));var Jpe;(function(n){n.method="typeHierarchy/subtypes",n.messageDirection=mc.MessageDirection.clientToServer,n.type=new mc.ProtocolRequestType(n.method)})(Jpe=Nr.TypeHierarchySubtypesRequest||(Nr.TypeHierarchySubtypesRequest={}))});var EH=y(la=>{"use strict";Object.defineProperty(la,"__esModule",{value:!0});la.InlineValueRefreshRequest=la.InlineValueRequest=void 0;var Dy=Nt(),$pe;(function(n){n.method="textDocument/inlineValue",n.messageDirection=Dy.MessageDirection.clientToServer,n.type=new Dy.ProtocolRequestType(n.method)})($pe=la.InlineValueRequest||(la.InlineValueRequest={}));var Xpe;(function(n){n.method="workspace/inlineValue/refresh",n.messageDirection=Dy.MessageDirection.clientToServer,n.type=new Dy.ProtocolRequestType0(n.method)})(Xpe=la.InlineValueRefreshRequest||(la.InlineValueRefreshRequest={}))});var PH=y(Br=>{"use strict";Object.defineProperty(Br,"__esModule",{value:!0});Br.InlayHintRefreshRequest=Br.InlayHintResolveRequest=Br.InlayHintRequest=void 0;var yc=Nt(),Upe;(function(n){n.method="textDocument/inlayHint",n.messageDirection=yc.MessageDirection.clientToServer,n.type=new yc.ProtocolRequestType(n.method)})(Upe=Br.InlayHintRequest||(Br.InlayHintRequest={}));var Gpe;(function(n){n.method="inlayHint/resolve",n.messageDirection=yc.MessageDirection.clientToServer,n.type=new yc.ProtocolRequestType(n.method)})(Gpe=Br.InlayHintResolveRequest||(Br.InlayHintResolveRequest={}));var Kpe;(function(n){n.method="workspace/inlayHint/refresh",n.messageDirection=yc.MessageDirection.clientToServer,n.type=new yc.ProtocolRequestType0(n.method)})(Kpe=Br.InlayHintRefreshRequest||(Br.InlayHintRefreshRequest={}))});var RH=y(xi=>{"use strict";Object.defineProperty(xi,"__esModule",{value:!0});xi.DiagnosticRefreshRequest=xi.WorkspaceDiagnosticRequest=xi.DocumentDiagnosticRequest=xi.DocumentDiagnosticReportKind=xi.DiagnosticServerCancellationData=void 0;var _H=kl(),Qpe=my(),bc=Nt(),zpe;(function(n){function e(t){let i=t;return i&&Qpe.boolean(i.retriggerRequest)}n.is=e})(zpe=xi.DiagnosticServerCancellationData||(xi.DiagnosticServerCancellationData={}));var Vpe;(function(n){n.Full="full",n.Unchanged="unchanged"})(Vpe=xi.DocumentDiagnosticReportKind||(xi.DocumentDiagnosticReportKind={}));var efe;(function(n){n.method="textDocument/diagnostic",n.messageDirection=bc.MessageDirection.clientToServer,n.type=new bc.ProtocolRequestType(n.method),n.partialResult=new _H.ProgressType})(efe=xi.DocumentDiagnosticRequest||(xi.DocumentDiagnosticRequest={}));var tfe;(function(n){n.method="workspace/diagnostic",n.messageDirection=bc.MessageDirection.clientToServer,n.type=new bc.ProtocolRequestType(n.method),n.partialResult=new _H.ProgressType})(tfe=xi.WorkspaceDiagnosticRequest||(xi.WorkspaceDiagnosticRequest={}));var ife;(function(n){n.method="workspace/diagnostic/refresh",n.messageDirection=bc.MessageDirection.clientToServer,n.type=new bc.ProtocolRequestType0(n.method)})(ife=xi.DiagnosticRefreshRequest||(xi.DiagnosticRefreshRequest={}))});var IH=y(Ke=>{"use strict";Object.defineProperty(Ke,"__esModule",{value:!0});Ke.DidCloseNotebookDocumentNotification=Ke.DidSaveNotebookDocumentNotification=Ke.DidChangeNotebookDocumentNotification=Ke.NotebookCellArrayChange=Ke.DidOpenNotebookDocumentNotification=Ke.NotebookDocumentSyncRegistrationType=Ke.NotebookDocument=Ke.NotebookCell=Ke.ExecutionSummary=Ke.NotebookCellKind=void 0;var wg=(or(),Uo(fy)),Hr=my(),po=Nt(),LH;(function(n){n.Markup=1,n.Code=2;function e(t){return t===1||t===2}n.is=e})(LH=Ke.NotebookCellKind||(Ke.NotebookCellKind={}));var FH;(function(n){function e(r,o){let s={executionOrder:r};return(o===!0||o===!1)&&(s.success=o),s}n.create=e;function t(r){let o=r;return Hr.objectLiteral(o)&&wg.uinteger.is(o.executionOrder)&&(o.success===void 0||Hr.boolean(o.success))}n.is=t;function i(r,o){return r===o?!0:r==null||o===null||o===void 0?!1:r.executionOrder===o.executionOrder&&r.success===o.success}n.equals=i})(FH=Ke.ExecutionSummary||(Ke.ExecutionSummary={}));var pT;(function(n){function e(o,s){return{kind:o,document:s}}n.create=e;function t(o){let s=o;return Hr.objectLiteral(s)&&LH.is(s.kind)&&wg.DocumentUri.is(s.document)&&(s.metadata===void 0||Hr.objectLiteral(s.metadata))}n.is=t;function i(o,s){let a=new Set;return o.document!==s.document&&a.add("document"),o.kind!==s.kind&&a.add("kind"),o.executionSummary!==s.executionSummary&&a.add("executionSummary"),(o.metadata!==void 0||s.metadata!==void 0)&&!r(o.metadata,s.metadata)&&a.add("metadata"),(o.executionSummary!==void 0||s.executionSummary!==void 0)&&!FH.equals(o.executionSummary,s.executionSummary)&&a.add("executionSummary"),a}n.diff=i;function r(o,s){if(o===s)return!0;if(o==null||s===null||s===void 0||typeof o!=typeof s||typeof o!="object")return!1;let a=Array.isArray(o),l=Array.isArray(s);if(a!==l)return!1;if(a&&l){if(o.length!==s.length)return!1;for(let u=0;u{"use strict";Object.defineProperty(C,"__esModule",{value:!0});C.WorkspaceSymbolRequest=C.CodeActionResolveRequest=C.CodeActionRequest=C.DocumentSymbolRequest=C.DocumentHighlightRequest=C.ReferencesRequest=C.DefinitionRequest=C.SignatureHelpRequest=C.SignatureHelpTriggerKind=C.HoverRequest=C.CompletionResolveRequest=C.CompletionRequest=C.CompletionTriggerKind=C.PublishDiagnosticsNotification=C.WatchKind=C.RelativePattern=C.FileChangeType=C.DidChangeWatchedFilesNotification=C.WillSaveTextDocumentWaitUntilRequest=C.WillSaveTextDocumentNotification=C.TextDocumentSaveReason=C.DidSaveTextDocumentNotification=C.DidCloseTextDocumentNotification=C.DidChangeTextDocumentNotification=C.TextDocumentContentChangeEvent=C.DidOpenTextDocumentNotification=C.TextDocumentSyncKind=C.TelemetryEventNotification=C.LogMessageNotification=C.ShowMessageRequest=C.ShowMessageNotification=C.MessageType=C.DidChangeConfigurationNotification=C.ExitNotification=C.ShutdownRequest=C.InitializedNotification=C.InitializeErrorCodes=C.InitializeRequest=C.WorkDoneProgressOptions=C.TextDocumentRegistrationOptions=C.StaticRegistrationOptions=C.PositionEncodingKind=C.FailureHandlingKind=C.ResourceOperationKind=C.UnregistrationRequest=C.RegistrationRequest=C.DocumentSelector=C.NotebookCellTextDocumentFilter=C.NotebookDocumentFilter=C.TextDocumentFilter=void 0;C.TypeHierarchySubtypesRequest=C.TypeHierarchyPrepareRequest=C.MonikerRequest=C.MonikerKind=C.UniquenessLevel=C.WillDeleteFilesRequest=C.DidDeleteFilesNotification=C.WillRenameFilesRequest=C.DidRenameFilesNotification=C.WillCreateFilesRequest=C.DidCreateFilesNotification=C.FileOperationPatternKind=C.LinkedEditingRangeRequest=C.ShowDocumentRequest=C.SemanticTokensRegistrationType=C.SemanticTokensRefreshRequest=C.SemanticTokensRangeRequest=C.SemanticTokensDeltaRequest=C.SemanticTokensRequest=C.TokenFormat=C.CallHierarchyPrepareRequest=C.CallHierarchyOutgoingCallsRequest=C.CallHierarchyIncomingCallsRequest=C.WorkDoneProgressCancelNotification=C.WorkDoneProgressCreateRequest=C.WorkDoneProgress=C.SelectionRangeRequest=C.DeclarationRequest=C.FoldingRangeRequest=C.ColorPresentationRequest=C.DocumentColorRequest=C.ConfigurationRequest=C.DidChangeWorkspaceFoldersNotification=C.WorkspaceFoldersRequest=C.TypeDefinitionRequest=C.ImplementationRequest=C.ApplyWorkspaceEditRequest=C.ExecuteCommandRequest=C.PrepareRenameRequest=C.RenameRequest=C.PrepareSupportDefaultBehavior=C.DocumentOnTypeFormattingRequest=C.DocumentRangeFormattingRequest=C.DocumentFormattingRequest=C.DocumentLinkResolveRequest=C.DocumentLinkRequest=C.CodeLensRefreshRequest=C.CodeLensResolveRequest=C.CodeLensRequest=C.WorkspaceSymbolResolveRequest=void 0;C.DidCloseNotebookDocumentNotification=C.DidSaveNotebookDocumentNotification=C.DidChangeNotebookDocumentNotification=C.NotebookCellArrayChange=C.DidOpenNotebookDocumentNotification=C.NotebookDocumentSyncRegistrationType=C.NotebookDocument=C.NotebookCell=C.ExecutionSummary=C.NotebookCellKind=C.DiagnosticRefreshRequest=C.WorkspaceDiagnosticRequest=C.DocumentDiagnosticRequest=C.DocumentDiagnosticReportKind=C.DiagnosticServerCancellationData=C.InlayHintRefreshRequest=C.InlayHintResolveRequest=C.InlayHintRequest=C.InlineValueRefreshRequest=C.InlineValueRequest=C.TypeHierarchySupertypesRequest=void 0;var ee=Nt(),jH=(or(),Uo(fy)),Si=my(),ufe=nH();Object.defineProperty(C,"ImplementationRequest",{enumerable:!0,get:function(){return ufe.ImplementationRequest}});var cfe=oH();Object.defineProperty(C,"TypeDefinitionRequest",{enumerable:!0,get:function(){return cfe.TypeDefinitionRequest}});var AH=sH();Object.defineProperty(C,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return AH.WorkspaceFoldersRequest}});Object.defineProperty(C,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return AH.DidChangeWorkspaceFoldersNotification}});var hfe=lH();Object.defineProperty(C,"ConfigurationRequest",{enumerable:!0,get:function(){return hfe.ConfigurationRequest}});var MH=uH();Object.defineProperty(C,"DocumentColorRequest",{enumerable:!0,get:function(){return MH.DocumentColorRequest}});Object.defineProperty(C,"ColorPresentationRequest",{enumerable:!0,get:function(){return MH.ColorPresentationRequest}});var dfe=hH();Object.defineProperty(C,"FoldingRangeRequest",{enumerable:!0,get:function(){return dfe.FoldingRangeRequest}});var gfe=gH();Object.defineProperty(C,"DeclarationRequest",{enumerable:!0,get:function(){return gfe.DeclarationRequest}});var pfe=fH();Object.defineProperty(C,"SelectionRangeRequest",{enumerable:!0,get:function(){return pfe.SelectionRangeRequest}});var fT=mH();Object.defineProperty(C,"WorkDoneProgress",{enumerable:!0,get:function(){return fT.WorkDoneProgress}});Object.defineProperty(C,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return fT.WorkDoneProgressCreateRequest}});Object.defineProperty(C,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return fT.WorkDoneProgressCancelNotification}});var mT=yH();Object.defineProperty(C,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return mT.CallHierarchyIncomingCallsRequest}});Object.defineProperty(C,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return mT.CallHierarchyOutgoingCallsRequest}});Object.defineProperty(C,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return mT.CallHierarchyPrepareRequest}});var vc=bH();Object.defineProperty(C,"TokenFormat",{enumerable:!0,get:function(){return vc.TokenFormat}});Object.defineProperty(C,"SemanticTokensRequest",{enumerable:!0,get:function(){return vc.SemanticTokensRequest}});Object.defineProperty(C,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return vc.SemanticTokensDeltaRequest}});Object.defineProperty(C,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return vc.SemanticTokensRangeRequest}});Object.defineProperty(C,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return vc.SemanticTokensRefreshRequest}});Object.defineProperty(C,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return vc.SemanticTokensRegistrationType}});var ffe=wH();Object.defineProperty(C,"ShowDocumentRequest",{enumerable:!0,get:function(){return ffe.ShowDocumentRequest}});var mfe=CH();Object.defineProperty(C,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return mfe.LinkedEditingRangeRequest}});var _l=xH();Object.defineProperty(C,"FileOperationPatternKind",{enumerable:!0,get:function(){return _l.FileOperationPatternKind}});Object.defineProperty(C,"DidCreateFilesNotification",{enumerable:!0,get:function(){return _l.DidCreateFilesNotification}});Object.defineProperty(C,"WillCreateFilesRequest",{enumerable:!0,get:function(){return _l.WillCreateFilesRequest}});Object.defineProperty(C,"DidRenameFilesNotification",{enumerable:!0,get:function(){return _l.DidRenameFilesNotification}});Object.defineProperty(C,"WillRenameFilesRequest",{enumerable:!0,get:function(){return _l.WillRenameFilesRequest}});Object.defineProperty(C,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return _l.DidDeleteFilesNotification}});Object.defineProperty(C,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return _l.WillDeleteFilesRequest}});var yT=TH();Object.defineProperty(C,"UniquenessLevel",{enumerable:!0,get:function(){return yT.UniquenessLevel}});Object.defineProperty(C,"MonikerKind",{enumerable:!0,get:function(){return yT.MonikerKind}});Object.defineProperty(C,"MonikerRequest",{enumerable:!0,get:function(){return yT.MonikerRequest}});var bT=kH();Object.defineProperty(C,"TypeHierarchyPrepareRequest",{enumerable:!0,get:function(){return bT.TypeHierarchyPrepareRequest}});Object.defineProperty(C,"TypeHierarchySubtypesRequest",{enumerable:!0,get:function(){return bT.TypeHierarchySubtypesRequest}});Object.defineProperty(C,"TypeHierarchySupertypesRequest",{enumerable:!0,get:function(){return bT.TypeHierarchySupertypesRequest}});var OH=EH();Object.defineProperty(C,"InlineValueRequest",{enumerable:!0,get:function(){return OH.InlineValueRequest}});Object.defineProperty(C,"InlineValueRefreshRequest",{enumerable:!0,get:function(){return OH.InlineValueRefreshRequest}});var vT=PH();Object.defineProperty(C,"InlayHintRequest",{enumerable:!0,get:function(){return vT.InlayHintRequest}});Object.defineProperty(C,"InlayHintResolveRequest",{enumerable:!0,get:function(){return vT.InlayHintResolveRequest}});Object.defineProperty(C,"InlayHintRefreshRequest",{enumerable:!0,get:function(){return vT.InlayHintRefreshRequest}});var Cg=RH();Object.defineProperty(C,"DiagnosticServerCancellationData",{enumerable:!0,get:function(){return Cg.DiagnosticServerCancellationData}});Object.defineProperty(C,"DocumentDiagnosticReportKind",{enumerable:!0,get:function(){return Cg.DocumentDiagnosticReportKind}});Object.defineProperty(C,"DocumentDiagnosticRequest",{enumerable:!0,get:function(){return Cg.DocumentDiagnosticRequest}});Object.defineProperty(C,"WorkspaceDiagnosticRequest",{enumerable:!0,get:function(){return Cg.WorkspaceDiagnosticRequest}});Object.defineProperty(C,"DiagnosticRefreshRequest",{enumerable:!0,get:function(){return Cg.DiagnosticRefreshRequest}});var fo=IH();Object.defineProperty(C,"NotebookCellKind",{enumerable:!0,get:function(){return fo.NotebookCellKind}});Object.defineProperty(C,"ExecutionSummary",{enumerable:!0,get:function(){return fo.ExecutionSummary}});Object.defineProperty(C,"NotebookCell",{enumerable:!0,get:function(){return fo.NotebookCell}});Object.defineProperty(C,"NotebookDocument",{enumerable:!0,get:function(){return fo.NotebookDocument}});Object.defineProperty(C,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:function(){return fo.NotebookDocumentSyncRegistrationType}});Object.defineProperty(C,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:function(){return fo.DidOpenNotebookDocumentNotification}});Object.defineProperty(C,"NotebookCellArrayChange",{enumerable:!0,get:function(){return fo.NotebookCellArrayChange}});Object.defineProperty(C,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:function(){return fo.DidChangeNotebookDocumentNotification}});Object.defineProperty(C,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:function(){return fo.DidSaveNotebookDocumentNotification}});Object.defineProperty(C,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:function(){return fo.DidCloseNotebookDocumentNotification}});var NH;(function(n){function e(t){let i=t;return Si.string(i.language)||Si.string(i.scheme)||Si.string(i.pattern)}n.is=e})(NH=C.TextDocumentFilter||(C.TextDocumentFilter={}));var BH;(function(n){function e(t){let i=t;return Si.objectLiteral(i)&&(Si.string(i.notebookType)||Si.string(i.scheme)||Si.string(i.pattern))}n.is=e})(BH=C.NotebookDocumentFilter||(C.NotebookDocumentFilter={}));var HH;(function(n){function e(t){let i=t;return Si.objectLiteral(i)&&(Si.string(i.notebook)||BH.is(i.notebook))&&(i.language===void 0||Si.string(i.language))}n.is=e})(HH=C.NotebookCellTextDocumentFilter||(C.NotebookCellTextDocumentFilter={}));var qH;(function(n){function e(t){if(!Array.isArray(t))return!1;for(let i of t)if(!Si.string(i)&&!NH.is(i)&&!HH.is(i))return!1;return!0}n.is=e})(qH=C.DocumentSelector||(C.DocumentSelector={}));var yfe;(function(n){n.method="client/registerCapability",n.messageDirection=ee.MessageDirection.serverToClient,n.type=new ee.ProtocolRequestType(n.method)})(yfe=C.RegistrationRequest||(C.RegistrationRequest={}));var bfe;(function(n){n.method="client/unregisterCapability",n.messageDirection=ee.MessageDirection.serverToClient,n.type=new ee.ProtocolRequestType(n.method)})(bfe=C.UnregistrationRequest||(C.UnregistrationRequest={}));var vfe;(function(n){n.Create="create",n.Rename="rename",n.Delete="delete"})(vfe=C.ResourceOperationKind||(C.ResourceOperationKind={}));var wfe;(function(n){n.Abort="abort",n.Transactional="transactional",n.TextOnlyTransactional="textOnlyTransactional",n.Undo="undo"})(wfe=C.FailureHandlingKind||(C.FailureHandlingKind={}));var Dfe;(function(n){n.UTF8="utf-8",n.UTF16="utf-16",n.UTF32="utf-32"})(Dfe=C.PositionEncodingKind||(C.PositionEncodingKind={}));var Cfe;(function(n){function e(t){let i=t;return i&&Si.string(i.id)&&i.id.length>0}n.hasId=e})(Cfe=C.StaticRegistrationOptions||(C.StaticRegistrationOptions={}));var xfe;(function(n){function e(t){let i=t;return i&&(i.documentSelector===null||qH.is(i.documentSelector))}n.is=e})(xfe=C.TextDocumentRegistrationOptions||(C.TextDocumentRegistrationOptions={}));var Sfe;(function(n){function e(i){let r=i;return Si.objectLiteral(r)&&(r.workDoneProgress===void 0||Si.boolean(r.workDoneProgress))}n.is=e;function t(i){let r=i;return r&&Si.boolean(r.workDoneProgress)}n.hasWorkDoneProgress=t})(Sfe=C.WorkDoneProgressOptions||(C.WorkDoneProgressOptions={}));var Tfe;(function(n){n.method="initialize",n.messageDirection=ee.MessageDirection.clientToServer,n.type=new ee.ProtocolRequestType(n.method)})(Tfe=C.InitializeRequest||(C.InitializeRequest={}));var kfe;(function(n){n.unknownProtocolVersion=1})(kfe=C.InitializeErrorCodes||(C.InitializeErrorCodes={}));var Efe;(function(n){n.method="initialized",n.messageDirection=ee.MessageDirection.clientToServer,n.type=new ee.ProtocolNotificationType(n.method)})(Efe=C.InitializedNotification||(C.InitializedNotification={}));var Pfe;(function(n){n.method="shutdown",n.messageDirection=ee.MessageDirection.clientToServer,n.type=new ee.ProtocolRequestType0(n.method)})(Pfe=C.ShutdownRequest||(C.ShutdownRequest={}));var _fe;(function(n){n.method="exit",n.messageDirection=ee.MessageDirection.clientToServer,n.type=new ee.ProtocolNotificationType0(n.method)})(_fe=C.ExitNotification||(C.ExitNotification={}));var Rfe;(function(n){n.method="workspace/didChangeConfiguration",n.messageDirection=ee.MessageDirection.clientToServer,n.type=new ee.ProtocolNotificationType(n.method)})(Rfe=C.DidChangeConfigurationNotification||(C.DidChangeConfigurationNotification={}));var Lfe;(function(n){n.Error=1,n.Warning=2,n.Info=3,n.Log=4})(Lfe=C.MessageType||(C.MessageType={}));var Ffe;(function(n){n.method="window/showMessage",n.messageDirection=ee.MessageDirection.serverToClient,n.type=new ee.ProtocolNotificationType(n.method)})(Ffe=C.ShowMessageNotification||(C.ShowMessageNotification={}));var Ife;(function(n){n.method="window/showMessageRequest",n.messageDirection=ee.MessageDirection.serverToClient,n.type=new ee.ProtocolRequestType(n.method)})(Ife=C.ShowMessageRequest||(C.ShowMessageRequest={}));var jfe;(function(n){n.method="window/logMessage",n.messageDirection=ee.MessageDirection.serverToClient,n.type=new ee.ProtocolNotificationType(n.method)})(jfe=C.LogMessageNotification||(C.LogMessageNotification={}));var Afe;(function(n){n.method="telemetry/event",n.messageDirection=ee.MessageDirection.serverToClient,n.type=new ee.ProtocolNotificationType(n.method)})(Afe=C.TelemetryEventNotification||(C.TelemetryEventNotification={}));var Mfe;(function(n){n.None=0,n.Full=1,n.Incremental=2})(Mfe=C.TextDocumentSyncKind||(C.TextDocumentSyncKind={}));var Ofe;(function(n){n.method="textDocument/didOpen",n.messageDirection=ee.MessageDirection.clientToServer,n.type=new ee.ProtocolNotificationType(n.method)})(Ofe=C.DidOpenTextDocumentNotification||(C.DidOpenTextDocumentNotification={}));var Nfe;(function(n){function e(i){let r=i;return r!=null&&typeof r.text=="string"&&r.range!==void 0&&(r.rangeLength===void 0||typeof r.rangeLength=="number")}n.isIncremental=e;function t(i){let r=i;return r!=null&&typeof r.text=="string"&&r.range===void 0&&r.rangeLength===void 0}n.isFull=t})(Nfe=C.TextDocumentContentChangeEvent||(C.TextDocumentContentChangeEvent={}));var Bfe;(function(n){n.method="textDocument/didChange",n.messageDirection=ee.MessageDirection.clientToServer,n.type=new ee.ProtocolNotificationType(n.method)})(Bfe=C.DidChangeTextDocumentNotification||(C.DidChangeTextDocumentNotification={}));var Hfe;(function(n){n.method="textDocument/didClose",n.messageDirection=ee.MessageDirection.clientToServer,n.type=new ee.ProtocolNotificationType(n.method)})(Hfe=C.DidCloseTextDocumentNotification||(C.DidCloseTextDocumentNotification={}));var qfe;(function(n){n.method="textDocument/didSave",n.messageDirection=ee.MessageDirection.clientToServer,n.type=new ee.ProtocolNotificationType(n.method)})(qfe=C.DidSaveTextDocumentNotification||(C.DidSaveTextDocumentNotification={}));var Yfe;(function(n){n.Manual=1,n.AfterDelay=2,n.FocusOut=3})(Yfe=C.TextDocumentSaveReason||(C.TextDocumentSaveReason={}));var Wfe;(function(n){n.method="textDocument/willSave",n.messageDirection=ee.MessageDirection.clientToServer,n.type=new ee.ProtocolNotificationType(n.method)})(Wfe=C.WillSaveTextDocumentNotification||(C.WillSaveTextDocumentNotification={}));var Zfe;(function(n){n.method="textDocument/willSaveWaitUntil",n.messageDirection=ee.MessageDirection.clientToServer,n.type=new ee.ProtocolRequestType(n.method)})(Zfe=C.WillSaveTextDocumentWaitUntilRequest||(C.WillSaveTextDocumentWaitUntilRequest={}));var Jfe;(function(n){n.method="workspace/didChangeWatchedFiles",n.messageDirection=ee.MessageDirection.clientToServer,n.type=new ee.ProtocolNotificationType(n.method)})(Jfe=C.DidChangeWatchedFilesNotification||(C.DidChangeWatchedFilesNotification={}));var $fe;(function(n){n.Created=1,n.Changed=2,n.Deleted=3})($fe=C.FileChangeType||(C.FileChangeType={}));var Xfe;(function(n){function e(t){let i=t;return Si.objectLiteral(i)&&(jH.URI.is(i.baseUri)||jH.WorkspaceFolder.is(i.baseUri))&&Si.string(i.pattern)}n.is=e})(Xfe=C.RelativePattern||(C.RelativePattern={}));var Ufe;(function(n){n.Create=1,n.Change=2,n.Delete=4})(Ufe=C.WatchKind||(C.WatchKind={}));var Gfe;(function(n){n.method="textDocument/publishDiagnostics",n.messageDirection=ee.MessageDirection.serverToClient,n.type=new ee.ProtocolNotificationType(n.method)})(Gfe=C.PublishDiagnosticsNotification||(C.PublishDiagnosticsNotification={}));var Kfe;(function(n){n.Invoked=1,n.TriggerCharacter=2,n.TriggerForIncompleteCompletions=3})(Kfe=C.CompletionTriggerKind||(C.CompletionTriggerKind={}));var Qfe;(function(n){n.method="textDocument/completion",n.messageDirection=ee.MessageDirection.clientToServer,n.type=new ee.ProtocolRequestType(n.method)})(Qfe=C.CompletionRequest||(C.CompletionRequest={}));var zfe;(function(n){n.method="completionItem/resolve",n.messageDirection=ee.MessageDirection.clientToServer,n.type=new ee.ProtocolRequestType(n.method)})(zfe=C.CompletionResolveRequest||(C.CompletionResolveRequest={}));var Vfe;(function(n){n.method="textDocument/hover",n.messageDirection=ee.MessageDirection.clientToServer,n.type=new ee.ProtocolRequestType(n.method)})(Vfe=C.HoverRequest||(C.HoverRequest={}));var eme;(function(n){n.Invoked=1,n.TriggerCharacter=2,n.ContentChange=3})(eme=C.SignatureHelpTriggerKind||(C.SignatureHelpTriggerKind={}));var tme;(function(n){n.method="textDocument/signatureHelp",n.messageDirection=ee.MessageDirection.clientToServer,n.type=new ee.ProtocolRequestType(n.method)})(tme=C.SignatureHelpRequest||(C.SignatureHelpRequest={}));var ime;(function(n){n.method="textDocument/definition",n.messageDirection=ee.MessageDirection.clientToServer,n.type=new ee.ProtocolRequestType(n.method)})(ime=C.DefinitionRequest||(C.DefinitionRequest={}));var nme;(function(n){n.method="textDocument/references",n.messageDirection=ee.MessageDirection.clientToServer,n.type=new ee.ProtocolRequestType(n.method)})(nme=C.ReferencesRequest||(C.ReferencesRequest={}));var rme;(function(n){n.method="textDocument/documentHighlight",n.messageDirection=ee.MessageDirection.clientToServer,n.type=new ee.ProtocolRequestType(n.method)})(rme=C.DocumentHighlightRequest||(C.DocumentHighlightRequest={}));var ome;(function(n){n.method="textDocument/documentSymbol",n.messageDirection=ee.MessageDirection.clientToServer,n.type=new ee.ProtocolRequestType(n.method)})(ome=C.DocumentSymbolRequest||(C.DocumentSymbolRequest={}));var sme;(function(n){n.method="textDocument/codeAction",n.messageDirection=ee.MessageDirection.clientToServer,n.type=new ee.ProtocolRequestType(n.method)})(sme=C.CodeActionRequest||(C.CodeActionRequest={}));var ame;(function(n){n.method="codeAction/resolve",n.messageDirection=ee.MessageDirection.clientToServer,n.type=new ee.ProtocolRequestType(n.method)})(ame=C.CodeActionResolveRequest||(C.CodeActionResolveRequest={}));var lme;(function(n){n.method="workspace/symbol",n.messageDirection=ee.MessageDirection.clientToServer,n.type=new ee.ProtocolRequestType(n.method)})(lme=C.WorkspaceSymbolRequest||(C.WorkspaceSymbolRequest={}));var ume;(function(n){n.method="workspaceSymbol/resolve",n.messageDirection=ee.MessageDirection.clientToServer,n.type=new ee.ProtocolRequestType(n.method)})(ume=C.WorkspaceSymbolResolveRequest||(C.WorkspaceSymbolResolveRequest={}));var cme;(function(n){n.method="textDocument/codeLens",n.messageDirection=ee.MessageDirection.clientToServer,n.type=new ee.ProtocolRequestType(n.method)})(cme=C.CodeLensRequest||(C.CodeLensRequest={}));var hme;(function(n){n.method="codeLens/resolve",n.messageDirection=ee.MessageDirection.clientToServer,n.type=new ee.ProtocolRequestType(n.method)})(hme=C.CodeLensResolveRequest||(C.CodeLensResolveRequest={}));var dme;(function(n){n.method="workspace/codeLens/refresh",n.messageDirection=ee.MessageDirection.serverToClient,n.type=new ee.ProtocolRequestType0(n.method)})(dme=C.CodeLensRefreshRequest||(C.CodeLensRefreshRequest={}));var gme;(function(n){n.method="textDocument/documentLink",n.messageDirection=ee.MessageDirection.clientToServer,n.type=new ee.ProtocolRequestType(n.method)})(gme=C.DocumentLinkRequest||(C.DocumentLinkRequest={}));var pme;(function(n){n.method="documentLink/resolve",n.messageDirection=ee.MessageDirection.clientToServer,n.type=new ee.ProtocolRequestType(n.method)})(pme=C.DocumentLinkResolveRequest||(C.DocumentLinkResolveRequest={}));var fme;(function(n){n.method="textDocument/formatting",n.messageDirection=ee.MessageDirection.clientToServer,n.type=new ee.ProtocolRequestType(n.method)})(fme=C.DocumentFormattingRequest||(C.DocumentFormattingRequest={}));var mme;(function(n){n.method="textDocument/rangeFormatting",n.messageDirection=ee.MessageDirection.clientToServer,n.type=new ee.ProtocolRequestType(n.method)})(mme=C.DocumentRangeFormattingRequest||(C.DocumentRangeFormattingRequest={}));var yme;(function(n){n.method="textDocument/onTypeFormatting",n.messageDirection=ee.MessageDirection.clientToServer,n.type=new ee.ProtocolRequestType(n.method)})(yme=C.DocumentOnTypeFormattingRequest||(C.DocumentOnTypeFormattingRequest={}));var bme;(function(n){n.Identifier=1})(bme=C.PrepareSupportDefaultBehavior||(C.PrepareSupportDefaultBehavior={}));var vme;(function(n){n.method="textDocument/rename",n.messageDirection=ee.MessageDirection.clientToServer,n.type=new ee.ProtocolRequestType(n.method)})(vme=C.RenameRequest||(C.RenameRequest={}));var wme;(function(n){n.method="textDocument/prepareRename",n.messageDirection=ee.MessageDirection.clientToServer,n.type=new ee.ProtocolRequestType(n.method)})(wme=C.PrepareRenameRequest||(C.PrepareRenameRequest={}));var Dme;(function(n){n.method="workspace/executeCommand",n.messageDirection=ee.MessageDirection.clientToServer,n.type=new ee.ProtocolRequestType(n.method)})(Dme=C.ExecuteCommandRequest||(C.ExecuteCommandRequest={}));var Cme;(function(n){n.method="workspace/applyEdit",n.messageDirection=ee.MessageDirection.serverToClient,n.type=new ee.ProtocolRequestType("workspace/applyEdit")})(Cme=C.ApplyWorkspaceEditRequest||(C.ApplyWorkspaceEditRequest={}))});var ZH=y(Cy=>{"use strict";Object.defineProperty(Cy,"__esModule",{value:!0});Cy.createProtocolConnection=void 0;var WH=kl();function xme(n,e,t,i){return WH.ConnectionStrategy.is(i)&&(i={connectionStrategy:i}),(0,WH.createMessageConnection)(n,e,t,i)}Cy.createProtocolConnection=xme});var JH=y(sn=>{"use strict";var Sme=sn&&sn.__createBinding||(Object.create?function(n,e,t,i){i===void 0&&(i=t);var r=Object.getOwnPropertyDescriptor(e,t);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(n,i,r)}:function(n,e,t,i){i===void 0&&(i=t),n[i]=e[t]}),xy=sn&&sn.__exportStar||function(n,e){for(var t in n)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&Sme(e,n,t)};Object.defineProperty(sn,"__esModule",{value:!0});sn.LSPErrorCodes=sn.createProtocolConnection=void 0;xy(kl(),sn);xy((or(),Uo(fy)),sn);xy(Nt(),sn);xy(YH(),sn);var Tme=ZH();Object.defineProperty(sn,"createProtocolConnection",{enumerable:!0,get:function(){return Tme.createProtocolConnection}});var kme;(function(n){n.lspReservedErrorRangeStart=-32899,n.RequestFailed=-32803,n.ServerCancelled=-32802,n.ContentModified=-32801,n.RequestCancelled=-32800,n.lspReservedErrorRangeEnd=-32800})(kme=sn.LSPErrorCodes||(sn.LSPErrorCodes={}))});var q=y(mo=>{"use strict";var Eme=mo&&mo.__createBinding||(Object.create?function(n,e,t,i){i===void 0&&(i=t);var r=Object.getOwnPropertyDescriptor(e,t);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(n,i,r)}:function(n,e,t,i){i===void 0&&(i=t),n[i]=e[t]}),$H=mo&&mo.__exportStar||function(n,e){for(var t in n)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&Eme(e,n,t)};Object.defineProperty(mo,"__esModule",{value:!0});mo.createProtocolConnection=void 0;var Pme=v0();$H(v0(),mo);$H(JH(),mo);function _me(n,e,t,i){return(0,Pme.createMessageConnection)(n,e,t,i)}mo.createProtocolConnection=_me});var Oi=y((uLe,XH)=>{function wT(n,e,t){var i,r,o,s,a;e==null&&(e=100);function l(){var c=Date.now()-s;c=0?i=setTimeout(l,e-c):(i=null,t||(a=n.apply(o,r),o=r=null))}var u=function(){o=this,r=arguments,s=Date.now();var c=t&&!i;return i||(i=setTimeout(l,e)),c&&(a=n.apply(o,r),o=r=null),a};return u.clear=function(){i&&(clearTimeout(i),i=null)},u.flush=function(){i&&(a=n.apply(o,r),o=r=null,clearTimeout(i),i=null)},u}wT.debounce=wT;XH.exports=wT});var GH=y((cLe,UH)=>{"use strict";var Jt={rfc3986:{}};Jt.generate=function(){var n="|",e="0-9",t="["+e+"]",i="a-zA-Z",r="["+i+"]";Jt.rfc3986.cidr=t+n+"[1-2]"+t+n+"3[0-2]";var o=e+"A-Fa-f",s="["+o+"]",a=i+e+"-\\._~",l="!\\$&'\\(\\)\\*\\+,;=",u="%"+o,c=a+u+l+":@",h="["+c+"]",d="0?",g="(?:"+d+d+t+n+d+"[1-9]"+t+n+"1"+t+t+n+"2[0-4]"+t+n+"25[0-5])";Jt.rfc3986.IPv4address="(?:"+g+"\\.){3}"+g;var p=s+"{1,4}",f="(?:"+p+":"+p+"|"+Jt.rfc3986.IPv4address+")",m="(?:"+p+":){6}"+f,b="::(?:"+p+":){5}"+f,w="(?:"+p+")?::(?:"+p+":){4}"+f,D="(?:(?:"+p+":){0,1}"+p+")?::(?:"+p+":){3}"+f,T="(?:(?:"+p+":){0,2}"+p+")?::(?:"+p+":){2}"+f,R="(?:(?:"+p+":){0,3}"+p+")?::"+p+":"+f,N="(?:(?:"+p+":){0,4}"+p+")?::"+f,H="(?:(?:"+p+":){0,5}"+p+")?::"+p,X="(?:(?:"+p+":){0,6}"+p+")?::";Jt.rfc3986.IPv6address="(?:"+m+n+b+n+w+n+D+n+T+n+R+n+N+n+H+n+X+")",Jt.rfc3986.IPvFuture="v"+s+"+\\.["+a+l+":]+",Jt.rfc3986.scheme=r+"["+i+e+"+-\\.]*";var B="["+a+u+l+":]*";Jt.rfc3986.IPLiteral="\\[(?:"+Jt.rfc3986.IPv6address+n+Jt.rfc3986.IPvFuture+")\\]";var M="["+a+u+l+"]{0,255}",F="(?:"+Jt.rfc3986.IPLiteral+n+Jt.rfc3986.IPv4address+n+M+")",O=t+"*",Z="(?:"+B+"@)?"+F+"(?::"+O+")?",ie=h+"*",ge=h+"+",_e="(?:\\/"+ie+")*",J="\\/(?:"+ge+_e+")?",Y=ge+_e;Jt.rfc3986.hierPart="(?:(?:\\/\\/"+Z+_e+")"+n+J+n+Y+")",Jt.rfc3986.query="["+c+"\\/\\?]*(?=#|$)",Jt.rfc3986.fragment="["+c+"\\/\\?]*",Jt.rfc3986.uri="^(?:"+Jt.rfc3986.scheme+":"+Jt.rfc3986.hierPart+")(?:\\?"+Jt.rfc3986.query+")?(?:#"+Jt.rfc3986.fragment+")?$"};Jt.generate();UH.exports=Jt.rfc3986});var DT=y((hLe,KH)=>{"use strict";var xg=GH();function Rme(n){return n.replace(/[\^\$\.\*\+\-\?\=\!\:\|\\\/\(\)\[\]\{\}\,]/g,"\\$&")}var Sg={Uri:{createUriRegex:function(n){if(n=n||{},typeof n!="object"||Array.isArray(n))throw new Error("options must be an object");var e="";if(n.scheme){if(Array.isArray(n.scheme)||(n.scheme=[n.scheme]),n.scheme.length<=0)throw new Error("scheme must have at least 1 scheme specified");for(var t=0;t{QH=(()=>{"use strict";var n={470:i=>{function r(a){if(typeof a!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(a))}function o(a,l){for(var u,c="",h=0,d=-1,g=0,p=0;p<=a.length;++p){if(p2){var f=c.lastIndexOf("/");if(f!==c.length-1){f===-1?(c="",h=0):h=(c=c.slice(0,f)).length-1-c.lastIndexOf("/"),d=p,g=0;continue}}else if(c.length===2||c.length===1){c="",h=0,d=p,g=0;continue}}l&&(c.length>0?c+="/..":c="..",h=2)}else c.length>0?c+="/"+a.slice(d+1,p):c=a.slice(d+1,p),h=p-d-1;d=p,g=0}else u===46&&g!==-1?++g:g=-1}return c}var s={resolve:function(){for(var a,l="",u=!1,c=arguments.length-1;c>=-1&&!u;c--){var h;c>=0?h=arguments[c]:(a===void 0&&(a=process.cwd()),h=a),r(h),h.length!==0&&(l=h+"/"+l,u=h.charCodeAt(0)===47)}return l=o(l,!u),u?l.length>0?"/"+l:"/":l.length>0?l:"."},normalize:function(a){if(r(a),a.length===0)return".";var l=a.charCodeAt(0)===47,u=a.charCodeAt(a.length-1)===47;return(a=o(a,!l)).length!==0||l||(a="."),a.length>0&&u&&(a+="/"),l?"/"+a:a},isAbsolute:function(a){return r(a),a.length>0&&a.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var a,l=0;l0&&(a===void 0?a=u:a+="/"+u)}return a===void 0?".":s.normalize(a)},relative:function(a,l){if(r(a),r(l),a===l||(a=s.resolve(a))===(l=s.resolve(l)))return"";for(var u=1;up){if(l.charCodeAt(d+m)===47)return l.slice(d+m+1);if(m===0)return l.slice(d+m)}else h>p&&(a.charCodeAt(u+m)===47?f=m:m===0&&(f=0));break}var b=a.charCodeAt(u+m);if(b!==l.charCodeAt(d+m))break;b===47&&(f=m)}var w="";for(m=u+f+1;m<=c;++m)m!==c&&a.charCodeAt(m)!==47||(w.length===0?w+="..":w+="/..");return w.length>0?w+l.slice(d+f):(d+=f,l.charCodeAt(d)===47&&++d,l.slice(d))},_makeLong:function(a){return a},dirname:function(a){if(r(a),a.length===0)return".";for(var l=a.charCodeAt(0),u=l===47,c=-1,h=!0,d=a.length-1;d>=1;--d)if((l=a.charCodeAt(d))===47){if(!h){c=d;break}}else h=!1;return c===-1?u?"/":".":u&&c===1?"//":a.slice(0,c)},basename:function(a,l){if(l!==void 0&&typeof l!="string")throw new TypeError('"ext" argument must be a string');r(a);var u,c=0,h=-1,d=!0;if(l!==void 0&&l.length>0&&l.length<=a.length){if(l.length===a.length&&l===a)return"";var g=l.length-1,p=-1;for(u=a.length-1;u>=0;--u){var f=a.charCodeAt(u);if(f===47){if(!d){c=u+1;break}}else p===-1&&(d=!1,p=u+1),g>=0&&(f===l.charCodeAt(g)?--g==-1&&(h=u):(g=-1,h=p))}return c===h?h=p:h===-1&&(h=a.length),a.slice(c,h)}for(u=a.length-1;u>=0;--u)if(a.charCodeAt(u)===47){if(!d){c=u+1;break}}else h===-1&&(d=!1,h=u+1);return h===-1?"":a.slice(c,h)},extname:function(a){r(a);for(var l=-1,u=0,c=-1,h=!0,d=0,g=a.length-1;g>=0;--g){var p=a.charCodeAt(g);if(p!==47)c===-1&&(h=!1,c=g+1),p===46?l===-1?l=g:d!==1&&(d=1):l!==-1&&(d=-1);else if(!h){u=g+1;break}}return l===-1||c===-1||d===0||d===1&&l===c-1&&l===u+1?"":a.slice(l,c)},format:function(a){if(a===null||typeof a!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof a);return function(l,u){var c=u.dir||u.root,h=u.base||(u.name||"")+(u.ext||"");return c?c===u.root?c+h:c+"/"+h:h}(0,a)},parse:function(a){r(a);var l={root:"",dir:"",base:"",ext:"",name:""};if(a.length===0)return l;var u,c=a.charCodeAt(0),h=c===47;h?(l.root="/",u=1):u=0;for(var d=-1,g=0,p=-1,f=!0,m=a.length-1,b=0;m>=u;--m)if((c=a.charCodeAt(m))!==47)p===-1&&(f=!1,p=m+1),c===46?d===-1?d=m:b!==1&&(b=1):d!==-1&&(b=-1);else if(!f){g=m+1;break}return d===-1||p===-1||b===0||b===1&&d===p-1&&d===g+1?p!==-1&&(l.base=l.name=g===0&&h?a.slice(1,p):a.slice(g,p)):(g===0&&h?(l.name=a.slice(1,d),l.base=a.slice(1,p)):(l.name=a.slice(g,d),l.base=a.slice(g,p)),l.ext=a.slice(d,p)),g>0?l.dir=a.slice(0,g-1):h&&(l.dir="/"),l},sep:"/",delimiter:":",win32:null,posix:null};s.posix=s,i.exports=s},447:(i,r,o)=>{var s;if(o.r(r),o.d(r,{URI:()=>w,Utils:()=>Z}),typeof process=="object")s=process.platform==="win32";else if(typeof navigator=="object"){var a=navigator.userAgent;s=a.indexOf("Windows")>=0}var l,u,c=(l=function(J,Y){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(K,z){K.__proto__=z}||function(K,z){for(var ke in z)Object.prototype.hasOwnProperty.call(z,ke)&&(K[ke]=z[ke])})(J,Y)},function(J,Y){if(typeof Y!="function"&&Y!==null)throw new TypeError("Class extends value "+String(Y)+" is not a constructor or null");function K(){this.constructor=J}l(J,Y),J.prototype=Y===null?Object.create(Y):(K.prototype=Y.prototype,new K)}),h=/^\w[\w\d+.-]*$/,d=/^\//,g=/^\/\//;function p(J,Y){if(!J.scheme&&Y)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'.concat(J.authority,'", path: "').concat(J.path,'", query: "').concat(J.query,'", fragment: "').concat(J.fragment,'"}'));if(J.scheme&&!h.test(J.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(J.path){if(J.authority){if(!d.test(J.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(g.test(J.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}var f="",m="/",b=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,w=function(){function J(Y,K,z,ke,Se,Ge){Ge===void 0&&(Ge=!1),typeof Y=="object"?(this.scheme=Y.scheme||f,this.authority=Y.authority||f,this.path=Y.path||f,this.query=Y.query||f,this.fragment=Y.fragment||f):(this.scheme=function(jn,Ri){return jn||Ri?jn:"file"}(Y,Ge),this.authority=K||f,this.path=function(jn,Ri){switch(jn){case"https":case"http":case"file":Ri?Ri[0]!==m&&(Ri=m+Ri):Ri=m}return Ri}(this.scheme,z||f),this.query=ke||f,this.fragment=Se||f,p(this,Ge))}return J.isUri=function(Y){return Y instanceof J||!!Y&&typeof Y.authority=="string"&&typeof Y.fragment=="string"&&typeof Y.path=="string"&&typeof Y.query=="string"&&typeof Y.scheme=="string"&&typeof Y.fsPath=="string"&&typeof Y.with=="function"&&typeof Y.toString=="function"},Object.defineProperty(J.prototype,"fsPath",{get:function(){return X(this,!1)},enumerable:!1,configurable:!0}),J.prototype.with=function(Y){if(!Y)return this;var K=Y.scheme,z=Y.authority,ke=Y.path,Se=Y.query,Ge=Y.fragment;return K===void 0?K=this.scheme:K===null&&(K=f),z===void 0?z=this.authority:z===null&&(z=f),ke===void 0?ke=this.path:ke===null&&(ke=f),Se===void 0?Se=this.query:Se===null&&(Se=f),Ge===void 0?Ge=this.fragment:Ge===null&&(Ge=f),K===this.scheme&&z===this.authority&&ke===this.path&&Se===this.query&&Ge===this.fragment?this:new T(K,z,ke,Se,Ge)},J.parse=function(Y,K){K===void 0&&(K=!1);var z=b.exec(Y);return z?new T(z[2]||f,O(z[4]||f),O(z[5]||f),O(z[7]||f),O(z[9]||f),K):new T(f,f,f,f,f)},J.file=function(Y){var K=f;if(s&&(Y=Y.replace(/\\/g,m)),Y[0]===m&&Y[1]===m){var z=Y.indexOf(m,2);z===-1?(K=Y.substring(2),Y=m):(K=Y.substring(2,z),Y=Y.substring(z)||m)}return new T("file",K,Y,f,f)},J.from=function(Y){var K=new T(Y.scheme,Y.authority,Y.path,Y.query,Y.fragment);return p(K,!0),K},J.prototype.toString=function(Y){return Y===void 0&&(Y=!1),B(this,Y)},J.prototype.toJSON=function(){return this},J.revive=function(Y){if(Y){if(Y instanceof J)return Y;var K=new T(Y);return K._formatted=Y.external,K._fsPath=Y._sep===D?Y.fsPath:null,K}return Y},J}(),D=s?1:void 0,T=function(J){function Y(){var K=J!==null&&J.apply(this,arguments)||this;return K._formatted=null,K._fsPath=null,K}return c(Y,J),Object.defineProperty(Y.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=X(this,!1)),this._fsPath},enumerable:!1,configurable:!0}),Y.prototype.toString=function(K){return K===void 0&&(K=!1),K?B(this,!0):(this._formatted||(this._formatted=B(this,!1)),this._formatted)},Y.prototype.toJSON=function(){var K={$mid:1};return this._fsPath&&(K.fsPath=this._fsPath,K._sep=D),this._formatted&&(K.external=this._formatted),this.path&&(K.path=this.path),this.scheme&&(K.scheme=this.scheme),this.authority&&(K.authority=this.authority),this.query&&(K.query=this.query),this.fragment&&(K.fragment=this.fragment),K},Y}(w),R=((u={})[58]="%3A",u[47]="%2F",u[63]="%3F",u[35]="%23",u[91]="%5B",u[93]="%5D",u[64]="%40",u[33]="%21",u[36]="%24",u[38]="%26",u[39]="%27",u[40]="%28",u[41]="%29",u[42]="%2A",u[43]="%2B",u[44]="%2C",u[59]="%3B",u[61]="%3D",u[32]="%20",u);function N(J,Y){for(var K=void 0,z=-1,ke=0;ke=97&&Se<=122||Se>=65&&Se<=90||Se>=48&&Se<=57||Se===45||Se===46||Se===95||Se===126||Y&&Se===47)z!==-1&&(K+=encodeURIComponent(J.substring(z,ke)),z=-1),K!==void 0&&(K+=J.charAt(ke));else{K===void 0&&(K=J.substr(0,ke));var Ge=R[Se];Ge!==void 0?(z!==-1&&(K+=encodeURIComponent(J.substring(z,ke)),z=-1),K+=Ge):z===-1&&(z=ke)}}return z!==-1&&(K+=encodeURIComponent(J.substring(z))),K!==void 0?K:J}function H(J){for(var Y=void 0,K=0;K1&&J.scheme==="file"?"//".concat(J.authority).concat(J.path):J.path.charCodeAt(0)===47&&(J.path.charCodeAt(1)>=65&&J.path.charCodeAt(1)<=90||J.path.charCodeAt(1)>=97&&J.path.charCodeAt(1)<=122)&&J.path.charCodeAt(2)===58?Y?J.path.substr(1):J.path[1].toLowerCase()+J.path.substr(2):J.path,s&&(K=K.replace(/\//g,"\\")),K}function B(J,Y){var K=Y?H:N,z="",ke=J.scheme,Se=J.authority,Ge=J.path,jn=J.query,Ri=J.fragment;if(ke&&(z+=ke,z+=":"),(Se||ke==="file")&&(z+=m,z+=m),Se){var Li=Se.indexOf("@");if(Li!==-1){var Tr=Se.substr(0,Li);Se=Se.substr(Li+1),(Li=Tr.indexOf(":"))===-1?z+=K(Tr,!1):(z+=K(Tr.substr(0,Li),!1),z+=":",z+=K(Tr.substr(Li+1),!1)),z+="@"}(Li=(Se=Se.toLowerCase()).indexOf(":"))===-1?z+=K(Se,!1):(z+=K(Se.substr(0,Li),!1),z+=Se.substr(Li))}if(Ge){if(Ge.length>=3&&Ge.charCodeAt(0)===47&&Ge.charCodeAt(2)===58)(Re=Ge.charCodeAt(1))>=65&&Re<=90&&(Ge="/".concat(String.fromCharCode(Re+32),":").concat(Ge.substr(3)));else if(Ge.length>=2&&Ge.charCodeAt(1)===58){var Re;(Re=Ge.charCodeAt(0))>=65&&Re<=90&&(Ge="".concat(String.fromCharCode(Re+32),":").concat(Ge.substr(2)))}z+=K(Ge,!0)}return jn&&(z+="?",z+=K(jn,!1)),Ri&&(z+="#",z+=Y?Ri:N(Ri,!1)),z}function M(J){try{return decodeURIComponent(J)}catch{return J.length>3?J.substr(0,3)+M(J.substr(3)):J}}var F=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function O(J){return J.match(F)?J.replace(F,function(Y){return M(Y)}):J}var Z,ie=o(470),ge=function(J,Y,K){if(K||arguments.length===2)for(var z,ke=0,Se=Y.length;ke{for(var o in r)t.o(r,o)&&!t.o(i,o)&&Object.defineProperty(i,o,{enumerable:!0,get:r[o]})},t.o=(i,r)=>Object.prototype.hasOwnProperty.call(i,r),t.r=i=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},t(447)})();({URI:I,Utils:dLe}=QH)});var iq=y((pLe,tq)=>{tq.exports=eq;eq.sync=Fme;var zH=require("fs");function Lme(n,e){var t=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!t||(t=t.split(";"),t.indexOf("")!==-1))return!0;for(var i=0;i{sq.exports=rq;rq.sync=Ime;var nq=require("fs");function rq(n,e,t){nq.stat(n,function(i,r){t(i,i?!1:oq(r,e))})}function Ime(n,e){return oq(nq.statSync(n),e)}function oq(n,e){return n.isFile()&&jme(n,e)}function jme(n,e){var t=n.mode,i=n.uid,r=n.gid,o=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),s=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),a=parseInt("100",8),l=parseInt("010",8),u=parseInt("001",8),c=a|l,h=t&u||t&l&&r===s||t&a&&i===o||t&c&&o===0;return h}});var uq=y((yLe,lq)=>{var mLe=require("fs"),Sy;process.platform==="win32"||global.TESTING_WINDOWS?Sy=iq():Sy=aq();lq.exports=CT;CT.sync=Ame;function CT(n,e,t){if(typeof e=="function"&&(t=e,e={}),!t){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(i,r){CT(n,e||{},function(o,s){o?r(o):i(s)})})}Sy(n,e||{},function(i,r){i&&(i.code==="EACCES"||e&&e.ignoreErrors)&&(i=null,r=!1),t(i,r)})}function Ame(n,e){try{return Sy.sync(n,e||{})}catch(t){if(e&&e.ignoreErrors||t.code==="EACCES")return!1;throw t}}});var Tg=y((bLe,fq)=>{var wc=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",cq=require("path"),Mme=wc?";":":",hq=uq(),dq=n=>Object.assign(new Error(`not found: ${n}`),{code:"ENOENT"}),gq=(n,e)=>{let t=e.colon||Mme,i=n.match(/\//)||wc&&n.match(/\\/)?[""]:[...wc?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(t)],r=wc?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",o=wc?r.split(t):[""];return wc&&n.indexOf(".")!==-1&&o[0]!==""&&o.unshift(""),{pathEnv:i,pathExt:o,pathExtExe:r}},pq=(n,e,t)=>{typeof e=="function"&&(t=e,e={}),e||(e={});let{pathEnv:i,pathExt:r,pathExtExe:o}=gq(n,e),s=[],a=u=>new Promise((c,h)=>{if(u===i.length)return e.all&&s.length?c(s):h(dq(n));let d=i[u],g=/^".*"$/.test(d)?d.slice(1,-1):d,p=cq.join(g,n),f=!g&&/^\.[\\\/]/.test(n)?n.slice(0,2)+p:p;c(l(f,u,0))}),l=(u,c,h)=>new Promise((d,g)=>{if(h===r.length)return d(a(c+1));let p=r[h];hq(u+p,{pathExt:o},(f,m)=>{if(!f&&m)if(e.all)s.push(u+p);else return d(u+p);return d(l(u,c,h+1))})});return t?a(0).then(u=>t(null,u),t):a(0)},Ome=(n,e)=>{e=e||{};let{pathEnv:t,pathExt:i,pathExtExe:r}=gq(n,e),o=[];for(let s=0;s$me,OperatingSystem:()=>yq,Platform:()=>mq,globals:()=>Jme,isLinux:()=>Hme,isMacintosh:()=>Dc,isNative:()=>qme,isWeb:()=>Yme,isWindows:()=>an,language:()=>Bme,platform:()=>Wme});var ky,Ey,xT,ST,Nme,Bme,mq,Ty,an,Dc,Hme,qme,Yme,Wme,Zme,Jme,yq,$me,Cc=_(()=>{"use strict";ky=!1,Ey=!1,xT=!1,ST=!1,Nme=!1,Bme="en";typeof process=="object"&&typeof process.nextTick=="function"&&typeof process.platform=="string"&&(ky=process.platform==="win32",Ey=process.platform==="darwin",xT=process.platform==="linux",ST=!0);mq=(r=>(r[r.Web=0]="Web",r[r.Mac=1]="Mac",r[r.Linux=2]="Linux",r[r.Windows=3]="Windows",r))(mq||{}),Ty=0;ST&&(Ey?Ty=1:ky?Ty=3:xT&&(Ty=2));an=ky,Dc=Ey,Hme=xT,qme=ST,Yme=Nme,Wme=Ty,Zme=typeof self=="object"?self:typeof global=="object"?global:{},Jme=Zme,yq=(i=>(i[i.Windows=1]="Windows",i[i.Macintosh=2]="Macintosh",i[i.Linux=3]="Linux",i))(yq||{}),$me=Ey?2:ky?1:3});function kg(n){return!!(Rl.MarkupContent.is(n)&&n.kind==Rl.MarkupKind.Markdown)}function Pt(n){return n<=0?Promise.resolve(void 0):new Promise(e=>{setTimeout(()=>{e(void 0)},n)})}function xq(n){return new Promise(e=>{process.nextTick(()=>{n&&n(),e(void 0)})})}function yo(){return new Promise(n=>{setImmediate(()=>{n(void 0)})})}function Py(n,e,t,i){return n?(an&&!i&&!n.startsWith("jdt://")&&(n=TT.default.win32.normalize(n)),TT.default.isAbsolute(n)?I.file(n).toString():Dq.default.isValid(n)?I.parse(n).toString():t!=""?`${t}:${e}`:`unknown:${e}`):`untitled:${e}`}function $(n){for(;n.length;){let e=n.pop();e&&e.dispose()}}function Eg(n){try{Cq.default.sync(n)}catch{return!1}return!0}function bo(n,e={},t){return an||(e.shell=e.shell||process.env.SHELL),e.maxBuffer=500*1024,new Promise((i,r)=>{let o;t&&(o=setTimeout(()=>{r(new Error(`timeout after ${t}s`))},t*1e3)),(0,bq.exec)(n,e,(s,a,l)=>{if(o&&clearTimeout(o),s){r(new Error(`exited with ${s.code} ${s} -${l}`));return}i(a)})})}function lc(n,e){let t=(0,cH.default)(e,100);try{let i=hH.default.watch(n,{persistent:!0,recursive:!1,encoding:"utf8"},()=>{t()});return pl.Disposable.create(()=>{t.clear(),i.close()})}catch{return pl.Disposable.create(()=>{t.clear()})}}function pH(n){try{return process.kill(n,0)==!0}catch(e){return e.code==="EPERM"}}function R0(n){return n=="n"||n=="o"||n=="x"||n=="v"?"":n=="i"?"":n=="s"?"":""}function ag(n,e,t=3){if(n.length==0)return Promise.resolve();let i=0,r=n.length,o=n.slice();return new Promise(s=>{let a=l=>{let u=()=>{if(i=i+1,i==r)s();else if(o.length){let c=o.shift();a(c)}};e(l).then(u,u)};for(let l=0;l{"use strict";uH=require("child_process"),cH=C(Ei()),hH=C(require("fs")),dH=C(S0()),_0=C(require("path")),pl=C(H());we();gH=C(rg());ac();A_e=q()("util-index"),Pr="coc-settings.json"});function uc(n){return n&&typeof n.word=="string"&&n.user_data!==""}function Kn(n){return typeof n=="boolean"}function Ee(n){return typeof n=="string"}function ib(n){return typeof n=="number"}function Qs(n){return typeof n=="function"}function _t(n){return n!=null&&typeof n=="object"&&!Array.isArray(n)&&!(n instanceof RegExp)&&!(n instanceof Date)}function mH(n){if(!_t(n))return!1;for(let e in n)if(dpe.call(n,e))return!1;return!0}function L0(n,e){return Array.isArray(n)&&n.every(e)}var dpe,In=_(()=>{"use strict";dpe=Object.prototype.hasOwnProperty});function _r(n){if(!n||typeof n!="object"||n instanceof RegExp)return n;let e=Array.isArray(n)?[]:{};return Object.keys(n).forEach(t=>{n[t]&&typeof n[t]=="object"?e[t]=_r(n[t]):e[t]=n[t]}),e}function bH(n){if(!n||typeof n!="object")return n;let e=[n];for(;e.length>0;){let t=e.shift();Object.freeze(t);for(let i in t)if(gpe.call(t,i)){let r=t[i];typeof r=="object"&&!Object.isFrozen(r)&&e.push(r)}}return n}function F0(n,e,t=!0){return _t(n)?(_t(e)&&Object.keys(e).forEach(i=>{i in n?t&&(_t(n[i])&&_t(e[i])?F0(n[i],e[i],t):n[i]=e[i]):n[i]=e[i]}),n):e}function Fe(n,e){if(n===e)return!0;if(n==null||e===null||e===void 0||typeof n!=typeof e||typeof n!="object"||Array.isArray(n)!==Array.isArray(e))return!1;let t,i;if(Array.isArray(n)){if(n.length!==e.length)return!1;for(t=0;t{"use strict";In();gpe=Object.prototype.hasOwnProperty});function yH(n){return n>=97&&n<=122?1:n>=65&&n<=90?2:0}function vH(n,e){let t=e==0?0:yH(n[e-1]);for(let i=e;i0&&r!=t)return[i,n[i]];t=r}}function wH(n,e){let t=[];for(let i=0;i0?n[0].toUpperCase()+n.slice(1):""}function Ze(n,e){let t=n.slice(0,e);return Buffer.byteLength(t)}function Ui(n,e){return Buffer.from(n,"utf8").slice(0,e).toString("utf8").length}function et(n,e,t){return Buffer.from(n,"utf8").slice(e,t).toString("utf8")}function hc(n){let e=n.charCodeAt(0);return e>128?!1:!!(e==95||e>=48&&e<=57||I0(e))}function I0(n){return n>=65&&n<=90||n>=97&&n<=122}function DH(n,e){return e&&n.endsWith(` +${l}`));return}i(a)})})}function xc(n,e){let t=(0,vq.default)(e,100);try{let i=wq.default.watch(n,{persistent:!0,recursive:!1,encoding:"utf8"},()=>{t()});return Rl.Disposable.create(()=>{t.clear(),i.close()})}catch{return Rl.Disposable.create(()=>{t.clear()})}}function Sq(n){try{return process.kill(n,0)==!0}catch(e){return e.code==="EPERM"}}function kT(n){return n=="n"||n=="o"||n=="x"||n=="v"?"":n=="i"?"":n=="s"?"":""}function Pg(n,e,t=3){if(n.length==0)return Promise.resolve();let i=0,r=n.length,o=n.slice();return new Promise(s=>{let a=l=>{let u=()=>{if(i=i+1,i==r)s();else if(o.length){let c=o.shift();a(c)}};e(l).then(u,u)};for(let l=0;l{"use strict";bq=require("child_process"),vq=x(Oi()),wq=x(require("fs")),Dq=x(DT()),TT=x(require("path")),Rl=x(q());Ee();Cq=x(Tg());Cc();DLe=W()("util-index"),qr="coc-settings.json"});function ar(n){return typeof n=="boolean"}function Be(n){return typeof n=="string"}function _y(n){return typeof n=="number"}function ua(n){return typeof n=="function"}function Ht(n){return n!=null&&typeof n=="object"&&!Array.isArray(n)&&!(n instanceof RegExp)&&!(n instanceof Date)}function Tq(n){if(!Ht(n))return!1;for(let e in n)if(Xme.call(n,e))return!1;return!0}function ET(n,e){return Array.isArray(n)&&n.every(e)}var Xme,lr=_(()=>{"use strict";Xme=Object.prototype.hasOwnProperty});function Yr(n){if(!n||typeof n!="object"||n instanceof RegExp)return n;let e=Array.isArray(n)?[]:{};return Object.keys(n).forEach(t=>{n[t]&&typeof n[t]=="object"?e[t]=Yr(n[t]):e[t]=n[t]}),e}function kq(n){if(!n||typeof n!="object")return n;let e=[n];for(;e.length>0;){let t=e.shift();Object.freeze(t);for(let i in t)if(Ume.call(t,i)){let r=t[i];typeof r=="object"&&!Object.isFrozen(r)&&e.push(r)}}return n}function PT(n,e,t=!0){return Ht(n)?(Ht(e)&&Object.keys(e).forEach(i=>{i in n?t&&(Ht(n[i])&&Ht(e[i])?PT(n[i],e[i],t):n[i]=e[i]):n[i]=e[i]}),n):e}function Xe(n,e){if(n===e)return!0;if(n==null||e===null||e===void 0||typeof n!=typeof e||typeof n!="object"||Array.isArray(n)!==Array.isArray(e))return!1;let t,i;if(Array.isArray(n)){if(n.length!==e.length)return!1;for(t=0;t{"use strict";lr();Ume=Object.prototype.hasOwnProperty});function Eq(n){return n>=97&&n<=122?1:n>=65&&n<=90?2:0}function Pq(n,e){let t=e==0?0:Eq(n[e-1]);for(let i=e;i0&&r!=t)return[i,n[i]];t=r}}function _q(n,e){let t=[];for(let i=0;i0?n[0].toUpperCase()+n.slice(1):""}function We(n,e){let t=n.slice(0,e);return Buffer.byteLength(t)}function ln(n,e){return Buffer.from(n,"utf8").slice(0,e).toString("utf8").length}function at(n,e,t){return Buffer.from(n,"utf8").slice(e,t).toString("utf8")}function Sc(n){let e=n.charCodeAt(0);return e>128?!1:!!(e==95||e>=48&&e<=57||_T(e))}function _T(n){return n>=65&&n<=90||n>=97&&n<=122}function Rq(n,e){return e&&n.endsWith(` `)?n.slice(0,-1).split(` `):n.split(` -`)}var Pe=_(()=>{"use strict"});var dc,fpe,xH,E,le=_(()=>{"use strict";dc=C(H());z();Jt();Pe();fpe=q()("events"),xH=class{constructor(){this.handlers=new Map;this._recentInserts=[];this._lastChange=0;this._insertMode=!1;this._pumAlignTop=!1;this._pumVisible=!1;this.completing=!1}get cursor(){return this._cursor}get bufnr(){return this._bufnr}get pumvisible(){return this._pumVisible}get pumAlignTop(){return this._pumAlignTop}get insertMode(){return this._insertMode}get lastChangeTs(){return this._lastChange}race(e,t){let i=[];return new Promise(r=>{if(typeof t=="number"){let o=setTimeout(()=>{Z(i),r(void 0)},t);i.push(dc.Disposable.create(()=>{clearTimeout(o)}))}else dc.CancellationToken.is(t)&&t.onCancellationRequested(()=>{Z(i),r(void 0)},null,i);e.forEach(o=>{this.on(o,(...s)=>{Z(i),r({name:o,args:s})},null,i)})})}async fire(e,t){var r,o;let i=this.handlers.get(e);if(e=="InsertEnter")this._insertMode=!0;else if(e=="InsertLeave")this._insertMode=!1,this._pumVisible=!1,this._recentInserts=[];else if(e=="CursorHoldI"||e=="CursorMovedI")this._bufnr=t[0],this._insertMode||(this._insertMode=!0,this.fire("InsertEnter",[t[0]]));else if(e=="CursorHold"||e=="CursorMoved")this._bufnr=t[0],this._insertMode&&(this._insertMode=!1,this.fire("InsertLeave",[t[0]]));else if(e=="MenuPopupChanged")this._pumVisible=!0,this._pumAlignTop=t[1]>t[0].row;else if(e=="CompleteDone")this._pumVisible=!1;else if(e=="InsertCharPre")this._recentInserts.push([t[1],t[0]]);else if(e=="TextChanged")this._lastChange=Date.now();else if(e=="BufEnter")this._bufnr=t[0];else if(e=="TextChangedI"||e=="TextChangedP"){let s=this._recentInserts.filter(u=>u[0]==t[0]);this._bufnr=t[0],this._recentInserts=[],this._pumVisible=e=="TextChangedP",this._lastChange=Date.now();let a=t[1],l=et((r=a.line)!=null?r:"",0,a.col-1);if(a.pre=l,this._cursor=Object.freeze({bufnr:t[0],lnum:a.lnum,col:a.col,insert:!0}),s.length&&l.length){let u=l.slice(-1);s.findIndex(c=>c[1]==u)!==-1&&(a.insertChar=u,process.nextTick(()=>{this.fire("TextInsert",[...t,u])}))}}if(e=="CursorMoved"||e=="CursorMovedI"){t.push(this._recentInserts.length>0);let s={bufnr:t[0],lnum:t[1][0],col:t[1][1],insert:e=="CursorMovedI"};if(this._cursor&&Fe(this._cursor,s))return;this._cursor=Object.freeze(s)}if(i)try{t.forEach(s=>{typeof s=="object"&&Object.freeze(s)}),await Promise.all(i.slice().map(s=>s(t)))}catch(s){if(s instanceof Error&&((o=s.message)==null?void 0:o.includes("transport disconnected")))return;fpe.error(`Error on event: ${e}`,s instanceof Error?s.stack:s)}}on(e,t,i,r){if(Array.isArray(e)){let o=r||[];for(let s of e)this.on(s,t,i,o);return dc.Disposable.create(()=>{Z(o)})}else{let o=this.handlers.get(e)||[],s=l=>new Promise((u,c)=>{try{Promise.resolve(t.apply(i!=null?i:null,l)).then(()=>{u(void 0)},h=>{c(h)})}catch(h){c(h)}});o.push(s),this.handlers.set(e,o);let a=dc.Disposable.create(()=>{let l=o.indexOf(s);l!==-1&&o.splice(l,1)});return Array.isArray(r)&&r.push(a),a}}},E=new xH});function _H(){return{baseUrl:null,breaks:!1,extensions:null,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}}function ppe(n){gc=n}function ui(n,e){if(e){if(mpe.test(n))return n.replace(bpe,CH)}else if(ype.test(n))return n.replace(vpe,CH);return n}function RH(n){return n.replace(Dpe,(e,t)=>(t=t.toLowerCase(),t==="colon"?":":t.charAt(0)==="#"?t.charAt(1)==="x"?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}function lt(n,e){n=n.source||n,e=e||"";let t={replace:(i,r)=>(r=r.source||r,r=r.replace(xpe,"$1"),n=n.replace(i,r),t),getRegex:()=>new RegExp(n,e)};return t}function SH(n,e,t){if(n){let i;try{i=decodeURIComponent(RH(t)).replace(Cpe,"").toLowerCase()}catch{return null}if(i.indexOf("javascript:")===0||i.indexOf("vbscript:")===0||i.indexOf("data:")===0)return null}e&&!Spe.test(t)&&(t=Ppe(e,t));try{t=encodeURI(t).replace(/%25/g,"%")}catch{return null}return t}function Ppe(n,e){nb[" "+n]||(Tpe.test(n)?nb[" "+n]=n+"/":nb[" "+n]=rb(n,"/",!0)),n=nb[" "+n];let t=n.indexOf(":")===-1;return e.substring(0,2)==="//"?t?e:n.replace(kpe,"$1")+e:e.charAt(0)==="/"?t?e:n.replace(Epe,"$1")+e:n+e}function Rr(n){let e=1,t,i;for(;e{let l=!1,u=s;for(;--u>=0&&a[u]==="\\";)l=!l;return l?"|":" |"}),i=t.split(/ \|/),r=0;if(i[0].trim()||i.shift(),i.length>0&&!i[i.length-1].trim()&&i.pop(),i.length>e)i.splice(e);else for(;i.length1;)e&1&&(t+=n),e>>=1,n+=n;return t+n}function EH(n,e,t,i){let r=e.href,o=e.title?ui(e.title):null,s=n[1].replace(/\\([\[\]])/g,"$1");if(n[0].charAt(0)!=="!"){i.state.inLink=!0;let a={type:"link",raw:t,href:r,title:o,text:s,tokens:i.inlineTokens(s,[])};return i.state.inLink=!1,a}else return{type:"image",raw:t,href:r,title:o,text:ui(s)}}function Rpe(n,e){let t=n.match(/^(\s+)(?:```)/);if(t===null)return e;let i=t[1];return e.split(` +`)}var Ne=_(()=>{"use strict"});var Tc,Gme,Lq,P,we=_(()=>{"use strict";Tc=x(q());re();oi();Ne();Gme=W()("events"),Lq=class{constructor(){this.handlers=new Map;this._recentInserts=[];this._lastChange=0;this._insertMode=!1;this._pumAlignTop=!1;this._pumVisible=!1;this._completing=!1}set completing(e){this._completing=e,this._pumVisible=e}get completing(){return this._completing}get cursor(){return this._cursor}get bufnr(){return this._bufnr}get pumvisible(){return this._pumVisible}get pumAlignTop(){return this._pumAlignTop}get insertMode(){return this._insertMode}get lastChangeTs(){return this._lastChange}race(e,t){let i=[];return new Promise(r=>{if(typeof t=="number"){let o=setTimeout(()=>{$(i),r(void 0)},t);i.push(Tc.Disposable.create(()=>{clearTimeout(o)}))}else Tc.CancellationToken.is(t)&&t.onCancellationRequested(()=>{$(i),r(void 0)},null,i);e.forEach(o=>{this.on(o,(...s)=>{$(i),r({name:o,args:s})},null,i)})})}async fire(e,t){var r;let i=this.handlers.get(e);if(e=="InsertEnter")this._insertMode=!0;else if(e=="InsertLeave")this._insertMode=!1,this._pumVisible=!1,this._recentInserts=[];else if(e=="CursorHoldI"||e=="CursorMovedI")this._bufnr=t[0],this._insertMode||(this._insertMode=!0,this.fire("InsertEnter",[t[0]]));else if(e=="CursorHold"||e=="CursorMoved")this._bufnr=t[0],this._insertMode&&(this._insertMode=!1,this.fire("InsertLeave",[t[0]]));else if(e=="MenuPopupChanged")this._pumVisible=!0,this._pumAlignTop=t[1]>t[0].row;else if(e=="InsertCharPre")this._recentInserts.push([t[1],t[0]]);else if(e=="TextChanged")this._lastChange=Date.now();else if(e=="BufEnter")this._bufnr=t[0];else if(e=="TextChangedI"||e=="TextChangedP"){let o=this._recentInserts.filter(l=>l[0]==t[0]);this._bufnr=t[0],this._recentInserts=[],this._lastChange=Date.now();let s=t[1],a=at(s.line??"",0,s.col-1);if(s.pre=a,this._cursor=Object.freeze({bufnr:t[0],lnum:s.lnum,col:s.col,insert:!0}),o.length&&a.length){let l=a.slice(-1);o.findIndex(u=>u[1]==l)!==-1&&(s.insertChar=l,process.nextTick(()=>{this.fire("TextInsert",[...t,l])}))}}if(e=="CursorMoved"||e=="CursorMovedI"){t.push(this._recentInserts.length>0);let o={bufnr:t[0],lnum:t[1][0],col:t[1][1],insert:e=="CursorMovedI"};if(this._cursor&&Xe(this._cursor,o))return;this._cursor=Object.freeze(o)}if(i)try{t.forEach(o=>{typeof o=="object"&&Object.freeze(o)}),await Promise.all(i.slice().map(o=>o(t)))}catch(o){if(o instanceof Error&&((r=o.message)==null?void 0:r.includes("transport disconnected")))return;Gme.error(`Error on event: ${e}`,o instanceof Error?o.stack:o)}}on(e,t,i,r){if(Array.isArray(e)){let o=r||[];for(let s of e)this.on(s,t,i,o);return Tc.Disposable.create(()=>{$(o)})}else{let o=this.handlers.get(e)||[],s=l=>new Promise((u,c)=>{try{Promise.resolve(t.apply(i??null,l)).then(()=>{u(void 0)},h=>{c(h)})}catch(h){c(h)}});o.push(s),this.handlers.set(e,o);let a=Tc.Disposable.create(()=>{let l=o.indexOf(s);l!==-1&&o.splice(l,1)});return Array.isArray(r)&&r.push(a),a}}},P=new Lq});function Nq(){return{baseUrl:null,breaks:!1,extensions:null,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}}function Kme(n){kc=n}function pi(n,e){if(e){if(Qme.test(n))return n.replace(zme,Fq)}else if(Vme.test(n))return n.replace(eye,Fq);return n}function Bq(n){return n.replace(iye,(e,t)=>(t=t.toLowerCase(),t==="colon"?":":t.charAt(0)==="#"?t.charAt(1)==="x"?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}function ft(n,e){n=n.source||n,e=e||"";let t={replace:(i,r)=>(r=r.source||r,r=r.replace(nye,"$1"),n=n.replace(i,r),t),getRegex:()=>new RegExp(n,e)};return t}function Iq(n,e,t){if(n){let i;try{i=decodeURIComponent(Bq(t)).replace(rye,"").toLowerCase()}catch{return null}if(i.indexOf("javascript:")===0||i.indexOf("vbscript:")===0||i.indexOf("data:")===0)return null}e&&!oye.test(t)&&(t=uye(e,t));try{t=encodeURI(t).replace(/%25/g,"%")}catch{return null}return t}function uye(n,e){Ry[" "+n]||(sye.test(n)?Ry[" "+n]=n+"/":Ry[" "+n]=Ly(n,"/",!0)),n=Ry[" "+n];let t=n.indexOf(":")===-1;return e.substring(0,2)==="//"?t?e:n.replace(aye,"$1")+e:e.charAt(0)==="/"?t?e:n.replace(lye,"$1")+e:n+e}function Wr(n){let e=1,t,i;for(;e{let l=!1,u=s;for(;--u>=0&&a[u]==="\\";)l=!l;return l?"|":" |"}),i=t.split(/ \|/),r=0;if(i[0].trim()||i.shift(),i.length>0&&!i[i.length-1].trim()&&i.pop(),i.length>e)i.splice(e);else for(;i.length1;)e&1&&(t+=n),e>>=1,n+=n;return t+n}function Mq(n,e,t,i){let r=e.href,o=e.title?pi(e.title):null,s=n[1].replace(/\\([\[\]])/g,"$1");if(n[0].charAt(0)!=="!"){i.state.inLink=!0;let a={type:"link",raw:t,href:r,title:o,text:s,tokens:i.inlineTokens(s,[])};return i.state.inLink=!1,a}else return{type:"image",raw:t,href:r,title:o,text:pi(s)}}function hye(n,e){let t=n.match(/^(\s+)(?:```)/);if(t===null)return e;let i=t[1];return e.split(` `).map(r=>{let o=r.match(/^\s+/);if(o===null)return r;let[s]=o;return s.length>=i.length?r.slice(i.length):r}).join(` -`)}function Lpe(n){return n.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201C").replace(/"/g,"\u201D").replace(/\.{3}/g,"\u2026")}function PH(n){let e="",t,i,r=n.length;for(t=0;t.5&&(i="x"+i.toString(16)),e+="&#"+i+";";return e}function fe(n,e,t){if(typeof n>"u"||n===null)throw new Error("marked(): input parameter is undefined or null");if(typeof n!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected");if(typeof e=="function"&&(t=e,e=null),e=Rr({},fe.defaults,e||{}),LH(e),t){let i=e.highlight,r;try{r=to.lex(n,e)}catch(a){return t(a)}let o=function(a){let l;if(!a)try{e.walkTokens&&fe.walkTokens(r,e.walkTokens),l=io.parse(r,e)}catch(u){a=u}return e.highlight=i,a?t(a):t(null,l)};if(!i||i.length<3||(delete e.highlight,!r.length))return o();let s=0;fe.walkTokens(r,function(a){a.type==="code"&&(s++,setTimeout(()=>{i(a.text,a.lang,function(l,u){if(l)return o(l);u!=null&&u!==a.text&&(a.text=u,a.escaped=!0),s--,s===0&&o()})},0))}),s===0&&o();return}try{let i=to.lex(n,e);return e.walkTokens&&fe.walkTokens(i,e.walkTokens),io.parse(i,e)}catch(i){if(i.message+=` -Please report this to https://github.com/markedjs/marked.`,e.silent)return"

An error occurred:

"+ui(i.message+"",!0)+"
";throw i}}var gc,mpe,bpe,ype,vpe,wpe,CH,Dpe,xpe,Cpe,Spe,nb,Tpe,kpe,Epe,ob,sb,he,ee,to,ab,j0,A0,io,W_e,Z_e,J_e,$_e,X_e,U_e,G_e,FH=_(()=>{gc=_H();mpe=/[&<>"']/,bpe=/[&<>"']/g,ype=/[<>"']|&(?!#?\w+;)/,vpe=/[<>"']|&(?!#?\w+;)/g,wpe={"&":"&","<":"<",">":">",'"':""","'":"'"},CH=n=>wpe[n];Dpe=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;xpe=/(^|[^\[])\^/g;Cpe=/[^\w:]/g,Spe=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;nb={},Tpe=/^[^:]+:\/*[^/]*$/,kpe=/^([^:]+:)[\s\S]*$/,Epe=/^([^:]+:\/*[^/]*)[\s\S]*$/;ob={exec:function(){}};sb=class{constructor(e){this.options=e||gc}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let i=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?i:rb(i,` -`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let i=t[0],r=Rpe(i,t[3]||"");return{type:"code",raw:i,lang:t[2]?t[2].trim():t[2],text:r}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let i=t[2].trim();if(/#$/.test(i)){let o=rb(i,"#");(this.options.pedantic||!o||/ $/.test(o))&&(i=o.trim())}let r={type:"heading",raw:t[0],depth:t[1].length,text:i,tokens:[]};return this.lexer.inline(r.text,r.tokens),r}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let i=t[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:t[0],tokens:this.lexer.blockTokens(i,[]),text:i}}}list(e){let t=this.rules.block.list.exec(e);if(t){let i,r,o,s,a,l,u,c,h,d,g,f,p=t[1].trim(),b=p.length>1,v={type:"list",raw:"",ordered:b,start:b?+p.slice(0,-1):"",loose:!1,items:[]};p=b?`\\d{1,9}\\${p.slice(-1)}`:`\\${p}`,this.options.pedantic&&(p=b?p:"[*+-]");let w=new RegExp(`^( {0,3}${p})((?: [^\\n]*)?(?:\\n|$))`);for(;e&&(f=!1,!(!(t=w.exec(e))||this.rules.block.hr.test(e)));){if(i=t[0],e=e.substring(i.length),c=t[2].split(` +`)}function dye(n){return n.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201C").replace(/"/g,"\u201D").replace(/\.{3}/g,"\u2026")}function Oq(n){let e="",t,i,r=n.length;for(t=0;t.5&&(i="x"+i.toString(16)),e+="&#"+i+";";return e}function Ce(n,e,t){if(typeof n>"u"||n===null)throw new Error("marked(): input parameter is undefined or null");if(typeof n!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected");if(typeof e=="function"&&(t=e,e=null),e=Wr({},Ce.defaults,e||{}),Hq(e),t){let i=e.highlight,r;try{r=vo.lex(n,e)}catch(a){return t(a)}let o=function(a){let l;if(!a)try{e.walkTokens&&Ce.walkTokens(r,e.walkTokens),l=wo.parse(r,e)}catch(u){a=u}return e.highlight=i,a?t(a):t(null,l)};if(!i||i.length<3||(delete e.highlight,!r.length))return o();let s=0;Ce.walkTokens(r,function(a){a.type==="code"&&(s++,setTimeout(()=>{i(a.text,a.lang,function(l,u){if(l)return o(l);u!=null&&u!==a.text&&(a.text=u,a.escaped=!0),s--,s===0&&o()})},0))}),s===0&&o();return}try{let i=vo.lex(n,e);return e.walkTokens&&Ce.walkTokens(i,e.walkTokens),wo.parse(i,e)}catch(i){if(i.message+=` +Please report this to https://github.com/markedjs/marked.`,e.silent)return"

An error occurred:

"+pi(i.message+"",!0)+"
";throw i}}var kc,Qme,zme,Vme,eye,tye,Fq,iye,nye,rye,oye,Ry,sye,aye,lye,Fy,Iy,me,oe,vo,jy,RT,LT,wo,_Le,RLe,LLe,FLe,ILe,jLe,ALe,qq=_(()=>{kc=Nq();Qme=/[&<>"']/,zme=/[&<>"']/g,Vme=/[<>"']|&(?!#?\w+;)/,eye=/[<>"']|&(?!#?\w+;)/g,tye={"&":"&","<":"<",">":">",'"':""","'":"'"},Fq=n=>tye[n];iye=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;nye=/(^|[^\[])\^/g;rye=/[^\w:]/g,oye=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;Ry={},sye=/^[^:]+:\/*[^/]*$/,aye=/^([^:]+:)[\s\S]*$/,lye=/^([^:]+:\/*[^/]*)[\s\S]*$/;Fy={exec:function(){}};Iy=class{constructor(e){this.options=e||kc}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let i=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?i:Ly(i,` +`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let i=t[0],r=hye(i,t[3]||"");return{type:"code",raw:i,lang:t[2]?t[2].trim():t[2],text:r}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let i=t[2].trim();if(/#$/.test(i)){let o=Ly(i,"#");(this.options.pedantic||!o||/ $/.test(o))&&(i=o.trim())}let r={type:"heading",raw:t[0],depth:t[1].length,text:i,tokens:[]};return this.lexer.inline(r.text,r.tokens),r}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let i=t[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:t[0],tokens:this.lexer.blockTokens(i,[]),text:i}}}list(e){let t=this.rules.block.list.exec(e);if(t){let i,r,o,s,a,l,u,c,h,d,g,p,f=t[1].trim(),m=f.length>1,b={type:"list",raw:"",ordered:m,start:m?+f.slice(0,-1):"",loose:!1,items:[]};f=m?`\\d{1,9}\\${f.slice(-1)}`:`\\${f}`,this.options.pedantic&&(f=m?f:"[*+-]");let w=new RegExp(`^( {0,3}${f})((?: [^\\n]*)?(?:\\n|$))`);for(;e&&(p=!1,!(!(t=w.exec(e))||this.rules.block.hr.test(e)));){if(i=t[0],e=e.substring(i.length),c=t[2].split(` `,1)[0],h=e.split(` `,1)[0],this.options.pedantic?(s=2,g=c.trimLeft()):(s=t[2].search(/[^ ]/),s=s>4?1:s,g=c.slice(s),s+=t[1].length),l=!1,!c&&/^ *$/.test(h)&&(i+=h+` -`,e=e.substring(h.length+1),f=!0),!f){let S=new RegExp(`^ {0,${Math.min(3,s-1)}}(?:[*+-]|\\d{1,9}[.)])`);for(;e&&(d=e.split(` -`,1)[0],c=d,this.options.pedantic&&(c=c.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!S.test(c));){if(c.search(/[^ ]/)>=s||!c.trim())g+=` +`,e=e.substring(h.length+1),p=!0),!p){let T=new RegExp(`^ {0,${Math.min(3,s-1)}}(?:[*+-]|\\d{1,9}[.)])`);for(;e&&(d=e.split(` +`,1)[0],c=d,this.options.pedantic&&(c=c.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!T.test(c));){if(c.search(/[^ ]/)>=s||!c.trim())g+=` `+c.slice(s);else if(!l)g+=` `+c;else break;!l&&!c.trim()&&(l=!0),i+=d+` -`,e=e.substring(d.length+1)}}v.loose||(u?v.loose=!0:/\n *\n *$/.test(i)&&(u=!0)),this.options.gfm&&(r=/^\[[ xX]\] /.exec(g),r&&(o=r[0]!=="[ ] ",g=g.replace(/^\[[ xX]\] +/,""))),v.items.push({type:"list_item",raw:i,task:!!r,checked:o,loose:!1,text:g}),v.raw+=i}v.items[v.items.length-1].raw=i.trimRight(),v.items[v.items.length-1].text=g.trimRight(),v.raw=v.raw.trimRight();let D=v.items.length;for(a=0;aL.type==="space"),F=S.every(L=>{let j=L.raw.split(""),W=0;for(let B of j)if(B===` -`&&(W+=1),W>1)return!0;return!1});!v.loose&&S.length&&F&&(v.loose=!0,v.items[a].loose=!0)}return v}}html(e){let t=this.rules.block.html.exec(e);if(t){let i={type:"html",raw:t[0],pre:!this.options.sanitizer&&(t[1]==="pre"||t[1]==="script"||t[1]==="style"),text:t[0]};return this.options.sanitize&&(i.type="paragraph",i.text=this.options.sanitizer?this.options.sanitizer(t[0]):ui(t[0]),i.tokens=[],this.lexer.inline(i.text,i.tokens)),i}}def(e){let t=this.rules.block.def.exec(e);if(t){t[3]&&(t[3]=t[3].substring(1,t[3].length-1));let i=t[1].toLowerCase().replace(/\s+/g," ");return{type:"def",tag:i,raw:t[0],href:t[2],title:t[3]}}}table(e){let t=this.rules.block.table.exec(e);if(t){let i={type:"table",header:TH(t[1]).map(r=>({text:r})),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split(` -`):[]};if(i.header.length===i.align.length){i.raw=t[0];let r=i.align.length,o,s,a,l;for(o=0;o({text:u}));for(r=i.header.length,s=0;s/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):ui(t[0]):t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let i=t[2].trim();if(!this.options.pedantic&&/^$/.test(i))return;let s=rb(i.slice(0,-1),"\\");if((i.length-s.length)%2===0)return}else{let s=_pe(t[2],"()");if(s>-1){let l=(t[0].indexOf("!")===0?5:4)+t[1].length+s;t[2]=t[2].substring(0,s),t[0]=t[0].substring(0,l).trim(),t[3]=""}}let r=t[2],o="";if(this.options.pedantic){let s=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r);s&&(r=s[1],o=s[3])}else o=t[3]?t[3].slice(1,-1):"";return r=r.trim(),/^$/.test(i)?r=r.slice(1):r=r.slice(1,-1)),EH(t,{href:r&&r.replace(this.rules.inline._escapes,"$1"),title:o&&o.replace(this.rules.inline._escapes,"$1")},t[0],this.lexer)}}reflink(e,t){let i;if((i=this.rules.inline.reflink.exec(e))||(i=this.rules.inline.nolink.exec(e))){let r=(i[2]||i[1]).replace(/\s+/g," ");if(r=t[r.toLowerCase()],!r||!r.href){let o=i[0].charAt(0);return{type:"text",raw:o,text:o}}return EH(i,r,i[0],this.lexer)}}emStrong(e,t,i=""){let r=this.rules.inline.emStrong.lDelim.exec(e);if(!r||r[3]&&i.match(/[\p{L}\p{N}]/u))return;let o=r[1]||r[2]||"";if(!o||o&&(i===""||this.rules.inline.punctuation.exec(i))){let s=r[0].length-1,a,l,u=s,c=0,h=r[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(h.lastIndex=0,t=t.slice(-1*e.length+s);(r=h.exec(t))!=null;){if(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!a)continue;if(l=a.length,r[3]||r[4]){u+=l;continue}else if((r[5]||r[6])&&s%3&&!((s+l)%3)){c+=l;continue}if(u-=l,u>0)continue;if(l=Math.min(l,l+u+c),Math.min(s,l)%2){let g=e.slice(1,s+r.index+l);return{type:"em",raw:e.slice(0,s+r.index+l+1),text:g,tokens:this.lexer.inlineTokens(g,[])}}let d=e.slice(2,s+r.index+l-1);return{type:"strong",raw:e.slice(0,s+r.index+l+1),text:d,tokens:this.lexer.inlineTokens(d,[])}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let i=t[2].replace(/\n/g," "),r=/[^ ]/.test(i),o=/^ /.test(i)&&/ $/.test(i);return r&&o&&(i=i.substring(1,i.length-1)),i=ui(i,!0),{type:"codespan",raw:t[0],text:i}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2],[])}}autolink(e,t){let i=this.rules.inline.autolink.exec(e);if(i){let r,o;return i[2]==="@"?(r=ui(this.options.mangle?t(i[1]):i[1]),o="mailto:"+r):(r=ui(i[1]),o=r),{type:"link",raw:i[0],text:r,href:o,tokens:[{type:"text",raw:r,text:r}]}}}url(e,t){let i;if(i=this.rules.inline.url.exec(e)){let r,o;if(i[2]==="@")r=ui(this.options.mangle?t(i[0]):i[0]),o="mailto:"+r;else{let s;do s=i[0],i[0]=this.rules.inline._backpedal.exec(i[0])[0];while(s!==i[0]);r=ui(i[0]),i[1]==="www."?o="http://"+r:o=r}return{type:"link",raw:i[0],text:r,href:o,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(e,t){let i=this.rules.inline.text.exec(e);if(i){let r;return this.lexer.state.inRawBlock?r=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):ui(i[0]):i[0]:r=ui(this.options.smartypants?t(i[0]):i[0]),{type:"text",raw:i[0],text:r}}}},he={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\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})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)( [^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:ob,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};he._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/;he._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;he.def=lt(he.def).replace("label",he._label).replace("title",he._title).getRegex();he.bullet=/(?:[*+-]|\d{1,9}[.)])/;he.listItemStart=lt(/^( *)(bull) */).replace("bull",he.bullet).getRegex();he.list=lt(he.list).replace(/bull/g,he.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+he.def.source+")").getRegex();he._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";he._comment=/|$)/;he.html=lt(he.html,"i").replace("comment",he._comment).replace("tag",he._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();he.paragraph=lt(he._paragraph).replace("hr",he.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",he._tag).getRegex();he.blockquote=lt(he.blockquote).replace("paragraph",he.paragraph).getRegex();he.normal=Rr({},he);he.gfm=Rr({},he.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"});he.gfm.table=lt(he.gfm.table).replace("hr",he.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",")|<(?:script|pre|style|textarea|!--)").replace("tag",he._tag).getRegex();he.gfm.paragraph=lt(he._paragraph).replace("hr",he.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",he.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",he._tag).getRegex();he.pedantic=Rr({},he.normal,{html:lt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",he._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:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:ob,paragraph:lt(he.normal._paragraph).replace("hr",he.hr).replace("heading",` *#{1,6} *[^ -]`).replace("lheading",he.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});ee={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:ob,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:ob,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~";ee.punctuation=lt(ee.punctuation).replace(/punctuation/g,ee._punctuation).getRegex();ee.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g;ee.escapedEmSt=/\\\*|\\_/g;ee._comment=lt(he._comment).replace("(?:-->|$)","-->").getRegex();ee.emStrong.lDelim=lt(ee.emStrong.lDelim).replace(/punct/g,ee._punctuation).getRegex();ee.emStrong.rDelimAst=lt(ee.emStrong.rDelimAst,"g").replace(/punct/g,ee._punctuation).getRegex();ee.emStrong.rDelimUnd=lt(ee.emStrong.rDelimUnd,"g").replace(/punct/g,ee._punctuation).getRegex();ee._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g;ee._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;ee._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])?)+(?![-_])/;ee.autolink=lt(ee.autolink).replace("scheme",ee._scheme).replace("email",ee._email).getRegex();ee._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;ee.tag=lt(ee.tag).replace("comment",ee._comment).replace("attribute",ee._attribute).getRegex();ee._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;ee._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/;ee._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;ee.link=lt(ee.link).replace("label",ee._label).replace("href",ee._href).replace("title",ee._title).getRegex();ee.reflink=lt(ee.reflink).replace("label",ee._label).replace("ref",he._label).getRegex();ee.nolink=lt(ee.nolink).replace("ref",he._label).getRegex();ee.reflinkSearch=lt(ee.reflinkSearch,"g").replace("reflink",ee.reflink).replace("nolink",ee.nolink).getRegex();ee.normal=Rr({},ee);ee.pedantic=Rr({},ee.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:lt(/^!?\[(label)\]\((.*?)\)/).replace("label",ee._label).getRegex(),reflink:lt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ee._label).getRegex()});ee.gfm=Rr({},ee.normal,{escape:lt(ee.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~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\N.type==="space"),R=T.every(N=>{let H=N.raw.split(""),X=0;for(let B of H)if(B===` +`&&(X+=1),X>1)return!0;return!1});!b.loose&&T.length&&R&&(b.loose=!0,b.items[a].loose=!0)}return b}}html(e){let t=this.rules.block.html.exec(e);if(t){let i={type:"html",raw:t[0],pre:!this.options.sanitizer&&(t[1]==="pre"||t[1]==="script"||t[1]==="style"),text:t[0]};return this.options.sanitize&&(i.type="paragraph",i.text=this.options.sanitizer?this.options.sanitizer(t[0]):pi(t[0]),i.tokens=[],this.lexer.inline(i.text,i.tokens)),i}}def(e){let t=this.rules.block.def.exec(e);if(t){t[3]&&(t[3]=t[3].substring(1,t[3].length-1));let i=t[1].toLowerCase().replace(/\s+/g," ");return{type:"def",tag:i,raw:t[0],href:t[2],title:t[3]}}}table(e){let t=this.rules.block.table.exec(e);if(t){let i={type:"table",header:jq(t[1]).map(r=>({text:r})),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split(` +`):[]};if(i.header.length===i.align.length){i.raw=t[0];let r=i.align.length,o,s,a,l;for(o=0;o({text:u}));for(r=i.header.length,s=0;s/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):pi(t[0]):t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let i=t[2].trim();if(!this.options.pedantic&&/^$/.test(i))return;let s=Ly(i.slice(0,-1),"\\");if((i.length-s.length)%2===0)return}else{let s=cye(t[2],"()");if(s>-1){let l=(t[0].indexOf("!")===0?5:4)+t[1].length+s;t[2]=t[2].substring(0,s),t[0]=t[0].substring(0,l).trim(),t[3]=""}}let r=t[2],o="";if(this.options.pedantic){let s=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r);s&&(r=s[1],o=s[3])}else o=t[3]?t[3].slice(1,-1):"";return r=r.trim(),/^$/.test(i)?r=r.slice(1):r=r.slice(1,-1)),Mq(t,{href:r&&r.replace(this.rules.inline._escapes,"$1"),title:o&&o.replace(this.rules.inline._escapes,"$1")},t[0],this.lexer)}}reflink(e,t){let i;if((i=this.rules.inline.reflink.exec(e))||(i=this.rules.inline.nolink.exec(e))){let r=(i[2]||i[1]).replace(/\s+/g," ");if(r=t[r.toLowerCase()],!r||!r.href){let o=i[0].charAt(0);return{type:"text",raw:o,text:o}}return Mq(i,r,i[0],this.lexer)}}emStrong(e,t,i=""){let r=this.rules.inline.emStrong.lDelim.exec(e);if(!r||r[3]&&i.match(/[\p{L}\p{N}]/u))return;let o=r[1]||r[2]||"";if(!o||o&&(i===""||this.rules.inline.punctuation.exec(i))){let s=r[0].length-1,a,l,u=s,c=0,h=r[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(h.lastIndex=0,t=t.slice(-1*e.length+s);(r=h.exec(t))!=null;){if(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!a)continue;if(l=a.length,r[3]||r[4]){u+=l;continue}else if((r[5]||r[6])&&s%3&&!((s+l)%3)){c+=l;continue}if(u-=l,u>0)continue;if(l=Math.min(l,l+u+c),Math.min(s,l)%2){let g=e.slice(1,s+r.index+l);return{type:"em",raw:e.slice(0,s+r.index+l+1),text:g,tokens:this.lexer.inlineTokens(g,[])}}let d=e.slice(2,s+r.index+l-1);return{type:"strong",raw:e.slice(0,s+r.index+l+1),text:d,tokens:this.lexer.inlineTokens(d,[])}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let i=t[2].replace(/\n/g," "),r=/[^ ]/.test(i),o=/^ /.test(i)&&/ $/.test(i);return r&&o&&(i=i.substring(1,i.length-1)),i=pi(i,!0),{type:"codespan",raw:t[0],text:i}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2],[])}}autolink(e,t){let i=this.rules.inline.autolink.exec(e);if(i){let r,o;return i[2]==="@"?(r=pi(this.options.mangle?t(i[1]):i[1]),o="mailto:"+r):(r=pi(i[1]),o=r),{type:"link",raw:i[0],text:r,href:o,tokens:[{type:"text",raw:r,text:r}]}}}url(e,t){let i;if(i=this.rules.inline.url.exec(e)){let r,o;if(i[2]==="@")r=pi(this.options.mangle?t(i[0]):i[0]),o="mailto:"+r;else{let s;do s=i[0],i[0]=this.rules.inline._backpedal.exec(i[0])[0];while(s!==i[0]);r=pi(i[0]),i[1]==="www."?o="http://"+r:o=r}return{type:"link",raw:i[0],text:r,href:o,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(e,t){let i=this.rules.inline.text.exec(e);if(i){let r;return this.lexer.state.inRawBlock?r=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):pi(i[0]):i[0]:r=pi(this.options.smartypants?t(i[0]):i[0]),{type:"text",raw:i[0],text:r}}}},me={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\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})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)( [^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:Fy,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};me._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/;me._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;me.def=ft(me.def).replace("label",me._label).replace("title",me._title).getRegex();me.bullet=/(?:[*+-]|\d{1,9}[.)])/;me.listItemStart=ft(/^( *)(bull) */).replace("bull",me.bullet).getRegex();me.list=ft(me.list).replace(/bull/g,me.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+me.def.source+")").getRegex();me._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";me._comment=/|$)/;me.html=ft(me.html,"i").replace("comment",me._comment).replace("tag",me._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();me.paragraph=ft(me._paragraph).replace("hr",me.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",me._tag).getRegex();me.blockquote=ft(me.blockquote).replace("paragraph",me.paragraph).getRegex();me.normal=Wr({},me);me.gfm=Wr({},me.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"});me.gfm.table=ft(me.gfm.table).replace("hr",me.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",")|<(?:script|pre|style|textarea|!--)").replace("tag",me._tag).getRegex();me.gfm.paragraph=ft(me._paragraph).replace("hr",me.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",me.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",me._tag).getRegex();me.pedantic=Wr({},me.normal,{html:ft(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",me._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:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Fy,paragraph:ft(me.normal._paragraph).replace("hr",me.hr).replace("heading",` *#{1,6} *[^ +]`).replace("lheading",me.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});oe={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Fy,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Fy,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~";oe.punctuation=ft(oe.punctuation).replace(/punctuation/g,oe._punctuation).getRegex();oe.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g;oe.escapedEmSt=/\\\*|\\_/g;oe._comment=ft(me._comment).replace("(?:-->|$)","-->").getRegex();oe.emStrong.lDelim=ft(oe.emStrong.lDelim).replace(/punct/g,oe._punctuation).getRegex();oe.emStrong.rDelimAst=ft(oe.emStrong.rDelimAst,"g").replace(/punct/g,oe._punctuation).getRegex();oe.emStrong.rDelimUnd=ft(oe.emStrong.rDelimUnd,"g").replace(/punct/g,oe._punctuation).getRegex();oe._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g;oe._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;oe._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])?)+(?![-_])/;oe.autolink=ft(oe.autolink).replace("scheme",oe._scheme).replace("email",oe._email).getRegex();oe._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;oe.tag=ft(oe.tag).replace("comment",oe._comment).replace("attribute",oe._attribute).getRegex();oe._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;oe._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/;oe._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;oe.link=ft(oe.link).replace("label",oe._label).replace("href",oe._href).replace("title",oe._title).getRegex();oe.reflink=ft(oe.reflink).replace("label",oe._label).replace("ref",me._label).getRegex();oe.nolink=ft(oe.nolink).replace("ref",me._label).getRegex();oe.reflinkSearch=ft(oe.reflinkSearch,"g").replace("reflink",oe.reflink).replace("nolink",oe.nolink).getRegex();oe.normal=Wr({},oe);oe.pedantic=Wr({},oe.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:ft(/^!?\[(label)\]\((.*?)\)/).replace("label",oe._label).getRegex(),reflink:ft(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",oe._label).getRegex()});oe.gfm=Wr({},oe.normal,{escape:ft(oe.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~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\(i=a.call({lexer:this},e,t))?(e=e.substring(i.raw.length),t.push(i),!0):!1))){if(i=this.tokenizer.space(e)){e=e.substring(i.raw.length),i.raw.length===1&&t.length>0?t[t.length-1].raw+=` `:t.push(i);continue}if(i=this.tokenizer.code(e)){e=e.substring(i.raw.length),r=t[t.length-1],r&&(r.type==="paragraph"||r.type==="text")?(r.raw+=` `+i.raw,r.text+=` @@ -94,9 +94,9 @@ Please report this to https://github.com/markedjs/marked.`,e.silent)return"

An `+i.raw,r.text+=` `+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(i),s=o.length!==e.length,e=e.substring(i.raw.length);continue}if(i=this.tokenizer.text(e)){e=e.substring(i.raw.length),r=t[t.length-1],r&&r.type==="text"?(r.raw+=` `+i.raw,r.text+=` -`+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(i);continue}if(e){let a="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(a);break}else throw new Error(a)}}return this.state.top=!0,t}inline(e,t){this.inlineQueue.push({src:e,tokens:t})}inlineTokens(e,t=[]){let i,r,o,s=e,a,l,u;if(this.tokens.links){let c=Object.keys(this.tokens.links);if(c.length>0)for(;(a=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)c.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,a.index)+"["+kH("a",a[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(a=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)s=s.slice(0,a.index)+"["+kH("a",a[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(a=this.tokenizer.rules.inline.escapedEmSt.exec(s))!=null;)s=s.slice(0,a.index)+"++"+s.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(l||(u=""),l=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(c=>(i=c.call({lexer:this},e,t))?(e=e.substring(i.raw.length),t.push(i),!0):!1))){if(i=this.tokenizer.escape(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.tag(e)){e=e.substring(i.raw.length),r=t[t.length-1],r&&i.type==="text"&&r.type==="text"?(r.raw+=i.raw,r.text+=i.text):t.push(i);continue}if(i=this.tokenizer.link(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(i.raw.length),r=t[t.length-1],r&&i.type==="text"&&r.type==="text"?(r.raw+=i.raw,r.text+=i.text):t.push(i);continue}if(i=this.tokenizer.emStrong(e,s,u)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.codespan(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.br(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.del(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.autolink(e,PH)){e=e.substring(i.raw.length),t.push(i);continue}if(!this.state.inLink&&(i=this.tokenizer.url(e,PH))){e=e.substring(i.raw.length),t.push(i);continue}if(o=e,this.options.extensions&&this.options.extensions.startInline){let c=1/0,h=e.slice(1),d;this.options.extensions.startInline.forEach(function(g){d=g.call({lexer:this},h),typeof d=="number"&&d>=0&&(c=Math.min(c,d))}),c<1/0&&c>=0&&(o=e.substring(0,c+1))}if(i=this.tokenizer.inlineText(o,Lpe)){e=e.substring(i.raw.length),i.raw.slice(-1)!=="_"&&(u=i.raw.slice(-1)),l=!0,r=t[t.length-1],r&&r.type==="text"?(r.raw+=i.raw,r.text+=i.text):t.push(i);continue}if(e){let c="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return t}},ab=class{constructor(e){this.options=e||gc}code(e,t,i){let r=(t||"").match(/\S*/)[0];if(this.options.highlight){let o=this.options.highlight(e,r);o!=null&&o!==e&&(i=!0,e=o)}return e=e.replace(/\n$/,"")+` -`,r?'

'+(i?e:ui(e,!0))+`
-`:"
"+(i?e:ui(e,!0))+`
+`+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(i);continue}if(e){let a="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(a);break}else throw new Error(a)}}return this.state.top=!0,t}inline(e,t){this.inlineQueue.push({src:e,tokens:t})}inlineTokens(e,t=[]){let i,r,o,s=e,a,l,u;if(this.tokens.links){let c=Object.keys(this.tokens.links);if(c.length>0)for(;(a=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)c.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,a.index)+"["+Aq("a",a[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(a=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)s=s.slice(0,a.index)+"["+Aq("a",a[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(a=this.tokenizer.rules.inline.escapedEmSt.exec(s))!=null;)s=s.slice(0,a.index)+"++"+s.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(l||(u=""),l=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(c=>(i=c.call({lexer:this},e,t))?(e=e.substring(i.raw.length),t.push(i),!0):!1))){if(i=this.tokenizer.escape(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.tag(e)){e=e.substring(i.raw.length),r=t[t.length-1],r&&i.type==="text"&&r.type==="text"?(r.raw+=i.raw,r.text+=i.text):t.push(i);continue}if(i=this.tokenizer.link(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(i.raw.length),r=t[t.length-1],r&&i.type==="text"&&r.type==="text"?(r.raw+=i.raw,r.text+=i.text):t.push(i);continue}if(i=this.tokenizer.emStrong(e,s,u)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.codespan(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.br(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.del(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.autolink(e,Oq)){e=e.substring(i.raw.length),t.push(i);continue}if(!this.state.inLink&&(i=this.tokenizer.url(e,Oq))){e=e.substring(i.raw.length),t.push(i);continue}if(o=e,this.options.extensions&&this.options.extensions.startInline){let c=1/0,h=e.slice(1),d;this.options.extensions.startInline.forEach(function(g){d=g.call({lexer:this},h),typeof d=="number"&&d>=0&&(c=Math.min(c,d))}),c<1/0&&c>=0&&(o=e.substring(0,c+1))}if(i=this.tokenizer.inlineText(o,dye)){e=e.substring(i.raw.length),i.raw.slice(-1)!=="_"&&(u=i.raw.slice(-1)),l=!0,r=t[t.length-1],r&&r.type==="text"?(r.raw+=i.raw,r.text+=i.text):t.push(i);continue}if(e){let c="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return t}},jy=class{constructor(e){this.options=e||kc}code(e,t,i){let r=(t||"").match(/\S*/)[0];if(this.options.highlight){let o=this.options.highlight(e,r);o!=null&&o!==e&&(i=!0,e=o)}return e=e.replace(/\n$/,"")+` +`,r?'
'+(i?e:pi(e,!0))+`
+`:"
"+(i?e:pi(e,!0))+`
`}blockquote(e){return`
`+e+`
`}html(e){return e}heading(e,t,i,r){return this.options.headerIds?"'+e+" @@ -114,192 +114,194 @@ Please report this to https://github.com/markedjs/marked.`,e.silent)return"

An `}tablerow(e){return` `+e+` `}tablecell(e,t){let i=t.header?"th":"td";return(t.align?"<"+i+' align="'+t.align+'">':"<"+i+">")+e+" -`}strong(e){return""+e+""}em(e){return""+e+""}codespan(e){return""+e+""}br(){return this.options.xhtml?"
":"
"}del(e){return""+e+""}link(e,t,i){if(e=SH(this.options.sanitize,this.options.baseUrl,e),e===null)return i;let r='",r}image(e,t,i){if(e=SH(this.options.sanitize,this.options.baseUrl,e),e===null)return i;let r=''+i+'":">",r}text(e){return e}},j0=class{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,i){return""+i}image(e,t,i){return""+i}br(){return""}},A0=class{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,t){let i=e,r=0;if(this.seen.hasOwnProperty(i)){r=this.seen[e];do r++,i=e+"-"+r;while(this.seen.hasOwnProperty(i))}return t||(this.seen[e]=r,this.seen[i]=0),i}slug(e,t={}){let i=this.serialize(e);return this.getNextSafeSlug(i,t.dryrun)}},io=class{constructor(e){this.options=e||gc,this.options.renderer=this.options.renderer||new ab,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new j0,this.slugger=new A0}static parse(e,t){return new io(t).parse(e)}static parseInline(e,t){return new io(t).parseInline(e)}parse(e,t=!0){let i="",r,o,s,a,l,u,c,h,d,g,f,p,b,v,w,D,S,F,L,j=e.length;for(r=0;r0&&w.tokens[0].type==="paragraph"?(w.tokens[0].text=F+" "+w.tokens[0].text,w.tokens[0].tokens&&w.tokens[0].tokens.length>0&&w.tokens[0].tokens[0].type==="text"&&(w.tokens[0].tokens[0].text=F+" "+w.tokens[0].tokens[0].text)):w.tokens.unshift({type:"text",text:F}):v+=F),v+=this.parse(w.tokens,b),d+=this.renderer.listitem(v,S,D);i+=this.renderer.list(d,f,p);continue}case"html":{i+=this.renderer.html(g.text);continue}case"paragraph":{i+=this.renderer.paragraph(this.parseInline(g.tokens));continue}case"text":{for(d=g.tokens?this.parseInline(g.tokens):g.text;r+1{if(r.extensions&&(i=!0,r.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if(o.renderer){let s=t.renderers?t.renderers[o.name]:null;s?t.renderers[o.name]=function(...a){let l=o.renderer.apply(this,a);return l===!1&&(l=s.apply(this,a)),l}:t.renderers[o.name]=o.renderer}if(o.tokenizer){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");t[o.level]?t[o.level].unshift(o.tokenizer):t[o.level]=[o.tokenizer],o.start&&(o.level==="block"?t.startBlock?t.startBlock.push(o.start):t.startBlock=[o.start]:o.level==="inline"&&(t.startInline?t.startInline.push(o.start):t.startInline=[o.start]))}o.childTokens&&(t.childTokens[o.name]=o.childTokens)})),r.renderer){let o=fe.defaults.renderer||new ab;for(let s in r.renderer){let a=o[s];o[s]=(...l)=>{let u=r.renderer[s].apply(o,l);return u===!1&&(u=a.apply(o,l)),u}}e.renderer=o}if(r.tokenizer){let o=fe.defaults.tokenizer||new sb;for(let s in r.tokenizer){let a=o[s];o[s]=(...l)=>{let u=r.tokenizer[s].apply(o,l);return u===!1&&(u=a.apply(o,l)),u}}e.tokenizer=o}if(r.walkTokens){let o=fe.defaults.walkTokens;e.walkTokens=function(s){r.walkTokens.call(this,s),o&&o.call(this,s)}}i&&(e.extensions=t),fe.setOptions(e)})};fe.walkTokens=function(n,e){for(let t of n)switch(e.call(fe,t),t.type){case"table":{for(let i of t.header)fe.walkTokens(i.tokens,e);for(let i of t.rows)for(let r of i)fe.walkTokens(r.tokens,e);break}case"list":{fe.walkTokens(t.items,e);break}default:fe.defaults.extensions&&fe.defaults.extensions.childTokens&&fe.defaults.extensions.childTokens[t.type]?fe.defaults.extensions.childTokens[t.type].forEach(function(i){fe.walkTokens(t[i],e)}):t.tokens&&fe.walkTokens(t.tokens,e)}};fe.parseInline=function(n,e){if(typeof n>"u"||n===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof n!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected");e=Rr({},fe.defaults,e||{}),LH(e);try{let t=to.lexInline(n,e);return e.walkTokens&&fe.walkTokens(t,e.walkTokens),io.parseInline(t,e)}catch(t){if(t.message+=` -Please report this to https://github.com/markedjs/marked.`,e.silent)return"

An error occurred:

"+ui(t.message+"",!0)+"
";throw t}};fe.Parser=io;fe.parser=io.parse;fe.Renderer=ab;fe.TextRenderer=j0;fe.Lexer=to;fe.lexer=to.lex;fe.Tokenizer=sb;fe.Slugger=A0;fe.parse=fe;W_e=fe.options,Z_e=fe.setOptions,J_e=fe.use,$_e=fe.walkTokens,X_e=fe.parseInline,U_e=io.parse,G_e=to.lex});var OH=m((K_e,AH)=>{var jH={};AH.exports=jH;var IH={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(IH).forEach(function(n){var e=IH[n],t=jH[n]=[];t.open="\x1B["+e[0]+"m",t.close="\x1B["+e[1]+"m"})});var NH=m((z_e,MH)=>{var lg=process.argv;MH.exports=function(){return lg.indexOf("--no-color")!==-1||lg.indexOf("--color=false")!==-1?!1:lg.indexOf("--color")!==-1||lg.indexOf("--color=true")!==-1||lg.indexOf("--color=always")!==-1?!0:process.stdout&&!process.stdout.isTTY?!1:process.platform==="win32"||"COLORTERM"in process.env?!0:process.env.TERM==="dumb"?!1:!!/^screen|^xterm|^vt100|color|ansi|cygwin|linux/i.test(process.env.TERM)}()});var HH=m((V_e,BH)=>{BH.exports=function(e,t){var i="";e=e||"Run the trap, drop the bass",e=e.split("");var r={a:["@","\u0104","\u023A","\u0245","\u0394","\u039B","\u0414"],b:["\xDF","\u0181","\u0243","\u026E","\u03B2","\u0E3F"],c:["\xA9","\u023B","\u03FE"],d:["\xD0","\u018A","\u0500","\u0501","\u0502","\u0503"],e:["\xCB","\u0115","\u018E","\u0258","\u03A3","\u03BE","\u04BC","\u0A6C"],f:["\u04FA"],g:["\u0262"],h:["\u0126","\u0195","\u04A2","\u04BA","\u04C7","\u050A"],i:["\u0F0F"],j:["\u0134"],k:["\u0138","\u04A0","\u04C3","\u051E"],l:["\u0139"],m:["\u028D","\u04CD","\u04CE","\u0520","\u0521","\u0D69"],n:["\xD1","\u014B","\u019D","\u0376","\u03A0","\u048A"],o:["\xD8","\xF5","\xF8","\u01FE","\u0298","\u047A","\u05DD","\u06DD","\u0E4F"],p:["\u01F7","\u048E"],q:["\u09CD"],r:["\xAE","\u01A6","\u0210","\u024C","\u0280","\u042F"],s:["\xA7","\u03DE","\u03DF","\u03E8"],t:["\u0141","\u0166","\u0373"],u:["\u01B1","\u054D"],v:["\u05D8"],w:["\u0428","\u0460","\u047C","\u0D70"],x:["\u04B2","\u04FE","\u04FC","\u04FD"],y:["\xA5","\u04B0","\u04CB"],z:["\u01B5","\u0240"]};return e.forEach(function(o){o=o.toLowerCase();var s=r[o]||[" "],a=Math.floor(Math.random()*s.length);typeof r[o]<"u"?i+=r[o][a]:i+=o}),i}});var YH=m((eRe,qH)=>{qH.exports=function(e,t){e=e||" he is here ";var i={up:["\u030D","\u030E","\u0304","\u0305","\u033F","\u0311","\u0306","\u0310","\u0352","\u0357","\u0351","\u0307","\u0308","\u030A","\u0342","\u0313","\u0308","\u034A","\u034B","\u034C","\u0303","\u0302","\u030C","\u0350","\u0300","\u0301","\u030B","\u030F","\u0312","\u0313","\u0314","\u033D","\u0309","\u0363","\u0364","\u0365","\u0366","\u0367","\u0368","\u0369","\u036A","\u036B","\u036C","\u036D","\u036E","\u036F","\u033E","\u035B","\u0346","\u031A"],down:["\u0316","\u0317","\u0318","\u0319","\u031C","\u031D","\u031E","\u031F","\u0320","\u0324","\u0325","\u0326","\u0329","\u032A","\u032B","\u032C","\u032D","\u032E","\u032F","\u0330","\u0331","\u0332","\u0333","\u0339","\u033A","\u033B","\u033C","\u0345","\u0347","\u0348","\u0349","\u034D","\u034E","\u0353","\u0354","\u0355","\u0356","\u0359","\u035A","\u0323"],mid:["\u0315","\u031B","\u0300","\u0301","\u0358","\u0321","\u0322","\u0327","\u0328","\u0334","\u0335","\u0336","\u035C","\u035D","\u035E","\u035F","\u0360","\u0362","\u0338","\u0337","\u0361"," \u0489"]},r=[].concat(i.up,i.down,i.mid),o={};function s(u){var c=Math.floor(Math.random()*u);return c}function a(u){var c=!1;return r.filter(function(h){c=h===u}),c}function l(u,c){var h="",d,g;c=c||{},c.up=c.up||!0,c.mid=c.mid||!0,c.down=c.down||!0,c.size=c.size||"maxi",u=u.split("");for(g in u)if(!a(g)){switch(h=h+u[g],d={up:0,down:0,mid:0},c.size){case"mini":d.up=s(8),d.min=s(2),d.down=s(8);break;case"maxi":d.up=s(16)+3,d.min=s(4)+1,d.down=s(64)+3;break;default:d.up=s(8)+1,d.mid=s(6)/2,d.down=s(8)+1;break}var f=["up","mid","down"];for(var p in f)for(var b=f[p],v=0;v<=d[b];v++)c[b]&&(h=h+i[b][s(i[b].length)])}return h}return l(e)}});var ZH=m((tRe,WH)=>{var O0=fc();WH.exports=function(){return function(n,e,t){if(n===" ")return n;switch(e%3){case 0:return O0.red(n);case 1:return O0.white(n);case 2:return O0.blue(n)}}}()});var $H=m((iRe,JH)=>{var Fpe=fc();JH.exports=function(n,e,t){return e%2===0?n:Fpe.inverse(n)}});var UH=m((nRe,XH)=>{var Ipe=fc();XH.exports=function(){var n=["red","yellow","green","blue","magenta"];return function(e,t,i){return e===" "?e:Ipe[n[t++%n.length]](e)}}()});var QH=m((rRe,GH)=>{var jpe=fc();GH.exports=function(){var n=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta"];return function(e,t,i){return e===" "?e:jpe[n[Math.round(Math.random()*(n.length-1))]](e)}}()});var fc=m((sRe,iq)=>{var tt={};iq.exports=tt;tt.themes={};var Ks=tt.styles=OH(),VH=Object.defineProperties;tt.supportsColor=NH();typeof tt.enabled>"u"&&(tt.enabled=tt.supportsColor);tt.stripColors=tt.strip=function(n){return(""+n).replace(/\x1B\[\d+m/g,"")};var oRe=tt.stylize=function(e,t){return Ks[t].open+e+Ks[t].close},Ape=/[|\\{}()[\]^$+*?.]/g,Ope=function(n){if(typeof n!="string")throw new TypeError("Expected a string");return n.replace(Ape,"\\$&")};function eq(n){var e=function t(){return Npe.apply(t,arguments)};return e._styles=n,e.__proto__=Mpe,e}var tq=function(){var n={};return Ks.grey=Ks.gray,Object.keys(Ks).forEach(function(e){Ks[e].closeRe=new RegExp(Ope(Ks[e].close),"g"),n[e]={get:function(){return eq(this._styles.concat(e))}}}),n}(),Mpe=VH(function(){},tq);function Npe(){var n=arguments,e=n.length,t=e!==0&&String(arguments[0]);if(e>1)for(var i=1;i{var qpe=fc();nq.exports=qpe});var sq=m(pc=>{pc.repeat=function(n,e){return Array(e+1).join(n)};pc.pad=function(n,e,t,i){if(e+1>=n.length)switch(i){case"left":n=Array(e+1-n.length).join(t)+n;break;case"both":var r=Math.ceil((padlen=e-n.length)/2),o=padlen-r;n=Array(o+1).join(t)+n+Array(r+1).join(t);break;default:n=n+Array(e+1-n.length).join(t)}return n};pc.truncate=function(n,e,t){return t=t||"\u2026",n.length>=e?n.substr(0,e-t.length)+t:n};function oq(n,e){for(var t in e)t==="__proto__"||t==="constructor"||t==="prototype"||(e[t]&&e[t].constructor&&e[t].constructor===Object?(n[t]=n[t]||{},oq(n[t],e[t])):n[t]=e[t]);return n}pc.options=oq;pc.strlen=function(n){var e=/\u001b\[(?:\d*;){0,5}\d*m/g,t=(""+n).replace(e,""),i=t.split(` -`);return i.reduce(function(r,o){return o.length>r?o.length:r},0)}});var aq=m((uRe,N0)=>{var Ype=rq(),ml=sq(),M0=ml.repeat,Wpe=ml.truncate,Zpe=ml.pad;function ug(n){this.options=ml.options({chars:{top:"\u2500","top-mid":"\u252C","top-left":"\u250C","top-right":"\u2510",bottom:"\u2500","bottom-mid":"\u2534","bottom-left":"\u2514","bottom-right":"\u2518",left:"\u2502","left-mid":"\u251C",mid:"\u2500","mid-mid":"\u253C",right:"\u2502","right-mid":"\u2524",middle:"\u2502"},truncate:"\u2026",colWidths:[],colAligns:[],style:{"padding-left":1,"padding-right":1,head:["red"],border:["grey"],compact:!1},head:[]},n)}ug.prototype.__proto__=Array.prototype;ug.prototype.__defineGetter__("width",function(){var n=this.toString().split(` -`);return n.length?n[0].length:0});ug.prototype.render;ug.prototype.toString=function(){var n="",e=this.options,t=e.style,i=e.head,r=e.chars,o=e.truncate,s=e.colWidths||new Array(this.head.length),a=0;if(!i.length&&!this.length)return"";if(!s.length){var l=this.slice(0);i.length&&(l=l.concat([i])),l.forEach(function(v){if(typeof v=="object"&&v.length)u(v);else{var w=Object.keys(v)[0],D=v[w];s[0]=Math.max(s[0]||0,c(w)||0),typeof D=="object"&&D.length?u(D,1):s[1]=Math.max(s[1]||0,c(D)||0)}})}a=(s.length==1?s[0]:s.reduce(function(v,w){return v+w}))+s.length+1;function u(v,D){var D=D||0;v.forEach(function(S,F){s[F+D]=Math.max(s[F+D]||0,c(S)||0)})}function c(v){return typeof v=="object"&&v.width!=null?v.width:(typeof v=="object"?ml.strlen(v.text):ml.strlen(v))+(t["padding-left"]||0)+(t["padding-right"]||0)}function h(L,w,D,S){var F=0,L=w+M0(L,a-2)+D;return s.forEach(function(j,W){W!=s.length-1&&(F+=j+1,L=L.substr(0,F)+S+L.substr(F+1))}),f(e.style.border,L)}function d(){var v=h(r.top,r["top-left"]||r.top,r["top-right"]||r.top,r["top-mid"]);v&&(n+=v+` -`)}function g(v,w){var D=[],S=0;if(!Array.isArray(v)&&typeof v=="object"){var F=Object.keys(v)[0],L=v[F],j=!0;Array.isArray(L)?(v=L,v.unshift(F)):v=[F,L]}v.forEach(function(N,I){var M=N.toString().split(` -`).reduce(function(K,ae){return K.push(p(ae,I)),K},[]),J=M.length;J>S&&(S=J),D.push({contents:M,height:J})});var W=new Array(S);D.forEach(function(N,I){N.contents.forEach(function(K,ae){W[ae]||(W[ae]=[]),(w||j&&I===0&&e.style.head)&&(K=f(e.style.head,K)),W[ae].push(K)});for(var M=N.height,J=S;M0&&(B+=` -`+f(e.style.border,r.left)),B+=N.join(f(e.style.border,r.middle))+f(e.style.border,r.right)}),f(e.style.border,r.left)+B}function f(v,w){return w?(v.forEach(function(D){w=Ype[D](w)}),w):""}function p(D,w){var D=String(typeof D=="object"&&D.text?D.text:D),S=ml.strlen(D),F=s[w]-(t["padding-left"]||0)-(t["padding-right"]||0),L=e.colAligns[w]||"left";return M0(" ",t["padding-left"]||0)+(S==F?D:S{"use strict";var lq=(n=0)=>e=>`\x1B[${38+n};5;${e}m`,uq=(n=0)=>(e,t,i)=>`\x1B[${38+n};2;${e};${t};${i}m`;function Jpe(){let n=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(let[t,i]of Object.entries(e)){for(let[r,o]of Object.entries(i))e[r]={open:`\x1B[${o[0]}m`,close:`\x1B[${o[1]}m`},i[r]=e[r],n.set(o[0],o[1]);Object.defineProperty(e,t,{value:i,enumerable:!1})}return Object.defineProperty(e,"codes",{value:n,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",e.color.ansi256=lq(),e.color.ansi16m=uq(),e.bgColor.ansi256=lq(10),e.bgColor.ansi16m=uq(10),Object.defineProperties(e,{rgbToAnsi256:{value:(t,i,r)=>t===i&&i===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(i/255*5)+Math.round(r/255*5),enumerable:!1},hexToRgb:{value:t=>{let i=/(?[a-f\d]{6}|[a-f\d]{3})/i.exec(t.toString(16));if(!i)return[0,0,0];let{colorString:r}=i.groups;r.length===3&&(r=r.split("").map(s=>s+s).join(""));let o=Number.parseInt(r,16);return[o>>16&255,o>>8&255,o&255]},enumerable:!1},hexToAnsi256:{value:t=>e.rgbToAnsi256(...e.hexToRgb(t)),enumerable:!1}}),e}Object.defineProperty(cq,"exports",{enumerable:!0,get:Jpe})});function dq(n){return`${yi.default.gray.open}${n}${yi.default.gray.close}`}function B0(n){return`${yi.default.magenta.open}${n}${yi.default.magenta.close}`}function gq(n){return`${yi.default.bold.open}${n}${yi.default.bold.close}`}function H0(n){return`${yi.default.underline.open}${n}${yi.default.underline.close}`}function fq(n){return`${yi.default.strikethrough.open}${n}${yi.default.strikethrough.close}`}function pq(n){return`${yi.default.italic.open}${n}${yi.default.italic.close}`}function mq(n){return`${yi.default.yellow.open}${n}${yi.default.yellow.close}`}function q0(n){return`${yi.default.blue.open}${n}${yi.default.blue.close}`}var yi,bq=_(()=>{"use strict";yi=C(hq())});function Lr(n){return n}function Qpe(n){return dq(n.replace(/(<([^>]+)>)/ig,""))}function yq(n,e){return e?n.replace(Gpe,/\n/g):n}function zpe(n,e){return e.replace(/(^|\n)(.+)/g,"$1"+n+"$2")}function Vpe(n,e){return e&&n+e.split(` +`}strong(e){return""+e+""}em(e){return""+e+""}codespan(e){return""+e+""}br(){return this.options.xhtml?"
":"
"}del(e){return""+e+""}link(e,t,i){if(e=Iq(this.options.sanitize,this.options.baseUrl,e),e===null)return i;let r='
",r}image(e,t,i){if(e=Iq(this.options.sanitize,this.options.baseUrl,e),e===null)return i;let r=''+i+'":">",r}text(e){return e}},RT=class{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,i){return""+i}image(e,t,i){return""+i}br(){return""}},LT=class{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,t){let i=e,r=0;if(this.seen.hasOwnProperty(i)){r=this.seen[e];do r++,i=e+"-"+r;while(this.seen.hasOwnProperty(i))}return t||(this.seen[e]=r,this.seen[i]=0),i}slug(e,t={}){let i=this.serialize(e);return this.getNextSafeSlug(i,t.dryrun)}},wo=class{constructor(e){this.options=e||kc,this.options.renderer=this.options.renderer||new jy,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new RT,this.slugger=new LT}static parse(e,t){return new wo(t).parse(e)}static parseInline(e,t){return new wo(t).parseInline(e)}parse(e,t=!0){let i="",r,o,s,a,l,u,c,h,d,g,p,f,m,b,w,D,T,R,N,H=e.length;for(r=0;r0&&w.tokens[0].type==="paragraph"?(w.tokens[0].text=R+" "+w.tokens[0].text,w.tokens[0].tokens&&w.tokens[0].tokens.length>0&&w.tokens[0].tokens[0].type==="text"&&(w.tokens[0].tokens[0].text=R+" "+w.tokens[0].tokens[0].text)):w.tokens.unshift({type:"text",text:R}):b+=R),b+=this.parse(w.tokens,m),d+=this.renderer.listitem(b,T,D);i+=this.renderer.list(d,p,f);continue}case"html":{i+=this.renderer.html(g.text);continue}case"paragraph":{i+=this.renderer.paragraph(this.parseInline(g.tokens));continue}case"text":{for(d=g.tokens?this.parseInline(g.tokens):g.text;r+1{if(r.extensions&&(i=!0,r.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if(o.renderer){let s=t.renderers?t.renderers[o.name]:null;s?t.renderers[o.name]=function(...a){let l=o.renderer.apply(this,a);return l===!1&&(l=s.apply(this,a)),l}:t.renderers[o.name]=o.renderer}if(o.tokenizer){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");t[o.level]?t[o.level].unshift(o.tokenizer):t[o.level]=[o.tokenizer],o.start&&(o.level==="block"?t.startBlock?t.startBlock.push(o.start):t.startBlock=[o.start]:o.level==="inline"&&(t.startInline?t.startInline.push(o.start):t.startInline=[o.start]))}o.childTokens&&(t.childTokens[o.name]=o.childTokens)})),r.renderer){let o=Ce.defaults.renderer||new jy;for(let s in r.renderer){let a=o[s];o[s]=(...l)=>{let u=r.renderer[s].apply(o,l);return u===!1&&(u=a.apply(o,l)),u}}e.renderer=o}if(r.tokenizer){let o=Ce.defaults.tokenizer||new Iy;for(let s in r.tokenizer){let a=o[s];o[s]=(...l)=>{let u=r.tokenizer[s].apply(o,l);return u===!1&&(u=a.apply(o,l)),u}}e.tokenizer=o}if(r.walkTokens){let o=Ce.defaults.walkTokens;e.walkTokens=function(s){r.walkTokens.call(this,s),o&&o.call(this,s)}}i&&(e.extensions=t),Ce.setOptions(e)})};Ce.walkTokens=function(n,e){for(let t of n)switch(e.call(Ce,t),t.type){case"table":{for(let i of t.header)Ce.walkTokens(i.tokens,e);for(let i of t.rows)for(let r of i)Ce.walkTokens(r.tokens,e);break}case"list":{Ce.walkTokens(t.items,e);break}default:Ce.defaults.extensions&&Ce.defaults.extensions.childTokens&&Ce.defaults.extensions.childTokens[t.type]?Ce.defaults.extensions.childTokens[t.type].forEach(function(i){Ce.walkTokens(t[i],e)}):t.tokens&&Ce.walkTokens(t.tokens,e)}};Ce.parseInline=function(n,e){if(typeof n>"u"||n===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof n!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected");e=Wr({},Ce.defaults,e||{}),Hq(e);try{let t=vo.lexInline(n,e);return e.walkTokens&&Ce.walkTokens(t,e.walkTokens),wo.parseInline(t,e)}catch(t){if(t.message+=` +Please report this to https://github.com/markedjs/marked.`,e.silent)return"

An error occurred:

"+pi(t.message+"",!0)+"
";throw t}};Ce.Parser=wo;Ce.parser=wo.parse;Ce.Renderer=jy;Ce.TextRenderer=RT;Ce.Lexer=vo;Ce.lexer=vo.lex;Ce.Tokenizer=Iy;Ce.Slugger=LT;Ce.parse=Ce;_Le=Ce.options,RLe=Ce.setOptions,LLe=Ce.use,FLe=Ce.walkTokens,ILe=Ce.parseInline,jLe=wo.parse,ALe=vo.lex});var Jq=y((OLe,Zq)=>{var Wq={};Zq.exports=Wq;var Yq={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(Yq).forEach(function(n){var e=Yq[n],t=Wq[n]=[];t.open="\x1B["+e[0]+"m",t.close="\x1B["+e[1]+"m"})});var Xq=y((NLe,$q)=>{var Rg=process.argv;$q.exports=function(){return Rg.indexOf("--no-color")!==-1||Rg.indexOf("--color=false")!==-1?!1:Rg.indexOf("--color")!==-1||Rg.indexOf("--color=true")!==-1||Rg.indexOf("--color=always")!==-1?!0:process.stdout&&!process.stdout.isTTY?!1:process.platform==="win32"||"COLORTERM"in process.env?!0:process.env.TERM==="dumb"?!1:!!/^screen|^xterm|^vt100|color|ansi|cygwin|linux/i.test(process.env.TERM)}()});var Gq=y((BLe,Uq)=>{Uq.exports=function(e,t){var i="";e=e||"Run the trap, drop the bass",e=e.split("");var r={a:["@","\u0104","\u023A","\u0245","\u0394","\u039B","\u0414"],b:["\xDF","\u0181","\u0243","\u026E","\u03B2","\u0E3F"],c:["\xA9","\u023B","\u03FE"],d:["\xD0","\u018A","\u0500","\u0501","\u0502","\u0503"],e:["\xCB","\u0115","\u018E","\u0258","\u03A3","\u03BE","\u04BC","\u0A6C"],f:["\u04FA"],g:["\u0262"],h:["\u0126","\u0195","\u04A2","\u04BA","\u04C7","\u050A"],i:["\u0F0F"],j:["\u0134"],k:["\u0138","\u04A0","\u04C3","\u051E"],l:["\u0139"],m:["\u028D","\u04CD","\u04CE","\u0520","\u0521","\u0D69"],n:["\xD1","\u014B","\u019D","\u0376","\u03A0","\u048A"],o:["\xD8","\xF5","\xF8","\u01FE","\u0298","\u047A","\u05DD","\u06DD","\u0E4F"],p:["\u01F7","\u048E"],q:["\u09CD"],r:["\xAE","\u01A6","\u0210","\u024C","\u0280","\u042F"],s:["\xA7","\u03DE","\u03DF","\u03E8"],t:["\u0141","\u0166","\u0373"],u:["\u01B1","\u054D"],v:["\u05D8"],w:["\u0428","\u0460","\u047C","\u0D70"],x:["\u04B2","\u04FE","\u04FC","\u04FD"],y:["\xA5","\u04B0","\u04CB"],z:["\u01B5","\u0240"]};return e.forEach(function(o){o=o.toLowerCase();var s=r[o]||[" "],a=Math.floor(Math.random()*s.length);typeof r[o]<"u"?i+=r[o][a]:i+=o}),i}});var Qq=y((HLe,Kq)=>{Kq.exports=function(e,t){e=e||" he is here ";var i={up:["\u030D","\u030E","\u0304","\u0305","\u033F","\u0311","\u0306","\u0310","\u0352","\u0357","\u0351","\u0307","\u0308","\u030A","\u0342","\u0313","\u0308","\u034A","\u034B","\u034C","\u0303","\u0302","\u030C","\u0350","\u0300","\u0301","\u030B","\u030F","\u0312","\u0313","\u0314","\u033D","\u0309","\u0363","\u0364","\u0365","\u0366","\u0367","\u0368","\u0369","\u036A","\u036B","\u036C","\u036D","\u036E","\u036F","\u033E","\u035B","\u0346","\u031A"],down:["\u0316","\u0317","\u0318","\u0319","\u031C","\u031D","\u031E","\u031F","\u0320","\u0324","\u0325","\u0326","\u0329","\u032A","\u032B","\u032C","\u032D","\u032E","\u032F","\u0330","\u0331","\u0332","\u0333","\u0339","\u033A","\u033B","\u033C","\u0345","\u0347","\u0348","\u0349","\u034D","\u034E","\u0353","\u0354","\u0355","\u0356","\u0359","\u035A","\u0323"],mid:["\u0315","\u031B","\u0300","\u0301","\u0358","\u0321","\u0322","\u0327","\u0328","\u0334","\u0335","\u0336","\u035C","\u035D","\u035E","\u035F","\u0360","\u0362","\u0338","\u0337","\u0361"," \u0489"]},r=[].concat(i.up,i.down,i.mid),o={};function s(u){var c=Math.floor(Math.random()*u);return c}function a(u){var c=!1;return r.filter(function(h){c=h===u}),c}function l(u,c){var h="",d,g;c=c||{},c.up=c.up||!0,c.mid=c.mid||!0,c.down=c.down||!0,c.size=c.size||"maxi",u=u.split("");for(g in u)if(!a(g)){switch(h=h+u[g],d={up:0,down:0,mid:0},c.size){case"mini":d.up=s(8),d.min=s(2),d.down=s(8);break;case"maxi":d.up=s(16)+3,d.min=s(4)+1,d.down=s(64)+3;break;default:d.up=s(8)+1,d.mid=s(6)/2,d.down=s(8)+1;break}var p=["up","mid","down"];for(var f in p)for(var m=p[f],b=0;b<=d[m];b++)c[m]&&(h=h+i[m][s(i[m].length)])}return h}return l(e)}});var Vq=y((qLe,zq)=>{var FT=Ec();zq.exports=function(){return function(n,e,t){if(n===" ")return n;switch(e%3){case 0:return FT.red(n);case 1:return FT.white(n);case 2:return FT.blue(n)}}}()});var t2=y((YLe,e2)=>{var gye=Ec();e2.exports=function(n,e,t){return e%2===0?n:gye.inverse(n)}});var n2=y((WLe,i2)=>{var pye=Ec();i2.exports=function(){var n=["red","yellow","green","blue","magenta"];return function(e,t,i){return e===" "?e:pye[n[t++%n.length]](e)}}()});var o2=y((ZLe,r2)=>{var fye=Ec();r2.exports=function(){var n=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta"];return function(e,t,i){return e===" "?e:fye[n[Math.round(Math.random()*(n.length-1))]](e)}}()});var Ec=y(($Le,h2)=>{var lt={};h2.exports=lt;lt.themes={};var ca=lt.styles=Jq(),l2=Object.defineProperties;lt.supportsColor=Xq();typeof lt.enabled>"u"&&(lt.enabled=lt.supportsColor);lt.stripColors=lt.strip=function(n){return(""+n).replace(/\x1B\[\d+m/g,"")};var JLe=lt.stylize=function(e,t){return ca[t].open+e+ca[t].close},mye=/[|\\{}()[\]^$+*?.]/g,yye=function(n){if(typeof n!="string")throw new TypeError("Expected a string");return n.replace(mye,"\\$&")};function u2(n){var e=function t(){return vye.apply(t,arguments)};return e._styles=n,e.__proto__=bye,e}var c2=function(){var n={};return ca.grey=ca.gray,Object.keys(ca).forEach(function(e){ca[e].closeRe=new RegExp(yye(ca[e].close),"g"),n[e]={get:function(){return u2(this._styles.concat(e))}}}),n}(),bye=l2(function(){},c2);function vye(){var n=arguments,e=n.length,t=e!==0&&String(arguments[0]);if(e>1)for(var i=1;i{var Cye=Ec();d2.exports=Cye});var f2=y(Pc=>{Pc.repeat=function(n,e){return Array(e+1).join(n)};Pc.pad=function(n,e,t,i){if(e+1>=n.length)switch(i){case"left":n=Array(e+1-n.length).join(t)+n;break;case"both":var r=Math.ceil((padlen=e-n.length)/2),o=padlen-r;n=Array(o+1).join(t)+n+Array(r+1).join(t);break;default:n=n+Array(e+1-n.length).join(t)}return n};Pc.truncate=function(n,e,t){return t=t||"\u2026",n.length>=e?n.substr(0,e-t.length)+t:n};function p2(n,e){for(var t in e)t==="__proto__"||t==="constructor"||t==="prototype"||(e[t]&&e[t].constructor&&e[t].constructor===Object?(n[t]=n[t]||{},p2(n[t],e[t])):n[t]=e[t]);return n}Pc.options=p2;Pc.strlen=function(n){var e=/\u001b\[(?:\d*;){0,5}\d*m/g,t=(""+n).replace(e,""),i=t.split(` +`);return i.reduce(function(r,o){return o.length>r?o.length:r},0)}});var m2=y((GLe,jT)=>{var xye=g2(),Ll=f2(),IT=Ll.repeat,Sye=Ll.truncate,Tye=Ll.pad;function Lg(n){this.options=Ll.options({chars:{top:"\u2500","top-mid":"\u252C","top-left":"\u250C","top-right":"\u2510",bottom:"\u2500","bottom-mid":"\u2534","bottom-left":"\u2514","bottom-right":"\u2518",left:"\u2502","left-mid":"\u251C",mid:"\u2500","mid-mid":"\u253C",right:"\u2502","right-mid":"\u2524",middle:"\u2502"},truncate:"\u2026",colWidths:[],colAligns:[],style:{"padding-left":1,"padding-right":1,head:["red"],border:["grey"],compact:!1},head:[]},n)}Lg.prototype.__proto__=Array.prototype;Lg.prototype.__defineGetter__("width",function(){var n=this.toString().split(` +`);return n.length?n[0].length:0});Lg.prototype.render;Lg.prototype.toString=function(){var n="",e=this.options,t=e.style,i=e.head,r=e.chars,o=e.truncate,s=e.colWidths||new Array(this.head.length),a=0;if(!i.length&&!this.length)return"";if(!s.length){var l=this.slice(0);i.length&&(l=l.concat([i])),l.forEach(function(b){if(typeof b=="object"&&b.length)u(b);else{var w=Object.keys(b)[0],D=b[w];s[0]=Math.max(s[0]||0,c(w)||0),typeof D=="object"&&D.length?u(D,1):s[1]=Math.max(s[1]||0,c(D)||0)}})}a=(s.length==1?s[0]:s.reduce(function(b,w){return b+w}))+s.length+1;function u(b,D){var D=D||0;b.forEach(function(T,R){s[R+D]=Math.max(s[R+D]||0,c(T)||0)})}function c(b){return typeof b=="object"&&b.width!=null?b.width:(typeof b=="object"?Ll.strlen(b.text):Ll.strlen(b))+(t["padding-left"]||0)+(t["padding-right"]||0)}function h(N,w,D,T){var R=0,N=w+IT(N,a-2)+D;return s.forEach(function(H,X){X!=s.length-1&&(R+=H+1,N=N.substr(0,R)+T+N.substr(R+1))}),p(e.style.border,N)}function d(){var b=h(r.top,r["top-left"]||r.top,r["top-right"]||r.top,r["top-mid"]);b&&(n+=b+` +`)}function g(b,w){var D=[],T=0;if(!Array.isArray(b)&&typeof b=="object"){var R=Object.keys(b)[0],N=b[R],H=!0;Array.isArray(N)?(b=N,b.unshift(R)):b=[R,N]}b.forEach(function(M,F){var O=M.toString().split(` +`).reduce(function(ie,ge){return ie.push(f(ge,F)),ie},[]),Z=O.length;Z>T&&(T=Z),D.push({contents:O,height:Z})});var X=new Array(T);D.forEach(function(M,F){M.contents.forEach(function(ie,ge){X[ge]||(X[ge]=[]),(w||H&&F===0&&e.style.head)&&(ie=p(e.style.head,ie)),X[ge].push(ie)});for(var O=M.height,Z=T;O0&&(B+=` +`+p(e.style.border,r.left)),B+=M.join(p(e.style.border,r.middle))+p(e.style.border,r.right)}),p(e.style.border,r.left)+B}function p(b,w){return w?(b.forEach(function(D){w=xye[D](w)}),w):""}function f(D,w){var D=String(typeof D=="object"&&D.text?D.text:D),T=Ll.strlen(D),R=s[w]-(t["padding-left"]||0)-(t["padding-right"]||0),N=e.colAligns[w]||"left";return IT(" ",t["padding-left"]||0)+(T==R?D:T{"use strict";var y2=(n=0)=>e=>`\x1B[${38+n};5;${e}m`,b2=(n=0)=>(e,t,i)=>`\x1B[${38+n};2;${e};${t};${i}m`;function kye(){let n=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(let[t,i]of Object.entries(e)){for(let[r,o]of Object.entries(i))e[r]={open:`\x1B[${o[0]}m`,close:`\x1B[${o[1]}m`},i[r]=e[r],n.set(o[0],o[1]);Object.defineProperty(e,t,{value:i,enumerable:!1})}return Object.defineProperty(e,"codes",{value:n,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",e.color.ansi256=y2(),e.color.ansi16m=b2(),e.bgColor.ansi256=y2(10),e.bgColor.ansi16m=b2(10),Object.defineProperties(e,{rgbToAnsi256:{value:(t,i,r)=>t===i&&i===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(i/255*5)+Math.round(r/255*5),enumerable:!1},hexToRgb:{value:t=>{let i=/(?[a-f\d]{6}|[a-f\d]{3})/i.exec(t.toString(16));if(!i)return[0,0,0];let{colorString:r}=i.groups;r.length===3&&(r=r.split("").map(s=>s+s).join(""));let o=Number.parseInt(r,16);return[o>>16&255,o>>8&255,o&255]},enumerable:!1},hexToAnsi256:{value:t=>e.rgbToAnsi256(...e.hexToRgb(t)),enumerable:!1}}),e}Object.defineProperty(v2,"exports",{enumerable:!0,get:kye})});function D2(n){return`${Ti.default.gray.open}${n}${Ti.default.gray.close}`}function AT(n){return`${Ti.default.magenta.open}${n}${Ti.default.magenta.close}`}function C2(n){return`${Ti.default.bold.open}${n}${Ti.default.bold.close}`}function MT(n){return`${Ti.default.underline.open}${n}${Ti.default.underline.close}`}function x2(n){return`${Ti.default.strikethrough.open}${n}${Ti.default.strikethrough.close}`}function S2(n){return`${Ti.default.italic.open}${n}${Ti.default.italic.close}`}function T2(n){return`${Ti.default.yellow.open}${n}${Ti.default.yellow.close}`}function OT(n){return`${Ti.default.blue.open}${n}${Ti.default.blue.close}`}var Ti,k2=_(()=>{"use strict";Ti=x(w2())});function Zr(n){return n}function Lye(n){return D2(n.replace(/(<([^>]+)>)/ig,""))}function E2(n,e){return e?n.replace(Rye,/\n/g):n}function Iye(n,e){return e.replace(/(^|\n)(.+)/g,"$1"+n+"$2")}function jye(n,e){return e&&n+e.split(` `).join(` -`+n)}function ime(n,e){let t=new RegExp("(\\S(?: | )?)((?:"+e+")+)("+Sq+"(?:.*)+)$","gm");return n.replace(t,`$1 -`+e+"$2$3")}function kq(n){return" ".repeat(n.length)}function nme(n,e){return Tq(e,n)?e:kq(Z0)+e}function rme(n,e){let t=nme.bind(null,e);return n.split(` -`).filter(Lr).map(t).join(` -`)}function ome(n,e,t){return Tq(e,n)?{num:t+1,line:e.replace(Z0,vq(t+1))}:{num:t,line:kq(vq(t))+e}}function sme(n,e){let t=ome.bind(null,e),i=0;return n.split(` -`).filter(Lr).map(r=>{let o=t(r,i);return i=o.num,o.line}).join(` -`)}function ame(n,e,t){return n=n.trim(),n=e?sme(n,t):rme(n,t),n}function cg(n){return n+` +`+n)}function Oye(n,e){let t=new RegExp("(\\S(?: | )?)((?:"+e+")+)("+I2+"(?:.*)+)$","gm");return n.replace(t,`$1 +`+e+"$2$3")}function A2(n){return" ".repeat(n.length)}function Nye(n,e){return j2(e,n)?e:A2(HT)+e}function Bye(n,e){let t=Nye.bind(null,e);return n.split(` +`).filter(Zr).map(t).join(` +`)}function Hye(n,e,t){return j2(e,n)?{num:t+1,line:e.replace(HT,P2(t+1))}:{num:t,line:A2(P2(t))+e}}function qye(n,e){let t=Hye.bind(null,e),i=0;return n.split(` +`).filter(Zr).map(r=>{let o=t(r,i);return i=o.num,o.line}).join(` +`)}function Yye(n,e,t){return n=n.trim(),n=e?qye(n,t):Bye(n,t),n}function Fg(n){return n+` -`}function lme(n){return n.replace(Upe,":")}function wq(n,e=null){if(!n)return[];e=e||Lr;let t=e(n).split(` -`),i=[];return t.forEach(function(r){if(!r)return;let o=r.replace(Xpe,"").split(xq);i.push(o.splice(0,o.length-1))}),i}function Eq(n){return n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function ume(n){return n.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'")}var Dq,hRe,xq,W0,Xpe,Cq,Upe,Gpe,Kpe,eme,tme,Sq,Tq,Z0,vq,Y0,Pq,J0,_q=_(()=>{"use strict";Dq=C(aq());bq();hRe=q()("markdown-renderer"),xq="^*||*^",W0="*|*|*|*",Xpe=new RegExp(Eq(W0),"g"),Cq="*#COLON|*",Upe=new RegExp(Eq(Cq),"g"),Gpe="\r";Kpe={code:Lr,blockquote:Lr,html:Qpe,heading:B0,firstHeading:B0,hr:Lr,listitem:Lr,list:ame,table:Lr,paragraph:Lr,strong:gq,em:pq,codespan:mq,del:fq,link:H0,href:H0,text:Lr,unescape:!0,emoji:!1,width:80,showSectionPrefix:!0,tab:2,tableOptions:{}};eme="\\*",tme="\\d+\\.",Sq="(?:"+[eme,tme].join("|")+")";Tq=function(n,e){return n.match("^(?:"+e+")*"+Sq)};Z0="* ";vq=function(n){return n+". "};Y0=new Map,Pq=class{constructor(e={},t={}){this.options=e;this.highlightOptions=t;this.o=Object.assign({},Kpe,e),this.tab=" ",this.tableSettings=this.o.tableOptions,this.unescape=this.o.unescape?ume:Lr,this.highlightOptions=t||{},this.transform=this.compose(lme,this.unescape)}text(e){return this.o.text(e)}code(e,t,i){return"``` "+t+` -`+e+"\n```\n"}blockquote(e){return cg(this.o.blockquote(Vpe(this.tab,e.trim())))}html(e){return this.o.html(e)}heading(e,t,i){return e=this.transform(e),e=(this.o.showSectionPrefix?new Array(t+1).join("#")+" ":"")+e,cg(t===1?this.o.firstHeading(e):this.o.heading(e))}hr(){return`\u2500\u2500\u2500 -`}list(e,t){return e=this.o.list(e,t,this.tab),cg(ime(zpe(this.tab,e),this.tab))}listitem(e){let t=this.compose(this.o.listitem,this.transform);return e.indexOf(` +`}function Wye(n){return n.replace(_ye,":")}function _2(n,e=null){if(!n)return[];e=e||Zr;let t=e(n).split(` +`),i=[];return t.forEach(function(r){if(!r)return;let o=r.replace(Pye,"").split(L2);i.push(o.splice(0,o.length-1))}),i}function M2(n){return n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Zye(n){return n.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'")}var R2,QLe,L2,BT,Pye,F2,_ye,Rye,Fye,Aye,Mye,I2,j2,HT,P2,NT,O2,qT,N2=_(()=>{"use strict";R2=x(m2());k2();QLe=W()("markdown-renderer"),L2="^*||*^",BT="*|*|*|*",Pye=new RegExp(M2(BT),"g"),F2="*#COLON|*",_ye=new RegExp(M2(F2),"g"),Rye="\r";Fye={code:Zr,blockquote:Zr,html:Lye,heading:AT,firstHeading:AT,hr:Zr,listitem:Zr,list:Yye,table:Zr,paragraph:Zr,strong:C2,em:S2,codespan:T2,del:x2,link:MT,href:MT,text:Zr,unescape:!0,emoji:!1,width:80,showSectionPrefix:!1,tab:2,tableOptions:{}};Aye="\\*",Mye="\\d+\\.",I2="(?:"+[Aye,Mye].join("|")+")";j2=function(n,e){return n.match("^(?:"+e+")*"+I2)};HT="* ";P2=function(n){return n+". "};NT=new Map,O2=class{constructor(e={},t={}){this.options=e;this.highlightOptions=t;this.o=Object.assign({},Fye,e),this.tab=" ",this.tableSettings=this.o.tableOptions,this.unescape=this.o.unescape?Zye:Zr,this.highlightOptions=t||{},this.transform=this.compose(Wye,this.unescape)}text(e){return this.o.text(e)}code(e,t,i){return"``` "+t+` +`+e+"\n```\n"}blockquote(e){return Fg(this.o.blockquote(jye(this.tab,e.trim())))}html(e){return this.o.html(e)}heading(e,t,i){return e=this.transform(e),e=(this.o.showSectionPrefix?new Array(t+1).join("#")+" ":"")+e,Fg(t===1?this.o.firstHeading(e):this.o.heading(e))}hr(){return`\u2500\u2500\u2500 +`}list(e,t){return e=this.o.list(e,t,this.tab),Fg(Oye(Iye(this.tab,e),this.tab))}listitem(e){let t=this.compose(this.o.listitem,this.transform);return e.indexOf(` `)!==-1&&(e=e.trim()),` -`+Z0+t(e)}checkbox(e){return"["+(e?"X":" ")+"] "}paragraph(e){return e=this.compose(this.o.paragraph,this.transform)(e),cg(e)}table(e,t){let i=new Dq.default(Object.assign({},{head:wq(e)[0]},this.tableSettings));return wq(t,this.transform).forEach(function(r){i.push(r)}),cg(this.o.table(i.toString()))}tablerow(e){return W0+e+W0+` -`}tablecell(e,t){return e+xq}strong(e){return this.o.strong(e)}em(e){return e=yq(e,this.o.reflowText),this.o.em(e)}codespan(e){return e=yq(e,this.o.reflowText),this.o.codespan(e.replace(/:/g,Cq))}br(){return` -`}del(e){return this.o.del(e)}link(e,t,i){let r;try{r=decodeURIComponent(unescape(e)).replace(/[^\w:]/g,"").toLowerCase()}catch{return""}if(r.startsWith("javascript:"))return"";if(i&&e&&i!=e&&Y0.set(i,e),i&&i!=e)return q0(i);let o=this.o.href(e);return this.o.link(o)}image(e,t,i){let r="!["+i;return t&&(r+=" \u2013 "+t),r+"]("+e+")"}compose(...e){return(...t)=>{for(let i=e.length;i-- >0;)t=[e[i].apply(this,t)];return t[0]}}static getLinks(){let e=[];for(let[t,i]of Y0.entries())e.push(`${q0(t)}: ${i}`);return Y0.clear(),e}},J0=Pq});function mc(n,e=!1){let t=hg(n),i=[],r="";for(let o of t){if(!o.text)continue;let{foreground:s,background:a}=o,l=Q(r),u=[l,l+Q(o.text)];if(s&&a){let c=`CocList${hn(s)}${hn(a)}`;i.push({span:u,hlGroup:c})}else if(s){let c;e?s=="yellow"?c="CocMarkdownCode":s=="blue"?c="CocMarkdownLink":s=="magenta"?c="CocMarkdownHeader":c=`CocListFg${hn(s)}`:c=`CocListFg${hn(s)}`,i.push({span:u,hlGroup:c})}else if(a){let c=`CocListBg${hn(a)}`;i.push({span:u,hlGroup:c})}o.bold?i.push({span:u,hlGroup:"CocBold"}):o.italic?i.push({span:u,hlGroup:"CocItalic"}):o.underline?i.push({span:u,hlGroup:"CocUnderline"}):o.strikethrough&&i.push({span:u,hlGroup:"CocStrikeThrough"}),r=r+o.text}return{line:r,highlights:i}}function hg(n){let e=null,t=null,i="",r=[],o=[],s={},a;a=()=>{let l,u;i.length?i=i.substr(0,i.length-1):o.length&&(l=o.length-1,u=o[l].text,u.length===1?o.pop():o[l].text=u.substr(0,u.length-1))};for(let l=0;l{Rq[u]?s.foreground=Rq[u]:Lq[u]?s.background=Lq[u]:u==39?delete s.foreground:u==49?delete s.background:Fq[u]?s[Fq[u]]=!0:u==22?s.bold=!1:u==23?s.italic=!1:u==24?s.underline=!1:u==29&&(s.strikethrough=!1)}),r=[]):t+=n[l];continue}n[l]=="\x1B"?e=n[l]:n[l]=="\b"?a():i+=n[l]}return i&&(s.text=i+(e||""),o.push(s)),o}var Rq,Lq,Fq,bc=_(()=>{"use strict";Pe();Rq={30:"black",31:"red",32:"green",33:"yellow",34:"blue",35:"magenta",36:"cyan",37:"white",90:"grey"},Lq={40:"black",41:"red",42:"green",43:"yellow",44:"blue",45:"magenta",46:"cyan",47:"white"},Fq={1:"bold",3:"italic",4:"underline",9:"strikethrough"}});var jq=m((pRe,Iq)=>{"use strict";Iq.exports=({onlyFirst:n=!1}={})=>{let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,n?void 0:"g")}});var dg=m((mRe,Aq)=>{"use strict";var cme=jq();Aq.exports=n=>typeof n=="string"?n.replace(cme(),""):n});function lb(n,e={}){let t=[],i=[],r=[],o=0;for(let s of n){let a=t.length,{content:l,filetype:u}=s,c=s.highlights;if(u=="markdown"){let h=gme(l,e);r.push(...h.codes.map(d=>(d.startLine=d.startLine+a,d.endLine=d.endLine+a,d))),i.push(...h.highlights.map(d=>(d.lnum=d.lnum+a,d))),t.push(...h.lines)}else{let h=l.trim().split(/\r?\n/);hme.includes(s.filetype)?r.push({hlGroup:`Coc${u}Float`,startLine:a,endLine:a+h.length}):r.push({filetype:s.filetype,startLine:a,endLine:a+h.length}),t.push(...h)}if(Array.isArray(c)&&i.push(...c.map(h=>Object.assign({},h,{lnum:h.lnum+a}))),Array.isArray(s.active)){let h=dme(l,a,s.active);h.length&&i.push(...h)}o!=n.length-1&&t.push("\u2500"),o=o+1}return{lines:t,highlights:i,codes:r}}function dme(n,e,t){let i=[],[r,o]=t,s=n.split(/\r?\n/),a=0,l=!1;for(let u=0;uo){let h=Q(c.slice(0,o-a));i.push({colStart:0,colEnd:h,lnum:u+e,hlGroup:"CocUnderline"}),l=!1;break}else{let h=Q(c);i.push({colStart:0,colEnd:h,lnum:u+e,hlGroup:"CocUnderline"})}else if(a+c.length>r){l=!0;let h=Q(c.slice(0,r-a));if(a+c.length>o){let d=Q(c.slice(0,o-a));l=!1,i.push({colStart:h,colEnd:d,lnum:u+e,hlGroup:"CocUnderline"});break}else{let d=Q(c);i.push({colStart:h,colEnd:d,lnum:u+e,hlGroup:"CocUnderline"})}}a=a+c.length+1}return i}function gme(n,e){fe.setOptions({renderer:new J0,gfm:!0,breaks:!0});let t=[],i=[],r=[],o=0,s=!1,a,l=0,u=fe(n),c=J0.getLinks();c.length&&(u=u+` +`+HT+t(e)}checkbox(e){return"["+(e?"X":" ")+"] "}paragraph(e){return e=this.compose(this.o.paragraph,this.transform)(e),Fg(e)}table(e,t){let i=new R2.default(Object.assign({},{head:_2(e)[0]},this.tableSettings));return _2(t,this.transform).forEach(function(r){i.push(r)}),Fg(this.o.table(i.toString()))}tablerow(e){return BT+e+BT+` +`}tablecell(e,t){return e+L2}strong(e){return this.o.strong(e)}em(e){return e=E2(e,this.o.reflowText),this.o.em(e)}codespan(e){return e=E2(e,this.o.reflowText),this.o.codespan(e.replace(/:/g,F2))}br(){return` +`}del(e){return this.o.del(e)}link(e,t,i){let r;try{r=decodeURIComponent(unescape(e)).replace(/[^\w:]/g,"").toLowerCase()}catch{return""}if(r.startsWith("javascript:"))return"";if(i&&e&&i!=e&&NT.set(i,e),i&&i!=e)return OT(i);let o=this.o.href(e);return this.o.link(o)}image(e,t,i){let r="!["+i;return t&&(r+=" \u2013 "+t),r+"]("+e+")"}compose(...e){return(...t)=>{for(let i=e.length;i-- >0;)t=[e[i].apply(this,t)];return t[0]}}static getLinks(){let e=[];for(let[t,i]of NT.entries())e.push(`${OT(t)}: ${i}`);return NT.clear(),e}},qT=O2});function _c(n,e=!1){let t=Ig(n),i=[],r="";for(let o of t){if(!o.text)continue;let{foreground:s,background:a}=o,l=V(r),u=[l,l+V(o.text)];if(s&&a){let c=`CocList${Cn(s)}${Cn(a)}`;i.push({span:u,hlGroup:c})}else if(s){let c;e?s=="yellow"?c="CocMarkdownCode":s=="blue"?c="CocMarkdownLink":s=="magenta"?c="CocMarkdownHeader":c=`CocListFg${Cn(s)}`:c=`CocListFg${Cn(s)}`,i.push({span:u,hlGroup:c})}else if(a){let c=`CocListBg${Cn(a)}`;i.push({span:u,hlGroup:c})}o.bold?i.push({span:u,hlGroup:"CocBold"}):o.italic?i.push({span:u,hlGroup:"CocItalic"}):o.underline?i.push({span:u,hlGroup:"CocUnderline"}):o.strikethrough&&i.push({span:u,hlGroup:"CocStrikeThrough"}),r=r+o.text}return{line:r,highlights:i}}function Ig(n){let e=null,t=null,i="",r=[],o=[],s={},a;a=()=>{let l,u;i.length?i=i.substr(0,i.length-1):o.length&&(l=o.length-1,u=o[l].text,u.length===1?o.pop():o[l].text=u.substr(0,u.length-1))};for(let l=0;l{B2[u]?s.foreground=B2[u]:H2[u]?s.background=H2[u]:u==39?delete s.foreground:u==49?delete s.background:q2[u]?s[q2[u]]=!0:u==22?s.bold=!1:u==23?s.italic=!1:u==24?s.underline=!1:u==29&&(s.strikethrough=!1)}),r=[]):t+=n[l];continue}n[l]=="\x1B"?e=n[l]:n[l]=="\b"?a():i+=n[l]}return i&&(s.text=i+(e||""),o.push(s)),o}var B2,H2,q2,Rc=_(()=>{"use strict";Ne();B2={30:"black",31:"red",32:"green",33:"yellow",34:"blue",35:"magenta",36:"cyan",37:"white",90:"grey"},H2={40:"black",41:"red",42:"green",43:"yellow",44:"blue",45:"magenta",46:"cyan",47:"white"},q2={1:"bold",3:"italic",4:"underline",9:"strikethrough"}});var W2=y((tFe,Y2)=>{"use strict";Y2.exports=({onlyFirst:n=!1}={})=>{let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,n?void 0:"g")}});var jg=y((iFe,Z2)=>{"use strict";var Jye=W2();Z2.exports=n=>typeof n=="string"?n.replace(Jye(),""):n});function Ay(n,e={}){let t=[],i=[],r=[],o=0;for(let s of n){let a=t.length,{content:l,filetype:u}=s,c=s.highlights;if(u=="markdown"){let h=Uye(l,e);r.push(...h.codes.map(d=>(d.startLine=d.startLine+a,d.endLine=d.endLine+a,d))),i.push(...h.highlights.map(d=>(d.lnum=d.lnum+a,d))),t.push(...h.lines)}else{let h=l.trim().split(/\r?\n/);$ye.includes(s.filetype)?r.push({hlGroup:`Coc${u}Float`,startLine:a,endLine:a+h.length}):r.push({filetype:s.filetype,startLine:a,endLine:a+h.length}),t.push(...h)}if(Array.isArray(c)&&i.push(...c.map(h=>Object.assign({},h,{lnum:h.lnum+a}))),Array.isArray(s.active)){let h=Xye(l,a,s.active);h.length&&i.push(...h)}o!=n.length-1&&(i.push({lnum:t.length,hlGroup:"CocFloatDividingLine",colStart:0,colEnd:-1}),t.push("\u2500")),o=o+1}return{lines:t,highlights:i,codes:r}}function Xye(n,e,t){let i=[],[r,o]=t,s=n.split(/\r?\n/),a=0,l=!1;for(let u=0;uo){let h=V(c.slice(0,o-a));i.push({colStart:0,colEnd:h,lnum:u+e,hlGroup:"CocUnderline"}),l=!1;break}else{let h=V(c);i.push({colStart:0,colEnd:h,lnum:u+e,hlGroup:"CocUnderline"})}else if(a+c.length>r){l=!0;let h=V(c.slice(0,r-a));if(a+c.length>o){let d=V(c.slice(0,o-a));l=!1,i.push({colStart:h,colEnd:d,lnum:u+e,hlGroup:"CocUnderline"});break}else{let d=V(c);i.push({colStart:h,colEnd:d,lnum:u+e,hlGroup:"CocUnderline"})}}a=a+c.length+1}return i}function Uye(n,e){Ce.setOptions({renderer:new qT,gfm:!0,breaks:!0});let t=[],i=[],r=[],o=0,s=!1,a,l=0,u=Ce(n),c=qT.getLinks();u=u.replace(/\n\n/g,` +`).replace(/\s*$/,""),c.length&&(u=u+` `+c.join(` -`)),u=u.replace(/\s*$/,"");let h=u.split(/\n/);for(let d=0;d{"use strict";FH();_q();bc();Pe();Oq=C(dg()),hme=["Error","Warning","Info","Hint"],DRe=q()("markdown-index")});var ei,no=_(()=>{"use strict";ei=class{constructor(){this.tasks=[];this.count=1}sched(){this.count>0&&this.tasks.length>0&&(this.count--,this.tasks.shift()())}get busy(){return this.count==0}acquire(){return new Promise(e=>{let t=()=>{let i=!1;e(()=>{i||(i=!0,this.count++,this.sched())})};this.tasks.push(t),process.nextTick(this.sched.bind(this))})}use(e){return this.acquire().then(t=>e().then(i=>(t(),i)).catch(i=>{throw t(),i}))}}});var Mq,Nq,fme,RRe,ci,Jo=_(()=>{"use strict";Mq=C(Ei()),Nq=C(H());le();$0();z();no();Jt();fme=process.env.VIM_NODE_RPC=="1",RRe=q()("model-float"),ci=class{constructor(e){this.nvim=e;this.winid=0;this._bufnr=0;this.mutex=new ei;this.disposables=[];this.onCursorMoved=(0,Mq.default)(this._onCursorMoved.bind(this),100)}bindEvents(e,t){let i=["InsertLeave","InsertEnter","BufEnter"];for(let r of i)E.on(r,o=>{o!=this._bufnr&&this.close()},null,this.disposables);E.on("MenuPopupChanged",()=>{E.pumAlignTop==t&&this.close()},null,this.disposables),this.disposables.push(Nq.Disposable.create(()=>{this.onCursorMoved.clear()})),E.on("CursorMoved",this.onCursorMoved.bind(this,e),this,this.disposables),E.on("CursorMovedI",this.onCursorMoved.bind(this,e),this,this.disposables)}unbind(){this.disposables.length&&(Z(this.disposables),this.disposables=[])}_onCursorMoved(e,t,i){if(t!=this._bufnr&&!(t==this.targetBufnr&&Fe(i,this.cursor))&&(e||t!=this.targetBufnr||!E.insertMode)){this.close();return}}async create(e,t=!1,i=0){await this.show(e,{offsetX:i})}applyFloatConfig(e,t){for(let i of Object.keys(t)){if(i=="border"){t.border&&(e.border=[1,1,1,1]);continue}e[i]=t[i]}return e}async show(e,t={}){if(e.length==0||e.every(o=>o.content.length==0)){this.close();return}let i=Date.now(),r=await this.mutex.acquire();try{await this.createPopup(e,t,i),r()}catch(o){this.nvim.echoError(o),r()}}async createPopup(e,t,i){e=e.filter(p=>p.content.trim().length>0);let{lines:r,codes:o,highlights:s}=lb(e),a={codes:o,highlights:s,pumAlignTop:E.pumAlignTop,preferTop:typeof t.preferTop=="boolean"?t.preferTop:!1,offsetX:t.offsetX||0,title:t.title||"",close:t.close?1:0,rounded:t.rounded?1:0,modes:t.modes||["n","i","ic","s"]};fme||(typeof t.winblend=="number"&&(a.winblend=t.winblend),t.focusable!=null&&(a.focusable=t.focusable?1:0),t.shadow&&(a.shadow=1)),t.maxHeight&&(a.maxHeight=t.maxHeight),t.maxWidth&&(a.maxWidth=t.maxWidth),t.border&&!t.border.every(p=>p==0)&&(a.border=t.border),t.title&&!a.border&&(a.border=[1,1,1,1]),t.highlight&&(a.highlight=t.highlight),t.borderhighlight&&(a.borderhighlight=[t.borderhighlight]),t.cursorline&&(a.cursorline=1);let l=t.autoHide!=!1;l&&(a.autohide=1),this.unbind();let u=await this.nvim.call("coc#dialog#create_cursor_float",[this.winid,this._bufnr,r,a]);if(this.nvim.redrawVim(),!u||u.length==0||this.closeTs>i){let p=u&&u.length>0?u[2]:this.winid;p&&(this.winid=0,this.nvim.call("coc#float#close",[p],!0),this.nvim.redrawVim());return}let[c,h,d,g,f]=u;this.winid=d,this._bufnr=g,this.targetBufnr=c,this.cursor=h,this.bindEvents(l,f==1)}close(){let{winid:e,nvim:t}=this;this.closeTs=Date.now(),this.unbind(),e&&(this.winid=0,t.call("coc#float#close",[e],!0),t.redrawVim())}checkRetrigger(e){return!!(this.winid&&this.targetBufnr==e)}get bufnr(){return this._bufnr}get buffer(){return this.bufnr?this.nvim.createBuffer(this.bufnr):null}get window(){return this.winid?this.nvim.createWindow(this.winid):null}async activated(){return this.winid?await this.nvim.call("coc#float#valid",[this.winid])!=0:!1}dispose(){this.cursor=void 0,this.close()}}});var Hq=m((FRe,Bq)=>{Bq.exports=function(n,e){for(var t=[],i=0;i{"use strict";Zq.exports=Yq;function Yq(n,e,t){n instanceof RegExp&&(n=qq(n,t)),e instanceof RegExp&&(e=qq(e,t));var i=Wq(n,e,t);return i&&{start:i[0],end:i[1],pre:t.slice(0,i[0]),body:t.slice(i[0]+n.length,i[1]),post:t.slice(i[1]+e.length)}}function qq(n,e){var t=e.match(n);return t?t[0]:null}Yq.range=Wq;function Wq(n,e,t){var i,r,o,s,a,l=t.indexOf(n),u=t.indexOf(e,l+1),c=l;if(l>=0&&u>0){if(n===e)return[l,u];for(i=[],o=t.length;c>=0&&!a;)c==l?(i.push(c),l=t.indexOf(n,c+1)):i.length==1?a=[i.pop(),u]:(r=i.pop(),r=0?l:u;i.length&&(a=[o,s])}return a}});var Vq=m((jRe,zq)=>{var mme=Hq(),$q=Jq();zq.exports=vme;var Xq="\0SLASH"+Math.random()+"\0",Uq="\0OPEN"+Math.random()+"\0",U0="\0CLOSE"+Math.random()+"\0",Gq="\0COMMA"+Math.random()+"\0",Qq="\0PERIOD"+Math.random()+"\0";function X0(n){return parseInt(n,10)==n?parseInt(n,10):n.charCodeAt(0)}function bme(n){return n.split("\\\\").join(Xq).split("\\{").join(Uq).split("\\}").join(U0).split("\\,").join(Gq).split("\\.").join(Qq)}function yme(n){return n.split(Xq).join("\\").split(Uq).join("{").split(U0).join("}").split(Gq).join(",").split(Qq).join(".")}function Kq(n){if(!n)return[""];var e=[],t=$q("{","}",n);if(!t)return n.split(",");var i=t.pre,r=t.body,o=t.post,s=i.split(",");s[s.length-1]+="{"+r+"}";var a=Kq(o);return o.length&&(s[s.length-1]+=a.shift(),s.push.apply(s,a)),e.push.apply(e,s),e}function vme(n){return n?(n.substr(0,2)==="{}"&&(n="\\{\\}"+n.substr(2)),yc(bme(n),!0).map(yme)):[]}function wme(n){return"{"+n+"}"}function Dme(n){return/^-?0\d/.test(n)}function xme(n,e){return n<=e}function Cme(n,e){return n>=e}function yc(n,e){var t=[],i=$q("{","}",n);if(!i||/\$$/.test(i.pre))return[n];var r=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),o=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),s=r||o,a=i.body.indexOf(",")>=0;if(!s&&!a)return i.post.match(/,.*\}/)?(n=i.pre+"{"+i.body+U0+i.post,yc(n)):[n];var l;if(s)l=i.body.split(/\.\./);else if(l=Kq(i.body),l.length===1&&(l=yc(l[0],!1).map(wme),l.length===1)){var c=i.post.length?yc(i.post,!1):[""];return c.map(function(I){return i.pre+l[0]+I})}var u=i.pre,c=i.post.length?yc(i.post,!1):[""],h;if(s){var d=X0(l[0]),g=X0(l[1]),f=Math.max(l[0].length,l[1].length),p=l.length==3?Math.abs(X0(l[2])):1,b=xme,v=g0){var L=new Array(F+1).join("0");D<0?S="-"+L+S.slice(1):S=L+S}}h.push(S)}}else h=mme(l,function(N){return yc(N,!1)});for(var j=0;j{o2.exports=zn;zn.Minimatch=hi;var gg={sep:"/"};try{gg=require("path")}catch{}var K0=zn.GLOBSTAR=hi.GLOBSTAR={},Sme=Vq(),e2={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},G0="[^/]",Q0=G0+"*?",Tme="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",kme="(?:(?!(?:\\/|^)\\.).)*?",t2=Eme("().*{}+?[]^$\\!");function Eme(n){return n.split("").reduce(function(e,t){return e[t]=!0,e},{})}var n2=/\/+/;zn.filter=Pme;function Pme(n,e){return e=e||{},function(t,i,r){return zn(t,n,e)}}function i2(n,e){n=n||{},e=e||{};var t={};return Object.keys(e).forEach(function(i){t[i]=e[i]}),Object.keys(n).forEach(function(i){t[i]=n[i]}),t}zn.defaults=function(n){if(!n||!Object.keys(n).length)return zn;var e=zn,t=function(r,o,s){return e.minimatch(r,o,i2(n,s))};return t.Minimatch=function(r,o){return new e.Minimatch(r,i2(n,o))},t};hi.defaults=function(n){return!n||!Object.keys(n).length?hi:zn.defaults(n).Minimatch};function zn(n,e,t){if(typeof e!="string")throw new TypeError("glob pattern string required");return t||(t={}),!t.nocomment&&e.charAt(0)==="#"?!1:e.trim()===""?n==="":new hi(e,t).match(n)}function hi(n,e){if(!(this instanceof hi))return new hi(n,e);if(typeof n!="string")throw new TypeError("glob pattern string required");e||(e={}),n=n.trim(),gg.sep!=="/"&&(n=n.split(gg.sep).join("/")),this.options=e,this.set=[],this.pattern=n,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}hi.prototype.debug=function(){};hi.prototype.make=_me;function _me(){if(!this._made){var n=this.pattern,e=this.options;if(!e.nocomment&&n.charAt(0)==="#"){this.comment=!0;return}if(!n){this.empty=!0;return}this.parseNegate();var t=this.globSet=this.braceExpand();e.debug&&(this.debug=console.error),this.debug(this.pattern,t),t=this.globParts=t.map(function(i){return i.split(n2)}),this.debug(this.pattern,t),t=t.map(function(i,r,o){return i.map(this.parse,this)},this),this.debug(this.pattern,t),t=t.filter(function(i){return i.indexOf(!1)===-1}),this.debug(this.pattern,t),this.set=t}}hi.prototype.parseNegate=Rme;function Rme(){var n=this.pattern,e=!1,t=this.options,i=0;if(!t.nonegate){for(var r=0,o=n.length;r"u"?this.pattern:n,typeof n>"u")throw new TypeError("undefined pattern");return e.nobrace||!n.match(/\{.*\}/)?[n]:Sme(n)}hi.prototype.parse=Lme;var ub={};function Lme(n,e){if(n.length>1024*64)throw new TypeError("pattern is too long");var t=this.options;if(!t.noglobstar&&n==="**")return K0;if(n==="")return"";var i="",r=!!t.nocase,o=!1,s=[],a=[],l,u=!1,c=-1,h=-1,d=n.charAt(0)==="."?"":t.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",g=this;function f(){if(l){switch(l){case"*":i+=Q0,r=!0;break;case"?":i+=G0,r=!0;break;default:i+="\\"+l;break}g.debug("clearStateChar %j %j",l,i),l=!1}}for(var p=0,b=n.length,v;p-1;W--){var B=a[W],N=i.slice(0,B.reStart),I=i.slice(B.reStart,B.reEnd-8),M=i.slice(B.reEnd-8,B.reEnd),J=i.slice(B.reEnd);M+=J;var K=N.split("(").length-1,ae=J;for(p=0;p=0&&(r=n[o],!r);o--);for(o=0;o{"use strict";qq();N2();Rc();Ne();J2=x(jg()),$ye=["Error","Warning","Info","Hint"],aFe=W()("markdown-index")});var si,Do=_(()=>{"use strict";si=class{constructor(){this.tasks=[];this.count=1}sched(){this.count>0&&this.tasks.length>0&&(this.count--,this.tasks.shift()())}get busy(){return this.count==0}acquire(){return new Promise(e=>{let t=()=>{let i=!1;e(()=>{i||(i=!0,this.count++,this.sched())})};this.tasks.push(t),process.nextTick(this.sched.bind(this))})}use(e){return this.acquire().then(t=>e().then(i=>(t(),i)).catch(i=>{throw t(),i}))}}});var $2,X2,Gye,mFe,fi,cs=_(()=>{"use strict";$2=x(Oi()),X2=x(q());we();YT();re();Do();oi();Gye=process.env.VIM_NODE_RPC=="1",mFe=W()("model-float"),fi=class{constructor(e){this.nvim=e;this.winid=0;this._bufnr=0;this.mutex=new si;this.disposables=[];this.onCursorMoved=(0,$2.default)(this._onCursorMoved.bind(this),100)}bindEvents(e,t){let i=["InsertLeave","InsertEnter","BufEnter"];for(let r of i)P.on(r,o=>{o!=this._bufnr&&this.close()},null,this.disposables);P.on("MenuPopupChanged",()=>{P.pumAlignTop==t&&this.close()},null,this.disposables),this.disposables.push(X2.Disposable.create(()=>{this.onCursorMoved.clear()})),P.on("CursorMoved",this.onCursorMoved.bind(this,e),this,this.disposables),P.on("CursorMovedI",this.onCursorMoved.bind(this,e),this,this.disposables)}unbind(){this.disposables.length&&($(this.disposables),this.disposables=[])}_onCursorMoved(e,t,i){if(t!=this._bufnr&&!(t==this.targetBufnr&&Xe(i,this.cursor))&&(e||t!=this.targetBufnr||!P.insertMode)){this.close();return}}async create(e,t=!1,i=0){await this.show(e,{offsetX:i})}applyFloatConfig(e,t){for(let i of Object.keys(t)){if(i=="border"){t.border&&(e.border=[1,1,1,1]);continue}e[i]=t[i]}return e}async show(e,t={}){if(e.length==0||e.every(o=>o.content.length==0)){this.close();return}let i=Date.now(),r=await this.mutex.acquire();try{await this.createPopup(e,t,i),r()}catch(o){this.nvim.echoError(o),r()}}async createPopup(e,t,i){e=e.filter(f=>f.content.trim().length>0);let{lines:r,codes:o,highlights:s}=Ay(e),a={codes:o,highlights:s,pumAlignTop:P.pumAlignTop,preferTop:typeof t.preferTop=="boolean"?t.preferTop:!1,offsetX:t.offsetX||0,title:t.title||"",close:t.close?1:0,rounded:t.rounded?1:0,modes:t.modes||["n","i","ic","s"]};Gye||(typeof t.winblend=="number"&&(a.winblend=t.winblend),t.focusable!=null&&(a.focusable=t.focusable?1:0),t.shadow&&(a.shadow=1)),t.maxHeight&&(a.maxHeight=t.maxHeight),t.maxWidth&&(a.maxWidth=t.maxWidth),t.border&&!t.border.every(f=>f==0)&&(a.border=t.border,a.rounded=t.rounded?1:0),t.title&&!a.border&&(a.border=[1,1,1,1]),t.highlight&&(a.highlight=t.highlight),t.borderhighlight&&(a.borderhighlight=t.borderhighlight),t.cursorline&&(a.cursorline=1);let l=t.autoHide!=!1;l&&(a.autohide=1),this.unbind();let u=await this.nvim.call("coc#dialog#create_cursor_float",[this.winid,this._bufnr,r,a]);if(this.nvim.redrawVim(),!u||u.length==0||this.closeTs>i){let f=u&&u.length>0?u[2]:this.winid;f&&(this.winid=0,this.nvim.call("coc#float#close",[f],!0),this.nvim.redrawVim());return}let[c,h,d,g,p]=u;this.winid=d,this._bufnr=g,this.targetBufnr=c,this.cursor=h,this.bindEvents(l,p==1)}close(){let{winid:e,nvim:t}=this;this.closeTs=Date.now(),this.unbind(),e&&(this.winid=0,t.call("coc#float#close",[e],!0),t.redrawVim())}checkRetrigger(e){return!!(this.winid&&this.targetBufnr==e)}get bufnr(){return this._bufnr}get buffer(){return this.bufnr?this.nvim.createBuffer(this.bufnr):null}get window(){return this.winid?this.nvim.createWindow(this.winid):null}async activated(){return this.winid?await this.nvim.call("coc#float#valid",[this.winid])!=0:!1}dispose(){this.cursor=void 0,this.close()}}});var G2=y((bFe,U2)=>{U2.exports=function(n,e){for(var t=[],i=0;i{"use strict";V2.exports=Q2;function Q2(n,e,t){n instanceof RegExp&&(n=K2(n,t)),e instanceof RegExp&&(e=K2(e,t));var i=z2(n,e,t);return i&&{start:i[0],end:i[1],pre:t.slice(0,i[0]),body:t.slice(i[0]+n.length,i[1]),post:t.slice(i[1]+e.length)}}function K2(n,e){var t=e.match(n);return t?t[0]:null}Q2.range=z2;function z2(n,e,t){var i,r,o,s,a,l=t.indexOf(n),u=t.indexOf(e,l+1),c=l;if(l>=0&&u>0){if(n===e)return[l,u];for(i=[],o=t.length;c>=0&&!a;)c==l?(i.push(c),l=t.indexOf(n,c+1)):i.length==1?a=[i.pop(),u]:(r=i.pop(),r=0?l:u;i.length&&(a=[o,s])}return a}});var lY=y((wFe,aY)=>{var Qye=G2(),tY=eY();aY.exports=ebe;var iY="\0SLASH"+Math.random()+"\0",nY="\0OPEN"+Math.random()+"\0",ZT="\0CLOSE"+Math.random()+"\0",rY="\0COMMA"+Math.random()+"\0",oY="\0PERIOD"+Math.random()+"\0";function WT(n){return parseInt(n,10)==n?parseInt(n,10):n.charCodeAt(0)}function zye(n){return n.split("\\\\").join(iY).split("\\{").join(nY).split("\\}").join(ZT).split("\\,").join(rY).split("\\.").join(oY)}function Vye(n){return n.split(iY).join("\\").split(nY).join("{").split(ZT).join("}").split(rY).join(",").split(oY).join(".")}function sY(n){if(!n)return[""];var e=[],t=tY("{","}",n);if(!t)return n.split(",");var i=t.pre,r=t.body,o=t.post,s=i.split(",");s[s.length-1]+="{"+r+"}";var a=sY(o);return o.length&&(s[s.length-1]+=a.shift(),s.push.apply(s,a)),e.push.apply(e,s),e}function ebe(n){return n?(n.substr(0,2)==="{}"&&(n="\\{\\}"+n.substr(2)),Lc(zye(n),!0).map(Vye)):[]}function tbe(n){return"{"+n+"}"}function ibe(n){return/^-?0\d/.test(n)}function nbe(n,e){return n<=e}function rbe(n,e){return n>=e}function Lc(n,e){var t=[],i=tY("{","}",n);if(!i||/\$$/.test(i.pre))return[n];var r=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),o=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),s=r||o,a=i.body.indexOf(",")>=0;if(!s&&!a)return i.post.match(/,.*\}/)?(n=i.pre+"{"+i.body+ZT+i.post,Lc(n)):[n];var l;if(s)l=i.body.split(/\.\./);else if(l=sY(i.body),l.length===1&&(l=Lc(l[0],!1).map(tbe),l.length===1)){var c=i.post.length?Lc(i.post,!1):[""];return c.map(function(F){return i.pre+l[0]+F})}var u=i.pre,c=i.post.length?Lc(i.post,!1):[""],h;if(s){var d=WT(l[0]),g=WT(l[1]),p=Math.max(l[0].length,l[1].length),f=l.length==3?Math.abs(WT(l[2])):1,m=nbe,b=g0){var N=new Array(R+1).join("0");D<0?T="-"+N+T.slice(1):T=N+T}}h.push(T)}}else h=Qye(l,function(M){return Lc(M,!1)});for(var H=0;H{pY.exports=ur;ur.Minimatch=mi;var Ag={sep:"/"};try{Ag=require("path")}catch{}var XT=ur.GLOBSTAR=mi.GLOBSTAR={},obe=lY(),uY={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},JT="[^/]",$T=JT+"*?",sbe="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",abe="(?:(?!(?:\\/|^)\\.).)*?",cY=lbe("().*{}+?[]^$\\!");function lbe(n){return n.split("").reduce(function(e,t){return e[t]=!0,e},{})}var dY=/\/+/;ur.filter=ube;function ube(n,e){return e=e||{},function(t,i,r){return ur(t,n,e)}}function hY(n,e){n=n||{},e=e||{};var t={};return Object.keys(e).forEach(function(i){t[i]=e[i]}),Object.keys(n).forEach(function(i){t[i]=n[i]}),t}ur.defaults=function(n){if(!n||!Object.keys(n).length)return ur;var e=ur,t=function(r,o,s){return e.minimatch(r,o,hY(n,s))};return t.Minimatch=function(r,o){return new e.Minimatch(r,hY(n,o))},t};mi.defaults=function(n){return!n||!Object.keys(n).length?mi:ur.defaults(n).Minimatch};function ur(n,e,t){if(typeof e!="string")throw new TypeError("glob pattern string required");return t||(t={}),!t.nocomment&&e.charAt(0)==="#"?!1:e.trim()===""?n==="":new mi(e,t).match(n)}function mi(n,e){if(!(this instanceof mi))return new mi(n,e);if(typeof n!="string")throw new TypeError("glob pattern string required");e||(e={}),n=n.trim(),Ag.sep!=="/"&&(n=n.split(Ag.sep).join("/")),this.options=e,this.set=[],this.pattern=n,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}mi.prototype.debug=function(){};mi.prototype.make=cbe;function cbe(){if(!this._made){var n=this.pattern,e=this.options;if(!e.nocomment&&n.charAt(0)==="#"){this.comment=!0;return}if(!n){this.empty=!0;return}this.parseNegate();var t=this.globSet=this.braceExpand();e.debug&&(this.debug=console.error),this.debug(this.pattern,t),t=this.globParts=t.map(function(i){return i.split(dY)}),this.debug(this.pattern,t),t=t.map(function(i,r,o){return i.map(this.parse,this)},this),this.debug(this.pattern,t),t=t.filter(function(i){return i.indexOf(!1)===-1}),this.debug(this.pattern,t),this.set=t}}mi.prototype.parseNegate=hbe;function hbe(){var n=this.pattern,e=!1,t=this.options,i=0;if(!t.nonegate){for(var r=0,o=n.length;r"u"?this.pattern:n,typeof n>"u")throw new TypeError("undefined pattern");return e.nobrace||!n.match(/\{.*\}/)?[n]:obe(n)}mi.prototype.parse=dbe;var My={};function dbe(n,e){if(n.length>1024*64)throw new TypeError("pattern is too long");var t=this.options;if(!t.noglobstar&&n==="**")return XT;if(n==="")return"";var i="",r=!!t.nocase,o=!1,s=[],a=[],l,u=!1,c=-1,h=-1,d=n.charAt(0)==="."?"":t.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",g=this;function p(){if(l){switch(l){case"*":i+=$T,r=!0;break;case"?":i+=JT,r=!0;break;default:i+="\\"+l;break}g.debug("clearStateChar %j %j",l,i),l=!1}}for(var f=0,m=n.length,b;f-1;X--){var B=a[X],M=i.slice(0,B.reStart),F=i.slice(B.reStart,B.reEnd-8),O=i.slice(B.reEnd-8,B.reEnd),Z=i.slice(B.reEnd);O+=Z;var ie=M.split("(").length-1,ge=Z;for(f=0;f=0&&(r=n[o],!r);o--);for(o=0;o>> no match, partial?`,n,c,e,h),c===s))}var g;if(typeof l=="string"?(i.nocase?g=u.toLowerCase()===l.toLowerCase():g=u===l,this.debug("string match",l,u,g)):(g=u.match(l),this.debug("pattern match",l,u,g)),!g)return!1}if(r===s&&o===a)return!0;if(r===s)return t;if(o===a){var f=r===s-1&&n[r]==="";return f}throw new Error("wtf?")};function jme(n){return n.replace(/\\(.)/g,"$1")}function Ame(n){return n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var s2=m(z0=>{var bl=require("path"),Vs=process.platform==="win32",zs=require("fs"),Ome=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function Mme(){var n;if(Ome){var e=new Error;n=t}else n=i;return n;function t(r){r&&(e.message=r.message,r=e,i(r))}function i(r){if(r){if(process.throwDeprecation)throw r;if(!process.noDeprecation){var o="fs: missing callback "+(r.stack||r.message);process.traceDeprecation?console.trace(o):console.error(o)}}}}function Nme(n){return typeof n=="function"?n:Mme()}var ORe=bl.normalize;Vs?$o=/(.*?)(?:[\/\\]+|$)/g:$o=/(.*?)(?:[\/]+|$)/g;var $o;Vs?fg=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/:fg=/^[\/]*/;var fg;z0.realpathSync=function(e,t){if(e=bl.resolve(e),t&&Object.prototype.hasOwnProperty.call(t,e))return t[e];var i=e,r={},o={},s,a,l,u;c();function c(){var b=fg.exec(e);s=b[0].length,a=b[0],l=b[0],u="",Vs&&!o[l]&&(zs.lstatSync(l),o[l]=!0)}for(;s=e.length)return t&&(t[r]=e),i(null,e);$o.lastIndex=a;var b=$o.exec(e);return c=l,l+=b[0],u=c+b[1],a=$o.lastIndex,s[u]||t&&t[u]===u?process.nextTick(d):t&&Object.prototype.hasOwnProperty.call(t,u)?p(t[u]):zs.lstat(u,g)}function g(b,v){if(b)return i(b);if(!v.isSymbolicLink())return s[u]=!0,t&&(t[u]=u),process.nextTick(d);if(!Vs){var w=v.dev.toString(32)+":"+v.ino.toString(32);if(o.hasOwnProperty(w))return f(null,o[w],u)}zs.stat(u,function(D){if(D)return i(D);zs.readlink(u,function(S,F){Vs||(o[w]=F),f(S,F)})})}function f(b,v,w){if(b)return i(b);var D=bl.resolve(c,v);t&&(t[w]=D),p(D)}function p(b){e=bl.resolve(b,e.slice(a)),h()}}});var iT=m((NRe,c2)=>{c2.exports=ea;ea.realpath=ea;ea.sync=tT;ea.realpathSync=tT;ea.monkeypatch=Hme;ea.unmonkeypatch=qme;var vc=require("fs"),V0=vc.realpath,eT=vc.realpathSync,Bme=process.version,a2=/^v[0-5]\./.test(Bme),l2=s2();function u2(n){return n&&n.syscall==="realpath"&&(n.code==="ELOOP"||n.code==="ENOMEM"||n.code==="ENAMETOOLONG")}function ea(n,e,t){if(a2)return V0(n,e,t);typeof e=="function"&&(t=e,e=null),V0(n,e,function(i,r){u2(i)?l2.realpath(n,e,t):t(i,r)})}function tT(n,e){if(a2)return eT(n,e);try{return eT(n,e)}catch(t){if(u2(t))return l2.realpathSync(n,e);throw t}}function Hme(){vc.realpath=ea,vc.realpathSync=tT}function qme(){vc.realpath=V0,vc.realpathSync=eT}});var h2=m((BRe,nT)=>{typeof Object.create=="function"?nT.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:nT.exports=function(e,t){if(t){e.super_=t;var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e}}});var d2=m((HRe,oT)=>{try{if(rT=require("util"),typeof rT.inherits!="function")throw"";oT.exports=rT.inherits}catch{oT.exports=h2()}var rT});var hb=m((qRe,cb)=>{"use strict";function g2(n){return n.charAt(0)==="/"}function f2(n){var e=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,t=e.exec(n),i=t[1]||"",r=Boolean(i&&i.charAt(1)!==":");return Boolean(t[2]||r)}cb.exports=process.platform==="win32"?f2:g2;cb.exports.posix=g2;cb.exports.win32=f2});var aT=m(ta=>{ta.setopts=Xme;ta.ownProp=p2;ta.makeAbs=pg;ta.finish=Ume;ta.mark=Gme;ta.isIgnored=b2;ta.childrenIgnored=Qme;function p2(n,e){return Object.prototype.hasOwnProperty.call(n,e)}var Yme=require("fs"),wc=require("path"),Wme=Vn(),m2=hb(),sT=Wme.Minimatch;function Zme(n,e){return n.localeCompare(e,"en")}function Jme(n,e){n.ignore=e.ignore||[],Array.isArray(n.ignore)||(n.ignore=[n.ignore]),n.ignore.length&&(n.ignore=n.ignore.map($me))}function $me(n){var e=null;if(n.slice(-3)==="/**"){var t=n.replace(/(\/\*\*)+$/,"");e=new sT(t,{dot:!0})}return{matcher:new sT(n,{dot:!0}),gmatcher:e}}function Xme(n,e,t){if(t||(t={}),t.matchBase&&e.indexOf("/")===-1){if(t.noglobstar)throw new Error("base matching requires globstar");e="**/"+e}n.silent=!!t.silent,n.pattern=e,n.strict=t.strict!==!1,n.realpath=!!t.realpath,n.realpathCache=t.realpathCache||Object.create(null),n.follow=!!t.follow,n.dot=!!t.dot,n.mark=!!t.mark,n.nodir=!!t.nodir,n.nodir&&(n.mark=!0),n.sync=!!t.sync,n.nounique=!!t.nounique,n.nonull=!!t.nonull,n.nosort=!!t.nosort,n.nocase=!!t.nocase,n.stat=!!t.stat,n.noprocess=!!t.noprocess,n.absolute=!!t.absolute,n.fs=t.fs||Yme,n.maxLength=t.maxLength||1/0,n.cache=t.cache||Object.create(null),n.statCache=t.statCache||Object.create(null),n.symlinks=t.symlinks||Object.create(null),Jme(n,t),n.changedCwd=!1;var i=process.cwd();p2(t,"cwd")?(n.cwd=wc.resolve(t.cwd),n.changedCwd=n.cwd!==i):n.cwd=i,n.root=t.root||wc.resolve(n.cwd,"/"),n.root=wc.resolve(n.root),process.platform==="win32"&&(n.root=n.root.replace(/\\/g,"/")),n.cwdAbs=m2(n.cwd)?n.cwd:pg(n,n.cwd),process.platform==="win32"&&(n.cwdAbs=n.cwdAbs.replace(/\\/g,"/")),n.nomount=!!t.nomount,t.nonegate=!0,t.nocomment=!0,n.minimatch=new sT(e,t),n.options=n.minimatch.options}function Ume(n){for(var e=n.nounique,t=e?[]:Object.create(null),i=0,r=n.matches.length;i{D2.exports=w2;w2.GlobSync=ti;var Kme=iT(),y2=Vn(),WRe=y2.Minimatch,ZRe=gb().Glob,JRe=require("util"),lT=require("path"),v2=require("assert"),db=hb(),yl=aT(),zme=yl.setopts,uT=yl.ownProp,Vme=yl.childrenIgnored,ebe=yl.isIgnored;function w2(n,e){if(typeof e=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob -See: https://github.com/isaacs/node-glob/issues/167`);return new ti(n,e).found}function ti(n,e){if(!n)throw new Error("must provide pattern");if(typeof e=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob -See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof ti))return new ti(n,e);if(zme(this,n,e),this.noprocess)return this;var t=this.minimatch.set.length;this.matches=new Array(t);for(var i=0;ithis.maxLength)return!1;if(!this.stat&&uT(this.cache,e)){var s=this.cache[e];if(Array.isArray(s)&&(s="DIR"),!t||s==="DIR")return s;if(t&&s==="FILE")return!1}var i,r=this.statCache[e];if(!r){var o;try{o=this.fs.lstatSync(e)}catch(a){if(a&&(a.code==="ENOENT"||a.code==="ENOTDIR"))return this.statCache[e]=!1,!1}if(o&&o.isSymbolicLink())try{r=this.fs.statSync(e)}catch{r=o}else r=o}this.statCache[e]=r;var s=!0;return r&&(s=r.isDirectory()?"DIR":"FILE"),this.cache[e]=this.cache[e]||s,t&&s==="FILE"?!1:s};ti.prototype._mark=function(n){return yl.mark(this,n)};ti.prototype._makeAbs=function(n){return yl.makeAbs(this,n)}});var cT=m((XRe,S2)=>{S2.exports=C2;function C2(n,e){if(n&&e)return C2(n)(e);if(typeof n!="function")throw new TypeError("need wrapper function");return Object.keys(n).forEach(function(i){t[i]=n[i]}),t;function t(){for(var i=new Array(arguments.length),r=0;r{var T2=cT();hT.exports=T2(fb);hT.exports.strict=T2(k2);fb.proto=fb(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return fb(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return k2(this)},configurable:!0})});function fb(n){var e=function(){return e.called?e.value:(e.called=!0,e.value=n.apply(this,arguments))};return e.called=!1,e}function k2(n){var e=function(){if(e.called)throw new Error(e.onceError);return e.called=!0,e.value=n.apply(this,arguments)},t=n.name||"Function wrapped with `once`";return e.onceError=t+" shouldn't be called more than once",e.called=!1,e}});var P2=m((GRe,E2)=>{var tbe=cT(),mg=Object.create(null),ibe=dT();E2.exports=tbe(nbe);function nbe(n,e){return mg[n]?(mg[n].push(e),null):(mg[n]=[e],rbe(n))}function rbe(n){return ibe(function e(){var t=mg[n],i=t.length,r=obe(arguments);try{for(var o=0;oi?(t.splice(0,i),process.nextTick(function(){e.apply(null,r)})):delete mg[n]}})}function obe(n){for(var e=n.length,t=[],i=0;i{R2.exports=vl;var sbe=iT(),_2=Vn(),QRe=_2.Minimatch,abe=d2(),lbe=require("events").EventEmitter,gT=require("path"),fT=require("assert"),bg=hb(),mT=x2(),wl=aT(),ube=wl.setopts,pT=wl.ownProp,bT=P2(),KRe=require("util"),cbe=wl.childrenIgnored,hbe=wl.isIgnored,dbe=dT();function vl(n,e,t){if(typeof e=="function"&&(t=e,e={}),e||(e={}),e.sync){if(t)throw new TypeError("callback provided to sync glob");return mT(n,e)}return new Ue(n,e,t)}vl.sync=mT;var gbe=vl.GlobSync=mT.GlobSync;vl.glob=vl;function fbe(n,e){if(e===null||typeof e!="object")return n;for(var t=Object.keys(e),i=t.length;i--;)n[t[i]]=e[t[i]];return n}vl.hasMagic=function(n,e){var t=fbe({},e);t.noprocess=!0;var i=new Ue(n,t),r=i.minimatch.set;if(!n)return!1;if(r.length>1)return!0;for(var o=0;othis.maxLength)return e();if(!this.stat&&pT(this.cache,t)){var r=this.cache[t];if(Array.isArray(r)&&(r="DIR"),!i||r==="DIR")return e(null,r);if(i&&r==="FILE")return e()}var o,s=this.statCache[t];if(s!==void 0){if(s===!1)return e(null,s);var a=s.isDirectory()?"DIR":"FILE";return i&&a==="FILE"?e():e(null,a,s)}var l=this,u=bT("stat\0"+t,c);u&&l.fs.lstat(t,u);function c(h,d){if(d&&d.isSymbolicLink())return l.fs.stat(t,function(g,f){g?l._stat2(n,t,null,d,e):l._stat2(n,t,g,f,e)});l._stat2(n,t,h,d,e)}};Ue.prototype._stat2=function(n,e,t,i,r){if(t&&(t.code==="ENOENT"||t.code==="ENOTDIR"))return this.statCache[e]=!1,r();var o=n.slice(-1)==="/";if(this.statCache[e]=i,e.slice(-1)==="/"&&i&&!i.isDirectory())return r(null,!1,i);var s=!0;return i&&(s=i.isDirectory()?"DIR":"FILE"),this.cache[e]=this.cache[e]||s,o&&s==="FILE"?r():r(null,s,i)}});async function Ht(n){let e=null;try{e=await Fr.default.stat(n)}catch{}return e}async function j2(n){if(!n)return!1;let e=await Ht(n);if(!e||!e.isFile())return!1;let t=null;try{let{stdout:r}=await wT.default.promisify(vT.exec)("git rev-parse --show-toplevel",{cwd:Gi.default.dirname(n)});t=r.trim()}catch{}if(!t)return!1;let i=Gi.default.relative(t,n);try{let{stdout:r}=await wT.default.promisify(vT.exec)(`git check-ignore ${i}`,{cwd:t});return r.trim()==i}catch{}return!1}function yT(n,e=[]){return!e||!e.length?!1:e.some(t=>(0,DT.default)(n,t,{dot:!0}))}function mb(n,e,t,i=!1,r=!0,o=[]){let s=yg(n);if(r&&t&&Ae(t,s,!0)&&!yT(t,o)&&pb(t,e))return t;let a=s.split(Gi.default.sep);if(i){for(;a.length>0;){let l=a.join(Gi.default.sep);if(!yT(l,o)&&pb(l,e))return l;a.pop()}return null}else{let l=[a.shift()];for(let u of a){l.push(u);let c=l.join(Gi.default.sep);if(!yT(c,o)&&pb(c,e))return c}return null}}async function A2(n,e,t=500){return new Promise((i,r)=>{let o=setTimeout(()=>{a.abort(),i(!1)},t),s=!1,a=(0,I2.default)(e,{nosort:!0,dot:!0,cwd:n,nodir:!0,absolute:!1},l=>{if(clearTimeout(o),l)return r(l);i(s)});a.on("match",()=>{clearTimeout(o),s=!0,a.abort(),i(!0)}),a.on("end",()=>{clearTimeout(o),i(s)})})}function pb(n,e){try{let t=Fr.default.readdirSync(n);for(let i of e)if(i.includes("*")?DT.default.match(t,i,{nobrace:!0,noext:!0,nocomment:!0,nonegate:!0,dot:!0}).length!==0:t.includes(i))return!0}catch{}return!1}function Dc(n,e){let t=Gi.default.parse(e).root,i=Array.isArray(n)?n:[n];for(;e&&e!==t;){if(pb(e,i))for(let o of i){let s=Gi.default.join(e,o);if(Fr.default.existsSync(s))return s}e=Gi.default.dirname(e)}return null}function xc(n,e){return new Promise((t,i)=>{Fr.default.readFile(n,e,(r,o)=>{r&&i(r),t(o)})})}function O2(n){let e,t=0;return new Promise((i,r)=>{Fr.default.createReadStream(n).on("error",o=>r(o)).on("data",o=>{for(e=0;ei(t))})}function ia(n,e,t){if(!Fr.default.existsSync(n))return Promise.reject(new Error(`file does not exist: ${n}`));let i=[],r=Fr.default.createReadStream(n,{encoding:"utf8"}),o=xT.default.createInterface({input:r,crlfDelay:1/0,terminal:!1}),s=0;return new Promise((a,l)=>{o.on("line",u=>{s>=e&&s<=t&&i.push(u),s==t&&o.close(),s=s+1}),o.on("close",()=>{a(i),r.close()}),o.on("error",l)})}function M2(n,e){if(!Fr.default.existsSync(n))return Promise.reject(new Error(`file does not exist: ${n}`));let t=Fr.default.createReadStream(n,{encoding:"utf8"}),i=xT.default.createInterface({input:t,crlfDelay:1/0,terminal:!1}),r=0;return new Promise((o,s)=>{i.on("line",a=>{if(r==e){r==0&&a.startsWith("\uFEFF")&&(a=a.slice(1)),i.close(),t.close(),o(a);return}r=r+1}),i.on("error",s)})}function ii(n,e,t){return t=typeof t=="boolean"?t:Xi||sc,!n||!e?!1:t?n.toLowerCase()===e.toLowerCase():n===e}function L2(n,e){return Xi||sc?n.toLowerCase().startsWith(e.toLowerCase()):n.startsWith(e)}async function bb(n,e){await Fr.default.writeFile(n,e,{encoding:"utf8"})}function vg(n){return n.startsWith("file:")}function Ae(n,e,t=!1){let i=yg(Gi.default.resolve(Gi.default.normalize(n))),r=yg(Gi.default.resolve(Gi.default.normalize(e)));return i=="//"&&(i="/"),ii(i,r)?!!t:i.endsWith(Gi.default.sep)?L2(r,i):L2(r,i)&&r[i.length]==Gi.default.sep}function yg(n,e=F2.default.platform()){return e!="win32"||n[1]!=":"?n:n[0].toUpperCase()+n.slice(1)}var vT,Fr,DT,F2,Gi,xT,wT,I2,VRe,Je=_(()=>{"use strict";vT=require("child_process"),Fr=C(Rn()),DT=C(Vn()),F2=C(require("os")),Gi=C(require("path")),xT=C(require("readline")),wT=C(require("util")),I2=C(gb());ac();VRe=q()("util-fs")});function Pi(n,e){return ut(n.start,e)===0&&ut(n.end,e)===0}function N2(n,e){return n.line===e.line&&n.character===e.character}function B2(n,e){let{start:t,end:i}=n;if(t.line>i.line||t.line===i.line&&t.character>i.character){let r=t;t=i,i=r}return t=Cc.Position.create(Math.max(0,t.line),Math.max(0,t.character)),i=Cc.Position.create(Math.max(0,i.line),Math.max(0,i.character)),{start:t,end:i}}function yb(n,e){return De(n.end,e.start)==0||De(e.end,n.start)==0}function Sc(n,e){let{start:t,end:i}=n;return!(De(i,e.start)<=0||De(t,e.end)>=0)}function Dl(n,e){return!!(ut(n.start,e)==0||ut(n.end,e)==0||Pi(e,n))}function H2(n,e){let{line:t,character:i}=e,{start:r,end:o}=n,s=o.line==r.line?o.character+i:o.character;return Cc.Range.create(r.line+t,i+r.character,o.line+t,s)}function q2(n,e){let{start:t,end:i}=e;return n>=t.line&&n<=i.line}function Ct(n){let{start:e,end:t}=n;return e.line==t.line&&e.character==t.character}function ut(n,e){let{start:t,end:i}=e;return De(n,t)<0?-1:De(n,i)>0?1:0}function De(n,e){return n.line>e.line||e.line==n.line&&n.character>e.character?1:e.line==n.line&&n.character==e.character?0:-1}function Y2(n){return n.start.line==n.end.line}function _i(n,e){let t=e.split(/\r?\n/),i=t.length,r=t[i-1],o=i==1?n.character+e.length:r.length;return Cc.Position.create(n.line+i-1,o)}var Cc,yt=_(()=>{"use strict";Cc=C(H())});var tLe,vb,W2=_(()=>{"use strict";tLe=q()("outpubChannel"),vb=class{constructor(e,t,i){this.name=e;this.nvim=t;this.onDispose=i;this.lines=[""];this._disposed=!1;this.created=!1;if(!/^[\w\s-.]+$/.test(e))throw new Error(`Invalid channel name "${e}", only word characters and white space allowed.`)}get content(){return this.lines.join(` +>>> no match, partial?`,n,c,e,h),c===s))}var g;if(typeof l=="string"?(i.nocase?g=u.toLowerCase()===l.toLowerCase():g=u===l,this.debug("string match",l,u,g)):(g=u.match(l),this.debug("pattern match",l,u,g)),!g)return!1}if(r===s&&o===a)return!0;if(r===s)return t;if(o===a){var p=r===s-1&&n[r]==="";return p}throw new Error("wtf?")};function fbe(n){return n.replace(/\\(.)/g,"$1")}function mbe(n){return n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var fY=y(UT=>{var Fl=require("path"),da=process.platform==="win32",ha=require("fs"),ybe=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function bbe(){var n;if(ybe){var e=new Error;n=t}else n=i;return n;function t(r){r&&(e.message=r.message,r=e,i(r))}function i(r){if(r){if(process.throwDeprecation)throw r;if(!process.noDeprecation){var o="fs: missing callback "+(r.stack||r.message);process.traceDeprecation?console.trace(o):console.error(o)}}}}function vbe(n){return typeof n=="function"?n:bbe()}var CFe=Fl.normalize;da?hs=/(.*?)(?:[\/\\]+|$)/g:hs=/(.*?)(?:[\/]+|$)/g;var hs;da?Mg=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/:Mg=/^[\/]*/;var Mg;UT.realpathSync=function(e,t){if(e=Fl.resolve(e),t&&Object.prototype.hasOwnProperty.call(t,e))return t[e];var i=e,r={},o={},s,a,l,u;c();function c(){var m=Mg.exec(e);s=m[0].length,a=m[0],l=m[0],u="",da&&!o[l]&&(ha.lstatSync(l),o[l]=!0)}for(;s=e.length)return t&&(t[r]=e),i(null,e);hs.lastIndex=a;var m=hs.exec(e);return c=l,l+=m[0],u=c+m[1],a=hs.lastIndex,s[u]||t&&t[u]===u?process.nextTick(d):t&&Object.prototype.hasOwnProperty.call(t,u)?f(t[u]):ha.lstat(u,g)}function g(m,b){if(m)return i(m);if(!b.isSymbolicLink())return s[u]=!0,t&&(t[u]=u),process.nextTick(d);if(!da){var w=b.dev.toString(32)+":"+b.ino.toString(32);if(o.hasOwnProperty(w))return p(null,o[w],u)}ha.stat(u,function(D){if(D)return i(D);ha.readlink(u,function(T,R){da||(o[w]=R),p(T,R)})})}function p(m,b,w){if(m)return i(m);var D=Fl.resolve(c,b);t&&(t[w]=D),f(D)}function f(m){e=Fl.resolve(m,e.slice(a)),h()}}});var zT=y((SFe,vY)=>{vY.exports=ga;ga.realpath=ga;ga.sync=QT;ga.realpathSync=QT;ga.monkeypatch=Dbe;ga.unmonkeypatch=Cbe;var Fc=require("fs"),GT=Fc.realpath,KT=Fc.realpathSync,wbe=process.version,mY=/^v[0-5]\./.test(wbe),yY=fY();function bY(n){return n&&n.syscall==="realpath"&&(n.code==="ELOOP"||n.code==="ENOMEM"||n.code==="ENAMETOOLONG")}function ga(n,e,t){if(mY)return GT(n,e,t);typeof e=="function"&&(t=e,e=null),GT(n,e,function(i,r){bY(i)?yY.realpath(n,e,t):t(i,r)})}function QT(n,e){if(mY)return KT(n,e);try{return KT(n,e)}catch(t){if(bY(t))return yY.realpathSync(n,e);throw t}}function Dbe(){Fc.realpath=ga,Fc.realpathSync=QT}function Cbe(){Fc.realpath=GT,Fc.realpathSync=KT}});var wY=y((TFe,VT)=>{typeof Object.create=="function"?VT.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:VT.exports=function(e,t){if(t){e.super_=t;var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e}}});var DY=y((kFe,tk)=>{try{if(ek=require("util"),typeof ek.inherits!="function")throw"";tk.exports=ek.inherits}catch{tk.exports=wY()}var ek});var Ny=y((EFe,Oy)=>{"use strict";function CY(n){return n.charAt(0)==="/"}function xY(n){var e=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,t=e.exec(n),i=t[1]||"",r=Boolean(i&&i.charAt(1)!==":");return Boolean(t[2]||r)}Oy.exports=process.platform==="win32"?xY:CY;Oy.exports.posix=CY;Oy.exports.win32=xY});var nk=y(pa=>{pa.setopts=Pbe;pa.ownProp=SY;pa.makeAbs=Og;pa.finish=_be;pa.mark=Rbe;pa.isIgnored=kY;pa.childrenIgnored=Lbe;function SY(n,e){return Object.prototype.hasOwnProperty.call(n,e)}var xbe=require("fs"),Ic=require("path"),Sbe=Yn(),TY=Ny(),ik=Sbe.Minimatch;function Tbe(n,e){return n.localeCompare(e,"en")}function kbe(n,e){n.ignore=e.ignore||[],Array.isArray(n.ignore)||(n.ignore=[n.ignore]),n.ignore.length&&(n.ignore=n.ignore.map(Ebe))}function Ebe(n){var e=null;if(n.slice(-3)==="/**"){var t=n.replace(/(\/\*\*)+$/,"");e=new ik(t,{dot:!0})}return{matcher:new ik(n,{dot:!0}),gmatcher:e}}function Pbe(n,e,t){if(t||(t={}),t.matchBase&&e.indexOf("/")===-1){if(t.noglobstar)throw new Error("base matching requires globstar");e="**/"+e}n.silent=!!t.silent,n.pattern=e,n.strict=t.strict!==!1,n.realpath=!!t.realpath,n.realpathCache=t.realpathCache||Object.create(null),n.follow=!!t.follow,n.dot=!!t.dot,n.mark=!!t.mark,n.nodir=!!t.nodir,n.nodir&&(n.mark=!0),n.sync=!!t.sync,n.nounique=!!t.nounique,n.nonull=!!t.nonull,n.nosort=!!t.nosort,n.nocase=!!t.nocase,n.stat=!!t.stat,n.noprocess=!!t.noprocess,n.absolute=!!t.absolute,n.fs=t.fs||xbe,n.maxLength=t.maxLength||1/0,n.cache=t.cache||Object.create(null),n.statCache=t.statCache||Object.create(null),n.symlinks=t.symlinks||Object.create(null),kbe(n,t),n.changedCwd=!1;var i=process.cwd();SY(t,"cwd")?(n.cwd=Ic.resolve(t.cwd),n.changedCwd=n.cwd!==i):n.cwd=i,n.root=t.root||Ic.resolve(n.cwd,"/"),n.root=Ic.resolve(n.root),process.platform==="win32"&&(n.root=n.root.replace(/\\/g,"/")),n.cwdAbs=TY(n.cwd)?n.cwd:Og(n,n.cwd),process.platform==="win32"&&(n.cwdAbs=n.cwdAbs.replace(/\\/g,"/")),n.nomount=!!t.nomount,t.nonegate=!0,t.nocomment=!0,n.minimatch=new ik(e,t),n.options=n.minimatch.options}function _be(n){for(var e=n.nounique,t=e?[]:Object.create(null),i=0,r=n.matches.length;i{RY.exports=_Y;_Y.GlobSync=ai;var Fbe=zT(),EY=Yn(),_Fe=EY.Minimatch,RFe=Hy().Glob,LFe=require("util"),rk=require("path"),PY=require("assert"),By=Ny(),Il=nk(),Ibe=Il.setopts,ok=Il.ownProp,jbe=Il.childrenIgnored,Abe=Il.isIgnored;function _Y(n,e){if(typeof e=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob +See: https://github.com/isaacs/node-glob/issues/167`);return new ai(n,e).found}function ai(n,e){if(!n)throw new Error("must provide pattern");if(typeof e=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob +See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof ai))return new ai(n,e);if(Ibe(this,n,e),this.noprocess)return this;var t=this.minimatch.set.length;this.matches=new Array(t);for(var i=0;ithis.maxLength)return!1;if(!this.stat&&ok(this.cache,e)){var s=this.cache[e];if(Array.isArray(s)&&(s="DIR"),!t||s==="DIR")return s;if(t&&s==="FILE")return!1}var i,r=this.statCache[e];if(!r){var o;try{o=this.fs.lstatSync(e)}catch(a){if(a&&(a.code==="ENOENT"||a.code==="ENOTDIR"))return this.statCache[e]=!1,!1}if(o&&o.isSymbolicLink())try{r=this.fs.statSync(e)}catch{r=o}else r=o}this.statCache[e]=r;var s=!0;return r&&(s=r.isDirectory()?"DIR":"FILE"),this.cache[e]=this.cache[e]||s,t&&s==="FILE"?!1:s};ai.prototype._mark=function(n){return Il.mark(this,n)};ai.prototype._makeAbs=function(n){return Il.makeAbs(this,n)}});var sk=y((IFe,IY)=>{IY.exports=FY;function FY(n,e){if(n&&e)return FY(n)(e);if(typeof n!="function")throw new TypeError("need wrapper function");return Object.keys(n).forEach(function(i){t[i]=n[i]}),t;function t(){for(var i=new Array(arguments.length),r=0;r{var jY=sk();ak.exports=jY(qy);ak.exports.strict=jY(AY);qy.proto=qy(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return qy(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return AY(this)},configurable:!0})});function qy(n){var e=function(){return e.called?e.value:(e.called=!0,e.value=n.apply(this,arguments))};return e.called=!1,e}function AY(n){var e=function(){if(e.called)throw new Error(e.onceError);return e.called=!0,e.value=n.apply(this,arguments)},t=n.name||"Function wrapped with `once`";return e.onceError=t+" shouldn't be called more than once",e.called=!1,e}});var OY=y((AFe,MY)=>{var Mbe=sk(),Ng=Object.create(null),Obe=lk();MY.exports=Mbe(Nbe);function Nbe(n,e){return Ng[n]?(Ng[n].push(e),null):(Ng[n]=[e],Bbe(n))}function Bbe(n){return Obe(function e(){var t=Ng[n],i=t.length,r=Hbe(arguments);try{for(var o=0;oi?(t.splice(0,i),process.nextTick(function(){e.apply(null,r)})):delete Ng[n]}})}function Hbe(n){for(var e=n.length,t=[],i=0;i{BY.exports=jl;var qbe=zT(),NY=Yn(),MFe=NY.Minimatch,Ybe=DY(),Wbe=require("events").EventEmitter,uk=require("path"),ck=require("assert"),Bg=Ny(),dk=LY(),Al=nk(),Zbe=Al.setopts,hk=Al.ownProp,gk=OY(),OFe=require("util"),Jbe=Al.childrenIgnored,$be=Al.isIgnored,Xbe=lk();function jl(n,e,t){if(typeof e=="function"&&(t=e,e={}),e||(e={}),e.sync){if(t)throw new TypeError("callback provided to sync glob");return dk(n,e)}return new it(n,e,t)}jl.sync=dk;var Ube=jl.GlobSync=dk.GlobSync;jl.glob=jl;function Gbe(n,e){if(e===null||typeof e!="object")return n;for(var t=Object.keys(e),i=t.length;i--;)n[t[i]]=e[t[i]];return n}jl.hasMagic=function(n,e){var t=Gbe({},e);t.noprocess=!0;var i=new it(n,t),r=i.minimatch.set;if(!n)return!1;if(r.length>1)return!0;for(var o=0;othis.maxLength)return e();if(!this.stat&&hk(this.cache,t)){var r=this.cache[t];if(Array.isArray(r)&&(r="DIR"),!i||r==="DIR")return e(null,r);if(i&&r==="FILE")return e()}var o,s=this.statCache[t];if(s!==void 0){if(s===!1)return e(null,s);var a=s.isDirectory()?"DIR":"FILE";return i&&a==="FILE"?e():e(null,a,s)}var l=this,u=gk("stat\0"+t,c);u&&l.fs.lstat(t,u);function c(h,d){if(d&&d.isSymbolicLink())return l.fs.stat(t,function(g,p){g?l._stat2(n,t,null,d,e):l._stat2(n,t,g,p,e)});l._stat2(n,t,h,d,e)}};it.prototype._stat2=function(n,e,t,i,r){if(t&&(t.code==="ENOENT"||t.code==="ENOTDIR"))return this.statCache[e]=!1,r();var o=n.slice(-1)==="/";if(this.statCache[e]=i,e.slice(-1)==="/"&&i&&!i.isDirectory())return r(null,!1,i);var s=!0;return i&&(s=i.isDirectory()?"DIR":"FILE"),this.cache[e]=this.cache[e]||s,o&&s==="FILE"?r():r(null,s,i)}});async function $t(n){let e=null;try{e=await Jr.default.stat(n)}catch{}return e}async function WY(n){if(!n)return!1;let e=await $t(n);if(!e||!e.isFile())return!1;let t=null;try{let{stdout:r}=await mk.default.promisify(fk.exec)("git rev-parse --show-toplevel",{cwd:un.default.dirname(n)});t=r.trim()}catch{}if(!t)return!1;let i=un.default.relative(t,n);try{let{stdout:r}=await mk.default.promisify(fk.exec)(`git check-ignore ${i}`,{cwd:t});return r.trim()==i}catch{}return!1}function pk(n,e=[]){return!e||!e.length?!1:e.some(t=>(0,yk.default)(n,t,{dot:!0}))}function Wy(n,e,t,i=!1,r=!0,o=[]){let s=Hg(n);if(r&&t&&Je(t,s,!0)&&!pk(t,o)&&Yy(t,e))return t;let a=s.split(un.default.sep);if(i){for(;a.length>0;){let l=a.join(un.default.sep);if(!pk(l,o)&&Yy(l,e))return l;a.pop()}return null}else{let l=[a.shift()];for(let u of a){l.push(u);let c=l.join(un.default.sep);if(!pk(c,o)&&Yy(c,e))return c}return null}}async function ZY(n,e,t=500){return new Promise((i,r)=>{let o=setTimeout(()=>{a.abort(),i(!1)},t),s=!1,a=(0,YY.default)(e,{nosort:!0,dot:!0,cwd:n,nodir:!0,absolute:!1},l=>{if(clearTimeout(o),l)return r(l);i(s)});a.on("match",()=>{clearTimeout(o),s=!0,a.abort(),i(!0)}),a.on("end",()=>{clearTimeout(o),i(s)})})}function Yy(n,e){try{let t=Jr.default.readdirSync(n);for(let i of e)if(i.includes("*")?yk.default.match(t,i,{nobrace:!0,noext:!0,nocomment:!0,nonegate:!0,dot:!0}).length!==0:t.includes(i))return!0}catch{}return!1}function jc(n,e){let t=un.default.parse(e).root,i=Array.isArray(n)?n:[n];for(;e&&e!==t;){if(Yy(e,i))for(let o of i){let s=un.default.join(e,o);if(Jr.default.existsSync(s))return s}e=un.default.dirname(e)}return null}function Ac(n,e){return new Promise((t,i)=>{Jr.default.readFile(n,e,(r,o)=>{r&&i(r),t(o)})})}function JY(n){let e,t=0;return new Promise((i,r)=>{Jr.default.createReadStream(n).on("error",o=>r(o)).on("data",o=>{for(e=0;ei(t))})}function fa(n,e,t){if(!Jr.default.existsSync(n))return Promise.reject(new Error(`file does not exist: ${n}`));let i=[],r=Jr.default.createReadStream(n,{encoding:"utf8"}),o=bk.default.createInterface({input:r,crlfDelay:1/0,terminal:!1}),s=0;return new Promise((a,l)=>{o.on("line",u=>{s>=e&&s<=t&&i.push(u),s==t&&o.close(),s=s+1}),o.on("close",()=>{a(i),r.close()}),o.on("error",l)})}function $Y(n,e){if(!Jr.default.existsSync(n))return Promise.reject(new Error(`file does not exist: ${n}`));let t=Jr.default.createReadStream(n,{encoding:"utf8"}),i=bk.default.createInterface({input:t,crlfDelay:1/0,terminal:!1}),r=0;return new Promise((o,s)=>{i.on("line",a=>{if(r==e){r==0&&a.startsWith("\uFEFF")&&(a=a.slice(1)),i.close(),t.close(),o(a);return}r=r+1}),i.on("error",s)})}function li(n,e,t){return t=typeof t=="boolean"?t:an||Dc,!n||!e?!1:t?n.toLowerCase()===e.toLowerCase():n===e}function HY(n,e){return an||Dc?n.toLowerCase().startsWith(e.toLowerCase()):n.startsWith(e)}async function Zy(n,e){await Jr.default.writeFile(n,e,{encoding:"utf8"})}function qg(n){return n.startsWith("file:")}function Je(n,e,t=!1){let i=Hg(un.default.resolve(un.default.normalize(n))),r=Hg(un.default.resolve(un.default.normalize(e)));return i=="//"&&(i="/"),li(i,r)?!!t:i.endsWith(un.default.sep)?HY(r,i):HY(r,i)&&r[i.length]==un.default.sep}function Hg(n,e=qY.default.platform()){return e!="win32"||n[1]!=":"?n:n[0].toUpperCase()+n.slice(1)}var fk,Jr,yk,qY,un,bk,mk,YY,BFe,et=_(()=>{"use strict";fk=require("child_process"),Jr=x(Bn()),yk=x(Yn()),qY=x(require("os")),un=x(require("path")),bk=x(require("readline")),mk=x(require("util")),YY=x(Hy());Cc();BFe=W()("util-fs")});function Ni(n,e){return mt(n.start,e)===0&&mt(n.end,e)===0}function XY(n,e){return n.line===e.line&&n.character===e.character}function UY(n,e){let{start:t,end:i}=n;if(t.line>i.line||t.line===i.line&&t.character>i.character){let r=t;t=i,i=r}return t=Mc.Position.create(Math.max(0,t.line),Math.max(0,t.character)),i=Mc.Position.create(Math.max(0,i.line),Math.max(0,i.character)),{start:t,end:i}}function Jy(n,e){return Fe(n.end,e.start)==0||Fe(e.end,n.start)==0}function Oc(n,e){let{start:t,end:i}=n;return!(Fe(i,e.start)<=0||Fe(t,e.end)>=0)}function Ml(n,e){return!!(mt(n.start,e)==0||mt(n.end,e)==0||Ni(e,n))}function GY(n,e){let{line:t,character:i}=e,{start:r,end:o}=n,s=o.line==r.line?o.character+i:o.character;return Mc.Range.create(r.line+t,i+r.character,o.line+t,s)}function KY(n,e){let{start:t,end:i}=e;return n>=t.line&&n<=i.line}function jt(n){let{start:e,end:t}=n;return e.line==t.line&&e.character==t.character}function mt(n,e){let{start:t,end:i}=e;return Fe(n,t)<0?-1:Fe(n,i)>0?1:0}function Fe(n,e){return n.line>e.line||e.line==n.line&&n.character>e.character?1:e.line==n.line&&n.character==e.character?0:-1}function QY(n){return n.start.line==n.end.line}function Bi(n,e){let t=e.split(/\r?\n/),i=t.length,r=t[i-1],o=i==1?n.character+e.length:r.length;return Mc.Position.create(n.line+i-1,o)}var Mc,_t=_(()=>{"use strict";Mc=x(q())});var qFe,$y,zY=_(()=>{"use strict";qFe=W()("outpubChannel"),$y=class{constructor(e,t,i){this.name=e;this.nvim=t;this.onDispose=i;this.lines=[""];this._disposed=!1;this.created=!1;if(!/^[\w\s-.]+$/.test(e))throw new Error(`Invalid channel name "${e}", only word characters and white space allowed.`)}get content(){return this.lines.join(` `)}_append(e){let{nvim:t}=this,i=this.lines.length-1,r=e.split(/\r?\n/),o=this.lines[i]+r[0];this.lines[i]=o;let s=r.slice(1);this.lines=this.lines.concat(s),this.created&&(t.pauseNotification(),t.call("setbufline",[this.bufname,"$",o],!0),s.length&&t.call("appendbufline",[this.bufname,"$",s],!0),t.resumeNotification(!1,!0))}append(e){!this.validate()||this._append(e)}appendLine(e){!this.validate()||this._append(e+` -`)}clear(e){if(!this.validate())return;let{nvim:t}=this;this.lines=e?this.lines.slice(-e):[],this.created&&(t.pauseNotification(),t.call("deletebufline",[this.bufname,1,"$"],!0),this.lines.length&&t.call("appendbufline",[this.bufname,"$",this.lines],!0),t.resumeNotification(!0,!0))}hide(){this.created=!1,this.nvim.command(`exe 'silent! bd! '.fnameescape('${this.bufname}')`,!0)}get bufname(){return`output:///${this.name}`}show(e,t="vs"){let{nvim:i}=this;i.pauseNotification(),i.command(`exe '${t} '.fnameescape('${this.bufname}')`,!0),e&&i.command("wincmd p",!0),i.resumeNotification(!0,!0),this.created=!0}validate(){return!this._disposed}dispose(){this.onDispose&&this.onDispose(),this._disposed=!0,this.hide(),this.lines=[]}}});var oLe,Z2,Xo,wb=_(()=>{"use strict";le();W2();oLe=q()("core-channels"),Z2=class{constructor(){this.outputChannels=new Map;this.bufnrs=new Map;this.disposable=E.on("BufUnload",e=>{let t=this.bufnrs.get(e);if(t){let i=this.outputChannels.get(t);i&&(i.created=!1)}})}getProvider(e){return{onDidChange:null,provideTextDocumentContent:async i=>{let r=this.get(i.path.slice(1));if(!r)return"";e.pauseNotification(),e.call("bufnr",["%"],!0),e.command("setlocal nospell nofoldenable nowrap noswapfile",!0),e.command("setlocal buftype=nofile bufhidden=hide",!0),e.command("setfiletype log",!0);let o=await e.resumeNotification();return this.bufnrs.set(o[0][0],r.name),r.created=!0,r.content}}}get names(){return Array.from(this.outputChannels.keys())}get(e){return this.outputChannels.get(e)}create(e,t){if(this.outputChannels.has(e))return this.outputChannels.get(e);let i=new vb(e,t,()=>{this.outputChannels.delete(e)});return this.outputChannels.set(e,i),i}show(e,t,i){let r=this.outputChannels.get(e);!r||r.show(i,t)}dispose(){this.disposable.dispose();for(let e of this.outputChannels.values())e.dispose();this.outputChannels.clear()}},Xo=new Z2});var aLe,Db,J2=_(()=>{"use strict";aLe=q()("model-terminal"),Db=class{constructor(e,t,i,r,o){this.cmd=e;this.args=t;this.nvim=i;this._name=r;this.strictEnv=o;this.pid=0}async start(e,t){let{nvim:i}=this,r=[this.cmd,...this.args],[o,s]=await i.call("coc#terminal#start",[r,e,t||{},!!this.strictEnv]);this.bufnr=o,this.pid=s}onExit(e){this.exitStatus={code:e===-1?void 0:e}}get name(){return this._name||this.cmd}get processId(){return Promise.resolve(this.pid)}sendText(e,t=!0){!this.bufnr||this.nvim.call("coc#terminal#send",[this.bufnr,e,t],!0)}async show(e){let{bufnr:t,nvim:i}=this;if(!t)return;let[r,o,s]=await i.eval(`[bufloaded(${t}),bufwinid(${t}),win_getid()]`);return r?(s==o||(i.pauseNotification(),o==-1?(i.command(`below ${t}sb`,!0),i.command("resize 8",!0),i.call("coc#util#do_autocmd",["CocTerminalOpen"],!0)):i.call("win_gotoid",[o],!0),i.command("normal! G",!0),e&&i.command("wincmd p",!0),await i.resumeNotification()),!0):!1}async hide(){let{bufnr:e,nvim:t}=this;!e||await t.eval(`coc#window#close(bufwinid(${e}))`)}dispose(){this.exitStatus||(this.exitStatus={code:void 0});let{bufnr:e,nvim:t}=this;!e||(this.bufnr=void 0,t.call("coc#terminal#close",[e],!0))}}});var CT,bbe,xb,$2=_(()=>{"use strict";J2();CT=C(H());z();le();bbe=q()("core-terminals"),xb=class{constructor(){this._terminals=new Map;this.disposables=[];this._onDidOpenTerminal=new CT.Emitter;this._onDidCloseTerminal=new CT.Emitter;this.onDidCloseTerminal=this._onDidCloseTerminal.event;this.onDidOpenTerminal=this._onDidOpenTerminal.event;E.on("BufUnload",e=>{if(this._terminals.has(e)){bbe.debug("terminal detach",e);let t=this._terminals.get(e);this._onDidCloseTerminal.fire(t),this._terminals.delete(e)}},null,this.disposables),E.on("TermExit",(e,t)=>{let i=this._terminals.get(e);i&&(i.onExit(t),i.dispose())},null,this.disposables)}get terminals(){return Array.from(this._terminals.values())}async createTerminal(e,t){let i=t.cwd,r=t.shellPath,o=t.shellArgs;r||(r=await e.getOption("shell")),i||(i=await e.call("getcwd"));let s=new Db(r,o||[],e,t.name,t.strictEnv);return await s.start(i,t.env),this._terminals.set(s.bufnr,s),this._onDidOpenTerminal.fire(s),s}reset(){for(let e of this._terminals.values())e.dispose();this._terminals.clear()}dispose(){this._onDidOpenTerminal.dispose(),this._onDidCloseTerminal.dispose(),Z(this.disposables),this.reset()}}});async function Cb(n){let[e,t]=await n.eval("[line('.')-1, strpart(getline('.'), 0, col('.') - 1)]");return Tc.Position.create(e,t.length)}async function Sb(n,e){return await n.callAsync("coc#dialog#prompt_confirm",[e])==1}async function X2(n,e,t){await n.call("coc#cursor#move_to",[e.line,e.character]),t&&n.command("redraw",!0)}async function U2(n){return await n.call("coc#cursor#char_offset")}async function G2(n){let[e,t]=await n.call("coc#cursor#screen_pos");return{row:e,col:t}}function Q2(n,e,t="MoreMsg",i=!1){n[i||ybe?"callTimer":"call"]("coc#ui#echo_messages",[t,("[coc.nvim] "+e).split(` -`)],!0)}async function K2(n,e){if(e==="line"){let i=await n.call("line",["."]);return Tc.Range.create(i-1,0,i,0)}if(e==="cursor"){let[i,r]=await n.eval("coc#cursor#position()");return Tc.Range.create(i,r,i,r)}let t=await n.call("coc#cursor#get_selection",[e==="char"?1:0]);return t?Tc.Range.create(t[0],t[1],t[2],t[3]):null}async function z2(n,e,t){let{start:i,end:r}=e,[o,s]=await n.eval(`[getline(${i.line+1}),getline(${r.line+1})]`),a=o.length>0?Q(o.slice(0,i.character)):0,l,u,c=r.character==0;if(c){u=r.line==0?0:r.line-1;let h=await n.call("getline",[u+1]);l=Q(h)}else u=r.line,l=s.length>0?Q(s.slice(0,r.character)):0;n.pauseNotification(),n.command(`noa call cursor(${i.line+1},${a+1})`,!0),n.command("normal! v",!0),n.command(`noa call cursor(${u+1},${l})`,!0),c&&n.command("normal! $",!0),await n.resumeNotification(t)}var Tc,ybe,Tb=_(()=>{"use strict";Tc=C(H());Pe();ybe=process.env.VIM_NODE_RPC=="1"});var kb,TT=_(()=>{kb="0.0.81"});var wg,Dg,Eb,Pb,xg,_b,Ir=_(()=>{"use strict";wg=(i=>(i[i.Buffer=0]="Buffer",i[i.LanguageServer=1]="LanguageServer",i[i.Global=2]="Global",i))(wg||{}),Dg=(i=>(i[i.Native=0]="Native",i[i.Remote=1]="Remote",i[i.Service=2]="Service",i))(Dg||{}),Eb=(i=>(i[i.More=0]="More",i[i.Warning=1]="Warning",i[i.Error=2]="Error",i))(Eb||{}),Pb=(i=>(i[i.Global=0]="Global",i[i.User=1]="User",i[i.Workspace=2]="Workspace",i))(Pb||{}),xg=(s=>(s[s.Initial=0]="Initial",s[s.Starting=1]="Starting",s[s.StartFailed=2]="StartFailed",s[s.Running=3]="Running",s[s.Stopping=4]="Stopping",s[s.Stopped=5]="Stopped",s))(xg||{}),_b=(r=>(r[r.Unknown=0]="Unknown",r[r.File=1]="File",r[r.Directory=2]="Directory",r[r.SymbolicLink=64]="SymbolicLink",r))(_b||{})});function kT(n,e){if(n.length<=1)return n;let t=n.length/2|0,i=n.slice(0,t),r=n.slice(t);kT(i,e),kT(r,e);let o=0,s=0,a=0;for(;ot.line||e.line===t.line&&e.character>t.character?{start:t,end:e}:n}function wbe(n){let e=eY(n.range);return e!==n.range?{newText:n.newText,range:e}:n}var kc,jn,Ec=_(()=>{"use strict";kc=class{constructor(e,t,i,r){this._uri=e,this._languageId=t,this._version=i,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let t=this.offsetAt(e.start),i=this.offsetAt(e.end);return this._content.substring(t,i)}return this._content}update(e,t){for(let i of e)if(kc.isIncremental(i)){let r=eY(i.range),o=this.offsetAt(r.start),s=this.offsetAt(r.end);this._content=this._content.substring(0,o)+i.text+this._content.substring(s,this._content.length);let a=Math.max(r.start.line,0),l=Math.max(r.end.line,0),u=this._lineOffsets,c=V2(i.text,!1,o);if(l-a===c.length)for(let d=0,g=c.length;de?r=s:i=s+1}let o=i-1;return{line:o,character:e-t[o]}}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let i=t[e.line],r=e.line+1{let d=c.range.start.line-h.range.start.line;return d===0?c.range.start.character-h.range.start.character:d}),l=0,u=[];for(let c of a){let h=r.offsetAt(c.range.start);if(hl&&u.push(s.substring(l,h)),c.newText.length&&u.push(c.newText),l=r.offsetAt(c.range.end)}return u.push(s.substr(l)),u.join("")}n.applyEdits=i})(jn||(jn={}))});function Sg(n,e){e===void 0&&(e=!1);var t=n.length,i=0,r="",o=0,s=16,a=0,l=0,u=0,c=0,h=0;function d(D,S){for(var F=0,L=0;F=48&&j<=57)L=L*16+j-48;else if(j>=65&&j<=70)L=L*16+j-65+10;else if(j>=97&&j<=102)L=L*16+j-97+10;else break;i++,F++}return F=t){D+=n.substring(S,i),h=2;break}var F=n.charCodeAt(i);if(F===34){D+=n.substring(S,i),i++;break}if(F===92){if(D+=n.substring(S,i),i++,i>=t){h=2;break}var L=n.charCodeAt(i++);switch(L){case 34:D+='"';break;case 92:D+="\\";break;case 47:D+="/";break;case 98:D+="\b";break;case 102:D+="\f";break;case 110:D+=` -`;break;case 114:D+="\r";break;case 116:D+=" ";break;case 117:var j=d(4,!0);j>=0?D+=String.fromCharCode(j):h=4;break;default:h=5}S=i;continue}if(F>=0&&F<=31)if(Cg(F)){D+=n.substring(S,i),h=2;break}else h=6;i++}return D}function b(){if(r="",h=0,o=i,l=a,c=u,i>=t)return o=t,s=17;var D=n.charCodeAt(i);if(ET(D)){do i++,r+=String.fromCharCode(D),D=n.charCodeAt(i);while(ET(D));return s=15}if(Cg(D))return i++,r+=String.fromCharCode(D),D===13&&n.charCodeAt(i)===10&&(i++,r+=` -`),a++,u=i,s=14;switch(D){case 123:return i++,s=1;case 125:return i++,s=2;case 91:return i++,s=3;case 93:return i++,s=4;case 58:return i++,s=6;case 44:return i++,s=5;case 34:return i++,r=p(),s=10;case 47:var S=i-1;if(n.charCodeAt(i+1)===47){for(i+=2;i=12&&D<=15);return D}return{setPosition:g,getPosition:function(){return i},scan:e?w:b,getToken:function(){return s},getTokenValue:function(){return r},getTokenOffset:function(){return o},getTokenLength:function(){return i-o},getTokenStartLine:function(){return l},getTokenStartCharacter:function(){return o-c},getTokenError:function(){return h}}}function ET(n){return n===32||n===9||n===11||n===12||n===160||n===5760||n>=8192&&n<=8203||n===8239||n===8287||n===12288||n===65279}function Cg(n){return n===10||n===13||n===8232||n===8233}function Pc(n){return n>=48&&n<=57}var Rb=_(()=>{"use strict"});function _T(n,e,t){var i,r,o,s,a;if(e){for(s=e.offset,a=s+e.length,o=s;o>0&&!Tg(n,o-1);)o--;for(var l=a;ls)&&n.substring(J,K)!==M&&v.push({offset:J,length:K-J,content:M})}var D=b();if(D!==17){var S=g.getTokenOffset()+o,F=PT(d,i);w(F,o,S)}for(;D!==17;){for(var L=g.getTokenOffset()+g.getTokenLength()+o,j=b(),W="",B=!1;!c&&(j===12||j===13);){var N=g.getTokenOffset()+o;w(" ",L,N),L=g.getTokenOffset()+g.getTokenLength()+o,B=j===12,W=B?p():"",j=b()}if(j===2)D!==1&&(h--,W=p());else if(j===4)D!==3&&(h--,W=p());else{switch(D){case 3:case 1:h++,W=p();break;case 5:case 12:W=p();break;case 13:c?W=p():B||(W=" ");break;case 6:B||(W=" ");break;case 10:if(j===6){B||(W="");break}case 7:case 8:case 9:case 11:case 2:case 4:j===12||j===13?B||(W=" "):j!==5&&j!==17&&(f=!0);break;case 16:f=!0;break}c&&(j===12||j===13)&&(W=p())}j===17&&(W=t.insertFinalNewline?u:"");var I=g.getTokenOffset()+o;w(W,L,I),D=j}return v}function PT(n,e){for(var t="",i=0;i{"use strict";we();zY();JFe=W()("core-channels"),VY=class{constructor(){this.outputChannels=new Map;this.bufnrs=new Map;this.disposable=P.on("BufUnload",e=>{let t=this.bufnrs.get(e);if(t){let i=this.outputChannels.get(t);i&&(i.created=!1)}})}getProvider(e){return{onDidChange:null,provideTextDocumentContent:async i=>{let r=this.get(i.path.slice(1));if(!r)return"";e.pauseNotification(),e.call("bufnr",["%"],!0),e.command("setlocal nospell nofoldenable nowrap noswapfile",!0),e.command("setlocal buftype=nofile bufhidden=hide",!0),e.command("setfiletype log",!0);let o=await e.resumeNotification();return this.bufnrs.set(o[0][0],r.name),r.created=!0,r.content}}}get names(){return Array.from(this.outputChannels.keys())}get(e){return this.outputChannels.get(e)}create(e,t){if(this.outputChannels.has(e))return this.outputChannels.get(e);let i=new $y(e,t,()=>{this.outputChannels.delete(e)});return this.outputChannels.set(e,i),i}show(e,t,i){let r=this.outputChannels.get(e);!r||r.show(i,t)}dispose(){this.disposable.dispose();for(let e of this.outputChannels.values())e.dispose();this.outputChannels.clear()}},ds=new VY});var XFe,Uy,eW=_(()=>{"use strict";XFe=W()("model-terminal"),Uy=class{constructor(e,t,i,r,o){this.cmd=e;this.args=t;this.nvim=i;this._name=r;this.strictEnv=o;this.pid=0}async start(e,t){let{nvim:i}=this,r=[this.cmd,...this.args],[o,s]=await i.call("coc#terminal#start",[r,e,t||{},!!this.strictEnv]);this.bufnr=o,this.pid=s}onExit(e){this.exitStatus={code:e===-1?void 0:e}}get name(){return this._name||this.cmd}get processId(){return Promise.resolve(this.pid)}sendText(e,t=!0){!this.bufnr||this.nvim.call("coc#terminal#send",[this.bufnr,e,t],!0)}async show(e){let{bufnr:t,nvim:i}=this;if(!t)return;let[r,o,s]=await i.eval(`[bufloaded(${t}),bufwinid(${t}),win_getid()]`);return r?(s==o||(i.pauseNotification(),o==-1?(i.command(`below ${t}sb`,!0),i.command("resize 8",!0),i.call("coc#util#do_autocmd",["CocTerminalOpen"],!0)):i.call("win_gotoid",[o],!0),i.command("normal! G",!0),e&&i.command("wincmd p",!0),await i.resumeNotification()),!0):!1}async hide(){let{bufnr:e,nvim:t}=this;!e||await t.eval(`coc#window#close(bufwinid(${e}))`)}dispose(){this.exitStatus||(this.exitStatus={code:void 0});let{bufnr:e,nvim:t}=this;!e||(this.bufnr=void 0,t.call("coc#terminal#close",[e],!0))}}});var vk,zbe,Gy,tW=_(()=>{"use strict";eW();vk=x(q());re();we();zbe=W()("core-terminals"),Gy=class{constructor(){this._terminals=new Map;this.disposables=[];this._onDidOpenTerminal=new vk.Emitter;this._onDidCloseTerminal=new vk.Emitter;this.onDidCloseTerminal=this._onDidCloseTerminal.event;this.onDidOpenTerminal=this._onDidOpenTerminal.event;P.on("BufUnload",e=>{if(this._terminals.has(e)){zbe.debug("terminal detach",e);let t=this._terminals.get(e);this._onDidCloseTerminal.fire(t),this._terminals.delete(e)}},null,this.disposables),P.on("TermExit",(e,t)=>{let i=this._terminals.get(e);i&&(i.onExit(t),i.dispose())},null,this.disposables)}get terminals(){return Array.from(this._terminals.values())}async createTerminal(e,t){let i=t.cwd,r=t.shellPath,o=t.shellArgs;r||(r=await e.getOption("shell")),i||(i=await e.call("getcwd"));let s=new Uy(r,o||[],e,t.name,t.strictEnv);return await s.start(i,t.env),this._terminals.set(s.bufnr,s),this._onDidOpenTerminal.fire(s),s}reset(){for(let e of this._terminals.values())e.dispose();this._terminals.clear()}dispose(){this._onDidOpenTerminal.dispose(),this._onDidCloseTerminal.dispose(),$(this.disposables),this.reset()}}});async function Ky(n){let[e,t]=await n.eval("[line('.')-1, strpart(getline('.'), 0, col('.') - 1)]");return Nc.Position.create(e,t.length)}async function Qy(n,e){return await n.callAsync("coc#dialog#prompt_confirm",[e])==1}async function iW(n,e,t){await n.call("coc#cursor#move_to",[e.line,e.character]),t&&n.command("redraw",!0)}async function nW(n){return await n.call("coc#cursor#char_offset")}async function rW(n){let[e,t]=await n.call("coc#cursor#screen_pos");return{row:e,col:t}}function oW(n,e,t="MoreMsg",i=!1){n[i||Vbe?"callTimer":"call"]("coc#ui#echo_messages",[t,("[coc.nvim] "+e).split(` +`)],!0)}async function sW(n,e){if(e==="line"){let i=await n.call("line",["."]);return Nc.Range.create(i-1,0,i,0)}if(e==="cursor"){let[i,r]=await n.eval("coc#cursor#position()");return Nc.Range.create(i,r,i,r)}let t=await n.call("coc#cursor#get_selection",[e==="char"?1:0]);return t?Nc.Range.create(t[0],t[1],t[2],t[3]):null}async function aW(n,e,t){let{start:i,end:r}=e,[o,s]=await n.eval(`[getline(${i.line+1}),getline(${r.line+1})]`),a=o.length>0?V(o.slice(0,i.character)):0,l,u,c=r.character==0;if(c){u=r.line==0?0:r.line-1;let h=await n.call("getline",[u+1]);l=V(h)}else u=r.line,l=s.length>0?V(s.slice(0,r.character)):0;n.pauseNotification(),n.command(`noa call cursor(${i.line+1},${a+1})`,!0),n.command("normal! v",!0),n.command(`noa call cursor(${u+1},${l})`,!0),c&&n.command("normal! $",!0),await n.resumeNotification(t)}var Nc,Vbe,zy=_(()=>{"use strict";Nc=x(q());Ne();Vbe=process.env.VIM_NODE_RPC=="1"});var Vy,Dk=_(()=>{Vy="0.0.82"});var Yg,Wg,eb,tb,Zg,ib,$r=_(()=>{"use strict";Yg=(i=>(i[i.Buffer=0]="Buffer",i[i.LanguageServer=1]="LanguageServer",i[i.Global=2]="Global",i))(Yg||{}),Wg=(i=>(i[i.Native=0]="Native",i[i.Remote=1]="Remote",i[i.Service=2]="Service",i))(Wg||{}),eb=(i=>(i[i.More=0]="More",i[i.Warning=1]="Warning",i[i.Error=2]="Error",i))(eb||{}),tb=(i=>(i[i.Global=0]="Global",i[i.User=1]="User",i[i.Workspace=2]="Workspace",i))(tb||{}),Zg=(s=>(s[s.Initial=0]="Initial",s[s.Starting=1]="Starting",s[s.StartFailed=2]="StartFailed",s[s.Running=3]="Running",s[s.Stopping=4]="Stopping",s[s.Stopped=5]="Stopped",s))(Zg||{}),ib=(r=>(r[r.Unknown=0]="Unknown",r[r.File=1]="File",r[r.Directory=2]="Directory",r[r.SymbolicLink=64]="SymbolicLink",r))(ib||{})});function Ck(n,e){if(n.length<=1)return n;let t=n.length/2|0,i=n.slice(0,t),r=n.slice(t);Ck(i,e),Ck(r,e);let o=0,s=0,a=0;for(;ot.line||e.line===t.line&&e.character>t.character?{start:t,end:e}:n}function tve(n){let e=uW(n.range);return e!==n.range?{newText:n.newText,range:e}:n}var Bc,Wn,Hc=_(()=>{"use strict";Bc=class{constructor(e,t,i,r){this._uri=e,this._languageId=t,this._version=i,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let t=this.offsetAt(e.start),i=this.offsetAt(e.end);return this._content.substring(t,i)}return this._content}update(e,t){for(let i of e)if(Bc.isIncremental(i)){let r=uW(i.range),o=this.offsetAt(r.start),s=this.offsetAt(r.end);this._content=this._content.substring(0,o)+i.text+this._content.substring(s,this._content.length);let a=Math.max(r.start.line,0),l=Math.max(r.end.line,0),u=this._lineOffsets,c=lW(i.text,!1,o);if(l-a===c.length)for(let d=0,g=c.length;de?r=s:i=s+1}let o=i-1;return{line:o,character:e-t[o]}}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let i=t[e.line],r=e.line+1{let d=c.range.start.line-h.range.start.line;return d===0?c.range.start.character-h.range.start.character:d}),l=0,u=[];for(let c of a){let h=r.offsetAt(c.range.start);if(hl&&u.push(s.substring(l,h)),c.newText.length&&u.push(c.newText),l=r.offsetAt(c.range.end)}return u.push(s.substr(l)),u.join("")}n.applyEdits=i})(Wn||(Wn={}))});function $g(n,e){e===void 0&&(e=!1);var t=n.length,i=0,r="",o=0,s=16,a=0,l=0,u=0,c=0,h=0;function d(D,T){for(var R=0,N=0;R=48&&H<=57)N=N*16+H-48;else if(H>=65&&H<=70)N=N*16+H-65+10;else if(H>=97&&H<=102)N=N*16+H-97+10;else break;i++,R++}return R=t){D+=n.substring(T,i),h=2;break}var R=n.charCodeAt(i);if(R===34){D+=n.substring(T,i),i++;break}if(R===92){if(D+=n.substring(T,i),i++,i>=t){h=2;break}var N=n.charCodeAt(i++);switch(N){case 34:D+='"';break;case 92:D+="\\";break;case 47:D+="/";break;case 98:D+="\b";break;case 102:D+="\f";break;case 110:D+=` +`;break;case 114:D+="\r";break;case 116:D+=" ";break;case 117:var H=d(4,!0);H>=0?D+=String.fromCharCode(H):h=4;break;default:h=5}T=i;continue}if(R>=0&&R<=31)if(Jg(R)){D+=n.substring(T,i),h=2;break}else h=6;i++}return D}function m(){if(r="",h=0,o=i,l=a,c=u,i>=t)return o=t,s=17;var D=n.charCodeAt(i);if(xk(D)){do i++,r+=String.fromCharCode(D),D=n.charCodeAt(i);while(xk(D));return s=15}if(Jg(D))return i++,r+=String.fromCharCode(D),D===13&&n.charCodeAt(i)===10&&(i++,r+=` +`),a++,u=i,s=14;switch(D){case 123:return i++,s=1;case 125:return i++,s=2;case 91:return i++,s=3;case 93:return i++,s=4;case 58:return i++,s=6;case 44:return i++,s=5;case 34:return i++,r=f(),s=10;case 47:var T=i-1;if(n.charCodeAt(i+1)===47){for(i+=2;i=12&&D<=15);return D}return{setPosition:g,getPosition:function(){return i},scan:e?w:m,getToken:function(){return s},getTokenValue:function(){return r},getTokenOffset:function(){return o},getTokenLength:function(){return i-o},getTokenStartLine:function(){return l},getTokenStartCharacter:function(){return o-c},getTokenError:function(){return h}}}function xk(n){return n===32||n===9||n===11||n===12||n===160||n===5760||n>=8192&&n<=8203||n===8239||n===8287||n===12288||n===65279}function Jg(n){return n===10||n===13||n===8232||n===8233}function qc(n){return n>=48&&n<=57}var nb=_(()=>{"use strict"});function Tk(n,e,t){var i,r,o,s,a;if(e){for(s=e.offset,a=s+e.length,o=s;o>0&&!Xg(n,o-1);)o--;for(var l=a;ls)&&n.substring(Z,ie)!==O&&b.push({offset:Z,length:ie-Z,content:O})}var D=m();if(D!==17){var T=g.getTokenOffset()+o,R=Sk(d,i);w(R,o,T)}for(;D!==17;){for(var N=g.getTokenOffset()+g.getTokenLength()+o,H=m(),X="",B=!1;!c&&(H===12||H===13);){var M=g.getTokenOffset()+o;w(" ",N,M),N=g.getTokenOffset()+g.getTokenLength()+o,B=H===12,X=B?f():"",H=m()}if(H===2)D!==1&&(h--,X=f());else if(H===4)D!==3&&(h--,X=f());else{switch(D){case 3:case 1:h++,X=f();break;case 5:case 12:X=f();break;case 13:c?X=f():B||(X=" ");break;case 6:B||(X=" ");break;case 10:if(H===6){B||(X="");break}case 7:case 8:case 9:case 11:case 2:case 4:H===12||H===13?B||(X=" "):H!==5&&H!==17&&(p=!0);break;case 16:p=!0;break}c&&(H===12||H===13)&&(X=f())}H===17&&(X=t.insertFinalNewline?u:"");var F=g.getTokenOffset()+o;w(X,N,F),D=H}return b}function Sk(n,e){for(var t="",i=0;i{"use strict";Rb()});function tY(n,e,t){e===void 0&&(e=[]),t===void 0&&(t=kg.DEFAULT);var i=null,r=[],o=[];function s(l){Array.isArray(r)?r.push(l):i!==null&&(r[i]=l)}var a={onObjectBegin:function(){var l={};s(l),o.push(r),r=l,i=null},onObjectProperty:function(l){i=l},onObjectEnd:function(){r=o.pop()},onArrayBegin:function(){var l=[];s(l),o.push(r),r=l,i=null},onArrayEnd:function(){r=o.pop()},onLiteralValue:s,onError:function(l,u,c){e.push({error:l,offset:u,length:c})}};return FT(n,a,t),r[0]}function LT(n,e,t){e===void 0&&(e=[]),t===void 0&&(t=kg.DEFAULT);var i={type:"array",offset:-1,length:-1,children:[],parent:void 0};function r(l){i.type==="property"&&(i.length=l-i.offset,i=i.parent)}function o(l){return i.children.push(l),l}var s={onObjectBegin:function(l){i=o({type:"object",offset:l,length:-1,parent:i,children:[]})},onObjectProperty:function(l,u,c){i=o({type:"property",offset:u,length:-1,parent:i,children:[]}),i.children.push({type:"string",value:l,offset:u,length:c,parent:i})},onObjectEnd:function(l,u){r(l+u),i.length=l+u-i.offset,i=i.parent,r(l+u)},onArrayBegin:function(l,u){i=o({type:"array",offset:l,length:-1,parent:i,children:[]})},onArrayEnd:function(l,u){i.length=l+u-i.offset,i=i.parent,r(l+u)},onLiteralValue:function(l,u,c){o({type:Tbe(l),offset:u,length:c,parent:i,value:l}),r(u+c)},onSeparator:function(l,u,c){i.type==="property"&&(l===":"?i.colonOffset=u:l===","&&r(u))},onError:function(l,u,c){e.push({error:l,offset:u,length:c})}};FT(n,s,t);var a=i.children[0];return a&&delete a.parent,a}function Lb(n,e){if(!!n){for(var t=n,i=0,r=e;i=t.children.length)return;t=t.children[c]}}return t}}function FT(n,e,t){t===void 0&&(t=kg.DEFAULT);var i=Sg(n,!1);function r(B){return B?function(){return B(i.getTokenOffset(),i.getTokenLength(),i.getTokenStartLine(),i.getTokenStartCharacter())}:function(){return!0}}function o(B){return B?function(N){return B(N,i.getTokenOffset(),i.getTokenLength(),i.getTokenStartLine(),i.getTokenStartCharacter())}:function(){return!0}}var s=r(e.onObjectBegin),a=o(e.onObjectProperty),l=r(e.onObjectEnd),u=r(e.onArrayBegin),c=r(e.onArrayEnd),h=o(e.onLiteralValue),d=o(e.onSeparator),g=r(e.onComment),f=o(e.onError),p=t&&t.disallowComments,b=t&&t.allowTrailingComma;function v(){for(;;){var B=i.scan();switch(i.getTokenError()){case 4:w(14);break;case 5:w(15);break;case 3:w(13);break;case 1:p||w(11);break;case 2:w(12);break;case 6:w(16);break}switch(B){case 12:case 13:p?w(10):g();break;case 16:w(1);break;case 15:case 14:break;default:return B}}}function w(B,N,I){if(N===void 0&&(N=[]),I===void 0&&(I=[]),f(B),N.length+I.length>0)for(var M=i.getToken();M!==17;){if(N.indexOf(M)!==-1){v();break}else if(I.indexOf(M)!==-1)break;M=v()}}function D(B){var N=i.getTokenValue();return B?h(N):a(N),v(),!0}function S(){switch(i.getToken()){case 11:var B=i.getTokenValue(),N=Number(B);isNaN(N)&&(w(2),N=0),h(N);break;case 7:h(null);break;case 8:h(!0);break;case 9:h(!1);break;default:return!1}return v(),!0}function F(){return i.getToken()!==10?(w(3,[],[2,5]),!1):(D(!1),i.getToken()===6?(d(":"),v(),W()||w(4,[],[2,5])):w(5,[],[2,5]),!0)}function L(){s(),v();for(var B=!1;i.getToken()!==2&&i.getToken()!==17;){if(i.getToken()===5){if(B||w(4,[],[]),d(","),v(),i.getToken()===2&&b)break}else B&&w(6,[],[]);F()||w(4,[],[2,5]),B=!0}return l(),i.getToken()!==2?w(7,[2],[]):v(),!0}function j(){u(),v();for(var B=!1;i.getToken()!==4&&i.getToken()!==17;){if(i.getToken()===5){if(B||w(4,[],[]),d(","),v(),i.getToken()===4&&b)break}else B&&w(6,[],[]);W()||w(4,[],[4,5]),B=!0}return c(),i.getToken()!==4?w(8,[4],[]):v(),!0}function W(){switch(i.getToken()){case 3:return j();case 1:return L();case 10:return D(!0);default:return S()}}return v(),i.getToken()===17?t.allowEmptyContent?!0:(w(4,[],[]),!1):W()?(i.getToken()!==17&&w(9,[],[]),!0):(w(4,[],[]),!1)}function Tbe(n){switch(typeof n){case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"object":{if(n){if(Array.isArray(n))return"array"}else return"null";return"object"}default:return"null"}}var kg,IT=_(()=>{"use strict";Rb();(function(n){n.DEFAULT={allowTrailingComma:!1}})(kg||(kg={}))});function iY(n,e,t,i){for(var r,o=e.slice(),s=[],a=LT(n,s),l=void 0,u=void 0;o.length>0&&(u=o.pop(),l=Lb(a,o),l===void 0&&t!==void 0);)typeof u=="string"?t=(r={},r[u]=t,r):t=[t];if(l)if(l.type==="object"&&typeof u=="string"&&Array.isArray(l.children)){var c=Lb(l,[u]);if(c!==void 0)if(t===void 0){if(!c.parent)throw new Error("Malformed AST");var h=l.children.indexOf(c.parent),d=void 0,g=c.parent.offset+c.parent.length;if(h>0){var f=l.children[h-1];d=f.offset+f.length}else if(d=l.offset+1,l.children.length>1){var p=l.children[1];g=p.offset}return xl(n,{offset:d,length:g-d,content:""},i)}else return xl(n,{offset:c.offset,length:c.length,content:JSON.stringify(t)},i);else{if(t===void 0)return[];var b=JSON.stringify(u)+": "+JSON.stringify(t),v=i.getInsertionIndex?i.getInsertionIndex(l.children.map(function(B){return B.children[0].value})):l.children.length,w=void 0;if(v>0){var f=l.children[v-1];w={offset:f.offset+f.length,length:0,content:","+b}}else l.children.length===0?w={offset:l.offset+1,length:0,content:b}:w={offset:l.offset+1,length:0,content:b+","};return xl(n,w,i)}}else if(l.type==="array"&&typeof u=="number"&&Array.isArray(l.children)){var D=u;if(D===-1){var b=""+JSON.stringify(t),w=void 0;if(l.children.length===0)w={offset:l.offset+1,length:0,content:b};else{var f=l.children[l.children.length-1];w={offset:f.offset+f.length,length:0,content:","+b}}return xl(n,w,i)}else if(t===void 0&&l.children.length>=0){var S=u,F=l.children[S],w=void 0;if(l.children.length===1)w={offset:l.offset+1,length:l.length-2,content:""};else if(l.children.length-1===S){var f=l.children[S-1],L=f.offset+f.length,j=l.offset+l.length;w={offset:L,length:j-2-L,content:""}}else w={offset:F.offset,length:l.children[S+1].offset-F.offset,content:""};return xl(n,w,i)}else if(t!==void 0){var w=void 0,b=""+JSON.stringify(t);if(!i.isArrayInsertion&&l.children.length>u){var W=l.children[u];w={offset:W.offset,length:W.length,content:b}}else if(l.children.length===0||u===0)w={offset:l.offset+1,length:0,content:l.children.length===0?b:b+","};else{var v=u>l.children.length?l.children.length:u,f=l.children[v-1];w={offset:f.offset+f.length,length:0,content:","+b}}return xl(n,w,i)}else throw new Error("Can not "+(t===void 0?"remove":i.isArrayInsertion?"insert":"modify")+" Array index "+D+" as length is not sufficient")}else throw new Error("Can not add "+(typeof u!="number"?"index":"property")+" to parent of type "+l.type);else{if(t===void 0)throw new Error("Can not delete in empty document");return xl(n,{offset:a?a.offset:0,length:a?a.length:0,content:JSON.stringify(t)},i)}}function xl(n,e,t){if(!t.formattingOptions)return[e];var i=Fb(n,e),r=e.offset,o=e.offset+e.content.length;if(e.length===0||e.content.length===0){for(;r>0&&!Tg(i,r-1);)r--;for(;o=0;a--){var l=s[a];i=Fb(i,l),r=Math.min(r,l.offset),o=Math.max(o,l.offset+l.length),o+=l.content.length-l.length}var u=n.length-(i.length-o)-r;return[{offset:r,length:u,content:i.substring(r,o)}]}function Fb(n,e){return n.substring(0,e.offset)+e.content+n.substring(e.offset+e.length)}var nY=_(()=>{"use strict";RT();IT()});function rY(n,e,t,i){return iY(n,e,t,i)}function oY(n,e){for(var t=e.length-1;t>=0;t--)n=Fb(n,e[t]);return n}var _c,Eg=_(()=>{"use strict";RT();nY();Rb();IT();_c=tY});function aY(n){let e={};for(let t of Object.keys(n))if(t.indexOf(".")==-1)e[t]=n[t];else{let i=t.split("."),r=e,o=i.length;for(let s=0;s"u"?t:o}function AT(){let n=Ab.default.join(_be,"data/schema.json"),e=Ib.default.readFileSync(n,"utf8"),{properties:t}=JSON.parse(e),i={};return Object.keys(t).forEach(r=>{let o=t[r].default;o!==void 0&&Pg(i,r,o,s=>{Pbe.error(s)})}),{contents:i}}function jT(n,e){let t=[];for(let i of Object.keys(n)){let r=n[i],o=e?`${e}.${i}`:i;t.push(o),_t(r)&&t.push(...jT(r,o))}return t}function hY(n,e){let t=[],i=jT(n),r=jT(e),o=r.filter(a=>!i.includes(a)),s=i.filter(a=>!r.includes(a));t.push(...o),t.push(...s);for(let a of i){if(!r.includes(a))continue;let l=jb(n,a),u=jb(e,a);Fe(l,u)||t.push(a)}return t}var sY,Ib,Ab,Pbe,_be,Ob=_(()=>{"use strict";sY=C(H());Ec();Eg();In();Jt();Ib=C(require("fs"));we();Ab=C(require("path")),Pbe=q()("configuration-util"),_be=(0,Ab.dirname)(__dirname)});var dn,OT=_(()=>{"use strict";In();Jt();Ob();dn=class{constructor(e={}){this._contents=e}get contents(){return this._contents}clone(){return new dn(_r(this._contents))}getValue(e){return e?jb(this.contents,e):this.contents}merge(...e){let t=_r(this.contents);for(let i of e)this.mergeContents(t,i.contents);return new dn(t)}freeze(){return Object.isFrozen(this._contents)||Object.freeze(this._contents),this}mergeContents(e,t){for(let i of Object.keys(t)){if(i in e&&_t(e[i])&&_t(t[i])){this.mergeContents(e[i],t[i]);continue}e[i]=_r(t[i])}}setValue(e,t){Pg(this.contents,e,t,i=>{console.error(i)})}removeValue(e){uY(this.contents,e)}}});var Mb,dY=_(()=>{"use strict";OT();Mb=class{constructor(e,t,i,r=new dn){this._defaultConfiguration=e;this._userConfiguration=t;this._workspaceConfiguration=i;this._memoryConfiguration=r}getConsolidateConfiguration(){return this._consolidateConfiguration||(this._consolidateConfiguration=this._defaultConfiguration.merge(this._userConfiguration,this._workspaceConfiguration,this._memoryConfiguration),this._consolidateConfiguration=this._consolidateConfiguration.freeze()),this._consolidateConfiguration}getValue(e){return this.getConsolidateConfiguration().getValue(e)}inspect(e){let t=this.getConsolidateConfiguration(),{_workspaceConfiguration:i,_memoryConfiguration:r}=this;return{default:this._defaultConfiguration.freeze().getValue(e),user:this._userConfiguration.freeze().getValue(e),workspace:i.freeze().getValue(e),memory:r.freeze().getValue(e),value:t.getValue(e)}}get defaults(){return this._defaultConfiguration}get user(){return this._userConfiguration}get workspace(){return this._workspaceConfiguration}toData(){return{defaults:{contents:this._defaultConfiguration.contents},user:{contents:this._userConfiguration.contents},workspace:{contents:this._workspaceConfiguration.contents}}}}});function MT(n,e){if(e){if(n&&n.hasOwnProperty(e))return n[e];let t=e.split("."),i=n;for(let r=0;i&&r{"use strict";NT=C(require("fs")),gY=C(require("os")),ro=C(require("path")),BT=C(H());we();Ir();z();Je();In();Jt();dY();OT();Ob();Rc=q()("configurations");Uo=class{constructor(e,t){this.userConfigFile=e;this._proxy=t;this.cwd=process.cwd();this._errorItems=[];this._folderConfigurations=new Map;this._onError=new BT.Emitter;this._onChange=new BT.Emitter;this.disposables=[];this.onError=this._onError.event;this.onDidChange=this._onChange.event;let i=this.parseContentFromFile(e),r={defaults:AT(),user:i,workspace:{contents:{}}};this._configuration=Uo.parse(r),this.watchFile(e,1),this.addFolderFromCwd()}parseContentFromFile(e){if(!e)return{contents:{}};let t=O.file(e).toString();this._errorItems=this._errorItems.filter(r=>r.location.uri!=t);let i=lY(e,r=>{this._errorItems.push(...r)});return this._onError.fire(this._errorItems),i}get errorItems(){return this._errorItems}get foldConfigurations(){return this._folderConfigurations}extendsDefaults(e){let{defaults:t}=this._configuration,{contents:i}=t;i=_r(i),Object.keys(e).forEach(o=>{Pg(i,o,e[o],s=>{Rc.error(s)})});let r={defaults:{contents:i},user:this._configuration.user,workspace:this._configuration.workspace};this._configuration=Uo.parse(r)}updateUserConfig(e){if(!e||Object.keys(e).length==0)return;let{user:t}=this._configuration,i=t.clone();Object.keys(e).forEach(r=>{let o=e[r];if(o===void 0)i.removeValue(r);else if(_t(o))for(let s of Object.keys(o))i.setValue(`${r}.${s}`,o[s]);else i.setValue(r,o)}),this.changeConfiguration(1,i,void 0)}get defaults(){return this._configuration.defaults}get user(){return this._configuration.user}get workspace(){return this._configuration.workspace}addFolderFile(e,t=!0,i=!1){if(!NT.default.existsSync(e)||ii(this.userConfigFile,e)||ii(e,ro.default.join(gY.default.homedir(),`.vim/${Pr}`)))return!1;this._folderConfigurations.has(e)||this.watchFile(e,2);let r=this.updateFolderConfiguration(e);return Rc.info(`Add folder configuration from ${i?"cwd":"file"}:`,e),t&&this.workspaceConfigFile!==e&&(this.workspaceConfigFile=e,Rc.info(`Change folder configuration from ${i?"cwd":"file"} to:`,e),this.changeConfiguration(2,r,e)),!0}addFolderFromCwd(){let e=ro.default.join(this.cwd,`.vim/${Pr}`);this.addFolderFile(e,!0,!0)}watchFile(e,t){if(!NT.default.existsSync(e)||global.__TEST__)return;let i=t===2,r=lc(e,()=>{let o=this.parseContentFromFile(e);i?(this._folderConfigurations.set(e,new dn(o.contents)),ii(this.workspaceConfigFile,e)&&this.changeConfiguration(t,o,e)):this.changeConfiguration(t,o,e)});this.disposables.push(r)}updateFolderConfiguration(e){let t=this.parseContentFromFile(e);return this._folderConfigurations.set(e,new dn(t.contents)),t}changeConfiguration(e,t,i){let{defaults:r,user:o,workspace:s}=this._configuration,a={defaults:e==0?t:r,user:e==1?t:o,workspace:e==2?t:s},l=Uo.parse(a),u=hY(this._configuration.getValue(),l.getValue());u.length!=0&&(this._configuration=l,this._onChange.fire({affectsConfiguration:(c,h)=>{if(!h||!h.startsWith("file:")||e!=2)return u.includes(c);let g=O.parse(h).fsPath;return i&&!Ae(ro.default.resolve(i,"../.."),g)?!1:u.includes(c)}}))}getFolderConfigFile(e){let{folders:t}=this,i=t.find(r=>Ae(r,e,!0));return i?ro.default.join(i,`.vim/${Pr}`):void 0}getConfigFile(e){return e==0?null:e==1?this.userConfigFile:this.workspaceConfigFile}get folders(){let e=[],{_folderConfigurations:t}=this;for(let i of t.keys())e.push(ro.default.resolve(i,"../.."));return e}get configuration(){return this._configuration}getWorkspaceConfigUri(e){let t;return e||(t=this.workspaceConfigFile?O.file(this.workspaceConfigFile):void 0),!t&&this._proxy&&typeof this._proxy.getWorkspaceConfig=="function"&&(t=this._proxy.getWorkspaceConfig(e),t&&ii(this.userConfigFile,t.fsPath)&&(t=void 0)),t}getConfiguration(e,t){let i,r;if(t){let{defaults:a,user:l}=this._configuration,[u,c]=this.getFolderConfiguration(t);r=u,i=new Mb(a,l,c)}else r=this.workspaceConfigFile?O.file(this.workspaceConfigFile):void 0,i=this._configuration;let o=Object.freeze(MT(i.getValue(null),e)),s={has(a){return typeof MT(o,a)<"u"},get:(a,l)=>{let u=MT(o,a);return u==null?l:u},update:(a,l,u=!1)=>{let c=e?`${e}.${a}`:a,h=u?1:2,d=h==1?this.user.clone():this.workspace.clone();if(l===void 0?d.removeValue(c):d.setValue(c,l),r||(r=this.getWorkspaceConfigUri(t)),r&&!ii(this.workspaceConfigFile,r.fsPath)&&(Rc.info(`Change folder configuration ${t?"by "+t:""} to:`,r.fsPath),this.workspaceConfigFile=r.fsPath),this.changeConfiguration(h,d,h==2?this.workspaceConfigFile:this.userConfigFile),!u&&!r){global.__TEST__||console.error(`Unable to locate workspace configuration ${t?"for "+t:""}, workspace folder not resolved.`),Rc.error("Unable to locate workspace configuration",t);return}let g=u?O.parse(this.userConfigFile):r;this._proxy&&!global.__TEST__&&(l===void 0?this._proxy.$removeConfigurationOption(h,c,{resource:g}):this._proxy.$updateConfigurationOption(h,c,l,{resource:g})),!u&&r&&this.addFolderFile(r.fsPath,!1)},inspect:a=>{a=e?`${e}.${a}`:a;let l=this._configuration.inspect(a);return{key:a,defaultValue:l.default,globalValue:l.user,workspaceValue:l.workspace}}};return Object.defineProperty(s,"has",{enumerable:!1}),Object.defineProperty(s,"get",{enumerable:!1}),Object.defineProperty(s,"update",{enumerable:!1}),Object.defineProperty(s,"inspect",{enumerable:!1}),typeof o=="object"&&F0(s,o,!1),bH(s)}getFolderConfiguration(e){let t=O.parse(e),i;t.scheme!="file"?i=this.cwd:i=t.fsPath;for(let[r,o]of this.foldConfigurations){let s=ro.default.resolve(r,"../..");if(Ae(s,i,!0))return[O.file(r),o]}return[void 0,new dn]}resolveFolderConfigution(e){let t=O.parse(e);if(t.scheme!="file")return;let i=ro.default.dirname(t.fsPath),r=this.getFolderConfigFile(i);if(r)return r;let o=Dc(".vim",i);if(!o)return;let s=ro.default.join(o,Pr);if(!!this.addFolderFile(s,!1))return s}setFolderConfiguration(e){let t=O.parse(e);if(t.scheme!="file")return;let i=t.fsPath;for(let[r,o]of this.foldConfigurations){let s=ro.default.resolve(r,"../..");if(Ae(s,i,!0)){this.workspaceConfigFile!=r&&(this.workspaceConfigFile=r,Rc.info("Change folder configuration to:",r),this.changeConfiguration(2,o,r));break}}}static parse(e){let t=new dn(e.defaults.contents),i=new dn(e.user.contents),r=new dn(e.workspace.contents);return new Mb(t,i,r,new dn)}reset(){this._errorItems=[],this._folderConfigurations.clear();let e=this.parseContentFromFile(this.userConfigFile),t={defaults:AT(),user:e,workspace:{contents:{}}};this._configuration=Uo.parse(t),this._onChange.fire({affectsConfiguration:()=>!0})}dispose(){this._folderConfigurations.clear(),this._onError.dispose(),this._onChange.dispose(),Z(this.disposables)}}});var _g,pY,HT,Fbe,Nb,mY=_(()=>{"use strict";_g=C(require("fs"));Eg();pY=C(require("os")),HT=C(require("path"));we();z();Je();Fbe=q()("configuration-shape"),Nb=class{constructor(e){this.resolver=e}modifyConfiguration(e,t,i){if(!e||e.scheme!=="file")return;Fbe.info("modify configuration file:",e.fsPath);let r=e.fsPath,o=HT.default.dirname(r),s={tabSize:2,insertSpaces:!0};_g.default.existsSync(o)||_g.default.mkdirSync(o,{recursive:!0});let a=_g.default.readFileSync(r,{encoding:"utf8",flag:"a+"});a=a||"{}";let l=rY(a,[t],i,{formattingOptions:s});a=oY(a,l),_g.default.writeFileSync(r,a,"utf8")}getWorkspaceConfig(e){let t;if(e){if(typeof this.resolver.getWorkspaceFolder=="function"){let i=this.resolver.getWorkspaceFolder(e);i&&(t=O.parse(i.uri).fsPath)}}else t=this.resolver.root;if(t&&!ii(t,pY.default.homedir()))return O.file(HT.default.join(t,".vim",Pr))}$updateConfigurationOption(e,t,i,r){this.modifyConfiguration(r==null?void 0:r.resource,t,i)}$removeConfigurationOption(e,t,i){this.modifyConfiguration(i==null?void 0:i.resource,t)}}});var qT,bY,YT,yY,Ibe,Bb,vY=_(()=>{"use strict";qT=C(Rn()),bY=C(require("os")),YT=C(require("path")),yY=C(H());z();Ibe=q()("core-autocmds"),Bb=class{constructor(e,t){this.contentProvider=e;this.watchers=t;this._dynAutocmd=!1;this.autocmdMaxId=0;this.autocmds=new Map;this.disposables=[];this.contentProvider.onDidProviderChange(()=>{this.setupDynamicAutocmd()},null,this.disposables),this.watchers.onDidOptionChange(()=>{this.setupDynamicAutocmd()},null,this.disposables)}attach(e,t){this.nvim=e,this.env=t}async doAutocmd(e,t){let i=this.autocmds.get(e);if(i){let r=Array.isArray(i.event)?i.event.join(","):i.event;Ibe.debug(`invoke ${i.request?"request":"notify"} autocmd:`,r),await Promise.resolve(i.callback.apply(i.thisArg,t))}}registerAutocmd(e){this.autocmdMaxId+=1;let t=this.autocmdMaxId;return this.autocmds.set(t,e),this.setupDynamicAutocmd(),yY.Disposable.create(()=>{this.autocmds.delete(t),this.setupDynamicAutocmd()})}setupDynamicAutocmd(e=!1){if(!e&&!this._dynAutocmd)return;this._dynAutocmd=!0;let t=this.contentProvider.schemes,i=[];for(let o of t)i.push(`autocmd BufReadCmd,FileReadCmd,SourceCmd ${o}:/* call coc#rpc#request('CocAutocmd', ['BufReadCmd','${o}', expand('')])`);for(let[o,s]of this.autocmds.entries()){let a=s.arglist&&s.arglist.length?", "+s.arglist.join(", "):"",l=Array.isArray(s.event)?s.event.join(","):s.event,u=s.pattern!=null?s.pattern:"*";/\buser\b/i.test(l)&&(u=""),i.push(`autocmd ${l} ${u} call coc#rpc#${s.request?"request":"notify"}('doAutocmd', [${o}${a}])`)}for(let o of this.watchers.options)i.push(`autocmd OptionSet ${o} call coc#rpc#notify('OptionSet',[expand(''), v:option_old, v:option_new])`);let r=` +`}function Xg(n,e){return`\r +`.indexOf(n.charAt(e))!==-1}var kk=_(()=>{"use strict";nb()});function cW(n,e,t){e===void 0&&(e=[]),t===void 0&&(t=Ug.DEFAULT);var i=null,r=[],o=[];function s(l){Array.isArray(r)?r.push(l):i!==null&&(r[i]=l)}var a={onObjectBegin:function(){var l={};s(l),o.push(r),r=l,i=null},onObjectProperty:function(l){i=l},onObjectEnd:function(){r=o.pop()},onArrayBegin:function(){var l=[];s(l),o.push(r),r=l,i=null},onArrayEnd:function(){r=o.pop()},onLiteralValue:s,onError:function(l,u,c){e.push({error:l,offset:u,length:c})}};return Pk(n,a,t),r[0]}function Ek(n,e,t){e===void 0&&(e=[]),t===void 0&&(t=Ug.DEFAULT);var i={type:"array",offset:-1,length:-1,children:[],parent:void 0};function r(l){i.type==="property"&&(i.length=l-i.offset,i=i.parent)}function o(l){return i.children.push(l),l}var s={onObjectBegin:function(l){i=o({type:"object",offset:l,length:-1,parent:i,children:[]})},onObjectProperty:function(l,u,c){i=o({type:"property",offset:u,length:-1,parent:i,children:[]}),i.children.push({type:"string",value:l,offset:u,length:c,parent:i})},onObjectEnd:function(l,u){r(l+u),i.length=l+u-i.offset,i=i.parent,r(l+u)},onArrayBegin:function(l,u){i=o({type:"array",offset:l,length:-1,parent:i,children:[]})},onArrayEnd:function(l,u){i.length=l+u-i.offset,i=i.parent,r(l+u)},onLiteralValue:function(l,u,c){o({type:sve(l),offset:u,length:c,parent:i,value:l}),r(u+c)},onSeparator:function(l,u,c){i.type==="property"&&(l===":"?i.colonOffset=u:l===","&&r(u))},onError:function(l,u,c){e.push({error:l,offset:u,length:c})}};Pk(n,s,t);var a=i.children[0];return a&&delete a.parent,a}function rb(n,e){if(!!n){for(var t=n,i=0,r=e;i=t.children.length)return;t=t.children[c]}}return t}}function Pk(n,e,t){t===void 0&&(t=Ug.DEFAULT);var i=$g(n,!1);function r(B){return B?function(){return B(i.getTokenOffset(),i.getTokenLength(),i.getTokenStartLine(),i.getTokenStartCharacter())}:function(){return!0}}function o(B){return B?function(M){return B(M,i.getTokenOffset(),i.getTokenLength(),i.getTokenStartLine(),i.getTokenStartCharacter())}:function(){return!0}}var s=r(e.onObjectBegin),a=o(e.onObjectProperty),l=r(e.onObjectEnd),u=r(e.onArrayBegin),c=r(e.onArrayEnd),h=o(e.onLiteralValue),d=o(e.onSeparator),g=r(e.onComment),p=o(e.onError),f=t&&t.disallowComments,m=t&&t.allowTrailingComma;function b(){for(;;){var B=i.scan();switch(i.getTokenError()){case 4:w(14);break;case 5:w(15);break;case 3:w(13);break;case 1:f||w(11);break;case 2:w(12);break;case 6:w(16);break}switch(B){case 12:case 13:f?w(10):g();break;case 16:w(1);break;case 15:case 14:break;default:return B}}}function w(B,M,F){if(M===void 0&&(M=[]),F===void 0&&(F=[]),p(B),M.length+F.length>0)for(var O=i.getToken();O!==17;){if(M.indexOf(O)!==-1){b();break}else if(F.indexOf(O)!==-1)break;O=b()}}function D(B){var M=i.getTokenValue();return B?h(M):a(M),b(),!0}function T(){switch(i.getToken()){case 11:var B=i.getTokenValue(),M=Number(B);isNaN(M)&&(w(2),M=0),h(M);break;case 7:h(null);break;case 8:h(!0);break;case 9:h(!1);break;default:return!1}return b(),!0}function R(){return i.getToken()!==10?(w(3,[],[2,5]),!1):(D(!1),i.getToken()===6?(d(":"),b(),X()||w(4,[],[2,5])):w(5,[],[2,5]),!0)}function N(){s(),b();for(var B=!1;i.getToken()!==2&&i.getToken()!==17;){if(i.getToken()===5){if(B||w(4,[],[]),d(","),b(),i.getToken()===2&&m)break}else B&&w(6,[],[]);R()||w(4,[],[2,5]),B=!0}return l(),i.getToken()!==2?w(7,[2],[]):b(),!0}function H(){u(),b();for(var B=!1;i.getToken()!==4&&i.getToken()!==17;){if(i.getToken()===5){if(B||w(4,[],[]),d(","),b(),i.getToken()===4&&m)break}else B&&w(6,[],[]);X()||w(4,[],[4,5]),B=!0}return c(),i.getToken()!==4?w(8,[4],[]):b(),!0}function X(){switch(i.getToken()){case 3:return H();case 1:return N();case 10:return D(!0);default:return T()}}return b(),i.getToken()===17?t.allowEmptyContent?!0:(w(4,[],[]),!1):X()?(i.getToken()!==17&&w(9,[],[]),!0):(w(4,[],[]),!1)}function sve(n){switch(typeof n){case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"object":{if(n){if(Array.isArray(n))return"array"}else return"null";return"object"}default:return"null"}}var Ug,_k=_(()=>{"use strict";nb();(function(n){n.DEFAULT={allowTrailingComma:!1}})(Ug||(Ug={}))});function hW(n,e,t,i){for(var r,o=e.slice(),s=[],a=Ek(n,s),l=void 0,u=void 0;o.length>0&&(u=o.pop(),l=rb(a,o),l===void 0&&t!==void 0);)typeof u=="string"?t=(r={},r[u]=t,r):t=[t];if(l)if(l.type==="object"&&typeof u=="string"&&Array.isArray(l.children)){var c=rb(l,[u]);if(c!==void 0)if(t===void 0){if(!c.parent)throw new Error("Malformed AST");var h=l.children.indexOf(c.parent),d=void 0,g=c.parent.offset+c.parent.length;if(h>0){var p=l.children[h-1];d=p.offset+p.length}else if(d=l.offset+1,l.children.length>1){var f=l.children[1];g=f.offset}return Ol(n,{offset:d,length:g-d,content:""},i)}else return Ol(n,{offset:c.offset,length:c.length,content:JSON.stringify(t)},i);else{if(t===void 0)return[];var m=JSON.stringify(u)+": "+JSON.stringify(t),b=i.getInsertionIndex?i.getInsertionIndex(l.children.map(function(B){return B.children[0].value})):l.children.length,w=void 0;if(b>0){var p=l.children[b-1];w={offset:p.offset+p.length,length:0,content:","+m}}else l.children.length===0?w={offset:l.offset+1,length:0,content:m}:w={offset:l.offset+1,length:0,content:m+","};return Ol(n,w,i)}}else if(l.type==="array"&&typeof u=="number"&&Array.isArray(l.children)){var D=u;if(D===-1){var m=""+JSON.stringify(t),w=void 0;if(l.children.length===0)w={offset:l.offset+1,length:0,content:m};else{var p=l.children[l.children.length-1];w={offset:p.offset+p.length,length:0,content:","+m}}return Ol(n,w,i)}else if(t===void 0&&l.children.length>=0){var T=u,R=l.children[T],w=void 0;if(l.children.length===1)w={offset:l.offset+1,length:l.length-2,content:""};else if(l.children.length-1===T){var p=l.children[T-1],N=p.offset+p.length,H=l.offset+l.length;w={offset:N,length:H-2-N,content:""}}else w={offset:R.offset,length:l.children[T+1].offset-R.offset,content:""};return Ol(n,w,i)}else if(t!==void 0){var w=void 0,m=""+JSON.stringify(t);if(!i.isArrayInsertion&&l.children.length>u){var X=l.children[u];w={offset:X.offset,length:X.length,content:m}}else if(l.children.length===0||u===0)w={offset:l.offset+1,length:0,content:l.children.length===0?m:m+","};else{var b=u>l.children.length?l.children.length:u,p=l.children[b-1];w={offset:p.offset+p.length,length:0,content:","+m}}return Ol(n,w,i)}else throw new Error("Can not "+(t===void 0?"remove":i.isArrayInsertion?"insert":"modify")+" Array index "+D+" as length is not sufficient")}else throw new Error("Can not add "+(typeof u!="number"?"index":"property")+" to parent of type "+l.type);else{if(t===void 0)throw new Error("Can not delete in empty document");return Ol(n,{offset:a?a.offset:0,length:a?a.length:0,content:JSON.stringify(t)},i)}}function Ol(n,e,t){if(!t.formattingOptions)return[e];var i=ob(n,e),r=e.offset,o=e.offset+e.content.length;if(e.length===0||e.content.length===0){for(;r>0&&!Xg(i,r-1);)r--;for(;o=0;a--){var l=s[a];i=ob(i,l),r=Math.min(r,l.offset),o=Math.max(o,l.offset+l.length),o+=l.content.length-l.length}var u=n.length-(i.length-o)-r;return[{offset:r,length:u,content:i.substring(r,o)}]}function ob(n,e){return n.substring(0,e.offset)+e.content+n.substring(e.offset+e.length)}var dW=_(()=>{"use strict";kk();_k()});function gW(n,e,t,i){return hW(n,e,t,i)}function pW(n,e){for(var t=e.length-1;t>=0;t--)n=ob(n,e[t]);return n}var Yc,Gg=_(()=>{"use strict";kk();dW();nb();_k();Yc=cW});function mW(n){let e={};for(let t of Object.keys(n))if(t.indexOf(".")==-1)e[t]=n[t];else{let i=t.split("."),r=e,o=i.length;for(let s=0;s"u"?t:o}function Lk(){let n=lb.default.join(cve,"data/schema.json"),e=sb.default.readFileSync(n,"utf8"),{properties:t}=JSON.parse(e),i={};return Object.keys(t).forEach(r=>{let o=t[r].default;o!==void 0&&Kg(i,r,o,s=>{uve.error(s)})}),{contents:i}}function Rk(n,e){let t=[];for(let i of Object.keys(n)){let r=n[i],o=e?`${e}.${i}`:i;t.push(o),Ht(r)&&t.push(...Rk(r,o))}return t}function wW(n,e){let t=[],i=Rk(n),r=Rk(e),o=r.filter(a=>!i.includes(a)),s=i.filter(a=>!r.includes(a));t.push(...o),t.push(...s);for(let a of i){if(!r.includes(a))continue;let l=ab(n,a),u=ab(e,a);Xe(l,u)||t.push(a)}return t}var fW,sb,lb,uve,cve,ub=_(()=>{"use strict";fW=x(q());Hc();Gg();lr();oi();sb=x(require("fs"));Ee();lb=x(require("path")),uve=W()("configuration-util"),cve=(0,lb.dirname)(__dirname)});var xn,Fk=_(()=>{"use strict";lr();oi();ub();xn=class{constructor(e={}){this._contents=e}get contents(){return this._contents}clone(){return new xn(Yr(this._contents))}getValue(e){return e?ab(this.contents,e):this.contents}merge(...e){let t=Yr(this.contents);for(let i of e)this.mergeContents(t,i.contents);return new xn(t)}freeze(){return Object.isFrozen(this._contents)||Object.freeze(this._contents),this}mergeContents(e,t){for(let i of Object.keys(t)){if(i in e&&Ht(e[i])&&Ht(t[i])){this.mergeContents(e[i],t[i]);continue}e[i]=Yr(t[i])}}setValue(e,t){Kg(this.contents,e,t,i=>{console.error(i)})}removeValue(e){bW(this.contents,e)}}});var cb,DW=_(()=>{"use strict";Fk();cb=class{constructor(e,t,i,r=new xn){this._defaultConfiguration=e;this._userConfiguration=t;this._workspaceConfiguration=i;this._memoryConfiguration=r}getConsolidateConfiguration(){return this._consolidateConfiguration||(this._consolidateConfiguration=this._defaultConfiguration.merge(this._userConfiguration,this._workspaceConfiguration,this._memoryConfiguration),this._consolidateConfiguration=this._consolidateConfiguration.freeze()),this._consolidateConfiguration}getValue(e){return this.getConsolidateConfiguration().getValue(e)}inspect(e){let t=this.getConsolidateConfiguration(),{_workspaceConfiguration:i,_memoryConfiguration:r}=this;return{default:this._defaultConfiguration.freeze().getValue(e),user:this._userConfiguration.freeze().getValue(e),workspace:i.freeze().getValue(e),memory:r.freeze().getValue(e),value:t.getValue(e)}}get defaults(){return this._defaultConfiguration}get user(){return this._userConfiguration}get workspace(){return this._workspaceConfiguration}toData(){return{defaults:{contents:this._defaultConfiguration.contents},user:{contents:this._userConfiguration.contents},workspace:{contents:this._workspaceConfiguration.contents}}}}});function Ik(n,e){if(e){if(n&&n.hasOwnProperty(e))return n[e];let t=e.split("."),i=n;for(let r=0;i&&r{"use strict";jk=x(require("fs")),CW=x(require("os")),Co=x(require("path")),Ak=x(q());Ee();$r();re();et();lr();oi();DW();Fk();ub();Wc=W()("configurations");gs=class{constructor(e,t){this.userConfigFile=e;this._proxy=t;this.cwd=process.cwd();this._errorItems=[];this._folderConfigurations=new Map;this._onError=new Ak.Emitter;this._onChange=new Ak.Emitter;this.disposables=[];this.onError=this._onError.event;this.onDidChange=this._onChange.event;let i=this.parseContentFromFile(e),r={defaults:Lk(),user:i,workspace:{contents:{}}};this._configuration=gs.parse(r),this.watchFile(e,1),this.addFolderFromCwd()}parseContentFromFile(e){if(!e)return{contents:{}};let t=I.file(e).toString();this._errorItems=this._errorItems.filter(r=>r.location.uri!=t);let i=yW(e,r=>{this._errorItems.push(...r)});return this._onError.fire(this._errorItems),i}get errorItems(){return this._errorItems}get foldConfigurations(){return this._folderConfigurations}extendsDefaults(e){let{defaults:t}=this._configuration,{contents:i}=t;i=Yr(i),Object.keys(e).forEach(o=>{Kg(i,o,e[o],s=>{Wc.error(s)})});let r={defaults:{contents:i},user:this._configuration.user,workspace:this._configuration.workspace};this._configuration=gs.parse(r)}updateUserConfig(e){if(!e||Object.keys(e).length==0)return;let{user:t}=this._configuration,i=t.clone();Object.keys(e).forEach(r=>{let o=e[r];if(o===void 0)i.removeValue(r);else if(Ht(o))for(let s of Object.keys(o))i.setValue(`${r}.${s}`,o[s]);else i.setValue(r,o)}),this.changeConfiguration(1,i,void 0)}get defaults(){return this._configuration.defaults}get user(){return this._configuration.user}get workspace(){return this._configuration.workspace}addFolderFile(e,t=!0,i=!1){if(!jk.default.existsSync(e)||li(this.userConfigFile,e)||li(e,Co.default.join(CW.default.homedir(),`.vim/${qr}`)))return!1;this._folderConfigurations.has(e)||this.watchFile(e,2);let r=this.updateFolderConfiguration(e);return Wc.info(`Add folder configuration from ${i?"cwd":"file"}:`,e),t&&this.workspaceConfigFile!==e&&(this.workspaceConfigFile=e,Wc.info(`Change folder configuration from ${i?"cwd":"file"} to:`,e),this.changeConfiguration(2,r,e)),!0}addFolderFromCwd(){let e=Co.default.join(this.cwd,`.vim/${qr}`);this.addFolderFile(e,!0,!0)}watchFile(e,t){if(!jk.default.existsSync(e)||global.__TEST__)return;let i=t===2,r=xc(e,()=>{let o=this.parseContentFromFile(e);i?(this._folderConfigurations.set(e,new xn(o.contents)),li(this.workspaceConfigFile,e)&&this.changeConfiguration(t,o,e)):this.changeConfiguration(t,o,e)});this.disposables.push(r)}updateFolderConfiguration(e){let t=this.parseContentFromFile(e);return this._folderConfigurations.set(e,new xn(t.contents)),t}changeConfiguration(e,t,i){let{defaults:r,user:o,workspace:s}=this._configuration,a={defaults:e==0?t:r,user:e==1?t:o,workspace:e==2?t:s},l=gs.parse(a),u=wW(this._configuration.getValue(),l.getValue());u.length!=0&&(this._configuration=l,this._onChange.fire({affectsConfiguration:(c,h)=>{if(!h||!h.startsWith("file:")||e!=2)return u.includes(c);let g=I.parse(h).fsPath;return i&&!Je(Co.default.resolve(i,"../.."),g)?!1:u.includes(c)}}))}getFolderConfigFile(e){let{folders:t}=this,i=t.find(r=>Je(r,e,!0));return i?Co.default.join(i,`.vim/${qr}`):void 0}getConfigFile(e){return e==0?null:e==1?this.userConfigFile:this.workspaceConfigFile}get folders(){let e=[],{_folderConfigurations:t}=this;for(let i of t.keys())e.push(Co.default.resolve(i,"../.."));return e}get configuration(){return this._configuration}getWorkspaceConfigUri(e){let t;return e||(t=this.workspaceConfigFile?I.file(this.workspaceConfigFile):void 0),!t&&this._proxy&&typeof this._proxy.getWorkspaceConfig=="function"&&(t=this._proxy.getWorkspaceConfig(e),t&&li(this.userConfigFile,t.fsPath)&&(t=void 0)),t}getConfiguration(e,t){let i,r;if(t){let{defaults:a,user:l}=this._configuration,[u,c]=this.getFolderConfiguration(t);r=u,i=new cb(a,l,c)}else r=this.workspaceConfigFile?I.file(this.workspaceConfigFile):void 0,i=this._configuration;let o=Object.freeze(Ik(i.getValue(null),e)),s={has(a){return typeof Ik(o,a)<"u"},get:(a,l)=>{let u=Ik(o,a);return u??l},update:(a,l,u=!1)=>{let c=e?`${e}.${a}`:a,h=u?1:2,d=h==1?this.user.clone():this.workspace.clone();if(l===void 0?d.removeValue(c):d.setValue(c,l),r||(r=this.getWorkspaceConfigUri(t)),r&&!li(this.workspaceConfigFile,r.fsPath)&&(Wc.info(`Change folder configuration ${t?"by "+t:""} to:`,r.fsPath),this.workspaceConfigFile=r.fsPath),this.changeConfiguration(h,d,h==2?this.workspaceConfigFile:this.userConfigFile),!u&&!r){global.__TEST__||console.error(`Unable to locate workspace configuration ${t?"for "+t:""}, workspace folder not resolved.`),Wc.error("Unable to locate workspace configuration",t);return}let g=u?I.parse(this.userConfigFile):r;this._proxy&&!global.__TEST__&&(l===void 0?this._proxy.$removeConfigurationOption(h,c,{resource:g}):this._proxy.$updateConfigurationOption(h,c,l,{resource:g})),!u&&r&&this.addFolderFile(r.fsPath,!1)},inspect:a=>{a=e?`${e}.${a}`:a;let l=this._configuration.inspect(a);return{key:a,defaultValue:l.default,globalValue:l.user,workspaceValue:l.workspace}}};return Object.defineProperty(s,"has",{enumerable:!1}),Object.defineProperty(s,"get",{enumerable:!1}),Object.defineProperty(s,"update",{enumerable:!1}),Object.defineProperty(s,"inspect",{enumerable:!1}),typeof o=="object"&&PT(s,o,!1),kq(s)}getFolderConfiguration(e){let t=I.parse(e),i;t.scheme!="file"?i=this.cwd:i=t.fsPath;for(let[r,o]of this.foldConfigurations){let s=Co.default.resolve(r,"../..");if(Je(s,i,!0))return[I.file(r),o]}return[void 0,new xn]}resolveFolderConfigution(e){let t=I.parse(e);if(t.scheme!="file")return;let i=Co.default.dirname(t.fsPath),r=this.getFolderConfigFile(i);if(r)return r;let o=jc(".vim",i);if(!o)return;let s=Co.default.join(o,qr);if(!!this.addFolderFile(s,!1))return s}setFolderConfiguration(e){let t=I.parse(e);if(t.scheme!="file")return;let i=t.fsPath;for(let[r,o]of this.foldConfigurations){let s=Co.default.resolve(r,"../..");if(Je(s,i,!0)){this.workspaceConfigFile!=r&&(this.workspaceConfigFile=r,Wc.info("Change folder configuration to:",r),this.changeConfiguration(2,o,r));break}}}static parse(e){let t=new xn(e.defaults.contents),i=new xn(e.user.contents),r=new xn(e.workspace.contents);return new cb(t,i,r,new xn)}reset(){this._errorItems=[],this._folderConfigurations.clear();let e=this.parseContentFromFile(this.userConfigFile),t={defaults:Lk(),user:e,workspace:{contents:{}}};this._configuration=gs.parse(t),this._onChange.fire({affectsConfiguration:()=>!0})}dispose(){this._folderConfigurations.clear(),this._onError.dispose(),this._onChange.dispose(),$(this.disposables)}}});var Qg,SW,Mk,gve,hb,TW=_(()=>{"use strict";Qg=x(require("fs"));Gg();SW=x(require("os")),Mk=x(require("path"));Ee();re();et();gve=W()("configuration-shape"),hb=class{constructor(e){this.resolver=e}modifyConfiguration(e,t,i){if(!e||e.scheme!=="file")return;gve.info("modify configuration file:",e.fsPath);let r=e.fsPath,o=Mk.default.dirname(r),s={tabSize:2,insertSpaces:!0};Qg.default.existsSync(o)||Qg.default.mkdirSync(o,{recursive:!0});let a=Qg.default.readFileSync(r,{encoding:"utf8",flag:"a+"});a=a||"{}";let l=gW(a,[t],i,{formattingOptions:s});a=pW(a,l),Qg.default.writeFileSync(r,a,"utf8")}getWorkspaceConfig(e){let t;if(e){if(typeof this.resolver.getWorkspaceFolder=="function"){let i=this.resolver.getWorkspaceFolder(e);i&&(t=I.parse(i.uri).fsPath)}}else t=this.resolver.root;if(t&&!li(t,SW.default.homedir()))return I.file(Mk.default.join(t,".vim",qr))}$updateConfigurationOption(e,t,i,r){this.modifyConfiguration(r==null?void 0:r.resource,t,i)}$removeConfigurationOption(e,t,i){this.modifyConfiguration(i==null?void 0:i.resource,t)}}});var Ok,kW,Nk,EW,pve,db,PW=_(()=>{"use strict";Ok=x(Bn()),kW=x(require("os")),Nk=x(require("path")),EW=x(q());re();pve=W()("core-autocmds"),db=class{constructor(e,t){this.contentProvider=e;this.watchers=t;this._dynAutocmd=!1;this.autocmdMaxId=0;this.autocmds=new Map;this.disposables=[];this.contentProvider.onDidProviderChange(()=>{this.setupDynamicAutocmd()},null,this.disposables),this.watchers.onDidOptionChange(()=>{this.setupDynamicAutocmd()},null,this.disposables)}attach(e,t){this.nvim=e,this.env=t}async doAutocmd(e,t){let i=this.autocmds.get(e);if(i){let r=Array.isArray(i.event)?i.event.join(","):i.event;pve.debug(`invoke ${i.request?"request":"notify"} autocmd:`,r),await Promise.resolve(i.callback.apply(i.thisArg,t))}}registerAutocmd(e){this.autocmdMaxId+=1;let t=this.autocmdMaxId;return this.autocmds.set(t,e),this.setupDynamicAutocmd(),EW.Disposable.create(()=>{this.autocmds.delete(t),this.setupDynamicAutocmd()})}setupDynamicAutocmd(e=!1){if(!e&&!this._dynAutocmd)return;this._dynAutocmd=!0;let t=this.contentProvider.schemes,i=[];for(let o of t)i.push(`autocmd BufReadCmd,FileReadCmd,SourceCmd ${o}:/* call coc#rpc#request('CocAutocmd', ['BufReadCmd','${o}', expand('')])`);for(let[o,s]of this.autocmds.entries()){let a=s.arglist&&s.arglist.length?", "+s.arglist.join(", "):"",l=Array.isArray(s.event)?s.event.join(","):s.event,u=s.pattern!=null?s.pattern:"*";/\buser\b/i.test(l)&&(u=""),i.push(`autocmd ${l} ${u} call coc#rpc#${s.request?"request":"notify"}('doAutocmd', [${o}${a}])`)}for(let o of this.watchers.options)i.push(`autocmd OptionSet ${o} call coc#rpc#notify('OptionSet',[expand(''), v:option_old, v:option_new])`);let r=` augroup coc_dynamic_autocmd autocmd! ${i.join(` `)} -augroup end`;if(this.nvim.hasFunction("nvim_exec"))this.nvim.exec(r,!1);else{let o=YT.default.join(process.env.TMPDIR||bY.default.tmpdir(),`coc.nvim-${process.pid}.vim`);qT.default.mkdirSync(o,{recursive:!0});let s=YT.default.join(o,`coc-${process.pid}.vim`);qT.default.writeFileSync(s,r,"utf8");let a=`source ${s}`;this.env.isCygwin&&Zo.isWindows&&(a=`execute "source" . substitute(system('cygpath ${s.replace(/\\/g,"/")}'), '\\n', '', 'g')`),this.nvim.command(a)}}dispose(){this.nvim.command("augroup coc_dynamic_autocmd| autocmd!|augroup end",!0),Z(this.disposables)}}});var Cl,Hb,wY=_(()=>{"use strict";Cl=C(H());we();le();z();Hb=class{constructor(e){this.documents=e;this.disposables=[];this.providers=new Map;this._onDidProviderChange=new Cl.Emitter;this.onDidProviderChange=this._onDidProviderChange.event}attach(e){this.nvim=e,E.on("BufReadCmd",this.onBufReadCmd,this,this.disposables)}get schemes(){return Array.from(this.providers.keys())}async onBufReadCmd(e,t){let i=this.providers.get(e);if(!i)return;let r=new Cl.CancellationTokenSource,o=await Promise.resolve(i.provideTextDocumentContent(O.parse(t),r.token)),s=await this.nvim.buffer;await s.setLines(o.split(/\r?\n/),{start:0,end:-1,strictIndexing:!1}),process.nextTick(()=>{E.fire("BufCreate",[s.id])})}registerTextDocumentContentProvider(e,t){this.providers.set(e,t),this._onDidProviderChange.fire();let i=[];return t.onDidChange&&t.onDidChange(async r=>{let{buffer:o}=this.documents.getDocument(r.toString()),s=new Cl.CancellationTokenSource,a=await Promise.resolve(t.provideTextDocumentContent(r,s.token));await o.setLines(a.split(/\r?\n/),{start:0,end:-1,strictIndexing:!1})},null,i),Cl.Disposable.create(()=>{this.providers.delete(e),Z(i),this._onDidProviderChange.fire()})}dispose(){Z(this.disposables),this._onDidProviderChange.dispose(),this.providers.clear()}}});var CY=m((xFe,qb)=>{"use strict";qb.exports=Mbe;qb.exports.format=DY;qb.exports.parse=xY;var jbe=/\B(?=(\d{3})+(?!\d))/g,Abe=/(?:\.0*|(\.[^0]+)0+)$/,na={b:1,kb:1<<10,mb:1<<20,gb:1<<30,tb:Math.pow(1024,4),pb:Math.pow(1024,5)},Obe=/^((-|\+)?(\d+(?:\.\d+)?)) *(kb|mb|gb|tb|pb)$/i;function Mbe(n,e){return typeof n=="string"?xY(n):typeof n=="number"?DY(n,e):null}function DY(n,e){if(!Number.isFinite(n))return null;var t=Math.abs(n),i=e&&e.thousandsSeparator||"",r=e&&e.unitSeparator||"",o=e&&e.decimalPlaces!==void 0?e.decimalPlaces:2,s=Boolean(e&&e.fixedDecimals),a=e&&e.unit||"";(!a||!na[a.toLowerCase()])&&(t>=na.pb?a="PB":t>=na.tb?a="TB":t>=na.gb?a="GB":t>=na.mb?a="MB":t>=na.kb?a="KB":a="B");var l=n/na[a.toLowerCase()],u=l.toFixed(o);return s||(u=u.replace(Abe,"$1")),i&&(u=u.replace(jbe,i)),u+r+a}function xY(n){if(typeof n=="number"&&!isNaN(n))return n;if(typeof n!="string")return null;var e=Obe.exec(n),t,i="b";return e?(t=parseFloat(e[1]),i=e[4].toLowerCase()):(t=parseInt(n,10),i="b"),Math.floor(na[i]*t)}});var Lg=m((CFe,RY)=>{var oo=-1,jr=1,gn=0;function Rg(n,e,t,i){if(n===e)return n?[[gn,n]]:[];if(t!=null){var r=Ybe(n,e,t);if(r)return r}var o=ZT(n,e),s=n.substring(0,o);n=n.substring(o),e=e.substring(o),o=JT(n,e);var a=n.substring(n.length-o);n=n.substring(0,n.length-o),e=e.substring(0,e.length-o);var l=Nbe(n,e);return s&&l.unshift([gn,s]),a&&l.push([gn,a]),TY(l,i),l}function Nbe(n,e){var t;if(!n)return[[jr,e]];if(!e)return[[oo,n]];var i=n.length>e.length?n:e,r=n.length>e.length?e:n,o=i.indexOf(r);if(o!==-1)return t=[[jr,i.substring(0,o)],[gn,r],[jr,i.substring(o+r.length)]],n.length>e.length&&(t[0][0]=t[2][0]=oo),t;if(r.length===1)return[[oo,n],[jr,e]];var s=Hbe(n,e);if(s){var a=s[0],l=s[1],u=s[2],c=s[3],h=s[4],d=Rg(a,u),g=Rg(l,c);return d.concat([[gn,h]],g)}return Bbe(n,e)}function Bbe(n,e){for(var t=n.length,i=e.length,r=Math.ceil((t+i)/2),o=r,s=2*r,a=new Array(s),l=new Array(s),u=0;ut)g+=2;else if(S>i)d+=2;else if(h){var F=o+c-v;if(F>=0&&F=L)return SY(n,e,D,S)}}}for(var j=-b+f;j<=b-p;j+=2){var F=o+j,L;j===-b||j!==b&&l[F-1]t)p+=2;else if(W>i)f+=2;else if(!h){var w=o+c-j;if(w>=0&&w=L)return SY(n,e,D,S)}}}}return[[oo,n],[jr,e]]}function SY(n,e,t,i){var r=n.substring(0,t),o=e.substring(0,i),s=n.substring(t),a=e.substring(i),l=Rg(r,o),u=Rg(s,a);return l.concat(u)}function ZT(n,e){if(!n||!e||n.charAt(0)!==e.charAt(0))return 0;for(var t=0,i=Math.min(n.length,e.length),r=i,o=0;te.length?n:e,i=n.length>e.length?e:n;if(t.length<4||i.length*2=g.length?[D,S,F,L,w]:null}var o=r(t,i,Math.ceil(t.length/4)),s=r(t,i,Math.ceil(t.length/2)),a;if(!o&&!s)return null;s?o?a=o[4].length>s[4].length?o:s:a=s:a=o;var l,u,c,h;n.length>e.length?(l=a[0],u=a[1],c=a[2],h=a[3]):(c=a[0],h=a[1],l=a[2],u=a[3]);var d=a[4];return[l,u,c,h,d]}function TY(n,e){n.push([gn,""]);for(var t=0,i=0,r=0,o="",s="",a;t=0&&_Y(n[l][1])){var u=n[l][1].slice(-1);if(n[l][1]=n[l][1].slice(0,-1),o=u+o,s=u+s,!n[l][1]){n.splice(l,1),t--;var c=l-1;n[c]&&n[c][0]===jr&&(r++,s=n[c][1]+s,c--),n[c]&&n[c][0]===oo&&(i++,o=n[c][1]+o,c--),l=c}}if(PY(n[t][1])){var u=n[t][1].charAt(0);n[t][1]=n[t][1].slice(1),o+=u,s+=u}}if(t0||s.length>0){o.length>0&&s.length>0&&(a=ZT(s,o),a!==0&&(l>=0?n[l][1]+=s.substring(0,a):(n.splice(0,0,[gn,s.substring(0,a)]),t++),s=s.substring(a),o=o.substring(a)),a=JT(s,o),a!==0&&(n[t][1]=s.substring(s.length-a)+n[t][1],s=s.substring(0,s.length-a),o=o.substring(0,o.length-a)));var h=r+i;o.length===0&&s.length===0?(n.splice(t-h,h),t=t-h):o.length===0?(n.splice(t-h,h,[jr,s]),t=t-h+1):s.length===0?(n.splice(t-h,h,[oo,o]),t=t-h+1):(n.splice(t-h,h,[oo,o],[jr,s]),t=t-h+2)}t!==0&&n[t-1][0]===gn?(n[t-1][1]+=n[t][1],n.splice(t,1)):t++,r=0,i=0,o="",s="";break}}n[n.length-1][1]===""&&n.pop();var d=!1;for(t=1;t=55296&&n<=56319}function EY(n){return n>=56320&&n<=57343}function PY(n){return EY(n.charCodeAt(0))}function _Y(n){return kY(n.charCodeAt(n.length-1))}function qbe(n){for(var e=[],t=0;t0&&e.push(n[t]);return e}function WT(n,e,t,i){return _Y(n)||PY(i)?null:qbe([[gn,n],[oo,e],[jr,t],[gn,i]])}function Ybe(n,e,t){var i=typeof t=="number"?{index:t,length:0}:t.oldRange,r=typeof t=="number"?null:t.newRange,o=n.length,s=e.length;if(i.length===0&&(r===null||r.length===0)){var a=i.index,l=n.slice(0,a),u=n.slice(a),c=r?r.index:null;e:{var h=a+s-o;if(c!==null&&c!==h||h<0||h>s)break e;var d=e.slice(0,h),g=e.slice(h);if(g!==u)break e;var f=Math.min(a,h),p=l.slice(0,f),b=d.slice(0,f);if(p!==b)break e;var v=l.slice(f),w=d.slice(f);return WT(p,v,w,u)}e:{if(c!==null&&c!==a)break e;var D=a,d=e.slice(0,D),g=e.slice(D);if(d!==l)break e;var S=Math.min(o-D,s-D),F=u.slice(u.length-S),L=g.slice(g.length-S);if(F!==L)break e;var v=u.slice(0,u.length-S),w=g.slice(0,g.length-S);return WT(l,v,w,F)}}if(i.length>0&&r&&r.length===0){e:{var p=n.slice(0,i.index),F=n.slice(i.index+i.length),f=p.length,S=F.length;if(sr&&s.length){let l=0;for(let u=0;u=b&&v!==p&&(v+=1);let w=0;for(let F=0;F0?h.join(` +augroup end`;if(this.nvim.hasFunction("nvim_exec"))this.nvim.exec(r,!1);else{let o=Nk.default.join(process.env.TMPDIR||kW.default.tmpdir(),`coc.nvim-${process.pid}.vim`);Ok.default.mkdirSync(o,{recursive:!0});let s=Nk.default.join(o,`coc-${process.pid}.vim`);Ok.default.writeFileSync(s,r,"utf8");let a=`source ${s}`;this.env.isCygwin&&us.isWindows&&(a=`execute "source" . substitute(system('cygpath ${s.replace(/\\/g,"/")}'), '\\n', '', 'g')`),this.nvim.command(a)}}dispose(){this.nvim.command("augroup coc_dynamic_autocmd| autocmd!|augroup end",!0),$(this.disposables)}}});var Nl,gb,_W=_(()=>{"use strict";Nl=x(q());Ee();we();re();gb=class{constructor(e){this.documents=e;this.disposables=[];this.providers=new Map;this._onDidProviderChange=new Nl.Emitter;this.onDidProviderChange=this._onDidProviderChange.event}attach(e){this.nvim=e,P.on("BufReadCmd",this.onBufReadCmd,this,this.disposables)}get schemes(){return Array.from(this.providers.keys())}async onBufReadCmd(e,t){let i=this.providers.get(e);if(!i)return;let r=new Nl.CancellationTokenSource,o=await Promise.resolve(i.provideTextDocumentContent(I.parse(t),r.token)),s=await this.nvim.buffer;await s.setLines(o.split(/\r?\n/),{start:0,end:-1,strictIndexing:!1}),process.nextTick(()=>{P.fire("BufCreate",[s.id])})}registerTextDocumentContentProvider(e,t){this.providers.set(e,t),this._onDidProviderChange.fire();let i=[];return t.onDidChange&&t.onDidChange(async r=>{let{buffer:o}=this.documents.getDocument(r.toString()),s=new Nl.CancellationTokenSource,a=await Promise.resolve(t.provideTextDocumentContent(r,s.token));await o.setLines(a.split(/\r?\n/),{start:0,end:-1,strictIndexing:!1})},null,i),Nl.Disposable.create(()=>{this.providers.delete(e),$(i),this._onDidProviderChange.fire()})}dispose(){$(this.disposables),this._onDidProviderChange.dispose(),this.providers.clear()}}});var FW=y((lje,pb)=>{"use strict";pb.exports=bve;pb.exports.format=RW;pb.exports.parse=LW;var fve=/\B(?=(\d{3})+(?!\d))/g,mve=/(?:\.0*|(\.[^0]+)0+)$/,ma={b:1,kb:1<<10,mb:1<<20,gb:1<<30,tb:Math.pow(1024,4),pb:Math.pow(1024,5)},yve=/^((-|\+)?(\d+(?:\.\d+)?)) *(kb|mb|gb|tb|pb)$/i;function bve(n,e){return typeof n=="string"?LW(n):typeof n=="number"?RW(n,e):null}function RW(n,e){if(!Number.isFinite(n))return null;var t=Math.abs(n),i=e&&e.thousandsSeparator||"",r=e&&e.unitSeparator||"",o=e&&e.decimalPlaces!==void 0?e.decimalPlaces:2,s=Boolean(e&&e.fixedDecimals),a=e&&e.unit||"";(!a||!ma[a.toLowerCase()])&&(t>=ma.pb?a="PB":t>=ma.tb?a="TB":t>=ma.gb?a="GB":t>=ma.mb?a="MB":t>=ma.kb?a="KB":a="B");var l=n/ma[a.toLowerCase()],u=l.toFixed(o);return s||(u=u.replace(mve,"$1")),i&&(u=u.replace(fve,i)),u+r+a}function LW(n){if(typeof n=="number"&&!isNaN(n))return n;if(typeof n!="string")return null;var e=yve.exec(n),t,i="b";return e?(t=parseFloat(e[1]),i=e[4].toLowerCase()):(t=parseInt(n,10),i="b"),Math.floor(ma[i]*t)}});var Vg=y((uje,BW)=>{var xo=-1,Xr=1,Sn=0;function zg(n,e,t,i){if(n===e)return n?[[Sn,n]]:[];if(t!=null){var r=xve(n,e,t);if(r)return r}var o=Hk(n,e),s=n.substring(0,o);n=n.substring(o),e=e.substring(o),o=qk(n,e);var a=n.substring(n.length-o);n=n.substring(0,n.length-o),e=e.substring(0,e.length-o);var l=vve(n,e);return s&&l.unshift([Sn,s]),a&&l.push([Sn,a]),jW(l,i),l}function vve(n,e){var t;if(!n)return[[Xr,e]];if(!e)return[[xo,n]];var i=n.length>e.length?n:e,r=n.length>e.length?e:n,o=i.indexOf(r);if(o!==-1)return t=[[Xr,i.substring(0,o)],[Sn,r],[Xr,i.substring(o+r.length)]],n.length>e.length&&(t[0][0]=t[2][0]=xo),t;if(r.length===1)return[[xo,n],[Xr,e]];var s=Dve(n,e);if(s){var a=s[0],l=s[1],u=s[2],c=s[3],h=s[4],d=zg(a,u),g=zg(l,c);return d.concat([[Sn,h]],g)}return wve(n,e)}function wve(n,e){for(var t=n.length,i=e.length,r=Math.ceil((t+i)/2),o=r,s=2*r,a=new Array(s),l=new Array(s),u=0;ut)g+=2;else if(T>i)d+=2;else if(h){var R=o+c-b;if(R>=0&&R=N)return IW(n,e,D,T)}}}for(var H=-m+p;H<=m-f;H+=2){var R=o+H,N;H===-m||H!==m&&l[R-1]t)f+=2;else if(X>i)p+=2;else if(!h){var w=o+c-H;if(w>=0&&w=N)return IW(n,e,D,T)}}}}return[[xo,n],[Xr,e]]}function IW(n,e,t,i){var r=n.substring(0,t),o=e.substring(0,i),s=n.substring(t),a=e.substring(i),l=zg(r,o),u=zg(s,a);return l.concat(u)}function Hk(n,e){if(!n||!e||n.charAt(0)!==e.charAt(0))return 0;for(var t=0,i=Math.min(n.length,e.length),r=i,o=0;te.length?n:e,i=n.length>e.length?e:n;if(t.length<4||i.length*2=g.length?[D,T,R,N,w]:null}var o=r(t,i,Math.ceil(t.length/4)),s=r(t,i,Math.ceil(t.length/2)),a;if(!o&&!s)return null;s?o?a=o[4].length>s[4].length?o:s:a=s:a=o;var l,u,c,h;n.length>e.length?(l=a[0],u=a[1],c=a[2],h=a[3]):(c=a[0],h=a[1],l=a[2],u=a[3]);var d=a[4];return[l,u,c,h,d]}function jW(n,e){n.push([Sn,""]);for(var t=0,i=0,r=0,o="",s="",a;t=0&&NW(n[l][1])){var u=n[l][1].slice(-1);if(n[l][1]=n[l][1].slice(0,-1),o=u+o,s=u+s,!n[l][1]){n.splice(l,1),t--;var c=l-1;n[c]&&n[c][0]===Xr&&(r++,s=n[c][1]+s,c--),n[c]&&n[c][0]===xo&&(i++,o=n[c][1]+o,c--),l=c}}if(OW(n[t][1])){var u=n[t][1].charAt(0);n[t][1]=n[t][1].slice(1),o+=u,s+=u}}if(t0||s.length>0){o.length>0&&s.length>0&&(a=Hk(s,o),a!==0&&(l>=0?n[l][1]+=s.substring(0,a):(n.splice(0,0,[Sn,s.substring(0,a)]),t++),s=s.substring(a),o=o.substring(a)),a=qk(s,o),a!==0&&(n[t][1]=s.substring(s.length-a)+n[t][1],s=s.substring(0,s.length-a),o=o.substring(0,o.length-a)));var h=r+i;o.length===0&&s.length===0?(n.splice(t-h,h),t=t-h):o.length===0?(n.splice(t-h,h,[Xr,s]),t=t-h+1):s.length===0?(n.splice(t-h,h,[xo,o]),t=t-h+1):(n.splice(t-h,h,[xo,o],[Xr,s]),t=t-h+2)}t!==0&&n[t-1][0]===Sn?(n[t-1][1]+=n[t][1],n.splice(t,1)):t++,r=0,i=0,o="",s="";break}}n[n.length-1][1]===""&&n.pop();var d=!1;for(t=1;t=55296&&n<=56319}function MW(n){return n>=56320&&n<=57343}function OW(n){return MW(n.charCodeAt(0))}function NW(n){return AW(n.charCodeAt(n.length-1))}function Cve(n){for(var e=[],t=0;t0&&e.push(n[t]);return e}function Bk(n,e,t,i){return NW(n)||OW(i)?null:Cve([[Sn,n],[xo,e],[Xr,t],[Sn,i]])}function xve(n,e,t){var i=typeof t=="number"?{index:t,length:0}:t.oldRange,r=typeof t=="number"?null:t.newRange,o=n.length,s=e.length;if(i.length===0&&(r===null||r.length===0)){var a=i.index,l=n.slice(0,a),u=n.slice(a),c=r?r.index:null;e:{var h=a+s-o;if(c!==null&&c!==h||h<0||h>s)break e;var d=e.slice(0,h),g=e.slice(h);if(g!==u)break e;var p=Math.min(a,h),f=l.slice(0,p),m=d.slice(0,p);if(f!==m)break e;var b=l.slice(p),w=d.slice(p);return Bk(f,b,w,u)}e:{if(c!==null&&c!==a)break e;var D=a,d=e.slice(0,D),g=e.slice(D);if(d!==l)break e;var T=Math.min(o-D,s-D),R=u.slice(u.length-T),N=g.slice(g.length-T);if(R!==N)break e;var b=u.slice(0,u.length-T),w=g.slice(0,g.length-T);return Bk(l,b,w,R)}}if(i.length>0&&r&&r.length===0){e:{var f=n.slice(0,i.index),R=n.slice(i.index+i.length),p=f.length,T=R.length;if(sr&&s.length){let l=0;for(let u=0;u=m&&b!==f&&(b+=1);let w=0;for(let R=0;R0?h.join(` `)+` -`:"";if(!(d.length===0&&a===r-c))return un.replace(Ne.create(a,0,r-c,0),d)}var Wb,kFe,$T=_(()=>{"use strict";Wb=C(Lg());Kr();Pe();kFe=q()("util-diff")});function ra(n){let{newText:e}=n,t=Zb(n.range),i=t.end.line-t.start.line;return e.split(/\r?\n/).length-i-1}function Zb(n){let e=n.start,t=n.end;return e.line>t.line||e.line===t.line&&e.character>t.character?{start:t,end:e}:n}function Fg(n,e){if(n.length<=1)return n;let t=n.length/2|0,i=n.slice(0,t),r=n.slice(t);Fg(i,e),Fg(r,e);let o=0,s=0,a=0;for(;o0&&i.character==0,o;for(let s=0;s0){let h=t[t.length-1];h.newText=l,o=void 0;continue}o=void 0}l.includes("\r")&&(l=l.replace(/\r\n/g,` -`));let c=De(u.end,i);if(c>0&&(u.end={line:i.line,character:i.character}),n.getText(u)!==l){if(c===0&&r&&!Ct(u)&&l.endsWith(` -`)){l=l.slice(0,-1);let h=n.lines[i.line-1];u.end=er.Position.create(i.line-1,h.length)}else l.length==0&&(o=u.start);t.push({range:u,newText:l})}}return Fg(t,(s,a)=>{let l=s.range.start.line-a.range.start.line;return l===0?s.range.start.character-a.range.start.character:l})}function NY(n,e){var s,a;if(e.length==1){let{start:l,end:u}=e[0].range,{lines:c}=n,h=(s=c[l.line])!=null?s:"",d=(a=c[u.line])!=null?a:"",g=h.substring(0,l.character)+e[0].newText+d.substring(u.character);return u.line>=c.length&&n.eol?g==""?[...c.slice(0,l.line)]:(g.endsWith(` -`)&&(g=g.slice(0,-1)),[...c.slice(0,l.line),...g.split(` -`)]):[...c.slice(0,l.line),...g.split(` -`),...c.slice(u.line+1)]}let t=n.getText(),i=0,r=[];for(let l of e){let u=n.offsetAt(l.range.start);if(ui&&r.push(t.substring(i,u)),l.newText.length&&r.push(l.newText),i=n.offsetAt(l.range.end)}r.push(t.substring(i));let o=r.join("");if(o!==t)return DH(o,n.eol)}function BY(n,e){return e.map(t=>{var c,h;let{start:i,end:r}=t.range,o=(c=n[i.line])!=null?c:"",s=Q(o.slice(0,i.character)),a=r.line==i.line?o:(h=n[r.line])!=null?h:"",l=Q(a.slice(0,r.character)),{newText:u}=t;return[u.length>0?u.split(` -`):[],i.line,s,r.line,l]})}function Jb(n,e){let{range:t,newText:i}=e;if(De(t.end,n)<=0){let r=i.split(` -`),o=r.length-(t.end.line-t.start.line)-1,s=n.character;if(t.end.line==n.line){let a=r[r.length-1].length;r.length>1?s=a+s-t.end.character:s=t.start.character+a+s-t.end.character}return{line:o,character:s-n.character}}return{line:0,character:0}}function $b(n,e){let{line:t,character:i}=n,{range:r,newText:o}=e,{end:s}=r,a=o.split(` -`),l=a.length-(s.line-r.start.line)-1,u=r.end.line-n.line;if(u>0)return{line:t,character:i};if(u<0)return{line:t+l,character:i};if(a.length>1){let h=a[a.length-1].length;return{line:t+l,character:h+i-s.character}}let c=r.start.character-r.end.character;return{line:t+l,character:c+o.length+i}}function Xb(n,e){let t=er.Position.create(n.line,n.character),i=!1;for(let r=e.length-1;r>=0;r--){let o=e[r];if(i){t.line+=ra(o);continue}De(o.range.end,t)>0||(o.range.end.line==t.line?t=$b(t,o):(i=!0,t.line+=ra(o)))}return t}function XT(n,e){let t=0;for(let i of e){let r=Zb(i.range);De(r.end,n)<=0&&(t+=ra(i))}return t}function HY(n,e,t){var c,h;let i=n[0].range.start,r=n[n.length-1].range.end,o=e.length-r.line,s=((c=e[r.line])!=null?c:"").length-r.character,a=t.length-o,l=((h=t[a])!=null?h:"").length-s,u=Wbe(i,er.Position.create(a,l),t);return er.TextEdit.replace(er.Range.create(i,r),u)}function Wbe(n,e,t){var r,o;if(n.line===e.line)return((r=t[n.line])!=null?r:"").slice(n.character,e.character);let i=[];for(let s=n.line;s<=e.line;s++){let a=(o=t[s])!=null?o:"";s===n.line?i.push(a.slice(n.character)):s===e.line?i.push(a.slice(0,e.character)):i.push(a)}return i.join(` -`)}var er,Ar=_(()=>{"use strict";er=C(H());yt();Pe()});var UT,OFe,tr,jg,qY=_(()=>{"use strict";UT=C(H());z();Ec();OFe=q()("model-chars"),tr=class{constructor(e,t){this.start=e,this.end=t||e}static fromKeywordOption(e){let t=e.split(","),i=[];i.push(new tr(65,90)),i.push(new tr(97,122));for(let r of t)if(r=="@")i.push(new tr(256,65535));else if(r=="@-@")i.push(new tr(64));else if(/^\d+-\d+$/.test(r)){let o=r.match(/^(\d+)-(\d+)$/);i.push(new tr(Number(o[1]),Number(o[2])))}else if(/^\d+$/.test(r))i.push(new tr(Number(r)));else{let o=r.charCodeAt(0);i.some(s=>s.contains(o))||i.push(new tr(o))}return i}contains(e){return e>=this.start&&e<=this.end}},jg=class{constructor(e){this.ranges=[];e&&(this.ranges=tr.fromKeywordOption(e))}addKeyword(e){let t=e.charCodeAt(0),{ranges:i}=this;i.some(r=>r.contains(t))||i.push(new tr(t))}clone(){let e=new jg;return e.ranges=this.ranges.slice(),e}setKeywordOption(e){this.ranges=tr.fromKeywordOption(e)}async matchLines(e,t=2,i){let r=new Set,o=Date.now();for(let s of e){if(s.length===0)continue;let a="";Date.now()-o>15&&(await Vr(),o=Date.now());for(let l of s){if(i&&i.isCancellationRequested)return;let u=l.codePointAt(0);this.isKeywordCode(u)?a=a+l:a.length>0&&(a.length>=t&&a.length<48&&r.add(a),a="")}a.length>=t&&a.length<48&&r.add(a)}return r}isKeywordCode(e){return e>255?!0:e<33?!1:this.ranges.some(t=>t.contains(e))}isKeywordChar(e){let{ranges:t}=this;if(/\s/.test(e))return!1;let i=e.charCodeAt(0);return i<33?!1:t.some(r=>r.contains(i))}isKeyword(e){for(let t=0,i=e.length;tr){let p=l.length,b=!1;for(;a>e.line+1;){let v=i[a-1].length;if(p-v1){let v=l.substring(g,p);o.set(v,p/c)}f=b}g=h-d,f=!1;for(let p=g;p1){let v=p==h-1?p+1:p,w=l.substring(g,v),D=o.get(w)||0,S=h-p+(v-g);S!==d&&o.set(w,Math.max(D,S/d))}f=b}return o}}});var GT,QT,YY=_(()=>{"use strict";GT=C(H()),QT=class{constructor(e,t,i){this._line=e,this._text=t,this._isLastLine=i}get lineNumber(){return this._line}get text(){return this._text}get range(){return GT.Range.create(this._line,0,this._line,this._text.length)}get rangeIncludingLineBreak(){return this._isLastLine?this.range:GT.Range.create(this._line,0,this._line+1,0)}get firstNonWhitespaceCharacterIndex(){return/^(\s*)/.exec(this._text)[1].length}get isEmptyOrWhitespace(){return this.firstNonWhitespaceCharacterIndex===this._text.length}}});function Zbe(n,e){let t=[],i=0;for(let r of n)t.push(i),i+=r.length+1;return e&&t.push(i),t}var Ub,Ag,WY=_(()=>{"use strict";Ub=C(H());YY();Ag=class{constructor(e,t,i,r,o,s){this.uri=e;this.languageId=t;this.version=i;this.lines=r;this.bufnr=o;this.eol=s}get content(){return this._content||(this._content=this.lines.join(` +`:"";if(!(d.length===0&&a===r-c))return nn.replace(Ye.create(a,0,r-c,0),d)}var mb,dje,Yk=_(()=>{"use strict";mb=x(Vg());or();Ne();dje=W()("util-diff")});function WW(n){let{start:e,end:t}=n.range;return n.newText.endsWith(` +`)&&e.line==t.line&&e.character==0&&t.character==0?e.line-1:e.line}function ya(n){let{newText:e}=n,t=yb(n.range),i=t.end.line-t.start.line;return e.split(/\r?\n/).length-i-1}function yb(n){let e=n.start,t=n.end;return e.line>t.line||e.line===t.line&&e.character>t.character?{start:t,end:e}:n}function ep(n,e){if(n.length<=1)return n;let t=n.length/2|0,i=n.slice(0,t),r=n.slice(t);ep(i,e),ep(r,e);let o=0,s=0,a=0;for(;o0&&i.character==0,o;for(let s=0;s0){let h=t[t.length-1];h.newText=l,o=void 0;continue}o=void 0}l.includes("\r")&&(l=l.replace(/\r\n/g,` +`));let c=Fe(u.end,i);if(c>0&&(u.end={line:i.line,character:i.character}),n.getText(u)!==l){if(c===0&&r&&!jt(u)&&l.endsWith(` +`)){l=l.slice(0,-1);let h=n.lines[i.line-1];u.end=cr.Position.create(i.line-1,h.length)}else l.length==0&&(o=u.start);t.push({range:u,newText:l})}}return ep(t,(s,a)=>{let l=s.range.start.line-a.range.start.line;return l===0?s.range.start.character-a.range.start.character:l})}function UW(n,e){if(e.length==1){let{start:s,end:a}=e[0].range,{lines:l}=n,u=l[s.line]??"",c=l[a.line]??"",h=u.substring(0,s.character)+e[0].newText+c.substring(a.character);return a.line>=l.length&&n.eol?h==""?[...l.slice(0,s.line)]:(h.endsWith(` +`)&&(h=h.slice(0,-1)),[...l.slice(0,s.line),...h.split(` +`)]):[...l.slice(0,s.line),...h.split(` +`),...l.slice(a.line+1)]}let t=n.getText(),i=0,r=[];for(let s of e){let a=n.offsetAt(s.range.start);if(ai&&r.push(t.substring(i,a)),s.newText.length&&r.push(s.newText),i=n.offsetAt(s.range.end)}r.push(t.substring(i));let o=r.join("");if(o!==t)return Rq(o,n.eol)}function GW(n,e){return e.map(t=>{let{start:i,end:r}=t.range,o=n[i.line]??"",s=V(o.slice(0,i.character)),a=r.line==i.line?o:n[r.line]??"",l=V(a.slice(0,r.character)),{newText:u}=t;return[u.length>0?u.split(` +`):[],i.line,s,r.line,l]})}function bb(n,e){let{range:t,newText:i}=e;if(Fe(t.end,n)<=0){let r=i.split(` +`),o=r.length-(t.end.line-t.start.line)-1,s=n.character;if(t.end.line==n.line){let a=r[r.length-1].length;r.length>1?s=a+s-t.end.character:s=t.start.character+a+s-t.end.character}return{line:o,character:s-n.character}}return{line:0,character:0}}function vb(n,e){let{line:t,character:i}=n,{range:r,newText:o}=e,{end:s}=r,a=o.split(` +`),l=a.length-(s.line-r.start.line)-1,u=r.end.line-n.line;if(u>0)return{line:t,character:i};if(u<0)return{line:t+l,character:i};if(a.length>1){let h=a[a.length-1].length;return{line:t+l,character:h+i-s.character}}let c=r.start.character-r.end.character;return{line:t+l,character:c+o.length+i}}function wb(n,e){let t=cr.Position.create(n.line,n.character),i=!1;for(let r=e.length-1;r>=0;r--){let o=e[r];if(i){t.line+=ya(o);continue}Fe(o.range.end,t)>0||(o.range.end.line==t.line?t=vb(t,o):(i=!0,t.line+=ya(o)))}return t}function Wk(n,e){let t=0;for(let i of e){let r=yb(i.range);Fe(r.end,n)<=0&&(t+=ya(i))}return t}function KW(n,e,t){let i=n[0].range.start,r=n[n.length-1].range.end,o=e.length-r.line,s=(e[r.line]??"").length-r.character,a=t.length-o,l=(t[a]??"").length-s,u=Sve(i,cr.Position.create(a,l),t);return cr.TextEdit.replace(cr.Range.create(i,r),u)}function Sve(n,e,t){if(n.line===e.line)return(t[n.line]??"").slice(n.character,e.character);let i=[];for(let r=n.line;r<=e.line;r++){let o=t[r]??"";r===n.line?i.push(o.slice(n.character)):r===e.line?i.push(o.slice(0,e.character)):i.push(o)}return i.join(` +`)}var cr,Ur=_(()=>{"use strict";cr=x(q());_t();Ne()});var Zk,Cje,hr,ip,QW=_(()=>{"use strict";Zk=x(q());re();Hc();Cje=W()("model-chars"),hr=class{constructor(e,t){this.start=e,this.end=t||e}static fromKeywordOption(e){let t=e.split(","),i=[];i.push(new hr(65,90)),i.push(new hr(97,122));for(let r of t)if(r=="@")i.push(new hr(256,65535));else if(r=="@-@")i.push(new hr(64));else if(/^\d+-\d+$/.test(r)){let o=r.match(/^(\d+)-(\d+)$/);i.push(new hr(Number(o[1]),Number(o[2])))}else if(/^\d+$/.test(r))i.push(new hr(Number(r)));else{let o=r.charCodeAt(0);i.some(s=>s.contains(o))||i.push(new hr(o))}return i}contains(e){return e>=this.start&&e<=this.end}},ip=class{constructor(e){this.ranges=[];e&&(this.ranges=hr.fromKeywordOption(e))}addKeyword(e){let t=e.charCodeAt(0),{ranges:i}=this;i.some(r=>r.contains(t))||i.push(new hr(t))}clone(){let e=new ip;return e.ranges=this.ranges.slice(),e}setKeywordOption(e){this.ranges=hr.fromKeywordOption(e)}async matchLines(e,t=2,i){let r=new Set,o=Date.now();for(let s of e){if(s.length===0)continue;let a="";Date.now()-o>15&&(await yo(),o=Date.now());for(let l of s){if(i&&i.isCancellationRequested)return;let u=l.codePointAt(0);this.isKeywordCode(u)?a=a+l:a.length>0&&(a.length>=t&&a.length<48&&r.add(a),a="")}a.length>=t&&a.length<48&&r.add(a)}return r}isKeywordCode(e){return e>255?!0:e<33?!1:this.ranges.some(t=>t.contains(e))}isKeywordChar(e){let{ranges:t}=this;if(/\s/.test(e))return!1;let i=e.charCodeAt(0);return i<33?!1:t.some(r=>r.contains(i))}isKeyword(e){for(let t=0,i=e.length;tr){let f=l.length,m=!1;for(;a>e.line+1;){let b=i[a-1].length;if(f-b1){let b=l.substring(g,f);o.set(b,f/c)}p=m}g=h-d,p=!1;for(let f=g;f1){let b=f==h-1?f+1:f,w=l.substring(g,b),D=o.get(w)||0,T=h-f+(b-g);T!==d&&o.set(w,Math.max(D,T/d))}p=m}return o}}});var Jk,$k,zW=_(()=>{"use strict";Jk=x(q()),$k=class{constructor(e,t,i){this._line=e,this._text=t,this._isLastLine=i}get lineNumber(){return this._line}get text(){return this._text}get range(){return Jk.Range.create(this._line,0,this._line,this._text.length)}get rangeIncludingLineBreak(){return this._isLastLine?this.range:Jk.Range.create(this._line,0,this._line+1,0)}get firstNonWhitespaceCharacterIndex(){return/^(\s*)/.exec(this._text)[1].length}get isEmptyOrWhitespace(){return this.firstNonWhitespaceCharacterIndex===this._text.length}}});function Tve(n,e){let t=[],i=0;for(let r of n)t.push(i),i+=r.length+1;return e&&t.push(i),t}var Db,np,VW=_(()=>{"use strict";Db=x(q());zW();np=class{constructor(e,t,i,r,o,s){this.uri=e;this.languageId=t;this.version=i;this.lines=r;this.bufnr=o;this.eol=s}get content(){return this._content||(this._content=this.lines.join(` `)+(this.eol?` -`:"")),this._content}get length(){if(!this._content){let e=this.lines.reduce((t,i)=>t+i.length+1,0);return this.eol?e:e-1}return this._content.length}get end(){let e=this.lineCount-1;return this.eol?Ub.Position.create(e,0):Ub.Position.create(e,this.lines[e].length)}get lineCount(){return this.lines.length+(this.eol?1:0)}getText(e){var t;if(e){let{start:i,end:r}=e;return i.line===r.line?i.character===r.character?"":((t=this.lines[i.line])!=null?t:"").substring(i.character,r.character):this.content.substring(this.offsetAt(e.start),this.offsetAt(e.end))}return this.content}lineAt(e){var i;let t=Ub.Position.is(e)?e.line:e;if(typeof t!="number"||t<0||t>=this.lineCount||Math.floor(t)!==t)throw new Error("Illegal value for `line`");return new QT(t,(i=this.lines[t])!=null?i:"",t===this.lineCount-1)}positionAt(e){e=Math.max(Math.min(e,this.content.length),0);let t=this.getLineOffsets(),i=0,r=t.length;if(r===0)return{line:0,character:e};for(;ie?r=s:i=s+1}let o=i-1;return{line:o,character:e-t[o]}}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this.content.length;if(e.line<0)return 0;let i=t[e.line],r=e.line+1{"use strict";zT=C(Ei()),ir=C(H());we();le();$T();z();Jt();yt();Pe();Ar();qY();WY();nIe=q()("model-document"),Gb=class{constructor(e,t,i,r){this.buffer=e;this.env=t;this.nvim=i;this.isIgnored=!1;this.eol=!0;this._disposed=!1;this._attached=!1;this._previewwindow=!1;this._winid=-1;this.disposables=[];this.lines=[];this._onDocumentChange=new ir.Emitter;this.onDocumentChange=this._onDocumentChange.event;this.fireContentChanges=(0,zT.default)(()=>{this._fireContentChanges()},global.__TEST__?20:150),this.fetchContent=(0,zT.default)(()=>{this._fetchContent()},100),this.init(r)}get content(){return this.syncLines.join(` +`:"")),this._content}get length(){if(!this._content){let e=this.lines.reduce((t,i)=>t+i.length+1,0);return this.eol?e:e-1}return this._content.length}get end(){let e=this.lineCount-1;return this.eol?Db.Position.create(e,0):Db.Position.create(e,this.lines[e].length)}get lineCount(){return this.lines.length+(this.eol?1:0)}getText(e){if(e){let{start:t,end:i}=e;return t.line===i.line?t.character===i.character?"":(this.lines[t.line]??"").substring(t.character,i.character):this.content.substring(this.offsetAt(e.start),this.offsetAt(e.end))}return this.content}lineAt(e){let t=Db.Position.is(e)?e.line:e;if(typeof t!="number"||t<0||t>=this.lineCount||Math.floor(t)!==t)throw new Error("Illegal value for `line`");return new $k(t,this.lines[t]??"",t===this.lineCount-1)}positionAt(e){e=Math.max(Math.min(e,this.content.length),0);let t=this.getLineOffsets(),i=0,r=t.length;if(r===0)return{line:0,character:e};for(;ie?r=s:i=s+1}let o=i-1;return{line:o,character:e-t[o]}}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this.content.length;if(e.line<0)return 0;let i=t[e.line],r=e.line+1{"use strict";Uk=x(Oi()),dr=x(q());Ee();we();Yk();re();oi();_t();Ne();Ur();QW();VW();Wje=W()("model-document"),Cb=class{constructor(e,t,i,r){this.buffer=e;this.env=t;this.nvim=i;this.isIgnored=!1;this.eol=!0;this._disposed=!1;this._attached=!1;this._previewwindow=!1;this._winid=-1;this.disposables=[];this.lines=[];this._onDocumentChange=new dr.Emitter;this.onDocumentChange=this._onDocumentChange.event;this.fireContentChanges=(0,Uk.default)(()=>{this._fireContentChanges()},global.__TEST__?20:150),this.fetchContent=(0,Uk.default)(()=>{this._fetchContent()},100),this.init(r)}get content(){return this.syncLines.join(` `)+(this.eol?` -`:"")}get attached(){return this._attached}get textDocument(){return this._textDocument}get syncLines(){return this._textDocument.lines}get version(){return this._textDocument.version}get bufnr(){return this.buffer.id}get bufname(){return this._bufname}get filetype(){return this._filetype}get uri(){return this._uri}get isCommandLine(){return this.uri&&this.uri.endsWith("%5BCommand%20Line%5D")}get enabled(){return this.getVar("enabled",!0)}get languageId(){let{_filetype:e}=this;return e.includes(".")?e.match(/(.*?)\./)[1]:e}get changedtick(){return this._changedtick}convertFiletype(e){switch(e){case"javascript.jsx":return"javascriptreact";case"typescript.jsx":case"typescript.tsx":return"typescriptreact";case"tex":return"latex";default:{let t=this.env.filetypeMap;return String(t[e]||e)}}}get schema(){return O.parse(this.uri).scheme}get lineCount(){return this.lines.length}get winid(){return this._winid}get indentkeys(){return this._indentkeys}get previewwindow(){return this._previewwindow}init(e){let t=this.buftype=e.buftype;this._indentkeys=e.indentkeys,this._bufname=e.bufname,this._previewwindow=!!e.previewwindow,this._winid=e.winid,this.variables=e.variables||{},this._changedtick=e.changedtick,this.eol=e.eol==1,this._uri=tb(e.fullpath,this.bufnr,t,this.env.isCygwin),Array.isArray(e.lines)&&(this.lines=e.lines,this._noFetch=!0,this._attached=!0,this.attach()),this._filetype=this.convertFiletype(e.filetype),this.setIskeyword(e.iskeyword),this.createTextDocument(1,this.lines)}attach(){if(this.env.isVim)return;let e=this.lines;this.buffer.attach(!0).then(t=>{t||KT(this.bufnr)},t=>{KT(this.bufnr)}),this.buffer.listen("lines",(t,i,r,o,s)=>{if(!(t.id!==this.bufnr||!this._attached||i==null)&&i>this._changedtick){if(this._changedtick=i,e=[...e.slice(0,r),...s,...o==-1?[]:e.slice(o)],e.length==0&&(e=[""]),this.lines=e,Lc(t.id),E.pumvisible)return;this.fireContentChanges()}},this.disposables),this.buffer.listen("detach",()=>{KT(this.bufnr)},this.disposables)}get dirty(){return this.lines!==this.syncLines}get hasChanged(){return this.dirty?!Fe(this.lines,this.syncLines):!1}_fireContentChanges(e){var s;if(this.lines===this.syncLines)return;let t=this._textDocument,i=[];if(!e){let{cursor:a,insertMode:l}=E,u;if(a&&a.bufnr==this.bufnr){let c=(s=this.lines[a.lnum-1])!=null?s:"";u=ir.Position.create(a.lnum-1,Ui(c,a.col-1))}e=IY(t.lines,this.lines,u,l)}let r;e?(r=t.getText(e.range),i.push({range:e.range,text:e.newText,rangeLength:r.length})):r="";let o=this.createTextDocument(this.version+(e?1:0),this.lines);this._onDocumentChange.fire(Object.freeze({bufnr:this.bufnr,original:r,originalLines:t.lines,textDocument:{version:o.version,uri:this.uri},contentChanges:i}))}async applyEdits(e,t=!1,i=!1){var b,v;if(Array.isArray(arguments[1])&&(e=arguments[1]),!this._attached||e.length===0)return;this._forceSync();let r=this.textDocument;if(e=MY(r,e),e.length===0)return;let o=NY(r,e);if(!o)return;let s=r.lines,a=LY(s,o,e[0].range.start.line);if(a.start===a.end&&a.replacement.length==0)return;let l=a.start===a.end&&a.start===s.length+(this.eol?0:1),u=s.slice(a.start,a.end),c=[];this.nvim.hasFunction("nvim_buf_set_text")&&e.length<200&&a.start!==a.end&&e[e.length-1].range.end.line=0;){let u=o[a-1];if(!u||!r.isKeywordChar(u))break;a=a-1}for(;l<=o.length;){let u=o[l];if(!u||!r.isKeywordChar(u))break;l=l+1}return ir.Range.create(e.line,a,e.line,l)}createTextDocument(e,t){let{uri:i,languageId:r,eol:o}=this;return this._textDocument=new Ag(i,r,e,t,this.bufnr,o)}async _fetchContent(e){if(!this.env.isVim||!this._attached)return;let{nvim:t,bufnr:i,changedtick:r}=this,o=await t.call("coc#util#get_buf_lines",[i,r]);this._noFetch=!0,o?(this._changedtick=o.changedtick,this.lines=o.lines,Lc(this.bufnr),e?this._forceSync():this.fireContentChanges()):e&&this._forceSync()}changeLine(e,t,i){if(this.lines[e-1]===void 0)return;let o=this.lines.slice();o[e-1]=t,this.lines=o,Lc(this.bufnr),this._changedtick=i}async patchChange(e){if(!!this._attached)if(this.env.isVim)if(e){let t=await this.nvim.call("coc#util#get_changeinfo",[]);if(t.bufnr!==this.bufnr)return;if(t.changedtick0&&!d&&l==e&&s.push(ir.Range.create(o.positionAt(u-l.length),o.positionAt(u))),d||(l="")}return s}fixStartcol(e,t){let i=this.getline(e.line);if(!i)return null;let{character:r}=e,o=i.slice(0,r),s=Q(o),{chars:a}=this;for(let l=o.length-1;l>=0;l--){let u=o[l];if(u==" "||!a.isKeywordChar(u)&&!t.includes(u))break;s=s-Q(u)}return s}addHighlights(e,t,i,r={}){let{start:o,end:s}=i;if(!Ct(i))for(let a=o.line;a<=s.line;a++){let l=this.getline(a,!1),u=a==o.line?Ze(l,o.character):0,c=a==s.line?Ze(l,s.character):global.Buffer.byteLength(l);u>=c||e.push(Object.assign({hlGroup:t,lnum:a,colStart:u,colEnd:c},r))}}getline(e,t=!0){return t?this.lines[e]||"":this.syncLines[e]||""}getLines(e,t){return this.lines.slice(e!=null?e:0,t!=null?t:this.lines.length)}getDocumentContent(){let e=this.lines.join(` +`:"")}get attached(){return this._attached}get textDocument(){return this._textDocument}get syncLines(){return this._textDocument.lines}get version(){return this._textDocument.version}get bufnr(){return this.buffer.id}get bufname(){return this._bufname}get filetype(){return this._filetype}get uri(){return this._uri}get isCommandLine(){return this.uri&&this.uri.endsWith("%5BCommand%20Line%5D")}get enabled(){return this.getVar("enabled",!0)}get languageId(){let{_filetype:e}=this;return e.includes(".")?e.match(/(.*?)\./)[1]:e}get changedtick(){return this._changedtick}convertFiletype(e){switch(e){case"javascript.jsx":return"javascriptreact";case"typescript.jsx":case"typescript.tsx":return"typescriptreact";case"tex":return"latex";default:{let t=this.env.filetypeMap;return String(t[e]||e)}}}get schema(){return I.parse(this.uri).scheme}get lineCount(){return this.lines.length}get winid(){return this._winid}get indentkeys(){return this._indentkeys}get previewwindow(){return this._previewwindow}init(e){let t=this.buftype=e.buftype;this._indentkeys=e.indentkeys,this._bufname=e.bufname,this._previewwindow=!!e.previewwindow,this._winid=e.winid,this.variables=e.variables||{},this._changedtick=e.changedtick,this.eol=e.eol==1,this._uri=Py(e.fullpath,this.bufnr,t,this.env.isCygwin),Array.isArray(e.lines)&&(this.lines=e.lines,this._noFetch=!0,this._attached=!0,this.attach()),this._filetype=this.convertFiletype(e.filetype),this.setIskeyword(e.iskeyword),this.createTextDocument(1,this.lines)}attach(){if(this.env.isVim)return;let e=this.lines;this.buffer.attach(!0).then(t=>{t||Xk(this.bufnr)},t=>{Xk(this.bufnr)}),this.buffer.listen("lines",(t,i,r,o,s)=>{if(!(t.id!==this.bufnr||!this._attached||i==null)&&i>this._changedtick){if(this._changedtick=i,e=[...e.slice(0,r),...s,...o==-1?[]:e.slice(o)],e.length==0&&(e=[""]),this.lines=e,Zc(t.id),P.pumvisible)return;this.fireContentChanges()}},this.disposables),this.buffer.listen("detach",()=>{Xk(this.bufnr)},this.disposables)}get dirty(){return this.lines!==this.syncLines}get hasChanged(){return this.dirty?!Xe(this.lines,this.syncLines):!1}_fireContentChanges(e){if(this.lines===this.syncLines)return;let t=this._textDocument,i=[];if(!e){let{cursor:s}=P,a;if(s&&s.bufnr==this.bufnr){let l=this.lines[s.lnum-1]??"";a=dr.Position.create(s.lnum-1,ln(l,s.col-1))}e=YW(t.lines,this.lines,a,s?s.insert:!1)}let r;e?(r=t.getText(e.range),i.push({range:e.range,text:e.newText,rangeLength:r.length})):r="";let o=this.createTextDocument(this.version+(e?1:0),this.lines);this._onDocumentChange.fire(Object.freeze({bufnr:this.bufnr,original:r,originalLines:t.lines,textDocument:{version:o.version,uri:this.uri},contentChanges:i}))}async applyEdits(e,t=!1,i=!1){var m;if(Array.isArray(arguments[1])&&(e=arguments[1]),!this._attached||e.length===0)return;this._forceSync();let r=this.textDocument;if(e=XW(r,e),e.length===0)return;let o=UW(r,e);if(!o)return;let s=r.lines,a=HW(s,o,WW(e[0]));if(a.start===a.end&&a.replacement.length==0)return;let l=a.start===a.end&&a.start===s.length+(this.eol?0:1),u=s.slice(a.start,a.end),c=[];this.nvim.hasFunction("nvim_buf_set_text")&&e.length<200&&a.start!==a.end&&e[e.length-1].range.end.line0?` +`:""))}async changeLines(e){let t=[],i=this.lines.slice();for(let[r,o]of e)i[r]!=o&&(t.push([r,o]),i[r]=o);!t.length||(this.nvim.call("coc#ui#change_lines",[this.bufnr,t],!0),this.nvim.redrawVim(),this.lines=i,Zc(this.bufnr),this._forceSync())}_forceSync(){this.fireContentChanges.clear(),this._fireContentChanges()}forceSync(){global.hasOwnProperty("__TEST__")&&this._forceSync()}getOffset(e,t){return this.textDocument.offsetAt({line:e-1,character:t})}isWord(e){return this.chars.isKeyword(e)}async matchWords(e){return await this.chars.matchLines(this.textDocument.lines,2,e)}getWordRangeAtPosition(e,t,i=!0){let r=this.chars.clone();if(t&&t.length)for(let u of t)r.addKeyword(u);let o=this.getline(e.line,i),s=o[e.character];if(s==null||!r.isKeywordChar(s))return null;let a=e.character,l=e.character+1;for(;a>=0;){let u=o[a-1];if(!u||!r.isKeywordChar(u))break;a=a-1}for(;l<=o.length;){let u=o[l];if(!u||!r.isKeywordChar(u))break;l=l+1}return dr.Range.create(e.line,a,e.line,l)}createTextDocument(e,t){let{uri:i,languageId:r,eol:o}=this;return this._textDocument=new np(i,r,e,t,this.bufnr,o)}async _fetchContent(e){if(!this.env.isVim||!this._attached)return;let{nvim:t,bufnr:i,changedtick:r}=this,o=await t.call("coc#util#get_buf_lines",[i,r]);this._noFetch=!0,o?(this._changedtick=o.changedtick,this.lines=o.lines,Zc(this.bufnr),e?this._forceSync():this.fireContentChanges()):e&&this._forceSync()}changeLine(e,t,i){if(this.lines[e-1]===void 0)return;let o=this.lines.slice();o[e-1]=t,this.lines=o,Zc(this.bufnr),this._changedtick=i}async patchChange(e){if(!!this._attached)if(this.env.isVim)if(e){let t=await this.nvim.call("coc#util#get_changeinfo",[]);if(t.bufnr!==this.bufnr)return;if(t.changedtick0&&!d&&l==e&&s.push(dr.Range.create(o.positionAt(u-l.length),o.positionAt(u))),d||(l="")}return s}fixStartcol(e,t){let i=this.getline(e.line);if(!i)return null;let{character:r}=e,o=i.slice(0,r),s=V(o),{chars:a}=this;for(let l=o.length-1;l>=0;l--){let u=o[l];if(u==" "||!a.isKeywordChar(u)&&!t.includes(u))break;s=s-V(u)}return s}addHighlights(e,t,i,r={}){let{start:o,end:s}=i;if(!jt(i))for(let a=o.line;a<=s.line;a++){let l=this.getline(a,!1),u=a==o.line?We(l,o.character):0,c=a==s.line?We(l,s.character):global.Buffer.byteLength(l);u>=c||e.push(Object.assign({hlGroup:t,lnum:a,colStart:u,colEnd:c},r))}}getline(e,t=!0){return t?this.lines[e]||"":this.syncLines[e]||""}getLines(e,t){return this.lines.slice(e??0,t??this.lines.length)}getDocumentContent(){let e=this.lines.join(` `);return this.eol?e+` -`:e}getVar(e,t){let i=this.variables[`coc_${e}`];return i===void 0?t:i}getPosition(e,t){let i=this.getline(e-1);if(!i||t==0)return{line:e-1,character:0};let r=et(i,0,t-1);return{line:e-1,character:r.length}}getEndOffset(e,t,i){let r=0,o=this.lines.length;for(let s=e-1;s{"use strict";JY=C(CY()),VT=C(require("fs")),ek=C(require("os")),Sl=C(require("path")),fn=C(H());we();le();ZY();z();Je();Pe();Qb=q()("core-documents"),Kb=class{constructor(e,t){this.configurations=e;this.workspaceFolder=t;this._initialized=!1;this._attached=!1;this._currentResolve=!1;this.disposables=[];this.creating=new Map;this.buffers=new Map;this.winids=new Set;this.resolves=[];this._onDidOpenTextDocument=new fn.Emitter;this._onDidCloseDocument=new fn.Emitter;this._onDidChangeDocument=new fn.Emitter;this._onDidSaveDocument=new fn.Emitter;this._onWillSaveDocument=new fn.Emitter;this.onDidOpenTextDocument=this._onDidOpenTextDocument.event;this.onDidCloseDocument=this._onDidCloseDocument.event;this.onDidChangeDocument=this._onDidChangeDocument.event;this.onDidSaveTextDocument=this._onDidSaveDocument.event;this.onWillSaveTextDocument=this._onWillSaveDocument.event;this._cwd=process.cwd()}async attach(e,t){if(this._attached)return;this.nvim=e,this._env=t,this._attached=!0;let r=this.configurations.getConfiguration("coc.preferences").get("maxFileSize","10MB");this.maxFileSize=JY.default.parse(r),e.setVar("coc_max_filesize",this.maxFileSize,!0);let{bufnrs:o,winid:s,bufnr:a,winids:l}=await this.nvim.call("coc#util#all_state");this.winids=new Set(l),this._bufnr=a,await Promise.all(o.map(c=>this.createDocument(c))),E.on("BufDetach",this.onBufDetach,this,this.disposables),E.on("VimLeavePre",()=>{this.resolveCurrent(void 0)},null,this.disposables),E.on("WinEnter",c=>{this.winids.add(c)},null,this.disposables),E.on("BufWinEnter",(c,h)=>{this.winids.add(h)},null,this.disposables),E.on("DirChanged",c=>{this._cwd=c},null,this.disposables),E.on("CursorHold",async()=>{let{bufnrs:c,winids:h}=await this.nvim.call("coc#util#all_state");for(let d of this.buffers.keys())c.includes(d)||E.fire("BufUnload",[d]);for(let d of this.winids)h.includes(d)||E.fire("WinClosed",[d]);this.winids=new Set(h)},null,this.disposables);let u=c=>{this._bufnr=c,this.createDocument(c)};E.on("CursorMoved",u,null,this.disposables),E.on("CursorMovedI",u,null,this.disposables),E.on("BufUnload",this.onBufUnload,this,this.disposables),E.on("BufEnter",this.onBufEnter,this,this.disposables),E.on("BufCreate",this.onBufCreate,this,this.disposables),E.on("TermOpen",this.onBufCreate,this,this.disposables),E.on("BufWritePost",this.onBufWritePost,this,this.disposables),E.on("BufWritePre",this.onBufWritePre,this,this.disposables),E.on("FileType",this.onFileTypeChange,this,this.disposables),E.fire("BufEnter",[a]),E.fire("BufWinEnter",[a,s]),E.on("BufEnter",c=>{this.createDocument(c)},null,this.disposables),E.on("CursorHold",(c,h,d)=>{let g=this.getDocument(c);g&&g.onCursorHold(d)},null,this.disposables),this._env.isVim?["TextChangedP","TextChangedI","TextChanged"].forEach(c=>{E.on(c,(h,d)=>{let g=this.buffers.get(h);g!=null&&g.attached&&g.onTextChange(c,d)},null,this.disposables)}):E.on("CompleteDone",async()=>{let c=await E.race(["TextChangedI","TextChanged","MenuPopupChanged"],100);if(c&&(c.name==="TextChangedI"||c.name==="TextChanged")){let h=this.buffers.get(E.bufnr);h!=null&&h.attached&&h._forceSync()}},null,this.disposables),this._initialized=!0}get bufnr(){return this._bufnr}get root(){return this._root}get cwd(){return this._cwd}get documents(){return Array.from(this.buffers.values()).filter(e=>e.attached&&!e.isCommandLine)}get bufnrs(){return Array.from(this.buffers.keys())}detach(){if(!!this._attached){this._attached=!1;for(let e of this.buffers.keys())this.onBufUnload(e);Z(this.disposables)}}get textDocuments(){let e=[];for(let t of this.buffers.values())t.attached&&e.push(t.textDocument);return e}getDocument(e){if(typeof e=="number")return this.buffers.get(e);let t=Zo.isWindows||Zo.isMacintosh;e=O.parse(e).toString();for(let i of this.buffers.values())if(i.uri===e||t&&i.uri.toLowerCase()===e.toLowerCase())return i;return null}expand(e){if(e.startsWith("~")&&(e=ek.default.homedir()+e.slice(1)),e.includes("$")){let t=this.getDocument(this.bufnr),i=t?O.parse(t.uri).fsPath:"";e=e.replace(/\$\{(.*?)\}/g,(r,o)=>{if(o.startsWith("env:")){let s=o.split(":")[1];return s?process.env[s]:""}switch(o){case"workspace":case"workspaceRoot":case"workspaceFolder":return this._root;case"workspaceFolderBasename":return Sl.default.dirname(this._root);case"cwd":return this._cwd;case"file":return i;case"fileDirname":return i?Sl.default.dirname(i):"";case"fileExtname":return i?Sl.default.extname(i):"";case"fileBasename":return i?Sl.default.basename(i):"";case"fileBasenameNoExtension":{let s=i?Sl.default.basename(i):"";return s?s.slice(0,s.length-Sl.default.extname(s).length):""}default:return r}}),e=e.replace(/\$[\w]+/g,r=>r=="$HOME"?ek.default.homedir():process.env[r.slice(1)]||r)}return e}get document(){return this._currentResolve?new Promise(e=>{this.resolves.push(e)}):(this._currentResolve=!0,new Promise((e,t)=>{this.nvim.eval('coc#util#get_bufoptions(bufnr("%"))').then(i=>{let r;i!=null&&(this.creating.delete(i.bufnr),r=this._createDocument(i)),this.resolveCurrent(r),e(r),this._currentResolve=!1},t)}))}resolveCurrent(e){if(this.resolves.length>0)for(;this.resolves.length;){let t=this.resolves.pop();t&&t(e)}}get uri(){let{bufnr:e}=this;if(e){let t=this.getDocument(e);if(t)return t.uri}return null}get filetypes(){let e=new Set;for(let t of this.documents)e.add(t.filetype);return e}get languageIds(){let e=new Set;for(let t of this.documents)e.add(t.languageId);return e}async getFormatOptions(e){let t;e&&(t=this.getDocument(e));let i=t?t.bufnr:0,r=await this.nvim.call("coc#util#get_format_opts",[i]),o={tabSize:r.tabsize,insertSpaces:r.expandtab==1};return o.insertFinalNewline=r.insertFinalNewline==1,r.trimTrailingWhitespace&&(o.trimTrailingWhitespace=!0),r.trimFinalNewlines&&(o.trimFinalNewlines=!0),o}async createDocument(e){let t=this.buffers.get(e);if(t)return t;if(this.creating.has(e))return await this.creating.get(e);let i=new Promise(r=>{this.nvim.call("coc#util#get_bufoptions",[e]).then(o=>{if(!this.creating.has(e)){r(void 0);return}if(this.creating.delete(e),!o){r(void 0);return}t=this._createDocument(o),r(t)},()=>{this.creating.delete(e),r(void 0)})});return this.creating.set(e,i),await i}async onBufCreate(e){this.onBufUnload(e),await this.createDocument(e)}_createDocument(e){let{bufnr:t}=e;if(this.buffers.has(t))return this.buffers.get(t);let i=this.nvim.createBuffer(t),r=new Gb(i,this._env,this.nvim,e);if(this.buffers.set(t,r),r.attached){if(r.schema=="file"){let o=this.configurations.resolveFolderConfigution(r.uri),s=this.workspaceFolder.resolveRoot(r,this._cwd,this._initialized,this.expand.bind(this));t==this._bufnr&&(o&&this.configurations.setFolderConfiguration(r.uri),s&&(this._root=s))}this._onDidOpenTextDocument.fire(r.textDocument),r.onDocumentChange(o=>this._onDidChangeDocument.fire(o))}return Qb.debug("buffer created",t,r.attached,r.uri),r}onBufEnter(e){this._bufnr=e;let t=this.buffers.get(e);if(t){this.configurations.setFolderConfiguration(t.uri);let i=this.workspaceFolder.getWorkspaceFolder(O.parse(t.uri));i&&(this._root=O.parse(i.uri).fsPath)}}onBufUnload(e){this.creating.delete(e),this.onBufDetach(e,!1)}async onBufDetach(e,t=!0){this.detachBuffer(e),t&&await this.nvim.call("bufloaded",[e])&&await this.createDocument(e)}detachBuffer(e){let t=this.buffers.get(e);!t||(Qb.debug("document detach",e,t.uri),this._onDidCloseDocument.fire(t.textDocument),this.buffers.delete(e),t.detach())}async onBufWritePost(e,t){let i=this.buffers.get(e);i&&(i.changedtick!=t&&await i.patchChange(),this._onDidSaveDocument.fire(i.textDocument))}async onBufWritePre(e,t,i){let r=this.buffers.get(e);if(!r||!r.attached||r.bufname!=t&&(this.detachBuffer(e),r=await this.createDocument(e),!r.attached))return;r.changedtick!=i?await r.synchronize():await r.patchChange();let o=!0,s=[],a={document:r.textDocument,reason:fn.TextDocumentSaveReason.Manual,waitUntil:u=>{o?s.push(u):(Qb.error("Can't call waitUntil in async manner:",Error().stack),this.nvim.echoError("waitUntil can't be used in async manner, check log for details"))}};this._onWillSaveDocument.fire(a),o=!1;let l=s.length;if(l){let c=await new Promise(h=>{let g=this.configurations.getConfiguration("coc.preferences").get("willSaveHandlerTimeout",500),f=setTimeout(()=>{this.nvim.outWriteLine(`Will save handler timeout after ${g}ms`),h(void 0)},g),p=0,b=!1;for(let v of s){let w=D=>{b||(b=!0,clearTimeout(f),h(D))};v.then(D=>{if(Array.isArray(D)&&D.length&&fn.TextEdit.is(D[0]))return w(D);p=p+1,p==l&&w(void 0)},D=>{Qb.error("Error on will save handler:",D),p=p+1,p==l&&w(void 0)})}});c&&await r.applyEdits(c,!1,this.bufnr===r.bufnr)}}onFileTypeChange(e,t){let i=this.getDocument(t);!i||i.convertFiletype(e)==i.filetype||(this._onDidCloseDocument.fire(i.textDocument),i.setFiletype(e),this._onDidOpenTextDocument.fire(i.textDocument))}async getQuickfixList(e){let t={},i=e.reduce((r,o)=>{let s=O.parse(o.uri);return s.scheme=="file"&&!r.includes(s.fsPath)&&!this.getDocument(o.uri)&&r.push(s.fsPath),r},[]);return await Promise.all(i.map(r=>new Promise(o=>{VT.default.readFile(r,"utf8",(s,a)=>{if(s)return o(void 0);t[r]=a.split(/\r?\n/),o(void 0)})}))),await Promise.all(e.map(r=>{let{uri:o,range:s}=r,{fsPath:a}=O.parse(o),l,u=t[a];return u&&(l=u[s.start.line]),this.getQuickfixItem(r,l)}))}async getQuickfixItem(e,t,i="",r){fn.LocationLink.is(e)&&(e=fn.Location.create(e.targetUri,e.targetRange));let o=this.getDocument(e.uri),{uri:s,range:a}=e,{start:l,end:u}=a,c=O.parse(s);!t&&c.scheme=="file"&&(t=await this.getLine(s,l.line));let h=l.line==u.line?t:await this.getLine(s,u.line),d={uri:s,filename:c.scheme=="file"?c.fsPath:s,lnum:l.line+1,end_lnum:u.line+1,col:t?Ze(t,l.character)+1:l.character+1,end_col:h?Ze(h,u.character)+1:u.character+1,text:t||"",range:a};return r&&(d.module=r),i&&(d.type=i),o&&(d.bufnr=o.bufnr),d}async getLine(e,t){let i=this.getDocument(e);if(i&&i.attached)return i.getline(t)||"";if(!e.startsWith("file:"))return"";let r=O.parse(e).fsPath;return VT.default.existsSync(r)?await M2(r,t):""}async readFile(e){let t=this.getDocument(e);if(t)return await t.patchChange(),t.content;let i=O.parse(e);return i.scheme!="file"?"":(await this.nvim.call("readfile",[i.fsPath])).join(` +`:e}getVar(e,t){let i=this.variables[`coc_${e}`];return i===void 0?t:i}getPosition(e,t){let i=this.getline(e-1);if(!i||t==0)return{line:e-1,character:0};let r=at(i,0,t-1);return{line:e-1,character:r.length}}getEndOffset(e,t,i){let r=0,o=this.lines.length;for(let s=e-1;s{"use strict";t3=x(FW()),Gk=x(require("fs")),Kk=x(require("os")),Bl=x(require("path")),Tn=x(q());Ee();we();e3();re();et();Ne();xb=W()("core-documents"),Sb=class{constructor(e,t){this.configurations=e;this.workspaceFolder=t;this._initialized=!1;this._attached=!1;this._currentResolve=!1;this.disposables=[];this.creating=new Map;this.buffers=new Map;this.winids=new Set;this.resolves=[];this._onDidOpenTextDocument=new Tn.Emitter;this._onDidCloseDocument=new Tn.Emitter;this._onDidChangeDocument=new Tn.Emitter;this._onDidSaveDocument=new Tn.Emitter;this._onWillSaveDocument=new Tn.Emitter;this.onDidOpenTextDocument=this._onDidOpenTextDocument.event;this.onDidCloseDocument=this._onDidCloseDocument.event;this.onDidChangeDocument=this._onDidChangeDocument.event;this.onDidSaveTextDocument=this._onDidSaveDocument.event;this.onWillSaveTextDocument=this._onWillSaveDocument.event;this._cwd=process.cwd()}async attach(e,t){if(this._attached)return;this.nvim=e,this._env=t,this._attached=!0;let r=this.configurations.getConfiguration("coc.preferences").get("maxFileSize","10MB");this.maxFileSize=t3.default.parse(r),e.setVar("coc_max_filesize",this.maxFileSize,!0);let{bufnrs:o,winid:s,bufnr:a,winids:l}=await this.nvim.call("coc#util#all_state");this.winids=new Set(l),this._bufnr=a,await Promise.all(o.map(c=>this.createDocument(c))),P.on("BufDetach",this.onBufDetach,this,this.disposables),P.on("VimLeavePre",()=>{this.resolveCurrent(void 0)},null,this.disposables),P.on("WinEnter",c=>{this.winids.add(c)},null,this.disposables),P.on("BufWinEnter",(c,h)=>{this.winids.add(h)},null,this.disposables),P.on("DirChanged",c=>{this._cwd=c},null,this.disposables),P.on("CursorHold",async()=>{let{bufnrs:c,winids:h}=await this.nvim.call("coc#util#all_state");for(let d of this.buffers.keys())c.includes(d)||P.fire("BufUnload",[d]);for(let d of this.winids)h.includes(d)||P.fire("WinClosed",[d]);this.winids=new Set(h)},null,this.disposables);let u=c=>{this._bufnr=c,this.createDocument(c)};P.on("CursorMoved",u,null,this.disposables),P.on("CursorMovedI",u,null,this.disposables),P.on("BufUnload",this.onBufUnload,this,this.disposables),P.on("BufEnter",this.onBufEnter,this,this.disposables),P.on("BufCreate",this.onBufCreate,this,this.disposables),P.on("TermOpen",this.onBufCreate,this,this.disposables),P.on("BufWritePost",this.onBufWritePost,this,this.disposables),P.on("BufWritePre",this.onBufWritePre,this,this.disposables),P.on("FileType",this.onFileTypeChange,this,this.disposables),P.fire("BufEnter",[a]),P.fire("BufWinEnter",[a,s]),P.on("BufEnter",c=>{this.createDocument(c)},null,this.disposables),this._env.isVim?["TextChangedP","TextChangedI","TextChanged"].forEach(c=>{P.on(c,(h,d)=>{let g=this.buffers.get(h);g!=null&&g.attached&&g.onTextChange(c,d)},null,this.disposables)}):P.on("CompleteDone",async c=>{if(!c.isSnippet){let h=this.buffers.get(P.bufnr);h!=null&&h.attached&&h._forceSync()}},null,this.disposables),this._initialized=!0}get bufnr(){return this._bufnr}get root(){return this._root}get cwd(){return this._cwd}get documents(){return Array.from(this.buffers.values()).filter(e=>e.attached&&!e.isCommandLine)}get bufnrs(){return Array.from(this.buffers.keys())}detach(){if(!!this._attached){this._attached=!1;for(let e of this.buffers.keys())this.onBufUnload(e);$(this.disposables)}}get textDocuments(){let e=[];for(let t of this.buffers.values())t.attached&&e.push(t.textDocument);return e}getDocument(e){if(typeof e=="number")return this.buffers.get(e);let t=us.isWindows||us.isMacintosh;e=I.parse(e).toString();for(let i of this.buffers.values())if(i.uri===e||t&&i.uri.toLowerCase()===e.toLowerCase())return i;return null}expand(e){if(e.startsWith("~")&&(e=Kk.default.homedir()+e.slice(1)),e.includes("$")){let t=this.getDocument(this.bufnr),i=t?I.parse(t.uri).fsPath:"";e=e.replace(/\$\{(.*?)\}/g,(r,o)=>{if(o.startsWith("env:")){let s=o.split(":")[1];return s?process.env[s]:""}switch(o){case"workspace":case"workspaceRoot":case"workspaceFolder":return this._root;case"workspaceFolderBasename":return Bl.default.dirname(this._root);case"cwd":return this._cwd;case"file":return i;case"fileDirname":return i?Bl.default.dirname(i):"";case"fileExtname":return i?Bl.default.extname(i):"";case"fileBasename":return i?Bl.default.basename(i):"";case"fileBasenameNoExtension":{let s=i?Bl.default.basename(i):"";return s?s.slice(0,s.length-Bl.default.extname(s).length):""}default:return r}}),e=e.replace(/\$[\w]+/g,r=>r=="$HOME"?Kk.default.homedir():process.env[r.slice(1)]||r)}return e}get document(){return this._currentResolve?new Promise(e=>{this.resolves.push(e)}):(this._currentResolve=!0,new Promise((e,t)=>{this.nvim.eval('coc#util#get_bufoptions(bufnr("%"))').then(i=>{let r;i!=null&&(this.creating.delete(i.bufnr),r=this._createDocument(i)),this.resolveCurrent(r),e(r),this._currentResolve=!1},t)}))}resolveCurrent(e){if(this.resolves.length>0)for(;this.resolves.length;){let t=this.resolves.pop();t&&t(e)}}get uri(){let{bufnr:e}=this;if(e){let t=this.getDocument(e);if(t)return t.uri}return null}get filetypes(){let e=new Set;for(let t of this.documents)e.add(t.filetype);return e}get languageIds(){let e=new Set;for(let t of this.documents)e.add(t.languageId);return e}async getFormatOptions(e){let t;e&&(t=this.getDocument(e));let i=t?t.bufnr:0,r=await this.nvim.call("coc#util#get_format_opts",[i]),o={tabSize:r.tabsize,insertSpaces:r.expandtab==1};return o.insertFinalNewline=r.insertFinalNewline==1,r.trimTrailingWhitespace&&(o.trimTrailingWhitespace=!0),r.trimFinalNewlines&&(o.trimFinalNewlines=!0),o}async createDocument(e){let t=this.buffers.get(e);if(t)return t;if(this.creating.has(e))return await this.creating.get(e);let i=new Promise(r=>{this.nvim.call("coc#util#get_bufoptions",[e]).then(o=>{if(!this.creating.has(e)){r(void 0);return}if(this.creating.delete(e),!o){r(void 0);return}t=this._createDocument(o),r(t)},()=>{this.creating.delete(e),r(void 0)})});return this.creating.set(e,i),await i}async onBufCreate(e){this.onBufUnload(e),await this.createDocument(e)}_createDocument(e){let{bufnr:t}=e;if(this.buffers.has(t))return this.buffers.get(t);let i=this.nvim.createBuffer(t),r=new Cb(i,this._env,this.nvim,e);if(this.buffers.set(t,r),r.attached){if(r.schema=="file"){let o=this.configurations.resolveFolderConfigution(r.uri),s=this.workspaceFolder.resolveRoot(r,this._cwd,this._initialized,this.expand.bind(this));t==this._bufnr&&(o&&this.configurations.setFolderConfiguration(r.uri),s&&(this._root=s))}this._onDidOpenTextDocument.fire(r.textDocument),r.onDocumentChange(o=>this._onDidChangeDocument.fire(o))}return xb.debug("buffer created",t,r.attached,r.uri),r}onBufEnter(e){this._bufnr=e;let t=this.buffers.get(e);if(t){this.configurations.setFolderConfiguration(t.uri);let i=this.workspaceFolder.getWorkspaceFolder(I.parse(t.uri));i&&(this._root=I.parse(i.uri).fsPath)}}onBufUnload(e){this.creating.delete(e),this.onBufDetach(e,!1)}async onBufDetach(e,t=!0){this.detachBuffer(e),t&&await this.nvim.call("bufloaded",[e])&&await this.createDocument(e)}detachBuffer(e){let t=this.buffers.get(e);!t||(xb.debug("document detach",e,t.uri),this._onDidCloseDocument.fire(t.textDocument),this.buffers.delete(e),t.detach())}async onBufWritePost(e,t){let i=this.buffers.get(e);i&&(i.changedtick!=t&&await i.patchChange(),this._onDidSaveDocument.fire(i.textDocument))}async onBufWritePre(e,t,i){let r=this.buffers.get(e);if(!r||!r.attached||r.bufname!=t&&(this.detachBuffer(e),r=await this.createDocument(e),!r.attached))return;r.changedtick!=i?await r.synchronize():await r.patchChange();let o=!0,s=[],a={document:r.textDocument,reason:Tn.TextDocumentSaveReason.Manual,waitUntil:u=>{o?s.push(u):(xb.error("Can't call waitUntil in async manner:",Error().stack),this.nvim.echoError("waitUntil can't be used in async manner, check log for details"))}};this._onWillSaveDocument.fire(a),o=!1;let l=s.length;if(l){let c=await new Promise(h=>{let g=this.configurations.getConfiguration("coc.preferences").get("willSaveHandlerTimeout",500),p=setTimeout(()=>{this.nvim.outWriteLine(`Will save handler timeout after ${g}ms`),h(void 0)},g),f=0,m=!1;for(let b of s){let w=D=>{m||(m=!0,clearTimeout(p),h(D))};b.then(D=>{if(Array.isArray(D)&&D.length&&Tn.TextEdit.is(D[0]))return w(D);f=f+1,f==l&&w(void 0)},D=>{xb.error("Error on will save handler:",D),f=f+1,f==l&&w(void 0)})}});c&&await r.applyEdits(c,!1,this.bufnr===r.bufnr)}}onFileTypeChange(e,t){let i=this.getDocument(t);!i||i.convertFiletype(e)==i.filetype||(this._onDidCloseDocument.fire(i.textDocument),i.setFiletype(e),this._onDidOpenTextDocument.fire(i.textDocument))}async getQuickfixList(e){let t={},i=e.reduce((r,o)=>{let s=I.parse(o.uri);return s.scheme=="file"&&!r.includes(s.fsPath)&&!this.getDocument(o.uri)&&r.push(s.fsPath),r},[]);return await Promise.all(i.map(r=>new Promise(o=>{Gk.default.readFile(r,"utf8",(s,a)=>{if(s)return o(void 0);t[r]=a.split(/\r?\n/),o(void 0)})}))),await Promise.all(e.map(r=>{let{uri:o,range:s}=r,{fsPath:a}=I.parse(o),l,u=t[a];return u&&(l=u[s.start.line]),this.getQuickfixItem(r,l)}))}async getQuickfixItem(e,t,i="",r){Tn.LocationLink.is(e)&&(e=Tn.Location.create(e.targetUri,e.targetRange));let o=this.getDocument(e.uri),{uri:s,range:a}=e,{start:l,end:u}=a,c=I.parse(s);!t&&c.scheme=="file"&&(t=await this.getLine(s,l.line));let h=l.line==u.line?t:await this.getLine(s,u.line),d={uri:s,filename:c.scheme=="file"?c.fsPath:s,lnum:l.line+1,end_lnum:u.line+1,col:t?We(t,l.character)+1:l.character+1,end_col:h?We(h,u.character)+1:u.character+1,text:t||"",range:a};return r&&(d.module=r),i&&(d.type=i),o&&(d.bufnr=o.bufnr),d}async getLine(e,t){let i=this.getDocument(e);if(i&&i.attached)return i.getline(t)||"";if(!e.startsWith("file:"))return"";let r=I.parse(e).fsPath;return Gk.default.existsSync(r)?await $Y(r,t):""}async readFile(e){let t=this.getDocument(e);if(t)return await t.patchChange(),t.content;let i=I.parse(e);return i.scheme!="file"?"":(await this.nvim.call("readfile",[i.fsPath])).join(` `)+` -`}reset(){this.creating.clear();for(let e of this.buffers.keys())this.onBufUnload(e);this.buffers.clear(),this._root=process.cwd()}dispose(){for(let e of this.buffers.keys())this.onBufUnload(e);this._attached=!1,this.buffers.clear(),Z(this.disposables)}}});function Og(){return XY.default.randomBytes(16)}var XY,tk=_(()=>{XY=C(require("crypto"))});function Jbe(n,e){var t=e||0,i=UY;return[i[n[t++]],i[n[t++]],i[n[t++]],i[n[t++]],"-",i[n[t++]],i[n[t++]],"-",i[n[t++]],i[n[t++]],"-",i[n[t++]],i[n[t++]],"-",i[n[t++]],i[n[t++]],i[n[t++]],i[n[t++]],i[n[t++]],i[n[t++]]].join("")}var UY,Mg,zb,ik=_(()=>{UY=[];for(Mg=0;Mg<256;++Mg)UY[Mg]=(Mg+256).toString(16).substr(1);zb=Jbe});function $be(n,e,t){var i=e&&t||0,r=e||[];n=n||{};var o=n.node||GY,s=n.clockseq!==void 0?n.clockseq:nk;if(o==null||s==null){var a=n.random||(n.rng||Og)();o==null&&(o=GY=[a[0]|1,a[1],a[2],a[3],a[4],a[5]]),s==null&&(s=nk=(a[6]<<8|a[7])&16383)}var l=n.msecs!==void 0?n.msecs:new Date().getTime(),u=n.nsecs!==void 0?n.nsecs:ok+1,c=l-rk+(u-ok)/1e4;if(c<0&&n.clockseq===void 0&&(s=s+1&16383),(c<0||l>rk)&&n.nsecs===void 0&&(u=0),u>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");rk=l,ok=u,nk=s,l+=122192928e5;var h=((l&268435455)*1e4+u)%4294967296;r[i++]=h>>>24&255,r[i++]=h>>>16&255,r[i++]=h>>>8&255,r[i++]=h&255;var d=l/4294967296*1e4&268435455;r[i++]=d>>>8&255,r[i++]=d&255,r[i++]=d>>>24&15|16,r[i++]=d>>>16&255,r[i++]=s>>>8|128,r[i++]=s&255;for(var g=0;g<6;++g)r[i+g]=o[g];return e||zb(r)}var GY,nk,rk,ok,Go,QY=_(()=>{tk();ik();rk=0,ok=0;Go=$be});function Xbe(n,e,t){var i=e&&t||0;typeof n=="string"&&(e=n==="binary"?new Array(16):null,n=null),n=n||{};var r=n.random||(n.rng||Og)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,e)for(var o=0;o<16;++o)e[i+o]=r[o];return e||zb(r)}var re,KY=_(()=>{tk();ik();re=Xbe});var Oe=_(()=>{QY();KY()});var Ri,oa=_(()=>{"use strict";bc();Pe();Ri=class{constructor(){this.lines=[];this._highlights=[]}addLine(e,t){if(e.includes(` -`)){for(let i of e.split(/\r?\n/))this.addLine(i,t);return}if(t&&this._highlights.push({lnum:this.lines.length,colStart:e.match(/^\s*/)[0].length,colEnd:Q(e),hlGroup:t}),e.includes("\x1B")){let i=mc(e);for(let r of i.highlights){let{span:o,hlGroup:s}=r;o[0]!=o[1]&&this._highlights.push({lnum:this.lines.length,colStart:o[0],colEnd:o[1],hlGroup:s})}this.lines.push(i.line)}else this.lines.push(e)}addLines(e){this.lines.push(...e)}addTexts(e){let t=this.lines.length,i="";for(let r of e){let o=Q(i);r.hlGroup&&this._highlights.push({lnum:t,colStart:o,colEnd:o+Q(r.text),hlGroup:r.hlGroup}),i+=r.text}this.lines.push(i)}addText(e,t){let{lines:i}=this,r=i[i.length-1]||"";if(e.includes(` +`}reset(){this.creating.clear();for(let e of this.buffers.keys())this.onBufUnload(e);this.buffers.clear(),this._root=process.cwd()}dispose(){for(let e of this.buffers.keys())this.onBufUnload(e);this._attached=!1,this.buffers.clear(),$(this.disposables)}}});function rp(){return n3.default.randomBytes(16)}var n3,Qk=_(()=>{n3=x(require("crypto"))});function kve(n,e){var t=e||0,i=r3;return[i[n[t++]],i[n[t++]],i[n[t++]],i[n[t++]],"-",i[n[t++]],i[n[t++]],"-",i[n[t++]],i[n[t++]],"-",i[n[t++]],i[n[t++]],"-",i[n[t++]],i[n[t++]],i[n[t++]],i[n[t++]],i[n[t++]],i[n[t++]]].join("")}var r3,op,Tb,zk=_(()=>{r3=[];for(op=0;op<256;++op)r3[op]=(op+256).toString(16).substr(1);Tb=kve});function Eve(n,e,t){var i=e&&t||0,r=e||[];n=n||{};var o=n.node||o3,s=n.clockseq!==void 0?n.clockseq:Vk;if(o==null||s==null){var a=n.random||(n.rng||rp)();o==null&&(o=o3=[a[0]|1,a[1],a[2],a[3],a[4],a[5]]),s==null&&(s=Vk=(a[6]<<8|a[7])&16383)}var l=n.msecs!==void 0?n.msecs:new Date().getTime(),u=n.nsecs!==void 0?n.nsecs:tE+1,c=l-eE+(u-tE)/1e4;if(c<0&&n.clockseq===void 0&&(s=s+1&16383),(c<0||l>eE)&&n.nsecs===void 0&&(u=0),u>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");eE=l,tE=u,Vk=s,l+=122192928e5;var h=((l&268435455)*1e4+u)%4294967296;r[i++]=h>>>24&255,r[i++]=h>>>16&255,r[i++]=h>>>8&255,r[i++]=h&255;var d=l/4294967296*1e4&268435455;r[i++]=d>>>8&255,r[i++]=d&255,r[i++]=d>>>24&15|16,r[i++]=d>>>16&255,r[i++]=s>>>8|128,r[i++]=s&255;for(var g=0;g<6;++g)r[i+g]=o[g];return e||Tb(r)}var o3,Vk,eE,tE,ps,s3=_(()=>{Qk();zk();eE=0,tE=0;ps=Eve});function Pve(n,e,t){var i=e&&t||0;typeof n=="string"&&(e=n==="binary"?new Array(16):null,n=null),n=n||{};var r=n.random||(n.rng||rp)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,e)for(var o=0;o<16;++o)e[i+o]=r[o];return e||Tb(r)}var se,a3=_(()=>{Qk();zk();se=Pve});var He=_(()=>{s3();a3()});var Hi,ba=_(()=>{"use strict";Rc();Ne();Hi=class{constructor(){this.lines=[];this._highlights=[]}addLine(e,t){if(e.includes(` +`)){for(let i of e.split(/\r?\n/))this.addLine(i,t);return}if(t&&this._highlights.push({lnum:this.lines.length,colStart:e.match(/^\s*/)[0].length,colEnd:V(e),hlGroup:t}),e.includes("\x1B")){let i=_c(e);for(let r of i.highlights){let{span:o,hlGroup:s}=r;o[0]!=o[1]&&this._highlights.push({lnum:this.lines.length,colStart:o[0],colEnd:o[1],hlGroup:s})}this.lines.push(i.line)}else this.lines.push(e)}addLines(e){this.lines.push(...e)}addTexts(e){let t=this.lines.length,i="";for(let r of e){let o=V(i);r.hlGroup&&this._highlights.push({lnum:t,colStart:o,colEnd:o+V(r.text),hlGroup:r.hlGroup}),i+=r.text}this.lines.push(i)}addText(e,t){let{lines:i}=this,r=i[i.length-1]||"";if(e.includes(` `)){let o=e.split(` -`);this.addText(o[0],t);for(let s of o.slice(1))this.addLine(s,t);return}if(t){let o=Q(r);this._highlights.push({lnum:i.length?i.length-1:0,colStart:o,colEnd:o+Q(e),hlGroup:t})}i.length?i[i.length-1]=`${r}${e}`:i.push(e)}get length(){return this.lines.length}getline(e){return this.lines[e]||""}get highlights(){return this._highlights}get content(){return this.lines.join(` -`)}render(e,t=0,i=-1){e.setLines(this.lines,{start:t,end:i,strictIndexing:!1},!0);for(let r of this._highlights)e.addHighlight({hlGroup:r.hlGroup,colStart:r.colStart,colEnd:r.colEnd==null?-1:r.colEnd,line:t+r.lnum,srcId:-1})}}});function Gbe(n,e){var i,r;let t=new Map;for(let o of n){let s=(i=Ig(o))!=null?i:null,a=s&&(r=e[s].label)!=null?r:null,l=t.get(a);l?l.push(o):t.set(a,[o])}return t}var Ng,Vb,BIe,Ube,ey,zY=_(()=>{"use strict";Ng=C(Lg()),Vb=C(require("path"));Kr();we();le();z();Je();Ar();oa();BIe=q()("mdoe-editInspect"),Ube=0,ey=class{constructor(e,t){this.nvim=e;this.keymaps=t;this.disposables=[];this.items=[];this.renameMap=new Map;E.on("BufUnload",i=>{i==this.bufnr&&this.dispose()},null,this.disposables)}addFile(e,t,i){this.items.push({index:t.length,filepath:e,lnum:i})}async show(e){var c,h;let{nvim:t}=this,i=Ube++;t.pauseNotification(),t.command(`tabe +setl\\ buftype=nofile CocWorkspaceEdit${i}`,!0),t.command("setl bufhidden=wipe nolist",!0),t.command("setl nobuflisted wrap undolevels=-1 filetype=cocedits noswapfile",!0),await t.resumeNotification(!0);let r=await t.buffer,o=await t.call("getcwd");this.bufnr=r.id;let s=d=>{let g=O.parse(d).fsPath;return Ae(o,g,!0)?Vb.default.relative(o,g):g},a=d=>Vb.default.isAbsolute(d)?d:Vb.default.join(o,d),l=new Ri,u=Gbe((c=e.edit.documentChanges)!=null?c:[],(h=e.edit.changeAnnotations)!=null?h:{});for(let[d,g]of u.entries()){d&&(l.addLine(d,"MoreMsg"),l.addLine(""));for(let f of g)if(Ws.is(f)){let p=e.changes[f.textDocument.uri],b=s(f.textDocument.uri);l.addTexts([{text:"Change",hlGroup:"Title"},{text:" "},{text:b,hlGroup:"Directory"},{text:`:${p.lnum}`,hlGroup:"LineNr"}]),this.addFile(b,l,p.lnum),l.addLine(""),this.addChangedLines(l,p,b,p.lnum),l.addLine("")}else if(Zs.is(f)||Yo.is(f)){let p=Yo.is(f)?"Delete":"Create",b=s(f.uri);l.addTexts([{text:p,hlGroup:"Title"},{text:" "},{text:b,hlGroup:"Directory"}]),this.addFile(b,l),l.addLine("")}else if(Js.is(f)){let p=s(f.oldUri),b=s(f.newUri);l.addTexts([{text:"Rename",hlGroup:"Title"},{text:" "},{text:p,hlGroup:"Directory"},{text:"->",hlGroup:"Comment"},{text:b,hlGroup:"Directory"}]),this.renameMap.set(p,b),this.addFile(b,l),l.addLine("")}}t.pauseNotification(),l.render(r),r.setOption("modifiable",!1,!0),await t.resumeNotification(!0),this.disposables.push(this.keymaps.registerLocalKeymap("n","",async()=>{var v;let d=await t.call("line","."),g=await t.call("col","."),f;for(let w=this.items.length-1;w>=0;w--){let D=this.items[w];if(d>=D.index){f=D;break}}if(!f)return;let p=O.file(a(f.filepath)).toString(),b=this.renameMap.has(f.filepath)?this.renameMap.get(f.filepath):f.filepath;if(await t.call("coc#util#open_file",["tab drop",a(b)]),typeof f.lnum=="number"){let D=((v=e.edit.documentChanges)!=null?v:[]).find(F=>Ws.is(F)&&F.textDocument.uri==p),S=f.lnum;if(D){let F=Fg(D.edits,(j,W)=>{let B=j.range.start.line-W.range.start.line;return B===0?j.range.start.character-W.range.start.character:B});S=Xb(Vt.create(S-1,0),F).line+1}await t.call("cursor",[S,g])}t.redrawVim()},!0)),this.disposables.push(this.keymaps.registerLocalKeymap("n","",async()=>{t.command("bwipeout!",!0)},!0))}addChangedLines(e,t,i,r){let o=(0,Ng.default)(t.oldLines.join(` +`);this.addText(o[0],t);for(let s of o.slice(1))this.addLine(s,t);return}if(t){let o=V(r);this._highlights.push({lnum:i.length?i.length-1:0,colStart:o,colEnd:o+V(e),hlGroup:t})}i.length?i[i.length-1]=`${r}${e}`:i.push(e)}get length(){return this.lines.length}getline(e){return this.lines[e]||""}get highlights(){return this._highlights}get content(){return this.lines.join(` +`)}render(e,t=0,i=-1){e.setLines(this.lines,{start:t,end:i,strictIndexing:!1},!0);for(let r of this._highlights)e.addHighlight({hlGroup:r.hlGroup,colStart:r.colStart,colEnd:r.colEnd==null?-1:r.colEnd,line:t+r.lnum,srcId:-1})}}});function Rve(n,e){let t=new Map;for(let i of n){let r=tp(i)??null,o=r?e[r].label??null:null,s=t.get(o);s?s.push(i):t.set(o,[i])}return t}var sp,kb,T1e,_ve,Eb,l3=_(()=>{"use strict";sp=x(Vg()),kb=x(require("path"));or();Ee();we();re();et();Ur();ba();T1e=W()("mdoe-editInspect"),_ve=0,Eb=class{constructor(e,t){this.nvim=e;this.keymaps=t;this.disposables=[];this.items=[];this.renameMap=new Map;P.on("BufUnload",i=>{i==this.bufnr&&this.dispose()},null,this.disposables)}addFile(e,t,i){this.items.push({index:t.length,filepath:e,lnum:i})}async show(e){let{nvim:t}=this,i=_ve++;t.pauseNotification(),t.command(`tabe +setl\\ buftype=nofile CocWorkspaceEdit${i}`,!0),t.command("setl bufhidden=wipe nolist",!0),t.command("setl nobuflisted wrap undolevels=-1 filetype=cocedits noswapfile",!0),await t.resumeNotification(!0);let r=await t.buffer,o=await t.call("getcwd");this.bufnr=r.id;let s=c=>{let h=I.parse(c).fsPath;return Je(o,h,!0)?kb.default.relative(o,h):h},a=c=>kb.default.isAbsolute(c)?c:kb.default.join(o,c),l=new Hi,u=Rve(e.edit.documentChanges??[],e.edit.changeAnnotations??{});for(let[c,h]of u.entries()){c&&(l.addLine(c,"MoreMsg"),l.addLine(""));for(let d of h)if(na.is(d)){let g=e.changes[d.textDocument.uri],p=s(d.textDocument.uri);l.addTexts([{text:"Change",hlGroup:"Title"},{text:" "},{text:p,hlGroup:"Directory"},{text:`:${g.lnum}`,hlGroup:"LineNr"}]),this.addFile(p,l,g.lnum),l.addLine(""),this.addChangedLines(l,g,p,g.lnum),l.addLine("")}else if(ra.is(d)||as.is(d)){let g=as.is(d)?"Delete":"Create",p=s(d.uri);l.addTexts([{text:g,hlGroup:"Title"},{text:" "},{text:p,hlGroup:"Directory"}]),this.addFile(p,l),l.addLine("")}else if(oa.is(d)){let g=s(d.oldUri),p=s(d.newUri);l.addTexts([{text:"Rename",hlGroup:"Title"},{text:" "},{text:g,hlGroup:"Directory"},{text:"->",hlGroup:"Comment"},{text:p,hlGroup:"Directory"}]),this.renameMap.set(g,p),this.addFile(p,l),l.addLine("")}}t.pauseNotification(),l.render(r),r.setOption("modifiable",!1,!0),await t.resumeNotification(!0),this.disposables.push(this.keymaps.registerLocalKeymap("n","",async()=>{let c=await t.call("line","."),h=await t.call("col","."),d;for(let f=this.items.length-1;f>=0;f--){let m=this.items[f];if(c>=m.index){d=m;break}}if(!d)return;let g=I.file(a(d.filepath)).toString(),p=this.renameMap.has(d.filepath)?this.renameMap.get(d.filepath):d.filepath;if(await t.call("coc#util#open_file",["tab drop",a(p)]),typeof d.lnum=="number"){let m=(e.edit.documentChanges??[]).find(w=>na.is(w)&&w.textDocument.uri==g),b=d.lnum;if(m){let w=ep(m.edits,(T,R)=>{let N=T.range.start.line-R.range.start.line;return N===0?T.range.start.character-R.range.start.character:N});b=wb(Gt.create(b-1,0),w).line+1}await t.call("cursor",[b,h])}t.redrawVim()},!0)),this.disposables.push(this.keymaps.registerLocalKeymap("n","",async()=>{t.command("bwipeout!",!0)},!0))}addChangedLines(e,t,i,r){let o=(0,sp.default)(t.oldLines.join(` `),t.newLines.join(` -`));for(let s=0;s0&&e.addText(h)}r+=l.split(` -`).length-1}else a[0]==Ng.default.DELETE?(r+=a[1].split(` -`).length-1,e.addText(a[1],"DiffDelete")):a[0]==Ng.default.INSERT&&e.addText(a[1],"DiffAdd")}}dispose(){Z(this.disposables)}}});function sk(n){return n?new Error(`Illegal argument: ${n}`):new Error("Illegal argument")}function ak(n){return new Error(`File ${n} already exists`)}function ty(n){return new Error(`File ${n} not exists`)}function VY(n){return new Error(`${n} should not be called in an asynchronize manner`)}function iy(n){return new Error(`Change of ${n} not supported`)}var lk=_(()=>{"use strict"});function zbe(n,e,t){let i=Or.default.join(n,e);if(typeof t!="string"){let r=t.baseUri.fsPath;if(!Ae(r,i))return!1;let o=Or.default.relative(r,i);return(0,uk.default)(o,t.pattern,{dot:!0})}return(0,uk.default)(e,t,{dot:!0})}function ny(n){return O.parse(n).fsPath}var ct,eW,uk,ck,Or,tW,St,Kbe,ry,iW=_(()=>{"use strict";ct=C(Rn()),eW=C(gb()),uk=C(Vn()),ck=C(require("os")),Or=C(require("path")),tW=require("util");Oe();St=C(H());we();le();zY();lk();Je();Pe();Ar();Tb();Kbe=q()("core-files"),ry=class{constructor(e,t,i,r){this.documents=e;this.configurations=t;this.workspaceFolderControl=i;this.keymaps=r;this.operationTimeout=500;this._onDidCreateFiles=new St.Emitter;this._onDidRenameFiles=new St.Emitter;this._onDidDeleteFiles=new St.Emitter;this._onWillCreateFiles=new St.Emitter;this._onWillRenameFiles=new St.Emitter;this._onWillDeleteFiles=new St.Emitter;this.onDidCreateFiles=this._onDidCreateFiles.event;this.onDidRenameFiles=this._onDidRenameFiles.event;this.onDidDeleteFiles=this._onDidDeleteFiles.event;this.onWillCreateFiles=this._onWillCreateFiles.event;this.onWillRenameFiles=this._onWillRenameFiles.event;this.onWillDeleteFiles=this._onWillDeleteFiles.event}attach(e,t,i){this.nvim=e,this.env=t,this.window=i}async openTextDocument(e){e=typeof e=="string"?O.file(e):e;let t=this.documents.getDocument(e.toString());if(t)return await this.jumpTo(e.toString(),null,"drop"),t;let i=e.scheme;if(i=="file"){if(!ct.default.existsSync(e.fsPath))throw ty(e.fsPath);ct.default.accessSync(e.fsPath,ct.default.constants.R_OK)}return i=="untitled"?(await this.nvim.call("coc#util#open_file",["tab drop",e.path]),await this.documents.document):await this.loadResource(e.toString())}async jumpTo(e,t,i){let r=this.configurations.getConfiguration("coc.preferences"),o=i||r.get("jumpCommand","edit"),{nvim:s}=this,a=this.documents.getDocument(e),l=a?a.bufnr:-1;if(l!=-1&&o=="edit"){if(s.pauseNotification(),s.command("silent! normal! m'",!0),s.command(`buffer ${l}`,!0),s.command("if &filetype ==# '' | filetype detect | endif",!0),t){let u=a.getline(t.line),c=Q(u.slice(0,t.character))+1;s.call("cursor",[t.line+1,c],!0)}await s.resumeNotification(!0)}else{let{fsPath:u,scheme:c}=O.parse(e),h=t==null?null:[t.line,t.character];if(c=="file"){let d=yg(Or.default.normalize(u));await this.nvim.call("coc#util#jump",[o,d,h])}else await this.nvim.call("coc#util#jump",[o,e,h])}}async openResource(e){let{nvim:t}=this,i=O.parse(e);if(/^https?/.test(i.scheme)){await t.call("coc#ui#open_url",e);return}let r=await t.getOption("wildignore");await t.setOption("wildignore",""),await this.jumpTo(e),await t.setOption("wildignore",r)}async loadResource(e){let t=this.documents.getDocument(e);if(t)return t;let r=this.configurations.getConfiguration("workspace").get("openResourceCommand","tab drop"),o=O.parse(e),s=o.scheme==="file"?o.fsPath:e,a;if(r){let l=await this.nvim.call("win_getid");a=await this.nvim.call("coc#util#open_file",[r,s]),await this.nvim.call("win_gotoid",[l])}else a=(await this.nvim.call("coc#ui#open_files",[[s]]))[0];return await this.documents.createDocument(a)}async loadResources(e){let{documents:t}=this,i=e.map(o=>{let s=O.parse(o);return s.scheme=="file"?s.fsPath:o}),r=await this.nvim.call("coc#ui#open_files",[i]);return await Promise.all(r.map(o=>t.createDocument(o)))}async createFile(e,t={},i){let{nvim:r}=this,o=ct.default.existsSync(e);if(o&&!t.overwrite&&!t.ignoreIfExists)throw ak(e);if(!o||t.overwrite){let s=new St.CancellationTokenSource;await this.fireWaitUntilEvent(this._onWillCreateFiles,{files:[O.file(e)],token:s.token},i),s.cancel();let a=Or.default.dirname(e);if(!ct.default.existsSync(a)){let c,h=a;for(;![".","/",Or.default.parse(a).root].includes(h);){if(ct.default.existsSync(Or.default.dirname(h))){c=h;break}h=Or.default.dirname(h)}await ct.default.mkdirp(a),i&&i.push(async()=>{ct.default.existsSync(c)&&await ct.default.remove(c)})}ct.default.writeFileSync(e,"","utf8"),i&&i.push(async()=>{ct.default.existsSync(e)&&await ct.default.unlink(e)});let u=(await this.loadResource(e)).bufnr;i&&i.push(()=>(E.fire("BufUnload",[u]),r.command(`silent! bd! ${u}`))),this._onDidCreateFiles.fire({files:[O.file(e)]})}}async deleteFile(e,t={},i){let{ignoreIfNotExists:r,recursive:o}=t,s=await Ht(e),a=s&&s.isDirectory();if(!s&&!r)throw ty(e);if(s==null)return;let l=O.file(e);if(await this.fireWaitUntilEvent(this._onWillDeleteFiles,{files:[l]},i),!a){let u=await this.nvim.call("bufnr",[e]);u&&(E.fire("BufUnload",[u]),await this.nvim.command(`silent! bwipeout ${u}`),i&&i.push(()=>this.loadResource(l.toString())))}if(a&&o){let u=Or.default.join(ck.default.tmpdir(),"coc-"+re());await ct.default.mkdir(u),await ct.default.copy(e,u,{recursive:!0}),await ct.default.remove(e),i&&i.push(async()=>{await ct.default.mkdir(e),await ct.default.copy(u,e,{recursive:!0}),await ct.default.remove(u)})}else if(a)await ct.default.rmdir(e),i&&i.push(()=>ct.default.mkdir(e));else{let u=Or.default.join(ck.default.tmpdir(),"coc-"+re());await ct.default.copyFile(e,u),await ct.default.unlink(e),i&&i.push(()=>ct.default.move(u,e,{overwrite:!0}))}this._onDidDeleteFiles.fire({files:[l]})}async renameFile(e,t,i={},r){let{nvim:o}=this,{overwrite:s,ignoreIfExists:a}=i;if(t===e)return;let l=ct.default.existsSync(t);if(l&&a&&!s)return;if(l&&!s)throw ak(t);let u=await Ht(e),c=u&&u.isDirectory()?0:await o.call("bufloaded",[e]);if(!c&&!u)throw ty(e);let h={newUri:O.parse(t),oldUri:O.parse(e)};if(i.skipEvent||await this.fireWaitUntilEvent(this._onWillRenameFiles,{files:[h]},r),c){let d=await o.call("coc#ui#rename_file",[e,t,u!=null]);await this.documents.onBufCreate(d)}else{if(u!=null&&u.isDirectory())for(let d of this.documents.documents){let g=O.parse(d.uri);if(g.scheme==="file"&&Ae(e,g.fsPath,!1)){let f=g.fsPath.replace(e,t),p=await o.call("coc#ui#rename_file",[g.fsPath,f,!1]);await this.documents.onBufCreate(p)}}ct.default.renameSync(e,t)}r&&r.push(()=>this.renameFile(t,e,{skipEvent:!0})),i.skipEvent||this._onDidRenameFiles.fire({files:[h]})}async renameCurrent(){let{nvim:e}=this,t=await e.call("expand",["%:p"]),i=await e.callAsync("coc#util#with_callback",["input",["New path: ",t,"file"]]);i=i?i.trim():null,!(i===t||!i)&&(t.toLowerCase()!=i.toLowerCase()&&ct.default.existsSync(i)&&!await Sb(this.nvim,`${i} exists, overwrite?`)||await this.renameFile(t,i,{overwrite:!0}))}get currentUri(){let e=this.documents.getDocument(this.documents.bufnr);return e?e.uri:null}async applyEdit(e,t){let i=OY(e),r=[],o=!1;try{let{changeAnnotations:s}=e,{currentUri:a}=this,l=s?AY(i,s):[],u={},c=[];for(let h of l){let d=s[h];d.needsConfirmation=!1,await this.window.showMenuPicker(["Yes","No"],{position:"center",title:"Confirm edits",content:d.label+(d.description?" "+d.description:"")})!==0&&c.push(h)}if(i=i.filter(h=>!c.includes(Ig(h))),!i.length)return!0;o=i.every(h=>St.TextDocumentEdit.is(h)&&h.textDocument.uri===a),this.validateChanges(i);for(let h of i)if(St.TextDocumentEdit.is(h)){let{textDocument:d,edits:g}=h,{uri:f}=d,p=await this.loadResource(f),b=await p.applyEdits(g,!1,f===a);if(b){let v=p.version,{newText:w,range:D}=b;u[f]={uri:f,lnum:D.start.line+1,newLines:p.getLines(D.start.line,D.end.line),oldLines:w.endsWith(` +`).length-1}else a[0]==sp.default.DELETE?(r+=a[1].split(` +`).length-1,e.addText(a[1],"DiffDelete")):a[0]==sp.default.INSERT&&e.addText(a[1],"DiffAdd")}}dispose(){$(this.disposables)}}});function iE(n){return n?new Error(`Illegal argument: ${n}`):new Error("Illegal argument")}function nE(n){return new Error(`File ${n} already exists`)}function Pb(n){return new Error(`File ${n} not exists`)}function u3(n){return new Error(`${n} should not be called in an asynchronize manner`)}function _b(n){return new Error(`Change of ${n} not supported`)}var rE=_(()=>{"use strict"});function Ive(n,e,t){let i=Gr.default.join(n,e);if(typeof t!="string"){let r=t.baseUri.fsPath;if(!Je(r,i))return!1;let o=Gr.default.relative(r,i);return(0,oE.default)(o,t.pattern,{dot:!0})}return(0,oE.default)(e,t,{dot:!0})}function Rb(n){return I.parse(n).fsPath}var yt,c3,oE,sE,Gr,h3,At,Fve,Lb,d3=_(()=>{"use strict";yt=x(Bn()),c3=x(Hy()),oE=x(Yn()),sE=x(require("os")),Gr=x(require("path")),h3=require("util");He();At=x(q());Ee();we();l3();rE();et();Ne();Ur();zy();Fve=W()("core-files"),Lb=class{constructor(e,t,i,r){this.documents=e;this.configurations=t;this.workspaceFolderControl=i;this.keymaps=r;this.operationTimeout=500;this._onDidCreateFiles=new At.Emitter;this._onDidRenameFiles=new At.Emitter;this._onDidDeleteFiles=new At.Emitter;this._onWillCreateFiles=new At.Emitter;this._onWillRenameFiles=new At.Emitter;this._onWillDeleteFiles=new At.Emitter;this.onDidCreateFiles=this._onDidCreateFiles.event;this.onDidRenameFiles=this._onDidRenameFiles.event;this.onDidDeleteFiles=this._onDidDeleteFiles.event;this.onWillCreateFiles=this._onWillCreateFiles.event;this.onWillRenameFiles=this._onWillRenameFiles.event;this.onWillDeleteFiles=this._onWillDeleteFiles.event}attach(e,t,i){this.nvim=e,this.env=t,this.window=i}async openTextDocument(e){e=typeof e=="string"?I.file(e):e;let t=this.documents.getDocument(e.toString());if(t)return await this.jumpTo(e.toString(),null,"drop"),t;let i=e.scheme;if(i=="file"){if(!yt.default.existsSync(e.fsPath))throw Pb(e.fsPath);yt.default.accessSync(e.fsPath,yt.default.constants.R_OK)}return i=="untitled"?(await this.nvim.call("coc#util#open_file",["tab drop",e.path]),await this.documents.document):await this.loadResource(e.toString())}async jumpTo(e,t,i){let r=this.configurations.getConfiguration("coc.preferences"),o=i||r.get("jumpCommand","edit"),{nvim:s}=this,a=this.documents.getDocument(e),l=a?a.bufnr:-1;if(l!=-1&&o=="edit"){if(s.pauseNotification(),s.command("silent! normal! m'",!0),s.command(`buffer ${l}`,!0),s.command("if &filetype ==# '' | filetype detect | endif",!0),t){let u=a.getline(t.line),c=V(u.slice(0,t.character))+1;s.call("cursor",[t.line+1,c],!0)}await s.resumeNotification(!0)}else{let{fsPath:u,scheme:c}=I.parse(e),h=t==null?null:[t.line,t.character];if(c=="file"){let d=Hg(Gr.default.normalize(u));await this.nvim.call("coc#util#jump",[o,d,h])}else await this.nvim.call("coc#util#jump",[o,e,h])}}async openResource(e){let{nvim:t}=this,i=I.parse(e);if(/^https?/.test(i.scheme)){await t.call("coc#ui#open_url",e);return}let r=await t.getOption("wildignore");await t.setOption("wildignore",""),await this.jumpTo(e),await t.setOption("wildignore",r)}async loadResource(e){let t=this.documents.getDocument(e);if(t)return t;let r=this.configurations.getConfiguration("workspace").get("openResourceCommand","tab drop"),o=I.parse(e),s=o.scheme==="file"?o.fsPath:e,a;if(r){let l=await this.nvim.call("win_getid");a=await this.nvim.call("coc#util#open_file",[r,s]),await this.nvim.call("win_gotoid",[l])}else a=(await this.nvim.call("coc#ui#open_files",[[s]]))[0];return await this.documents.createDocument(a)}async loadResources(e){let{documents:t}=this,i=e.map(o=>{let s=I.parse(o);return s.scheme=="file"?s.fsPath:o}),r=await this.nvim.call("coc#ui#open_files",[i]);return await Promise.all(r.map(o=>t.createDocument(o)))}async createFile(e,t={},i){let{nvim:r}=this,o=yt.default.existsSync(e);if(o&&!t.overwrite&&!t.ignoreIfExists)throw nE(e);if(!o||t.overwrite){let s=new At.CancellationTokenSource;await this.fireWaitUntilEvent(this._onWillCreateFiles,{files:[I.file(e)],token:s.token},i),s.cancel();let a=Gr.default.dirname(e);if(!yt.default.existsSync(a)){let c,h=a;for(;![".","/",Gr.default.parse(a).root].includes(h);){if(yt.default.existsSync(Gr.default.dirname(h))){c=h;break}h=Gr.default.dirname(h)}await yt.default.mkdirp(a),i&&i.push(async()=>{yt.default.existsSync(c)&&await yt.default.remove(c)})}yt.default.writeFileSync(e,"","utf8"),i&&i.push(async()=>{yt.default.existsSync(e)&&await yt.default.unlink(e)});let u=(await this.loadResource(e)).bufnr;i&&i.push(()=>(P.fire("BufUnload",[u]),r.command(`silent! bd! ${u}`))),this._onDidCreateFiles.fire({files:[I.file(e)]})}}async deleteFile(e,t={},i){let{ignoreIfNotExists:r,recursive:o}=t,s=await $t(e),a=s&&s.isDirectory();if(!s&&!r)throw Pb(e);if(s==null)return;let l=I.file(e);if(await this.fireWaitUntilEvent(this._onWillDeleteFiles,{files:[l]},i),!a){let u=await this.nvim.call("bufnr",[e]);u&&(P.fire("BufUnload",[u]),await this.nvim.command(`silent! bwipeout ${u}`),i&&i.push(()=>this.loadResource(l.toString())))}if(a&&o){let u=Gr.default.join(sE.default.tmpdir(),"coc-"+se());await yt.default.mkdir(u),await yt.default.copy(e,u,{recursive:!0}),await yt.default.remove(e),i&&i.push(async()=>{await yt.default.mkdir(e),await yt.default.copy(u,e,{recursive:!0}),await yt.default.remove(u)})}else if(a)await yt.default.rmdir(e),i&&i.push(()=>yt.default.mkdir(e));else{let u=Gr.default.join(sE.default.tmpdir(),"coc-"+se());await yt.default.copyFile(e,u),await yt.default.unlink(e),i&&i.push(()=>yt.default.move(u,e,{overwrite:!0}))}this._onDidDeleteFiles.fire({files:[l]})}async renameFile(e,t,i={},r){let{nvim:o}=this,{overwrite:s,ignoreIfExists:a}=i;if(t===e)return;let l=yt.default.existsSync(t);if(l&&a&&!s)return;if(l&&!s)throw nE(t);let u=await $t(e),c=u&&u.isDirectory()?0:await o.call("bufloaded",[e]);if(!c&&!u)throw Pb(e);let h={newUri:I.parse(t),oldUri:I.parse(e)};if(i.skipEvent||await this.fireWaitUntilEvent(this._onWillRenameFiles,{files:[h]},r),c){let d=await o.call("coc#ui#rename_file",[e,t,u!=null]);await this.documents.onBufCreate(d)}else{if(u!=null&&u.isDirectory())for(let d of this.documents.documents){let g=I.parse(d.uri);if(g.scheme==="file"&&Je(e,g.fsPath,!1)){let p=g.fsPath.replace(e,t),f=await o.call("coc#ui#rename_file",[g.fsPath,p,!1]);await this.documents.onBufCreate(f)}}yt.default.renameSync(e,t)}r&&r.push(()=>this.renameFile(t,e,{skipEvent:!0})),i.skipEvent||this._onDidRenameFiles.fire({files:[h]})}async renameCurrent(){let{nvim:e}=this,t=await e.call("expand",["%:p"]),i=await e.callAsync("coc#util#with_callback",["input",["New path: ",t,"file"]]);i=i?i.trim():null,!(i===t||!i)&&(t.toLowerCase()!=i.toLowerCase()&&yt.default.existsSync(i)&&!await Qy(this.nvim,`${i} exists, overwrite?`)||await this.renameFile(t,i,{overwrite:!0}))}get currentUri(){let e=this.documents.getDocument(this.documents.bufnr);return e?e.uri:null}async applyEdit(e,t){let i=$W(e),r=[],o=!1;try{let{changeAnnotations:s}=e,{currentUri:a}=this,l=s?JW(i,s):[],u={},c=[];for(let h of l){let d=s[h];d.needsConfirmation=!1,await this.window.showMenuPicker(["Yes","No"],{position:"center",title:"Confirm edits",content:d.label+(d.description?" "+d.description:"")})!==0&&c.push(h)}if(i=i.filter(h=>!c.includes(tp(h))),!i.length)return!0;o=i.every(h=>At.TextDocumentEdit.is(h)&&h.textDocument.uri===a),this.validateChanges(i);for(let h of i)if(At.TextDocumentEdit.is(h)){let{textDocument:d,edits:g}=h,{uri:p}=d,f=await this.loadResource(p),m=await f.applyEdits(g,!1,p===a);if(m){let b=f.version,{newText:w,range:D}=m;u[p]={uri:p,lnum:D.start.line+1,newLines:f.getLines(D.start.line,D.end.line),oldLines:w.endsWith(` `)?w.slice(0,-1).split(` `):w.split(` -`)},r.push(async()=>{let S=this.documents.getDocument(f);!S||!S.attached||S.version!==v||(await S.applyEdits([b]),d.version=S.version)})}}else St.CreateFile.is(h)?await this.createFile(ny(h.uri),h.options,r):St.DeleteFile.is(h)?await this.deleteFile(ny(h.uri),h.options,r):St.RenameFile.is(h)&&await this.renameFile(ny(h.oldUri),ny(h.newUri),h.options,r);if(r.length===0)return!0;t||(this.editState={edit:{documentChanges:i,changeAnnotations:e.changeAnnotations},changes:u,recovers:r,applied:!0}),this.nvim.redrawVim()}catch(s){return Kbe.error("Error on applyEdits:",e,s),await this.undoChanges(r),t||this.window.showErrorMessage(`Error on applyEdits: ${s}`),!1}return t||o||this.window.showInformationMessage("Use ':wa' to save changes or ':CocCommand workspace.inspectEdit' to inspect."),!0}async undoChanges(e){for(;e.length>0;)await e.pop()()}async inspectEdit(){if(!this.editState){this.window.showWarningMessage("No workspace edit to inspect");return}await new ey(this.nvim,this.keymaps).show(this.editState)}async undoWorkspaceEdit(){let{editState:e}=this;if(!e||!e.applied){this.window.showWarningMessage("No workspace edit to undo");return}e.applied=!1,await this.undoChanges(e.recovers)}async redoWorkspaceEdit(){let{editState:e}=this;if(!e||e.applied){this.window.showWarningMessage("No workspace edit to redo");return}this.editState=void 0,await this.applyEdit(e.edit)}validateChanges(e){let{documents:t}=this;for(let i of e)if(St.TextDocumentEdit.is(i)){let{uri:r,version:o}=i.textDocument,s=t.getDocument(r);if(typeof o=="number"&&o>0){if(!s)throw new Error(`File ${r} not loaded`);if(s.version!=o)throw new Error(`${r} changed before apply edit`)}else if(!s&&!vg(r))throw iy(O.parse(r).scheme)}else if(St.CreateFile.is(i)||St.DeleteFile.is(i)){if(!vg(i.uri))throw iy(O.parse(i.uri).scheme)}else if(St.RenameFile.is(i)&&(!vg(i.oldUri)||!vg(i.newUri)))throw iy(O.parse(i.oldUri).scheme)}async findFiles(e,t,i,r){let o=this.workspaceFolderControl.workspaceFolders;if((r==null?void 0:r.isCancellationRequested)||!o.length||i===0)return[];i=i!=null?i:1/0;let s=o.map(u=>O.parse(u.uri).fsPath);if(typeof e!="string"){let u=e.baseUri.fsPath;s=s.filter(c=>Ae(u,c,!0))}let a=typeof e=="string"?e:e.pattern,l=[];for(let u of s){if(l.length>=i)break;let c=await(0,tW.promisify)(eW.default)(a,{dot:!0,cwd:u,nodir:!0,absolute:!1});if(r!=null&&r.isCancellationRequested)return[];for(let h of c)if(!(t&&zbe(u,h,t))&&(l.push(O.file(Or.default.join(u,h))),l.length===i))break}return l}async fireWaitUntilEvent(e,t,i){let r=!0,o=[];e.fire(Ba(ge({},t),{waitUntil:s=>{if(!r)throw VY("waitUntil");let a=new Promise(u=>{setTimeout(u,this.operationTimeout)}),l=Promise.race([s,a]).then(u=>{if(u&&St.WorkspaceEdit.is(u))return this.applyEdit(u,!0)});o.push(l)}})),r=!1,await Promise.all(o)}}});function hk(n,e){for(let t of e)if(n.includes(t))return!0;return!1}function nW(n,e,t=0){let i=-1;for(let r=t;r{e(i)?t[0].push(i):t[1].push(i)}),t}function sa(n,e){if(!e)return n.filter((i,r)=>n.indexOf(i)===r);let t=Object.create(null);return n.filter(i=>{let r=e(i);return t[r]?!1:(t[r]=!0,!0)})}var Qo=_(()=>{"use strict"});var aW=m((rje,sW)=>{var dk=4294967296,oW=[];for(Fc=0;Fc<256;Fc++)oW[Fc]=(Fc>15?"":"0")+Fc.toString(16);var Fc,Bg=sW.exports=function(n,e){n instanceof Buffer?(this.buffer=n,this.offset=e||0):Object.prototype.toString.call(n)=="[object Uint8Array]"?(this.buffer=new Buffer(n),this.offset=e||0):(this.buffer=this.buffer||new Buffer(8),this.offset=0,this.setValue.apply(this,arguments))};Bg.MAX_INT=Math.pow(2,53);Bg.MIN_INT=-Math.pow(2,53);Bg.prototype={constructor:Bg,_2scomp:function(){for(var n=this.buffer,e=this.offset,t=1,i=e+7;i>=e;i--){var r=(n[i]^255)+t;n[i]=r&255,t=r>>8}},setValue:function(n,e){var t=!1;if(arguments.length==1)if(typeof n=="number"){if(t=n<0,n=Math.abs(n),e=n%dk,n=n/dk,n>dk)throw new RangeError(n+" is outside Int64 range");n=n|0}else if(typeof n=="string")n=(n+"").replace(/^0x/,""),e=n.substr(-8),n=n.length>8?n.substr(0,n.length-8):"",n=parseInt(n,16),e=parseInt(e,16);else throw new Error(n+" must be a Number or String");for(var i=this.buffer,r=this.offset,o=7;o>=0;o--)i[r+o]=e&255,e=o==4?n:e>>>8;t&&this._2scomp()},toNumber:function(n){for(var e=this.buffer,t=this.offset,i=e[t]&128,r=0,o=1,s=7,a=1;s>=0;s--,a*=256){var l=e[t+s];i&&(l=(l^255)+o,o=l>>8,l=l&255),r+=l*a}return!n&&r>=Bg.MAX_INT?i?-1/0:1/0:i?-r:r},valueOf:function(){return this.toNumber(!1)},toString:function(n){return this.valueOf().toString(n||10)},toOctetString:function(n){for(var e=new Array(8),t=this.buffer,i=this.offset,r=0;r<8;r++)e[r]=oW[t[i+r]];return e.join(n||"")},toBuffer:function(n){if(n&&this.offset===0)return this.buffer;var e=new Buffer(8);return this.buffer.copy(e,0,this.offset,this.offset+8),e},copy:function(n,e){this.buffer.copy(n,e||0,this.offset,this.offset+8)},compare:function(n){if((this.buffer[this.offset]&128)!=(n.buffer[n.offset]&128))return n.buffer[n.offset]-this.buffer[this.offset];for(var e=0;e<8;e++)if(this.buffer[this.offset+e]!==n.buffer[n.offset+e])return this.buffer[this.offset+e]-n.buffer[n.offset+e];return 0},equals:function(n){return this.compare(n)===0},inspect:function(){return"[Int64 value:"+this+" octets:"+this.toOctetString(" ")+"]"}}});var yW=m(qg=>{var uW=require("events").EventEmitter,Vbe=require("util"),eye=require("os"),oje=require("assert"),Hg=aW(),aa=eye.endianness()=="BE";function cW(n){return Math.pow(2,Math.ceil(Math.log(n)/Math.LN2))}function di(n){this.buf=Buffer.alloc(cW(n||8192)),this.readOffset=0,this.writeOffset=0}qg.Accumulator=di;di.prototype.writeAvail=function(){return this.buf.length-this.writeOffset};di.prototype.readAvail=function(){return this.writeOffset-this.readOffset};di.prototype.reserve=function(n){if(!(n0&&(this.buf.copy(this.buf,0,this.readOffset,this.writeOffset),this.writeOffset-=this.readOffset,this.readOffset=0),!(n0)this.assertReadableSize(n);else if(n<0&&this.readOffset+n<0)throw new Error("advance with negative offset "+n+" would seek off the start of the buffer");this.readOffset+=n};di.prototype.writeByte=function(n){this.reserve(1),this.buf.writeInt8(n,this.writeOffset),++this.writeOffset};di.prototype.writeInt=function(n,e){switch(this.reserve(e),e){case 1:this.buf.writeInt8(n,this.writeOffset);break;case 2:aa?this.buf.writeInt16BE(n,this.writeOffset):this.buf.writeInt16LE(n,this.writeOffset);break;case 4:aa?this.buf.writeInt32BE(n,this.writeOffset):this.buf.writeInt32LE(n,this.writeOffset);break;default:throw new Error("unsupported integer size "+e)}this.writeOffset+=e};di.prototype.writeDouble=function(n){this.reserve(8),aa?this.buf.writeDoubleBE(n,this.writeOffset):this.buf.writeDoubleLE(n,this.writeOffset),this.writeOffset+=8};var fk=0,pk=1,mk=2,bk=3,yk=4,uy=5,ly=6,hW=7,dW=8,gW=9,fW=10,pW=11,tye=12,gk=0,lW=1,iye=127,nye=32767,rye=2147483647;function pn(){uW.call(this),this.buf=new di,this.state=gk}Vbe.inherits(pn,uW);qg.BunserBuf=pn;pn.prototype.append=function(n,e){if(e)return this.buf.append(n),this.process(e);try{this.buf.append(n)}catch(t){this.emit("error",t);return}this.processLater()};pn.prototype.processLater=function(){var n=this;process.nextTick(function(){try{n.process(!1)}catch(e){n.emit("error",e)}})};pn.prototype.process=function(n){if(this.state==gk){if(this.buf.readAvail()<2)return;if(this.expectCode(0),this.expectCode(1),this.pduLen=this.decodeInt(!0),this.pduLen===!1){this.buf.readAdvance(-2);return}this.buf.reserve(this.pduLen),this.state=lW}if(this.state==lW){if(this.buf.readAvail()0&&this.processLater()};pn.prototype.raise=function(n){throw new Error(n+", in Buffer of length "+this.buf.buf.length+" ("+this.buf.readAvail()+" readable) at offset "+this.buf.readOffset+" buffer: "+JSON.stringify(this.buf.buf.slice(this.buf.readOffset,this.buf.readOffset+32).toJSON()))};pn.prototype.expectCode=function(n){var e=this.buf.readInt(1);e!=n&&this.raise("expected bser opcode "+n+" but got "+e)};pn.prototype.decodeAny=function(){var n=this.buf.peekInt(1);switch(n){case bk:case yk:case uy:case ly:return this.decodeInt();case hW:return this.buf.readAdvance(1),this.buf.readDouble();case dW:return this.buf.readAdvance(1),!0;case gW:return this.buf.readAdvance(1),!1;case fW:return this.buf.readAdvance(1),null;case mk:return this.decodeString();case fk:return this.decodeArray();case pk:return this.decodeObject();case pW:return this.decodeTemplate();default:this.raise("unhandled bser opcode "+n)}};pn.prototype.decodeArray=function(){this.expectCode(fk);for(var n=this.decodeInt(),e=[],t=0;t"u")throw Error("no bser found in string and no error raised!?");return t}qg.loadFromBuffer=oye;function mW(n){for(var e=Buffer.alloc(n.length),t=0;t"u"&&r--}sy(n,r);for(var t=0;t"u")){ay(n,o);try{ay(n,s)}catch(c){throw new Error(c.message+" (while serializing object property with name `"+o+"')")}}}return;default:throw new Error("cannot serialize type "+typeof e+" to BSER")}}function sye(n){var e=new di;e.writeByte(0),e.writeByte(1),e.writeByte(uy),e.writeInt(0,4),ay(e,n);var t=e.writeOffset,i=t-7;return e.writeOffset=3,e.writeInt(i,4),e.writeOffset=t,e.buf.slice(0,t)}qg.dumpToBuffer=sye});var TW=m((aje,SW)=>{"use strict";var aye=require("net"),xW=require("events").EventEmitter,lye=require("util"),uye=require("child_process"),CW=yW(),vW=["subscription","log"];function Ko(n){var e=this;xW.call(this),this.watchmanBinaryPath="watchman",n&&n.watchmanBinaryPath&&(this.watchmanBinaryPath=n.watchmanBinaryPath.trim()),this.commands=[]}lye.inherits(Ko,xW);SW.exports.Client=Ko;Ko.prototype.sendNextCommand=function(){this.currentCommand||(this.currentCommand=this.commands.shift(),this.currentCommand&&this.socket.write(CW.dumpToBuffer(this.currentCommand.cmd)))};Ko.prototype.cancelCommands=function(n){var e=new Error(n),t=this.commands;this.commands=[],this.currentCommand&&(t.unshift(this.currentCommand),this.currentCommand=null),t.forEach(function(i){i.cb(e)})};Ko.prototype.connect=function(){var n=this;function e(l){n.bunser=new CW.BunserBuf,n.bunser.on("value",function(u){for(var c=!1,h=0;h=0:!1}Ko.prototype._synthesizeCapabilityCheck=function(n,e,t){n.capabilities={};var i=n.version;return e.forEach(function(r){n.capabilities[r]=DW(i,r)}),t.forEach(function(r){var o=DW(i,r);n.capabilities[r]=o,o||(n.error="client required capability `"+r+"` is not supported by this server")}),n};Ko.prototype.capabilityCheck=function(n,e){var t=n.optional||[],i=n.required||[],r=this;this.command(["version",{optional:t,required:i}],function(o,s){if(o){e(o);return}if(!("capabilities"in s)&&(s=r._synthesizeCapabilityCheck(s,t,i),s.error)){o=new Error(s.error),o.watchmanResponse=s,e(o);return}e(null,s)})};Ko.prototype.end=function(){this.cancelCommands("The client was ended"),this.socket&&(this.socket.end(),this.socket=null),this.bunser=null}});function dye(n){return!(n=="/"||n=="/tmp"||n=="/private/tmp"||Ae(n,vk.default.homedir(),!0)||hy.default.parse(n).base==n||n.startsWith("/tmp/")||n.startsWith("/private/tmp/")||Ae(vk.default.tmpdir(),n,!0))}var kW,EW,vk,hy,cy,hye,la,wk=_(()=>{"use strict";kW=C(TW()),EW=C(Vn()),vk=C(require("os")),hy=C(require("path"));Oe();Je();cy=q()("core-watchman"),hye=["relative_root","cmd-watch-project","wildmatch","field-new"],la=class{constructor(e,t){this.channel=t;this._disposed=!1;this.client=new kW.default.Client({watchmanBinaryPath:e}),this.client.setMaxListeners(300)}checkCapability(){let{client:e}=this;return new Promise((t,i)=>{e.capabilityCheck({optional:[],required:hye},(r,o)=>{if(r)return t(!1);let{capabilities:s}=o;for(let a of Object.keys(s))if(!s[a])return t(!1);t(!0)})})}async watchProject(e){let t=await this.command(["watch-project",e]),{watch:i,warning:r,relative_path:o}=t;return i?(r&&cy.warn(r),this.watch=i,this.relative_path=o,cy.info(`watchman watching project: ${e}`),this.appendOutput(`watchman watching project: ${e}`),!0):!1}command(e){return new Promise((t,i)=>{this.client.command(e,(r,o)=>{if(r)return i(r);t(o)})})}async subscribe(e,t){let{watch:i,relative_path:r}=this;if(!i)throw new Error("watchman not watching");let{clock:o}=await this.command(["clock",i]),s=Go(),a={expression:["allof",["match","**/*","wholename"]],fields:["name","size","new","exists","type","mtime_ms","ctime_ms"],since:o},l=i;r&&(a.relative_root=r,l=hy.default.join(i,r));let{subscribe:u}=await this.command(["subscribe",i,s,a]);return this.appendOutput(`subscribing "${e}" in ${l}`),this.client.on("subscription",c=>{if(!c||c.subscription!=s)return;let{files:h}=c;if(!h||(h=h.filter(g=>g.type=="f"&&(0,EW.default)(g.name,e,{dot:!0})),!h.length))return;let d=Object.assign({},c);this.relative_path&&(d.root=hy.default.resolve(c.root,this.relative_path)),this.appendOutput(`file change detected: ${JSON.stringify(d,null,2)}`),t(d)}),{dispose:()=>{this.unsubscribe(u)},subscribe:u}}unsubscribe(e){if(this._disposed)return Promise.resolve();let{watch:t}=this;if(!!t)return this.appendOutput(`unsubscribe "${e}" in: ${t}`),this.command(["unsubscribe",t,e]).catch(i=>{var r;(r=i.message)!=null&&r.includes("The client was ended")&&cy.error(i)})}dispose(){this._disposed||(this._disposed=!0,this.client&&(this.client.removeAllListeners(),this.client.end(),this.client=void 0))}appendOutput(e,t="Info"){this.channel&&this.channel.appendLine(`[${t} - ${new Date().toLocaleTimeString()}] ${e}`)}static async createClient(e,t,i){if(!dye(t))return null;let r;try{if(r=new la(e,i),!await r.checkCapability())throw new Error("required capabilities do not exist.");if(!await r.watchProject(t))throw new Error("unable to watch");return r}catch(o){return r&&r.dispose(),cy.error("Error on watchman create",o),null}}}});var PW,Ic,jc,wje,Yg,Wg,_W,RW=_(()=>{"use strict";PW=C(Vn()),Ic=C(require("path")),jc=C(H());we();z();Qo();wk();wje=q()("filesystem-watcher"),Yg=class{constructor(e,t){this.workspaceFolder=e;this.watchmanPath=t;this.clientsMap=new Map;this.disposables=[];this.creating=new Set;this._onDidCreateClient=new jc.Emitter;this.onDidCreateClient=this._onDidCreateClient.event}attach(e){this.channel=e;let t=i=>{let r=O.parse(i.uri).fsPath;this.creating.has(r)||(this.creating.add(r),this.createClient(r).finally(()=>{this.creating.delete(r)}))};this.workspaceFolder.workspaceFolders.forEach(i=>{t(i)}),this.workspaceFolder.onDidChangeWorkspaceFolders(i=>{i.added.forEach(r=>{t(r)}),i.removed.forEach(r=>{let o=O.parse(r.uri).fsPath,s=this.clientsMap.get(o);s&&(this.clientsMap.delete(o),s.dispose())})},null,this.disposables)}waitClient(e){return this.clientsMap.has(e)?Promise.resolve():new Promise(t=>{let i=this.onDidCreateClient(r=>{r==e&&(i.dispose(),t())})})}async createClient(e){if(!(this.watchmanPath==null||this.clientsMap.has(e)))try{let t=await la.createClient(this.watchmanPath,e,this.channel);if(!t)return;this.clientsMap.set(e,t);for(let i of Yg.watchers)i.listen(t);this._onDidCreateClient.fire(e)}catch(t){this.channel&&this.channel.appendLine("Error on create watchman client:"+t)}}createFileSystemWatcher(e,t,i,r){let o=new _W(e,t,i,r);for(let s of this.clientsMap.values())o.listen(s);return Yg.watchers.add(o),o}dispose(){this._onDidCreateClient.dispose();for(let e of this.clientsMap.values())e&&e.dispose();this.clientsMap.clear(),Yg.watchers.clear(),Z(this.disposables)}},Wg=Yg;Wg.watchers=new Set;_W=class{constructor(e,t,i,r){this.globPattern=e;this.ignoreCreateEvents=t;this.ignoreChangeEvents=i;this.ignoreDeleteEvents=r;this._onDidCreate=new jc.Emitter;this._onDidChange=new jc.Emitter;this._onDidDelete=new jc.Emitter;this._onDidRename=new jc.Emitter;this.disposables=[];this._disposed=!1;this.onDidCreate=this._onDidCreate.event;this.onDidChange=this._onDidChange.event;this.onDidDelete=this._onDidDelete.event;this.onDidRename=this._onDidRename.event}listen(e){let{globPattern:t,ignoreCreateEvents:i,ignoreChangeEvents:r,ignoreDeleteEvents:o}=this,s=a=>{let{root:l,files:u}=a;u=u.filter(c=>c.type=="f"&&(0,PW.default)(c.name,t,{dot:!0}));for(let c of u){let h=O.file(Ic.default.join(l,c.name));c.exists?c.new===!0?i||this._onDidCreate.fire(h):r||this._onDidChange.fire(h):o||this._onDidDelete.fire(h)}if(u.length==2&&!u[0].exists&&u[1].exists){let c=u[0],h=u[1];c.size==h.size&&this._onDidRename.fire({oldUri:O.file(Ic.default.join(l,c.name)),newUri:O.file(Ic.default.join(l,h.name))})}if(u.length>=2){let[c,h]=oy(u,d=>d.exists===!1);if(c.length==h.length)for(let d of c){let g=h.find(f=>f.size==d.size&&f.mtime_ms==d.mtime_ms);g&&this._onDidRename.fire({oldUri:O.file(Ic.default.join(l,d.name)),newUri:O.file(Ic.default.join(l,g.name))})}}};e.subscribe(t,s).then(a=>{if(this.subscribe=a.subscribe,this._disposed)return a.dispose();this.disposables.push(a)}).logError()}dispose(){this._disposed=!0,Wg.watchers.delete(this),this._onDidRename.dispose(),this._onDidCreate.dispose(),this._onDidChange.dispose(),Z(this.disposables)}}});var Zg=m((xje,LW)=>{var gye="2.0.0",fye=Number.MAX_SAFE_INTEGER||9007199254740991,pye=16;LW.exports={SEMVER_SPEC_VERSION:gye,MAX_LENGTH:256,MAX_SAFE_INTEGER:fye,MAX_SAFE_COMPONENT_LENGTH:pye}});var Jg=m((Cje,FW)=>{var mye=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...n)=>console.error("SEMVER",...n):()=>{};FW.exports=mye});var Tl=m((ua,IW)=>{var{MAX_SAFE_COMPONENT_LENGTH:Dk}=Zg(),bye=Jg();ua=IW.exports={};var yye=ua.re=[],te=ua.src=[],ie=ua.t={},vye=0,xe=(n,e,t)=>{let i=vye++;bye(n,i,e),ie[n]=i,te[i]=e,yye[i]=new RegExp(e,t?"g":void 0)};xe("NUMERICIDENTIFIER","0|[1-9]\\d*");xe("NUMERICIDENTIFIERLOOSE","[0-9]+");xe("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");xe("MAINVERSION",`(${te[ie.NUMERICIDENTIFIER]})\\.(${te[ie.NUMERICIDENTIFIER]})\\.(${te[ie.NUMERICIDENTIFIER]})`);xe("MAINVERSIONLOOSE",`(${te[ie.NUMERICIDENTIFIERLOOSE]})\\.(${te[ie.NUMERICIDENTIFIERLOOSE]})\\.(${te[ie.NUMERICIDENTIFIERLOOSE]})`);xe("PRERELEASEIDENTIFIER",`(?:${te[ie.NUMERICIDENTIFIER]}|${te[ie.NONNUMERICIDENTIFIER]})`);xe("PRERELEASEIDENTIFIERLOOSE",`(?:${te[ie.NUMERICIDENTIFIERLOOSE]}|${te[ie.NONNUMERICIDENTIFIER]})`);xe("PRERELEASE",`(?:-(${te[ie.PRERELEASEIDENTIFIER]}(?:\\.${te[ie.PRERELEASEIDENTIFIER]})*))`);xe("PRERELEASELOOSE",`(?:-?(${te[ie.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${te[ie.PRERELEASEIDENTIFIERLOOSE]})*))`);xe("BUILDIDENTIFIER","[0-9A-Za-z-]+");xe("BUILD",`(?:\\+(${te[ie.BUILDIDENTIFIER]}(?:\\.${te[ie.BUILDIDENTIFIER]})*))`);xe("FULLPLAIN",`v?${te[ie.MAINVERSION]}${te[ie.PRERELEASE]}?${te[ie.BUILD]}?`);xe("FULL",`^${te[ie.FULLPLAIN]}$`);xe("LOOSEPLAIN",`[v=\\s]*${te[ie.MAINVERSIONLOOSE]}${te[ie.PRERELEASELOOSE]}?${te[ie.BUILD]}?`);xe("LOOSE",`^${te[ie.LOOSEPLAIN]}$`);xe("GTLT","((?:<|>)?=?)");xe("XRANGEIDENTIFIERLOOSE",`${te[ie.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);xe("XRANGEIDENTIFIER",`${te[ie.NUMERICIDENTIFIER]}|x|X|\\*`);xe("XRANGEPLAIN",`[v=\\s]*(${te[ie.XRANGEIDENTIFIER]})(?:\\.(${te[ie.XRANGEIDENTIFIER]})(?:\\.(${te[ie.XRANGEIDENTIFIER]})(?:${te[ie.PRERELEASE]})?${te[ie.BUILD]}?)?)?`);xe("XRANGEPLAINLOOSE",`[v=\\s]*(${te[ie.XRANGEIDENTIFIERLOOSE]})(?:\\.(${te[ie.XRANGEIDENTIFIERLOOSE]})(?:\\.(${te[ie.XRANGEIDENTIFIERLOOSE]})(?:${te[ie.PRERELEASELOOSE]})?${te[ie.BUILD]}?)?)?`);xe("XRANGE",`^${te[ie.GTLT]}\\s*${te[ie.XRANGEPLAIN]}$`);xe("XRANGELOOSE",`^${te[ie.GTLT]}\\s*${te[ie.XRANGEPLAINLOOSE]}$`);xe("COERCE",`(^|[^\\d])(\\d{1,${Dk}})(?:\\.(\\d{1,${Dk}}))?(?:\\.(\\d{1,${Dk}}))?(?:$|[^\\d])`);xe("COERCERTL",te[ie.COERCE],!0);xe("LONETILDE","(?:~>?)");xe("TILDETRIM",`(\\s*)${te[ie.LONETILDE]}\\s+`,!0);ua.tildeTrimReplace="$1~";xe("TILDE",`^${te[ie.LONETILDE]}${te[ie.XRANGEPLAIN]}$`);xe("TILDELOOSE",`^${te[ie.LONETILDE]}${te[ie.XRANGEPLAINLOOSE]}$`);xe("LONECARET","(?:\\^)");xe("CARETTRIM",`(\\s*)${te[ie.LONECARET]}\\s+`,!0);ua.caretTrimReplace="$1^";xe("CARET",`^${te[ie.LONECARET]}${te[ie.XRANGEPLAIN]}$`);xe("CARETLOOSE",`^${te[ie.LONECARET]}${te[ie.XRANGEPLAINLOOSE]}$`);xe("COMPARATORLOOSE",`^${te[ie.GTLT]}\\s*(${te[ie.LOOSEPLAIN]})$|^$`);xe("COMPARATOR",`^${te[ie.GTLT]}\\s*(${te[ie.FULLPLAIN]})$|^$`);xe("COMPARATORTRIM",`(\\s*)${te[ie.GTLT]}\\s*(${te[ie.LOOSEPLAIN]}|${te[ie.XRANGEPLAIN]})`,!0);ua.comparatorTrimReplace="$1$2$3";xe("HYPHENRANGE",`^\\s*(${te[ie.XRANGEPLAIN]})\\s+-\\s+(${te[ie.XRANGEPLAIN]})\\s*$`);xe("HYPHENRANGELOOSE",`^\\s*(${te[ie.XRANGEPLAINLOOSE]})\\s+-\\s+(${te[ie.XRANGEPLAINLOOSE]})\\s*$`);xe("STAR","(<|>)?=?\\s*\\*");xe("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");xe("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var $g=m((Sje,jW)=>{var wye=["includePrerelease","loose","rtl"],Dye=n=>n?typeof n!="object"?{loose:!0}:wye.filter(e=>n[e]).reduce((e,t)=>(e[t]=!0,e),{}):{};jW.exports=Dye});var dy=m((Tje,MW)=>{var AW=/^[0-9]+$/,OW=(n,e)=>{let t=AW.test(n),i=AW.test(e);return t&&i&&(n=+n,e=+e),n===e?0:t&&!i?-1:i&&!t?1:nOW(e,n);MW.exports={compareIdentifiers:OW,rcompareIdentifiers:xye}});var Li=m((kje,qW)=>{var gy=Jg(),{MAX_LENGTH:NW,MAX_SAFE_INTEGER:fy}=Zg(),{re:BW,t:HW}=Tl(),Cye=$g(),{compareIdentifiers:Ac}=dy(),nr=class{constructor(e,t){if(t=Cye(t),e instanceof nr){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid Version: ${e}`);if(e.length>NW)throw new TypeError(`version is longer than ${NW} characters`);gy("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let i=e.trim().match(t.loose?BW[HW.LOOSE]:BW[HW.FULL]);if(!i)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>fy||this.major<0)throw new TypeError("Invalid major version");if(this.minor>fy||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>fy||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map(r=>{if(/^[0-9]+$/.test(r)){let o=+r;if(o>=0&&o=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);i===-1&&this.prerelease.push(0)}t&&(Ac(this.prerelease[0],t)===0?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}};qW.exports=nr});var kl=m((Eje,JW)=>{var{MAX_LENGTH:Sye}=Zg(),{re:YW,t:WW}=Tl(),ZW=Li(),Tye=$g(),kye=(n,e)=>{if(e=Tye(e),n instanceof ZW)return n;if(typeof n!="string"||n.length>Sye||!(e.loose?YW[WW.LOOSE]:YW[WW.FULL]).test(n))return null;try{return new ZW(n,e)}catch{return null}};JW.exports=kye});var XW=m((Pje,$W)=>{var Eye=kl(),Pye=(n,e)=>{let t=Eye(n,e);return t?t.version:null};$W.exports=Pye});var GW=m((_je,UW)=>{var _ye=kl(),Rye=(n,e)=>{let t=_ye(n.trim().replace(/^[=v]+/,""),e);return t?t.version:null};UW.exports=Rye});var zW=m((Rje,KW)=>{var QW=Li(),Lye=(n,e,t,i)=>{typeof t=="string"&&(i=t,t=void 0);try{return new QW(n instanceof QW?n.version:n,t).inc(e,i).version}catch{return null}};KW.exports=Lye});var rr=m((Lje,e3)=>{var VW=Li(),Fye=(n,e,t)=>new VW(n,t).compare(new VW(e,t));e3.exports=Fye});var py=m((Fje,t3)=>{var Iye=rr(),jye=(n,e,t)=>Iye(n,e,t)===0;t3.exports=jye});var r3=m((Ije,n3)=>{var i3=kl(),Aye=py(),Oye=(n,e)=>{if(Aye(n,e))return null;{let t=i3(n),i=i3(e),r=t.prerelease.length||i.prerelease.length,o=r?"pre":"",s=r?"prerelease":"";for(let a in t)if((a==="major"||a==="minor"||a==="patch")&&t[a]!==i[a])return o+a;return s}};n3.exports=Oye});var s3=m((jje,o3)=>{var Mye=Li(),Nye=(n,e)=>new Mye(n,e).major;o3.exports=Nye});var l3=m((Aje,a3)=>{var Bye=Li(),Hye=(n,e)=>new Bye(n,e).minor;a3.exports=Hye});var c3=m((Oje,u3)=>{var qye=Li(),Yye=(n,e)=>new qye(n,e).patch;u3.exports=Yye});var d3=m((Mje,h3)=>{var Wye=kl(),Zye=(n,e)=>{let t=Wye(n,e);return t&&t.prerelease.length?t.prerelease:null};h3.exports=Zye});var f3=m((Nje,g3)=>{var Jye=rr(),$ye=(n,e,t)=>Jye(e,n,t);g3.exports=$ye});var m3=m((Bje,p3)=>{var Xye=rr(),Uye=(n,e)=>Xye(n,e,!0);p3.exports=Uye});var my=m((Hje,y3)=>{var b3=Li(),Gye=(n,e,t)=>{let i=new b3(n,t),r=new b3(e,t);return i.compare(r)||i.compareBuild(r)};y3.exports=Gye});var w3=m((qje,v3)=>{var Qye=my(),Kye=(n,e)=>n.sort((t,i)=>Qye(t,i,e));v3.exports=Kye});var x3=m((Yje,D3)=>{var zye=my(),Vye=(n,e)=>n.sort((t,i)=>zye(i,t,e));D3.exports=Vye});var Xg=m((Wje,C3)=>{var eve=rr(),tve=(n,e,t)=>eve(n,e,t)>0;C3.exports=tve});var by=m((Zje,S3)=>{var ive=rr(),nve=(n,e,t)=>ive(n,e,t)<0;S3.exports=nve});var xk=m((Jje,T3)=>{var rve=rr(),ove=(n,e,t)=>rve(n,e,t)!==0;T3.exports=ove});var yy=m(($je,k3)=>{var sve=rr(),ave=(n,e,t)=>sve(n,e,t)>=0;k3.exports=ave});var vy=m((Xje,E3)=>{var lve=rr(),uve=(n,e,t)=>lve(n,e,t)<=0;E3.exports=uve});var Ck=m((Uje,P3)=>{var cve=py(),hve=xk(),dve=Xg(),gve=yy(),fve=by(),pve=vy(),mve=(n,e,t,i)=>{switch(e){case"===":return typeof n=="object"&&(n=n.version),typeof t=="object"&&(t=t.version),n===t;case"!==":return typeof n=="object"&&(n=n.version),typeof t=="object"&&(t=t.version),n!==t;case"":case"=":case"==":return cve(n,t,i);case"!=":return hve(n,t,i);case">":return dve(n,t,i);case">=":return gve(n,t,i);case"<":return fve(n,t,i);case"<=":return pve(n,t,i);default:throw new TypeError(`Invalid operator: ${e}`)}};P3.exports=mve});var R3=m((Gje,_3)=>{var bve=Li(),yve=kl(),{re:wy,t:Dy}=Tl(),vve=(n,e)=>{if(n instanceof bve)return n;if(typeof n=="number"&&(n=String(n)),typeof n!="string")return null;e=e||{};let t=null;if(!e.rtl)t=n.match(wy[Dy.COERCE]);else{let i;for(;(i=wy[Dy.COERCERTL].exec(n))&&(!t||t.index+t[0].length!==n.length);)(!t||i.index+i[0].length!==t.index+t[0].length)&&(t=i),wy[Dy.COERCERTL].lastIndex=i.index+i[1].length+i[2].length;wy[Dy.COERCERTL].lastIndex=-1}return t===null?null:yve(`${t[2]}.${t[3]||"0"}.${t[4]||"0"}`,e)};_3.exports=vve});var F3=m((Qje,L3)=>{"use strict";L3.exports=function(n){n.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var Ug=m((Kje,I3)=>{"use strict";I3.exports=Be;Be.Node=El;Be.create=Be;function Be(n){var e=this;if(e instanceof Be||(e=new Be),e.tail=null,e.head=null,e.length=0,n&&typeof n.forEach=="function")n.forEach(function(r){e.push(r)});else if(arguments.length>0)for(var t=0,i=arguments.length;t1)t=e;else if(this.head)i=this.head.next,t=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var r=0;i!==null;r++)t=n(t,i.value,r),i=i.next;return t};Be.prototype.reduceReverse=function(n,e){var t,i=this.tail;if(arguments.length>1)t=e;else if(this.tail)i=this.tail.prev,t=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var r=this.length-1;i!==null;r--)t=n(t,i.value,r),i=i.prev;return t};Be.prototype.toArray=function(){for(var n=new Array(this.length),e=0,t=this.head;t!==null;e++)n[e]=t.value,t=t.next;return n};Be.prototype.toArrayReverse=function(){for(var n=new Array(this.length),e=0,t=this.tail;t!==null;e++)n[e]=t.value,t=t.prev;return n};Be.prototype.slice=function(n,e){e=e||this.length,e<0&&(e+=this.length),n=n||0,n<0&&(n+=this.length);var t=new Be;if(ethis.length&&(e=this.length);for(var i=0,r=this.head;r!==null&&ithis.length&&(e=this.length);for(var i=this.length,r=this.tail;r!==null&&i>e;i--)r=r.prev;for(;r!==null&&i>n;i--,r=r.prev)t.push(r.value);return t};Be.prototype.splice=function(n,e,...t){n>this.length&&(n=this.length-1),n<0&&(n=this.length+n);for(var i=0,r=this.head;r!==null&&i{"use strict";var Cve=Ug(),Pl=Symbol("max"),Vo=Symbol("length"),Oc=Symbol("lengthCalculator"),Qg=Symbol("allowStale"),_l=Symbol("maxAge"),zo=Symbol("dispose"),j3=Symbol("noDisposeOnSet"),gi=Symbol("lruList"),Mr=Symbol("cache"),O3=Symbol("updateAgeOnGet"),Sk=()=>1,M3=class{constructor(e){if(typeof e=="number"&&(e={max:e}),e||(e={}),e.max&&(typeof e.max!="number"||e.max<0))throw new TypeError("max must be a non-negative number");let t=this[Pl]=e.max||1/0,i=e.length||Sk;if(this[Oc]=typeof i!="function"?Sk:i,this[Qg]=e.stale||!1,e.maxAge&&typeof e.maxAge!="number")throw new TypeError("maxAge must be a number");this[_l]=e.maxAge||0,this[zo]=e.dispose,this[j3]=e.noDisposeOnSet||!1,this[O3]=e.updateAgeOnGet||!1,this.reset()}set max(e){if(typeof e!="number"||e<0)throw new TypeError("max must be a non-negative number");this[Pl]=e||1/0,Gg(this)}get max(){return this[Pl]}set allowStale(e){this[Qg]=!!e}get allowStale(){return this[Qg]}set maxAge(e){if(typeof e!="number")throw new TypeError("maxAge must be a non-negative number");this[_l]=e,Gg(this)}get maxAge(){return this[_l]}set lengthCalculator(e){typeof e!="function"&&(e=Sk),e!==this[Oc]&&(this[Oc]=e,this[Vo]=0,this[gi].forEach(t=>{t.length=this[Oc](t.value,t.key),this[Vo]+=t.length})),Gg(this)}get lengthCalculator(){return this[Oc]}get length(){return this[Vo]}get itemCount(){return this[gi].length}rforEach(e,t){t=t||this;for(let i=this[gi].tail;i!==null;){let r=i.prev;A3(this,e,i,t),i=r}}forEach(e,t){t=t||this;for(let i=this[gi].head;i!==null;){let r=i.next;A3(this,e,i,t),i=r}}keys(){return this[gi].toArray().map(e=>e.key)}values(){return this[gi].toArray().map(e=>e.value)}reset(){this[zo]&&this[gi]&&this[gi].length&&this[gi].forEach(e=>this[zo](e.key,e.value)),this[Mr]=new Map,this[gi]=new Cve,this[Vo]=0}dump(){return this[gi].map(e=>xy(this,e)?!1:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[gi]}set(e,t,i){if(i=i||this[_l],i&&typeof i!="number")throw new TypeError("maxAge must be a number");let r=i?Date.now():0,o=this[Oc](t,e);if(this[Mr].has(e)){if(o>this[Pl])return Mc(this,this[Mr].get(e)),!1;let l=this[Mr].get(e).value;return this[zo]&&(this[j3]||this[zo](e,l.value)),l.now=r,l.maxAge=i,l.value=t,this[Vo]+=o-l.length,l.length=o,this.get(e),Gg(this),!0}let s=new N3(e,t,o,r,i);return s.length>this[Pl]?(this[zo]&&this[zo](e,t),!1):(this[Vo]+=s.length,this[gi].unshift(s),this[Mr].set(e,this[gi].head),Gg(this),!0)}has(e){if(!this[Mr].has(e))return!1;let t=this[Mr].get(e).value;return!xy(this,t)}get(e){return Tk(this,e,!0)}peek(e){return Tk(this,e,!1)}pop(){let e=this[gi].tail;return e?(Mc(this,e),e.value):null}del(e){Mc(this,this[Mr].get(e))}load(e){this.reset();let t=Date.now();for(let i=e.length-1;i>=0;i--){let r=e[i],o=r.e||0;if(o===0)this.set(r.k,r.v);else{let s=o-t;s>0&&this.set(r.k,r.v,s)}}}prune(){this[Mr].forEach((e,t)=>Tk(this,t,!1))}},Tk=(n,e,t)=>{let i=n[Mr].get(e);if(i){let r=i.value;if(xy(n,r)){if(Mc(n,i),!n[Qg])return}else t&&(n[O3]&&(i.value.now=Date.now()),n[gi].unshiftNode(i));return r.value}},xy=(n,e)=>{if(!e||!e.maxAge&&!n[_l])return!1;let t=Date.now()-e.now;return e.maxAge?t>e.maxAge:n[_l]&&t>n[_l]},Gg=n=>{if(n[Vo]>n[Pl])for(let e=n[gi].tail;n[Vo]>n[Pl]&&e!==null;){let t=e.prev;Mc(n,e),e=t}},Mc=(n,e)=>{if(e){let t=e.value;n[zo]&&n[zo](t.key,t.value),n[Vo]-=t.length,n[Mr].delete(t.key),n[gi].removeNode(e)}},N3=class{constructor(e,t,i,r,o){this.key=e,this.value=t,this.length=i,this.now=r,this.maxAge=o||0}},A3=(n,e,t,i)=>{let r=t.value;xy(n,r)&&(Mc(n,t),n[Qg]||(r=void 0)),r&&e.call(i,r.value,r.key,n)};B3.exports=M3});var or=m((Vje,Z3)=>{var Nc=class{constructor(e,t){if(t=Tve(t),e instanceof Nc)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new Nc(e.raw,t);if(e instanceof kk)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split("||").map(i=>this.parseRange(i.trim())).filter(i=>i.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${e}`);if(this.set.length>1){let i=this.set[0];if(this.set=this.set.filter(r=>!Y3(r[0])),this.set.length===0)this.set=[i];else if(this.set.length>1){for(let r of this.set)if(r.length===1&&Rve(r[0])){this.set=[r];break}}}this.format()}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(e){e=e.trim();let i=`parseRange:${Object.keys(this.options).join(",")}:${e}`,r=q3.get(i);if(r)return r;let o=this.options.loose,s=o?mn[Qi.HYPHENRANGELOOSE]:mn[Qi.HYPHENRANGE];e=e.replace(s,Hve(this.options.includePrerelease)),Rt("hyphen replace",e),e=e.replace(mn[Qi.COMPARATORTRIM],Eve),Rt("comparator trim",e),e=e.replace(mn[Qi.TILDETRIM],Pve),e=e.replace(mn[Qi.CARETTRIM],_ve),e=e.split(/\s+/).join(" ");let a=e.split(" ").map(h=>Lve(h,this.options)).join(" ").split(/\s+/).map(h=>Bve(h,this.options));o&&(a=a.filter(h=>(Rt("loose invalid filter",h,this.options),!!h.match(mn[Qi.COMPARATORLOOSE])))),Rt("range list",a);let l=new Map,u=a.map(h=>new kk(h,this.options));for(let h of u){if(Y3(h))return[h];l.set(h.value,h)}l.size>1&&l.has("")&&l.delete("");let c=[...l.values()];return q3.set(i,c),c}intersects(e,t){if(!(e instanceof Nc))throw new TypeError("a Range is required");return this.set.some(i=>W3(i,t)&&e.set.some(r=>W3(r,t)&&i.every(o=>r.every(s=>o.intersects(s,t)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new kve(e,this.options)}catch{return!1}for(let t=0;tn.value==="<0.0.0-0",Rve=n=>n.value==="",W3=(n,e)=>{let t=!0,i=n.slice(),r=i.pop();for(;t&&i.length;)t=i.every(o=>r.intersects(o,e)),r=i.pop();return t},Lve=(n,e)=>(Rt("comp",n,e),n=jve(n,e),Rt("caret",n),n=Fve(n,e),Rt("tildes",n),n=Ove(n,e),Rt("xrange",n),n=Nve(n,e),Rt("stars",n),n),Ki=n=>!n||n.toLowerCase()==="x"||n==="*",Fve=(n,e)=>n.trim().split(/\s+/).map(t=>Ive(t,e)).join(" "),Ive=(n,e)=>{let t=e.loose?mn[Qi.TILDELOOSE]:mn[Qi.TILDE];return n.replace(t,(i,r,o,s,a)=>{Rt("tilde",n,i,r,o,s,a);let l;return Ki(r)?l="":Ki(o)?l=`>=${r}.0.0 <${+r+1}.0.0-0`:Ki(s)?l=`>=${r}.${o}.0 <${r}.${+o+1}.0-0`:a?(Rt("replaceTilde pr",a),l=`>=${r}.${o}.${s}-${a} <${r}.${+o+1}.0-0`):l=`>=${r}.${o}.${s} <${r}.${+o+1}.0-0`,Rt("tilde return",l),l})},jve=(n,e)=>n.trim().split(/\s+/).map(t=>Ave(t,e)).join(" "),Ave=(n,e)=>{Rt("caret",n,e);let t=e.loose?mn[Qi.CARETLOOSE]:mn[Qi.CARET],i=e.includePrerelease?"-0":"";return n.replace(t,(r,o,s,a,l)=>{Rt("caret",n,r,o,s,a,l);let u;return Ki(o)?u="":Ki(s)?u=`>=${o}.0.0${i} <${+o+1}.0.0-0`:Ki(a)?o==="0"?u=`>=${o}.${s}.0${i} <${o}.${+s+1}.0-0`:u=`>=${o}.${s}.0${i} <${+o+1}.0.0-0`:l?(Rt("replaceCaret pr",l),o==="0"?s==="0"?u=`>=${o}.${s}.${a}-${l} <${o}.${s}.${+a+1}-0`:u=`>=${o}.${s}.${a}-${l} <${o}.${+s+1}.0-0`:u=`>=${o}.${s}.${a}-${l} <${+o+1}.0.0-0`):(Rt("no pr"),o==="0"?s==="0"?u=`>=${o}.${s}.${a}${i} <${o}.${s}.${+a+1}-0`:u=`>=${o}.${s}.${a}${i} <${o}.${+s+1}.0-0`:u=`>=${o}.${s}.${a} <${+o+1}.0.0-0`),Rt("caret return",u),u})},Ove=(n,e)=>(Rt("replaceXRanges",n,e),n.split(/\s+/).map(t=>Mve(t,e)).join(" ")),Mve=(n,e)=>{n=n.trim();let t=e.loose?mn[Qi.XRANGELOOSE]:mn[Qi.XRANGE];return n.replace(t,(i,r,o,s,a,l)=>{Rt("xRange",n,i,r,o,s,a,l);let u=Ki(o),c=u||Ki(s),h=c||Ki(a),d=h;return r==="="&&d&&(r=""),l=e.includePrerelease?"-0":"",u?r===">"||r==="<"?i="<0.0.0-0":i="*":r&&d?(c&&(s=0),a=0,r===">"?(r=">=",c?(o=+o+1,s=0,a=0):(s=+s+1,a=0)):r==="<="&&(r="<",c?o=+o+1:s=+s+1),r==="<"&&(l="-0"),i=`${r+o}.${s}.${a}${l}`):c?i=`>=${o}.0.0${l} <${+o+1}.0.0-0`:h&&(i=`>=${o}.${s}.0${l} <${o}.${+s+1}.0-0`),Rt("xRange return",i),i})},Nve=(n,e)=>(Rt("replaceStars",n,e),n.trim().replace(mn[Qi.STAR],"")),Bve=(n,e)=>(Rt("replaceGTE0",n,e),n.trim().replace(mn[e.includePrerelease?Qi.GTE0PRE:Qi.GTE0],"")),Hve=n=>(e,t,i,r,o,s,a,l,u,c,h,d,g)=>(Ki(i)?t="":Ki(r)?t=`>=${i}.0.0${n?"-0":""}`:Ki(o)?t=`>=${i}.${r}.0${n?"-0":""}`:s?t=`>=${t}`:t=`>=${t}${n?"-0":""}`,Ki(u)?l="":Ki(c)?l=`<${+u+1}.0.0-0`:Ki(h)?l=`<${u}.${+c+1}.0-0`:d?l=`<=${u}.${c}.${h}-${d}`:n?l=`<${u}.${c}.${+h+1}-0`:l=`<=${l}`,`${t} ${l}`.trim()),qve=(n,e,t)=>{for(let i=0;i0){let r=n[i].semver;if(r.major===e.major&&r.minor===e.minor&&r.patch===e.patch)return!0}return!1}return!0}});var Kg=m((e1e,G3)=>{var zg=Symbol("SemVer ANY"),Vg=class{static get ANY(){return zg}constructor(e,t){if(t=Yve(t),e instanceof Vg){if(e.loose===!!t.loose)return e;e=e.value}Pk("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===zg?this.value="":this.value=this.operator+this.semver.version,Pk("comp",this)}parse(e){let t=this.options.loose?J3[$3.COMPARATORLOOSE]:J3[$3.COMPARATOR],i=e.match(t);if(!i)throw new TypeError(`Invalid comparator: ${e}`);this.operator=i[1]!==void 0?i[1]:"",this.operator==="="&&(this.operator=""),i[2]?this.semver=new X3(i[2],this.options.loose):this.semver=zg}toString(){return this.value}test(e){if(Pk("Comparator.test",e,this.options.loose),this.semver===zg||e===zg)return!0;if(typeof e=="string")try{e=new X3(e,this.options)}catch{return!1}return Ek(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof Vg))throw new TypeError("a Comparator is required");if((!t||typeof t!="object")&&(t={loose:!!t,includePrerelease:!1}),this.operator==="")return this.value===""?!0:new U3(e.value,t).test(this.value);if(e.operator==="")return e.value===""?!0:new U3(this.value,t).test(e.semver);let i=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">"),r=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<"),o=this.semver.version===e.semver.version,s=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<="),a=Ek(this.semver,"<",e.semver,t)&&(this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"),l=Ek(this.semver,">",e.semver,t)&&(this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">");return i||r||o&&s||a||l}};G3.exports=Vg;var Yve=$g(),{re:J3,t:$3}=Tl(),Ek=Ck(),Pk=Jg(),X3=Li(),U3=or()});var ef=m((t1e,Q3)=>{var Wve=or(),Zve=(n,e,t)=>{try{e=new Wve(e,t)}catch{return!1}return e.test(n)};Q3.exports=Zve});var z3=m((i1e,K3)=>{var Jve=or(),$ve=(n,e)=>new Jve(n,e).set.map(t=>t.map(i=>i.value).join(" ").trim().split(" "));K3.exports=$ve});var eZ=m((n1e,V3)=>{var Xve=Li(),Uve=or(),Gve=(n,e,t)=>{let i=null,r=null,o=null;try{o=new Uve(e,t)}catch{return null}return n.forEach(s=>{o.test(s)&&(!i||r.compare(s)===-1)&&(i=s,r=new Xve(i,t))}),i};V3.exports=Gve});var iZ=m((r1e,tZ)=>{var Qve=Li(),Kve=or(),zve=(n,e,t)=>{let i=null,r=null,o=null;try{o=new Kve(e,t)}catch{return null}return n.forEach(s=>{o.test(s)&&(!i||r.compare(s)===1)&&(i=s,r=new Qve(i,t))}),i};tZ.exports=zve});var oZ=m((o1e,rZ)=>{var _k=Li(),Vve=or(),nZ=Xg(),ewe=(n,e)=>{n=new Vve(n,e);let t=new _k("0.0.0");if(n.test(t)||(t=new _k("0.0.0-0"),n.test(t)))return t;t=null;for(let i=0;i{let a=new _k(s.semver.version);switch(s.operator){case">":a.prerelease.length===0?a.patch++:a.prerelease.push(0),a.raw=a.format();case"":case">=":(!o||nZ(a,o))&&(o=a);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${s.operator}`)}}),o&&(!t||nZ(t,o))&&(t=o)}return t&&n.test(t)?t:null};rZ.exports=ewe});var aZ=m((s1e,sZ)=>{var twe=or(),iwe=(n,e)=>{try{return new twe(n,e).range||"*"}catch{return null}};sZ.exports=iwe});var Cy=m((a1e,hZ)=>{var nwe=Li(),cZ=Kg(),{ANY:rwe}=cZ,owe=or(),swe=ef(),lZ=Xg(),uZ=by(),awe=vy(),lwe=yy(),uwe=(n,e,t,i)=>{n=new nwe(n,i),e=new owe(e,i);let r,o,s,a,l;switch(t){case">":r=lZ,o=awe,s=uZ,a=">",l=">=";break;case"<":r=uZ,o=lwe,s=lZ,a="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(swe(n,e,i))return!1;for(let u=0;u{g.semver===rwe&&(g=new cZ(">=0.0.0")),h=h||g,d=d||g,r(g.semver,h.semver,i)?h=g:s(g.semver,d.semver,i)&&(d=g)}),h.operator===a||h.operator===l||(!d.operator||d.operator===a)&&o(n,d.semver))return!1;if(d.operator===l&&s(n,d.semver))return!1}return!0};hZ.exports=uwe});var gZ=m((l1e,dZ)=>{var cwe=Cy(),hwe=(n,e,t)=>cwe(n,e,">",t);dZ.exports=hwe});var pZ=m((u1e,fZ)=>{var dwe=Cy(),gwe=(n,e,t)=>dwe(n,e,"<",t);fZ.exports=gwe});var yZ=m((c1e,bZ)=>{var mZ=or(),fwe=(n,e,t)=>(n=new mZ(n,t),e=new mZ(e,t),n.intersects(e));bZ.exports=fwe});var wZ=m((h1e,vZ)=>{var pwe=ef(),mwe=rr();vZ.exports=(n,e,t)=>{let i=[],r=null,o=null,s=n.sort((c,h)=>mwe(c,h,t));for(let c of s)pwe(c,e,t)?(o=c,r||(r=c)):(o&&i.push([r,o]),o=null,r=null);r&&i.push([r,null]);let a=[];for(let[c,h]of i)c===h?a.push(c):!h&&c===s[0]?a.push("*"):h?c===s[0]?a.push(`<=${h}`):a.push(`${c} - ${h}`):a.push(`>=${c}`);let l=a.join(" || "),u=typeof e.raw=="string"?e.raw:String(e);return l.length{var DZ=or(),Sy=Kg(),{ANY:Rk}=Sy,tf=ef(),Lk=rr(),bwe=(n,e,t={})=>{if(n===e)return!0;n=new DZ(n,t),e=new DZ(e,t);let i=!1;e:for(let r of n.set){for(let o of e.set){let s=ywe(r,o,t);if(i=i||s!==null,s)continue e}if(i)return!1}return!0},ywe=(n,e,t)=>{if(n===e)return!0;if(n.length===1&&n[0].semver===Rk){if(e.length===1&&e[0].semver===Rk)return!0;t.includePrerelease?n=[new Sy(">=0.0.0-0")]:n=[new Sy(">=0.0.0")]}if(e.length===1&&e[0].semver===Rk){if(t.includePrerelease)return!0;e=[new Sy(">=0.0.0")]}let i=new Set,r,o;for(let g of n)g.operator===">"||g.operator===">="?r=xZ(r,g,t):g.operator==="<"||g.operator==="<="?o=CZ(o,g,t):i.add(g.semver);if(i.size>1)return null;let s;if(r&&o){if(s=Lk(r.semver,o.semver,t),s>0)return null;if(s===0&&(r.operator!==">="||o.operator!=="<="))return null}for(let g of i){if(r&&!tf(g,String(r),t)||o&&!tf(g,String(o),t))return null;for(let f of e)if(!tf(g,String(f),t))return!1;return!0}let a,l,u,c,h=o&&!t.includePrerelease&&o.semver.prerelease.length?o.semver:!1,d=r&&!t.includePrerelease&&r.semver.prerelease.length?r.semver:!1;h&&h.prerelease.length===1&&o.operator==="<"&&h.prerelease[0]===0&&(h=!1);for(let g of e){if(c=c||g.operator===">"||g.operator===">=",u=u||g.operator==="<"||g.operator==="<=",r){if(d&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===d.major&&g.semver.minor===d.minor&&g.semver.patch===d.patch&&(d=!1),g.operator===">"||g.operator===">="){if(a=xZ(r,g,t),a===g&&a!==r)return!1}else if(r.operator===">="&&!tf(r.semver,String(g),t))return!1}if(o){if(h&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===h.major&&g.semver.minor===h.minor&&g.semver.patch===h.patch&&(h=!1),g.operator==="<"||g.operator==="<="){if(l=CZ(o,g,t),l===g&&l!==o)return!1}else if(o.operator==="<="&&!tf(o.semver,String(g),t))return!1}if(!g.operator&&(o||r)&&s!==0)return!1}return!(r&&u&&!o&&s!==0||o&&c&&!r&&s!==0||d||h)},xZ=(n,e,t)=>{if(!n)return e;let i=Lk(n.semver,e.semver,t);return i>0?n:i<0||e.operator===">"&&n.operator===">="?e:n},CZ=(n,e,t)=>{if(!n)return e;let i=Lk(n.semver,e.semver,t);return i<0?n:i>0||e.operator==="<"&&n.operator==="<="?e:n};SZ.exports=bwe});var nf=m((g1e,kZ)=>{var Fk=Tl();kZ.exports={re:Fk.re,src:Fk.src,tokens:Fk.t,SEMVER_SPEC_VERSION:Zg().SEMVER_SPEC_VERSION,SemVer:Li(),compareIdentifiers:dy().compareIdentifiers,rcompareIdentifiers:dy().rcompareIdentifiers,parse:kl(),valid:XW(),clean:GW(),inc:zW(),diff:r3(),major:s3(),minor:l3(),patch:c3(),prerelease:d3(),compare:rr(),rcompare:f3(),compareLoose:m3(),compareBuild:my(),sort:w3(),rsort:x3(),gt:Xg(),lt:by(),eq:py(),neq:xk(),gte:yy(),lte:vy(),cmp:Ck(),coerce:R3(),Comparator:Kg(),Range:or(),satisfies:ef(),toComparators:z3(),maxSatisfying:eZ(),minSatisfying:iZ(),minVersion:oZ(),validRange:aZ(),outside:Cy(),gtr:gZ(),ltr:pZ(),intersects:yZ(),simplifyRange:wZ(),subset:TZ()}});var Bc,EZ,Ik,m1e,Ty,PZ=_(()=>{"use strict";Bc=C(require("path")),EZ=C(require("fs"));z();Je();Ik=C(dg()),m1e=q()("model-resolver"),Ty=class{get nodeFolder(){return sg("npm")?this._npmFolder?Promise.resolve(this._npmFolder):eo("npm --loglevel silent root -g",{},3e3).then(e=>(this._npmFolder=(0,Ik.default)(e).trim(),this._npmFolder)):Promise.resolve("")}get yarnFolder(){return sg("yarnpkg")?this._yarnFolder?Promise.resolve(this._yarnFolder):eo("yarnpkg global dir",{},3e3).then(e=>{let t=Bc.default.join((0,Ik.default)(e).trim(),"node_modules"),i=EZ.default.existsSync(t);return i&&(this._yarnFolder=t),i?t:""}):Promise.resolve("")}async resolveModule(e){let t=await this.nodeFolder,i=await this.yarnFolder;if(i){let r=await Ht(Bc.default.join(i,e,"package.json"));if(r&&r.isFile())return Bc.default.join(i,e)}if(t){let r=await Ht(Bc.default.join(t,e,"package.json"));if(r&&r.isFile())return Bc.default.join(t,e)}return null}}});function FZ(n,e){if(!e.startsWith("nvim-")&&!e.startsWith("patch-"))throw new Error("Feature param could only starts with nvim and patch");if(!n.isVim&&e.startsWith("patch-")||n.isVim&&e.startsWith("nvim-"))return!1;if(n.isVim){let[t,i,r,o]=n.version.match(/^(\d)(\d{2})(\d+)$/),s=`${i}.${parseInt(r,10)}.${parseInt(o,10)}`;return Ak.default.gte(s,e.slice(6))}return Ak.default.gte(n.version,e.slice(5))}function IZ(n=""){return jk.has(n)?jk.get(n):(ky=ky+1,jk.set(n,ky),ky)}function jZ(n){let t=n.getConfiguration("coc.preferences").get("watchmanPath","watchman");try{return LZ.default.sync(t)}catch{return null}}async function AZ(n,e,t){let i=await n.call("expand","%:p");i=rf.default.normalize(i);let r=i&&rf.default.isAbsolute(i);if(r&&!Ae(e,i,!0))return Dc(t,rf.default.dirname(i));let o=Dc(t,e);return o&&o!=RZ.default.homedir()?o:r?Dc(t,rf.default.dirname(i)):null}function OZ(n){return vwe.resolveModule(n)}function Ok(n,e,t){if(Array.isArray(n)){let i=0;for(let r of n){let o=Ok(r,e,t);if(o===10)return o;o>i&&(i=o)}return i}else{if(typeof n=="string")return n==="*"?5:n===t?10:0;if(n){let i=O.parse(e),{language:r,pattern:o,scheme:s}=n,a=0;if(s)if(s===i.scheme)a=5;else if(s==="*")a=3;else return 0;if(r)if(r===t)a=10;else if(r==="*")a=Math.max(a,5);else return 0;if(o){let l=Xi||sc,u=l?o.toLowerCase():o,c=l?i.fsPath.toLowerCase():i.fsPath;if(u===c||(0,_Z.default)(c,u,{dot:!0}))a=5;else return 0}return a}else return 0}}var _Z,RZ,rf,Ak,LZ,ky,vwe,jk,MZ=_(()=>{"use strict";_Z=C(Vn()),RZ=C(require("os")),rf=C(require("path")),Ak=C(nf());we();LZ=C(rg());PZ();Je();ac();ky=2e3,vwe=new Ty,jk=new Map});var Ey,wwe,Py,NZ=_(()=>{"use strict";Oe();Ey=C(H());z();wwe=q()("core-keymaps"),Py=class{constructor(e){this.documents=e;this.keymaps=new Map}attach(e){this.nvim=e}async doKeymap(e,t="",i){let r=this.keymaps.get(e);if(!r)return wwe.error(`keymap for ${e} not found`),i&&this.nvim.command(`silent! unmap ${i.startsWith("{")&&i.endsWith("}")?`<${i.slice(1,-1)}>`:i}`,!0),t;let[o,s]=r,a=await Promise.resolve(o());return s&&await this.nvim.command(`silent! call repeat#set("\\(coc-${e})", -1)`),a!=null?a:t}registerKeymap(e,t,i,r={}){if(!t)throw new Error(`Invalid key ${t} of registerKeymap`);if(this.keymaps.has(t))throw new Error(`${t} already exists.`);r=Object.assign({sync:!0,cancel:!0,silent:!0,repeat:!1},r);let{nvim:o}=this;this.keymaps.set(t,[i,!!r.repeat]);let s=r.sync?"request":"notify",a=r.silent?"":"";for(let l of e)if(l=="i")o.command(`inoremap ${a} (coc-${t}) coc#_insert_key('${s}', '${t}', ${r.cancel?1:0})`,!0);else{let u=R0(l);o.command(`${l}noremap ${a} (coc-${t}) :${u}call coc#rpc#${s}('doKeymap', ['${t}'])`,!0)}return Ey.Disposable.create(()=>{this.keymaps.delete(t);for(let l of e)o.command(`${l}unmap (coc-${t})`,!0)})}registerExprKeymap(e,t,i,r=!1){let o=`${e}${global.Buffer.from(t).toString("base64")}${r?"1":"0"}`,{nvim:s}=this;return this.keymaps.set(o,[i,!1]),e=="i"?s.command(`inoremap ${r?"":""} ${t} coc#_insert_key('request', '${o}')`,!0):s.command(`${e}noremap ${r?"":""} ${t} coc#rpc#request('doKeymap', ['${o}'])`,!0),Ey.Disposable.create(()=>{this.keymaps.delete(o),s.command(`${e}unmap ${r?"":""} ${t}`,!0)})}registerLocalKeymap(e,t,i,r=!1){let o=Go(),{nvim:s}=this,a=this.documents.bufnr;this.keymaps.set(o,[i,!1]);let l=r?"notify":"request",u=R0(e),c=t.startsWith("<")&&t.endsWith(">")?`{${t.slice(1,-1)}}`:t;if(this.nvim.hasFunction("nvim_buf_set_keymap")&&!global.hasOwnProperty("__TEST__"))s.call("nvim_buf_set_keymap",[0,e,t,`:${u}call coc#rpc#${l}('doKeymap', ['${o}', '', '${c}'])`,{silent:!0,nowait:!0}],!0);else{let h=`${e}noremap ${t} :${u}call coc#rpc#${l}('doKeymap', ['${o}', '', '${c}'])`;s.command(h,!0)}return Ey.Disposable.create(()=>{this.keymaps.delete(o),s.call("coc#compat#buf_del_keymap",[a,e,t],!0)})}}});var k1e,_y,BZ=_(()=>{"use strict";z();k1e=q()("core-locations"),_y=class{constructor(e,t,i){this.configurations=e;this.documents=t;this.contentProvider=i;this.disposables=[]}attach(e,t){this.nvim=e,this.env=t}async showLocations(e){let{documents:t,nvim:i,env:r,configurations:o}=this,s=await t.getQuickfixList(e);if(o.getConfiguration("coc.preferences").get("useQuickfixForLocations",!1)){let l=await i.getVar("coc_quickfix_open_command");typeof l!="string"&&(l=s.length<10?`copen ${s.length}`:"copen"),i.pauseNotification(),i.call("setqflist",[s],!0),i.command(l,!0),i.resumeNotification(!1,!0)}else await i.setVar("coc_jump_locations",s),r.locationlist?i.command("CocList --normal --auto-preview location",!0):i.call("coc#util#do_autocmd",["CocLocationsChange"],!0)}dispose(){Z(this.disposables)}}});var Hc,L1e,Ry,HZ=_(()=>{"use strict";le();Hc=C(H());z();L1e=q()("core-watchers"),Ry=class{constructor(){this.watchedOptions=new Set;this.disposables=[];this._onDidRuntimePathChange=new Hc.Emitter;this._onDidOptionChange=new Hc.Emitter;this.onDidRuntimePathChange=this._onDidRuntimePathChange.event;this.onDidOptionChange=this._onDidOptionChange.event}get options(){return Array.from(this.watchedOptions)}attach(e,t){this.nvim=e,this.env=t,this.watchOption("runtimepath",(i,r)=>{let o=i.split(","),a=r.split(",").filter(l=>!o.includes(l));a.length>0&&this._onDidRuntimePathChange.fire(a),this.env.runtimepath=r},this.disposables)}watchOption(e,t,i){let r=this.watchedOptions.has(e);r||(this.watchedOptions.add(e),this._onDidOptionChange.fire());let o=E.on("OptionSet",async(s,a,l)=>{s==e&&t&&await Promise.resolve(t(a,l))});i&&i.push(Hc.Disposable.create(()=>{o.dispose(),!r&&(this.watchedOptions.delete(e),this._onDidOptionChange.fire())}))}watchGlobal(e,t,i){let{nvim:r}=this;r.call("coc#_watch",e,!0);let o=E.on("GlobalChange",async(s,a,l)=>{s==e&&await Promise.resolve(t(a,l))});i&&i.push(Hc.Disposable.create(()=>{o.dispose(),r.call("coc#_unwatch",e,!0)}))}dispose(){Z(this.disposables),this._onDidOptionChange.dispose(),this._onDidRuntimePathChange.dispose()}}});var of,qZ,Ly,YZ=_(()=>{"use strict";of=C(H());le();ke();qZ=q()("core-editors"),Ly=class{constructor(e){this.documents=e;this.disposables=[];this.editors=new Map;this._onDidChangeActiveTextEditor=new of.Emitter;this._onDidChangeVisibleTextEditors=new of.Emitter;this.onDidChangeActiveTextEditor=this._onDidChangeActiveTextEditor.event;this.onDidChangeVisibleTextEditors=this._onDidChangeVisibleTextEditors.event}get activeTextEditor(){return this.editors.get(this.winid)}get visibleTextEditors(){return Array.from(this.editors.values())}onChange(e){let t=`${e.winid}-${e.document.bufnr}-${e.document.uri}`;t!=this.previousId&&(this.previousId=t,this._onDidChangeActiveTextEditor.fire(e))}async attach(e){this.nvim=e;let{documents:t}=this,i=t.getDocument(t.bufnr);i&&i.winid>0&&(this.winid=i.winid,await this.createTextEditor(this.winid)),E.on("WinEnter",r=>{this.winid=r;let o=this.editors.get(r);o&&this.onChange(o)},null,this.disposables),E.on("CursorHold",async()=>{let[r,o,s]=await e.eval("[win_getid(),&buftype,coc#window#is_float(win_getid())]"),a=!1;!s&&["","acwrite"].includes(o)&&!this.editors.has(r)&&await this.createTextEditor(r)&&(a=!0),a&&this._onDidChangeVisibleTextEditors.fire(this.visibleTextEditors)},null,this.disposables),E.on("WinClosed",r=>{this.editors.has(r)&&(this.editors.delete(r),this._onDidChangeVisibleTextEditors.fire(this.visibleTextEditors))},null,this.disposables),E.on("BufWinEnter",async(r,o)=>{this.winid=o,await this.createTextEditor(o,!0)},null,this.disposables)}async createTextEditor(e,t=!1){let{documents:i,nvim:r}=this,o=await r.call("coc#util#get_editoroption",[e]);if(!o)return!1;let s=!1;if(t)for(let l of this.editors.keys())o.winids.includes(l)||(s=!0,this.editors.delete(l));let a=i.getDocument(o.bufnr);if(a){let l=this.fromOptions(o,a);return this.editors.set(e,l),e==this.winid&&this.onChange(l),this._onDidChangeVisibleTextEditors.fire(this.visibleTextEditors),qZ.debug("editor created winid & bufnr & tabnr: ",e,o.bufnr,o.tabpagenr),!0}else s&&this._onDidChangeVisibleTextEditors.fire(this.visibleTextEditors);return qZ.error(`document not found for window: ${e}`),!1}fromOptions(e,t){let{visibleRanges:i}=e,r=k.getTabId(e.tabpagenr);return{get tabpagenr(){return k.getTabNumber(r)},winid:e.winid,winnr:e.winnr,document:t,visibleRanges:i.map(o=>of.Range.create(o[0]-1,0,o[1],0)),options:{tabSize:e.tabSize,insertSpaces:!!e.insertSpaces}}}}});function sf(n){if(!(!n||!af.default.isAbsolute(n)))return{name:af.default.basename(n),uri:O.file(n).toString()}}var af,WZ,Fy,ZZ=_(()=>{"use strict";af=C(require("path")),WZ=C(H());we();Ir();Qo();Je();Fy=class{constructor(e){this.configurations=e;this._onDidChangeWorkspaceFolders=new WZ.Emitter;this.onDidChangeWorkspaceFolders=this._onDidChangeWorkspaceFolders.event;this.rootPatterns=new Map;this._workspaceFolders=[]}setWorkspaceFolders(e){if(!e||!Array.isArray(e))return;let t=e.map(i=>sf(i));this._workspaceFolders=t.filter(i=>i!=null)}getWorkspaceFolder(e){if(e.scheme!=="file")return;let t=Array.from(this._workspaceFolders).map(o=>O.parse(o.uri).fsPath);t.sort((o,s)=>s.length-o.length);let i=e.fsPath,r=t.find(o=>Ae(o,i,!0));return sf(r)}getRelativePath(e,t){let i,r="";if(typeof e=="string"?(i=O.file(e),r=e):typeof e<"u"&&(i=e,r=e.fsPath),!i)return r;let o=this.getWorkspaceFolder(i);if(!o)return r;typeof t>"u"&&this._workspaceFolders&&(t=this._workspaceFolders.length>1);let s=af.default.relative(O.parse(o.uri).fsPath,i.fsPath);return s=s==""?i.fsPath:s,t&&o.name&&(s=`${o.name}/${s}`),s}get workspaceFolders(){return this._workspaceFolders}addRootPattern(e,t){let i=this.rootPatterns.get(e)||[];for(let r of t)i.includes(r)||i.push(r);this.rootPatterns.set(e,i)}resolveRoot(e,t,i,r){if(e.buftype!==""||e.schema!=="file"||!e.enabled)return null;let o=[0,1,2],s=O.parse(e.uri),a=af.default.dirname(s.fsPath),l=this.configurations.getConfiguration("workspace",e.uri),u=l.get("ignoredFiletypes",[]),c=l.get("bottomUpFiletypes",[]),h=l.get("workspaceFolderCheckCwd",!0),d=l.get("ignoredFolders",[]),g=l.get("workspaceFolderFallbackCwd",!0);if(u!=null&&u.includes(e.filetype))return null;let f=this.getWorkspaceFolder(O.parse(e.uri));if(f)return O.parse(f.uri).fsPath;d=Array.isArray(d)?d.filter(b=>b&&b.length>0).map(b=>r(b)):[];let p=null;for(let b of o){let v=this.getRootPatterns(e,b);if(v&&v.length){let w=c.includes("*")||c.includes(e.filetype),D=mb(a,v,t,w,h,d);if(D){p=D;break}}}return g&&!p&&!d.includes(t)&&Ae(t,a,!0)&&(p=t),p&&this.addWorkspaceFolder(p,i),p}addWorkspaceFolder(e,t){let i=sf(e);if(!!i)return this._workspaceFolders.findIndex(r=>r.uri==i.uri)==-1&&(this._workspaceFolders.push(i),t&&this._onDidChangeWorkspaceFolders.fire({added:[i],removed:[]})),i}renameWorkspaceFolder(e,t){let i=sf(t);if(!i)return;let r=this._workspaceFolders.findIndex(s=>O.parse(s.uri).fsPath==e);if(r==-1)return;let o=this.workspaceFolders[r];this._workspaceFolders.splice(r,1,i),this._onDidChangeWorkspaceFolders.fire({removed:[o],added:[i]})}removeWorkspaceFolder(e){let t=sf(e);if(!t)return;let i=this._workspaceFolders.findIndex(r=>r.uri==t.uri);i!=-1&&(this._workspaceFolders.splice(i,1),this._onDidChangeWorkspaceFolders.fire({removed:[t],added:[]}))}getRootPatterns(e,t){let{uri:i}=e;return t==0?e.getVar("root_patterns",[])||[]:t==1?this.getServerRootPatterns(e.languageId):this.configurations.getConfiguration("coc.preferences",i).get("rootPatterns",[".git",".hg",".projections.json"]).slice()}reset(){this.rootPatterns.clear(),this._workspaceFolders=[]}getServerRootPatterns(e){let t=this.configurations.getConfiguration().get("languageserver",{}),i=[];for(let r of Object.keys(t)){let o=t[r],{filetypes:s,rootPatterns:a}=o;Array.isArray(s)&&a&&s.includes(e)&&i.push(...a)}return i=i.concat(this.rootPatterns.get(e)||[]),i.length?sa(i):[]}}});var Iy,JZ=_(()=>{"use strict";le();z();Iy=class{constructor(e,t){this._create=e;this.disposables=[];this.itemsMap=new Map;let{disposables:i}=this;for(let r of t.documents)this.create(r);t.onDidOpenTextDocument(r=>{this.create(t.getDocument(r.bufnr))},null,i),t.onDidChangeDocument(r=>{this.onChange(r)},null,i),t.onDidCloseDocument(r=>{this.delete(r.bufnr)},null,i),E.on("LinesChanged",r=>{let o=this.itemsMap.get(r);o&&typeof o.item.onTextChange=="function"&&o.item.onTextChange()},null,i)}get items(){return Array.from(this.itemsMap.values()).map(e=>e.item)}getItem(e){var i;if(typeof e=="number")return(i=this.itemsMap.get(e))==null?void 0:i.item;let t=Array.from(this.itemsMap.values()).find(r=>r.uri==e);return t?t.item:void 0}create(e){if(!e)return;let t=this.itemsMap.get(e.bufnr);t&&t.item.dispose();let i=this._create(e);i&&this.itemsMap.set(e.bufnr,{uri:e.uri,item:i})}onChange(e){let t=this.itemsMap.get(e.bufnr);t&&typeof t.item.onChange=="function"&&t.item.onChange(e)}delete(e){let t=this.itemsMap.get(e);t&&(t.item.dispose(),this.itemsMap.delete(e))}reset(){for(let e of this.itemsMap.values())e.item.dispose();this.itemsMap.clear()}dispose(){Z(this.disposables);for(let e of this.itemsMap.values())e.item.dispose();this._create=void 0,this.itemsMap.clear()}}});var An,Mk,qc,Nk=_(()=>{"use strict";An=C(Rn()),Mk=C(require("path")),qc=class{constructor(e){this.filepath=e}fetch(e){let t=this.load();if(!e)return t;let i=e.split(".");for(let r of i){if(typeof t[r]>"u")return;t=t[r]}return t}exists(e){let t=this.load(),i=e.split(".");for(let r of i){if(typeof t[r]>"u")return!1;t=t[r]}return!0}delete(e){let t=this.load(),i=t,r=e.split("."),o=r.length;for(let s=0;s"u");s++){if(s==o-1){delete t[r[s]],An.default.writeFileSync(this.filepath,JSON.stringify(i,null,2),"utf8");break}t=t[r[s]]}}push(e,t){let i=this.load()||{},r=i,o=e.split("."),s=o.length;if(r==null){let a=Mk.default.dirname(this.filepath);An.default.mkdirpSync(a),r=i}for(let a=0;a"u"&&(r[l]={}),r=r[l]}}load(){let e=Mk.default.dirname(this.filepath),t=An.default.statSync(e);if(!t||!t.isDirectory())return An.default.mkdirpSync(e),An.default.writeFileSync(this.filepath,"{}","utf8"),{};try{let i=An.default.readFileSync(this.filepath,"utf8");return JSON.parse(i.trim())}catch{return An.default.writeFileSync(this.filepath,"{}","utf8"),{}}}clear(){let e=An.default.statSync(this.filepath);!e||!e.isFile()||An.default.writeFileSync(this.filepath,"{}","utf8")}destroy(){An.default.existsSync(this.filepath)&&An.default.unlinkSync(this.filepath)}}});var Bk,ca,so,lf=_(()=>{"use strict";Bk=C(require("path")),ca=C(Rn());Je();Qo();so=class{constructor(e,t,i=5e3){this.maximum=i;this.file=Bk.default.join(t||process.env.COC_DATA_HOME,e);let r=Bk.default.dirname(this.file);ca.default.mkdirpSync(r)}async load(){try{let e=await ia(this.file,0,this.maximum);return e.length>this.maximum&&await bb(this.file,e.join(` -`)),e[e.length-1]==""&&(e=e.slice(0,-1)),sa(e)}catch{return[]}}loadSync(){if(!ca.default.existsSync(this.file))return[];try{let e=ca.default.readFileSync(this.file,"utf8");return e=e.trim(),e.length?e.trim().split(` -`):[]}catch{return[]}}async add(e){let t;try{t=ca.default.readFileSync(this.file),t[0]===239&&t[1]===187&&t[2]===191&&(t=t.slice(3)),t=Buffer.concat([Buffer.from(e,"utf8"),new Uint8Array([10]),t])}catch{t=Buffer.concat([Buffer.from(e,"utf8"),new Uint8Array([10])])}await ca.default.writeFile(this.file,t,"utf8")}async remove(e){let t=await this.load(),i=t.length;t=t.filter(r=>r!=e),t.length!=i&&await ca.default.writeFile(this.file,t.join(` -`),"utf8")}async clean(){try{await ca.default.unlink(this.file)}catch{}}}});var jy,Ay,$Z=_(()=>{"use strict";jy=C(H());le();z();Ay=class{constructor(e,t){this.nvim=e;this.id=t;this.disposables=[];this._onExit=new jy.Emitter;this._onStderr=new jy.Emitter;this._onStdout=new jy.Emitter;this.onExit=this._onExit.event;this.onStdout=this._onStdout.event;this.onStderr=this._onStderr.event;E.on("TaskExit",(i,r)=>{i==this.id&&this._onExit.fire(r)},null,this.disposables),E.on("TaskStderr",(i,r)=>{i==this.id&&this._onStderr.fire(r)},null,this.disposables),E.on("TaskStdout",(i,r)=>{i==this.id&&this._onStdout.fire(r)},null,this.disposables)}async start(e){let{nvim:t}=this;return await t.call("coc#task#start",[this.id,e])}async stop(){let{nvim:e}=this;await e.call("coc#task#stop",[this.id])}get running(){let{nvim:e}=this;return e.call("coc#task#running",[this.id])}dispose(){let{nvim:e}=this;e.call("coc#task#stop",[this.id],!0),this._onStdout.dispose(),this._onStderr.dispose(),this._onExit.dispose(),Z(this.disposables)}}});var GZ,Hk,ha,XZ,UZ,Dwe,QZ,y,V=_(()=>{"use strict";GZ=C(Rn()),Hk=C(require("os")),ha=C(require("path"));we();TT();fY();mY();vY();wb();wY();$Y();iW();RW();MZ();NZ();BZ();Tb();HZ();YZ();ZZ();le();JZ();Nk();lf();$Z();z();XZ=30,UZ=q()("workspace"),Dwe=["showMessage","runTerminalCommand","openTerminal","showQuickpick","menuPick","openLocalConfig","showPrompt","createStatusBarItem","createOutputChannel","showOutputChannel","requestInput","echoLines","getCursorPosition","moveTo","getOffset","getSelectedRange","selectRange","createTerminal"],QZ=class{constructor(){this.version=kb;let e=ha.default.normalize(process.env.COC_VIMCONFIG)||ha.default.join(Hk.default.homedir(),".vim"),t=ha.default.join(e,Pr);this.configurations=new Uo(t,new Nb(this)),this.workspaceFolderControl=new Fy(this.configurations);let i=this.documentsManager=new Kb(this.configurations,this.workspaceFolderControl);this.contentProvider=new Hb(i),this.watchers=new Ry,this.autocmds=new Bb(this.contentProvider,this.watchers),this.keymaps=new Py(i),this.locations=new _y(this.configurations,i,this.contentProvider),this.files=new ry(i,this.configurations,this.workspaceFolderControl,this.keymaps),this.editors=new Ly(i),this.onDidRuntimePathChange=this.watchers.onDidRuntimePathChange,this.onDidChangeWorkspaceFolders=this.workspaceFolderControl.onDidChangeWorkspaceFolders,this.onDidChangeConfiguration=this.configurations.onDidChange,this.onDidOpenTextDocument=i.onDidOpenTextDocument,this.onDidChangeTextDocument=i.onDidChangeDocument,this.onDidCloseTextDocument=i.onDidCloseDocument,this.onDidSaveTextDocument=i.onDidSaveTextDocument,this.onWillSaveTextDocument=i.onWillSaveTextDocument,this.onDidCreateFiles=this.files.onDidCreateFiles,this.onDidRenameFiles=this.files.onDidRenameFiles,this.onDidDeleteFiles=this.files.onDidDeleteFiles,this.onWillCreateFiles=this.files.onWillCreateFiles,this.onWillRenameFiles=this.files.onWillRenameFiles,this.onWillDeleteFiles=this.files.onWillDeleteFiles;let r=global.__TEST__?null:this.getWatchmanPath();this.fileSystemWatchers=new Wg(this.workspaceFolderControl,r)}async init(e){let{nvim:t}=this;for(let o of Dwe)Object.defineProperty(this,o,{get:()=>(...s)=>{let a=` +`)},r.push(async()=>{let T=this.documents.getDocument(p);!T||!T.attached||T.version!==b||(await T.applyEdits([m]),d.version=T.version)})}}else At.CreateFile.is(h)?await this.createFile(Rb(h.uri),h.options,r):At.DeleteFile.is(h)?await this.deleteFile(Rb(h.uri),h.options,r):At.RenameFile.is(h)&&await this.renameFile(Rb(h.oldUri),Rb(h.newUri),h.options,r);if(r.length===0)return!0;t||(this.editState={edit:{documentChanges:i,changeAnnotations:e.changeAnnotations},changes:u,recovers:r,applied:!0}),this.nvim.redrawVim()}catch(s){return Fve.error("Error on applyEdits:",e,s),await this.undoChanges(r),t||this.window.showErrorMessage(`Error on applyEdits: ${s}`),!1}return t||o||this.window.showInformationMessage("Use ':wa' to save changes or ':CocCommand workspace.inspectEdit' to inspect."),!0}async undoChanges(e){for(;e.length>0;)await e.pop()()}async inspectEdit(){if(!this.editState){this.window.showWarningMessage("No workspace edit to inspect");return}await new Eb(this.nvim,this.keymaps).show(this.editState)}async undoWorkspaceEdit(){let{editState:e}=this;if(!e||!e.applied){this.window.showWarningMessage("No workspace edit to undo");return}e.applied=!1,await this.undoChanges(e.recovers)}async redoWorkspaceEdit(){let{editState:e}=this;if(!e||e.applied){this.window.showWarningMessage("No workspace edit to redo");return}this.editState=void 0,await this.applyEdit(e.edit)}validateChanges(e){let{documents:t}=this;for(let i of e)if(At.TextDocumentEdit.is(i)){let{uri:r,version:o}=i.textDocument,s=t.getDocument(r);if(typeof o=="number"&&o>0){if(!s)throw new Error(`File ${r} not loaded`);if(s.version!=o)throw new Error(`${r} changed before apply edit`)}else if(!s&&!qg(r))throw _b(I.parse(r).scheme)}else if(At.CreateFile.is(i)||At.DeleteFile.is(i)){if(!qg(i.uri))throw _b(I.parse(i.uri).scheme)}else if(At.RenameFile.is(i)&&(!qg(i.oldUri)||!qg(i.newUri)))throw _b(I.parse(i.oldUri).scheme)}async findFiles(e,t,i,r){let o=this.workspaceFolderControl.workspaceFolders;if((r==null?void 0:r.isCancellationRequested)||!o.length||i===0)return[];i=i??1/0;let s=o.map(u=>I.parse(u.uri).fsPath);if(typeof e!="string"){let u=e.baseUri.fsPath;s=s.filter(c=>Je(u,c,!0))}let a=typeof e=="string"?e:e.pattern,l=[];for(let u of s){if(l.length>=i)break;let c=await(0,h3.promisify)(c3.default)(a,{dot:!0,cwd:u,nodir:!0,absolute:!1});if(r!=null&&r.isCancellationRequested)return[];for(let h of c)if(!(t&&Ive(u,h,t))&&(l.push(I.file(Gr.default.join(u,h))),l.length===i))break}return l}async fireWaitUntilEvent(e,t,i){let r=!0,o=[];e.fire(Va(ve({},t),{waitUntil:s=>{if(!r)throw u3("waitUntil");let a=new Promise(u=>{setTimeout(u,this.operationTimeout)}),l=Promise.race([s,a]).then(u=>{if(u&&At.WorkspaceEdit.is(u))return this.applyEdit(u,!0)});o.push(l)}})),r=!1,await Promise.all(o)}}});function ap(n,e){for(let t of e)if(n.includes(t))return!0;return!1}function g3(n,e,t=0){let i=-1;for(let r=t;r{e(i)?t[0].push(i):t[1].push(i)}),t}function va(n,e){if(!e)return n.filter((i,r)=>n.indexOf(i)===r);let t=Object.create(null);return n.filter(i=>{let r=e(i);return t[r]?!1:(t[r]=!0,!0)})}var So=_(()=>{"use strict"});var y3=y((Z1e,m3)=>{var aE=4294967296,f3=[];for(Jc=0;Jc<256;Jc++)f3[Jc]=(Jc>15?"":"0")+Jc.toString(16);var Jc,lp=m3.exports=function(n,e){n instanceof Buffer?(this.buffer=n,this.offset=e||0):Object.prototype.toString.call(n)=="[object Uint8Array]"?(this.buffer=new Buffer(n),this.offset=e||0):(this.buffer=this.buffer||new Buffer(8),this.offset=0,this.setValue.apply(this,arguments))};lp.MAX_INT=Math.pow(2,53);lp.MIN_INT=-Math.pow(2,53);lp.prototype={constructor:lp,_2scomp:function(){for(var n=this.buffer,e=this.offset,t=1,i=e+7;i>=e;i--){var r=(n[i]^255)+t;n[i]=r&255,t=r>>8}},setValue:function(n,e){var t=!1;if(arguments.length==1)if(typeof n=="number"){if(t=n<0,n=Math.abs(n),e=n%aE,n=n/aE,n>aE)throw new RangeError(n+" is outside Int64 range");n=n|0}else if(typeof n=="string")n=(n+"").replace(/^0x/,""),e=n.substr(-8),n=n.length>8?n.substr(0,n.length-8):"",n=parseInt(n,16),e=parseInt(e,16);else throw new Error(n+" must be a Number or String");for(var i=this.buffer,r=this.offset,o=7;o>=0;o--)i[r+o]=e&255,e=o==4?n:e>>>8;t&&this._2scomp()},toNumber:function(n){for(var e=this.buffer,t=this.offset,i=e[t]&128,r=0,o=1,s=7,a=1;s>=0;s--,a*=256){var l=e[t+s];i&&(l=(l^255)+o,o=l>>8,l=l&255),r+=l*a}return!n&&r>=lp.MAX_INT?i?-1/0:1/0:i?-r:r},valueOf:function(){return this.toNumber(!1)},toString:function(n){return this.valueOf().toString(n||10)},toOctetString:function(n){for(var e=new Array(8),t=this.buffer,i=this.offset,r=0;r<8;r++)e[r]=f3[t[i+r]];return e.join(n||"")},toBuffer:function(n){if(n&&this.offset===0)return this.buffer;var e=new Buffer(8);return this.buffer.copy(e,0,this.offset,this.offset+8),e},copy:function(n,e){this.buffer.copy(n,e||0,this.offset,this.offset+8)},compare:function(n){if((this.buffer[this.offset]&128)!=(n.buffer[n.offset]&128))return n.buffer[n.offset]-this.buffer[this.offset];for(var e=0;e<8;e++)if(this.buffer[this.offset+e]!==n.buffer[n.offset+e])return this.buffer[this.offset+e]-n.buffer[n.offset+e];return 0},equals:function(n){return this.compare(n)===0},inspect:function(){return"[Int64 value:"+this+" octets:"+this.toOctetString(" ")+"]"}}});var P3=y(cp=>{var v3=require("events").EventEmitter,jve=require("util"),Ave=require("os"),J1e=require("assert"),up=y3(),wa=Ave.endianness()=="BE";function w3(n){return Math.pow(2,Math.ceil(Math.log(n)/Math.LN2))}function yi(n){this.buf=Buffer.alloc(w3(n||8192)),this.readOffset=0,this.writeOffset=0}cp.Accumulator=yi;yi.prototype.writeAvail=function(){return this.buf.length-this.writeOffset};yi.prototype.readAvail=function(){return this.writeOffset-this.readOffset};yi.prototype.reserve=function(n){if(!(n0&&(this.buf.copy(this.buf,0,this.readOffset,this.writeOffset),this.writeOffset-=this.readOffset,this.readOffset=0),!(n0)this.assertReadableSize(n);else if(n<0&&this.readOffset+n<0)throw new Error("advance with negative offset "+n+" would seek off the start of the buffer");this.readOffset+=n};yi.prototype.writeByte=function(n){this.reserve(1),this.buf.writeInt8(n,this.writeOffset),++this.writeOffset};yi.prototype.writeInt=function(n,e){switch(this.reserve(e),e){case 1:this.buf.writeInt8(n,this.writeOffset);break;case 2:wa?this.buf.writeInt16BE(n,this.writeOffset):this.buf.writeInt16LE(n,this.writeOffset);break;case 4:wa?this.buf.writeInt32BE(n,this.writeOffset):this.buf.writeInt32LE(n,this.writeOffset);break;default:throw new Error("unsupported integer size "+e)}this.writeOffset+=e};yi.prototype.writeDouble=function(n){this.reserve(8),wa?this.buf.writeDoubleBE(n,this.writeOffset):this.buf.writeDoubleLE(n,this.writeOffset),this.writeOffset+=8};var uE=0,cE=1,hE=2,dE=3,gE=4,Mb=5,Ab=6,D3=7,C3=8,x3=9,S3=10,T3=11,Mve=12,lE=0,b3=1,Ove=127,Nve=32767,Bve=2147483647;function kn(){v3.call(this),this.buf=new yi,this.state=lE}jve.inherits(kn,v3);cp.BunserBuf=kn;kn.prototype.append=function(n,e){if(e)return this.buf.append(n),this.process(e);try{this.buf.append(n)}catch(t){this.emit("error",t);return}this.processLater()};kn.prototype.processLater=function(){var n=this;process.nextTick(function(){try{n.process(!1)}catch(e){n.emit("error",e)}})};kn.prototype.process=function(n){if(this.state==lE){if(this.buf.readAvail()<2)return;if(this.expectCode(0),this.expectCode(1),this.pduLen=this.decodeInt(!0),this.pduLen===!1){this.buf.readAdvance(-2);return}this.buf.reserve(this.pduLen),this.state=b3}if(this.state==b3){if(this.buf.readAvail()0&&this.processLater()};kn.prototype.raise=function(n){throw new Error(n+", in Buffer of length "+this.buf.buf.length+" ("+this.buf.readAvail()+" readable) at offset "+this.buf.readOffset+" buffer: "+JSON.stringify(this.buf.buf.slice(this.buf.readOffset,this.buf.readOffset+32).toJSON()))};kn.prototype.expectCode=function(n){var e=this.buf.readInt(1);e!=n&&this.raise("expected bser opcode "+n+" but got "+e)};kn.prototype.decodeAny=function(){var n=this.buf.peekInt(1);switch(n){case dE:case gE:case Mb:case Ab:return this.decodeInt();case D3:return this.buf.readAdvance(1),this.buf.readDouble();case C3:return this.buf.readAdvance(1),!0;case x3:return this.buf.readAdvance(1),!1;case S3:return this.buf.readAdvance(1),null;case hE:return this.decodeString();case uE:return this.decodeArray();case cE:return this.decodeObject();case T3:return this.decodeTemplate();default:this.raise("unhandled bser opcode "+n)}};kn.prototype.decodeArray=function(){this.expectCode(uE);for(var n=this.decodeInt(),e=[],t=0;t"u")throw Error("no bser found in string and no error raised!?");return t}cp.loadFromBuffer=Hve;function k3(n){for(var e=Buffer.alloc(n.length),t=0;t"u"&&r--}Ib(n,r);for(var t=0;t"u")){jb(n,o);try{jb(n,s)}catch(c){throw new Error(c.message+" (while serializing object property with name `"+o+"')")}}}return;default:throw new Error("cannot serialize type "+typeof e+" to BSER")}}function qve(n){var e=new yi;e.writeByte(0),e.writeByte(1),e.writeByte(Mb),e.writeInt(0,4),jb(e,n);var t=e.writeOffset,i=t-7;return e.writeOffset=3,e.writeInt(i,4),e.writeOffset=t,e.buf.slice(0,t)}cp.dumpToBuffer=qve});var A3=y((X1e,j3)=>{"use strict";var Yve=require("net"),F3=require("events").EventEmitter,Wve=require("util"),Zve=require("child_process"),I3=P3(),_3=["subscription","log"];function fs(n){var e=this;F3.call(this),this.watchmanBinaryPath="watchman",n&&n.watchmanBinaryPath&&(this.watchmanBinaryPath=n.watchmanBinaryPath.trim()),this.commands=[]}Wve.inherits(fs,F3);j3.exports.Client=fs;fs.prototype.sendNextCommand=function(){this.currentCommand||(this.currentCommand=this.commands.shift(),this.currentCommand&&this.socket.write(I3.dumpToBuffer(this.currentCommand.cmd)))};fs.prototype.cancelCommands=function(n){var e=new Error(n),t=this.commands;this.commands=[],this.currentCommand&&(t.unshift(this.currentCommand),this.currentCommand=null),t.forEach(function(i){i.cb(e)})};fs.prototype.connect=function(){var n=this;function e(l){n.bunser=new I3.BunserBuf,n.bunser.on("value",function(u){for(var c=!1,h=0;h<_3.length;h++){var d=_3[h];d in u&&(c=d)}if(c)n.emit(c,u);else if(n.currentCommand){var g=n.currentCommand;if(n.currentCommand=null,"error"in u){var p=new Error(u.error);p.watchmanResponse=u,g.cb(p)}else g.cb(null,u)}n.sendNextCommand()}),n.bunser.on("error",function(u){n.emit("error",u)}),n.socket=Yve.createConnection(l),n.socket.on("connect",function(){n.connecting=!1,n.emit("connect"),n.sendNextCommand()}),n.socket.on("error",function(u){n.connecting=!1,n.emit("error",u)}),n.socket.on("data",function(u){n.bunser&&n.bunser.append(u)}),n.socket.on("end",function(){n.socket=null,n.bunser=null,n.cancelCommands("The watchman connection was closed"),n.emit("end")})}if(process.env.WATCHMAN_SOCK){e(process.env.WATCHMAN_SOCK);return}var t=["--no-pretty","get-sockname"],i=null,r=!1;function o(l){r||(r=!0,l.errno==="EACCES"?l.message="The Watchman CLI is installed but cannot be spawned because of a permission problem":l.errno==="ENOENT"&&(l.message="Watchman was not found in PATH. See https://facebook.github.io/watchman/docs/install.html for installation instructions"),console.error("Watchman: ",l.message),n.emit("error",l))}try{i=Zve.spawn(this.watchmanBinaryPath,t,{stdio:["ignore","pipe","pipe"]})}catch(l){o(l);return}var s=[],a=[];i.stdout.on("data",function(l){s.push(l)}),i.stderr.on("data",function(l){l=l.toString("utf8"),a.push(l),console.error(l)}),i.on("error",function(l){o(l)}),i.on("close",function(l,u){if(l!==0){o(new Error(n.watchmanBinaryPath+" "+t.join(" ")+" returned with exit code="+l+", signal="+u+", stderr= "+a.join("")));return}try{var c=JSON.parse(s.join(""));if("error"in c){var h=new Error(c.error);h.watchmanResponse=c,n.emit("error",h);return}e(c.sockname)}catch(d){n.emit("error",d)}})};fs.prototype.command=function(n,e){if(e=e||function(){},this.commands.push({cmd:n,cb:e}),!this.socket){if(!this.connecting){this.connecting=!0,this.connect();return}return}this.sendNextCommand()};var R3={"cmd-watch-del-all":"3.1.1","cmd-watch-project":"3.1",relative_root:"3.3","term-dirname":"3.1","term-idirname":"3.1",wildmatch:"3.7"};function Jve(n,e){n=n.split("."),e=e.split(".");for(var t=0;t<3;t++){var i=parseInt(n[t]||"0")-parseInt(e[t]||"0");if(i!=0)return i}return 0}function L3(n,e){return e in R3?Jve(n,R3[e])>=0:!1}fs.prototype._synthesizeCapabilityCheck=function(n,e,t){n.capabilities={};var i=n.version;return e.forEach(function(r){n.capabilities[r]=L3(i,r)}),t.forEach(function(r){var o=L3(i,r);n.capabilities[r]=o,o||(n.error="client required capability `"+r+"` is not supported by this server")}),n};fs.prototype.capabilityCheck=function(n,e){var t=n.optional||[],i=n.required||[],r=this;this.command(["version",{optional:t,required:i}],function(o,s){if(o){e(o);return}if(!("capabilities"in s)&&(s=r._synthesizeCapabilityCheck(s,t,i),s.error)){o=new Error(s.error),o.watchmanResponse=s,e(o);return}e(null,s)})};fs.prototype.end=function(){this.cancelCommands("The client was ended"),this.socket&&(this.socket.end(),this.socket=null),this.bunser=null}});function Xve(n){return!(n=="/"||n=="/tmp"||n=="/private/tmp"||Je(n,pE.default.homedir(),!0)||Nb.default.parse(n).base==n||n.startsWith("/tmp/")||n.startsWith("/private/tmp/")||Je(pE.default.tmpdir(),n,!0))}var M3,O3,pE,Nb,Ob,$ve,Da,fE=_(()=>{"use strict";M3=x(A3()),O3=x(Yn()),pE=x(require("os")),Nb=x(require("path"));He();et();Ob=W()("core-watchman"),$ve=["relative_root","cmd-watch-project","wildmatch","field-new"],Da=class{constructor(e,t){this.channel=t;this._disposed=!1;this.client=new M3.default.Client({watchmanBinaryPath:e}),this.client.setMaxListeners(300)}checkCapability(){let{client:e}=this;return new Promise((t,i)=>{e.capabilityCheck({optional:[],required:$ve},(r,o)=>{if(r)return t(!1);let{capabilities:s}=o;for(let a of Object.keys(s))if(!s[a])return t(!1);t(!0)})})}async watchProject(e){let t=await this.command(["watch-project",e]),{watch:i,warning:r,relative_path:o}=t;return i?(r&&Ob.warn(r),this.watch=i,this.relative_path=o,Ob.info(`watchman watching project: ${e}`),this.appendOutput(`watchman watching project: ${e}`),!0):!1}command(e){return new Promise((t,i)=>{this.client.command(e,(r,o)=>{if(r)return i(r);t(o)})})}async subscribe(e,t){let{watch:i,relative_path:r}=this;if(!i)throw new Error("watchman not watching");let{clock:o}=await this.command(["clock",i]),s=ps(),a={expression:["allof",["match","**/*","wholename"]],fields:["name","size","new","exists","type","mtime_ms","ctime_ms"],since:o},l=i;r&&(a.relative_root=r,l=Nb.default.join(i,r));let{subscribe:u}=await this.command(["subscribe",i,s,a]);return this.appendOutput(`subscribing "${e}" in ${l}`),this.client.on("subscription",c=>{if(!c||c.subscription!=s)return;let{files:h}=c;if(!h||(h=h.filter(g=>g.type=="f"&&(0,O3.default)(g.name,e,{dot:!0})),!h.length))return;let d=Object.assign({},c);this.relative_path&&(d.root=Nb.default.resolve(c.root,this.relative_path)),this.appendOutput(`file change detected: ${JSON.stringify(d,null,2)}`),t(d)}),{dispose:()=>{this.unsubscribe(u)},subscribe:u}}unsubscribe(e){if(this._disposed)return Promise.resolve();let{watch:t}=this;if(!!t)return this.appendOutput(`unsubscribe "${e}" in: ${t}`),this.command(["unsubscribe",t,e]).catch(i=>{var r;(r=i.message)!=null&&r.includes("The client was ended")&&Ob.error(i)})}dispose(){this._disposed||(this._disposed=!0,this.client&&(this.client.removeAllListeners(),this.client.end(),this.client=void 0))}appendOutput(e,t="Info"){this.channel&&this.channel.appendLine(`[${t} - ${new Date().toLocaleTimeString()}] ${e}`)}static async createClient(e,t,i){if(!Xve(t))return null;let r;try{if(r=new Da(e,i),!await r.checkCapability())throw new Error("required capabilities do not exist.");if(!await r.watchProject(t))throw new Error("unable to watch");return r}catch(o){return r&&r.dispose(),Ob.error("Error on watchman create",o),null}}}});var N3,$c,Xc,sAe,hp,dp,B3,H3=_(()=>{"use strict";N3=x(Yn()),$c=x(require("path")),Xc=x(q());Ee();re();So();fE();sAe=W()("filesystem-watcher"),hp=class{constructor(e,t){this.workspaceFolder=e;this.watchmanPath=t;this.clientsMap=new Map;this.disposables=[];this.creating=new Set;this._onDidCreateClient=new Xc.Emitter;this.onDidCreateClient=this._onDidCreateClient.event}attach(e){this.channel=e;let t=i=>{let r=I.parse(i.uri).fsPath;this.creating.has(r)||(this.creating.add(r),this.createClient(r).finally(()=>{this.creating.delete(r)}))};this.workspaceFolder.workspaceFolders.forEach(i=>{t(i)}),this.workspaceFolder.onDidChangeWorkspaceFolders(i=>{i.added.forEach(r=>{t(r)}),i.removed.forEach(r=>{let o=I.parse(r.uri).fsPath,s=this.clientsMap.get(o);s&&(this.clientsMap.delete(o),s.dispose())})},null,this.disposables)}waitClient(e){return this.clientsMap.has(e)?Promise.resolve():new Promise(t=>{let i=this.onDidCreateClient(r=>{r==e&&(i.dispose(),t())})})}async createClient(e){if(!(this.watchmanPath==null||this.clientsMap.has(e)))try{let t=await Da.createClient(this.watchmanPath,e,this.channel);if(!t)return;this.clientsMap.set(e,t);for(let i of hp.watchers)i.listen(t);this._onDidCreateClient.fire(e)}catch(t){this.channel&&this.channel.appendLine("Error on create watchman client:"+t)}}createFileSystemWatcher(e,t,i,r){let o=new B3(e,t,i,r);for(let s of this.clientsMap.values())o.listen(s);return hp.watchers.add(o),o}dispose(){this._onDidCreateClient.dispose();for(let e of this.clientsMap.values())e&&e.dispose();this.clientsMap.clear(),hp.watchers.clear(),$(this.disposables)}},dp=hp;dp.watchers=new Set;B3=class{constructor(e,t,i,r){this.globPattern=e;this.ignoreCreateEvents=t;this.ignoreChangeEvents=i;this.ignoreDeleteEvents=r;this._onDidCreate=new Xc.Emitter;this._onDidChange=new Xc.Emitter;this._onDidDelete=new Xc.Emitter;this._onDidRename=new Xc.Emitter;this.disposables=[];this._disposed=!1;this.onDidCreate=this._onDidCreate.event;this.onDidChange=this._onDidChange.event;this.onDidDelete=this._onDidDelete.event;this.onDidRename=this._onDidRename.event}listen(e){let{globPattern:t,ignoreCreateEvents:i,ignoreChangeEvents:r,ignoreDeleteEvents:o}=this,s=a=>{let{root:l,files:u}=a;u=u.filter(c=>c.type=="f"&&(0,N3.default)(c.name,t,{dot:!0}));for(let c of u){let h=I.file($c.default.join(l,c.name));c.exists?c.new===!0?i||this._onDidCreate.fire(h):r||this._onDidChange.fire(h):o||this._onDidDelete.fire(h)}if(u.length==2&&u[0].exists!==u[1].exists){let c=u.find(d=>d.exists!==!0),h=u.find(d=>d.exists===!0);c.size==h.size&&this._onDidRename.fire({oldUri:I.file($c.default.join(l,c.name)),newUri:I.file($c.default.join(l,h.name))})}if(u.length>2&&u.length%2==0){let[c,h]=Fb(u,d=>d.exists===!1);if(c.length==h.length)for(let d of c){let g=h.find(p=>p.size==d.size&&p.mtime_ms==d.mtime_ms);g&&this._onDidRename.fire({oldUri:I.file($c.default.join(l,d.name)),newUri:I.file($c.default.join(l,g.name))})}}};e.subscribe(t,s).then(a=>{if(this.subscribe=a.subscribe,this._disposed)return a.dispose();this.disposables.push(a)}).logError()}dispose(){this._disposed=!0,dp.watchers.delete(this),this._onDidRename.dispose(),this._onDidCreate.dispose(),this._onDidChange.dispose(),$(this.disposables)}}});var gp=y((lAe,q3)=>{var Uve="2.0.0",Gve=Number.MAX_SAFE_INTEGER||9007199254740991,Kve=16;q3.exports={SEMVER_SPEC_VERSION:Uve,MAX_LENGTH:256,MAX_SAFE_INTEGER:Gve,MAX_SAFE_COMPONENT_LENGTH:Kve}});var pp=y((uAe,Y3)=>{var Qve=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...n)=>console.error("SEMVER",...n):()=>{};Y3.exports=Qve});var Hl=y((Ca,W3)=>{var{MAX_SAFE_COMPONENT_LENGTH:mE}=gp(),zve=pp();Ca=W3.exports={};var Vve=Ca.re=[],ae=Ca.src=[],le=Ca.t={},ewe=0,je=(n,e,t)=>{let i=ewe++;zve(n,i,e),le[n]=i,ae[i]=e,Vve[i]=new RegExp(e,t?"g":void 0)};je("NUMERICIDENTIFIER","0|[1-9]\\d*");je("NUMERICIDENTIFIERLOOSE","[0-9]+");je("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");je("MAINVERSION",`(${ae[le.NUMERICIDENTIFIER]})\\.(${ae[le.NUMERICIDENTIFIER]})\\.(${ae[le.NUMERICIDENTIFIER]})`);je("MAINVERSIONLOOSE",`(${ae[le.NUMERICIDENTIFIERLOOSE]})\\.(${ae[le.NUMERICIDENTIFIERLOOSE]})\\.(${ae[le.NUMERICIDENTIFIERLOOSE]})`);je("PRERELEASEIDENTIFIER",`(?:${ae[le.NUMERICIDENTIFIER]}|${ae[le.NONNUMERICIDENTIFIER]})`);je("PRERELEASEIDENTIFIERLOOSE",`(?:${ae[le.NUMERICIDENTIFIERLOOSE]}|${ae[le.NONNUMERICIDENTIFIER]})`);je("PRERELEASE",`(?:-(${ae[le.PRERELEASEIDENTIFIER]}(?:\\.${ae[le.PRERELEASEIDENTIFIER]})*))`);je("PRERELEASELOOSE",`(?:-?(${ae[le.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${ae[le.PRERELEASEIDENTIFIERLOOSE]})*))`);je("BUILDIDENTIFIER","[0-9A-Za-z-]+");je("BUILD",`(?:\\+(${ae[le.BUILDIDENTIFIER]}(?:\\.${ae[le.BUILDIDENTIFIER]})*))`);je("FULLPLAIN",`v?${ae[le.MAINVERSION]}${ae[le.PRERELEASE]}?${ae[le.BUILD]}?`);je("FULL",`^${ae[le.FULLPLAIN]}$`);je("LOOSEPLAIN",`[v=\\s]*${ae[le.MAINVERSIONLOOSE]}${ae[le.PRERELEASELOOSE]}?${ae[le.BUILD]}?`);je("LOOSE",`^${ae[le.LOOSEPLAIN]}$`);je("GTLT","((?:<|>)?=?)");je("XRANGEIDENTIFIERLOOSE",`${ae[le.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);je("XRANGEIDENTIFIER",`${ae[le.NUMERICIDENTIFIER]}|x|X|\\*`);je("XRANGEPLAIN",`[v=\\s]*(${ae[le.XRANGEIDENTIFIER]})(?:\\.(${ae[le.XRANGEIDENTIFIER]})(?:\\.(${ae[le.XRANGEIDENTIFIER]})(?:${ae[le.PRERELEASE]})?${ae[le.BUILD]}?)?)?`);je("XRANGEPLAINLOOSE",`[v=\\s]*(${ae[le.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ae[le.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ae[le.XRANGEIDENTIFIERLOOSE]})(?:${ae[le.PRERELEASELOOSE]})?${ae[le.BUILD]}?)?)?`);je("XRANGE",`^${ae[le.GTLT]}\\s*${ae[le.XRANGEPLAIN]}$`);je("XRANGELOOSE",`^${ae[le.GTLT]}\\s*${ae[le.XRANGEPLAINLOOSE]}$`);je("COERCE",`(^|[^\\d])(\\d{1,${mE}})(?:\\.(\\d{1,${mE}}))?(?:\\.(\\d{1,${mE}}))?(?:$|[^\\d])`);je("COERCERTL",ae[le.COERCE],!0);je("LONETILDE","(?:~>?)");je("TILDETRIM",`(\\s*)${ae[le.LONETILDE]}\\s+`,!0);Ca.tildeTrimReplace="$1~";je("TILDE",`^${ae[le.LONETILDE]}${ae[le.XRANGEPLAIN]}$`);je("TILDELOOSE",`^${ae[le.LONETILDE]}${ae[le.XRANGEPLAINLOOSE]}$`);je("LONECARET","(?:\\^)");je("CARETTRIM",`(\\s*)${ae[le.LONECARET]}\\s+`,!0);Ca.caretTrimReplace="$1^";je("CARET",`^${ae[le.LONECARET]}${ae[le.XRANGEPLAIN]}$`);je("CARETLOOSE",`^${ae[le.LONECARET]}${ae[le.XRANGEPLAINLOOSE]}$`);je("COMPARATORLOOSE",`^${ae[le.GTLT]}\\s*(${ae[le.LOOSEPLAIN]})$|^$`);je("COMPARATOR",`^${ae[le.GTLT]}\\s*(${ae[le.FULLPLAIN]})$|^$`);je("COMPARATORTRIM",`(\\s*)${ae[le.GTLT]}\\s*(${ae[le.LOOSEPLAIN]}|${ae[le.XRANGEPLAIN]})`,!0);Ca.comparatorTrimReplace="$1$2$3";je("HYPHENRANGE",`^\\s*(${ae[le.XRANGEPLAIN]})\\s+-\\s+(${ae[le.XRANGEPLAIN]})\\s*$`);je("HYPHENRANGELOOSE",`^\\s*(${ae[le.XRANGEPLAINLOOSE]})\\s+-\\s+(${ae[le.XRANGEPLAINLOOSE]})\\s*$`);je("STAR","(<|>)?=?\\s*\\*");je("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");je("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var fp=y((cAe,Z3)=>{var twe=["includePrerelease","loose","rtl"],iwe=n=>n?typeof n!="object"?{loose:!0}:twe.filter(e=>n[e]).reduce((e,t)=>(e[t]=!0,e),{}):{};Z3.exports=iwe});var Bb=y((hAe,X3)=>{var J3=/^[0-9]+$/,$3=(n,e)=>{let t=J3.test(n),i=J3.test(e);return t&&i&&(n=+n,e=+e),n===e?0:t&&!i?-1:i&&!t?1:n$3(e,n);X3.exports={compareIdentifiers:$3,rcompareIdentifiers:nwe}});var qi=y((dAe,Q3)=>{var Hb=pp(),{MAX_LENGTH:U3,MAX_SAFE_INTEGER:qb}=gp(),{re:G3,t:K3}=Hl(),rwe=fp(),{compareIdentifiers:Uc}=Bb(),gr=class{constructor(e,t){if(t=rwe(t),e instanceof gr){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid Version: ${e}`);if(e.length>U3)throw new TypeError(`version is longer than ${U3} characters`);Hb("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let i=e.trim().match(t.loose?G3[K3.LOOSE]:G3[K3.FULL]);if(!i)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>qb||this.major<0)throw new TypeError("Invalid major version");if(this.minor>qb||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>qb||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map(r=>{if(/^[0-9]+$/.test(r)){let o=+r;if(o>=0&&o=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);i===-1&&this.prerelease.push(0)}t&&(Uc(this.prerelease[0],t)===0?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}};Q3.exports=gr});var ql=y((gAe,tZ)=>{var{MAX_LENGTH:owe}=gp(),{re:z3,t:V3}=Hl(),eZ=qi(),swe=fp(),awe=(n,e)=>{if(e=swe(e),n instanceof eZ)return n;if(typeof n!="string"||n.length>owe||!(e.loose?z3[V3.LOOSE]:z3[V3.FULL]).test(n))return null;try{return new eZ(n,e)}catch{return null}};tZ.exports=awe});var nZ=y((pAe,iZ)=>{var lwe=ql(),uwe=(n,e)=>{let t=lwe(n,e);return t?t.version:null};iZ.exports=uwe});var oZ=y((fAe,rZ)=>{var cwe=ql(),hwe=(n,e)=>{let t=cwe(n.trim().replace(/^[=v]+/,""),e);return t?t.version:null};rZ.exports=hwe});var lZ=y((mAe,aZ)=>{var sZ=qi(),dwe=(n,e,t,i)=>{typeof t=="string"&&(i=t,t=void 0);try{return new sZ(n instanceof sZ?n.version:n,t).inc(e,i).version}catch{return null}};aZ.exports=dwe});var pr=y((yAe,cZ)=>{var uZ=qi(),gwe=(n,e,t)=>new uZ(n,t).compare(new uZ(e,t));cZ.exports=gwe});var Yb=y((bAe,hZ)=>{var pwe=pr(),fwe=(n,e,t)=>pwe(n,e,t)===0;hZ.exports=fwe});var pZ=y((vAe,gZ)=>{var dZ=ql(),mwe=Yb(),ywe=(n,e)=>{if(mwe(n,e))return null;{let t=dZ(n),i=dZ(e),r=t.prerelease.length||i.prerelease.length,o=r?"pre":"",s=r?"prerelease":"";for(let a in t)if((a==="major"||a==="minor"||a==="patch")&&t[a]!==i[a])return o+a;return s}};gZ.exports=ywe});var mZ=y((wAe,fZ)=>{var bwe=qi(),vwe=(n,e)=>new bwe(n,e).major;fZ.exports=vwe});var bZ=y((DAe,yZ)=>{var wwe=qi(),Dwe=(n,e)=>new wwe(n,e).minor;yZ.exports=Dwe});var wZ=y((CAe,vZ)=>{var Cwe=qi(),xwe=(n,e)=>new Cwe(n,e).patch;vZ.exports=xwe});var CZ=y((xAe,DZ)=>{var Swe=ql(),Twe=(n,e)=>{let t=Swe(n,e);return t&&t.prerelease.length?t.prerelease:null};DZ.exports=Twe});var SZ=y((SAe,xZ)=>{var kwe=pr(),Ewe=(n,e,t)=>kwe(e,n,t);xZ.exports=Ewe});var kZ=y((TAe,TZ)=>{var Pwe=pr(),_we=(n,e)=>Pwe(n,e,!0);TZ.exports=_we});var Wb=y((kAe,PZ)=>{var EZ=qi(),Rwe=(n,e,t)=>{let i=new EZ(n,t),r=new EZ(e,t);return i.compare(r)||i.compareBuild(r)};PZ.exports=Rwe});var RZ=y((EAe,_Z)=>{var Lwe=Wb(),Fwe=(n,e)=>n.sort((t,i)=>Lwe(t,i,e));_Z.exports=Fwe});var FZ=y((PAe,LZ)=>{var Iwe=Wb(),jwe=(n,e)=>n.sort((t,i)=>Iwe(i,t,e));LZ.exports=jwe});var mp=y((_Ae,IZ)=>{var Awe=pr(),Mwe=(n,e,t)=>Awe(n,e,t)>0;IZ.exports=Mwe});var Zb=y((RAe,jZ)=>{var Owe=pr(),Nwe=(n,e,t)=>Owe(n,e,t)<0;jZ.exports=Nwe});var yE=y((LAe,AZ)=>{var Bwe=pr(),Hwe=(n,e,t)=>Bwe(n,e,t)!==0;AZ.exports=Hwe});var Jb=y((FAe,MZ)=>{var qwe=pr(),Ywe=(n,e,t)=>qwe(n,e,t)>=0;MZ.exports=Ywe});var $b=y((IAe,OZ)=>{var Wwe=pr(),Zwe=(n,e,t)=>Wwe(n,e,t)<=0;OZ.exports=Zwe});var bE=y((jAe,NZ)=>{var Jwe=Yb(),$we=yE(),Xwe=mp(),Uwe=Jb(),Gwe=Zb(),Kwe=$b(),Qwe=(n,e,t,i)=>{switch(e){case"===":return typeof n=="object"&&(n=n.version),typeof t=="object"&&(t=t.version),n===t;case"!==":return typeof n=="object"&&(n=n.version),typeof t=="object"&&(t=t.version),n!==t;case"":case"=":case"==":return Jwe(n,t,i);case"!=":return $we(n,t,i);case">":return Xwe(n,t,i);case">=":return Uwe(n,t,i);case"<":return Gwe(n,t,i);case"<=":return Kwe(n,t,i);default:throw new TypeError(`Invalid operator: ${e}`)}};NZ.exports=Qwe});var HZ=y((AAe,BZ)=>{var zwe=qi(),Vwe=ql(),{re:Xb,t:Ub}=Hl(),eDe=(n,e)=>{if(n instanceof zwe)return n;if(typeof n=="number"&&(n=String(n)),typeof n!="string")return null;e=e||{};let t=null;if(!e.rtl)t=n.match(Xb[Ub.COERCE]);else{let i;for(;(i=Xb[Ub.COERCERTL].exec(n))&&(!t||t.index+t[0].length!==n.length);)(!t||i.index+i[0].length!==t.index+t[0].length)&&(t=i),Xb[Ub.COERCERTL].lastIndex=i.index+i[1].length+i[2].length;Xb[Ub.COERCERTL].lastIndex=-1}return t===null?null:Vwe(`${t[2]}.${t[3]||"0"}.${t[4]||"0"}`,e)};BZ.exports=eDe});var YZ=y((MAe,qZ)=>{"use strict";qZ.exports=function(n){n.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var yp=y((OAe,WZ)=>{"use strict";WZ.exports=Qe;Qe.Node=Yl;Qe.create=Qe;function Qe(n){var e=this;if(e instanceof Qe||(e=new Qe),e.tail=null,e.head=null,e.length=0,n&&typeof n.forEach=="function")n.forEach(function(r){e.push(r)});else if(arguments.length>0)for(var t=0,i=arguments.length;t1)t=e;else if(this.head)i=this.head.next,t=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var r=0;i!==null;r++)t=n(t,i.value,r),i=i.next;return t};Qe.prototype.reduceReverse=function(n,e){var t,i=this.tail;if(arguments.length>1)t=e;else if(this.tail)i=this.tail.prev,t=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var r=this.length-1;i!==null;r--)t=n(t,i.value,r),i=i.prev;return t};Qe.prototype.toArray=function(){for(var n=new Array(this.length),e=0,t=this.head;t!==null;e++)n[e]=t.value,t=t.next;return n};Qe.prototype.toArrayReverse=function(){for(var n=new Array(this.length),e=0,t=this.tail;t!==null;e++)n[e]=t.value,t=t.prev;return n};Qe.prototype.slice=function(n,e){e=e||this.length,e<0&&(e+=this.length),n=n||0,n<0&&(n+=this.length);var t=new Qe;if(ethis.length&&(e=this.length);for(var i=0,r=this.head;r!==null&&ithis.length&&(e=this.length);for(var i=this.length,r=this.tail;r!==null&&i>e;i--)r=r.prev;for(;r!==null&&i>n;i--,r=r.prev)t.push(r.value);return t};Qe.prototype.splice=function(n,e,...t){n>this.length&&(n=this.length-1),n<0&&(n=this.length+n);for(var i=0,r=this.head;r!==null&&i{"use strict";var rDe=yp(),Wl=Symbol("max"),ys=Symbol("length"),Gc=Symbol("lengthCalculator"),vp=Symbol("allowStale"),Zl=Symbol("maxAge"),ms=Symbol("dispose"),ZZ=Symbol("noDisposeOnSet"),bi=Symbol("lruList"),Kr=Symbol("cache"),$Z=Symbol("updateAgeOnGet"),vE=()=>1,XZ=class{constructor(e){if(typeof e=="number"&&(e={max:e}),e||(e={}),e.max&&(typeof e.max!="number"||e.max<0))throw new TypeError("max must be a non-negative number");let t=this[Wl]=e.max||1/0,i=e.length||vE;if(this[Gc]=typeof i!="function"?vE:i,this[vp]=e.stale||!1,e.maxAge&&typeof e.maxAge!="number")throw new TypeError("maxAge must be a number");this[Zl]=e.maxAge||0,this[ms]=e.dispose,this[ZZ]=e.noDisposeOnSet||!1,this[$Z]=e.updateAgeOnGet||!1,this.reset()}set max(e){if(typeof e!="number"||e<0)throw new TypeError("max must be a non-negative number");this[Wl]=e||1/0,bp(this)}get max(){return this[Wl]}set allowStale(e){this[vp]=!!e}get allowStale(){return this[vp]}set maxAge(e){if(typeof e!="number")throw new TypeError("maxAge must be a non-negative number");this[Zl]=e,bp(this)}get maxAge(){return this[Zl]}set lengthCalculator(e){typeof e!="function"&&(e=vE),e!==this[Gc]&&(this[Gc]=e,this[ys]=0,this[bi].forEach(t=>{t.length=this[Gc](t.value,t.key),this[ys]+=t.length})),bp(this)}get lengthCalculator(){return this[Gc]}get length(){return this[ys]}get itemCount(){return this[bi].length}rforEach(e,t){t=t||this;for(let i=this[bi].tail;i!==null;){let r=i.prev;JZ(this,e,i,t),i=r}}forEach(e,t){t=t||this;for(let i=this[bi].head;i!==null;){let r=i.next;JZ(this,e,i,t),i=r}}keys(){return this[bi].toArray().map(e=>e.key)}values(){return this[bi].toArray().map(e=>e.value)}reset(){this[ms]&&this[bi]&&this[bi].length&&this[bi].forEach(e=>this[ms](e.key,e.value)),this[Kr]=new Map,this[bi]=new rDe,this[ys]=0}dump(){return this[bi].map(e=>Gb(this,e)?!1:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[bi]}set(e,t,i){if(i=i||this[Zl],i&&typeof i!="number")throw new TypeError("maxAge must be a number");let r=i?Date.now():0,o=this[Gc](t,e);if(this[Kr].has(e)){if(o>this[Wl])return Kc(this,this[Kr].get(e)),!1;let l=this[Kr].get(e).value;return this[ms]&&(this[ZZ]||this[ms](e,l.value)),l.now=r,l.maxAge=i,l.value=t,this[ys]+=o-l.length,l.length=o,this.get(e),bp(this),!0}let s=new UZ(e,t,o,r,i);return s.length>this[Wl]?(this[ms]&&this[ms](e,t),!1):(this[ys]+=s.length,this[bi].unshift(s),this[Kr].set(e,this[bi].head),bp(this),!0)}has(e){if(!this[Kr].has(e))return!1;let t=this[Kr].get(e).value;return!Gb(this,t)}get(e){return wE(this,e,!0)}peek(e){return wE(this,e,!1)}pop(){let e=this[bi].tail;return e?(Kc(this,e),e.value):null}del(e){Kc(this,this[Kr].get(e))}load(e){this.reset();let t=Date.now();for(let i=e.length-1;i>=0;i--){let r=e[i],o=r.e||0;if(o===0)this.set(r.k,r.v);else{let s=o-t;s>0&&this.set(r.k,r.v,s)}}}prune(){this[Kr].forEach((e,t)=>wE(this,t,!1))}},wE=(n,e,t)=>{let i=n[Kr].get(e);if(i){let r=i.value;if(Gb(n,r)){if(Kc(n,i),!n[vp])return}else t&&(n[$Z]&&(i.value.now=Date.now()),n[bi].unshiftNode(i));return r.value}},Gb=(n,e)=>{if(!e||!e.maxAge&&!n[Zl])return!1;let t=Date.now()-e.now;return e.maxAge?t>e.maxAge:n[Zl]&&t>n[Zl]},bp=n=>{if(n[ys]>n[Wl])for(let e=n[bi].tail;n[ys]>n[Wl]&&e!==null;){let t=e.prev;Kc(n,e),e=t}},Kc=(n,e)=>{if(e){let t=e.value;n[ms]&&n[ms](t.key,t.value),n[ys]-=t.length,n[Kr].delete(t.key),n[bi].removeNode(e)}},UZ=class{constructor(e,t,i,r,o){this.key=e,this.value=t,this.length=i,this.now=r,this.maxAge=o||0}},JZ=(n,e,t,i)=>{let r=t.value;Gb(n,r)&&(Kc(n,t),n[vp]||(r=void 0)),r&&e.call(i,r.value,r.key,n)};GZ.exports=XZ});var fr=y((BAe,eJ)=>{var Qc=class{constructor(e,t){if(t=sDe(t),e instanceof Qc)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new Qc(e.raw,t);if(e instanceof DE)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split("||").map(i=>this.parseRange(i.trim())).filter(i=>i.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${e}`);if(this.set.length>1){let i=this.set[0];if(this.set=this.set.filter(r=>!zZ(r[0])),this.set.length===0)this.set=[i];else if(this.set.length>1){for(let r of this.set)if(r.length===1&&hDe(r[0])){this.set=[r];break}}}this.format()}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(e){e=e.trim();let i=`parseRange:${Object.keys(this.options).join(",")}:${e}`,r=QZ.get(i);if(r)return r;let o=this.options.loose,s=o?En[cn.HYPHENRANGELOOSE]:En[cn.HYPHENRANGE];e=e.replace(s,DDe(this.options.includePrerelease)),qt("hyphen replace",e),e=e.replace(En[cn.COMPARATORTRIM],lDe),qt("comparator trim",e),e=e.replace(En[cn.TILDETRIM],uDe),e=e.replace(En[cn.CARETTRIM],cDe),e=e.split(/\s+/).join(" ");let a=e.split(" ").map(h=>dDe(h,this.options)).join(" ").split(/\s+/).map(h=>wDe(h,this.options));o&&(a=a.filter(h=>(qt("loose invalid filter",h,this.options),!!h.match(En[cn.COMPARATORLOOSE])))),qt("range list",a);let l=new Map,u=a.map(h=>new DE(h,this.options));for(let h of u){if(zZ(h))return[h];l.set(h.value,h)}l.size>1&&l.has("")&&l.delete("");let c=[...l.values()];return QZ.set(i,c),c}intersects(e,t){if(!(e instanceof Qc))throw new TypeError("a Range is required");return this.set.some(i=>VZ(i,t)&&e.set.some(r=>VZ(r,t)&&i.every(o=>r.every(s=>o.intersects(s,t)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new aDe(e,this.options)}catch{return!1}for(let t=0;tn.value==="<0.0.0-0",hDe=n=>n.value==="",VZ=(n,e)=>{let t=!0,i=n.slice(),r=i.pop();for(;t&&i.length;)t=i.every(o=>r.intersects(o,e)),r=i.pop();return t},dDe=(n,e)=>(qt("comp",n,e),n=fDe(n,e),qt("caret",n),n=gDe(n,e),qt("tildes",n),n=yDe(n,e),qt("xrange",n),n=vDe(n,e),qt("stars",n),n),hn=n=>!n||n.toLowerCase()==="x"||n==="*",gDe=(n,e)=>n.trim().split(/\s+/).map(t=>pDe(t,e)).join(" "),pDe=(n,e)=>{let t=e.loose?En[cn.TILDELOOSE]:En[cn.TILDE];return n.replace(t,(i,r,o,s,a)=>{qt("tilde",n,i,r,o,s,a);let l;return hn(r)?l="":hn(o)?l=`>=${r}.0.0 <${+r+1}.0.0-0`:hn(s)?l=`>=${r}.${o}.0 <${r}.${+o+1}.0-0`:a?(qt("replaceTilde pr",a),l=`>=${r}.${o}.${s}-${a} <${r}.${+o+1}.0-0`):l=`>=${r}.${o}.${s} <${r}.${+o+1}.0-0`,qt("tilde return",l),l})},fDe=(n,e)=>n.trim().split(/\s+/).map(t=>mDe(t,e)).join(" "),mDe=(n,e)=>{qt("caret",n,e);let t=e.loose?En[cn.CARETLOOSE]:En[cn.CARET],i=e.includePrerelease?"-0":"";return n.replace(t,(r,o,s,a,l)=>{qt("caret",n,r,o,s,a,l);let u;return hn(o)?u="":hn(s)?u=`>=${o}.0.0${i} <${+o+1}.0.0-0`:hn(a)?o==="0"?u=`>=${o}.${s}.0${i} <${o}.${+s+1}.0-0`:u=`>=${o}.${s}.0${i} <${+o+1}.0.0-0`:l?(qt("replaceCaret pr",l),o==="0"?s==="0"?u=`>=${o}.${s}.${a}-${l} <${o}.${s}.${+a+1}-0`:u=`>=${o}.${s}.${a}-${l} <${o}.${+s+1}.0-0`:u=`>=${o}.${s}.${a}-${l} <${+o+1}.0.0-0`):(qt("no pr"),o==="0"?s==="0"?u=`>=${o}.${s}.${a}${i} <${o}.${s}.${+a+1}-0`:u=`>=${o}.${s}.${a}${i} <${o}.${+s+1}.0-0`:u=`>=${o}.${s}.${a} <${+o+1}.0.0-0`),qt("caret return",u),u})},yDe=(n,e)=>(qt("replaceXRanges",n,e),n.split(/\s+/).map(t=>bDe(t,e)).join(" ")),bDe=(n,e)=>{n=n.trim();let t=e.loose?En[cn.XRANGELOOSE]:En[cn.XRANGE];return n.replace(t,(i,r,o,s,a,l)=>{qt("xRange",n,i,r,o,s,a,l);let u=hn(o),c=u||hn(s),h=c||hn(a),d=h;return r==="="&&d&&(r=""),l=e.includePrerelease?"-0":"",u?r===">"||r==="<"?i="<0.0.0-0":i="*":r&&d?(c&&(s=0),a=0,r===">"?(r=">=",c?(o=+o+1,s=0,a=0):(s=+s+1,a=0)):r==="<="&&(r="<",c?o=+o+1:s=+s+1),r==="<"&&(l="-0"),i=`${r+o}.${s}.${a}${l}`):c?i=`>=${o}.0.0${l} <${+o+1}.0.0-0`:h&&(i=`>=${o}.${s}.0${l} <${o}.${+s+1}.0-0`),qt("xRange return",i),i})},vDe=(n,e)=>(qt("replaceStars",n,e),n.trim().replace(En[cn.STAR],"")),wDe=(n,e)=>(qt("replaceGTE0",n,e),n.trim().replace(En[e.includePrerelease?cn.GTE0PRE:cn.GTE0],"")),DDe=n=>(e,t,i,r,o,s,a,l,u,c,h,d,g)=>(hn(i)?t="":hn(r)?t=`>=${i}.0.0${n?"-0":""}`:hn(o)?t=`>=${i}.${r}.0${n?"-0":""}`:s?t=`>=${t}`:t=`>=${t}${n?"-0":""}`,hn(u)?l="":hn(c)?l=`<${+u+1}.0.0-0`:hn(h)?l=`<${u}.${+c+1}.0-0`:d?l=`<=${u}.${c}.${h}-${d}`:n?l=`<${u}.${c}.${+h+1}-0`:l=`<=${l}`,`${t} ${l}`.trim()),CDe=(n,e,t)=>{for(let i=0;i0){let r=n[i].semver;if(r.major===e.major&&r.minor===e.minor&&r.patch===e.patch)return!0}return!1}return!0}});var wp=y((HAe,oJ)=>{var Dp=Symbol("SemVer ANY"),Cp=class{static get ANY(){return Dp}constructor(e,t){if(t=xDe(t),e instanceof Cp){if(e.loose===!!t.loose)return e;e=e.value}xE("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===Dp?this.value="":this.value=this.operator+this.semver.version,xE("comp",this)}parse(e){let t=this.options.loose?tJ[iJ.COMPARATORLOOSE]:tJ[iJ.COMPARATOR],i=e.match(t);if(!i)throw new TypeError(`Invalid comparator: ${e}`);this.operator=i[1]!==void 0?i[1]:"",this.operator==="="&&(this.operator=""),i[2]?this.semver=new nJ(i[2],this.options.loose):this.semver=Dp}toString(){return this.value}test(e){if(xE("Comparator.test",e,this.options.loose),this.semver===Dp||e===Dp)return!0;if(typeof e=="string")try{e=new nJ(e,this.options)}catch{return!1}return CE(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof Cp))throw new TypeError("a Comparator is required");if((!t||typeof t!="object")&&(t={loose:!!t,includePrerelease:!1}),this.operator==="")return this.value===""?!0:new rJ(e.value,t).test(this.value);if(e.operator==="")return e.value===""?!0:new rJ(this.value,t).test(e.semver);let i=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">"),r=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<"),o=this.semver.version===e.semver.version,s=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<="),a=CE(this.semver,"<",e.semver,t)&&(this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"),l=CE(this.semver,">",e.semver,t)&&(this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">");return i||r||o&&s||a||l}};oJ.exports=Cp;var xDe=fp(),{re:tJ,t:iJ}=Hl(),CE=bE(),xE=pp(),nJ=qi(),rJ=fr()});var xp=y((qAe,sJ)=>{var SDe=fr(),TDe=(n,e,t)=>{try{e=new SDe(e,t)}catch{return!1}return e.test(n)};sJ.exports=TDe});var lJ=y((YAe,aJ)=>{var kDe=fr(),EDe=(n,e)=>new kDe(n,e).set.map(t=>t.map(i=>i.value).join(" ").trim().split(" "));aJ.exports=EDe});var cJ=y((WAe,uJ)=>{var PDe=qi(),_De=fr(),RDe=(n,e,t)=>{let i=null,r=null,o=null;try{o=new _De(e,t)}catch{return null}return n.forEach(s=>{o.test(s)&&(!i||r.compare(s)===-1)&&(i=s,r=new PDe(i,t))}),i};uJ.exports=RDe});var dJ=y((ZAe,hJ)=>{var LDe=qi(),FDe=fr(),IDe=(n,e,t)=>{let i=null,r=null,o=null;try{o=new FDe(e,t)}catch{return null}return n.forEach(s=>{o.test(s)&&(!i||r.compare(s)===1)&&(i=s,r=new LDe(i,t))}),i};hJ.exports=IDe});var fJ=y((JAe,pJ)=>{var SE=qi(),jDe=fr(),gJ=mp(),ADe=(n,e)=>{n=new jDe(n,e);let t=new SE("0.0.0");if(n.test(t)||(t=new SE("0.0.0-0"),n.test(t)))return t;t=null;for(let i=0;i{let a=new SE(s.semver.version);switch(s.operator){case">":a.prerelease.length===0?a.patch++:a.prerelease.push(0),a.raw=a.format();case"":case">=":(!o||gJ(a,o))&&(o=a);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${s.operator}`)}}),o&&(!t||gJ(t,o))&&(t=o)}return t&&n.test(t)?t:null};pJ.exports=ADe});var yJ=y(($Ae,mJ)=>{var MDe=fr(),ODe=(n,e)=>{try{return new MDe(n,e).range||"*"}catch{return null}};mJ.exports=ODe});var Kb=y((XAe,DJ)=>{var NDe=qi(),wJ=wp(),{ANY:BDe}=wJ,HDe=fr(),qDe=xp(),bJ=mp(),vJ=Zb(),YDe=$b(),WDe=Jb(),ZDe=(n,e,t,i)=>{n=new NDe(n,i),e=new HDe(e,i);let r,o,s,a,l;switch(t){case">":r=bJ,o=YDe,s=vJ,a=">",l=">=";break;case"<":r=vJ,o=WDe,s=bJ,a="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(qDe(n,e,i))return!1;for(let u=0;u{g.semver===BDe&&(g=new wJ(">=0.0.0")),h=h||g,d=d||g,r(g.semver,h.semver,i)?h=g:s(g.semver,d.semver,i)&&(d=g)}),h.operator===a||h.operator===l||(!d.operator||d.operator===a)&&o(n,d.semver))return!1;if(d.operator===l&&s(n,d.semver))return!1}return!0};DJ.exports=ZDe});var xJ=y((UAe,CJ)=>{var JDe=Kb(),$De=(n,e,t)=>JDe(n,e,">",t);CJ.exports=$De});var TJ=y((GAe,SJ)=>{var XDe=Kb(),UDe=(n,e,t)=>XDe(n,e,"<",t);SJ.exports=UDe});var PJ=y((KAe,EJ)=>{var kJ=fr(),GDe=(n,e,t)=>(n=new kJ(n,t),e=new kJ(e,t),n.intersects(e));EJ.exports=GDe});var RJ=y((QAe,_J)=>{var KDe=xp(),QDe=pr();_J.exports=(n,e,t)=>{let i=[],r=null,o=null,s=n.sort((c,h)=>QDe(c,h,t));for(let c of s)KDe(c,e,t)?(o=c,r||(r=c)):(o&&i.push([r,o]),o=null,r=null);r&&i.push([r,null]);let a=[];for(let[c,h]of i)c===h?a.push(c):!h&&c===s[0]?a.push("*"):h?c===s[0]?a.push(`<=${h}`):a.push(`${c} - ${h}`):a.push(`>=${c}`);let l=a.join(" || "),u=typeof e.raw=="string"?e.raw:String(e);return l.length{var LJ=fr(),Qb=wp(),{ANY:TE}=Qb,Sp=xp(),kE=pr(),zDe=(n,e,t={})=>{if(n===e)return!0;n=new LJ(n,t),e=new LJ(e,t);let i=!1;e:for(let r of n.set){for(let o of e.set){let s=VDe(r,o,t);if(i=i||s!==null,s)continue e}if(i)return!1}return!0},VDe=(n,e,t)=>{if(n===e)return!0;if(n.length===1&&n[0].semver===TE){if(e.length===1&&e[0].semver===TE)return!0;t.includePrerelease?n=[new Qb(">=0.0.0-0")]:n=[new Qb(">=0.0.0")]}if(e.length===1&&e[0].semver===TE){if(t.includePrerelease)return!0;e=[new Qb(">=0.0.0")]}let i=new Set,r,o;for(let g of n)g.operator===">"||g.operator===">="?r=FJ(r,g,t):g.operator==="<"||g.operator==="<="?o=IJ(o,g,t):i.add(g.semver);if(i.size>1)return null;let s;if(r&&o){if(s=kE(r.semver,o.semver,t),s>0)return null;if(s===0&&(r.operator!==">="||o.operator!=="<="))return null}for(let g of i){if(r&&!Sp(g,String(r),t)||o&&!Sp(g,String(o),t))return null;for(let p of e)if(!Sp(g,String(p),t))return!1;return!0}let a,l,u,c,h=o&&!t.includePrerelease&&o.semver.prerelease.length?o.semver:!1,d=r&&!t.includePrerelease&&r.semver.prerelease.length?r.semver:!1;h&&h.prerelease.length===1&&o.operator==="<"&&h.prerelease[0]===0&&(h=!1);for(let g of e){if(c=c||g.operator===">"||g.operator===">=",u=u||g.operator==="<"||g.operator==="<=",r){if(d&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===d.major&&g.semver.minor===d.minor&&g.semver.patch===d.patch&&(d=!1),g.operator===">"||g.operator===">="){if(a=FJ(r,g,t),a===g&&a!==r)return!1}else if(r.operator===">="&&!Sp(r.semver,String(g),t))return!1}if(o){if(h&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===h.major&&g.semver.minor===h.minor&&g.semver.patch===h.patch&&(h=!1),g.operator==="<"||g.operator==="<="){if(l=IJ(o,g,t),l===g&&l!==o)return!1}else if(o.operator==="<="&&!Sp(o.semver,String(g),t))return!1}if(!g.operator&&(o||r)&&s!==0)return!1}return!(r&&u&&!o&&s!==0||o&&c&&!r&&s!==0||d||h)},FJ=(n,e,t)=>{if(!n)return e;let i=kE(n.semver,e.semver,t);return i>0?n:i<0||e.operator===">"&&n.operator===">="?e:n},IJ=(n,e,t)=>{if(!n)return e;let i=kE(n.semver,e.semver,t);return i<0?n:i>0||e.operator==="<"&&n.operator==="<="?e:n};jJ.exports=zDe});var Tp=y((VAe,MJ)=>{var EE=Hl();MJ.exports={re:EE.re,src:EE.src,tokens:EE.t,SEMVER_SPEC_VERSION:gp().SEMVER_SPEC_VERSION,SemVer:qi(),compareIdentifiers:Bb().compareIdentifiers,rcompareIdentifiers:Bb().rcompareIdentifiers,parse:ql(),valid:nZ(),clean:oZ(),inc:lZ(),diff:pZ(),major:mZ(),minor:bZ(),patch:wZ(),prerelease:CZ(),compare:pr(),rcompare:SZ(),compareLoose:kZ(),compareBuild:Wb(),sort:RZ(),rsort:FZ(),gt:mp(),lt:Zb(),eq:Yb(),neq:yE(),gte:Jb(),lte:$b(),cmp:bE(),coerce:HZ(),Comparator:wp(),Range:fr(),satisfies:xp(),toComparators:lJ(),maxSatisfying:cJ(),minSatisfying:dJ(),minVersion:fJ(),validRange:yJ(),outside:Kb(),gtr:xJ(),ltr:TJ(),intersects:PJ(),simplifyRange:RJ(),subset:AJ()}});var zc,OJ,PE,iMe,zb,NJ=_(()=>{"use strict";zc=x(require("path")),OJ=x(require("fs"));re();et();PE=x(jg()),iMe=W()("model-resolver"),zb=class{get nodeFolder(){return Eg("npm")?this._npmFolder?Promise.resolve(this._npmFolder):bo("npm --loglevel silent root -g",{},3e3).then(e=>(this._npmFolder=(0,PE.default)(e).trim(),this._npmFolder)):Promise.resolve("")}get yarnFolder(){return Eg("yarnpkg")?this._yarnFolder?Promise.resolve(this._yarnFolder):bo("yarnpkg global dir",{},3e3).then(e=>{let t=zc.default.join((0,PE.default)(e).trim(),"node_modules"),i=OJ.default.existsSync(t);return i&&(this._yarnFolder=t),i?t:""}):Promise.resolve("")}async resolveModule(e){let t=await this.nodeFolder,i=await this.yarnFolder;if(i){let r=await $t(zc.default.join(i,e,"package.json"));if(r&&r.isFile())return zc.default.join(i,e)}if(t){let r=await $t(zc.default.join(t,e,"package.json"));if(r&&r.isFile())return zc.default.join(t,e)}return null}}});function WJ(n,e){if(!e.startsWith("nvim-")&&!e.startsWith("patch-"))throw new Error("Feature param could only starts with nvim and patch");if(!n.isVim&&e.startsWith("patch-")||n.isVim&&e.startsWith("nvim-"))return!1;if(n.isVim){let[t,i,r,o]=n.version.match(/^(\d)(\d{2})(\d+)$/),s=`${i}.${parseInt(r,10)}.${parseInt(o,10)}`;return RE.default.gte(s,e.slice(6))}return RE.default.gte(n.version,e.slice(5))}function ZJ(n=""){return _E.has(n)?_E.get(n):(Vb=Vb+1,_E.set(n,Vb),Vb)}function JJ(n){let t=n.getConfiguration("coc.preferences").get("watchmanPath","watchman");try{return YJ.default.sync(t)}catch{return null}}async function $J(n,e,t){let i=await n.call("expand","%:p");i=kp.default.normalize(i);let r=i&&kp.default.isAbsolute(i);if(r&&!Je(e,i,!0))return jc(t,kp.default.dirname(i));let o=jc(t,e);return o&&o!=HJ.default.homedir()?o:r?jc(t,kp.default.dirname(i)):null}function XJ(n){return eCe.resolveModule(n)}function LE(n,e,t){if(Array.isArray(n)){let i=0;for(let r of n){let o=LE(r,e,t);if(o===10)return o;o>i&&(i=o)}return i}else{if(typeof n=="string")return n==="*"?5:n===t?10:0;if(n&&qJ.TextDocumentFilter.is(n)){let i=I.parse(e),{language:r,pattern:o,scheme:s}=n,a=0;if(s)if(s===i.scheme)a=5;else if(s==="*")a=3;else return 0;if(r)if(r===t)a=10;else if(r==="*")a=Math.max(a,5);else return 0;if(o){let l=an||Dc,u=l?o.toLowerCase():o,c=l?i.fsPath.toLowerCase():i.fsPath;if(u===c||(0,BJ.default)(c,u,{dot:!0}))a=5;else return 0}return a}else return 0}}var BJ,HJ,kp,RE,qJ,YJ,Vb,eCe,_E,UJ=_(()=>{"use strict";BJ=x(Yn()),HJ=x(require("os")),kp=x(require("path")),RE=x(Tp()),qJ=x(q());Ee();YJ=x(Tg());NJ();et();Cc();Vb=2e3,eCe=new zb,_E=new Map});var ev,tCe,tv,GJ=_(()=>{"use strict";He();ev=x(q());re();tCe=W()("core-keymaps"),tv=class{constructor(e){this.documents=e;this.keymaps=new Map}attach(e){this.nvim=e}async doKeymap(e,t="",i){let r=this.keymaps.get(e);if(!r)return tCe.error(`keymap for ${e} not found`),i&&this.nvim.command(`silent! unmap ${i.startsWith("{")&&i.endsWith("}")?`<${i.slice(1,-1)}>`:i}`,!0),t;let[o,s]=r,a=await Promise.resolve(o());return s&&await this.nvim.command(`silent! call repeat#set("\\(coc-${e})", -1)`),a??t}registerKeymap(e,t,i,r={}){if(!t)throw new Error(`Invalid key ${t} of registerKeymap`);if(this.keymaps.has(t))throw new Error(`${t} already exists.`);r=Object.assign({sync:!0,cancel:!0,silent:!0,repeat:!1},r);let{nvim:o}=this;this.keymaps.set(t,[i,!!r.repeat]);let s=r.sync?"request":"notify",a=r.silent?"":"";for(let l of e)if(l=="i")o.command(`inoremap ${a} (coc-${t}) coc#_insert_key('${s}', '${t}', ${r.cancel?1:0})`,!0);else{let u=kT(l);o.command(`${l}noremap ${a} (coc-${t}) :${u}call coc#rpc#${s}('doKeymap', ['${t}'])`,!0)}return ev.Disposable.create(()=>{this.keymaps.delete(t);for(let l of e)o.command(`${l}unmap (coc-${t})`,!0)})}registerExprKeymap(e,t,i,r=!1){let o=`${e}${global.Buffer.from(t).toString("base64")}${r?"1":"0"}`,{nvim:s}=this;return this.keymaps.set(o,[i,!1]),e=="i"?s.command(`inoremap ${r?"":""} ${t} coc#_insert_key('request', '${o}')`,!0):s.command(`${e}noremap ${r?"":""} ${t} coc#rpc#request('doKeymap', ['${o}'])`,!0),ev.Disposable.create(()=>{this.keymaps.delete(o),s.command(`${e}unmap ${r?"":""} ${t}`,!0)})}registerLocalKeymap(e,t,i,r=!1){let o=ps(),{nvim:s}=this,a=this.documents.bufnr;this.keymaps.set(o,[i,!1]);let l=r?"notify":"request",u=kT(e),c=t.startsWith("<")&&t.endsWith(">")?`{${t.slice(1,-1)}}`:t;if(this.nvim.hasFunction("nvim_buf_set_keymap")&&!global.hasOwnProperty("__TEST__"))s.call("nvim_buf_set_keymap",[0,e,t,`:${u}call coc#rpc#${l}('doKeymap', ['${o}', '', '${c}'])`,{silent:!0,nowait:!0}],!0);else{let h=`${e}noremap ${t} :${u}call coc#rpc#${l}('doKeymap', ['${o}', '', '${c}'])`;s.command(h,!0)}return ev.Disposable.create(()=>{this.keymaps.delete(o),s.call("coc#compat#buf_del_keymap",[a,e,t],!0)})}}});var pMe,iv,KJ=_(()=>{"use strict";re();pMe=W()("core-locations"),iv=class{constructor(e,t,i){this.configurations=e;this.documents=t;this.contentProvider=i;this.disposables=[]}attach(e,t){this.nvim=e,this.env=t}async showLocations(e){let{documents:t,nvim:i,env:r,configurations:o}=this,s=await t.getQuickfixList(e);if(o.getConfiguration("coc.preferences").get("useQuickfixForLocations",!1)){let l=await i.getVar("coc_quickfix_open_command");typeof l!="string"&&(l=s.length<10?`copen ${s.length}`:"copen"),i.pauseNotification(),i.call("setqflist",[s],!0),i.command(l,!0),i.resumeNotification(!1,!0)}else await i.setVar("coc_jump_locations",s),r.locationlist?i.command("CocList --normal --auto-preview location",!0):i.call("coc#util#do_autocmd",["CocLocationsChange"],!0)}dispose(){$(this.disposables)}}});var Vc,vMe,nv,QJ=_(()=>{"use strict";we();Vc=x(q());re();vMe=W()("core-watchers"),nv=class{constructor(){this.watchedOptions=new Set;this.disposables=[];this._onDidRuntimePathChange=new Vc.Emitter;this._onDidOptionChange=new Vc.Emitter;this.onDidRuntimePathChange=this._onDidRuntimePathChange.event;this.onDidOptionChange=this._onDidOptionChange.event}get options(){return Array.from(this.watchedOptions)}attach(e,t){this.nvim=e,this.env=t,this.watchOption("runtimepath",(i,r)=>{let o=i.split(","),a=r.split(",").filter(l=>!o.includes(l));a.length>0&&this._onDidRuntimePathChange.fire(a),this.env.runtimepath=r},this.disposables)}watchOption(e,t,i){let r=this.watchedOptions.has(e);r||(this.watchedOptions.add(e),this._onDidOptionChange.fire());let o=P.on("OptionSet",async(s,a,l)=>{s==e&&t&&await Promise.resolve(t(a,l))});i&&i.push(Vc.Disposable.create(()=>{o.dispose(),!r&&(this.watchedOptions.delete(e),this._onDidOptionChange.fire())}))}watchGlobal(e,t,i){let{nvim:r}=this;r.call("coc#_watch",e,!0);let o=P.on("GlobalChange",async(s,a,l)=>{s==e&&await Promise.resolve(t(a,l))});i&&i.push(Vc.Disposable.create(()=>{o.dispose(),r.call("coc#_unwatch",e,!0)}))}dispose(){$(this.disposables),this._onDidOptionChange.dispose(),this._onDidRuntimePathChange.dispose()}}});var Ep,zJ,rv,VJ=_(()=>{"use strict";Ep=x(q());we();Ae();zJ=W()("core-editors"),rv=class{constructor(e){this.documents=e;this.disposables=[];this.editors=new Map;this._onDidChangeActiveTextEditor=new Ep.Emitter;this._onDidChangeVisibleTextEditors=new Ep.Emitter;this.onDidChangeActiveTextEditor=this._onDidChangeActiveTextEditor.event;this.onDidChangeVisibleTextEditors=this._onDidChangeVisibleTextEditors.event}get activeTextEditor(){return this.editors.get(this.winid)}get visibleTextEditors(){return Array.from(this.editors.values())}onChange(e){let t=`${e.winid}-${e.document.bufnr}-${e.document.uri}`;t!=this.previousId&&(this.previousId=t,this._onDidChangeActiveTextEditor.fire(e))}async attach(e){this.nvim=e;let{documents:t}=this,i=t.getDocument(t.bufnr);i&&i.winid>0&&(this.winid=i.winid,await this.createTextEditor(this.winid)),P.on("WinEnter",r=>{this.winid=r;let o=this.editors.get(r);o&&this.onChange(o)},null,this.disposables),P.on("CursorHold",async()=>{let[r,o,s]=await e.eval("[win_getid(),&buftype,coc#window#is_float(win_getid())]"),a=!1;!s&&["","acwrite"].includes(o)&&!this.editors.has(r)&&await this.createTextEditor(r)&&(a=!0),a&&this._onDidChangeVisibleTextEditors.fire(this.visibleTextEditors)},null,this.disposables),P.on("WinClosed",r=>{this.editors.has(r)&&(this.editors.delete(r),this._onDidChangeVisibleTextEditors.fire(this.visibleTextEditors))},null,this.disposables),P.on("BufWinEnter",async(r,o)=>{this.winid=o,await this.createTextEditor(o,!0)},null,this.disposables)}async createTextEditor(e,t=!1){let{documents:i,nvim:r}=this,o=await r.call("coc#util#get_editoroption",[e]);if(!o)return!1;let s=!1;if(t)for(let l of this.editors.keys())o.winids.includes(l)||(s=!0,this.editors.delete(l));let a=i.getDocument(o.bufnr);if(a){let l=this.fromOptions(o,a);return this.editors.set(e,l),e==this.winid&&this.onChange(l),this._onDidChangeVisibleTextEditors.fire(this.visibleTextEditors),zJ.debug("editor created winid & bufnr & tabnr: ",e,o.bufnr,o.tabpagenr),!0}else s&&this._onDidChangeVisibleTextEditors.fire(this.visibleTextEditors);return zJ.error(`document not found for window: ${e}`),!1}fromOptions(e,t){let{visibleRanges:i}=e,r=k.getTabId(e.tabpagenr);return{get tabpagenr(){return k.getTabNumber(r)},winid:e.winid,winnr:e.winnr,document:t,visibleRanges:i.map(o=>Ep.Range.create(o[0]-1,0,o[1],0)),options:{tabSize:e.tabSize,insertSpaces:!!e.insertSpaces}}}}});function Pp(n){if(!(!n||!_p.default.isAbsolute(n)))return{name:_p.default.basename(n),uri:I.file(n).toString()}}var _p,e$,ov,t$=_(()=>{"use strict";_p=x(require("path")),e$=x(q());Ee();$r();So();et();ov=class{constructor(e){this.configurations=e;this._onDidChangeWorkspaceFolders=new e$.Emitter;this.onDidChangeWorkspaceFolders=this._onDidChangeWorkspaceFolders.event;this.rootPatterns=new Map;this._workspaceFolders=[]}setWorkspaceFolders(e){if(!e||!Array.isArray(e))return;let t=e.map(i=>Pp(i));this._workspaceFolders=t.filter(i=>i!=null)}getWorkspaceFolder(e){if(e.scheme!=="file")return;let t=Array.from(this._workspaceFolders).map(o=>I.parse(o.uri).fsPath);t.sort((o,s)=>s.length-o.length);let i=e.fsPath,r=t.find(o=>Je(o,i,!0));return Pp(r)}getRelativePath(e,t){let i,r="";if(typeof e=="string"?(i=I.file(e),r=e):typeof e<"u"&&(i=e,r=e.fsPath),!i)return r;let o=this.getWorkspaceFolder(i);if(!o)return r;typeof t>"u"&&this._workspaceFolders&&(t=this._workspaceFolders.length>1);let s=_p.default.relative(I.parse(o.uri).fsPath,i.fsPath);return s=s==""?i.fsPath:s,t&&o.name&&(s=`${o.name}/${s}`),s}get workspaceFolders(){return this._workspaceFolders}addRootPattern(e,t){let i=this.rootPatterns.get(e)||[];for(let r of t)i.includes(r)||i.push(r);this.rootPatterns.set(e,i)}resolveRoot(e,t,i,r){if(e.buftype!==""||e.schema!=="file"||!e.enabled)return null;let o=[0,1,2],s=I.parse(e.uri),a=_p.default.dirname(s.fsPath),l=this.configurations.getConfiguration("workspace",e.uri),u=l.get("ignoredFiletypes",[]),c=l.get("bottomUpFiletypes",[]),h=l.get("workspaceFolderCheckCwd",!0),d=l.get("ignoredFolders",[]),g=l.get("workspaceFolderFallbackCwd",!0);if(u!=null&&u.includes(e.filetype))return null;let p=this.getWorkspaceFolder(I.parse(e.uri));if(p)return I.parse(p.uri).fsPath;d=Array.isArray(d)?d.filter(m=>m&&m.length>0).map(m=>r(m)):[];let f=null;for(let m of o){let b=this.getRootPatterns(e,m);if(b&&b.length){let w=c.includes("*")||c.includes(e.filetype),D=Wy(a,b,t,w,h,d);if(D){f=D;break}}}return g&&!f&&!d.includes(t)&&Je(t,a,!0)&&(f=t),f&&this.addWorkspaceFolder(f,i),f}addWorkspaceFolder(e,t){let i=Pp(e);if(!!i)return this._workspaceFolders.findIndex(r=>r.uri==i.uri)==-1&&(this._workspaceFolders.push(i),t&&this._onDidChangeWorkspaceFolders.fire({added:[i],removed:[]})),i}renameWorkspaceFolder(e,t){let i=Pp(t);if(!i)return;let r=this._workspaceFolders.findIndex(s=>I.parse(s.uri).fsPath==e);if(r==-1)return;let o=this.workspaceFolders[r];this._workspaceFolders.splice(r,1,i),this._onDidChangeWorkspaceFolders.fire({removed:[o],added:[i]})}removeWorkspaceFolder(e){let t=Pp(e);if(!t)return;let i=this._workspaceFolders.findIndex(r=>r.uri==t.uri);i!=-1&&(this._workspaceFolders.splice(i,1),this._onDidChangeWorkspaceFolders.fire({removed:[t],added:[]}))}getRootPatterns(e,t){let{uri:i}=e;return t==0?e.getVar("root_patterns",[])||[]:t==1?this.getServerRootPatterns(e.languageId):this.configurations.getConfiguration("coc.preferences",i).get("rootPatterns",[".git",".hg",".projections.json"]).slice()}reset(){this.rootPatterns.clear(),this._workspaceFolders=[]}getServerRootPatterns(e){let t=this.configurations.getConfiguration().get("languageserver",{}),i=[];for(let r of Object.keys(t)){let o=t[r],{filetypes:s,rootPatterns:a}=o;Array.isArray(s)&&a&&s.includes(e)&&i.push(...a)}return i=i.concat(this.rootPatterns.get(e)||[]),i.length?va(i):[]}}});var sv,i$=_(()=>{"use strict";we();re();sv=class{constructor(e,t){this._create=e;this.disposables=[];this.itemsMap=new Map;let{disposables:i}=this;for(let r of t.documents)this.create(r);t.onDidOpenTextDocument(r=>{this.create(t.getDocument(r.bufnr))},null,i),t.onDidChangeDocument(r=>{this.onChange(r)},null,i),t.onDidCloseDocument(r=>{this.delete(r.bufnr)},null,i),P.on("LinesChanged",r=>{let o=this.itemsMap.get(r);o&&typeof o.item.onTextChange=="function"&&o.item.onTextChange()},null,i)}get items(){return Array.from(this.itemsMap.values()).map(e=>e.item)}getItem(e){var i;if(typeof e=="number")return(i=this.itemsMap.get(e))==null?void 0:i.item;let t=Array.from(this.itemsMap.values()).find(r=>r.uri==e);return t?t.item:void 0}create(e){if(!e)return;let t=this.itemsMap.get(e.bufnr);t&&t.item.dispose();let i=this._create(e);i&&this.itemsMap.set(e.bufnr,{uri:e.uri,item:i})}onChange(e){let t=this.itemsMap.get(e.bufnr);t&&typeof t.item.onChange=="function"&&t.item.onChange(e)}delete(e){let t=this.itemsMap.get(e);t&&(t.item.dispose(),this.itemsMap.delete(e))}reset(){for(let e of this.itemsMap.values())e.item.dispose();this.itemsMap.clear()}dispose(){$(this.disposables);for(let e of this.itemsMap.values())e.item.dispose();this._create=void 0,this.itemsMap.clear()}}});var Zn,FE,eh,IE=_(()=>{"use strict";Zn=x(Bn()),FE=x(require("path")),eh=class{constructor(e){this.filepath=e}fetch(e){let t=this.load();if(!e)return t;let i=e.split(".");for(let r of i){if(typeof t[r]>"u")return;t=t[r]}return t}exists(e){let t=this.load(),i=e.split(".");for(let r of i){if(typeof t[r]>"u")return!1;t=t[r]}return!0}delete(e){let t=this.load(),i=t,r=e.split("."),o=r.length;for(let s=0;s"u");s++){if(s==o-1){delete t[r[s]],Zn.default.writeFileSync(this.filepath,JSON.stringify(i,null,2),"utf8");break}t=t[r[s]]}}push(e,t){let i=this.load()||{},r=i,o=e.split("."),s=o.length;if(r==null){let a=FE.default.dirname(this.filepath);Zn.default.mkdirpSync(a),r=i}for(let a=0;a"u"&&(r[l]={}),r=r[l]}}load(){let e=FE.default.dirname(this.filepath),t=Zn.default.statSync(e);if(!t||!t.isDirectory())return Zn.default.mkdirpSync(e),Zn.default.writeFileSync(this.filepath,"{}","utf8"),{};try{let i=Zn.default.readFileSync(this.filepath,"utf8");return JSON.parse(i.trim())}catch{return Zn.default.writeFileSync(this.filepath,"{}","utf8"),{}}}clear(){let e=Zn.default.statSync(this.filepath);!e||!e.isFile()||Zn.default.writeFileSync(this.filepath,"{}","utf8")}destroy(){Zn.default.existsSync(this.filepath)&&Zn.default.unlinkSync(this.filepath)}}});var jE,xa,HMe,Sa,av=_(()=>{"use strict";jE=x(require("path")),xa=x(Bn());et();So();HMe=W()("model-mru"),Sa=class{constructor(e,t,i=5e3){this.maximum=i;this.file=jE.default.join(t||process.env.COC_DATA_HOME,e);let r=jE.default.dirname(this.file);xa.default.mkdirpSync(r)}async load(){try{let e=await fa(this.file,0,this.maximum);return e.length>this.maximum&&await Zy(this.file,e.join(` +`)),e[e.length-1]==""&&(e=e.slice(0,-1)),va(e)}catch{return[]}}loadSync(){if(!xa.default.existsSync(this.file))return[];try{let e=xa.default.readFileSync(this.file,"utf8");return e=e.trim(),e.length?e.trim().split(` +`):[]}catch{return[]}}async add(e){let t;try{t=xa.default.readFileSync(this.file),t[0]===239&&t[1]===187&&t[2]===191&&(t=t.slice(3)),t=Buffer.concat([Buffer.from(e,"utf8"),new Uint8Array([10]),t])}catch{t=Buffer.concat([Buffer.from(e,"utf8"),new Uint8Array([10])])}await xa.default.writeFile(this.file,t,"utf8")}async remove(e){let t=await this.load(),i=t.length;t=t.filter(r=>r!=e),t.length!=i&&await xa.default.writeFile(this.file,t.join(` +`),"utf8")}async clean(){try{await xa.default.unlink(this.file)}catch{}}}});var lv,uv,n$=_(()=>{"use strict";lv=x(q());we();re();uv=class{constructor(e,t){this.nvim=e;this.id=t;this.disposables=[];this._onExit=new lv.Emitter;this._onStderr=new lv.Emitter;this._onStdout=new lv.Emitter;this.onExit=this._onExit.event;this.onStdout=this._onStdout.event;this.onStderr=this._onStderr.event;P.on("TaskExit",(i,r)=>{i==this.id&&this._onExit.fire(r)},null,this.disposables),P.on("TaskStderr",(i,r)=>{i==this.id&&this._onStderr.fire(r)},null,this.disposables),P.on("TaskStdout",(i,r)=>{i==this.id&&this._onStdout.fire(r)},null,this.disposables)}async start(e){let{nvim:t}=this;return await t.call("coc#task#start",[this.id,e])}async stop(){let{nvim:e}=this;await e.call("coc#task#stop",[this.id])}get running(){let{nvim:e}=this;return e.call("coc#task#running",[this.id])}dispose(){let{nvim:e}=this;e.call("coc#task#stop",[this.id],!0),this._onStdout.dispose(),this._onStderr.dispose(),this._onExit.dispose(),$(this.disposables)}}});var s$,AE,Ta,r$,o$,iCe,a$,v,ne=_(()=>{"use strict";s$=x(Bn()),AE=x(require("os")),Ta=x(require("path"));Ee();Dk();xW();TW();PW();Xy();_W();i3();d3();H3();UJ();GJ();KJ();zy();QJ();VJ();t$();we();i$();IE();av();n$();re();r$=31,o$=W()("workspace"),iCe=["showMessage","runTerminalCommand","openTerminal","showQuickpick","menuPick","openLocalConfig","showPrompt","createStatusBarItem","createOutputChannel","showOutputChannel","requestInput","echoLines","getCursorPosition","moveTo","getOffset","getSelectedRange","selectRange","createTerminal"],a$=class{constructor(){this.version=Vy;let e=Ta.default.normalize(process.env.COC_VIMCONFIG)||Ta.default.join(AE.default.homedir(),".vim"),t=Ta.default.join(e,qr);this.configurations=new gs(t,new hb(this)),this.workspaceFolderControl=new ov(this.configurations);let i=this.documentsManager=new Sb(this.configurations,this.workspaceFolderControl);this.contentProvider=new gb(i),this.watchers=new nv,this.autocmds=new db(this.contentProvider,this.watchers),this.keymaps=new tv(i),this.locations=new iv(this.configurations,i,this.contentProvider),this.files=new Lb(i,this.configurations,this.workspaceFolderControl,this.keymaps),this.editors=new rv(i),this.onDidRuntimePathChange=this.watchers.onDidRuntimePathChange,this.onDidChangeWorkspaceFolders=this.workspaceFolderControl.onDidChangeWorkspaceFolders,this.onDidChangeConfiguration=this.configurations.onDidChange,this.onDidOpenTextDocument=i.onDidOpenTextDocument,this.onDidChangeTextDocument=i.onDidChangeDocument,this.onDidCloseTextDocument=i.onDidCloseDocument,this.onDidSaveTextDocument=i.onDidSaveTextDocument,this.onWillSaveTextDocument=i.onWillSaveTextDocument,this.onDidCreateFiles=this.files.onDidCreateFiles,this.onDidRenameFiles=this.files.onDidRenameFiles,this.onDidDeleteFiles=this.files.onDidDeleteFiles,this.onWillCreateFiles=this.files.onWillCreateFiles,this.onWillRenameFiles=this.files.onWillRenameFiles,this.onWillDeleteFiles=this.files.onWillDeleteFiles;let r=global.__TEST__?null:this.getWatchmanPath();this.fileSystemWatchers=new dp(this.workspaceFolderControl,r)}async init(e){let{nvim:t}=this;for(let o of iCe)Object.defineProperty(this,o,{get:()=>(...s)=>{let a=` `+Error().stack.split(` `).slice(2,4).join(` -`);return UZ.warn(`workspace.${o} is deprecated, please use window.${o} instead.`,a),e[o].apply(e,s)}});for(let o of["onDidOpenTerminal","onDidCloseTerminal"])Object.defineProperty(this,o,{get:()=>{let s=` +`);return o$.warn(`workspace.${o} is deprecated, please use window.${o} instead.`,a),e[o].apply(e,s)}});for(let o of["onDidOpenTerminal","onDidCloseTerminal"])Object.defineProperty(this,o,{get:()=>{let s=` `+Error().stack.split(` `).slice(2,4).join(` -`);return UZ.warn(`workspace.${o} is deprecated, please use window.${o} instead.`,s),e[o]}});let i=this._env=await t.call("coc#util#vim_info");e.init(i),this._env.apiversion!=XZ&&t.echoError(`API version ${this._env.apiversion} is not ${XZ}, please build coc.nvim by 'yarn install' after pull source code.`),this.workspaceFolderControl.setWorkspaceFolders(this._env.workspaceFolders),this.configurations.updateUserConfig(this._env.config),this.files.attach(t,i,e),this.contentProvider.attach(t),this.keymaps.attach(t),this.autocmds.attach(t,i),this.locations.attach(t,i),this.watchers.attach(t,i),await this.attach(),await this.editors.attach(t);let r=Xo.create("watchman",t);this.fileSystemWatchers.attach(r)}get cwd(){return this.documentsManager.cwd}get env(){return this._env}get root(){return this.documentsManager.root||this.cwd}get rootPath(){return this.root}get bufnr(){return this.documentsManager.bufnr}get insertMode(){return E.insertMode}get floatSupported(){return this.env.floating||this.env.textprop}get uri(){return this.documentsManager.uri}get workspaceFolder(){return this.workspaceFolders[0]}get textDocuments(){return this.documentsManager.textDocuments}get documents(){return this.documentsManager.documents}get document(){return this.documentsManager.document}get workspaceFolders(){return this.workspaceFolderControl.workspaceFolders}get folderPaths(){return this.workspaceFolders.map(e=>O.parse(e.uri).fsPath)}get channelNames(){return Xo.names}get pluginRoot(){return ha.default.dirname(__dirname)}get isVim(){return this._env.isVim}get isNvim(){return!this._env.isVim}get completeOpt(){return this._env.completeOpt}get filetypes(){return this.documentsManager.filetypes}get languageIds(){return this.documentsManager.languageIds}createNameSpace(e){return IZ(e)}getConfigFile(e){return this.configurations.getConfigFile(e)}has(e){return FZ(this.env,e)}registerAutocmd(e){return this.autocmds.registerAutocmd(e)}watchOption(e,t,i){this.watchers.watchOption(e,t,i)}watchGlobal(e,t,i){this.watchers.watchGlobal(e,t||function(){},i)}match(e,t){return Ok(e,t.uri,t.languageId)}createFileSystemWatcher(e,t,i,r){return this.fileSystemWatchers.createFileSystemWatcher(e,t,i,r)}getWatchmanPath(){return jZ(this.configurations)}getConfiguration(e,t){return this.configurations.getConfiguration(e,t)}getDocument(e){return this.documentsManager.getDocument(e)}isAttached(e){let t=this.documentsManager.getDocument(e);return t!=null&&t.attached}getAttachedDocument(e){let t=this.getDocument(e);if(!t)throw new Error(`Buffer ${e} not created.`);if(!t.attached)throw new Error(`Buffer ${e} not attached, try :CocCommand document.checkBuffer`);return t}getQuickfixItem(e,t,i="",r){return this.documentsManager.getQuickfixItem(e,t,i,r)}createMru(e){return new so(e)}async getQuickfixList(e){return this.documentsManager.getQuickfixList(e)}async showLocations(e){await this.locations.showLocations(e)}getLine(e,t){return this.documentsManager.getLine(e,t)}getWorkspaceFolder(e){return this.workspaceFolderControl.getWorkspaceFolder(O.parse(e))}readFile(e){return this.documentsManager.readFile(e)}async getCurrentState(){let e=await this.document,t=await Cb(this.nvim);return{document:e.textDocument,position:t}}async getFormatOptions(e){return this.documentsManager.getFormatOptions(e)}resolveModule(e){return OZ(e)}async runCommand(e,t,i){return t=t||this.cwd,eo(e,{cwd:t},i)}expand(e){return this.documentsManager.expand(e)}async callAsync(e,t){return this.isNvim?await this.nvim.call(e,t):await this.nvim.callAsync("coc#util#with_callback",[e,t])}registerTextDocumentContentProvider(e,t){return this.contentProvider.registerTextDocumentContentProvider(e,t)}registerKeymap(e,t,i,r={}){return this.keymaps.registerKeymap(e,t,i,r)}registerExprKeymap(e,t,i,r=!1){return this.keymaps.registerExprKeymap(e,t,i,r)}registerLocalKeymap(e,t,i,r=!1){return this.keymaps.registerLocalKeymap(e,t,i,r)}createTask(e){return new Ay(this.nvim,e)}createDatabase(e){let t;global.hasOwnProperty("__TEST__")?(t=ha.default.join(Hk.default.tmpdir(),`coc-${process.pid}`),GZ.default.mkdirpSync(t)):t=ha.default.dirname(this.env.extensionRoot);let i=ha.default.join(t,e+".json");return new qc(i)}registerBufferSync(e){return new Iy(e,this.documentsManager)}async attach(){await this.documentsManager.attach(this.nvim,this._env)}jumpTo(e,t,i){return this.files.jumpTo(e,t,i)}findUp(e){return AZ(this.nvim,this.cwd,e)}applyEdit(e){return this.files.applyEdit(e)}createFile(e,t={}){return this.files.createFile(e,t)}loadFile(e){return this.files.loadResource(e)}async loadFiles(e){return this.files.loadResources(e)}async renameFile(e,t,i={}){await this.files.renameFile(e,t,i)}async deleteFile(e,t={}){await this.files.deleteFile(e,t)}async renameCurrent(){await this.files.renameCurrent()}async openResource(e){await this.files.openResource(e)}openTextDocument(e){return this.files.openTextDocument(e)}getRelativePath(e,t){return this.workspaceFolderControl.getRelativePath(e,t)}async findFiles(e,t,i,r){return this.files.findFiles(e,t,i,r)}detach(){this.documentsManager.detach()}reset(){this.configurations.reset(),this.workspaceFolderControl.reset(),this.documentsManager.reset()}dispose(){this.watchers.dispose(),this.autocmds.dispose(),this.contentProvider.dispose(),this.documentsManager.dispose(),this.configurations.dispose()}},y=new QZ});function qk(n,e){let{range:t,uri:i}=e;n.find(r=>r.uri==i&&Fe(r.range,t))==null&&n.push(e)}var Yc,xwe,pe,Tt=_(()=>{"use strict";Yc=C(H());V();Jt();xwe=q()("provider-manager"),pe=class{constructor(){this.providers=new Set}hasProvider(e){return this.getProvider(e)!=null}getProvider(e){let t=0,i;for(let r of this.providers){let{selector:o,priority:s}=r,a=y.match(o,e);a!=0&&(typeof s=="number"&&(a=s),!(ai.id==e);return t?t.provider:null}getProviders(e){let t=Array.from(this.providers);return t=t.filter(i=>y.match(i.selector,e)>0),t.sort((i,r)=>y.match(r.selector,e)-y.match(i.selector,e))}toLocations(e){let t=[];for(let i of e)if(!!i)if(Yc.Location.is(i))qk(t,i);else if(Array.isArray(i)){for(let r of i)if(Yc.Location.is(r))qk(t,r);else if(Yc.LocationLink.is(r)){let{targetUri:o,targetSelectionRange:s,targetRange:a}=r;qk(t,Yc.Location.create(o,s||a))}}else xwe.error("Bad definition",i);return t}}});var KZ,Oy,zZ=_(()=>{"use strict";KZ=C(H());Tt();Oe();Oy=class extends pe{register(e,t){let i={id:re(),selector:e,provider:t};return this.providers.add(i),KZ.Disposable.create(()=>{this.providers.delete(i)})}async prepareCallHierarchy(e,t,i){let r=this.getProvider(e);if(!r)return null;let{provider:o}=r;return o.prepareCallHierarchy===null?null:await Promise.resolve(o.prepareCallHierarchy(e,t,i))}async provideCallHierarchyOutgoingCalls(e,t,i){let r=this.getProvider(e);if(!r)return null;let{provider:o}=r;return o.provideCallHierarchyOutgoingCalls===null?null:await Promise.resolve(o.provideCallHierarchyOutgoingCalls(t,i))}async provideCallHierarchyIncomingCalls(e,t,i){let r=this.getProvider(e);if(!r)return null;let{provider:o}=r;return o.provideCallHierarchyIncomingCalls(t,i)===null?null:await Promise.resolve(o.provideCallHierarchyIncomingCalls(t,i))}}});function eJ(n,...e){return n=Object(n),e.forEach(t=>{if(t!=null){t=Object(t);for(let i in t){let r=n[i];(r===void 0||r===VZ[i]&&!Cwe.call(n,i))&&(n[i]=t[i])}}}),n}function zi(n,e){let t={};for(let i of Object.keys(n))e.includes(i)||(t[i]=n[i]);return t}var VZ,Cwe,es=_(()=>{"use strict";VZ=Object.prototype,Cwe=VZ.hasOwnProperty});var My,nOe,Ny,tJ=_(()=>{"use strict";My=C(H());Tt();Oe();es();nOe=q()("codeActionManager"),Ny=class extends pe{register(e,t,i,r){let o={id:re(),selector:e,provider:t,kinds:r,clientId:i};return this.providers.add(o),My.Disposable.create(()=>{this.providers.delete(o)})}async provideCodeActions(e,t,i,r){let o=this.getProviders(e);if(!o.length)return null;if(i.only){let{only:a}=i;o=o.filter(l=>!(l.kinds&&!l.kinds.some(u=>a.includes(u))))}let s=[];return await Promise.all(o.map(a=>{let{provider:l,id:u}=a;return Promise.resolve(l.provideCodeActions(e,t,i,r)).then(c=>{if(!(!c||c.length==0))for(let h of c)if(My.Command.is(h)){let d={title:h.title,command:h,providerId:u};s.push(d)}else{if(i.only){if(!h.kind)continue;let g=!1;for(let f of i.only)if(h.kind.startsWith(f)){g=!0;break}if(!g)continue}s.findIndex(g=>g.title==h.title)==-1&&s.push(Object.assign({providerId:u},h))}})})),s}async resolveCodeAction(e,t){if(e.edit!=null)return e;let i=e.providerId;if(!i)throw new Error("provider id not found from codeAction");let r=this.getProviderById(i);return!r||typeof r.resolveCodeAction!="function"?e:await Promise.resolve(r.resolveCodeAction(zi(e,["providerId"]),t))||e}}});var iJ,By,nJ=_(()=>{"use strict";iJ=C(H());Tt();Oe();es();By=class extends pe{register(e,t){let i={id:re(),selector:e,provider:t};return this.providers.add(i),iJ.Disposable.create(()=>{this.providers.delete(i)})}async provideCodeLenses(e,t){let i=this.getProviders(e);if(!i.length)return null;let r=await Promise.all(i.map(o=>{let{provider:s,id:a}=o;return Promise.resolve(s.provideCodeLenses(e,t)).then(l=>{if(Array.isArray(l))for(let u of l)u.source=a;return l})}));return[].concat(...r)}async resolveCodeLens(e,t){if(e.command)return e;let{source:i}=e,r=this.getProviderById(i);if(!r||typeof r.resolveCodeLens!="function")return e;let o=await Promise.resolve(r.resolveCodeLens(zi(e,["source"]),t));return Object.assign(e,o),e}}});var rJ,DOe,Hy,oJ=_(()=>{"use strict";rJ=C(H());Tt();Oe();DOe=q()("definitionManager"),Hy=class extends pe{register(e,t){let i={id:re(),selector:e,provider:t};return this.providers.add(i),rJ.Disposable.create(()=>{this.providers.delete(i)})}async provideDeclaration(e,t,i){let r=this.getProvider(e);if(!r)return null;let{provider:o}=r;return await Promise.resolve(o.provideDeclaration(e,t,i))}}});var qy,IOe,Yy,sJ=_(()=>{"use strict";qy=C(H());Tt();Oe();Jt();IOe=q()("definitionManager"),Yy=class extends pe{register(e,t){let i={id:re(),selector:e,provider:t};return this.providers.add(i),qy.Disposable.create(()=>{this.providers.delete(i)})}async getDefinitions(e,t,i){let r=this.getProviders(e);return r.length?await Promise.all(r.map(s=>{let{provider:a}=s;return Promise.resolve(a.provideDefinition(e,t,i))})):[]}async provideDefinition(e,t,i){let r=await this.getDefinitions(e,t,i);return this.toLocations(r)}async provideDefinitionLinks(e,t,i){let r=await this.getDefinitions(e,t,i),o=[];for(let s of r)if(!!Array.isArray(s))for(let a of s)qy.LocationLink.is(a)&&o.findIndex(u=>u.targetUri==a.targetUri&&Fe(u.targetRange,a.targetRange))==-1&&o.push(a);return o}}});var aJ,Wy,lJ=_(()=>{"use strict";aJ=C(H());Tt();Oe();Wy=class extends pe{register(e,t){let i={id:re(),selector:e,provider:t};return this.providers.add(i),aJ.Disposable.create(()=>{this.providers.delete(i)})}async provideDocumentColors(e,t){let i=this.getProvider(e);if(!i)return null;let{provider:r}=i;return await Promise.resolve(r.provideDocumentColors(e,t))}async provideColorPresentations(e,t,i){let{range:r,color:o}=e,s=this.getProvider(t);if(!s)return null;let{provider:a}=s;return await Promise.resolve(a.provideColorPresentations(o,{document:t,range:r},i))}}});var uJ,Zy,cJ=_(()=>{"use strict";uJ=C(H());Tt();Oe();Zy=class extends pe{register(e,t){let i={id:re(),selector:e,provider:t};return this.providers.add(i),uJ.Disposable.create(()=>{this.providers.delete(i)})}async provideDocumentHighlights(e,t,i){let r=this.getProvider(e);if(!r)return null;let{provider:o}=r;return await Promise.resolve(o.provideDocumentHighlights(e,t,i))}}});var hJ,Jy,dJ=_(()=>{"use strict";hJ=C(H());Tt();Oe();Jy=class extends pe{register(e,t){let i={id:re(),selector:e,provider:t};return this.providers.add(i),hJ.Disposable.create(()=>{this.providers.delete(i)})}async _provideDocumentLinks(e,t,i){let{provider:r,id:o}=e,s=await Promise.resolve(r.provideDocumentLinks(t,i));return!s||!s.length?[]:(s.forEach(a=>{a.data=a.data||{},a.data.source=o}),s)}async provideDocumentLinks(e,t){let i=this.getProviders(e);if(i.length==0)return[];let r=await Promise.all(i.map(o=>this._provideDocumentLinks(o,e,t)));return[].concat(...r)}async resolveDocumentLink(e,t){let{data:i}=e;if(!i||!i.source)return null;for(let r of this.providers)if(r.id==i.source){let{provider:o}=r;return e=await Promise.resolve(o.resolveDocumentLink(e,t)),e}return null}}});var gJ,$y,fJ=_(()=>{"use strict";gJ=C(H());Tt();Oe();$y=class extends pe{register(e,t,i){let r={id:re(),meta:i,selector:e,provider:t};return this.providers.add(r),gJ.Disposable.create(()=>{this.providers.delete(r)})}getMetaData(e){var i;let t=this.getProvider(e);return t?(i=t.provider.meta)!=null?i:{}:{}}async provideDocumentSymbols(e,t){let i=this.getProvider(e);if(!i)return null;let{provider:r}=i;return await Promise.resolve(r.provideDocumentSymbols(e,t))||[]}}});var pJ,Xy,mJ=_(()=>{"use strict";pJ=C(H());Tt();Oe();Xy=class extends pe{register(e,t){let i={id:re(),selector:e,provider:t};return this.providers.add(i),pJ.Disposable.create(()=>{this.providers.delete(i)})}async provideFoldingRanges(e,t,i){let r=this.getProvider(e);if(!r)return null;let{provider:o}=r;return await Promise.resolve(o.provideFoldingRanges(e,t,i))||[]}}});var bJ,Uy,yJ=_(()=>{"use strict";bJ=C(H());Tt();Oe();Uy=class extends pe{register(e,t,i=0){let r={id:re(),selector:e,priority:i,provider:t};return this.providers.add(r),bJ.Disposable.create(()=>{this.providers.delete(r)})}handles(e){return this.getProvider(e)!=null}async provideDocumentFormattingEdits(e,t,i){let r=this.getProvider(e);if(!r)return null;let{provider:o}=r;return await Promise.resolve(o.provideDocumentFormattingEdits(e,t,i))}}});var vJ,Gy,wJ=_(()=>{"use strict";vJ=C(H());Tt();Oe();Gy=class extends pe{register(e,t,i=0){let r={id:re(),selector:e,provider:t,priority:i};return this.providers.add(r),vJ.Disposable.create(()=>{this.providers.delete(r)})}async provideDocumentRangeFormattingEdits(e,t,i,r){let o=this.getProvider(e);if(!o)return null;let{provider:s}=o;return await Promise.resolve(s.provideDocumentRangeFormattingEdits(e,t,i,r))}}});var DJ,Qy,xJ=_(()=>{"use strict";DJ=C(H());Tt();Oe();Qy=class extends pe{register(e,t){let i={id:re(),selector:e,provider:t};return this.providers.add(i),DJ.Disposable.create(()=>{this.providers.delete(i)})}async provideHover(e,t,i){let r=this.getProviders(e);if(r.length===0)return null;let o=[];for(let s=0,a=r.length;s{"use strict";CJ=C(H());Tt();Oe();Ky=class extends pe{register(e,t){let i={id:re(),selector:e,provider:t};return this.providers.add(i),CJ.Disposable.create(()=>{this.providers.delete(i)})}async provideReferences(e,t,i){let r=this.getProviders(e);if(!r.length)return null;let o=await Promise.all(r.map(s=>{let{provider:a}=s;return Promise.resolve(a.provideImplementation(e,t,i))}));return this.toLocations(o)}}});var TJ,oNe,zy,kJ=_(()=>{"use strict";Oe();TJ=C(H());Tt();oNe=q()("linkedEditingManager"),zy=class extends pe{register(e,t){let i={id:re(),selector:e,provider:t};return this.providers.add(i),TJ.Disposable.create(()=>{this.providers.delete(i)})}async provideLinkedEditingRanges(e,t,i){let r=this.getProvider(e);if(!r)return null;let{provider:o}=r;return o.provideLinkedEditingRanges?await Promise.resolve(o.provideLinkedEditingRanges(e,t,i)):null}}});var EJ,dNe,Vy,PJ=_(()=>{"use strict";EJ=C(H());V();dNe=q()("onTypeFormatManager"),Vy=class{constructor(){this.providers=new Set}register(e,t,i){let r={triggerCharacters:i,selector:e,provider:t};return this.providers.add(r),EJ.Disposable.create(()=>{this.providers.delete(r)})}hasProvider(e){for(let t of this.providers){let{selector:i}=t;if(y.match(i,e)>0)return!0}return!1}getProvider(e,t){for(let i of this.providers){let{triggerCharacters:r,selector:o}=i;if(y.match(o,e)>0&&r.includes(t))return i.provider}return null}async onCharacterType(e,t,i,r){let o=this.getProvider(t,e);if(!o)return;let s=await y.getFormatOptions(t.uri);return await Promise.resolve(o.provideOnTypeFormattingEdits(t,i,e,s,r))}}});var _J,ev,RJ=_(()=>{"use strict";_J=C(H());Tt();Oe();ev=class extends pe{register(e,t){let i={id:re(),selector:e,provider:t};return this.providers.add(i),_J.Disposable.create(()=>{this.providers.delete(i)})}async provideReferences(e,t,i,r){let o=this.getProviders(e);if(!o.length)return null;let s=await Promise.all(o.map(a=>{let{provider:l}=a;return Promise.resolve(l.provideReferences(e,t,i,r))}));return this.toLocations(s)}}});var LJ,tv,FJ=_(()=>{"use strict";LJ=C(H());Tt();Oe();tv=class extends pe{register(e,t){let i={id:re(),selector:e,provider:t};return this.providers.add(i),LJ.Disposable.create(()=>{this.providers.delete(i)})}async provideRenameEdits(e,t,i,r){let o=this.getProvider(e);if(!o)return null;let{provider:s}=o;return await Promise.resolve(s.provideRenameEdits(e,t,i,r))}async prepareRename(e,t,i){let r=this.getProvider(e);if(!r)return null;let{provider:o}=r;if(o.prepareRename==null)return null;let s=await Promise.resolve(o.prepareRename(e,t,i));return s==null?!1:s}}});var IJ,iv,jJ=_(()=>{"use strict";IJ=C(H());Tt();Oe();iv=class extends pe{register(e,t){let i={id:re(),selector:e,provider:t};return this.providers.add(i),IJ.Disposable.create(()=>{this.providers.delete(i)})}async provideSelectionRanges(e,t,i){let r=this.getProvider(e);if(!r)return null;let{provider:o}=r,s=await Promise.resolve(o.provideSelectionRanges(e,t,i));if(!s||s.length==0)return[];for(let a=0;a{"use strict";Oe();AJ=C(H());Tt();$Ne=q()("semanticTokensManager"),nv=class extends pe{constructor(){super(...arguments);this.resolvedProvider=new Map}register(e,t,i,r){let o=re(),s={id:o,selector:e,legend:i,provider:t};this.providers.add(s);let a;return typeof t.onDidChangeSemanticTokens=="function"&&(a=t.onDidChangeSemanticTokens(()=>{r()})),AJ.Disposable.create(()=>{a==null||a.dispose();for(let[l,u]of this.resolvedProvider.entries())u==o&&this.resolvedProvider.delete(l);this.providers.delete(s)})}getLegend(e){let t=this.getProvider(e);if(!!t)return this.resolvedProvider.set(e.uri,t.id),t.legend}resolveProvider(e){var i;let t=this.resolvedProvider.get(e.uri);return t?this.getProviderById(t):(i=this.getProvider(e))==null?void 0:i.provider}hasSemanticTokensEdits(e){let t=this.resolveProvider(e);return t?typeof t.provideDocumentSemanticTokensEdits=="function":!1}async provideDocumentSemanticTokens(e,t){let i=this.resolveProvider(e);return!i||typeof i.provideDocumentSemanticTokens!="function"?null:await Promise.resolve(i.provideDocumentSemanticTokens(e,t))}async provideDocumentSemanticTokensEdits(e,t,i){let r=this.resolveProvider(e);return!r||typeof r.provideDocumentSemanticTokensEdits!="function"?null:await Promise.resolve(r.provideDocumentSemanticTokensEdits(e,t,i))}}});var MJ,iBe,rv,NJ=_(()=>{"use strict";Oe();MJ=C(H());Tt();iBe=q()("semanticTokensRangeManager"),rv=class extends pe{register(e,t,i){let r={id:re(),selector:e,legend:i,provider:t};return this.providers.add(r),MJ.Disposable.create(()=>{this.providers.delete(r)})}getLegend(e){let t=this.getProvider(e);if(!!t)return t.legend}async provideDocumentRangeSemanticTokens(e,t,i){let r=this.getProvider(e);if(!r)return null;let{provider:o}=r;return o.provideDocumentRangeSemanticTokens===null?null:await Promise.resolve(o.provideDocumentRangeSemanticTokens(e,t,i))}}});var BJ,ov,HJ=_(()=>{"use strict";BJ=C(H());Tt();Oe();ov=class extends pe{register(e,t,i){let r=i.reduce((s,a)=>s.concat(a.length==1?[a]:a.split(/\s*/g)),[]),o={id:re(),selector:e,provider:t,triggerCharacters:r};return this.providers.add(o),BJ.Disposable.create(()=>{this.providers.delete(o)})}shouldTrigger(e,t){let i=this.getProvider(e);if(!i)return!1;let{triggerCharacters:r}=i;return r&&r.indexOf(t)!=-1}async provideSignatureHelp(e,t,i,r){let o=this.getProvider(e);if(!o)return null;let s=await Promise.resolve(o.provider.provideSignatureHelp(e,t,i,r));return s&&s.signatures&&s.signatures.length?s:null}}});var qJ,sv,YJ=_(()=>{"use strict";qJ=C(H());Tt();Oe();sv=class extends pe{register(e,t){let i={id:re(),selector:e,provider:t};return this.providers.add(i),qJ.Disposable.create(()=>{this.providers.delete(i)})}async provideTypeDefinition(e,t,i){let r=this.getProviders(e);if(!r.length)return null;let o=await Promise.all(r.map(s=>{let{provider:a}=s;return Promise.resolve(a.provideTypeDefinition(e,t,i))}));return this.toLocations(o)}}});var WJ,av,ZJ=_(()=>{"use strict";Oe();WJ=C(H()),av=class{constructor(){this.providers=new Map}register(e){let t=re();return this.providers.set(t,e),WJ.Disposable.create(()=>{this.providers.delete(t)})}async provideWorkspaceSymbols(e,t){let i=Array.from(this.providers.entries());if(!i.length)return[];let r=[];return await Promise.all(i.map(o=>{let[s,a]=o;return Promise.resolve(a.provideWorkspaceSymbols(e,t)).then(l=>{l&&r.push(...l.map(u=>Object.assign({source:s},u)))})})),r}async resolveWorkspaceSymbol(e,t){let i=this.providers.get(e.source);if(!!i)return typeof i.resolveWorkspaceSymbol!="function"?Promise.resolve(e):await Promise.resolve(i.resolveWorkspaceSymbol(e,t))}hasProvider(){return this.providers.size>0}}});var Nr,Yk,Wk,lv,JJ=_(()=>{"use strict";Nr=C(H());In();(i=>{i.Type=1,i.Parameter=2;function t(r){return r===1||r===2}i.is=t})(Yk||(Yk={}));(t=>{function n(i){return{value:i}}t.create=n;function e(i){let r=i;return _t(r)&&(r.tooltip===void 0||Ee(r.tooltip)||Nr.MarkupContent.is(r.tooltip))&&(r.location===void 0||Nr.Location.is(r.location))&&(r.command===void 0||Nr.Command.is(r.command))}t.is=e})(Wk||(Wk={}));(t=>{function n(i,r,o){let s={position:i,label:r};return o!==void 0&&(s.kind=o),s}t.create=n;function e(i){let r=i;return _t(r)&&Nr.Position.is(r.position)&&(Ee(r.label)||L0(r.label,Wk.is))&&(r.kind===void 0||Yk.is(r.kind))&&r.textEdits===void 0||L0(r.textEdits,Nr.TextEdit.is)&&(r.tooltip===void 0||Ee(r.tooltip)||Nr.MarkupContent.is(r.tooltip))&&(r.paddingLeft===void 0||Kn(r.paddingLeft))&&(r.paddingRight===void 0||Kn(r.paddingRight))}t.is=e})(lv||(lv={}))});function Swe(n,e){return De(n.position,e.position)!==0?!1:uv(n)===uv(e)}function Twe(n,e){return n.label.length===0||Array.isArray(n.label)&&n.label.every(t=>t.value.length===0)?(Zk.warn("INVALID inlay hint, empty label",n),!1):lv.is(n)?!(e&&ut(n.position,e)!==0):(Zk.warn("INVALID inlay hint",n),!1)}function uv(n){return typeof n.label=="string"?n.label:n.label.map(e=>e.value).join(" ")}var $J,Zk,cv,Jk=_(()=>{"use strict";Oe();$J=C(H());JJ();yt();Tt();Zk=q()("inlayHintManger"),cv=class extends pe{register(e,t){let i={id:re(),selector:e,provider:t};return this.providers.add(i),$J.Disposable.create(()=>{this.providers.delete(i)})}async provideInlayHints(e,t,i){let r=this.getProviders(e);if(r.length===0)return null;let o=[],s=0;return await Promise.all(r.map(a=>{let{id:l,provider:u}=a;return Promise.resolve(u.provideInlayHints(e,t,i)).then(c=>{if(!i.isCancellationRequested){for(let h of c)!Twe(h,t)||s>0&&o.findIndex(d=>Swe(d,h))!=-1||o.push(ge({providerId:l},h));s+=1}},c=>{Zk.error("Error on provideInlayHints",c)})})),o}async resolveInlayHint(e,t){let i=this.getProviderById(e.providerId);if(!i||typeof i.resolveInlayHint!="function"||e.resolved===!0)return e;let r=await Promise.resolve(i.resolveInlayHint(e,t));return t.isCancellationRequested?e:Object.assign(e,r,{resolved:!0})}}});var OBe,$k,hv,Xk=_(()=>{"use strict";Oe();OBe=q()("model-status"),$k=["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"],hv=class{constructor(e){this.nvim=e;this.items=new Map;this.shownIds=new Set;this._text="";this.interval=setInterval(()=>{this.setStatusText()},100)}dispose(){this.items.clear(),this.shownIds.clear(),clearInterval(this.interval)}createStatusBarItem(e=0,t=!1){let i=Go(),r={text:"",priority:e,isProgress:t,show:()=>{this.shownIds.add(i),this.setStatusText()},hide:()=>{this.shownIds.delete(i),this.setStatusText()},dispose:()=>{this.shownIds.delete(i),this.items.delete(i),this.setStatusText()}};return this.items.set(i,r),r}getText(){if(this.shownIds.size==0)return"";let e=new Date,t=Math.floor(e.getMilliseconds()/100),i="",r=[];for(let[o,s]of this.items)this.shownIds.has(o)&&r.push(s);r.sort((o,s)=>o.priority-s.priority);for(let o of r)o.isProgress?i=`${i} ${$k[t]} ${o.text}`:i=`${i} ${o.text}`;return i}setStatusText(){let e=this.getText(),{nvim:t}=this;e!=this._text&&(this._text=e,t.pauseNotification(),this.nvim.setVar("coc_status",e,!0),this.nvim.call("coc#util#do_autocmd",["CocStatusChange"],!0),t.resumeNotification(!1,!0))}}});var XJ,BBe,uf,UJ=_(()=>{"use strict";XJ=require("events");Xk();BBe=q()("model-installBuffer"),uf=class extends XJ.EventEmitter{constructor(e=!1,t=!1,i=void 0){super();this.isUpdate=e;this.isSync=t;this.channel=i;this.statMap=new Map;this.messagesMap=new Map;this.names=[]}setExtensions(e){this.statMap.clear(),this.names=e;for(let t of e)this.statMap.set(t,0)}addMessage(e,t,i=!1){if(i&&this.channel)return;let r=this.messagesMap.get(e)||[];this.messagesMap.set(e,r.concat(t.trim().split(/\r?\n/))),this.channel&&this.channel.appendLine(`[${e}] ${t}`)}startProgress(e){for(let t of e)this.statMap.set(t,2)}finishProgress(e,t=!0){this.channel&&(t?this.channel.appendLine(`[${e}] install succeed!`):this.channel.appendLine(`[${e}] install failed!`)),this.statMap.set(e,t?3:1)}get remains(){let e=0;for(let t of this.names){let i=this.statMap.get(t);[3,1].includes(i)||(e=e+1)}return e}getLines(){let e=[];for(let t of this.names){let i=this.statMap.get(t),r="*";switch(i){case 2:{let s=new Date,a=Math.floor(s.getMilliseconds()/100);r=$k[a];break}case 1:r="\u2717";break;case 3:r="\u2713";break}let o=this.messagesMap.get(t)||[];e.push(`- ${r} ${t} ${o.length?o[o.length-1]:""}`)}return e}getMessages(e){if(e<=1)return[];let t=this.names[e-2];return t?this.messagesMap.get(t):[]}draw(e,t){let{remains:i}=this,o=[i==0?`${this.isUpdate?"Update":"Install"} finished`:`Installing, ${i} remaining...`,"",...this.getLines()];t.setLines(o,{start:0,end:-1,strictIndexing:!1},!0),i==0&&this.interval&&(clearInterval(this.interval),this.interval=null),process.env.VIM_NODE_RPC&&e.command("redraw",!0)}highlight(e){e.call("matchadd",["CocListFgCyan","^\\-\\s\\zs\\*"],!0),e.call("matchadd",["CocListFgGreen","^\\-\\s\\zs\u2713"],!0),e.call("matchadd",["CocListFgRed","^\\-\\s\\zs\u2717"],!0),e.call("matchadd",["CocListFgYellow","^-.\\{3\\}\\zs\\S\\+"],!0)}async show(e){let{isSync:t}=this;if(this.channel)return;e.pauseNotification(),e.command(t?"enew":"vs +enew",!0),e.call("bufnr",["%"],!0),e.command("setl buftype=nofile bufhidden=wipe noswapfile nobuflisted wrap undolevels=-1",!0),t||e.command("nnoremap q :q",!0),this.highlight(e);let i=await e.resumeNotification();this.bufnr=i[0][1];let r=e.createBuffer(this.bufnr);this.interval=setInterval(()=>{this.draw(e,r)},100)}dispose(){this.interval&&clearInterval(this.interval)}}});var KJ=m((Uk,QJ)=>{var dv=require("buffer"),ts=dv.Buffer;function GJ(n,e){for(var t in n)e[t]=n[t]}ts.from&&ts.alloc&&ts.allocUnsafe&&ts.allocUnsafeSlow?QJ.exports=dv:(GJ(dv,Uk),Uk.Buffer=Wc);function Wc(n,e,t){return ts(n,e,t)}GJ(ts,Wc);Wc.from=function(n,e,t){if(typeof n=="number")throw new TypeError("Argument must not be a number");return ts(n,e,t)};Wc.alloc=function(n,e,t){if(typeof n!="number")throw new TypeError("Argument must be a number");var i=ts(n);return e!==void 0?typeof t=="string"?i.fill(e,t):i.fill(e):i.fill(0),i};Wc.allocUnsafe=function(n){if(typeof n!="number")throw new TypeError("Argument must be a number");return ts(n)};Wc.allocUnsafeSlow=function(n){if(typeof n!="number")throw new TypeError("Argument must be a number");return dv.SlowBuffer(n)}});var n$=m((qBe,Gk)=>{"use strict";Gk.exports=Owe;Gk.exports.parse=Hwe;var zJ=require("path").basename,kwe=KJ().Buffer,Ewe=/[\x00-\x20"'()*,/:;<=>?@[\\\]{}\x7f]/g,Pwe=/%[0-9A-Fa-f]{2}/,_we=/%([0-9A-Fa-f]{2})/g,e$=/[^\x20-\x7e\xa0-\xff]/g,Rwe=/\\([\u0000-\u007f])/g,Lwe=/([\\"])/g,VJ=/;[\x09\x20]*([!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*=[\x09\x20]*("(?:[\x20!\x23-\x5b\x5d-\x7e\x80-\xff]|\\[\x20-\x7e])*"|[!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*/g,Fwe=/^[\x20-\x7e\x80-\xff]+$/,Iwe=/^[!#$%&'*+.0-9A-Z^_`a-z|~-]+$/,jwe=/^([A-Za-z0-9!#$%&+\-^_`{}~]+)'(?:[A-Za-z]{2,3}(?:-[A-Za-z]{3}){0,3}|[A-Za-z]{4,8}|)'((?:%[0-9A-Fa-f]{2}|[A-Za-z0-9!#$&+.^_`|~-])+)$/,Awe=/^([!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*(?:$|;)/;function Owe(n,e){var t=e||{},i=t.type||"attachment",r=Mwe(n,t.fallback);return Nwe(new i$(i,r))}function Mwe(n,e){if(n!==void 0){var t={};if(typeof n!="string")throw new TypeError("filename must be a string");if(e===void 0&&(e=!0),typeof e!="string"&&typeof e!="boolean")throw new TypeError("fallback must be a string or boolean");if(typeof e=="string"&&e$.test(e))throw new TypeError("fallback must be ISO-8859-1 string");var i=zJ(n),r=Fwe.test(i),o=typeof e!="string"?e&&t$(i):zJ(e),s=typeof o=="string"&&o!==i;return(s||!r||Pwe.test(i))&&(t["filename*"]=i),(r||s)&&(t.filename=s?o:i),t}}function Nwe(n){var e=n.parameters,t=n.type;if(!t||typeof t!="string"||!Iwe.test(t))throw new TypeError("invalid type");var i=String(t).toLowerCase();if(e&&typeof e=="object")for(var r,o=Object.keys(e).sort(),s=0;s{var cf;r$.exports=function(){if(!cf){try{cf=Ot()("follow-redirects")}catch{}typeof cf!="function"&&(cf=function(){})}cf.apply(null,arguments)}});var eE=m((WBe,Vk)=>{var Rl=require("url"),Qk=Rl.URL,Jwe=require("http"),$we=require("https"),l$=require("stream").Writable,Xwe=require("assert"),u$=o$(),Ll=["abort","aborted","connect","error","socket","timeout"],zk=Object.create(null);Ll.forEach(function(n){zk[n]=function(e,t,i){this._redirectable.emit(n,e,t,i)}});var s$=gv("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),Uwe=gv("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),Gwe=gv("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),Qwe=gv("ERR_STREAM_WRITE_AFTER_END","write after end");function On(n,e){l$.call(this),this._sanitizeOptions(n),this._options=n,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],e&&this.on("response",e);var t=this;this._onNativeResponse=function(i){t._processResponse(i)},this._performRequest()}On.prototype=Object.create(l$.prototype);On.prototype.abort=function(){h$(this._currentRequest),this.emit("abort")};On.prototype.write=function(n,e,t){if(this._ending)throw new Qwe;if(!(typeof n=="string"||typeof n=="object"&&"length"in n))throw new TypeError("data should be a string, Buffer or Uint8Array");if(typeof e=="function"&&(t=e,e=null),n.length===0){t&&t();return}this._requestBodyLength+n.length<=this._options.maxBodyLength?(this._requestBodyLength+=n.length,this._requestBodyBuffers.push({data:n,encoding:e}),this._currentRequest.write(n,e,t)):(this.emit("error",new Gwe),this.abort())};On.prototype.end=function(n,e,t){if(typeof n=="function"?(t=n,n=e=null):typeof e=="function"&&(t=e,e=null),!n)this._ended=this._ending=!0,this._currentRequest.end(null,null,t);else{var i=this,r=this._currentRequest;this.write(n,e,function(){i._ended=!0,r.end(null,null,t)}),this._ending=!0}};On.prototype.setHeader=function(n,e){this._options.headers[n]=e,this._currentRequest.setHeader(n,e)};On.prototype.removeHeader=function(n){delete this._options.headers[n],this._currentRequest.removeHeader(n)};On.prototype.setTimeout=function(n,e){var t=this;function i(s){s.setTimeout(n),s.removeListener("timeout",s.destroy),s.addListener("timeout",s.destroy)}function r(s){t._timeout&&clearTimeout(t._timeout),t._timeout=setTimeout(function(){t.emit("timeout"),o()},n),i(s)}function o(){t._timeout&&(clearTimeout(t._timeout),t._timeout=null),t.removeListener("abort",o),t.removeListener("error",o),t.removeListener("response",o),e&&t.removeListener("timeout",e),t.socket||t._currentRequest.removeListener("socket",r)}return e&&this.on("timeout",e),this.socket?r(this.socket):this._currentRequest.once("socket",r),this.on("socket",i),this.on("abort",o),this.on("error",o),this.on("response",o),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(n){On.prototype[n]=function(e,t){return this._currentRequest[n](e,t)}});["aborted","connection","socket"].forEach(function(n){Object.defineProperty(On.prototype,n,{get:function(){return this._currentRequest[n]}})});On.prototype._sanitizeOptions=function(n){if(n.headers||(n.headers={}),n.host&&(n.hostname||(n.hostname=n.host),delete n.host),!n.pathname&&n.path){var e=n.path.indexOf("?");e<0?n.pathname=n.path:(n.pathname=n.path.substring(0,e),n.search=n.path.substring(e))}};On.prototype._performRequest=function(){var n=this._options.protocol,e=this._options.nativeProtocols[n];if(!e){this.emit("error",new TypeError("Unsupported protocol "+n));return}if(this._options.agents){var t=n.substr(0,n.length-1);this._options.agent=this._options.agents[t]}var i=this._currentRequest=e.request(this._options,this._onNativeResponse);this._currentUrl=Rl.format(this._options),i._redirectable=this;for(var r=0;r=300&&e<400){if(h$(this._currentRequest),n.destroy(),++this._redirectCount>this._options.maxRedirects){this.emit("error",new Uwe);return}((e===301||e===302)&&this._options.method==="POST"||e===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],Kk(/^content-/i,this._options.headers));var i=Kk(/^host$/i,this._options.headers),r=Rl.parse(this._currentUrl),o=i||r.host,s=/^\w+:/.test(t)?this._currentUrl:Rl.format(Object.assign(r,{host:o})),a;try{a=Rl.resolve(s,t)}catch(c){this.emit("error",new s$(c));return}u$("redirecting to",a),this._isRedirect=!0;var l=Rl.parse(a);if(Object.assign(this._options,l),(l.protocol!==r.protocol||!zwe(l.host,o))&&Kk(/^(?:authorization|cookie)$/i,this._options.headers),typeof this._options.beforeRedirect=="function"){var u={headers:n.headers};try{this._options.beforeRedirect.call(null,this._options,u)}catch(c){this.emit("error",c);return}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(c){this.emit("error",new s$(c))}}else n.responseUrl=this._currentUrl,n.redirects=this._redirects,this.emit("response",n),this._requestBodyBuffers=[]};function c$(n){var e={maxRedirects:21,maxBodyLength:10485760},t={};return Object.keys(n).forEach(function(i){var r=i+":",o=t[r]=n[i],s=e[i]=Object.create(o);function a(u,c,h){if(typeof u=="string"){var d=u;try{u=a$(new Qk(d))}catch{u=Rl.parse(d)}}else Qk&&u instanceof Qk?u=a$(u):(h=c,c=u,u={protocol:r});return typeof c=="function"&&(h=c,c=null),c=Object.assign({maxRedirects:e.maxRedirects,maxBodyLength:e.maxBodyLength},u,c),c.nativeProtocols=t,Xwe.equal(c.protocol,r,"protocol mismatch"),u$("options",c),new On(c,h)}function l(u,c,h){var d=s.request(u,c,h);return d.end(),d}Object.defineProperties(s,{request:{value:a,configurable:!0,enumerable:!0,writable:!0},get:{value:l,configurable:!0,enumerable:!0,writable:!0}})}),e}function Kwe(){}function a$(n){var e={protocol:n.protocol,hostname:n.hostname.startsWith("[")?n.hostname.slice(1,-1):n.hostname,hash:n.hash,search:n.search,pathname:n.pathname,path:n.pathname+n.search,href:n.href};return n.port!==""&&(e.port=Number(n.port)),e}function Kk(n,e){var t;for(var i in e)n.test(i)&&(t=e[i],delete e[i]);return t===null||typeof t>"u"?void 0:String(t).trim()}function gv(n,e){function t(i){Error.captureStackTrace(this,this.constructor),i?(this.message=e+": "+i.message,this.cause=i):this.message=e}return t.prototype=new Error,t.prototype.constructor=t,t.prototype.name="Error ["+n+"]",t.prototype.code=n,t}function h$(n){for(var e=0;e0&&n[t]==="."&&n.endsWith(e)}Vk.exports=c$({http:Jwe,https:$we});Vk.exports.wrap=c$});var Zc=m((ZBe,g$)=>{"use strict";var d$=new Map([["C","cwd"],["f","file"],["z","gzip"],["P","preservePaths"],["U","unlink"],["strip-components","strip"],["stripComponents","strip"],["keep-newer","newer"],["keepNewer","newer"],["keep-newer-files","newer"],["keepNewerFiles","newer"],["k","keep"],["keep-existing","keep"],["keepExisting","keep"],["m","noMtime"],["no-mtime","noMtime"],["p","preserveOwner"],["L","follow"],["h","follow"]]);g$.exports=n=>n?Object.keys(n).map(e=>[d$.has(e)?d$.get(e):e,n[e]]).reduce((e,t)=>(e[t[0]]=t[1],e),Object.create(null)):{}});var Jc=m((JBe,x$)=>{"use strict";var Vwe=require("events"),f$=require("stream"),hf=Ug(),p$=require("string_decoder").StringDecoder,is=Symbol("EOF"),df=Symbol("maybeEmitEnd"),da=Symbol("emittedEnd"),fv=Symbol("emittingEnd"),pv=Symbol("closed"),m$=Symbol("read"),tE=Symbol("flush"),b$=Symbol("flushChunk"),bn=Symbol("encoding"),ns=Symbol("decoder"),mv=Symbol("flowing"),gf=Symbol("paused"),ff=Symbol("resume"),Vi=Symbol("bufferLength"),y$=Symbol("bufferPush"),iE=Symbol("bufferShift"),Fi=Symbol("objectMode"),Ii=Symbol("destroyed"),w$=global._MP_NO_ITERATOR_SYMBOLS_!=="1",eDe=w$&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),tDe=w$&&Symbol.iterator||Symbol("iterator not implemented"),v$=n=>n==="end"||n==="finish"||n==="prefinish",iDe=n=>n instanceof ArrayBuffer||typeof n=="object"&&n.constructor&&n.constructor.name==="ArrayBuffer"&&n.byteLength>=0,nDe=n=>!Buffer.isBuffer(n)&&ArrayBuffer.isView(n);x$.exports=class D$ extends f${constructor(e){super();this[mv]=!1,this[gf]=!1,this.pipes=new hf,this.buffer=new hf,this[Fi]=e&&e.objectMode||!1,this[Fi]?this[bn]=null:this[bn]=e&&e.encoding||null,this[bn]==="buffer"&&(this[bn]=null),this[ns]=this[bn]?new p$(this[bn]):null,this[is]=!1,this[da]=!1,this[fv]=!1,this[pv]=!1,this.writable=!0,this.readable=!0,this[Vi]=0,this[Ii]=!1}get bufferLength(){return this[Vi]}get encoding(){return this[bn]}set encoding(e){if(this[Fi])throw new Error("cannot set encoding in objectMode");if(this[bn]&&e!==this[bn]&&(this[ns]&&this[ns].lastNeed||this[Vi]))throw new Error("cannot change encoding");this[bn]!==e&&(this[ns]=e?new p$(e):null,this.buffer.length&&(this.buffer=this.buffer.map(t=>this[ns].write(t)))),this[bn]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[Fi]}set objectMode(e){this[Fi]=this[Fi]||!!e}write(e,t,i){if(this[is])throw new Error("write after end");return this[Ii]?(this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0):(typeof t=="function"&&(i=t,t="utf8"),t||(t="utf8"),!this[Fi]&&!Buffer.isBuffer(e)&&(nDe(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):iDe(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),!this.objectMode&&!e.length?(this[Vi]!==0&&this.emit("readable"),i&&i(),this.flowing):(typeof e=="string"&&!this[Fi]&&!(t===this[bn]&&!this[ns].lastNeed)&&(e=Buffer.from(e,t)),Buffer.isBuffer(e)&&this[bn]&&(e=this[ns].write(e)),this.flowing?(this[Vi]!==0&&this[tE](!0),this.emit("data",e)):this[y$](e),this[Vi]!==0&&this.emit("readable"),i&&i(),this.flowing))}read(e){if(this[Ii])return null;try{return this[Vi]===0||e===0||e>this[Vi]?null:(this[Fi]&&(e=null),this.buffer.length>1&&!this[Fi]&&(this.encoding?this.buffer=new hf([Array.from(this.buffer).join("")]):this.buffer=new hf([Buffer.concat(Array.from(this.buffer),this[Vi])])),this[m$](e||null,this.buffer.head.value))}finally{this[df]()}}[m$](e,t){return e===t.length||e===null?this[iE]():(this.buffer.head.value=t.slice(e),t=t.slice(0,e),this[Vi]-=e),this.emit("data",t),!this.buffer.length&&!this[is]&&this.emit("drain"),t}end(e,t,i){return typeof e=="function"&&(i=e,e=null),typeof t=="function"&&(i=t,t="utf8"),e&&this.write(e,t),i&&this.once("end",i),this[is]=!0,this.writable=!1,(this.flowing||!this[gf])&&this[df](),this}[ff](){this[Ii]||(this[gf]=!1,this[mv]=!0,this.emit("resume"),this.buffer.length?this[tE]():this[is]?this[df]():this.emit("drain"))}resume(){return this[ff]()}pause(){this[mv]=!1,this[gf]=!0}get destroyed(){return this[Ii]}get flowing(){return this[mv]}get paused(){return this[gf]}[y$](e){return this[Fi]?this[Vi]+=1:this[Vi]+=e.length,this.buffer.push(e)}[iE](){return this.buffer.length&&(this[Fi]?this[Vi]-=1:this[Vi]-=this.buffer.head.value.length),this.buffer.shift()}[tE](e){do;while(this[b$](this[iE]()));!e&&!this.buffer.length&&!this[is]&&this.emit("drain")}[b$](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,t){if(this[Ii])return;let i=this[da];t=t||{},e===process.stdout||e===process.stderr?t.end=!1:t.end=t.end!==!1;let r={dest:e,opts:t,ondrain:o=>this[ff]()};return this.pipes.push(r),e.on("drain",r.ondrain),this[ff](),i&&r.opts.end&&r.dest.end(),e}addListener(e,t){return this.on(e,t)}on(e,t){try{return super.on(e,t)}finally{e==="data"&&!this.pipes.length&&!this.flowing?this[ff]():v$(e)&&this[da]&&(super.emit(e),this.removeAllListeners(e))}}get emittedEnd(){return this[da]}[df](){!this[fv]&&!this[da]&&!this[Ii]&&this.buffer.length===0&&this[is]&&(this[fv]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[pv]&&this.emit("close"),this[fv]=!1)}emit(e,t){if(e!=="error"&&e!=="close"&&e!==Ii&&this[Ii])return;if(e==="data"){if(!t)return;this.pipes.length&&this.pipes.forEach(r=>r.dest.write(t)===!1&&this.pause())}else if(e==="end"){if(this[da]===!0)return;this[da]=!0,this.readable=!1,this[ns]&&(t=this[ns].end(),t&&(this.pipes.forEach(r=>r.dest.write(t)),super.emit("data",t))),this.pipes.forEach(r=>{r.dest.removeListener("drain",r.ondrain),r.opts.end&&r.dest.end()})}else if(e==="close"&&(this[pv]=!0,!this[da]&&!this[Ii]))return;let i=new Array(arguments.length);if(i[0]=e,i[1]=t,arguments.length>2)for(let r=2;r{e.push(i),this[Fi]||(e.dataLength+=i.length)}),t.then(()=>e)}concat(){return this[Fi]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[Fi]?Promise.reject(new Error("cannot concat in objectMode")):this[bn]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,t)=>{this.on(Ii,()=>t(new Error("stream destroyed"))),this.on("end",()=>e()),this.on("error",i=>t(i))})}[eDe](){return{next:()=>{let t=this.read();if(t!==null)return Promise.resolve({done:!1,value:t});if(this[is])return Promise.resolve({done:!0});let i=null,r=null,o=u=>{this.removeListener("data",s),this.removeListener("end",a),r(u)},s=u=>{this.removeListener("error",o),this.removeListener("end",a),this.pause(),i({value:u,done:!!this[is]})},a=()=>{this.removeListener("error",o),this.removeListener("data",s),i({done:!0})},l=()=>o(new Error("stream destroyed"));return new Promise((u,c)=>{r=c,i=u,this.once(Ii,l),this.once("error",o),this.once("end",a),this.once("data",s)})}}}[tDe](){return{next:()=>{let t=this.read();return{value:t,done:t===null}}}}destroy(e){return this[Ii]?(e?this.emit("error",e):this.emit(Ii),this):(this[Ii]=!0,this.buffer=new hf,this[Vi]=0,typeof this.close=="function"&&!this[pv]&&this.close(),e?this.emit("error",e):this.emit(Ii),this)}static isStream(e){return!!e&&(e instanceof D$||e instanceof f$||e instanceof Vwe&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var S$=m(($Be,C$)=>{var rDe=require("zlib").constants||{ZLIB_VERNUM:4736};C$.exports=Object.freeze(Object.assign(Object.create(null),{Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_VERSION_ERROR:-6,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,BROTLI_DECODE:8,BROTLI_ENCODE:9,Z_MIN_WINDOWBITS:8,Z_MAX_WINDOWBITS:15,Z_DEFAULT_WINDOWBITS:15,Z_MIN_CHUNK:64,Z_MAX_CHUNK:1/0,Z_DEFAULT_CHUNK:16384,Z_MIN_MEMLEVEL:1,Z_MAX_MEMLEVEL:9,Z_DEFAULT_MEMLEVEL:8,Z_MIN_LEVEL:-1,Z_MAX_LEVEL:9,Z_DEFAULT_LEVEL:-1,BROTLI_OPERATION_PROCESS:0,BROTLI_OPERATION_FLUSH:1,BROTLI_OPERATION_FINISH:2,BROTLI_OPERATION_EMIT_METADATA:3,BROTLI_MODE_GENERIC:0,BROTLI_MODE_TEXT:1,BROTLI_MODE_FONT:2,BROTLI_DEFAULT_MODE:0,BROTLI_MIN_QUALITY:0,BROTLI_MAX_QUALITY:11,BROTLI_DEFAULT_QUALITY:11,BROTLI_MIN_WINDOW_BITS:10,BROTLI_MAX_WINDOW_BITS:24,BROTLI_LARGE_MAX_WINDOW_BITS:30,BROTLI_DEFAULT_WINDOW:22,BROTLI_MIN_INPUT_BLOCK_BITS:16,BROTLI_MAX_INPUT_BLOCK_BITS:24,BROTLI_PARAM_MODE:0,BROTLI_PARAM_QUALITY:1,BROTLI_PARAM_LGWIN:2,BROTLI_PARAM_LGBLOCK:3,BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING:4,BROTLI_PARAM_SIZE_HINT:5,BROTLI_PARAM_LARGE_WINDOW:6,BROTLI_PARAM_NPOSTFIX:7,BROTLI_PARAM_NDIRECT:8,BROTLI_DECODER_RESULT_ERROR:0,BROTLI_DECODER_RESULT_SUCCESS:1,BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT:2,BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION:0,BROTLI_DECODER_PARAM_LARGE_WINDOW:1,BROTLI_DECODER_NO_ERROR:0,BROTLI_DECODER_SUCCESS:1,BROTLI_DECODER_NEEDS_MORE_INPUT:2,BROTLI_DECODER_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE:-1,BROTLI_DECODER_ERROR_FORMAT_RESERVED:-2,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE:-3,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET:-4,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME:-5,BROTLI_DECODER_ERROR_FORMAT_CL_SPACE:-6,BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE:-7,BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT:-8,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1:-9,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2:-10,BROTLI_DECODER_ERROR_FORMAT_TRANSFORM:-11,BROTLI_DECODER_ERROR_FORMAT_DICTIONARY:-12,BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS:-13,BROTLI_DECODER_ERROR_FORMAT_PADDING_1:-14,BROTLI_DECODER_ERROR_FORMAT_PADDING_2:-15,BROTLI_DECODER_ERROR_FORMAT_DISTANCE:-16,BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET:-19,BROTLI_DECODER_ERROR_INVALID_ARGUMENTS:-20,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES:-21,BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS:-22,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP:-25,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1:-26,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2:-27,BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES:-30,BROTLI_DECODER_ERROR_UNREACHABLE:-31},rDe))});var hE=m(Mn=>{"use strict";var aE=require("assert"),ga=require("buffer").Buffer,E$=require("zlib"),Fl=Mn.constants=S$(),oDe=Jc(),T$=ga.concat,Il=Symbol("_superWrite"),mf=class extends Error{constructor(e){super("zlib: "+e.message);this.code=e.code,this.errno=e.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+e.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}},sDe=Symbol("opts"),pf=Symbol("flushFlag"),k$=Symbol("finishFlushFlag"),lE=Symbol("fullFlushFlag"),ft=Symbol("handle"),bv=Symbol("onError"),$c=Symbol("sawError"),nE=Symbol("level"),rE=Symbol("strategy"),oE=Symbol("ended"),XBe=Symbol("_defaultFullFlush"),uE=class extends oDe{constructor(e,t){if(!e||typeof e!="object")throw new TypeError("invalid options for ZlibBase constructor");super(e);this[$c]=!1,this[oE]=!1,this[sDe]=e,this[pf]=e.flush,this[k$]=e.finishFlush;try{this[ft]=new E$[t](e)}catch(i){throw new mf(i)}this[bv]=i=>{this[$c]||(this[$c]=!0,this.close(),this.emit("error",i))},this[ft].on("error",i=>this[bv](new mf(i))),this.once("end",()=>this.close)}close(){this[ft]&&(this[ft].close(),this[ft]=null,this.emit("close"))}reset(){if(!this[$c])return aE(this[ft],"zlib binding closed"),this[ft].reset()}flush(e){this.ended||(typeof e!="number"&&(e=this[lE]),this.write(Object.assign(ga.alloc(0),{[pf]:e})))}end(e,t,i){return e&&this.write(e,t),this.flush(this[k$]),this[oE]=!0,super.end(null,null,i)}get ended(){return this[oE]}write(e,t,i){if(typeof t=="function"&&(i=t,t="utf8"),typeof e=="string"&&(e=ga.from(e,t)),this[$c])return;aE(this[ft],"zlib binding closed");let r=this[ft]._handle,o=r.close;r.close=()=>{};let s=this[ft].close;this[ft].close=()=>{},ga.concat=u=>u;let a;try{let u=typeof e[pf]=="number"?e[pf]:this[pf];a=this[ft]._processChunk(e,u),ga.concat=T$}catch(u){ga.concat=T$,this[bv](new mf(u))}finally{this[ft]&&(this[ft]._handle=r,r.close=o,this[ft].close=s,this[ft].removeAllListeners("error"))}this[ft]&&this[ft].on("error",u=>this[bv](new mf(u)));let l;if(a)if(Array.isArray(a)&&a.length>0){l=this[Il](ga.from(a[0]));for(let u=1;u{this.flush(r),o()};try{this[ft].params(e,t)}finally{this[ft].flush=i}this[ft]&&(this[nE]=e,this[rE]=t)}}}},P$=class extends fa{constructor(e){super(e,"Deflate")}},_$=class extends fa{constructor(e){super(e,"Inflate")}},sE=Symbol("_portable"),R$=class extends fa{constructor(e){super(e,"Gzip");this[sE]=e&&!!e.portable}[Il](e){return this[sE]?(this[sE]=!1,e[9]=255,super[Il](e)):super[Il](e)}},L$=class extends fa{constructor(e){super(e,"Gunzip")}},F$=class extends fa{constructor(e){super(e,"DeflateRaw")}},I$=class extends fa{constructor(e){super(e,"InflateRaw")}},j$=class extends fa{constructor(e){super(e,"Unzip")}},cE=class extends uE{constructor(e,t){e=e||{},e.flush=e.flush||Fl.BROTLI_OPERATION_PROCESS,e.finishFlush=e.finishFlush||Fl.BROTLI_OPERATION_FINISH;super(e,t);this[lE]=Fl.BROTLI_OPERATION_FLUSH}},A$=class extends cE{constructor(e){super(e,"BrotliCompress")}},O$=class extends cE{constructor(e){super(e,"BrotliDecompress")}};Mn.Deflate=P$;Mn.Inflate=_$;Mn.Gzip=R$;Mn.Gunzip=L$;Mn.DeflateRaw=F$;Mn.InflateRaw=I$;Mn.Unzip=j$;typeof E$.BrotliCompress=="function"?(Mn.BrotliCompress=A$,Mn.BrotliDecompress=O$):Mn.BrotliCompress=Mn.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}});var Xc=m((GBe,M$)=>{var aDe=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;M$.exports=aDe!=="win32"?n=>n:n=>n&&n.replace(/\\/g,"/")});var yv=m((KBe,N$)=>{"use strict";var lDe=Jc(),dE=Xc(),gE=Symbol("slurp");N$.exports=class extends lDe{constructor(e,t,i){super();switch(this.pause(),this.extended=t,this.globalExtended=i,this.header=e,this.startBlockSize=512*Math.ceil(e.size/512),this.blockRemain=this.startBlockSize,this.remain=e.size,this.type=e.type,this.meta=!1,this.ignore=!1,this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=!0;break;default:this.ignore=!0}this.path=dE(e.path),this.mode=e.mode,this.mode&&(this.mode=this.mode&4095),this.uid=e.uid,this.gid=e.gid,this.uname=e.uname,this.gname=e.gname,this.size=e.size,this.mtime=e.mtime,this.atime=e.atime,this.ctime=e.ctime,this.linkpath=dE(e.linkpath),this.uname=e.uname,this.gname=e.gname,t&&this[gE](t),i&&this[gE](i,!0)}write(e){let t=e.length;if(t>this.blockRemain)throw new Error("writing more to entry than is appropriate");let i=this.remain,r=this.blockRemain;return this.remain=Math.max(0,i-t),this.blockRemain=Math.max(0,r-t),this.ignore?!0:i>=t?super.write(e):super.write(e.slice(0,i))}[gE](e,t){for(let i in e)e[i]!==null&&e[i]!==void 0&&!(t&&i==="path")&&(this[i]=i==="path"||i==="linkpath"?dE(e[i]):e[i])}}});var fE=m(vv=>{"use strict";vv.name=new Map([["0","File"],["","OldFile"],["1","Link"],["2","SymbolicLink"],["3","CharacterDevice"],["4","BlockDevice"],["5","Directory"],["6","FIFO"],["7","ContiguousFile"],["g","GlobalExtendedHeader"],["x","ExtendedHeader"],["A","SolarisACL"],["D","GNUDumpDir"],["I","Inode"],["K","NextFileHasLongLinkpath"],["L","NextFileHasLongPath"],["M","ContinuationFile"],["N","OldGnuLongPath"],["S","SparseFile"],["V","TapeVolumeHeader"],["X","OldExtendedHeader"]]);vv.code=new Map(Array.from(vv.name).map(n=>[n[1],n[0]]))});var Y$=m((VBe,q$)=>{"use strict";var uDe=(n,e)=>{if(Number.isSafeInteger(n))n<0?hDe(n,e):cDe(n,e);else throw Error("cannot encode number outside of javascript safe integer range");return e},cDe=(n,e)=>{e[0]=128;for(var t=e.length;t>1;t--)e[t-1]=n&255,n=Math.floor(n/256)},hDe=(n,e)=>{e[0]=255;var t=!1;n=n*-1;for(var i=e.length;i>1;i--){var r=n&255;n=Math.floor(n/256),t?e[i-1]=B$(r):r===0?e[i-1]=0:(t=!0,e[i-1]=H$(r))}},dDe=n=>{let e=n[0],t=e===128?fDe(n.slice(1,n.length)):e===255?gDe(n):null;if(t===null)throw Error("invalid base256 encoding");if(!Number.isSafeInteger(t))throw Error("parsed number outside of javascript safe integer range");return t},gDe=n=>{for(var e=n.length,t=0,i=!1,r=e-1;r>-1;r--){var o=n[r],s;i?s=B$(o):o===0?s=o:(i=!0,s=H$(o)),s!==0&&(t-=s*Math.pow(256,e-r-1))}return t},fDe=n=>{for(var e=n.length,t=0,i=e-1;i>-1;i--){var r=n[i];r!==0&&(t+=r*Math.pow(256,e-i-1))}return t},B$=n=>(255^n)&255,H$=n=>(255^n)+1&255;q$.exports={encode:uDe,parse:dDe}});var Gc=m((eHe,J$)=>{"use strict";var pE=fE(),Uc=require("path").posix,W$=Y$(),mE=Symbol("slurp"),Nn=Symbol("type"),Z$=class{constructor(e,t,i,r){this.cksumValid=!1,this.needPax=!1,this.nullBlock=!1,this.block=null,this.path=null,this.mode=null,this.uid=null,this.gid=null,this.size=null,this.mtime=null,this.cksum=null,this[Nn]="0",this.linkpath=null,this.uname=null,this.gname=null,this.devmaj=0,this.devmin=0,this.atime=null,this.ctime=null,Buffer.isBuffer(e)?this.decode(e,t||0,i,r):e&&this.set(e)}decode(e,t,i,r){if(t||(t=0),!e||!(e.length>=t+512))throw new Error("need 512 bytes for header");if(this.path=jl(e,t,100),this.mode=pa(e,t+100,8),this.uid=pa(e,t+108,8),this.gid=pa(e,t+116,8),this.size=pa(e,t+124,12),this.mtime=bE(e,t+136,12),this.cksum=pa(e,t+148,12),this[mE](i),this[mE](r,!0),this[Nn]=jl(e,t+156,1),this[Nn]===""&&(this[Nn]="0"),this[Nn]==="0"&&this.path.substr(-1)==="/"&&(this[Nn]="5"),this[Nn]==="5"&&(this.size=0),this.linkpath=jl(e,t+157,100),e.slice(t+257,t+265).toString()==="ustar\x0000")if(this.uname=jl(e,t+265,32),this.gname=jl(e,t+297,32),this.devmaj=pa(e,t+329,8),this.devmin=pa(e,t+337,8),e[t+475]!==0){let s=jl(e,t+345,155);this.path=s+"/"+this.path}else{let s=jl(e,t+345,130);s&&(this.path=s+"/"+this.path),this.atime=bE(e,t+476,12),this.ctime=bE(e,t+488,12)}let o=8*32;for(let s=t;s=t+512))throw new Error("need 512 bytes for header");let i=this.ctime||this.atime?130:155,r=pDe(this.path||"",i),o=r[0],s=r[1];this.needPax=r[2],this.needPax=Al(e,t,100,o)||this.needPax,this.needPax=ma(e,t+100,8,this.mode)||this.needPax,this.needPax=ma(e,t+108,8,this.uid)||this.needPax,this.needPax=ma(e,t+116,8,this.gid)||this.needPax,this.needPax=ma(e,t+124,12,this.size)||this.needPax,this.needPax=yE(e,t+136,12,this.mtime)||this.needPax,e[t+156]=this[Nn].charCodeAt(0),this.needPax=Al(e,t+157,100,this.linkpath)||this.needPax,e.write("ustar\x0000",t+257,8),this.needPax=Al(e,t+265,32,this.uname)||this.needPax,this.needPax=Al(e,t+297,32,this.gname)||this.needPax,this.needPax=ma(e,t+329,8,this.devmaj)||this.needPax,this.needPax=ma(e,t+337,8,this.devmin)||this.needPax,this.needPax=Al(e,t+345,i,s)||this.needPax,e[t+475]!==0?this.needPax=Al(e,t+345,155,s)||this.needPax:(this.needPax=Al(e,t+345,130,s)||this.needPax,this.needPax=yE(e,t+476,12,this.atime)||this.needPax,this.needPax=yE(e,t+488,12,this.ctime)||this.needPax);let a=8*32;for(let l=t;l{let i=n,r="",o,s=Uc.parse(n).root||".";if(Buffer.byteLength(i)<100)o=[i,r,!1];else{r=Uc.dirname(i),i=Uc.basename(i);do Buffer.byteLength(i)<=100&&Buffer.byteLength(r)<=e?o=[i,r,!1]:Buffer.byteLength(i)>100&&Buffer.byteLength(r)<=e?o=[i.substr(0,100-1),r,!0]:(i=Uc.join(Uc.basename(r),i),r=Uc.dirname(r));while(r!==s&&!o);o||(o=[n.substr(0,100-1),"",!0])}return o},jl=(n,e,t)=>n.slice(e,e+t).toString("utf8").replace(/\0.*/,""),bE=(n,e,t)=>mDe(pa(n,e,t)),mDe=n=>n===null?null:new Date(n*1e3),pa=(n,e,t)=>n[e]&128?W$.parse(n.slice(e,e+t)):yDe(n,e,t),bDe=n=>isNaN(n)?null:n,yDe=(n,e,t)=>bDe(parseInt(n.slice(e,e+t).toString("utf8").replace(/\0.*$/,"").trim(),8)),vDe={12:8589934591,8:2097151},ma=(n,e,t,i)=>i===null?!1:i>vDe[t]||i<0?(W$.encode(i,n.slice(e,e+t)),!0):(wDe(n,e,t,i),!1),wDe=(n,e,t,i)=>n.write(DDe(i,t),e,t,"ascii"),DDe=(n,e)=>xDe(Math.floor(n).toString(8),e),xDe=(n,e)=>(n.length===e-1?n:new Array(e-n.length-1).join("0")+n+" ")+"\0",yE=(n,e,t,i)=>i===null?!1:ma(n,e,t,i.getTime()/1e3),CDe=new Array(156).join("\0"),Al=(n,e,t,i)=>i===null?!1:(n.write(i+CDe,e,t,"utf8"),i.length!==Buffer.byteLength(i)||i.length>t);J$.exports=Z$});var Dv=m((tHe,$$)=>{"use strict";var SDe=Gc(),TDe=require("path"),wv=class{constructor(e,t){this.atime=e.atime||null,this.charset=e.charset||null,this.comment=e.comment||null,this.ctime=e.ctime||null,this.gid=e.gid||null,this.gname=e.gname||null,this.linkpath=e.linkpath||null,this.mtime=e.mtime||null,this.path=e.path||null,this.size=e.size||null,this.uid=e.uid||null,this.uname=e.uname||null,this.dev=e.dev||null,this.ino=e.ino||null,this.nlink=e.nlink||null,this.global=t||!1}encode(){let e=this.encodeBody();if(e==="")return null;let t=Buffer.byteLength(e),i=512*Math.ceil(1+t/512),r=Buffer.allocUnsafe(i);for(let o=0;o<512;o++)r[o]=0;new SDe({path:("PaxHeader/"+TDe.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:t,mtime:this.mtime||null,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime||null,ctime:this.ctime||null}).encode(r),r.write(e,512,t,"utf8");for(let o=t+512;o=Math.pow(10,o)&&(o+=1),o+r+i}};wv.parse=(n,e,t)=>new wv(kDe(EDe(n),e),t);var kDe=(n,e)=>e?Object.keys(n).reduce((t,i)=>(t[i]=n[i],t),e):n,EDe=n=>n.replace(/\n$/,"").split(` -`).reduce(PDe,Object.create(null)),PDe=(n,e)=>{let t=parseInt(e,10);if(t!==Buffer.byteLength(e)+1)return n;e=e.substr((t+" ").length);let i=e.split("="),r=i.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!r)return n;let o=i.join("=");return n[r]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(r)?new Date(o*1e3):/^[0-9]+$/.test(o)?+o:o,n};$$.exports=wv});var Qc=m((iHe,X$)=>{X$.exports=n=>{let e=n.length-1,t=-1;for(;e>-1&&n.charAt(e)==="/";)t=e,e--;return t===-1?n:n.slice(0,t)}});var xv=m((nHe,U$)=>{"use strict";U$.exports=n=>class extends n{warn(e,t,i={}){this.file&&(i.file=this.file),this.cwd&&(i.cwd=this.cwd),i.code=t instanceof Error&&t.code||e,i.tarCode=e,!this.strict&&i.recoverable!==!1?(t instanceof Error&&(i=Object.assign(t,i),t=t.message),this.emit("warn",i.tarCode,t,i)):t instanceof Error?this.emit("error",Object.assign(t,i)):this.emit("error",Object.assign(new Error(`${e}: ${t}`),i))}}});var wE=m((rHe,G$)=>{"use strict";var Cv=["|","<",">","?",":"],vE=Cv.map(n=>String.fromCharCode(61440+n.charCodeAt(0))),_De=new Map(Cv.map((n,e)=>[n,vE[e]])),RDe=new Map(vE.map((n,e)=>[n,Cv[e]]));G$.exports={encode:n=>Cv.reduce((e,t)=>e.split(t).join(_De.get(t)),n),decode:n=>vE.reduce((e,t)=>e.split(t).join(RDe.get(t)),n)}});var DE=m((oHe,K$)=>{var{isAbsolute:LDe,parse:Q$}=require("path").win32;K$.exports=n=>{let e="",t=Q$(n);for(;LDe(n)||t.root;){let i=n.charAt(0)==="/"&&n.slice(0,4)!=="//?/"?"/":t.root;n=n.substr(i.length),e+=i,t=Q$(n)}return[e,n]}});var V$=m((sHe,z$)=>{"use strict";z$.exports=(n,e,t)=>(n&=4095,t&&(n=(n|384)&-19),e&&(n&256&&(n|=64),n&32&&(n|=8),n&4&&(n|=1)),n)});var RE=m((uHe,fX)=>{"use strict";var sX=Jc(),aX=Dv(),lX=Gc(),lo=require("fs"),eX=require("path"),ao=Xc(),FDe=Qc(),uX=(n,e)=>e?(n=ao(n).replace(/^\.(\/|$)/,""),FDe(e)+"/"+n):ao(n),IDe=16*1024*1024,tX=Symbol("process"),iX=Symbol("file"),nX=Symbol("directory"),CE=Symbol("symlink"),rX=Symbol("hardlink"),bf=Symbol("header"),Sv=Symbol("read"),SE=Symbol("lstat"),Tv=Symbol("onlstat"),TE=Symbol("onread"),kE=Symbol("onreadlink"),EE=Symbol("openfile"),PE=Symbol("onopenfile"),ba=Symbol("close"),kv=Symbol("mode"),_E=Symbol("awaitDrain"),xE=Symbol("ondrain"),uo=Symbol("prefix"),oX=Symbol("hadError"),cX=xv(),jDe=wE(),hX=DE(),dX=V$(),Ev=cX(class extends sX{constructor(e,t){t=t||{};super(t);if(typeof e!="string")throw new TypeError("path is required");this.path=ao(e),this.portable=!!t.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=t.maxReadSize||IDe,this.linkCache=t.linkCache||new Map,this.statCache=t.statCache||new Map,this.preservePaths=!!t.preservePaths,this.cwd=ao(t.cwd||process.cwd()),this.strict=!!t.strict,this.noPax=!!t.noPax,this.noMtime=!!t.noMtime,this.mtime=t.mtime||null,this.prefix=t.prefix?ao(t.prefix):null,this.fd=null,this.blockLen=null,this.blockRemain=null,this.buf=null,this.offset=null,this.length=null,this.pos=null,this.remain=null,typeof t.onwarn=="function"&&this.on("warn",t.onwarn);let i=!1;if(!this.preservePaths){let[r,o]=hX(this.path);r&&(this.path=o,i=r)}this.win32=!!t.win32||process.platform==="win32",this.win32&&(this.path=jDe.decode(this.path.replace(/\\/g,"/")),e=e.replace(/\\/g,"/")),this.absolute=ao(t.absolute||eX.resolve(this.cwd,e)),this.path===""&&(this.path="./"),i&&this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:this,path:i+this.path}),this.statCache.has(this.absolute)?this[Tv](this.statCache.get(this.absolute)):this[SE]()}emit(e,...t){return e==="error"&&(this[oX]=!0),super.emit(e,...t)}[SE](){lo.lstat(this.absolute,(e,t)=>{if(e)return this.emit("error",e);this[Tv](t)})}[Tv](e){this.statCache.set(this.absolute,e),this.stat=e,e.isFile()||(e.size=0),this.type=ODe(e),this.emit("stat",e),this[tX]()}[tX](){switch(this.type){case"File":return this[iX]();case"Directory":return this[nX]();case"SymbolicLink":return this[CE]();default:return this.end()}}[kv](e){return dX(e,this.type==="Directory",this.portable)}[uo](e){return uX(e,this.prefix)}[bf](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new lX({path:this[uo](this.path),linkpath:this.type==="Link"?this[uo](this.linkpath):this.linkpath,mode:this[kv](this.stat.mode),uid:this.portable?null:this.stat.uid,gid:this.portable?null:this.stat.gid,size:this.stat.size,mtime:this.noMtime?null:this.mtime||this.stat.mtime,type:this.type,uname:this.portable?null:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?null:this.stat.atime,ctime:this.portable?null:this.stat.ctime}),this.header.encode()&&!this.noPax&&super.write(new aX({atime:this.portable?null:this.header.atime,ctime:this.portable?null:this.header.ctime,gid:this.portable?null:this.header.gid,mtime:this.noMtime?null:this.mtime||this.header.mtime,path:this[uo](this.path),linkpath:this.type==="Link"?this[uo](this.linkpath):this.linkpath,size:this.header.size,uid:this.portable?null:this.header.uid,uname:this.portable?null:this.header.uname,dev:this.portable?null:this.stat.dev,ino:this.portable?null:this.stat.ino,nlink:this.portable?null:this.stat.nlink}).encode()),super.write(this.header.block)}[nX](){this.path.substr(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[bf](),this.end()}[CE](){lo.readlink(this.absolute,(e,t)=>{if(e)return this.emit("error",e);this[kE](t)})}[kE](e){this.linkpath=ao(e),this[bf](),this.end()}[rX](e){this.type="Link",this.linkpath=ao(eX.relative(this.cwd,e)),this.stat.size=0,this[bf](),this.end()}[iX](){if(this.stat.nlink>1){let e=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(e)){let t=this.linkCache.get(e);if(t.indexOf(this.cwd)===0)return this[rX](t)}this.linkCache.set(e,this.absolute)}if(this[bf](),this.stat.size===0)return this.end();this[EE]()}[EE](){lo.open(this.absolute,"r",(e,t)=>{if(e)return this.emit("error",e);this[PE](t)})}[PE](e){if(this.fd=e,this[oX])return this[ba]();this.blockLen=512*Math.ceil(this.stat.size/512),this.blockRemain=this.blockLen;let t=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(t),this.offset=0,this.pos=0,this.remain=this.stat.size,this.length=this.buf.length,this[Sv]()}[Sv](){let{fd:e,buf:t,offset:i,length:r,pos:o}=this;lo.read(e,t,i,r,o,(s,a)=>{if(s)return this[ba](()=>this.emit("error",s));this[TE](a)})}[ba](e){lo.close(this.fd,e)}[TE](e){if(e<=0&&this.remain>0){let r=new Error("encountered unexpected EOF");return r.path=this.absolute,r.syscall="read",r.code="EOF",this[ba](()=>this.emit("error",r))}if(e>this.remain){let r=new Error("did not encounter expected EOF");return r.path=this.absolute,r.syscall="read",r.code="EOF",this[ba](()=>this.emit("error",r))}if(e===this.remain)for(let r=e;rthis[xE]())}[_E](e){this.once("drain",e)}write(e){if(this.blockRemaine?this.emit("error",e):this.end());this.offset>=this.length&&(this.buf=Buffer.allocUnsafe(Math.min(this.blockRemain,this.buf.length)),this.offset=0),this.length=this.buf.length-this.offset,this[Sv]()}}),gX=class extends Ev{[SE](){this[Tv](lo.lstatSync(this.absolute))}[CE](){this[kE](lo.readlinkSync(this.absolute))}[EE](){this[PE](lo.openSync(this.absolute,"r"))}[Sv](){let e=!0;try{let{fd:t,buf:i,offset:r,length:o,pos:s}=this,a=lo.readSync(t,i,r,o,s);this[TE](a),e=!1}finally{if(e)try{this[ba](()=>{})}catch{}}}[_E](e){e()}[ba](e){lo.closeSync(this.fd),e()}},ADe=cX(class extends sX{constructor(e,t){t=t||{};super(t);this.preservePaths=!!t.preservePaths,this.portable=!!t.portable,this.strict=!!t.strict,this.noPax=!!t.noPax,this.noMtime=!!t.noMtime,this.readEntry=e,this.type=e.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=t.prefix||null,this.path=ao(e.path),this.mode=this[kv](e.mode),this.uid=this.portable?null:e.uid,this.gid=this.portable?null:e.gid,this.uname=this.portable?null:e.uname,this.gname=this.portable?null:e.gname,this.size=e.size,this.mtime=this.noMtime?null:t.mtime||e.mtime,this.atime=this.portable?null:e.atime,this.ctime=this.portable?null:e.ctime,this.linkpath=ao(e.linkpath),typeof t.onwarn=="function"&&this.on("warn",t.onwarn);let i=!1;if(!this.preservePaths){let[r,o]=hX(this.path);r&&(this.path=o,i=r)}this.remain=e.size,this.blockRemain=e.startBlockSize,this.header=new lX({path:this[uo](this.path),linkpath:this.type==="Link"?this[uo](this.linkpath):this.linkpath,mode:this.mode,uid:this.portable?null:this.uid,gid:this.portable?null:this.gid,size:this.size,mtime:this.noMtime?null:this.mtime,type:this.type,uname:this.portable?null:this.uname,atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime}),i&&this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:this,path:i+this.path}),this.header.encode()&&!this.noPax&&super.write(new aX({atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime,gid:this.portable?null:this.gid,mtime:this.noMtime?null:this.mtime,path:this[uo](this.path),linkpath:this.type==="Link"?this[uo](this.linkpath):this.linkpath,size:this.size,uid:this.portable?null:this.uid,uname:this.portable?null:this.uname,dev:this.portable?null:this.readEntry.dev,ino:this.portable?null:this.readEntry.ino,nlink:this.portable?null:this.readEntry.nlink}).encode()),super.write(this.header.block),e.pipe(this)}[uo](e){return uX(e,this.prefix)}[kv](e){return dX(e,this.type==="Directory",this.portable)}write(e){let t=e.length;if(t>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=t,super.write(e)}end(){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),super.end()}});Ev.Sync=gX;Ev.Tar=ADe;var ODe=n=>n.isFile()?"File":n.isDirectory()?"Directory":n.isSymbolicLink()?"SymbolicLink":"Unsupported";fX.exports=Ev});var Av=m((hHe,xX)=>{"use strict";var AE=class{constructor(e,t){this.path=e||"./",this.absolute=t,this.entry=null,this.stat=null,this.readdir=null,this.pending=!1,this.ignore=!1,this.piped=!1}},MDe=Jc(),NDe=hE(),BDe=yv(),BE=RE(),HDe=BE.Sync,qDe=BE.Tar,YDe=Ug(),pX=Buffer.alloc(1024),Rv=Symbol("onStat"),Pv=Symbol("ended"),co=Symbol("queue"),Kc=Symbol("current"),Ol=Symbol("process"),_v=Symbol("processing"),mX=Symbol("processJob"),ho=Symbol("jobs"),LE=Symbol("jobDone"),Lv=Symbol("addFSEntry"),bX=Symbol("addTarEntry"),OE=Symbol("stat"),ME=Symbol("readdir"),Fv=Symbol("onreaddir"),Iv=Symbol("pipe"),yX=Symbol("entry"),FE=Symbol("entryOpt"),NE=Symbol("writeEntryClass"),wX=Symbol("write"),IE=Symbol("ondrain"),jv=require("fs"),vX=require("path"),WDe=xv(),jE=Xc(),HE=WDe(class extends MDe{constructor(e){super(e);e=e||Object.create(null),this.opt=e,this.file=e.file||"",this.cwd=e.cwd||process.cwd(),this.maxReadSize=e.maxReadSize,this.preservePaths=!!e.preservePaths,this.strict=!!e.strict,this.noPax=!!e.noPax,this.prefix=jE(e.prefix||""),this.linkCache=e.linkCache||new Map,this.statCache=e.statCache||new Map,this.readdirCache=e.readdirCache||new Map,this[NE]=BE,typeof e.onwarn=="function"&&this.on("warn",e.onwarn),this.portable=!!e.portable,this.zip=null,e.gzip?(typeof e.gzip!="object"&&(e.gzip={}),this.portable&&(e.gzip.portable=!0),this.zip=new NDe.Gzip(e.gzip),this.zip.on("data",t=>super.write(t)),this.zip.on("end",t=>super.end()),this.zip.on("drain",t=>this[IE]()),this.on("resume",t=>this.zip.resume())):this.on("drain",this[IE]),this.noDirRecurse=!!e.noDirRecurse,this.follow=!!e.follow,this.noMtime=!!e.noMtime,this.mtime=e.mtime||null,this.filter=typeof e.filter=="function"?e.filter:t=>!0,this[co]=new YDe,this[ho]=0,this.jobs=+e.jobs||4,this[_v]=!1,this[Pv]=!1}[wX](e){return super.write(e)}add(e){return this.write(e),this}end(e){return e&&this.write(e),this[Pv]=!0,this[Ol](),this}write(e){if(this[Pv])throw new Error("write after end");return e instanceof BDe?this[bX](e):this[Lv](e),this.flowing}[bX](e){let t=jE(vX.resolve(this.cwd,e.path));if(!this.filter(e.path,e))e.resume();else{let i=new AE(e.path,t,!1);i.entry=new qDe(e,this[FE](i)),i.entry.on("end",r=>this[LE](i)),this[ho]+=1,this[co].push(i)}this[Ol]()}[Lv](e){let t=jE(vX.resolve(this.cwd,e));this[co].push(new AE(e,t)),this[Ol]()}[OE](e){e.pending=!0,this[ho]+=1;let t=this.follow?"stat":"lstat";jv[t](e.absolute,(i,r)=>{e.pending=!1,this[ho]-=1,i?this.emit("error",i):this[Rv](e,r)})}[Rv](e,t){this.statCache.set(e.absolute,t),e.stat=t,this.filter(e.path,t)||(e.ignore=!0),this[Ol]()}[ME](e){e.pending=!0,this[ho]+=1,jv.readdir(e.absolute,(t,i)=>{if(e.pending=!1,this[ho]-=1,t)return this.emit("error",t);this[Fv](e,i)})}[Fv](e,t){this.readdirCache.set(e.absolute,t),e.readdir=t,this[Ol]()}[Ol](){if(!this[_v]){this[_v]=!0;for(let e=this[co].head;e!==null&&this[ho]this.warn(t,i,r),noPax:this.noPax,cwd:this.cwd,absolute:e.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime,prefix:this.prefix}}[yX](e){this[ho]+=1;try{return new this[NE](e.path,this[FE](e)).on("end",()=>this[LE](e)).on("error",t=>this.emit("error",t))}catch(t){this.emit("error",t)}}[IE](){this[Kc]&&this[Kc].entry&&this[Kc].entry.resume()}[Iv](e){e.piped=!0,e.readdir&&e.readdir.forEach(r=>{let o=e.path,s=o==="./"?"":o.replace(/\/*$/,"/");this[Lv](s+r)});let t=e.entry,i=this.zip;i?t.on("data",r=>{i.write(r)||t.pause()}):t.on("data",r=>{super.write(r)||t.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),DX=class extends HE{constructor(e){super(e);this[NE]=HDe}pause(){}resume(){}[OE](e){let t=this.follow?"statSync":"lstatSync";this[Rv](e,jv[t](e.absolute))}[ME](e,t){this[Fv](e,jv.readdirSync(e.absolute))}[Iv](e){let t=e.entry,i=this.zip;e.readdir&&e.readdir.forEach(r=>{let o=e.path,s=o==="./"?"":o.replace(/\/*$/,"/");this[Lv](s+r)}),i?t.on("data",r=>{i.write(r)}):t.on("data",r=>{super[wX](r)})}};HE.Sync=DX;xX.exports=HE});var oh=m(vf=>{"use strict";var ZDe=Jc(),JDe=require("events").EventEmitter,yn=require("fs"),WE=yn.writev;if(!WE){let n=process.binding("fs"),e=n.FSReqWrap||n.FSReqCallback;WE=(t,i,r,o)=>{let s=(l,u)=>o(l,u,i),a=new e;a.oncomplete=s,n.writeBuffers(t,i,r,a)}}var nh=Symbol("_autoClose"),Br=Symbol("_close"),yf=Symbol("_ended"),it=Symbol("_fd"),CX=Symbol("_finished"),va=Symbol("_flags"),qE=Symbol("_flush"),ZE=Symbol("_handleChunk"),JE=Symbol("_makeBuf"),Hv=Symbol("_mode"),Ov=Symbol("_needDrain"),th=Symbol("_onerror"),rh=Symbol("_onopen"),YE=Symbol("_onread"),Vc=Symbol("_onwrite"),wa=Symbol("_open"),rs=Symbol("_path"),Ml=Symbol("_pos"),go=Symbol("_queue"),eh=Symbol("_read"),SX=Symbol("_readSize"),ya=Symbol("_reading"),Mv=Symbol("_remain"),TX=Symbol("_size"),Nv=Symbol("_write"),zc=Symbol("_writing"),Bv=Symbol("_defaultFlag"),ih=Symbol("_errored"),$E=class extends ZDe{constructor(e,t){t=t||{};super(t);if(this.readable=!0,this.writable=!1,typeof e!="string")throw new TypeError("path must be a string");this[ih]=!1,this[it]=typeof t.fd=="number"?t.fd:null,this[rs]=e,this[SX]=t.readSize||16*1024*1024,this[ya]=!1,this[TX]=typeof t.size=="number"?t.size:1/0,this[Mv]=this[TX],this[nh]=typeof t.autoClose=="boolean"?t.autoClose:!0,typeof this[it]=="number"?this[eh]():this[wa]()}get fd(){return this[it]}get path(){return this[rs]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[wa](){yn.open(this[rs],"r",(e,t)=>this[rh](e,t))}[rh](e,t){e?this[th](e):(this[it]=t,this.emit("open",t),this[eh]())}[JE](){return Buffer.allocUnsafe(Math.min(this[SX],this[Mv]))}[eh](){if(!this[ya]){this[ya]=!0;let e=this[JE]();if(e.length===0)return process.nextTick(()=>this[YE](null,0,e));yn.read(this[it],e,0,e.length,null,(t,i,r)=>this[YE](t,i,r))}}[YE](e,t,i){this[ya]=!1,e?this[th](e):this[ZE](t,i)&&this[eh]()}[Br](){if(this[nh]&&typeof this[it]=="number"){let e=this[it];this[it]=null,yn.close(e,t=>t?this.emit("error",t):this.emit("close"))}}[th](e){this[ya]=!0,this[Br](),this.emit("error",e)}[ZE](e,t){let i=!1;return this[Mv]-=e,e>0&&(i=super.write(ethis[rh](e,t))}[rh](e,t){this[Bv]&&this[va]==="r+"&&e&&e.code==="ENOENT"?(this[va]="w",this[wa]()):e?this[th](e):(this[it]=t,this.emit("open",t),this[qE]())}end(e,t){return e&&this.write(e,t),this[yf]=!0,!this[zc]&&!this[go].length&&typeof this[it]=="number"&&this[Vc](null,0),this}write(e,t){return typeof e=="string"&&(e=Buffer.from(e,t)),this[yf]?(this.emit("error",new Error("write() after end()")),!1):this[it]===null||this[zc]||this[go].length?(this[go].push(e),this[Ov]=!0,!1):(this[zc]=!0,this[Nv](e),!0)}[Nv](e){yn.write(this[it],e,0,e.length,this[Ml],(t,i)=>this[Vc](t,i))}[Vc](e,t){e?this[th](e):(this[Ml]!==null&&(this[Ml]+=t),this[go].length?this[qE]():(this[zc]=!1,this[yf]&&!this[CX]?(this[CX]=!0,this[Br](),this.emit("finish")):this[Ov]&&(this[Ov]=!1,this.emit("drain"))))}[qE](){if(this[go].length===0)this[yf]&&this[Vc](null,0);else if(this[go].length===1)this[Nv](this[go].pop());else{let e=this[go];this[go]=[],WE(this[it],e,this[Ml],(t,i)=>this[Vc](t,i))}}[Br](){if(this[nh]&&typeof this[it]=="number"){let e=this[it];this[it]=null,yn.close(e,t=>t?this.emit("error",t):this.emit("close"))}}},EX=class extends XE{[wa](){let e;if(this[Bv]&&this[va]==="r+")try{e=yn.openSync(this[rs],this[va],this[Hv])}catch(t){if(t.code==="ENOENT")return this[va]="w",this[wa]();throw t}else e=yn.openSync(this[rs],this[va],this[Hv]);this[rh](null,e)}[Br](){if(this[nh]&&typeof this[it]=="number"){let e=this[it];this[it]=null,yn.closeSync(e),this.emit("close")}}[Nv](e){let t=!0;try{this[Vc](null,yn.writeSync(this[it],e,0,e.length,this[Ml])),t=!1}finally{if(t)try{this[Br]()}catch{}}}};vf.ReadStream=$E;vf.ReadStreamSync=kX;vf.WriteStream=XE;vf.WriteStreamSync=EX});var Xv=m((fHe,jX)=>{"use strict";var $De=xv(),XDe=Gc(),UDe=require("events"),GDe=Ug(),QDe=1024*1024,KDe=yv(),PX=Dv(),zDe=hE(),UE=Buffer.from([31,139]),sr=Symbol("state"),Nl=Symbol("writeEntry"),os=Symbol("readEntry"),GE=Symbol("nextEntry"),_X=Symbol("processEntry"),ar=Symbol("extendedHeader"),wf=Symbol("globalExtendedHeader"),Da=Symbol("meta"),RX=Symbol("emitMeta"),vt=Symbol("buffer"),ss=Symbol("queue"),Bl=Symbol("ended"),LX=Symbol("emittedEnd"),Hl=Symbol("emit"),vn=Symbol("unzip"),qv=Symbol("consumeChunk"),Yv=Symbol("consumeChunkSub"),QE=Symbol("consumeBody"),FX=Symbol("consumeMeta"),IX=Symbol("consumeHeader"),Wv=Symbol("consuming"),KE=Symbol("bufferConcat"),zE=Symbol("maybeEnd"),Df=Symbol("writing"),xa=Symbol("aborted"),Zv=Symbol("onDone"),ql=Symbol("sawValidEntry"),Jv=Symbol("sawNullBlock"),$v=Symbol("sawEOF"),VDe=n=>!0;jX.exports=$De(class extends UDe{constructor(e){e=e||{};super(e);this.file=e.file||"",this[ql]=null,this.on(Zv,t=>{(this[sr]==="begin"||this[ql]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),e.ondone?this.on(Zv,e.ondone):this.on(Zv,t=>{this.emit("prefinish"),this.emit("finish"),this.emit("end"),this.emit("close")}),this.strict=!!e.strict,this.maxMetaEntrySize=e.maxMetaEntrySize||QDe,this.filter=typeof e.filter=="function"?e.filter:VDe,this.writable=!0,this.readable=!1,this[ss]=new GDe,this[vt]=null,this[os]=null,this[Nl]=null,this[sr]="begin",this[Da]="",this[ar]=null,this[wf]=null,this[Bl]=!1,this[vn]=null,this[xa]=!1,this[Jv]=!1,this[$v]=!1,typeof e.onwarn=="function"&&this.on("warn",e.onwarn),typeof e.onentry=="function"&&this.on("entry",e.onentry)}[IX](e,t){this[ql]===null&&(this[ql]=!1);let i;try{i=new XDe(e,t,this[ar],this[wf])}catch(r){return this.warn("TAR_ENTRY_INVALID",r)}if(i.nullBlock)this[Jv]?(this[$v]=!0,this[sr]==="begin"&&(this[sr]="header"),this[Hl]("eof")):(this[Jv]=!0,this[Hl]("nullBlock"));else if(this[Jv]=!1,!i.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:i});else if(!i.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:i});else{let r=i.type;if(/^(Symbolic)?Link$/.test(r)&&!i.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:i});else if(!/^(Symbolic)?Link$/.test(r)&&i.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:i});else{let o=this[Nl]=new KDe(i,this[ar],this[wf]);if(!this[ql])if(o.remain){let s=()=>{o.invalid||(this[ql]=!0)};o.on("end",s)}else this[ql]=!0;o.meta?o.size>this.maxMetaEntrySize?(o.ignore=!0,this[Hl]("ignoredEntry",o),this[sr]="ignore",o.resume()):o.size>0&&(this[Da]="",o.on("data",s=>this[Da]+=s),this[sr]="meta"):(this[ar]=null,o.ignore=o.ignore||!this.filter(o.path,o),o.ignore?(this[Hl]("ignoredEntry",o),this[sr]=o.remain?"ignore":"header",o.resume()):(o.remain?this[sr]="body":(this[sr]="header",o.end()),this[os]?this[ss].push(o):(this[ss].push(o),this[GE]())))}}}[_X](e){let t=!0;return e?Array.isArray(e)?this.emit.apply(this,e):(this[os]=e,this.emit("entry",e),e.emittedEnd||(e.on("end",i=>this[GE]()),t=!1)):(this[os]=null,t=!1),t}[GE](){do;while(this[_X](this[ss].shift()));if(!this[ss].length){let e=this[os];!e||e.flowing||e.size===e.remain?this[Df]||this.emit("drain"):e.once("drain",i=>this.emit("drain"))}}[QE](e,t){let i=this[Nl],r=i.blockRemain,o=r>=e.length&&t===0?e:e.slice(t,t+r);return i.write(o),i.blockRemain||(this[sr]="header",this[Nl]=null,i.end()),o.length}[FX](e,t){let i=this[Nl],r=this[QE](e,t);return this[Nl]||this[RX](i),r}[Hl](e,t,i){!this[ss].length&&!this[os]?this.emit(e,t,i):this[ss].push([e,t,i])}[RX](e){switch(this[Hl]("meta",this[Da]),e.type){case"ExtendedHeader":case"OldExtendedHeader":this[ar]=PX.parse(this[Da],this[ar],!1);break;case"GlobalExtendedHeader":this[wf]=PX.parse(this[Da],this[wf],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[ar]=this[ar]||Object.create(null),this[ar].path=this[Da].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[ar]=this[ar]||Object.create(null),this[ar].linkpath=this[Da].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+e.type)}}abort(e){this[xa]=!0,this.emit("abort",e),this.warn("TAR_ABORT",e,{recoverable:!1})}write(e){if(this[xa])return;if(this[vn]===null&&e){if(this[vt]&&(e=Buffer.concat([this[vt],e]),this[vt]=null),e.lengththis[qv](o)),this[vn].on("error",o=>this.abort(o)),this[vn].on("end",o=>{this[Bl]=!0,this[qv]()}),this[Df]=!0;let r=this[vn][i?"end":"write"](e);return this[Df]=!1,r}}this[Df]=!0,this[vn]?this[vn].write(e):this[qv](e),this[Df]=!1;let t=this[ss].length?!1:this[os]?this[os].flowing:!0;return!t&&!this[ss].length&&this[os].once("drain",i=>this.emit("drain")),t}[KE](e){e&&!this[xa]&&(this[vt]=this[vt]?Buffer.concat([this[vt],e]):e)}[zE](){if(this[Bl]&&!this[LX]&&!this[xa]&&!this[Wv]){this[LX]=!0;let e=this[Nl];if(e&&e.blockRemain){let t=this[vt]?this[vt].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${e.blockRemain} more bytes, only ${t} available)`,{entry:e}),this[vt]&&e.write(this[vt]),e.end()}this[Hl](Zv)}}[qv](e){if(this[Wv])this[KE](e);else if(!e&&!this[vt])this[zE]();else{if(this[Wv]=!0,this[vt]){this[KE](e);let t=this[vt];this[vt]=null,this[Yv](t)}else this[Yv](e);for(;this[vt]&&this[vt].length>=512&&!this[xa]&&!this[$v];){let t=this[vt];this[vt]=null,this[Yv](t)}this[Wv]=!1}(!this[vt]||this[Bl])&&this[zE]()}[Yv](e){let t=0,i=e.length;for(;t+512<=i&&!this[xa]&&!this[$v];)switch(this[sr]){case"begin":case"header":this[IX](e,t),t+=512;break;case"ignore":case"body":t+=this[QE](e,t);break;case"meta":t+=this[FX](e,t);break;default:throw new Error("invalid state: "+this[sr])}t{"use strict";var exe=Zc(),OX=Xv(),sh=require("fs"),txe=oh(),AX=require("path"),VE=Qc();NX.exports=(n,e,t)=>{typeof n=="function"?(t=n,e=null,n={}):Array.isArray(n)&&(e=n,n={}),typeof e=="function"&&(t=e,e=null),e?e=Array.from(e):e=[];let i=exe(n);if(i.sync&&typeof t=="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof t=="function")throw new TypeError("callback only supported with file option");return e.length&&nxe(i,e),i.noResume||ixe(i),i.file&&i.sync?rxe(i):i.file?oxe(i,t):MX(i)};var ixe=n=>{let e=n.onentry;n.onentry=e?t=>{e(t),t.resume()}:t=>t.resume()},nxe=(n,e)=>{let t=new Map(e.map(o=>[VE(o),!0])),i=n.filter,r=(o,s)=>{let a=s||AX.parse(o).root||".",l=o===a?!1:t.has(o)?t.get(o):r(AX.dirname(o),a);return t.set(o,l),l};n.filter=i?(o,s)=>i(o,s)&&r(VE(o)):o=>r(VE(o))},rxe=n=>{let e=MX(n),t=n.file,i=!0,r;try{let o=sh.statSync(t),s=n.maxReadSize||16*1024*1024;if(o.size{let t=new OX(n),i=n.maxReadSize||16*1024*1024,r=n.file,o=new Promise((s,a)=>{t.on("error",a),t.on("end",s),sh.stat(r,(l,u)=>{if(l)a(l);else{let c=new txe.ReadStream(r,{readSize:i,size:u.size});c.on("error",a),c.pipe(t)}})});return e?o.then(e,e):o},MX=n=>new OX(n)});var ZX=m((mHe,WX)=>{"use strict";var sxe=Zc(),Gv=Av(),BX=oh(),HX=Uv(),qX=require("path");WX.exports=(n,e,t)=>{if(typeof e=="function"&&(t=e),Array.isArray(n)&&(e=n,n={}),!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");e=Array.from(e);let i=sxe(n);if(i.sync&&typeof t=="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof t=="function")throw new TypeError("callback only supported with file option");return i.file&&i.sync?axe(i,e):i.file?lxe(i,e,t):i.sync?uxe(i,e):cxe(i,e)};var axe=(n,e)=>{let t=new Gv.Sync(n),i=new BX.WriteStreamSync(n.file,{mode:n.mode||438});t.pipe(i),YX(t,e)},lxe=(n,e,t)=>{let i=new Gv(n),r=new BX.WriteStream(n.file,{mode:n.mode||438});i.pipe(r);let o=new Promise((s,a)=>{r.on("error",a),r.on("close",s),i.on("error",a)});return eP(i,e),t?o.then(t,t):o},YX=(n,e)=>{e.forEach(t=>{t.charAt(0)==="@"?HX({file:qX.resolve(n.cwd,t.substr(1)),sync:!0,noResume:!0,onentry:i=>n.add(i)}):n.add(t)}),n.end()},eP=(n,e)=>{for(;e.length;){let t=e.shift();if(t.charAt(0)==="@")return HX({file:qX.resolve(n.cwd,t.substr(1)),noResume:!0,onentry:i=>n.add(i)}).then(i=>eP(n,e));n.add(t)}n.end()},uxe=(n,e)=>{let t=new Gv.Sync(n);return YX(t,e),t},cxe=(n,e)=>{let t=new Gv(n);return eP(t,e),t}});var tP=m((bHe,KX)=>{"use strict";var hxe=Zc(),JX=Av(),Bn=require("fs"),$X=oh(),XX=Uv(),UX=require("path"),GX=Gc();KX.exports=(n,e,t)=>{let i=hxe(n);if(!i.file)throw new TypeError("file is required");if(i.gzip)throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");return e=Array.from(e),i.sync?dxe(i,e):fxe(i,e,t)};var dxe=(n,e)=>{let t=new JX.Sync(n),i=!0,r,o;try{try{r=Bn.openSync(n.file,"r+")}catch(l){if(l.code==="ENOENT")r=Bn.openSync(n.file,"w+");else throw l}let s=Bn.fstatSync(r),a=Buffer.alloc(512);e:for(o=0;os.size)break;o+=u,n.mtimeCache&&n.mtimeCache.set(l.path,l.mtime)}i=!1,gxe(n,t,o,r,e)}finally{if(i)try{Bn.closeSync(r)}catch{}}},gxe=(n,e,t,i,r)=>{let o=new $X.WriteStreamSync(n.file,{fd:i,start:t});e.pipe(o),pxe(e,r)},fxe=(n,e,t)=>{e=Array.from(e);let i=new JX(n),r=(s,a,l)=>{let u=(f,p)=>{f?Bn.close(s,b=>l(f)):l(null,p)},c=0;if(a===0)return u(null,0);let h=0,d=Buffer.alloc(512),g=(f,p)=>{if(f)return u(f);if(h+=p,h<512&&p)return Bn.read(s,d,h,d.length-h,c+h,g);if(c===0&&d[0]===31&&d[1]===139)return u(new Error("cannot append to compressed archives"));if(h<512)return u(null,c);let b=new GX(d);if(!b.cksumValid)return u(null,c);let v=512*Math.ceil(b.size/512);if(c+v+512>a||(c+=v+512,c>=a))return u(null,c);n.mtimeCache&&n.mtimeCache.set(b.path,b.mtime),h=0,Bn.read(s,d,0,512,c,g)};Bn.read(s,d,0,512,c,g)},o=new Promise((s,a)=>{i.on("error",a);let l="r+",u=(c,h)=>{if(c&&c.code==="ENOENT"&&l==="r+")return l="w+",Bn.open(n.file,l,u);if(c)return a(c);Bn.fstat(h,(d,g)=>{if(d)return Bn.close(h,()=>a(d));r(h,g.size,(f,p)=>{if(f)return a(f);let b=new $X.WriteStream(n.file,{fd:h,start:p});i.pipe(b),b.on("error",a),b.on("close",s),QX(i,e)})})};Bn.open(n.file,l,u)});return t?o.then(t,t):o},pxe=(n,e)=>{e.forEach(t=>{t.charAt(0)==="@"?XX({file:UX.resolve(n.cwd,t.substr(1)),sync:!0,noResume:!0,onentry:i=>n.add(i)}):n.add(t)}),n.end()},QX=(n,e)=>{for(;e.length;){let t=e.shift();if(t.charAt(0)==="@")return XX({file:UX.resolve(n.cwd,t.substr(1)),noResume:!0,onentry:i=>n.add(i)}).then(i=>QX(n,e));n.add(t)}n.end()}});var VX=m((yHe,zX)=>{"use strict";var mxe=Zc(),bxe=tP();zX.exports=(n,e,t)=>{let i=mxe(n);if(!i.file)throw new TypeError("file is required");if(i.gzip)throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");return e=Array.from(e),yxe(i),bxe(i,e,t)};var yxe=n=>{let e=n.filter;n.mtimeCache||(n.mtimeCache=new Map),n.filter=e?(t,i)=>e(t,i)&&!(n.mtimeCache.get(t)>i.mtime):(t,i)=>!(n.mtimeCache.get(t)>i.mtime)}});var iU=m((vHe,tU)=>{var{promisify:eU}=require("util"),Ca=require("fs"),vxe=n=>{if(!n)n={mode:511,fs:Ca};else if(typeof n=="object")n=ge({mode:511,fs:Ca},n);else if(typeof n=="number")n={mode:n,fs:Ca};else if(typeof n=="string")n={mode:parseInt(n,8),fs:Ca};else throw new TypeError("invalid options argument");return n.mkdir=n.mkdir||n.fs.mkdir||Ca.mkdir,n.mkdirAsync=eU(n.mkdir),n.stat=n.stat||n.fs.stat||Ca.stat,n.statAsync=eU(n.stat),n.statSync=n.statSync||n.fs.statSync||Ca.statSync,n.mkdirSync=n.mkdirSync||n.fs.mkdirSync||Ca.mkdirSync,n};tU.exports=vxe});var rU=m((wHe,nU)=>{var wxe=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:Dxe,parse:xxe}=require("path"),Cxe=n=>{if(/\0/.test(n))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:n,code:"ERR_INVALID_ARG_VALUE"});if(n=Dxe(n),wxe==="win32"){let e=/[*|"<>?:]/,{root:t}=xxe(n);if(e.test(n.substr(t.length)))throw Object.assign(new Error("Illegal characters in path."),{path:n,code:"EINVAL"})}return n};nU.exports=Cxe});var uU=m((DHe,lU)=>{var{dirname:oU}=require("path"),sU=(n,e,t=void 0)=>t===e?Promise.resolve():n.statAsync(e).then(i=>i.isDirectory()?t:void 0,i=>i.code==="ENOENT"?sU(n,oU(e),e):void 0),aU=(n,e,t=void 0)=>{if(t!==e)try{return n.statSync(e).isDirectory()?t:void 0}catch(i){return i.code==="ENOENT"?aU(n,oU(e),e):void 0}};lU.exports={findMade:sU,findMadeSync:aU}});var rP=m((xHe,hU)=>{var{dirname:cU}=require("path"),iP=(n,e,t)=>{e.recursive=!1;let i=cU(n);return i===n?e.mkdirAsync(n,e).catch(r=>{if(r.code!=="EISDIR")throw r}):e.mkdirAsync(n,e).then(()=>t||n,r=>{if(r.code==="ENOENT")return iP(i,e).then(o=>iP(n,e,o));if(r.code!=="EEXIST"&&r.code!=="EROFS")throw r;return e.statAsync(n).then(o=>{if(o.isDirectory())return t;throw r},()=>{throw r})})},nP=(n,e,t)=>{let i=cU(n);if(e.recursive=!1,i===n)try{return e.mkdirSync(n,e)}catch(r){if(r.code!=="EISDIR")throw r;return}try{return e.mkdirSync(n,e),t||n}catch(r){if(r.code==="ENOENT")return nP(n,e,nP(i,e,t));if(r.code!=="EEXIST"&&r.code!=="EROFS")throw r;try{if(!e.statSync(n).isDirectory())throw r}catch{throw r}}};hU.exports={mkdirpManual:iP,mkdirpManualSync:nP}});var fU=m((CHe,gU)=>{var{dirname:dU}=require("path"),{findMade:Sxe,findMadeSync:Txe}=uU(),{mkdirpManual:kxe,mkdirpManualSync:Exe}=rP(),Pxe=(n,e)=>(e.recursive=!0,dU(n)===n?e.mkdirAsync(n,e):Sxe(e,n).then(i=>e.mkdirAsync(n,e).then(()=>i).catch(r=>{if(r.code==="ENOENT")return kxe(n,e);throw r}))),_xe=(n,e)=>{if(e.recursive=!0,dU(n)===n)return e.mkdirSync(n,e);let i=Txe(e,n);try{return e.mkdirSync(n,e),i}catch(r){if(r.code==="ENOENT")return Exe(n,e);throw r}};gU.exports={mkdirpNative:Pxe,mkdirpNativeSync:_xe}});var yU=m((SHe,bU)=>{var pU=require("fs"),Rxe=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,oP=Rxe.replace(/^v/,"").split("."),mU=+oP[0]>10||+oP[0]==10&&+oP[1]>=12,Lxe=mU?n=>n.mkdir===pU.mkdir:()=>!1,Fxe=mU?n=>n.mkdirSync===pU.mkdirSync:()=>!1;bU.exports={useNative:Lxe,useNativeSync:Fxe}});var SU=m((THe,CU)=>{var ah=iU(),lh=rU(),{mkdirpNative:vU,mkdirpNativeSync:wU}=fU(),{mkdirpManual:DU,mkdirpManualSync:xU}=rP(),{useNative:Ixe,useNativeSync:jxe}=yU(),uh=(n,e)=>(n=lh(n),e=ah(e),Ixe(e)?vU(n,e):DU(n,e)),Axe=(n,e)=>(n=lh(n),e=ah(e),jxe(e)?wU(n,e):xU(n,e));uh.sync=Axe;uh.native=(n,e)=>vU(lh(n),ah(e));uh.manual=(n,e)=>DU(lh(n),ah(e));uh.nativeSync=(n,e)=>wU(lh(n),ah(e));uh.manualSync=(n,e)=>xU(lh(n),ah(e));CU.exports=uh});var LU=m((kHe,RU)=>{"use strict";var lr=require("fs"),Yl=require("path"),Oxe=lr.lchown?"lchown":"chown",Mxe=lr.lchownSync?"lchownSync":"chownSync",kU=lr.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),TU=(n,e,t)=>{try{return lr[Mxe](n,e,t)}catch(i){if(i.code!=="ENOENT")throw i}},Nxe=(n,e,t)=>{try{return lr.chownSync(n,e,t)}catch(i){if(i.code!=="ENOENT")throw i}},Bxe=kU?(n,e,t,i)=>r=>{!r||r.code!=="EISDIR"?i(r):lr.chown(n,e,t,i)}:(n,e,t,i)=>i,sP=kU?(n,e,t)=>{try{return TU(n,e,t)}catch(i){if(i.code!=="EISDIR")throw i;Nxe(n,e,t)}}:(n,e,t)=>TU(n,e,t),Hxe=process.version,EU=(n,e,t)=>lr.readdir(n,e,t),qxe=(n,e)=>lr.readdirSync(n,e);/^v4\./.test(Hxe)&&(EU=(n,e,t)=>lr.readdir(n,t));var Qv=(n,e,t,i)=>{lr[Oxe](n,e,t,Bxe(n,e,t,r=>{i(r&&r.code!=="ENOENT"?r:null)}))},PU=(n,e,t,i,r)=>{if(typeof e=="string")return lr.lstat(Yl.resolve(n,e),(o,s)=>{if(o)return r(o.code!=="ENOENT"?o:null);s.name=e,PU(n,s,t,i,r)});if(e.isDirectory())aP(Yl.resolve(n,e.name),t,i,o=>{if(o)return r(o);let s=Yl.resolve(n,e.name);Qv(s,t,i,r)});else{let o=Yl.resolve(n,e.name);Qv(o,t,i,r)}},aP=(n,e,t,i)=>{EU(n,{withFileTypes:!0},(r,o)=>{if(r){if(r.code==="ENOENT")return i();if(r.code!=="ENOTDIR"&&r.code!=="ENOTSUP")return i(r)}if(r||!o.length)return Qv(n,e,t,i);let s=o.length,a=null,l=u=>{if(!a){if(u)return i(a=u);if(--s===0)return Qv(n,e,t,i)}};o.forEach(u=>PU(n,u,e,t,l))})},Yxe=(n,e,t,i)=>{if(typeof e=="string")try{let r=lr.lstatSync(Yl.resolve(n,e));r.name=e,e=r}catch(r){if(r.code==="ENOENT")return;throw r}e.isDirectory()&&_U(Yl.resolve(n,e.name),t,i),sP(Yl.resolve(n,e.name),t,i)},_U=(n,e,t)=>{let i;try{i=qxe(n,{withFileTypes:!0})}catch(r){if(r.code==="ENOENT")return;if(r.code==="ENOTDIR"||r.code==="ENOTSUP")return sP(n,e,t);throw r}return i&&i.length&&i.forEach(r=>Yxe(n,r,e,t)),sP(n,e,t)};RU.exports=aP;aP.sync=_U});var AU=m((EHe,cP)=>{"use strict";var FU=SU(),ur=require("fs"),Kv=require("path"),IU=LU(),Hr=Xc(),lP=class extends Error{constructor(e,t){super("Cannot extract through symbolic link");this.path=t,this.symlink=e}get name(){return"SylinkError"}},uP=class extends Error{constructor(e,t){super(t+": Cannot cd into '"+e+"'");this.path=e,this.code=t}get name(){return"CwdError"}},zv=(n,e)=>n.get(Hr(e)),xf=(n,e,t)=>n.set(Hr(e),t),Wxe=(n,e)=>{ur.stat(n,(t,i)=>{(t||!i.isDirectory())&&(t=new uP(n,t&&t.code||"ENOTDIR")),e(t)})};cP.exports=(n,e,t)=>{n=Hr(n);let i=e.umask,r=e.mode|448,o=(r&i)!==0,s=e.uid,a=e.gid,l=typeof s=="number"&&typeof a=="number"&&(s!==e.processUid||a!==e.processGid),u=e.preserve,c=e.unlink,h=e.cache,d=Hr(e.cwd),g=(b,v)=>{b?t(b):(xf(h,n,!0),v&&l?IU(v,s,a,w=>g(w)):o?ur.chmod(n,r,t):t())};if(h&&zv(h,n)===!0)return g();if(n===d)return Wxe(n,g);if(u)return FU(n,{mode:r}).then(b=>g(null,b),g);let p=Hr(Kv.relative(d,n)).split("/");Vv(d,p,r,h,c,d,null,g)};var Vv=(n,e,t,i,r,o,s,a)=>{if(!e.length)return a(null,s);let l=e.shift(),u=Hr(Kv.resolve(n+"/"+l));if(zv(i,u))return Vv(u,e,t,i,r,o,s,a);ur.mkdir(u,t,jU(u,e,t,i,r,o,s,a))},jU=(n,e,t,i,r,o,s,a)=>l=>{l?ur.lstat(n,(u,c)=>{if(u)u.path=u.path&&Hr(u.path),a(u);else if(c.isDirectory())Vv(n,e,t,i,r,o,s,a);else if(r)ur.unlink(n,h=>{if(h)return a(h);ur.mkdir(n,t,jU(n,e,t,i,r,o,s,a))});else{if(c.isSymbolicLink())return a(new lP(n,n+"/"+e.join("/")));a(l)}}):(s=s||n,Vv(n,e,t,i,r,o,s,a))},Zxe=n=>{let e=!1,t="ENOTDIR";try{e=ur.statSync(n).isDirectory()}catch(i){t=i.code}finally{if(!e)throw new uP(n,t)}};cP.exports.sync=(n,e)=>{n=Hr(n);let t=e.umask,i=e.mode|448,r=(i&t)!==0,o=e.uid,s=e.gid,a=typeof o=="number"&&typeof s=="number"&&(o!==e.processUid||s!==e.processGid),l=e.preserve,u=e.unlink,c=e.cache,h=Hr(e.cwd),d=b=>{xf(c,n,!0),b&&a&&IU.sync(b,o,s),r&&ur.chmodSync(n,i)};if(c&&zv(c,n)===!0)return d();if(n===h)return Zxe(h),d();if(l)return d(FU.sync(n,i));let f=Hr(Kv.relative(h,n)).split("/"),p=null;for(let b=f.shift(),v=h;b&&(v+="/"+b);b=f.shift())if(v=Hr(Kv.resolve(v)),!zv(c,v))try{ur.mkdirSync(v,i),p=p||v,xf(c,v,!0)}catch{let D=ur.lstatSync(v);if(D.isDirectory()){xf(c,v,!0);continue}else if(u){ur.unlinkSync(v),ur.mkdirSync(v,i),p=p||v,xf(c,v,!0);continue}else if(D.isSymbolicLink())return new lP(v,v+"/"+f.join("/"))}return d(p)}});var dP=m((PHe,OU)=>{var hP=Object.create(null),{hasOwnProperty:Jxe}=Object.prototype;OU.exports=n=>(Jxe.call(hP,n)||(hP[n]=n.normalize("NFKD")),hP[n])});var HU=m((_He,BU)=>{var MU=require("assert"),$xe=dP(),Xxe=Qc(),{join:NU}=require("path"),Uxe=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,Gxe=Uxe==="win32";BU.exports=()=>{let n=new Map,e=new Map,t=u=>u.split("/").slice(0,-1).reduce((h,d)=>(h.length&&(d=NU(h[h.length-1],d)),h.push(d||"/"),h),[]),i=new Set,r=u=>{let c=e.get(u);if(!c)throw new Error("function does not have any path reservations");return{paths:c.paths.map(h=>n.get(h)),dirs:[...c.dirs].map(h=>n.get(h))}},o=u=>{let{paths:c,dirs:h}=r(u);return c.every(d=>d[0]===u)&&h.every(d=>d[0]instanceof Set&&d[0].has(u))},s=u=>i.has(u)||!o(u)?!1:(i.add(u),u(()=>a(u)),!0),a=u=>{if(!i.has(u))return!1;let{paths:c,dirs:h}=e.get(u),d=new Set;return c.forEach(g=>{let f=n.get(g);MU.equal(f[0],u),f.length===1?n.delete(g):(f.shift(),typeof f[0]=="function"?d.add(f[0]):f[0].forEach(p=>d.add(p)))}),h.forEach(g=>{let f=n.get(g);MU(f[0]instanceof Set),f[0].size===1&&f.length===1?n.delete(g):f[0].size===1?(f.shift(),d.add(f[0])):f[0].delete(u)}),i.delete(u),d.forEach(g=>s(g)),!0};return{check:o,reserve:(u,c)=>{u=Gxe?["win32 parallelization disabled"]:u.map(d=>$xe(Xxe(NU(d))).toLowerCase());let h=new Set(u.map(d=>t(d)).reduce((d,g)=>d.concat(g)));return e.set(c,{dirs:h,paths:u}),u.forEach(d=>{let g=n.get(d);g?g.push(c):n.set(d,[c])}),h.forEach(d=>{let g=n.get(d);g?g[g.length-1]instanceof Set?g[g.length-1].add(c):g.push(new Set([c])):n.set(d,[new Set([c])])}),s(c)}}}});var WU=m((RHe,YU)=>{var Qxe=process.env.__FAKE_PLATFORM__||process.platform,Kxe=Qxe==="win32",zxe=global.__FAKE_TESTING_FS__||require("fs"),{O_CREAT:Vxe,O_TRUNC:eCe,O_WRONLY:tCe,UV_FS_O_FILEMAP:qU=0}=zxe.constants,iCe=Kxe&&!!qU,nCe=512*1024,rCe=qU|eCe|Vxe|tCe;YU.exports=iCe?n=>n"w"});var wP=m((LHe,r8)=>{"use strict";var oCe=require("assert"),sCe=Xv(),He=require("fs"),aCe=oh(),as=require("path"),e8=AU(),ZU=wE(),lCe=HU(),uCe=DE(),Hn=Xc(),cCe=Qc(),hCe=dP(),JU=Symbol("onEntry"),pP=Symbol("checkFs"),$U=Symbol("checkFs2"),iw=Symbol("pruneCache"),mP=Symbol("isReusable"),cr=Symbol("makeFs"),bP=Symbol("file"),yP=Symbol("directory"),nw=Symbol("link"),XU=Symbol("symlink"),UU=Symbol("hardlink"),GU=Symbol("unsupported"),QU=Symbol("checkPath"),Sa=Symbol("mkdir"),ji=Symbol("onError"),ew=Symbol("pending"),KU=Symbol("pend"),ch=Symbol("unpend"),gP=Symbol("ended"),fP=Symbol("maybeClose"),vP=Symbol("skip"),Cf=Symbol("doChown"),Sf=Symbol("uid"),Tf=Symbol("gid"),kf=Symbol("checkedCwd"),t8=require("crypto"),i8=WU(),dCe=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,Ef=dCe==="win32",gCe=(n,e)=>{if(!Ef)return He.unlink(n,e);let t=n+".DELETE."+t8.randomBytes(16).toString("hex");He.rename(n,t,i=>{if(i)return e(i);He.unlink(t,e)})},fCe=n=>{if(!Ef)return He.unlinkSync(n);let e=n+".DELETE."+t8.randomBytes(16).toString("hex");He.renameSync(n,e),He.unlinkSync(e)},zU=(n,e,t)=>n===n>>>0?n:e===e>>>0?e:t,VU=n=>hCe(cCe(Hn(n))).toLowerCase(),pCe=(n,e)=>{e=VU(e);for(let t of n.keys()){let i=VU(t);(i===e||i.indexOf(e+"/")===0)&&n.delete(t)}},mCe=n=>{for(let e of n.keys())n.delete(e)},rw=class extends sCe{constructor(e){e||(e={}),e.ondone=t=>{this[gP]=!0,this[fP]()};super(e);if(this[kf]=!1,this.reservations=lCe(),this.transform=typeof e.transform=="function"?e.transform:null,this.writable=!0,this.readable=!1,this[ew]=0,this[gP]=!1,this.dirCache=e.dirCache||new Map,typeof e.uid=="number"||typeof e.gid=="number"){if(typeof e.uid!="number"||typeof e.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(e.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=e.uid,this.gid=e.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;e.preserveOwner===void 0&&typeof e.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!e.preserveOwner,this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():null,this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():null,this.forceChown=e.forceChown===!0,this.win32=!!e.win32||Ef,this.newer=!!e.newer,this.keep=!!e.keep,this.noMtime=!!e.noMtime,this.preservePaths=!!e.preservePaths,this.unlink=!!e.unlink,this.cwd=Hn(as.resolve(e.cwd||process.cwd())),this.strip=+e.strip||0,this.processUmask=e.noChmod?0:process.umask(),this.umask=typeof e.umask=="number"?e.umask:this.processUmask,this.dmode=e.dmode||511&~this.umask,this.fmode=e.fmode||438&~this.umask,this.on("entry",t=>this[JU](t))}warn(e,t,i={}){return(e==="TAR_BAD_ARCHIVE"||e==="TAR_ABORT")&&(i.recoverable=!1),super.warn(e,t,i)}[fP](){this[gP]&&this[ew]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"),this.emit("close"))}[QU](e){if(this.strip){let t=Hn(e.path).split("/");if(t.length=this.strip)e.linkpath=i.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let t=Hn(e.path),i=t.split("/");if(i.includes("..")||Ef&&/^[a-z]:\.\.$/i.test(i[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:e,path:t}),!1;let[r,o]=uCe(t);r&&(e.path=o,this.warn("TAR_ENTRY_INFO",`stripping ${r} from absolute path`,{entry:e,path:t}))}if(as.isAbsolute(e.path)?e.absolute=Hn(as.resolve(e.path)):e.absolute=Hn(as.resolve(this.cwd,e.path)),!this.preservePaths&&e.absolute.indexOf(this.cwd+"/")!==0&&e.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:e,path:Hn(e.path),resolvedPath:e.absolute,cwd:this.cwd}),!1;if(e.absolute===this.cwd&&e.type!=="Directory"&&e.type!=="GNUDumpDir")return!1;if(this.win32){let{root:t}=as.win32.parse(e.absolute);e.absolute=t+ZU.encode(e.absolute.substr(t.length));let{root:i}=as.win32.parse(e.path);e.path=i+ZU.encode(e.path.substr(i.length))}return!0}[JU](e){if(!this[QU](e))return e.resume();switch(oCe.equal(typeof e.absolute,"string"),e.type){case"Directory":case"GNUDumpDir":e.mode&&(e.mode=e.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[pP](e);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[GU](e)}}[ji](e,t){e.name==="CwdError"?this.emit("error",e):(this.warn("TAR_ENTRY_ERROR",e,{entry:t}),this[ch](),t.resume())}[Sa](e,t,i){e8(Hn(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:t,noChmod:this.noChmod},i)}[Cf](e){return this.forceChown||this.preserveOwner&&(typeof e.uid=="number"&&e.uid!==this.processUid||typeof e.gid=="number"&&e.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[Sf](e){return zU(this.uid,e.uid,this.processUid)}[Tf](e){return zU(this.gid,e.gid,this.processGid)}[bP](e,t){let i=e.mode&4095||this.fmode,r=new aCe.WriteStream(e.absolute,{flags:i8(e.size),mode:i,autoClose:!1});r.on("error",l=>{r.fd&&He.close(r.fd,()=>{}),r.write=()=>!0,this[ji](l,e),t()});let o=1,s=l=>{if(l){r.fd&&He.close(r.fd,()=>{}),this[ji](l,e),t();return}--o===0&&He.close(r.fd,u=>{u?this[ji](u,e):this[ch](),t()})};r.on("finish",l=>{let u=e.absolute,c=r.fd;if(e.mtime&&!this.noMtime){o++;let h=e.atime||new Date,d=e.mtime;He.futimes(c,h,d,g=>g?He.utimes(u,h,d,f=>s(f&&g)):s())}if(this[Cf](e)){o++;let h=this[Sf](e),d=this[Tf](e);He.fchown(c,h,d,g=>g?He.chown(u,h,d,f=>s(f&&g)):s())}s()});let a=this.transform&&this.transform(e)||e;a!==e&&(a.on("error",l=>{this[ji](l,e),t()}),e.pipe(a)),a.pipe(r)}[yP](e,t){let i=e.mode&4095||this.dmode;this[Sa](e.absolute,i,r=>{if(r){this[ji](r,e),t();return}let o=1,s=a=>{--o===0&&(t(),this[ch](),e.resume())};e.mtime&&!this.noMtime&&(o++,He.utimes(e.absolute,e.atime||new Date,e.mtime,s)),this[Cf](e)&&(o++,He.chown(e.absolute,this[Sf](e),this[Tf](e),s)),s()})}[GU](e){e.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e}),e.resume()}[XU](e,t){this[nw](e,e.linkpath,"symlink",t)}[UU](e,t){let i=Hn(as.resolve(this.cwd,e.linkpath));this[nw](e,i,"link",t)}[KU](){this[ew]++}[ch](){this[ew]--,this[fP]()}[vP](e){this[ch](),e.resume()}[mP](e,t){return e.type==="File"&&!this.unlink&&t.isFile()&&t.nlink<=1&&!Ef}[pP](e){this[KU]();let t=[e.path];e.linkpath&&t.push(e.linkpath),this.reservations.reserve(t,i=>this[$U](e,i))}[iw](e){e.type==="SymbolicLink"?mCe(this.dirCache):e.type!=="Directory"&&pCe(this.dirCache,e.absolute)}[$U](e,t){this[iw](e);let i=a=>{this[iw](e),t(a)},r=()=>{this[Sa](this.cwd,this.dmode,a=>{if(a){this[ji](a,e),i();return}this[kf]=!0,o()})},o=()=>{if(e.absolute!==this.cwd){let a=Hn(as.dirname(e.absolute));if(a!==this.cwd)return this[Sa](a,this.dmode,l=>{if(l){this[ji](l,e),i();return}s()})}s()},s=()=>{He.lstat(e.absolute,(a,l)=>{if(l&&(this.keep||this.newer&&l.mtime>e.mtime)){this[vP](e),i();return}if(a||this[mP](e,l))return this[cr](null,e,i);if(l.isDirectory()){if(e.type==="Directory"){let u=!this.noChmod&&e.mode&&(l.mode&4095)!==e.mode,c=h=>this[cr](h,e,i);return u?He.chmod(e.absolute,e.mode,c):c()}if(e.absolute!==this.cwd)return He.rmdir(e.absolute,u=>this[cr](u,e,i))}if(e.absolute===this.cwd)return this[cr](null,e,i);gCe(e.absolute,u=>this[cr](u,e,i))})};this[kf]?o():r()}[cr](e,t,i){if(e){this[ji](e,t),i();return}switch(t.type){case"File":case"OldFile":case"ContiguousFile":return this[bP](t,i);case"Link":return this[UU](t,i);case"SymbolicLink":return this[XU](t,i);case"Directory":case"GNUDumpDir":return this[yP](t,i)}}[nw](e,t,i,r){He[i](t,e.absolute,o=>{o?this[ji](o,e):(this[ch](),e.resume()),r()})}},tw=n=>{try{return[null,n()]}catch(e){return[e,null]}},n8=class extends rw{[cr](e,t){return super[cr](e,t,()=>{})}[pP](e){if(this[iw](e),!this[kf]){let o=this[Sa](this.cwd,this.dmode);if(o)return this[ji](o,e);this[kf]=!0}if(e.absolute!==this.cwd){let o=Hn(as.dirname(e.absolute));if(o!==this.cwd){let s=this[Sa](o,this.dmode);if(s)return this[ji](s,e)}}let[t,i]=tw(()=>He.lstatSync(e.absolute));if(i&&(this.keep||this.newer&&i.mtime>e.mtime))return this[vP](e);if(t||this[mP](e,i))return this[cr](null,e);if(i.isDirectory()){if(e.type==="Directory"){let s=!this.noChmod&&e.mode&&(i.mode&4095)!==e.mode,[a]=s?tw(()=>{He.chmodSync(e.absolute,e.mode)}):[];return this[cr](a,e)}let[o]=tw(()=>He.rmdirSync(e.absolute));this[cr](o,e)}let[r]=e.absolute===this.cwd?[]:tw(()=>fCe(e.absolute));this[cr](r,e)}[bP](e,t){let i=e.mode&4095||this.fmode,r=a=>{let l;try{He.closeSync(o)}catch(u){l=u}(a||l)&&this[ji](a||l,e),t()},o;try{o=He.openSync(e.absolute,i8(e.size),i)}catch(a){return r(a)}let s=this.transform&&this.transform(e)||e;s!==e&&(s.on("error",a=>this[ji](a,e)),e.pipe(s)),s.on("data",a=>{try{He.writeSync(o,a,0,a.length)}catch(l){r(l)}}),s.on("end",a=>{let l=null;if(e.mtime&&!this.noMtime){let u=e.atime||new Date,c=e.mtime;try{He.futimesSync(o,u,c)}catch(h){try{He.utimesSync(e.absolute,u,c)}catch{l=h}}}if(this[Cf](e)){let u=this[Sf](e),c=this[Tf](e);try{He.fchownSync(o,u,c)}catch(h){try{He.chownSync(e.absolute,u,c)}catch{l=l||h}}}r(l)})}[yP](e,t){let i=e.mode&4095||this.dmode,r=this[Sa](e.absolute,i);if(r){this[ji](r,e),t();return}if(e.mtime&&!this.noMtime)try{He.utimesSync(e.absolute,e.atime||new Date,e.mtime)}catch{}if(this[Cf](e))try{He.chownSync(e.absolute,this[Sf](e),this[Tf](e))}catch{}t(),e.resume()}[Sa](e,t){try{return e8.sync(Hn(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:t})}catch(i){return i}}[nw](e,t,i,r){try{He[i+"Sync"](t,e.absolute),r(),e.resume()}catch(o){return this[ji](o,e)}}};rw.Sync=n8;r8.exports=rw});var u8=m((FHe,l8)=>{"use strict";var bCe=Zc(),ow=wP(),s8=require("fs"),a8=oh(),o8=require("path"),DP=Qc();l8.exports=(n,e,t)=>{typeof n=="function"?(t=n,e=null,n={}):Array.isArray(n)&&(e=n,n={}),typeof e=="function"&&(t=e,e=null),e?e=Array.from(e):e=[];let i=bCe(n);if(i.sync&&typeof t=="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof t=="function")throw new TypeError("callback only supported with file option");return e.length&&yCe(i,e),i.file&&i.sync?vCe(i):i.file?wCe(i,t):i.sync?DCe(i):xCe(i)};var yCe=(n,e)=>{let t=new Map(e.map(o=>[DP(o),!0])),i=n.filter,r=(o,s)=>{let a=s||o8.parse(o).root||".",l=o===a?!1:t.has(o)?t.get(o):r(o8.dirname(o),a);return t.set(o,l),l};n.filter=i?(o,s)=>i(o,s)&&r(DP(o)):o=>r(DP(o))},vCe=n=>{let e=new ow.Sync(n),t=n.file,i=s8.statSync(t),r=n.maxReadSize||16*1024*1024;new a8.ReadStreamSync(t,{readSize:r,size:i.size}).pipe(e)},wCe=(n,e)=>{let t=new ow(n),i=n.maxReadSize||16*1024*1024,r=n.file,o=new Promise((s,a)=>{t.on("error",a),t.on("close",s),s8.stat(r,(l,u)=>{if(l)a(l);else{let c=new a8.ReadStream(r,{readSize:i,size:u.size});c.on("error",a),c.pipe(t)}})});return e?o.then(e,e):o},DCe=n=>new ow.Sync(n),xCe=n=>new ow(n)});var c8=m(ni=>{"use strict";ni.c=ni.create=ZX();ni.r=ni.replace=tP();ni.t=ni.list=Uv();ni.u=ni.update=VX();ni.x=ni.extract=u8();ni.Pack=Av();ni.Unpack=wP();ni.Parse=Xv();ni.ReadEntry=yv();ni.WriteEntry=RE();ni.Header=Gc();ni.Pax=Dv();ni.types=fE()});var f8=m((jHe,g8)=>{g8.exports=Ai;function Ai(n){if(!(this instanceof Ai))return new Ai(n);this.value=n}Ai.prototype.get=function(n){for(var e=this.value,t=0;t{var CCe=f8(),SCe=require("events").EventEmitter;p8.exports=hh;function hh(n){var e=hh.saw(n,{}),t=n.call(e.handlers,e);return t!==void 0&&(e.handlers=t),e.record(),e.chain()}hh.light=function(e){var t=hh.saw(e,{}),i=e.call(t.handlers,t);return i!==void 0&&(t.handlers=i),t.chain()};hh.saw=function(n,e){var t=new SCe;return t.handlers=e,t.actions=[],t.chain=function(){var i=CCe(t.handlers).map(function(r){if(this.isRoot)return r;var o=this.path;typeof r=="function"&&this.update(function(){return t.actions.push({path:o,args:[].slice.call(arguments)}),i})});return process.nextTick(function(){t.emit("begin"),t.next()}),i},t.pop=function(){return t.actions.shift()},t.next=function(){var i=t.pop();if(!i)t.emit("end");else if(!i.trap){var r=t.handlers;i.path.forEach(function(o){r=r[o]}),r.apply(t.handlers,i.args)}},t.nest=function(i){var r=[].slice.call(arguments,1),o=!0;if(typeof i=="boolean"){var o=i;i=r.shift()}var s=hh.saw(n,{}),a=n.call(s.handlers,s);a!==void 0&&(s.handlers=a),typeof t.step<"u"&&s.record(),i.apply(s.chain(),r),o!==!1&&s.on("end",t.next)},t.record=function(){TCe(t)},["trap","down","jump"].forEach(function(i){t[i]=function(){throw new Error("To use the trap, down and jump features, please call record() first to start recording actions.")}}),t};function TCe(n){n.step=0,n.pop=function(){return n.actions[n.step++]},n.trap=function(e,t){var i=Array.isArray(e)?e:[e];n.actions.push({path:i,step:n.step,cb:t,trap:!0})},n.down=function(e){var t=(Array.isArray(e)?e:[e]).join("/"),i=n.actions.slice(n.step).map(function(o){return o.trap&&o.step<=n.step?!1:o.path.join("/")==t}).indexOf(!0);i>=0?n.step+=i:n.step=n.actions.length;var r=n.actions[n.step-1];r&&r.trap?(n.step=r.step,r.cb()):n.next()},n.jump=function(e){n.step=e,n.next()}}});var y8=m((OHe,b8)=>{b8.exports=en;function en(n){if(!(this instanceof en))return new en(n);this.buffers=n||[],this.length=this.buffers.reduce(function(e,t){return e+t.length},0)}en.prototype.push=function(){for(var n=0;n=0?n:this.length-n,r=[].slice.call(arguments,2);e===void 0?e=this.length-i:e>this.length-i&&(e=this.length-i);for(var n=0;n0){var u=i-a;if(u+e0){var g=r.slice();g.unshift(h),g.push(d),t.splice.apply(t,[l,1].concat(g)),l+=g.length,r=[]}else t.splice(l,1,h,d),l+=2}else o.push(t[l].slice(u)),t[l]=t[l].slice(0,u),l++}for(r.length>0&&(t.splice.apply(t,[l,0].concat(r)),l+=r.length);o.lengththis.length&&(e=this.length);for(var i=0,r=0;r=e-n?Math.min(u+(e-n)-s,l):l;t[a].copy(o,s,u,c),s+=c-u}return o};en.prototype.pos=function(n){if(n<0||n>=this.length)throw new Error("oob");for(var e=n,t=0,i=null;;){if(i=this.buffers[t],e=this.buffers[t].length;)if(i=0,t++,t>=this.buffers.length)return-1;var l=this.buffers[t][i];if(l==n[r]){if(r==0&&(o={i:t,j:i,pos:s}),r++,r==n.length)return o.pos}else r!=0&&(t=o.i,i=o.j,s=o.pos,r=0);i++,s++}};en.prototype.toBuffer=function(){return this.slice()};en.prototype.toString=function(n,e,t){return this.slice(e,t).toString(n)}});var w8=m((MHe,v8)=>{v8.exports=function(n){function e(i,r){var o=t.store,s=i.split(".");s.slice(0,-1).forEach(function(l){o[l]===void 0&&(o[l]={}),o=o[l]});var a=s[s.length-1];return arguments.length==1?o[a]:o[a]=r}var t={get:function(i){return e(i)},set:function(i,r){return e(i,r)},store:n||{}};return t}});var k8=m((Wl,T8)=>{var kCe=m8(),D8=require("events").EventEmitter,ECe=y8(),sw=w8(),PCe=require("stream").Stream;Wl=T8.exports=function(n,e){if(Buffer.isBuffer(n))return Wl.parse(n);var t=Wl.stream();return n&&n.pipe?n.pipe(t):n&&(n.on(e||"data",function(i){t.write(i)}),n.on("end",function(){t.end()})),t};Wl.stream=function(n){if(n)return Wl.apply(null,arguments);var e=null;function t(h,d,g){e={bytes:h,skip:g,cb:function(f){e=null,d(f)}},r()}var i=null;function r(){if(!e){c&&(u=!0);return}if(typeof e=="function")e();else{var h=i+e.bytes;if(a.length>=h){var d;i==null?(d=a.splice(0,h),e.skip||(d=d.slice())):(e.skip||(d=a.slice(i,h)),i=h),e.skip?e.cb():e.cb(d)}}}function o(h){function d(){u||h.next()}var g=S8(function(f,p){return function(b){t(f,function(v){l.set(b,p(v)),d()})}});return g.tap=function(f){h.nest(f,l.store)},g.into=function(f,p){l.get(f)||l.set(f,{});var b=l;l=sw(b.get(f)),h.nest(function(){p.apply(this,arguments),this.tap(function(){l=b})},l.store)},g.flush=function(){l.store={},d()},g.loop=function(f){var p=!1;h.nest(!1,function b(){this.vars=l.store,f.call(this,function(){p=!0,d()},l.store),this.tap(function(){p?h.next():b.call(this)}.bind(this))},l.store)},g.buffer=function(f,p){typeof p=="string"&&(p=l.get(p)),t(p,function(b){l.set(f,b),d()})},g.skip=function(f){typeof f=="string"&&(f=l.get(f)),t(f,function(){d()})},g.scan=function(p,b){if(typeof b=="string")b=new Buffer(b);else if(!Buffer.isBuffer(b))throw new Error("search must be a Buffer or a string");var v=0;e=function(){var w=a.indexOf(b,i+v),D=w-i-v;w!==-1?(e=null,i!=null?(l.set(p,a.slice(i,i+v+D)),i+=v+D+b.length):(l.set(p,a.slice(0,v+D)),a.splice(0,v+D+b.length)),d(),r()):D=Math.max(a.length-b.length-i-v,0),v+=D},r()},g.peek=function(f){i=0,h.nest(function(){f.call(this,l.store),this.tap(function(){i=null})})},g}var s=kCe.light(o);s.writable=!0;var a=ECe();s.write=function(h){a.push(h),r()};var l=sw(),u=!1,c=!1;return s.end=function(){c=!0},s.pipe=PCe.prototype.pipe,Object.getOwnPropertyNames(D8.prototype).forEach(function(h){s[h]=D8.prototype[h]}),s};Wl.parse=function(e){var t=S8(function(o,s){return function(a){if(i+o<=e.length){var l=e.slice(i,i+o);i+=o,r.set(a,s(l))}else r.set(a,null);return t}}),i=0,r=sw();return t.vars=r.store,t.tap=function(o){return o.call(t,r.store),t},t.into=function(o,s){r.get(o)||r.set(o,{});var a=r;return r=sw(a.get(o)),s.call(t,r.store),r=a,t},t.loop=function(o){for(var s=!1,a=function(){s=!0};s===!1;)o.call(t,a,r.store);return t},t.buffer=function(o,s){typeof s=="string"&&(s=r.get(s));var a=e.slice(i,Math.min(e.length,i+s));return i+=s,r.set(o,a),t},t.skip=function(o){return typeof o=="string"&&(o=r.get(o)),i+=o,t},t.scan=function(o,s){if(typeof s=="string")s=new Buffer(s);else if(!Buffer.isBuffer(s))throw new Error("search must be a Buffer or a string");r.set(o,null);for(var a=0;a+i<=e.length-s.length+1;a++){for(var l=0;l=e.length},t};function x8(n){for(var e=0,t=0;t{var E8=require("stream").Transform,LCe=require("util");function Zl(n,e){if(!(this instanceof Zl))return new Zl;E8.call(this);var t=typeof n=="object"?n.pattern:n;this.pattern=Buffer.isBuffer(t)?t:Buffer.from(t),this.requiredLength=this.pattern.length,n.requiredExtraSize&&(this.requiredLength+=n.requiredExtraSize),this.data=new Buffer(""),this.bytesSoFar=0,this.matchFn=e}LCe.inherits(Zl,E8);Zl.prototype.checkDataChunk=function(n){var e=this.data.length>=this.requiredLength;if(!!e){var t=this.data.indexOf(this.pattern,n?1:0);if(t>=0&&t+this.requiredLength>this.data.length){if(t>0){var i=this.data.slice(0,t);this.push(i),this.bytesSoFar+=t,this.data=this.data.slice(t)}return}if(t===-1){var r=this.data.length-this.requiredLength+1,i=this.data.slice(0,r);this.push(i),this.bytesSoFar+=r,this.data=this.data.slice(r);return}if(t>0){var i=this.data.slice(0,t);this.data=this.data.slice(t),this.push(i),this.bytesSoFar+=t}var o=this.matchFn?this.matchFn(this.data,this.bytesSoFar):!0;if(o){this.data=new Buffer("");return}return!0}};Zl.prototype._transform=function(n,e,t){this.data=Buffer.concat([this.data,n]);for(var i=!0;this.checkDataChunk(!i);)i=!1;t()};Zl.prototype._flush=function(n){if(this.data.length>0)for(var e=!0;this.checkDataChunk(!e);)e=!1;this.data.length>0&&(this.push(this.data),this.data=null),n()};P8.exports=Zl});var L8=m((BHe,R8)=>{"use strict";var xP=require("stream"),FCe=require("util").inherits;function Pf(){if(!(this instanceof Pf))return new Pf;xP.PassThrough.call(this),this.path=null,this.type=null,this.isDirectory=!1}FCe(Pf,xP.PassThrough);Pf.prototype.autodrain=function(){return this.pipe(new xP.Transform({transform:function(n,e,t){t()}}))};R8.exports=Pf});var SP=m((HHe,I8)=>{"use strict";var Ta=k8(),CP=require("stream"),ICe=require("util"),jCe=require("zlib"),ACe=_8(),F8=L8(),de={STREAM_START:0,START:1,LOCAL_FILE_HEADER:2,LOCAL_FILE_HEADER_SUFFIX:3,FILE_DATA:4,FILE_DATA_END:5,DATA_DESCRIPTOR:6,CENTRAL_DIRECTORY_FILE_HEADER:7,CENTRAL_DIRECTORY_FILE_HEADER_SUFFIX:8,CDIR64_END:9,CDIR64_END_DATA_SECTOR:10,CDIR64_LOCATOR:11,CENTRAL_DIRECTORY_END:12,CENTRAL_DIRECTORY_END_COMMENT:13,TRAILING_JUNK:14,ERROR:99},_f=4294967296,OCe=67324752,MCe=134695760,NCe=33639248,BCe=101075792,HCe=117853008,qCe=101010256;function vi(n){if(!(this instanceof vi))return new vi(n);CP.Transform.call(this),this.options=n||{},this.data=new Buffer(""),this.state=de.STREAM_START,this.skippedBytes=0,this.parsedEntity=null,this.outStreamInfo={}}ICe.inherits(vi,CP.Transform);vi.prototype.processDataChunk=function(n){var e;switch(this.state){case de.STREAM_START:case de.START:e=4;break;case de.LOCAL_FILE_HEADER:e=26;break;case de.LOCAL_FILE_HEADER_SUFFIX:e=this.parsedEntity.fileNameLength+this.parsedEntity.extraFieldLength;break;case de.DATA_DESCRIPTOR:e=12;break;case de.CENTRAL_DIRECTORY_FILE_HEADER:e=42;break;case de.CENTRAL_DIRECTORY_FILE_HEADER_SUFFIX:e=this.parsedEntity.fileNameLength+this.parsedEntity.extraFieldLength+this.parsedEntity.fileCommentLength;break;case de.CDIR64_END:e=52;break;case de.CDIR64_END_DATA_SECTOR:e=this.parsedEntity.centralDirectoryRecordSize-44;break;case de.CDIR64_LOCATOR:e=16;break;case de.CENTRAL_DIRECTORY_END:e=18;break;case de.CENTRAL_DIRECTORY_END_COMMENT:e=this.parsedEntity.commentLength;break;case de.FILE_DATA:return 0;case de.FILE_DATA_END:return 0;case de.TRAILING_JUNK:return this.options.debug&&console.log("found",n.length,"bytes of TRAILING_JUNK"),n.length;default:return n.length}var t=n.length;if(t>>8,(o&255)===80){s=a;break}return this.skippedBytes+=s,this.options.debug&&console.log("Skipped",this.skippedBytes,"bytes"),s}this.state=de.ERROR;var l=r?"Not a valid zip file":"Invalid signature in zip file";if(this.options.debug){var u=n.readUInt32LE(0),c;try{c=n.slice(0,4).toString()}catch{}console.log("Unexpected signature in zip file: 0x"+u.toString(16),'"'+c+'", skipped',this.skippedBytes,"bytes")}return this.emit("error",new Error(l)),n.length}return this.skippedBytes=0,e;case de.LOCAL_FILE_HEADER:return this.parsedEntity=this._readFile(n),this.state=de.LOCAL_FILE_HEADER_SUFFIX,e;case de.LOCAL_FILE_HEADER_SUFFIX:var h=new F8,d=(this.parsedEntity.flags&2048)!==0;h.path=this._decodeString(n.slice(0,this.parsedEntity.fileNameLength),d);var f=n.slice(this.parsedEntity.fileNameLength,this.parsedEntity.fileNameLength+this.parsedEntity.extraFieldLength),p=this._readExtraFields(f);if(p&&p.parsed&&(p.parsed.path&&!d&&(h.path=p.parsed.path),Number.isFinite(p.parsed.uncompressedSize)&&this.parsedEntity.uncompressedSize===_f-1&&(this.parsedEntity.uncompressedSize=p.parsed.uncompressedSize),Number.isFinite(p.parsed.compressedSize)&&this.parsedEntity.compressedSize===_f-1&&(this.parsedEntity.compressedSize=p.parsed.compressedSize)),this.parsedEntity.extra=p.parsed||{},this.options.debug){let S=Object.assign({},this.parsedEntity,{path:h.path,flags:"0x"+this.parsedEntity.flags.toString(16),extraFields:p&&p.debug});console.log("decoded LOCAL_FILE_HEADER:",JSON.stringify(S,null,2))}return this._prepareOutStream(this.parsedEntity,h),this.emit("entry",h),this.state=de.FILE_DATA,e;case de.CENTRAL_DIRECTORY_FILE_HEADER:return this.parsedEntity=this._readCentralDirectoryEntry(n),this.state=de.CENTRAL_DIRECTORY_FILE_HEADER_SUFFIX,e;case de.CENTRAL_DIRECTORY_FILE_HEADER_SUFFIX:var d=(this.parsedEntity.flags&2048)!==0,g=this._decodeString(n.slice(0,this.parsedEntity.fileNameLength),d),f=n.slice(this.parsedEntity.fileNameLength,this.parsedEntity.fileNameLength+this.parsedEntity.extraFieldLength),p=this._readExtraFields(f);p&&p.parsed&&p.parsed.path&&!d&&(g=p.parsed.path),this.parsedEntity.extra=p.parsed;var b=(this.parsedEntity.versionMadeBy&65280)>>8===3,v,w;if(b){v=this.parsedEntity.externalFileAttributes>>>16;var D=v>>>12;w=(D&10)===10}if(this.options.debug){let S=Object.assign({},this.parsedEntity,{path:g,flags:"0x"+this.parsedEntity.flags.toString(16),unixAttrs:v&&"0"+v.toString(8),isSymlink:w,extraFields:p.debug});console.log("decoded CENTRAL_DIRECTORY_FILE_HEADER:",JSON.stringify(S,null,2))}return this.state=de.START,e;case de.CDIR64_END:return this.parsedEntity=this._readEndOfCentralDirectory64(n),this.options.debug&&console.log("decoded CDIR64_END_RECORD:",this.parsedEntity),this.state=de.CDIR64_END_DATA_SECTOR,e;case de.CDIR64_END_DATA_SECTOR:return this.state=de.START,e;case de.CDIR64_LOCATOR:return this.state=de.START,e;case de.CENTRAL_DIRECTORY_END:return this.parsedEntity=this._readEndOfCentralDirectory(n),this.options.debug&&console.log("decoded CENTRAL_DIRECTORY_END:",this.parsedEntity),this.state=de.CENTRAL_DIRECTORY_END_COMMENT,e;case de.CENTRAL_DIRECTORY_END_COMMENT:return this.options.debug&&console.log("decoded CENTRAL_DIRECTORY_END_COMMENT:",n.slice(0,e).toString()),this.state=de.TRAILING_JUNK,e;case de.ERROR:return n.length;default:return console.log("didn't handle state #",this.state,"discarding"),n.length}};vi.prototype._prepareOutStream=function(n,e){var t=this,i=n.uncompressedSize===0&&/[\/\\]$/.test(e.path);e.path=e.path.replace(/^([/\\]*[.]+[/\\]+)*[/\\]*/,""),e.type=i?"Directory":"File",e.isDirectory=i;var r=!(n.flags&8);r&&(e.size=n.uncompressedSize);var o=n.versionsNeededToExtract<=45;if(this.outStreamInfo={stream:null,limit:r?n.compressedSize:-1,written:0},r)this.outStreamInfo.stream=new CP.PassThrough;else{var s=new Buffer(4);s.writeUInt32LE(MCe,0);var a=n.extra.zip64Mode,l=a?20:12,u={pattern:s,requiredExtraSize:l},c=new ACe(u,function(p,b){var v=t._readDataDescriptor(p,a),w=v.compressedSize===b;if(!a&&!w&&b>=_f)for(var D=b-_f;D>=0&&(w=v.compressedSize===D,!w);)D-=_f;if(!!w){t.state=de.FILE_DATA_END;var S=a?24:16;return t.data.length>0?t.data=Buffer.concat([p.slice(S),t.data]):t.data=p.slice(S),!0}});this.outStreamInfo.stream=c}var h=n.flags&1||n.flags&64;if(h||!o){var d=h?"Encrypted files are not supported!":"Zip version "+Math.floor(n.versionsNeededToExtract/10)+"."+n.versionsNeededToExtract%10+" is not supported";e.skip=!0,setImmediate(()=>{e.emit("error",new Error(d))}),this.outStreamInfo.stream.pipe(new F8().autodrain());return}var g=n.compressionMethod>0;if(g){var f=jCe.createInflateRaw();f.on("error",function(p){t.state=de.ERROR,t.emit("error",p)}),this.outStreamInfo.stream.pipe(f).pipe(e)}else this.outStreamInfo.stream.pipe(e);this._drainAllEntries&&e.autodrain()};vi.prototype._readFile=function(n){var e=Ta.parse(n).word16lu("versionsNeededToExtract").word16lu("flags").word16lu("compressionMethod").word16lu("lastModifiedTime").word16lu("lastModifiedDate").word32lu("crc32").word32lu("compressedSize").word32lu("uncompressedSize").word16lu("fileNameLength").word16lu("extraFieldLength").vars;return e};vi.prototype._readExtraFields=function(n){var e={},t={parsed:e};this.options.debug&&(t.debug=[]);for(var i=0;i=w+4&&a&1&&(e.mtime=new Date(n.readUInt32LE(i+w)*1e3),w+=4),r.extraSize>=w+4&&a&2&&(e.atime=new Date(n.readUInt32LE(i+w)*1e3),w+=4),r.extraSize>=w+4&&a&4&&(e.ctime=new Date(n.readUInt32LE(i+w)*1e3));break;case 28789:o="Info-ZIP Unicode Path Extra Field";var l=n.readUInt8(i);if(l===1){var w=1,u=n.readUInt32LE(i+w);w+=4;var c=n.slice(i+w);e.path=c.toString()}break;case 13:case 22613:o=r.extraId===13?"PKWARE Unix":"Info-ZIP UNIX (type 1)";var w=0;if(r.extraSize>=8){var h=new Date(n.readUInt32LE(i+w)*1e3);w+=4;var d=new Date(n.readUInt32LE(i+w)*1e3);if(w+=4,e.atime=h,e.mtime=d,r.extraSize>=12){var g=n.readUInt16LE(i+w);w+=2;var f=n.readUInt16LE(i+w);w+=2,e.uid=g,e.gid=f}}break;case 30805:o="Info-ZIP UNIX (type 2)";var w=0;if(r.extraSize>=4){var g=n.readUInt16LE(i+w);w+=2;var f=n.readUInt16LE(i+w);w+=2,e.uid=g,e.gid=f}break;case 30837:o="Info-ZIP New Unix";var w=0,p=n.readUInt8(i);if(w+=1,p===1){var b=n.readUInt8(i+w);w+=1,b<=6&&(e.uid=n.readUIntLE(i+w,b)),w+=b;var v=n.readUInt8(i+w);w+=1,v<=6&&(e.gid=n.readUIntLE(i+w,v))}break;case 30062:o="ASi Unix";var w=0;if(r.extraSize>=14){var D=n.readUInt32LE(i+w);w+=4;var S=n.readUInt16LE(i+w);w+=2;var F=n.readUInt32LE(i+w);w+=4;var g=n.readUInt16LE(i+w);w+=2;var f=n.readUInt16LE(i+w);if(w+=2,e.mode=S,e.uid=g,e.gid=f,r.extraSize>14){var L=i+w,j=i+r.extraSize-14,W=this._decodeString(n.slice(L,j));e.symlink=W}}break}this.options.debug&&t.debug.push({extraId:"0x"+r.extraId.toString(16),description:o,data:n.slice(i,i+r.extraSize).inspect()}),i+=r.extraSize}return t};vi.prototype._readDataDescriptor=function(n,e){if(e){var t=Ta.parse(n).word32lu("dataDescriptorSignature").word32lu("crc32").word64lu("compressedSize").word64lu("uncompressedSize").vars;return t}var t=Ta.parse(n).word32lu("dataDescriptorSignature").word32lu("crc32").word32lu("compressedSize").word32lu("uncompressedSize").vars;return t};vi.prototype._readCentralDirectoryEntry=function(n){var e=Ta.parse(n).word16lu("versionMadeBy").word16lu("versionsNeededToExtract").word16lu("flags").word16lu("compressionMethod").word16lu("lastModifiedTime").word16lu("lastModifiedDate").word32lu("crc32").word32lu("compressedSize").word32lu("uncompressedSize").word16lu("fileNameLength").word16lu("extraFieldLength").word16lu("fileCommentLength").word16lu("diskNumber").word16lu("internalFileAttributes").word32lu("externalFileAttributes").word32lu("offsetToLocalFileHeader").vars;return e};vi.prototype._readEndOfCentralDirectory64=function(n){var e=Ta.parse(n).word64lu("centralDirectoryRecordSize").word16lu("versionMadeBy").word16lu("versionsNeededToExtract").word32lu("diskNumber").word32lu("diskNumberWithCentralDirectoryStart").word64lu("centralDirectoryEntries").word64lu("totalCentralDirectoryEntries").word64lu("sizeOfCentralDirectory").word64lu("offsetToStartOfCentralDirectory").vars;return e};vi.prototype._readEndOfCentralDirectory=function(n){var e=Ta.parse(n).word16lu("diskNumber").word16lu("diskStart").word16lu("centralDirectoryEntries").word16lu("totalCentralDirectoryEntries").word32lu("sizeOfCentralDirectory").word32lu("offsetToStartOfCentralDirectory").word16lu("commentLength").vars;return e};var YCe="\0\u263A\u263B\u2665\u2666\u2663\u2660\u2022\u25D8\u25CB\u25D9\u2642\u2640\u266A\u266B\u263C\u25BA\u25C4\u2195\u203C\xB6\xA7\u25AC\u21A8\u2191\u2193\u2192\u2190\u221F\u2194\u25B2\u25BC !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\u2302\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xA2\xA3\xA5\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0 ";vi.prototype._decodeString=function(n,e){if(e)return n.toString("utf8");if(this.options.decodeString)return this.options.decodeString(n);let t="";for(var i=0;i0&&(this.data=this.data.slice(t),this.data.length!==0););if(this.state===de.FILE_DATA){if(this.outStreamInfo.limit>=0){var i=this.outStreamInfo.limit-this.outStreamInfo.written,r;i{if(this.state===de.FILE_DATA_END)return this.state=de.START,o.end(e);e()})}return}e()};vi.prototype.drainAll=function(){this._drainAllEntries=!0};vi.prototype._transform=function(n,e,t){var i=this;i.data.length>0?i.data=Buffer.concat([i.data,n]):i.data=n;var r=i.data.length,o=function(){if(i.data.length>0&&i.data.length0){e._parseOrOutput("buffer",function(){if(e.data.length>0)return setImmediate(function(){e._flush(n)});n()});return}if(e.state===de.FILE_DATA)return n(new Error("Stream finished in an invalid state, uncompression failed"));setImmediate(n)};I8.exports=vi});var A8=m((qHe,j8)=>{var Rf=require("stream").Transform,WCe=require("util"),ZCe=SP();function ka(n){if(!(this instanceof ka))return new ka(n);var e=n||{};Rf.call(this,{readableObjectMode:!0}),this.opts=n||{},this.unzipStream=new ZCe(this.opts);var t=this;this.unzipStream.on("entry",function(i){t.push(i)}),this.unzipStream.on("error",function(i){t.emit("error",i)})}WCe.inherits(ka,Rf);ka.prototype._transform=function(n,e,t){this.unzipStream.write(n,e,t)};ka.prototype._flush=function(n){var e=this;this.unzipStream.end(function(){process.nextTick(function(){e.emit("close")}),n()})};ka.prototype.on=function(n,e){return n==="entry"?Rf.prototype.on.call(this,"data",e):Rf.prototype.on.call(this,n,e)};ka.prototype.drainAll=function(){return this.unzipStream.drainAll(),this.pipe(new Rf({objectMode:!0,transform:function(n,e,t){t()}}))};j8.exports=ka});var B8=m((YHe,N8)=>{var Lf=require("path"),O8=require("fs"),M8=parseInt("0777",8);N8.exports=dh.mkdirp=dh.mkdirP=dh;function dh(n,e,t,i){typeof e=="function"?(t=e,e={}):(!e||typeof e!="object")&&(e={mode:e});var r=e.mode,o=e.fs||O8;r===void 0&&(r=M8),i||(i=null);var s=t||function(){};n=Lf.resolve(n),o.mkdir(n,r,function(a){if(!a)return i=i||n,s(null,i);switch(a.code){case"ENOENT":if(Lf.dirname(n)===n)return s(a);dh(Lf.dirname(n),e,function(l,u){l?s(l,u):dh(n,e,s,u)});break;default:o.stat(n,function(l,u){l||!u.isDirectory()?s(a,i):s(null,i)});break}})}dh.sync=function n(e,t,i){(!t||typeof t!="object")&&(t={mode:t});var r=t.mode,o=t.fs||O8;r===void 0&&(r=M8),i||(i=null),e=Lf.resolve(e);try{o.mkdirSync(e,r),i=i||e}catch(a){switch(a.code){case"ENOENT":i=n(Lf.dirname(e),t,i),n(e,t,i);break;default:var s;try{s=o.statSync(e)}catch{throw a}if(!s.isDirectory())throw a;break}}return i}});var W8=m((WHe,Y8)=>{var JCe=require("fs"),H8=require("path"),$Ce=require("util"),XCe=B8(),q8=require("stream").Transform,UCe=SP();function Ea(n){if(!(this instanceof Ea))return new Ea(n);q8.call(this),this.opts=n||{},this.unzipStream=new UCe(this.opts),this.unfinishedEntries=0,this.afterFlushWait=!1,this.createdDirectories={};var e=this;this.unzipStream.on("entry",this._processEntry.bind(this)),this.unzipStream.on("error",function(t){e.emit("error",t)})}$Ce.inherits(Ea,q8);Ea.prototype._transform=function(n,e,t){this.unzipStream.write(n,e,t)};Ea.prototype._flush=function(n){var e=this,t=function(){process.nextTick(function(){e.emit("close")}),n()};this.unzipStream.end(function(){if(e.unfinishedEntries>0)return e.afterFlushWait=!0,e.on("await-finished",t);t()})};Ea.prototype._processEntry=function(n){var e=this,t=H8.join(this.opts.path,n.path),i=n.isDirectory?t:H8.dirname(t);this.unfinishedEntries++;var r=function(){var o=JCe.createWriteStream(t);o.on("close",function(){e.unfinishedEntries--,e._notifyAwaiter()}),o.on("error",function(s){e.emit("error",s)}),n.pipe(o)};if(this.createdDirectories[i]||i===".")return r();XCe(i,function(o){if(o)return e.emit("error",o);if(e.createdDirectories[i]=!0,n.isDirectory){e.unfinishedEntries--,e._notifyAwaiter();return}r()})};Ea.prototype._notifyAwaiter=function(){this.afterFlushWait&&this.unfinishedEntries===0&&(this.emit("await-finished"),this.afterFlushWait=!1)};Y8.exports=Ea});var Z8=m(TP=>{"use strict";TP.Parse=A8();TP.Extract=W8()});var J8=m(kP=>{"use strict";Object.defineProperty(kP,"__esModule",{value:!0});function GCe(n,e,{signal:t}={}){return new Promise((i,r)=>{function o(){t==null||t.removeEventListener("abort",o),n.removeListener(e,s),n.removeListener("error",a)}function s(...l){o(),i(l)}function a(l){o(),r(l)}t==null||t.addEventListener("abort",o),n.on(e,s),n.on("error",a)})}kP.default=GCe});var $8=m(EP=>{"use strict";Object.defineProperty(EP,"__esModule",{value:!0});function QCe(n){return function(e,t){return new Promise((i,r)=>{n.call(this,e,t,(o,s)=>{o?r(o):i(s)})})}}EP.default=QCe});var RP=m((_P,U8)=>{"use strict";var X8=_P&&_P.__importDefault||function(n){return n&&n.__esModule?n:{default:n}},KCe=require("events"),zCe=X8(Ot()),VCe=X8($8()),Ff=zCe.default("agent-base");function eSe(n){return Boolean(n)&&typeof n.addRequest=="function"}function PP(){let{stack:n}=new Error;return typeof n!="string"?!1:n.split(` -`).some(e=>e.indexOf("(https.js:")!==-1||e.indexOf("node:https:")!==-1)}function aw(n,e){return new aw.Agent(n,e)}(function(n){class e extends KCe.EventEmitter{constructor(i,r){super();let o=r;typeof i=="function"?this.callback=i:i&&(o=i),this.timeout=null,o&&typeof o.timeout=="number"&&(this.timeout=o.timeout),this.maxFreeSockets=1,this.maxSockets=1,this.maxTotalSockets=1/0,this.sockets={},this.freeSockets={},this.requests={},this.options={}}get defaultPort(){return typeof this.explicitDefaultPort=="number"?this.explicitDefaultPort:PP()?443:80}set defaultPort(i){this.explicitDefaultPort=i}get protocol(){return typeof this.explicitProtocol=="string"?this.explicitProtocol:PP()?"https:":"http:"}set protocol(i){this.explicitProtocol=i}callback(i,r,o){throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`')}addRequest(i,r){let o=Object.assign({},r);typeof o.secureEndpoint!="boolean"&&(o.secureEndpoint=PP()),o.host==null&&(o.host="localhost"),o.port==null&&(o.port=o.secureEndpoint?443:80),o.protocol==null&&(o.protocol=o.secureEndpoint?"https:":"http:"),o.host&&o.path&&delete o.path,delete o.agent,delete o.hostname,delete o._defaultAgent,delete o.defaultPort,delete o.createConnection,i._last=!0,i.shouldKeepAlive=!1;let s=!1,a=null,l=o.timeout||this.timeout,u=g=>{i._hadError||(i.emit("error",g),i._hadError=!0)},c=()=>{a=null,s=!0;let g=new Error(`A "socket" was not created for HTTP request before ${l}ms`);g.code="ETIMEOUT",u(g)},h=g=>{s||(a!==null&&(clearTimeout(a),a=null),u(g))},d=g=>{if(s)return;if(a!=null&&(clearTimeout(a),a=null),eSe(g)){Ff("Callback returned another Agent instance %o",g.constructor.name),g.addRequest(i,o);return}if(g){g.once("free",()=>{this.freeSocket(g,o)}),i.onSocket(g);return}let f=new Error(`no Duplex stream was returned to agent-base for \`${i.method} ${i.path}\``);u(f)};if(typeof this.callback!="function"){u(new Error("`callback` is not defined"));return}this.promisifiedCallback||(this.callback.length>=3?(Ff("Converting legacy callback function to promise"),this.promisifiedCallback=VCe.default(this.callback)):this.promisifiedCallback=this.callback),typeof l=="number"&&l>0&&(a=setTimeout(c,l)),"port"in o&&typeof o.port!="number"&&(o.port=Number(o.port));try{Ff("Resolving socket for %o request: %o",o.protocol,`${i.method} ${i.path}`),Promise.resolve(this.promisifiedCallback(i,o)).then(d,h)}catch(g){Promise.reject(g).catch(h)}}freeSocket(i,r){Ff("Freeing socket %o %o",i.constructor.name,r),i.destroy()}destroy(){Ff("Destroying agent %o",this.constructor.name)}}n.Agent=e,n.prototype=n.Agent.prototype})(aw||(aw={}));U8.exports=aw});var Q8=m(Jl=>{"use strict";var tSe=Jl&&Jl.__awaiter||function(n,e,t,i){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(c){try{u(i.next(c))}catch(h){s(h)}}function l(c){try{u(i.throw(c))}catch(h){s(h)}}function u(c){c.done?o(c.value):r(c.value).then(a,l)}u((i=i.apply(n,e||[])).next())})},If=Jl&&Jl.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Jl,"__esModule",{value:!0});var iSe=If(require("net")),nSe=If(require("tls")),LP=If(require("url")),rSe=If(Ot()),oSe=If(J8()),sSe=RP(),Pa=(0,rSe.default)("http-proxy-agent");function aSe(n){return typeof n=="string"?/^https:?$/i.test(n):!1}var G8=class extends sSe.Agent{constructor(e){let t;if(typeof e=="string"?t=LP.default.parse(e):t=e,!t)throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!");Pa("Creating new HttpProxyAgent instance: %o",t);super(t);let i=Object.assign({},t);this.secureProxy=t.secureProxy||aSe(i.protocol),i.host=i.hostname||i.host,typeof i.port=="string"&&(i.port=parseInt(i.port,10)),!i.port&&i.host&&(i.port=this.secureProxy?443:80),i.host&&i.path&&(delete i.path,delete i.pathname),this.proxy=i}callback(e,t){return tSe(this,void 0,void 0,function*(){let{proxy:i,secureProxy:r}=this,o=LP.default.parse(e.path);o.protocol||(o.protocol="http:"),o.hostname||(o.hostname=t.hostname||t.host||null),o.port==null&&typeof t.port&&(o.port=String(t.port)),o.port==="80"&&(o.port=""),e.path=LP.default.format(o),i.auth&&e.setHeader("Proxy-Authorization",`Basic ${Buffer.from(i.auth).toString("base64")}`);let s;if(r?(Pa("Creating `tls.Socket`: %o",i),s=nSe.default.connect(i)):(Pa("Creating `net.Socket`: %o",i),s=iSe.default.connect(i)),e._header){let a,l;Pa("Regenerating stored HTTP header string for request"),e._header=null,e._implicitHeader(),e.output&&e.output.length>0?(Pa("Patching connection write() output buffer with updated header"),a=e.output[0],l=a.indexOf(`\r +`);return o$.warn(`workspace.${o} is deprecated, please use window.${o} instead.`,s),e[o]}});let i=this._env=await t.call("coc#util#vim_info");e.init(i),this._env.apiversion!=r$&&t.echoError(`API version ${this._env.apiversion} is not ${r$}, please build coc.nvim by 'yarn install' after pull source code.`),this.workspaceFolderControl.setWorkspaceFolders(this._env.workspaceFolders),this.configurations.updateUserConfig(this._env.config),this.files.attach(t,i,e),this.contentProvider.attach(t),this.keymaps.attach(t),this.autocmds.attach(t,i),this.locations.attach(t,i),this.watchers.attach(t,i),await this.attach(),await this.editors.attach(t);let r=ds.create("watchman",t);this.fileSystemWatchers.attach(r)}get cwd(){return this.documentsManager.cwd}get env(){return this._env}get root(){return this.documentsManager.root||this.cwd}get rootPath(){return this.root}get bufnr(){return this.documentsManager.bufnr}get insertMode(){return P.insertMode}get floatSupported(){return this.env.floating||this.env.textprop}get uri(){return this.documentsManager.uri}get workspaceFolder(){return this.workspaceFolders[0]}get textDocuments(){return this.documentsManager.textDocuments}get documents(){return this.documentsManager.documents}get document(){return this.documentsManager.document}get workspaceFolders(){return this.workspaceFolderControl.workspaceFolders}get folderPaths(){return this.workspaceFolders.map(e=>I.parse(e.uri).fsPath)}get channelNames(){return ds.names}get pluginRoot(){return Ta.default.dirname(__dirname)}get isVim(){return this._env.isVim}get isNvim(){return!this._env.isVim}get completeOpt(){return this._env.completeOpt}get filetypes(){return this.documentsManager.filetypes}get languageIds(){return this.documentsManager.languageIds}createNameSpace(e){return ZJ(e)}getConfigFile(e){return this.configurations.getConfigFile(e)}has(e){return WJ(this.env,e)}registerAutocmd(e){return this.autocmds.registerAutocmd(e)}watchOption(e,t,i){this.watchers.watchOption(e,t,i)}watchGlobal(e,t,i){this.watchers.watchGlobal(e,t||function(){},i)}match(e,t){return LE(e,t.uri,t.languageId)}createFileSystemWatcher(e,t,i,r){return this.fileSystemWatchers.createFileSystemWatcher(e,t,i,r)}getWatchmanPath(){return JJ(this.configurations)}getConfiguration(e,t){return this.configurations.getConfiguration(e,t)}getDocument(e){return this.documentsManager.getDocument(e)}isAttached(e){let t=this.documentsManager.getDocument(e);return t!=null&&t.attached}getAttachedDocument(e){let t=this.getDocument(e);if(!t)throw new Error(`Buffer ${e} not created.`);if(!t.attached)throw new Error(`Buffer ${e} not attached, try :CocCommand document.checkBuffer`);return t}getQuickfixItem(e,t,i="",r){return this.documentsManager.getQuickfixItem(e,t,i,r)}createMru(e){return new Sa(e)}async getQuickfixList(e){return this.documentsManager.getQuickfixList(e)}async showLocations(e){await this.locations.showLocations(e)}getLine(e,t){return this.documentsManager.getLine(e,t)}getWorkspaceFolder(e){return this.workspaceFolderControl.getWorkspaceFolder(I.parse(e))}readFile(e){return this.documentsManager.readFile(e)}async getCurrentState(){let e=await this.document,t=await Ky(this.nvim);return{document:e.textDocument,position:t}}async getFormatOptions(e){return this.documentsManager.getFormatOptions(e)}resolveModule(e){return XJ(e)}async runCommand(e,t,i){return t=t||this.cwd,bo(e,{cwd:t},i)}expand(e){return this.documentsManager.expand(e)}async callAsync(e,t){return this.isNvim?await this.nvim.call(e,t):await this.nvim.callAsync("coc#util#with_callback",[e,t])}registerTextDocumentContentProvider(e,t){return this.contentProvider.registerTextDocumentContentProvider(e,t)}registerKeymap(e,t,i,r={}){return this.keymaps.registerKeymap(e,t,i,r)}registerExprKeymap(e,t,i,r=!1){return this.keymaps.registerExprKeymap(e,t,i,r)}registerLocalKeymap(e,t,i,r=!1){return this.keymaps.registerLocalKeymap(e,t,i,r)}createTask(e){return new uv(this.nvim,e)}createDatabase(e){let t;global.hasOwnProperty("__TEST__")?(t=Ta.default.join(AE.default.tmpdir(),`coc-${process.pid}`),s$.default.mkdirpSync(t)):t=Ta.default.dirname(this.env.extensionRoot);let i=Ta.default.join(t,e+".json");return new eh(i)}registerBufferSync(e){return new sv(e,this.documentsManager)}async attach(){await this.documentsManager.attach(this.nvim,this._env)}jumpTo(e,t,i){return this.files.jumpTo(e,t,i)}findUp(e){return $J(this.nvim,this.cwd,e)}applyEdit(e){return this.files.applyEdit(e)}createFile(e,t={}){return this.files.createFile(e,t)}loadFile(e){return this.files.loadResource(e)}async loadFiles(e){return this.files.loadResources(e)}async renameFile(e,t,i={}){await this.files.renameFile(e,t,i)}async deleteFile(e,t={}){await this.files.deleteFile(e,t)}async renameCurrent(){await this.files.renameCurrent()}async openResource(e){await this.files.openResource(e)}openTextDocument(e){return this.files.openTextDocument(e)}getRelativePath(e,t){return this.workspaceFolderControl.getRelativePath(e,t)}async findFiles(e,t,i,r){return this.files.findFiles(e,t,i,r)}detach(){this.documentsManager.detach()}reset(){this.configurations.reset(),this.workspaceFolderControl.reset(),this.documentsManager.reset()}dispose(){this.watchers.dispose(),this.autocmds.dispose(),this.contentProvider.dispose(),this.documentsManager.dispose(),this.configurations.dispose()}},v=new a$});function ME(n,e){let{range:t,uri:i}=e;n.find(r=>r.uri==i&&Xe(r.range,t))==null&&n.push(e)}var th,nCe,pe,bt=_(()=>{"use strict";th=x(q());ne();oi();nCe=W()("provider-manager"),pe=class{constructor(){this.providers=new Set}hasProvider(e){return this.getProvider(e)!=null}getProvider(e){let t=0,i;for(let r of this.providers){let{selector:o,priority:s}=r,a=v.match(o,e);a!=0&&(typeof s=="number"&&(a=s),!(ai.id==e);return t?t.provider:null}getProviders(e){let t=Array.from(this.providers);return t=t.filter(i=>v.match(i.selector,e)>0),t.sort((i,r)=>v.match(r.selector,e)-v.match(i.selector,e))}toLocations(e){let t=[];for(let i of e)if(!!i)if(th.Location.is(i))ME(t,i);else if(Array.isArray(i)){for(let r of i)if(th.Location.is(r))ME(t,r);else if(th.LocationLink.is(r)){let{targetUri:o,targetSelectionRange:s,targetRange:a}=r;ME(t,th.Location.create(o,s||a))}}else nCe.error("Bad definition",i);return t}}});var l$,cv,u$=_(()=>{"use strict";l$=x(q());bt();He();cv=class extends pe{register(e,t){let i={id:se(),selector:e,provider:t};return this.providers.add(i),l$.Disposable.create(()=>{this.providers.delete(i)})}async prepareCallHierarchy(e,t,i){let r=this.getProvider(e);if(!r)return null;let{provider:o}=r;return o.prepareCallHierarchy===null?null:await Promise.resolve(o.prepareCallHierarchy(e,t,i))}async provideCallHierarchyOutgoingCalls(e,t,i){let r=this.getProvider(e);if(!r)return null;let{provider:o}=r;return o.provideCallHierarchyOutgoingCalls===null?null:await Promise.resolve(o.provideCallHierarchyOutgoingCalls(t,i))}async provideCallHierarchyIncomingCalls(e,t,i){let r=this.getProvider(e);if(!r)return null;let{provider:o}=r;return o.provideCallHierarchyIncomingCalls(t,i)===null?null:await Promise.resolve(o.provideCallHierarchyIncomingCalls(t,i))}}});function h$(n,...e){return n=Object(n),e.forEach(t=>{if(t!=null){t=Object(t);for(let i in t){let r=n[i];(r===void 0||r===c$[i]&&!rCe.call(n,i))&&(n[i]=t[i])}}}),n}function dn(n,e){let t={};for(let i of Object.keys(n))e.includes(i)||(t[i]=n[i]);return t}var c$,rCe,bs=_(()=>{"use strict";c$=Object.prototype,rCe=c$.hasOwnProperty});var hv,$Oe,dv,d$=_(()=>{"use strict";hv=x(q());bt();He();bs();$Oe=W()("codeActionManager"),dv=class extends pe{register(e,t,i,r){let o={id:se(),selector:e,provider:t,kinds:r,clientId:i};return this.providers.add(o),hv.Disposable.create(()=>{this.providers.delete(o)})}async provideCodeActions(e,t,i,r){let o=this.getProviders(e);if(!o.length)return null;if(i.only){let{only:a}=i;o=o.filter(l=>!(l.kinds&&!l.kinds.some(u=>a.includes(u))))}let s=[];return await Promise.all(o.map(a=>{let{provider:l,id:u}=a;return Promise.resolve(l.provideCodeActions(e,t,i,r)).then(c=>{if(!(!c||c.length==0))for(let h of c)if(hv.Command.is(h)){let d={title:h.title,command:h,providerId:u};s.push(d)}else{if(i.only){if(!h.kind)continue;let g=!1;for(let p of i.only)if(h.kind.startsWith(p)){g=!0;break}if(!g)continue}s.findIndex(g=>g.title==h.title)==-1&&s.push(Object.assign({providerId:u},h))}})})),s}async resolveCodeAction(e,t){if(e.edit!=null)return e;let i=e.providerId;if(!i)throw new Error("provider id not found from codeAction");let r=this.getProviderById(i);return!r||typeof r.resolveCodeAction!="function"?e:await Promise.resolve(r.resolveCodeAction(dn(e,["providerId"]),t))||e}}});var g$,gv,p$=_(()=>{"use strict";g$=x(q());bt();He();bs();gv=class extends pe{register(e,t){let i={id:se(),selector:e,provider:t};return this.providers.add(i),g$.Disposable.create(()=>{this.providers.delete(i)})}async provideCodeLenses(e,t){let i=this.getProviders(e);if(!i.length)return null;let r=await Promise.all(i.map(o=>{let{provider:s,id:a}=o;return Promise.resolve(s.provideCodeLenses(e,t)).then(l=>{if(Array.isArray(l))for(let u of l)u.source=a;return l})}));return[].concat(...r)}async resolveCodeLens(e,t){if(e.command)return e;let{source:i}=e,r=this.getProviderById(i);if(!r||typeof r.resolveCodeLens!="function")return e;let o=await Promise.resolve(r.resolveCodeLens(dn(e,["source"]),t));return Object.assign(e,o),e}}});var f$,cNe,pv,m$=_(()=>{"use strict";f$=x(q());bt();He();cNe=W()("definitionManager"),pv=class extends pe{register(e,t){let i={id:se(),selector:e,provider:t};return this.providers.add(i),f$.Disposable.create(()=>{this.providers.delete(i)})}async provideDeclaration(e,t,i){let r=this.getProvider(e);if(!r)return null;let{provider:o}=r;return await Promise.resolve(o.provideDeclaration(e,t,i))}}});var fv,CNe,mv,y$=_(()=>{"use strict";fv=x(q());bt();He();oi();CNe=W()("definitionManager"),mv=class extends pe{register(e,t){let i={id:se(),selector:e,provider:t};return this.providers.add(i),fv.Disposable.create(()=>{this.providers.delete(i)})}async getDefinitions(e,t,i){let r=this.getProviders(e);return r.length?await Promise.all(r.map(s=>{let{provider:a}=s;return Promise.resolve(a.provideDefinition(e,t,i))})):[]}async provideDefinition(e,t,i){let r=await this.getDefinitions(e,t,i);return this.toLocations(r)}async provideDefinitionLinks(e,t,i){let r=await this.getDefinitions(e,t,i),o=[];for(let s of r)if(!!Array.isArray(s))for(let a of s)fv.LocationLink.is(a)&&o.findIndex(u=>u.targetUri==a.targetUri&&Xe(u.targetRange,a.targetRange))==-1&&o.push(a);return o}}});var b$,yv,v$=_(()=>{"use strict";b$=x(q());bt();He();yv=class extends pe{register(e,t){let i={id:se(),selector:e,provider:t};return this.providers.add(i),b$.Disposable.create(()=>{this.providers.delete(i)})}async provideDocumentColors(e,t){let i=this.getProvider(e);if(!i)return null;let{provider:r}=i;return await Promise.resolve(r.provideDocumentColors(e,t))}async provideColorPresentations(e,t,i){let{range:r,color:o}=e,s=this.getProvider(t);if(!s)return null;let{provider:a}=s;return await Promise.resolve(a.provideColorPresentations(o,{document:t,range:r},i))}}});var w$,bv,D$=_(()=>{"use strict";w$=x(q());bt();He();bv=class extends pe{register(e,t){let i={id:se(),selector:e,provider:t};return this.providers.add(i),w$.Disposable.create(()=>{this.providers.delete(i)})}async provideDocumentHighlights(e,t,i){let r=this.getProvider(e);if(!r)return null;let{provider:o}=r;return await Promise.resolve(o.provideDocumentHighlights(e,t,i))}}});var C$,vv,x$=_(()=>{"use strict";C$=x(q());bt();He();vv=class extends pe{register(e,t){let i={id:se(),selector:e,provider:t};return this.providers.add(i),C$.Disposable.create(()=>{this.providers.delete(i)})}async _provideDocumentLinks(e,t,i){let{provider:r,id:o}=e,s=await Promise.resolve(r.provideDocumentLinks(t,i));return!s||!s.length?[]:(s.forEach(a=>{a.data=a.data||{},a.data.source=o}),s)}async provideDocumentLinks(e,t){let i=this.getProviders(e);if(i.length==0)return[];let r=await Promise.all(i.map(o=>this._provideDocumentLinks(o,e,t)));return[].concat(...r)}async resolveDocumentLink(e,t){let{data:i}=e;if(!i||!i.source)return null;for(let r of this.providers)if(r.id==i.source){let{provider:o}=r;return e=await Promise.resolve(o.resolveDocumentLink(e,t)),e}return null}}});var S$,wv,T$=_(()=>{"use strict";S$=x(q());bt();He();wv=class extends pe{register(e,t,i){let r={id:se(),meta:i,selector:e,provider:t};return this.providers.add(r),S$.Disposable.create(()=>{this.providers.delete(r)})}getMetaData(e){let t=this.getProvider(e);return t?t.provider.meta??{}:{}}async provideDocumentSymbols(e,t){let i=this.getProvider(e);if(!i)return null;let{provider:r}=i;return await Promise.resolve(r.provideDocumentSymbols(e,t))||[]}}});var k$,Dv,E$=_(()=>{"use strict";k$=x(q());bt();He();Dv=class extends pe{register(e,t){let i={id:se(),selector:e,provider:t};return this.providers.add(i),k$.Disposable.create(()=>{this.providers.delete(i)})}async provideFoldingRanges(e,t,i){let r=this.getProvider(e);if(!r)return null;let{provider:o}=r;return await Promise.resolve(o.provideFoldingRanges(e,t,i))||[]}}});var P$,Cv,_$=_(()=>{"use strict";P$=x(q());bt();He();Cv=class extends pe{register(e,t,i=0){let r={id:se(),selector:e,priority:i,provider:t};return this.providers.add(r),P$.Disposable.create(()=>{this.providers.delete(r)})}handles(e){return this.getProvider(e)!=null}async provideDocumentFormattingEdits(e,t,i){let r=this.getProvider(e);if(!r)return null;let{provider:o}=r;return await Promise.resolve(o.provideDocumentFormattingEdits(e,t,i))}}});var R$,xv,L$=_(()=>{"use strict";R$=x(q());bt();He();xv=class extends pe{register(e,t,i=0){let r={id:se(),selector:e,provider:t,priority:i};return this.providers.add(r),R$.Disposable.create(()=>{this.providers.delete(r)})}async provideDocumentRangeFormattingEdits(e,t,i,r){let o=this.getProvider(e);if(!o)return null;let{provider:s}=o;return await Promise.resolve(s.provideDocumentRangeFormattingEdits(e,t,i,r))}}});var F$,Sv,I$=_(()=>{"use strict";F$=x(q());bt();He();Sv=class extends pe{register(e,t){let i={id:se(),selector:e,provider:t};return this.providers.add(i),F$.Disposable.create(()=>{this.providers.delete(i)})}async provideHover(e,t,i){let r=this.getProviders(e);if(r.length===0)return null;let o=[];for(let s=0,a=r.length;s{"use strict";j$=x(q());bt();He();Tv=class extends pe{register(e,t){let i={id:se(),selector:e,provider:t};return this.providers.add(i),j$.Disposable.create(()=>{this.providers.delete(i)})}async provideReferences(e,t,i){let r=this.getProviders(e);if(!r.length)return null;let o=await Promise.all(r.map(s=>{let{provider:a}=s;return Promise.resolve(a.provideImplementation(e,t,i))}));return this.toLocations(o)}}});var M$,UBe,kv,O$=_(()=>{"use strict";He();M$=x(q());bt();UBe=W()("linkedEditingManager"),kv=class extends pe{register(e,t){let i={id:se(),selector:e,provider:t};return this.providers.add(i),M$.Disposable.create(()=>{this.providers.delete(i)})}async provideLinkedEditingRanges(e,t,i){let r=this.getProvider(e);if(!r)return null;let{provider:o}=r;return o.provideLinkedEditingRanges?await Promise.resolve(o.provideLinkedEditingRanges(e,t,i)):null}}});var N$,tHe,Ev,B$=_(()=>{"use strict";N$=x(q());ne();tHe=W()("onTypeFormatManager"),Ev=class{constructor(){this.providers=new Set}register(e,t,i){let r={triggerCharacters:i,selector:e,provider:t};return this.providers.add(r),N$.Disposable.create(()=>{this.providers.delete(r)})}hasProvider(e){for(let t of this.providers){let{selector:i}=t;if(v.match(i,e)>0)return!0}return!1}getProvider(e,t){for(let i of this.providers){let{triggerCharacters:r,selector:o}=i;if(v.match(o,e)>0&&r.includes(t))return i.provider}return null}async onCharacterType(e,t,i,r){let o=this.getProvider(t,e);if(!o)return;let s=await v.getFormatOptions(t.uri);return await Promise.resolve(o.provideOnTypeFormattingEdits(t,i,e,s,r))}}});var H$,Pv,q$=_(()=>{"use strict";H$=x(q());bt();He();Pv=class extends pe{register(e,t){let i={id:se(),selector:e,provider:t};return this.providers.add(i),H$.Disposable.create(()=>{this.providers.delete(i)})}async provideReferences(e,t,i,r){let o=this.getProviders(e);if(!o.length)return null;let s=await Promise.all(o.map(a=>{let{provider:l}=a;return Promise.resolve(l.provideReferences(e,t,i,r))}));return this.toLocations(s)}}});var Y$,_v,W$=_(()=>{"use strict";Y$=x(q());bt();He();_v=class extends pe{register(e,t){let i={id:se(),selector:e,provider:t};return this.providers.add(i),Y$.Disposable.create(()=>{this.providers.delete(i)})}async provideRenameEdits(e,t,i,r){let o=this.getProvider(e);if(!o)return null;let{provider:s}=o;return await Promise.resolve(s.provideRenameEdits(e,t,i,r))}async prepareRename(e,t,i){let r=this.getProvider(e);if(!r)return null;let{provider:o}=r;if(o.prepareRename==null)return null;let s=await Promise.resolve(o.prepareRename(e,t,i));return s??!1}}});var Z$,Rv,J$=_(()=>{"use strict";Z$=x(q());bt();He();Rv=class extends pe{register(e,t){let i={id:se(),selector:e,provider:t};return this.providers.add(i),Z$.Disposable.create(()=>{this.providers.delete(i)})}async provideSelectionRanges(e,t,i){let r=this.getProvider(e);if(!r)return null;let{provider:o}=r,s=await Promise.resolve(o.provideSelectionRanges(e,t,i));if(!s||s.length==0)return[];for(let a=0;a{"use strict";He();$$=x(q());bt();AHe=W()("semanticTokensManager"),Lv=class extends pe{constructor(){super(...arguments);this.resolvedProvider=new Map}register(e,t,i,r){let o=se(),s={id:o,selector:e,legend:i,provider:t};this.providers.add(s);let a;return typeof t.onDidChangeSemanticTokens=="function"&&(a=t.onDidChangeSemanticTokens(()=>{r()})),$$.Disposable.create(()=>{a==null||a.dispose();for(let[l,u]of this.resolvedProvider.entries())u==o&&this.resolvedProvider.delete(l);this.providers.delete(s)})}getLegend(e){let t=this.getProvider(e);if(!!t)return this.resolvedProvider.set(e.uri,t.id),t.legend}resolveProvider(e){var i;let t=this.resolvedProvider.get(e.uri);return t?this.getProviderById(t):(i=this.getProvider(e))==null?void 0:i.provider}hasSemanticTokensEdits(e){let t=this.resolveProvider(e);return t?typeof t.provideDocumentSemanticTokensEdits=="function":!1}async provideDocumentSemanticTokens(e,t){let i=this.resolveProvider(e);return!i||typeof i.provideDocumentSemanticTokens!="function"?null:await Promise.resolve(i.provideDocumentSemanticTokens(e,t))}async provideDocumentSemanticTokensEdits(e,t,i){let r=this.resolveProvider(e);return!r||typeof r.provideDocumentSemanticTokensEdits!="function"?null:await Promise.resolve(r.provideDocumentSemanticTokensEdits(e,t,i))}}});var U$,JHe,Fv,G$=_(()=>{"use strict";He();U$=x(q());bt();JHe=W()("semanticTokensRangeManager"),Fv=class extends pe{register(e,t,i){let r={id:se(),selector:e,legend:i,provider:t};return this.providers.add(r),U$.Disposable.create(()=>{this.providers.delete(r)})}getLegend(e){let t=this.getProvider(e);if(!!t)return t.legend}async provideDocumentRangeSemanticTokens(e,t,i){let r=this.getProvider(e);if(!r)return null;let{provider:o}=r;return o.provideDocumentRangeSemanticTokens===null?null:await Promise.resolve(o.provideDocumentRangeSemanticTokens(e,t,i))}}});var K$,Iv,Q$=_(()=>{"use strict";K$=x(q());bt();He();Iv=class extends pe{register(e,t,i){let r=i.reduce((s,a)=>s.concat(a.length==1?[a]:a.split(/\s*/g)),[]),o={id:se(),selector:e,provider:t,triggerCharacters:r};return this.providers.add(o),K$.Disposable.create(()=>{this.providers.delete(o)})}shouldTrigger(e,t){let i=this.getProvider(e);if(!i)return!1;let{triggerCharacters:r}=i;return r&&r.indexOf(t)!=-1}async provideSignatureHelp(e,t,i,r){let o=this.getProvider(e);if(!o)return null;let s=await Promise.resolve(o.provider.provideSignatureHelp(e,t,i,r));return s&&s.signatures&&s.signatures.length?s:null}}});var z$,jv,V$=_(()=>{"use strict";z$=x(q());bt();He();jv=class extends pe{register(e,t){let i={id:se(),selector:e,provider:t};return this.providers.add(i),z$.Disposable.create(()=>{this.providers.delete(i)})}async provideTypeDefinition(e,t,i){let r=this.getProviders(e);if(!r.length)return null;let o=await Promise.all(r.map(s=>{let{provider:a}=s;return Promise.resolve(a.provideTypeDefinition(e,t,i))}));return this.toLocations(o)}}});var eX,Av,tX=_(()=>{"use strict";He();eX=x(q());bt();Av=class extends pe{register(e,t){let i={id:se(),selector:e,provider:t};return this.providers.add(i),eX.Disposable.create(()=>{this.providers.delete(i)})}async prepareTypeHierarchy(e,t,i){let r=this.getProvider(e);if(!r)return[];let{provider:o,id:s}=r;if(o.prepareTypeHierarchy===null)return[];let a=await Promise.resolve(o.prepareTypeHierarchy(e,t,i));return!a||!a.length?[]:(a.forEach(l=>{l.data=l.data||{},l.data.source=s}),a)}async provideTypeHierarchySupertypes(e,t){let{data:i}=e;if(!i||!i.source)return[];let r=this.getProviderById(e.data.source);return r.provideTypeHierarchySupertypes===null?[]:await Promise.resolve(r.provideTypeHierarchySupertypes(e,t))}async provideTypeHierarchySubtypes(e,t){let{data:i}=e;if(!i||!i.source)return[];let r=this.getProviderById(e.data.source);return r.provideTypeHierarchySubtypes===null?[]:await Promise.resolve(r.provideTypeHierarchySubtypes(e,t))}}});var iX,Mv,nX=_(()=>{"use strict";He();iX=x(q()),Mv=class{constructor(){this.providers=new Map}register(e){let t=se();return this.providers.set(t,e),iX.Disposable.create(()=>{this.providers.delete(t)})}async provideWorkspaceSymbols(e,t){let i=Array.from(this.providers.entries());if(!i.length)return[];let r=[];return await Promise.all(i.map(o=>{let[s,a]=o;return Promise.resolve(a.provideWorkspaceSymbols(e,t)).then(l=>{l&&r.push(...l.map(u=>Object.assign({source:s},u)))})})),r}async resolveWorkspaceSymbol(e,t){let i=this.providers.get(e.source);if(!!i)return typeof i.resolveWorkspaceSymbol!="function"?Promise.resolve(e):await Promise.resolve(i.resolveWorkspaceSymbol(e,t))}hasProvider(){return this.providers.size>0}}});var Qr,OE,NE,Ov,rX=_(()=>{"use strict";Qr=x(q());lr();(i=>{i.Type=1,i.Parameter=2;function t(r){return r===1||r===2}i.is=t})(OE||(OE={}));(t=>{function n(i){return{value:i}}t.create=n;function e(i){let r=i;return Ht(r)&&(r.tooltip===void 0||Be(r.tooltip)||Qr.MarkupContent.is(r.tooltip))&&(r.location===void 0||Qr.Location.is(r.location))&&(r.command===void 0||Qr.Command.is(r.command))}t.is=e})(NE||(NE={}));(t=>{function n(i,r,o){let s={position:i,label:r};return o!==void 0&&(s.kind=o),s}t.create=n;function e(i){let r=i;return Ht(r)&&Qr.Position.is(r.position)&&(Be(r.label)||ET(r.label,NE.is))&&(r.kind===void 0||OE.is(r.kind))&&r.textEdits===void 0||ET(r.textEdits,Qr.TextEdit.is)&&(r.tooltip===void 0||Be(r.tooltip)||Qr.MarkupContent.is(r.tooltip))&&(r.paddingLeft===void 0||ar(r.paddingLeft))&&(r.paddingRight===void 0||ar(r.paddingRight))}t.is=e})(Ov||(Ov={}))});function oCe(n,e){return Fe(n.position,e.position)!==0?!1:Nv(n)===Nv(e)}function sCe(n,e){return n.label.length===0||Array.isArray(n.label)&&n.label.every(t=>t.value.length===0)?(BE.warn("INVALID inlay hint, empty label",n),!1):Ov.is(n)?!(e&&mt(n.position,e)!==0):(BE.warn("INVALID inlay hint",n),!1)}function Nv(n){return typeof n.label=="string"?n.label:n.label.map(e=>e.value).join(" ")}var oX,BE,Bv,HE=_(()=>{"use strict";He();oX=x(q());rX();_t();bt();BE=W()("inlayHintManger"),Bv=class extends pe{register(e,t){let i={id:se(),selector:e,provider:t};return this.providers.add(i),oX.Disposable.create(()=>{this.providers.delete(i)})}async provideInlayHints(e,t,i){let r=this.getProviders(e);if(r.length===0)return null;let o=[],s=0;return await Promise.all(r.map(a=>{let{id:l,provider:u}=a;return Promise.resolve(u.provideInlayHints(e,t,i)).then(c=>{if(!i.isCancellationRequested){for(let h of c)!sCe(h,t)||s>0&&o.findIndex(d=>oCe(d,h))!=-1||o.push(ve({providerId:l},h));s+=1}},c=>{BE.error("Error on provideInlayHints",c)})})),o}async resolveInlayHint(e,t){let i=this.getProviderById(e.providerId);if(!i||typeof i.resolveInlayHint!="function"||e.resolved===!0)return e;let r=await Promise.resolve(i.resolveInlayHint(e,t));return t.isCancellationRequested?e:Object.assign(e,r,{resolved:!0})}}});var sX,Hv,aX=_(()=>{"use strict";He();sX=x(q());bt();Hv=class extends pe{register(e,t){let i={id:se(),selector:e,provider:t};return this.providers.add(i),sX.Disposable.create(()=>{this.providers.delete(i)})}async provideInlineValues(e,t,i,r){let o=this.getProvider(e);if(!o)return[];let{provider:s}=o;return s.provideInlineValues===null?[]:await Promise.resolve(s.provideInlineValues(e,t,i,r))}}});var lX,qv,uX=_(()=>{"use strict";He();lX=x(q());bt();qv=class extends pe{register(e,t){let i={id:se(),selector:e,provider:t};return this.providers.add(i),lX.Disposable.create(()=>{this.providers.delete(i)})}async provideDiagnostics(e,t,i){let r=this.getProvider(e);if(!r)return null;let{provider:o}=r;return o.provideDiagnostics===null?null:await Promise.resolve(o.provideDiagnostics(e,t,i))}}});var Gqe,qE,Yv,YE=_(()=>{"use strict";He();Gqe=W()("model-status"),qE=["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"],Yv=class{constructor(e){this.nvim=e;this.items=new Map;this.shownIds=new Set;this._text="";this.interval=setInterval(()=>{this.setStatusText()},100)}dispose(){this.items.clear(),this.shownIds.clear(),clearInterval(this.interval)}createStatusBarItem(e=0,t=!1){let i=ps(),r={text:"",priority:e,isProgress:t,show:()=>{this.shownIds.add(i),this.setStatusText()},hide:()=>{this.shownIds.delete(i),this.setStatusText()},dispose:()=>{this.shownIds.delete(i),this.items.delete(i),this.setStatusText()}};return this.items.set(i,r),r}getText(){if(this.shownIds.size==0)return"";let e=new Date,t=Math.floor(e.getMilliseconds()/100),i="",r=[];for(let[o,s]of this.items)this.shownIds.has(o)&&r.push(s);r.sort((o,s)=>o.priority-s.priority);for(let o of r)o.isProgress?i=`${i} ${qE[t]} ${o.text}`:i=`${i} ${o.text}`;return i}setStatusText(){let e=this.getText(),{nvim:t}=this;e!=this._text&&(this._text=e,t.pauseNotification(),this.nvim.setVar("coc_status",e,!0),this.nvim.call("coc#util#do_autocmd",["CocStatusChange"],!0),t.resumeNotification(!1,!0))}}});var cX,zqe,Rp,hX=_(()=>{"use strict";cX=require("events");YE();zqe=W()("model-installBuffer"),Rp=class extends cX.EventEmitter{constructor(e=!1,t=!1,i=void 0){super();this.isUpdate=e;this.isSync=t;this.channel=i;this.statMap=new Map;this.messagesMap=new Map;this.names=[]}setExtensions(e){this.statMap.clear(),this.names=e;for(let t of e)this.statMap.set(t,0)}addMessage(e,t,i=!1){if(i&&this.channel)return;let r=this.messagesMap.get(e)||[];this.messagesMap.set(e,r.concat(t.trim().split(/\r?\n/))),this.channel&&this.channel.appendLine(`[${e}] ${t}`)}startProgress(e){for(let t of e)this.statMap.set(t,2)}finishProgress(e,t=!0){this.channel&&(t?this.channel.appendLine(`[${e}] install succeed!`):this.channel.appendLine(`[${e}] install failed!`)),this.statMap.set(e,t?3:1)}get remains(){let e=0;for(let t of this.names){let i=this.statMap.get(t);[3,1].includes(i)||(e=e+1)}return e}getLines(){let e=[];for(let t of this.names){let i=this.statMap.get(t),r="*";switch(i){case 2:{let s=new Date,a=Math.floor(s.getMilliseconds()/100);r=qE[a];break}case 1:r="\u2717";break;case 3:r="\u2713";break}let o=this.messagesMap.get(t)||[];e.push(`- ${r} ${t} ${o.length?o[o.length-1]:""}`)}return e}getMessages(e){if(e<=1)return[];let t=this.names[e-2];return t?this.messagesMap.get(t):[]}draw(e,t){let{remains:i}=this,o=[i==0?`${this.isUpdate?"Update":"Install"} finished`:`Installing, ${i} remaining...`,"",...this.getLines()];t.setLines(o,{start:0,end:-1,strictIndexing:!1},!0),i==0&&this.interval&&(clearInterval(this.interval),this.interval=null),process.env.VIM_NODE_RPC&&e.command("redraw",!0)}highlight(e){e.call("matchadd",["CocListFgCyan","^\\-\\s\\zs\\*"],!0),e.call("matchadd",["CocListFgGreen","^\\-\\s\\zs\u2713"],!0),e.call("matchadd",["CocListFgRed","^\\-\\s\\zs\u2717"],!0),e.call("matchadd",["CocListFgYellow","^-.\\{3\\}\\zs\\S\\+"],!0)}async show(e){let{isSync:t}=this;if(this.channel)return;e.pauseNotification(),e.command(t?"enew":"vs +enew",!0),e.call("bufnr",["%"],!0),e.command("setl buftype=nofile bufhidden=wipe noswapfile nobuflisted wrap undolevels=-1",!0),t||e.command("nnoremap q :q",!0),this.highlight(e);let i=await e.resumeNotification();this.bufnr=i[0][1];let r=e.createBuffer(this.bufnr);this.interval=setInterval(()=>{this.draw(e,r)},100)}dispose(){this.interval&&clearInterval(this.interval)}}});var pX=y((WE,gX)=>{var Wv=require("buffer"),vs=Wv.Buffer;function dX(n,e){for(var t in n)e[t]=n[t]}vs.from&&vs.alloc&&vs.allocUnsafe&&vs.allocUnsafeSlow?gX.exports=Wv:(dX(Wv,WE),WE.Buffer=ih);function ih(n,e,t){return vs(n,e,t)}dX(vs,ih);ih.from=function(n,e,t){if(typeof n=="number")throw new TypeError("Argument must not be a number");return vs(n,e,t)};ih.alloc=function(n,e,t){if(typeof n!="number")throw new TypeError("Argument must be a number");var i=vs(n);return e!==void 0?typeof t=="string"?i.fill(e,t):i.fill(e):i.fill(0),i};ih.allocUnsafe=function(n){if(typeof n!="number")throw new TypeError("Argument must be a number");return vs(n)};ih.allocUnsafeSlow=function(n){if(typeof n!="number")throw new TypeError("Argument must be a number");return Wv.SlowBuffer(n)}});var wX=y((e2e,ZE)=>{"use strict";ZE.exports=yCe;ZE.exports.parse=DCe;var fX=require("path").basename,aCe=pX().Buffer,lCe=/[\x00-\x20"'()*,/:;<=>?@[\\\]{}\x7f]/g,uCe=/%[0-9A-Fa-f]{2}/,cCe=/%([0-9A-Fa-f]{2})/g,yX=/[^\x20-\x7e\xa0-\xff]/g,hCe=/\\([\u0000-\u007f])/g,dCe=/([\\"])/g,mX=/;[\x09\x20]*([!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*=[\x09\x20]*("(?:[\x20!\x23-\x5b\x5d-\x7e\x80-\xff]|\\[\x20-\x7e])*"|[!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*/g,gCe=/^[\x20-\x7e\x80-\xff]+$/,pCe=/^[!#$%&'*+.0-9A-Z^_`a-z|~-]+$/,fCe=/^([A-Za-z0-9!#$%&+\-^_`{}~]+)'(?:[A-Za-z]{2,3}(?:-[A-Za-z]{3}){0,3}|[A-Za-z]{4,8}|)'((?:%[0-9A-Fa-f]{2}|[A-Za-z0-9!#$&+.^_`|~-])+)$/,mCe=/^([!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*(?:$|;)/;function yCe(n,e){var t=e||{},i=t.type||"attachment",r=bCe(n,t.fallback);return vCe(new vX(i,r))}function bCe(n,e){if(n!==void 0){var t={};if(typeof n!="string")throw new TypeError("filename must be a string");if(e===void 0&&(e=!0),typeof e!="string"&&typeof e!="boolean")throw new TypeError("fallback must be a string or boolean");if(typeof e=="string"&&yX.test(e))throw new TypeError("fallback must be ISO-8859-1 string");var i=fX(n),r=gCe.test(i),o=typeof e!="string"?e&&bX(i):fX(e),s=typeof o=="string"&&o!==i;return(s||!r||uCe.test(i))&&(t["filename*"]=i),(r||s)&&(t.filename=s?o:i),t}}function vCe(n){var e=n.parameters,t=n.type;if(!t||typeof t!="string"||!pCe.test(t))throw new TypeError("invalid type");var i=String(t).toLowerCase();if(e&&typeof e=="object")for(var r,o=Object.keys(e).sort(),s=0;s{var Lp;DX.exports=function(){if(!Lp){try{Lp=Wt()("follow-redirects")}catch{}typeof Lp!="function"&&(Lp=function(){})}Lp.apply(null,arguments)}});var GE=y((i2e,UE)=>{var Jl=require("url"),JE=Jl.URL,kCe=require("http"),ECe=require("https"),TX=require("stream").Writable,PCe=require("assert"),kX=CX(),$l=["abort","aborted","connect","error","socket","timeout"],XE=Object.create(null);$l.forEach(function(n){XE[n]=function(e,t,i){this._redirectable.emit(n,e,t,i)}});var xX=Zv("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),_Ce=Zv("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),RCe=Zv("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),LCe=Zv("ERR_STREAM_WRITE_AFTER_END","write after end");function Jn(n,e){TX.call(this),this._sanitizeOptions(n),this._options=n,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],e&&this.on("response",e);var t=this;this._onNativeResponse=function(i){t._processResponse(i)},this._performRequest()}Jn.prototype=Object.create(TX.prototype);Jn.prototype.abort=function(){PX(this._currentRequest),this.emit("abort")};Jn.prototype.write=function(n,e,t){if(this._ending)throw new LCe;if(!(typeof n=="string"||typeof n=="object"&&"length"in n))throw new TypeError("data should be a string, Buffer or Uint8Array");if(typeof e=="function"&&(t=e,e=null),n.length===0){t&&t();return}this._requestBodyLength+n.length<=this._options.maxBodyLength?(this._requestBodyLength+=n.length,this._requestBodyBuffers.push({data:n,encoding:e}),this._currentRequest.write(n,e,t)):(this.emit("error",new RCe),this.abort())};Jn.prototype.end=function(n,e,t){if(typeof n=="function"?(t=n,n=e=null):typeof e=="function"&&(t=e,e=null),!n)this._ended=this._ending=!0,this._currentRequest.end(null,null,t);else{var i=this,r=this._currentRequest;this.write(n,e,function(){i._ended=!0,r.end(null,null,t)}),this._ending=!0}};Jn.prototype.setHeader=function(n,e){this._options.headers[n]=e,this._currentRequest.setHeader(n,e)};Jn.prototype.removeHeader=function(n){delete this._options.headers[n],this._currentRequest.removeHeader(n)};Jn.prototype.setTimeout=function(n,e){var t=this;function i(s){s.setTimeout(n),s.removeListener("timeout",s.destroy),s.addListener("timeout",s.destroy)}function r(s){t._timeout&&clearTimeout(t._timeout),t._timeout=setTimeout(function(){t.emit("timeout"),o()},n),i(s)}function o(){t._timeout&&(clearTimeout(t._timeout),t._timeout=null),t.removeListener("abort",o),t.removeListener("error",o),t.removeListener("response",o),e&&t.removeListener("timeout",e),t.socket||t._currentRequest.removeListener("socket",r)}return e&&this.on("timeout",e),this.socket?r(this.socket):this._currentRequest.once("socket",r),this.on("socket",i),this.on("abort",o),this.on("error",o),this.on("response",o),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(n){Jn.prototype[n]=function(e,t){return this._currentRequest[n](e,t)}});["aborted","connection","socket"].forEach(function(n){Object.defineProperty(Jn.prototype,n,{get:function(){return this._currentRequest[n]}})});Jn.prototype._sanitizeOptions=function(n){if(n.headers||(n.headers={}),n.host&&(n.hostname||(n.hostname=n.host),delete n.host),!n.pathname&&n.path){var e=n.path.indexOf("?");e<0?n.pathname=n.path:(n.pathname=n.path.substring(0,e),n.search=n.path.substring(e))}};Jn.prototype._performRequest=function(){var n=this._options.protocol,e=this._options.nativeProtocols[n];if(!e){this.emit("error",new TypeError("Unsupported protocol "+n));return}if(this._options.agents){var t=n.substr(0,n.length-1);this._options.agent=this._options.agents[t]}var i=this._currentRequest=e.request(this._options,this._onNativeResponse);this._currentUrl=Jl.format(this._options),i._redirectable=this;for(var r=0;r<$l.length;r++)i.on($l[r],XE[$l[r]]);if(this._isRedirect){var o=0,s=this,a=this._requestBodyBuffers;(function l(u){if(i===s._currentRequest)if(u)s.emit("error",u);else if(o=300&&e<400){if(PX(this._currentRequest),n.destroy(),++this._redirectCount>this._options.maxRedirects){this.emit("error",new _Ce);return}((e===301||e===302)&&this._options.method==="POST"||e===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],$E(/^content-/i,this._options.headers));var i=$E(/^host$/i,this._options.headers),r=Jl.parse(this._currentUrl),o=i||r.host,s=/^\w+:/.test(t)?this._currentUrl:Jl.format(Object.assign(r,{host:o})),a;try{a=Jl.resolve(s,t)}catch(c){this.emit("error",new xX(c));return}kX("redirecting to",a),this._isRedirect=!0;var l=Jl.parse(a);if(Object.assign(this._options,l),(l.protocol!==r.protocol||!ICe(l.host,o))&&$E(/^(?:authorization|cookie)$/i,this._options.headers),typeof this._options.beforeRedirect=="function"){var u={headers:n.headers};try{this._options.beforeRedirect.call(null,this._options,u)}catch(c){this.emit("error",c);return}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(c){this.emit("error",new xX(c))}}else n.responseUrl=this._currentUrl,n.redirects=this._redirects,this.emit("response",n),this._requestBodyBuffers=[]};function EX(n){var e={maxRedirects:21,maxBodyLength:10485760},t={};return Object.keys(n).forEach(function(i){var r=i+":",o=t[r]=n[i],s=e[i]=Object.create(o);function a(u,c,h){if(typeof u=="string"){var d=u;try{u=SX(new JE(d))}catch{u=Jl.parse(d)}}else JE&&u instanceof JE?u=SX(u):(h=c,c=u,u={protocol:r});return typeof c=="function"&&(h=c,c=null),c=Object.assign({maxRedirects:e.maxRedirects,maxBodyLength:e.maxBodyLength},u,c),c.nativeProtocols=t,PCe.equal(c.protocol,r,"protocol mismatch"),kX("options",c),new Jn(c,h)}function l(u,c,h){var d=s.request(u,c,h);return d.end(),d}Object.defineProperties(s,{request:{value:a,configurable:!0,enumerable:!0,writable:!0},get:{value:l,configurable:!0,enumerable:!0,writable:!0}})}),e}function FCe(){}function SX(n){var e={protocol:n.protocol,hostname:n.hostname.startsWith("[")?n.hostname.slice(1,-1):n.hostname,hash:n.hash,search:n.search,pathname:n.pathname,path:n.pathname+n.search,href:n.href};return n.port!==""&&(e.port=Number(n.port)),e}function $E(n,e){var t;for(var i in e)n.test(i)&&(t=e[i],delete e[i]);return t===null||typeof t>"u"?void 0:String(t).trim()}function Zv(n,e){function t(i){Error.captureStackTrace(this,this.constructor),i?(this.message=e+": "+i.message,this.cause=i):this.message=e}return t.prototype=new Error,t.prototype.constructor=t,t.prototype.name="Error ["+n+"]",t.prototype.code=n,t}function PX(n){for(var e=0;e<$l.length;e++)n.removeListener($l[e],XE[$l[e]]);n.on("error",FCe),n.abort()}function ICe(n,e){if(n===e)return!0;let t=n.length-e.length-1;return t>0&&n[t]==="."&&n.endsWith(e)}UE.exports=EX({http:kCe,https:ECe});UE.exports.wrap=EX});var nh=y((n2e,RX)=>{"use strict";var _X=new Map([["C","cwd"],["f","file"],["z","gzip"],["P","preservePaths"],["U","unlink"],["strip-components","strip"],["stripComponents","strip"],["keep-newer","newer"],["keepNewer","newer"],["keep-newer-files","newer"],["keepNewerFiles","newer"],["k","keep"],["keep-existing","keep"],["keepExisting","keep"],["m","noMtime"],["no-mtime","noMtime"],["p","preserveOwner"],["L","follow"],["h","follow"]]);RX.exports=n=>n?Object.keys(n).map(e=>[_X.has(e)?_X.get(e):e,n[e]]).reduce((e,t)=>(e[t[0]]=t[1],e),Object.create(null)):{}});var rh=y((r2e,BX)=>{"use strict";var jCe=require("events"),LX=require("stream"),Fp=yp(),FX=require("string_decoder").StringDecoder,ws=Symbol("EOF"),Ip=Symbol("maybeEmitEnd"),ka=Symbol("emittedEnd"),Jv=Symbol("emittingEnd"),$v=Symbol("closed"),IX=Symbol("read"),KE=Symbol("flush"),jX=Symbol("flushChunk"),Pn=Symbol("encoding"),Ds=Symbol("decoder"),Xv=Symbol("flowing"),jp=Symbol("paused"),Ap=Symbol("resume"),gn=Symbol("bufferLength"),AX=Symbol("bufferPush"),QE=Symbol("bufferShift"),Yi=Symbol("objectMode"),Wi=Symbol("destroyed"),OX=global._MP_NO_ITERATOR_SYMBOLS_!=="1",ACe=OX&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),MCe=OX&&Symbol.iterator||Symbol("iterator not implemented"),MX=n=>n==="end"||n==="finish"||n==="prefinish",OCe=n=>n instanceof ArrayBuffer||typeof n=="object"&&n.constructor&&n.constructor.name==="ArrayBuffer"&&n.byteLength>=0,NCe=n=>!Buffer.isBuffer(n)&&ArrayBuffer.isView(n);BX.exports=class NX extends LX{constructor(e){super();this[Xv]=!1,this[jp]=!1,this.pipes=new Fp,this.buffer=new Fp,this[Yi]=e&&e.objectMode||!1,this[Yi]?this[Pn]=null:this[Pn]=e&&e.encoding||null,this[Pn]==="buffer"&&(this[Pn]=null),this[Ds]=this[Pn]?new FX(this[Pn]):null,this[ws]=!1,this[ka]=!1,this[Jv]=!1,this[$v]=!1,this.writable=!0,this.readable=!0,this[gn]=0,this[Wi]=!1}get bufferLength(){return this[gn]}get encoding(){return this[Pn]}set encoding(e){if(this[Yi])throw new Error("cannot set encoding in objectMode");if(this[Pn]&&e!==this[Pn]&&(this[Ds]&&this[Ds].lastNeed||this[gn]))throw new Error("cannot change encoding");this[Pn]!==e&&(this[Ds]=e?new FX(e):null,this.buffer.length&&(this.buffer=this.buffer.map(t=>this[Ds].write(t)))),this[Pn]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[Yi]}set objectMode(e){this[Yi]=this[Yi]||!!e}write(e,t,i){if(this[ws])throw new Error("write after end");return this[Wi]?(this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0):(typeof t=="function"&&(i=t,t="utf8"),t||(t="utf8"),!this[Yi]&&!Buffer.isBuffer(e)&&(NCe(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):OCe(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),!this.objectMode&&!e.length?(this[gn]!==0&&this.emit("readable"),i&&i(),this.flowing):(typeof e=="string"&&!this[Yi]&&!(t===this[Pn]&&!this[Ds].lastNeed)&&(e=Buffer.from(e,t)),Buffer.isBuffer(e)&&this[Pn]&&(e=this[Ds].write(e)),this.flowing?(this[gn]!==0&&this[KE](!0),this.emit("data",e)):this[AX](e),this[gn]!==0&&this.emit("readable"),i&&i(),this.flowing))}read(e){if(this[Wi])return null;try{return this[gn]===0||e===0||e>this[gn]?null:(this[Yi]&&(e=null),this.buffer.length>1&&!this[Yi]&&(this.encoding?this.buffer=new Fp([Array.from(this.buffer).join("")]):this.buffer=new Fp([Buffer.concat(Array.from(this.buffer),this[gn])])),this[IX](e||null,this.buffer.head.value))}finally{this[Ip]()}}[IX](e,t){return e===t.length||e===null?this[QE]():(this.buffer.head.value=t.slice(e),t=t.slice(0,e),this[gn]-=e),this.emit("data",t),!this.buffer.length&&!this[ws]&&this.emit("drain"),t}end(e,t,i){return typeof e=="function"&&(i=e,e=null),typeof t=="function"&&(i=t,t="utf8"),e&&this.write(e,t),i&&this.once("end",i),this[ws]=!0,this.writable=!1,(this.flowing||!this[jp])&&this[Ip](),this}[Ap](){this[Wi]||(this[jp]=!1,this[Xv]=!0,this.emit("resume"),this.buffer.length?this[KE]():this[ws]?this[Ip]():this.emit("drain"))}resume(){return this[Ap]()}pause(){this[Xv]=!1,this[jp]=!0}get destroyed(){return this[Wi]}get flowing(){return this[Xv]}get paused(){return this[jp]}[AX](e){return this[Yi]?this[gn]+=1:this[gn]+=e.length,this.buffer.push(e)}[QE](){return this.buffer.length&&(this[Yi]?this[gn]-=1:this[gn]-=this.buffer.head.value.length),this.buffer.shift()}[KE](e){do;while(this[jX](this[QE]()));!e&&!this.buffer.length&&!this[ws]&&this.emit("drain")}[jX](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,t){if(this[Wi])return;let i=this[ka];t=t||{},e===process.stdout||e===process.stderr?t.end=!1:t.end=t.end!==!1;let r={dest:e,opts:t,ondrain:o=>this[Ap]()};return this.pipes.push(r),e.on("drain",r.ondrain),this[Ap](),i&&r.opts.end&&r.dest.end(),e}addListener(e,t){return this.on(e,t)}on(e,t){try{return super.on(e,t)}finally{e==="data"&&!this.pipes.length&&!this.flowing?this[Ap]():MX(e)&&this[ka]&&(super.emit(e),this.removeAllListeners(e))}}get emittedEnd(){return this[ka]}[Ip](){!this[Jv]&&!this[ka]&&!this[Wi]&&this.buffer.length===0&&this[ws]&&(this[Jv]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[$v]&&this.emit("close"),this[Jv]=!1)}emit(e,t){if(e!=="error"&&e!=="close"&&e!==Wi&&this[Wi])return;if(e==="data"){if(!t)return;this.pipes.length&&this.pipes.forEach(r=>r.dest.write(t)===!1&&this.pause())}else if(e==="end"){if(this[ka]===!0)return;this[ka]=!0,this.readable=!1,this[Ds]&&(t=this[Ds].end(),t&&(this.pipes.forEach(r=>r.dest.write(t)),super.emit("data",t))),this.pipes.forEach(r=>{r.dest.removeListener("drain",r.ondrain),r.opts.end&&r.dest.end()})}else if(e==="close"&&(this[$v]=!0,!this[ka]&&!this[Wi]))return;let i=new Array(arguments.length);if(i[0]=e,i[1]=t,arguments.length>2)for(let r=2;r{e.push(i),this[Yi]||(e.dataLength+=i.length)}),t.then(()=>e)}concat(){return this[Yi]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[Yi]?Promise.reject(new Error("cannot concat in objectMode")):this[Pn]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,t)=>{this.on(Wi,()=>t(new Error("stream destroyed"))),this.on("end",()=>e()),this.on("error",i=>t(i))})}[ACe](){return{next:()=>{let t=this.read();if(t!==null)return Promise.resolve({done:!1,value:t});if(this[ws])return Promise.resolve({done:!0});let i=null,r=null,o=u=>{this.removeListener("data",s),this.removeListener("end",a),r(u)},s=u=>{this.removeListener("error",o),this.removeListener("end",a),this.pause(),i({value:u,done:!!this[ws]})},a=()=>{this.removeListener("error",o),this.removeListener("data",s),i({done:!0})},l=()=>o(new Error("stream destroyed"));return new Promise((u,c)=>{r=c,i=u,this.once(Wi,l),this.once("error",o),this.once("end",a),this.once("data",s)})}}}[MCe](){return{next:()=>{let t=this.read();return{value:t,done:t===null}}}}destroy(e){return this[Wi]?(e?this.emit("error",e):this.emit(Wi),this):(this[Wi]=!0,this.buffer=new Fp,this[gn]=0,typeof this.close=="function"&&!this[$v]&&this.close(),e?this.emit("error",e):this.emit(Wi),this)}static isStream(e){return!!e&&(e instanceof NX||e instanceof LX||e instanceof jCe&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var qX=y((o2e,HX)=>{var BCe=require("zlib").constants||{ZLIB_VERNUM:4736};HX.exports=Object.freeze(Object.assign(Object.create(null),{Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_VERSION_ERROR:-6,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,BROTLI_DECODE:8,BROTLI_ENCODE:9,Z_MIN_WINDOWBITS:8,Z_MAX_WINDOWBITS:15,Z_DEFAULT_WINDOWBITS:15,Z_MIN_CHUNK:64,Z_MAX_CHUNK:1/0,Z_DEFAULT_CHUNK:16384,Z_MIN_MEMLEVEL:1,Z_MAX_MEMLEVEL:9,Z_DEFAULT_MEMLEVEL:8,Z_MIN_LEVEL:-1,Z_MAX_LEVEL:9,Z_DEFAULT_LEVEL:-1,BROTLI_OPERATION_PROCESS:0,BROTLI_OPERATION_FLUSH:1,BROTLI_OPERATION_FINISH:2,BROTLI_OPERATION_EMIT_METADATA:3,BROTLI_MODE_GENERIC:0,BROTLI_MODE_TEXT:1,BROTLI_MODE_FONT:2,BROTLI_DEFAULT_MODE:0,BROTLI_MIN_QUALITY:0,BROTLI_MAX_QUALITY:11,BROTLI_DEFAULT_QUALITY:11,BROTLI_MIN_WINDOW_BITS:10,BROTLI_MAX_WINDOW_BITS:24,BROTLI_LARGE_MAX_WINDOW_BITS:30,BROTLI_DEFAULT_WINDOW:22,BROTLI_MIN_INPUT_BLOCK_BITS:16,BROTLI_MAX_INPUT_BLOCK_BITS:24,BROTLI_PARAM_MODE:0,BROTLI_PARAM_QUALITY:1,BROTLI_PARAM_LGWIN:2,BROTLI_PARAM_LGBLOCK:3,BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING:4,BROTLI_PARAM_SIZE_HINT:5,BROTLI_PARAM_LARGE_WINDOW:6,BROTLI_PARAM_NPOSTFIX:7,BROTLI_PARAM_NDIRECT:8,BROTLI_DECODER_RESULT_ERROR:0,BROTLI_DECODER_RESULT_SUCCESS:1,BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT:2,BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION:0,BROTLI_DECODER_PARAM_LARGE_WINDOW:1,BROTLI_DECODER_NO_ERROR:0,BROTLI_DECODER_SUCCESS:1,BROTLI_DECODER_NEEDS_MORE_INPUT:2,BROTLI_DECODER_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE:-1,BROTLI_DECODER_ERROR_FORMAT_RESERVED:-2,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE:-3,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET:-4,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME:-5,BROTLI_DECODER_ERROR_FORMAT_CL_SPACE:-6,BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE:-7,BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT:-8,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1:-9,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2:-10,BROTLI_DECODER_ERROR_FORMAT_TRANSFORM:-11,BROTLI_DECODER_ERROR_FORMAT_DICTIONARY:-12,BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS:-13,BROTLI_DECODER_ERROR_FORMAT_PADDING_1:-14,BROTLI_DECODER_ERROR_FORMAT_PADDING_2:-15,BROTLI_DECODER_ERROR_FORMAT_DISTANCE:-16,BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET:-19,BROTLI_DECODER_ERROR_INVALID_ARGUMENTS:-20,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES:-21,BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS:-22,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP:-25,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1:-26,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2:-27,BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES:-30,BROTLI_DECODER_ERROR_UNREACHABLE:-31},BCe))});var sP=y($n=>{"use strict";var iP=require("assert"),Ea=require("buffer").Buffer,ZX=require("zlib"),Xl=$n.constants=qX(),HCe=rh(),YX=Ea.concat,Ul=Symbol("_superWrite"),Op=class extends Error{constructor(e){super("zlib: "+e.message);this.code=e.code,this.errno=e.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+e.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}},qCe=Symbol("opts"),Mp=Symbol("flushFlag"),WX=Symbol("finishFlushFlag"),nP=Symbol("fullFlushFlag"),St=Symbol("handle"),Uv=Symbol("onError"),oh=Symbol("sawError"),zE=Symbol("level"),VE=Symbol("strategy"),eP=Symbol("ended"),s2e=Symbol("_defaultFullFlush"),rP=class extends HCe{constructor(e,t){if(!e||typeof e!="object")throw new TypeError("invalid options for ZlibBase constructor");super(e);this[oh]=!1,this[eP]=!1,this[qCe]=e,this[Mp]=e.flush,this[WX]=e.finishFlush;try{this[St]=new ZX[t](e)}catch(i){throw new Op(i)}this[Uv]=i=>{this[oh]||(this[oh]=!0,this.close(),this.emit("error",i))},this[St].on("error",i=>this[Uv](new Op(i))),this.once("end",()=>this.close)}close(){this[St]&&(this[St].close(),this[St]=null,this.emit("close"))}reset(){if(!this[oh])return iP(this[St],"zlib binding closed"),this[St].reset()}flush(e){this.ended||(typeof e!="number"&&(e=this[nP]),this.write(Object.assign(Ea.alloc(0),{[Mp]:e})))}end(e,t,i){return e&&this.write(e,t),this.flush(this[WX]),this[eP]=!0,super.end(null,null,i)}get ended(){return this[eP]}write(e,t,i){if(typeof t=="function"&&(i=t,t="utf8"),typeof e=="string"&&(e=Ea.from(e,t)),this[oh])return;iP(this[St],"zlib binding closed");let r=this[St]._handle,o=r.close;r.close=()=>{};let s=this[St].close;this[St].close=()=>{},Ea.concat=u=>u;let a;try{let u=typeof e[Mp]=="number"?e[Mp]:this[Mp];a=this[St]._processChunk(e,u),Ea.concat=YX}catch(u){Ea.concat=YX,this[Uv](new Op(u))}finally{this[St]&&(this[St]._handle=r,r.close=o,this[St].close=s,this[St].removeAllListeners("error"))}this[St]&&this[St].on("error",u=>this[Uv](new Op(u)));let l;if(a)if(Array.isArray(a)&&a.length>0){l=this[Ul](Ea.from(a[0]));for(let u=1;u{this.flush(r),o()};try{this[St].params(e,t)}finally{this[St].flush=i}this[St]&&(this[zE]=e,this[VE]=t)}}}},JX=class extends Pa{constructor(e){super(e,"Deflate")}},$X=class extends Pa{constructor(e){super(e,"Inflate")}},tP=Symbol("_portable"),XX=class extends Pa{constructor(e){super(e,"Gzip");this[tP]=e&&!!e.portable}[Ul](e){return this[tP]?(this[tP]=!1,e[9]=255,super[Ul](e)):super[Ul](e)}},UX=class extends Pa{constructor(e){super(e,"Gunzip")}},GX=class extends Pa{constructor(e){super(e,"DeflateRaw")}},KX=class extends Pa{constructor(e){super(e,"InflateRaw")}},QX=class extends Pa{constructor(e){super(e,"Unzip")}},oP=class extends rP{constructor(e,t){e=e||{},e.flush=e.flush||Xl.BROTLI_OPERATION_PROCESS,e.finishFlush=e.finishFlush||Xl.BROTLI_OPERATION_FINISH;super(e,t);this[nP]=Xl.BROTLI_OPERATION_FLUSH}},zX=class extends oP{constructor(e){super(e,"BrotliCompress")}},VX=class extends oP{constructor(e){super(e,"BrotliDecompress")}};$n.Deflate=JX;$n.Inflate=$X;$n.Gzip=XX;$n.Gunzip=UX;$n.DeflateRaw=GX;$n.InflateRaw=KX;$n.Unzip=QX;typeof ZX.BrotliCompress=="function"?($n.BrotliCompress=zX,$n.BrotliDecompress=VX):$n.BrotliCompress=$n.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}});var sh=y((l2e,eU)=>{var YCe=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;eU.exports=YCe!=="win32"?n=>n:n=>n&&n.replace(/\\/g,"/")});var Gv=y((c2e,tU)=>{"use strict";var WCe=rh(),aP=sh(),lP=Symbol("slurp");tU.exports=class extends WCe{constructor(e,t,i){super();switch(this.pause(),this.extended=t,this.globalExtended=i,this.header=e,this.startBlockSize=512*Math.ceil(e.size/512),this.blockRemain=this.startBlockSize,this.remain=e.size,this.type=e.type,this.meta=!1,this.ignore=!1,this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=!0;break;default:this.ignore=!0}this.path=aP(e.path),this.mode=e.mode,this.mode&&(this.mode=this.mode&4095),this.uid=e.uid,this.gid=e.gid,this.uname=e.uname,this.gname=e.gname,this.size=e.size,this.mtime=e.mtime,this.atime=e.atime,this.ctime=e.ctime,this.linkpath=aP(e.linkpath),this.uname=e.uname,this.gname=e.gname,t&&this[lP](t),i&&this[lP](i,!0)}write(e){let t=e.length;if(t>this.blockRemain)throw new Error("writing more to entry than is appropriate");let i=this.remain,r=this.blockRemain;return this.remain=Math.max(0,i-t),this.blockRemain=Math.max(0,r-t),this.ignore?!0:i>=t?super.write(e):super.write(e.slice(0,i))}[lP](e,t){for(let i in e)e[i]!==null&&e[i]!==void 0&&!(t&&i==="path")&&(this[i]=i==="path"||i==="linkpath"?aP(e[i]):e[i])}}});var uP=y(Kv=>{"use strict";Kv.name=new Map([["0","File"],["","OldFile"],["1","Link"],["2","SymbolicLink"],["3","CharacterDevice"],["4","BlockDevice"],["5","Directory"],["6","FIFO"],["7","ContiguousFile"],["g","GlobalExtendedHeader"],["x","ExtendedHeader"],["A","SolarisACL"],["D","GNUDumpDir"],["I","Inode"],["K","NextFileHasLongLinkpath"],["L","NextFileHasLongPath"],["M","ContinuationFile"],["N","OldGnuLongPath"],["S","SparseFile"],["V","TapeVolumeHeader"],["X","OldExtendedHeader"]]);Kv.code=new Map(Array.from(Kv.name).map(n=>[n[1],n[0]]))});var oU=y((d2e,rU)=>{"use strict";var ZCe=(n,e)=>{if(Number.isSafeInteger(n))n<0?$Ce(n,e):JCe(n,e);else throw Error("cannot encode number outside of javascript safe integer range");return e},JCe=(n,e)=>{e[0]=128;for(var t=e.length;t>1;t--)e[t-1]=n&255,n=Math.floor(n/256)},$Ce=(n,e)=>{e[0]=255;var t=!1;n=n*-1;for(var i=e.length;i>1;i--){var r=n&255;n=Math.floor(n/256),t?e[i-1]=iU(r):r===0?e[i-1]=0:(t=!0,e[i-1]=nU(r))}},XCe=n=>{let e=n[0],t=e===128?GCe(n.slice(1,n.length)):e===255?UCe(n):null;if(t===null)throw Error("invalid base256 encoding");if(!Number.isSafeInteger(t))throw Error("parsed number outside of javascript safe integer range");return t},UCe=n=>{for(var e=n.length,t=0,i=!1,r=e-1;r>-1;r--){var o=n[r],s;i?s=iU(o):o===0?s=o:(i=!0,s=nU(o)),s!==0&&(t-=s*Math.pow(256,e-r-1))}return t},GCe=n=>{for(var e=n.length,t=0,i=e-1;i>-1;i--){var r=n[i];r!==0&&(t+=r*Math.pow(256,e-i-1))}return t},iU=n=>(255^n)&255,nU=n=>(255^n)+1&255;rU.exports={encode:ZCe,parse:XCe}});var lh=y((g2e,lU)=>{"use strict";var cP=uP(),ah=require("path").posix,sU=oU(),hP=Symbol("slurp"),Xn=Symbol("type"),aU=class{constructor(e,t,i,r){this.cksumValid=!1,this.needPax=!1,this.nullBlock=!1,this.block=null,this.path=null,this.mode=null,this.uid=null,this.gid=null,this.size=null,this.mtime=null,this.cksum=null,this[Xn]="0",this.linkpath=null,this.uname=null,this.gname=null,this.devmaj=0,this.devmin=0,this.atime=null,this.ctime=null,Buffer.isBuffer(e)?this.decode(e,t||0,i,r):e&&this.set(e)}decode(e,t,i,r){if(t||(t=0),!e||!(e.length>=t+512))throw new Error("need 512 bytes for header");if(this.path=Gl(e,t,100),this.mode=_a(e,t+100,8),this.uid=_a(e,t+108,8),this.gid=_a(e,t+116,8),this.size=_a(e,t+124,12),this.mtime=dP(e,t+136,12),this.cksum=_a(e,t+148,12),this[hP](i),this[hP](r,!0),this[Xn]=Gl(e,t+156,1),this[Xn]===""&&(this[Xn]="0"),this[Xn]==="0"&&this.path.substr(-1)==="/"&&(this[Xn]="5"),this[Xn]==="5"&&(this.size=0),this.linkpath=Gl(e,t+157,100),e.slice(t+257,t+265).toString()==="ustar\x0000")if(this.uname=Gl(e,t+265,32),this.gname=Gl(e,t+297,32),this.devmaj=_a(e,t+329,8),this.devmin=_a(e,t+337,8),e[t+475]!==0){let s=Gl(e,t+345,155);this.path=s+"/"+this.path}else{let s=Gl(e,t+345,130);s&&(this.path=s+"/"+this.path),this.atime=dP(e,t+476,12),this.ctime=dP(e,t+488,12)}let o=8*32;for(let s=t;s=t+512))throw new Error("need 512 bytes for header");let i=this.ctime||this.atime?130:155,r=KCe(this.path||"",i),o=r[0],s=r[1];this.needPax=r[2],this.needPax=Kl(e,t,100,o)||this.needPax,this.needPax=Ra(e,t+100,8,this.mode)||this.needPax,this.needPax=Ra(e,t+108,8,this.uid)||this.needPax,this.needPax=Ra(e,t+116,8,this.gid)||this.needPax,this.needPax=Ra(e,t+124,12,this.size)||this.needPax,this.needPax=gP(e,t+136,12,this.mtime)||this.needPax,e[t+156]=this[Xn].charCodeAt(0),this.needPax=Kl(e,t+157,100,this.linkpath)||this.needPax,e.write("ustar\x0000",t+257,8),this.needPax=Kl(e,t+265,32,this.uname)||this.needPax,this.needPax=Kl(e,t+297,32,this.gname)||this.needPax,this.needPax=Ra(e,t+329,8,this.devmaj)||this.needPax,this.needPax=Ra(e,t+337,8,this.devmin)||this.needPax,this.needPax=Kl(e,t+345,i,s)||this.needPax,e[t+475]!==0?this.needPax=Kl(e,t+345,155,s)||this.needPax:(this.needPax=Kl(e,t+345,130,s)||this.needPax,this.needPax=gP(e,t+476,12,this.atime)||this.needPax,this.needPax=gP(e,t+488,12,this.ctime)||this.needPax);let a=8*32;for(let l=t;l{let i=n,r="",o,s=ah.parse(n).root||".";if(Buffer.byteLength(i)<100)o=[i,r,!1];else{r=ah.dirname(i),i=ah.basename(i);do Buffer.byteLength(i)<=100&&Buffer.byteLength(r)<=e?o=[i,r,!1]:Buffer.byteLength(i)>100&&Buffer.byteLength(r)<=e?o=[i.substr(0,100-1),r,!0]:(i=ah.join(ah.basename(r),i),r=ah.dirname(r));while(r!==s&&!o);o||(o=[n.substr(0,100-1),"",!0])}return o},Gl=(n,e,t)=>n.slice(e,e+t).toString("utf8").replace(/\0.*/,""),dP=(n,e,t)=>QCe(_a(n,e,t)),QCe=n=>n===null?null:new Date(n*1e3),_a=(n,e,t)=>n[e]&128?sU.parse(n.slice(e,e+t)):VCe(n,e,t),zCe=n=>isNaN(n)?null:n,VCe=(n,e,t)=>zCe(parseInt(n.slice(e,e+t).toString("utf8").replace(/\0.*$/,"").trim(),8)),exe={12:8589934591,8:2097151},Ra=(n,e,t,i)=>i===null?!1:i>exe[t]||i<0?(sU.encode(i,n.slice(e,e+t)),!0):(txe(n,e,t,i),!1),txe=(n,e,t,i)=>n.write(ixe(i,t),e,t,"ascii"),ixe=(n,e)=>nxe(Math.floor(n).toString(8),e),nxe=(n,e)=>(n.length===e-1?n:new Array(e-n.length-1).join("0")+n+" ")+"\0",gP=(n,e,t,i)=>i===null?!1:Ra(n,e,t,i.getTime()/1e3),rxe=new Array(156).join("\0"),Kl=(n,e,t,i)=>i===null?!1:(n.write(i+rxe,e,t,"utf8"),i.length!==Buffer.byteLength(i)||i.length>t);lU.exports=aU});var zv=y((p2e,uU)=>{"use strict";var oxe=lh(),sxe=require("path"),Qv=class{constructor(e,t){this.atime=e.atime||null,this.charset=e.charset||null,this.comment=e.comment||null,this.ctime=e.ctime||null,this.gid=e.gid||null,this.gname=e.gname||null,this.linkpath=e.linkpath||null,this.mtime=e.mtime||null,this.path=e.path||null,this.size=e.size||null,this.uid=e.uid||null,this.uname=e.uname||null,this.dev=e.dev||null,this.ino=e.ino||null,this.nlink=e.nlink||null,this.global=t||!1}encode(){let e=this.encodeBody();if(e==="")return null;let t=Buffer.byteLength(e),i=512*Math.ceil(1+t/512),r=Buffer.allocUnsafe(i);for(let o=0;o<512;o++)r[o]=0;new oxe({path:("PaxHeader/"+sxe.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:t,mtime:this.mtime||null,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime||null,ctime:this.ctime||null}).encode(r),r.write(e,512,t,"utf8");for(let o=t+512;o=Math.pow(10,o)&&(o+=1),o+r+i}};Qv.parse=(n,e,t)=>new Qv(axe(lxe(n),e),t);var axe=(n,e)=>e?Object.keys(n).reduce((t,i)=>(t[i]=n[i],t),e):n,lxe=n=>n.replace(/\n$/,"").split(` +`).reduce(uxe,Object.create(null)),uxe=(n,e)=>{let t=parseInt(e,10);if(t!==Buffer.byteLength(e)+1)return n;e=e.substr((t+" ").length);let i=e.split("="),r=i.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!r)return n;let o=i.join("=");return n[r]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(r)?new Date(o*1e3):/^[0-9]+$/.test(o)?+o:o,n};uU.exports=Qv});var uh=y((f2e,cU)=>{cU.exports=n=>{let e=n.length-1,t=-1;for(;e>-1&&n.charAt(e)==="/";)t=e,e--;return t===-1?n:n.slice(0,t)}});var Vv=y((m2e,hU)=>{"use strict";hU.exports=n=>class extends n{warn(e,t,i={}){this.file&&(i.file=this.file),this.cwd&&(i.cwd=this.cwd),i.code=t instanceof Error&&t.code||e,i.tarCode=e,!this.strict&&i.recoverable!==!1?(t instanceof Error&&(i=Object.assign(t,i),t=t.message),this.emit("warn",i.tarCode,t,i)):t instanceof Error?this.emit("error",Object.assign(t,i)):this.emit("error",Object.assign(new Error(`${e}: ${t}`),i))}}});var fP=y((y2e,dU)=>{"use strict";var ew=["|","<",">","?",":"],pP=ew.map(n=>String.fromCharCode(61440+n.charCodeAt(0))),cxe=new Map(ew.map((n,e)=>[n,pP[e]])),hxe=new Map(pP.map((n,e)=>[n,ew[e]]));dU.exports={encode:n=>ew.reduce((e,t)=>e.split(t).join(cxe.get(t)),n),decode:n=>pP.reduce((e,t)=>e.split(t).join(hxe.get(t)),n)}});var mP=y((b2e,pU)=>{var{isAbsolute:dxe,parse:gU}=require("path").win32;pU.exports=n=>{let e="",t=gU(n);for(;dxe(n)||t.root;){let i=n.charAt(0)==="/"&&n.slice(0,4)!=="//?/"?"/":t.root;n=n.substr(i.length),e+=i,t=gU(n)}return[e,n]}});var mU=y((v2e,fU)=>{"use strict";fU.exports=(n,e,t)=>(n&=4095,t&&(n=(n|384)&-19),e&&(n&256&&(n|=64),n&32&&(n|=8),n&4&&(n|=1)),n)});var TP=y((C2e,LU)=>{"use strict";var xU=rh(),SU=zv(),TU=lh(),ko=require("fs"),yU=require("path"),To=sh(),gxe=uh(),kU=(n,e)=>e?(n=To(n).replace(/^\.(\/|$)/,""),gxe(e)+"/"+n):To(n),pxe=16*1024*1024,bU=Symbol("process"),vU=Symbol("file"),wU=Symbol("directory"),bP=Symbol("symlink"),DU=Symbol("hardlink"),Np=Symbol("header"),tw=Symbol("read"),vP=Symbol("lstat"),iw=Symbol("onlstat"),wP=Symbol("onread"),DP=Symbol("onreadlink"),CP=Symbol("openfile"),xP=Symbol("onopenfile"),La=Symbol("close"),nw=Symbol("mode"),SP=Symbol("awaitDrain"),yP=Symbol("ondrain"),Eo=Symbol("prefix"),CU=Symbol("hadError"),EU=Vv(),fxe=fP(),PU=mP(),_U=mU(),rw=EU(class extends xU{constructor(e,t){t=t||{};super(t);if(typeof e!="string")throw new TypeError("path is required");this.path=To(e),this.portable=!!t.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=t.maxReadSize||pxe,this.linkCache=t.linkCache||new Map,this.statCache=t.statCache||new Map,this.preservePaths=!!t.preservePaths,this.cwd=To(t.cwd||process.cwd()),this.strict=!!t.strict,this.noPax=!!t.noPax,this.noMtime=!!t.noMtime,this.mtime=t.mtime||null,this.prefix=t.prefix?To(t.prefix):null,this.fd=null,this.blockLen=null,this.blockRemain=null,this.buf=null,this.offset=null,this.length=null,this.pos=null,this.remain=null,typeof t.onwarn=="function"&&this.on("warn",t.onwarn);let i=!1;if(!this.preservePaths){let[r,o]=PU(this.path);r&&(this.path=o,i=r)}this.win32=!!t.win32||process.platform==="win32",this.win32&&(this.path=fxe.decode(this.path.replace(/\\/g,"/")),e=e.replace(/\\/g,"/")),this.absolute=To(t.absolute||yU.resolve(this.cwd,e)),this.path===""&&(this.path="./"),i&&this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:this,path:i+this.path}),this.statCache.has(this.absolute)?this[iw](this.statCache.get(this.absolute)):this[vP]()}emit(e,...t){return e==="error"&&(this[CU]=!0),super.emit(e,...t)}[vP](){ko.lstat(this.absolute,(e,t)=>{if(e)return this.emit("error",e);this[iw](t)})}[iw](e){this.statCache.set(this.absolute,e),this.stat=e,e.isFile()||(e.size=0),this.type=yxe(e),this.emit("stat",e),this[bU]()}[bU](){switch(this.type){case"File":return this[vU]();case"Directory":return this[wU]();case"SymbolicLink":return this[bP]();default:return this.end()}}[nw](e){return _U(e,this.type==="Directory",this.portable)}[Eo](e){return kU(e,this.prefix)}[Np](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new TU({path:this[Eo](this.path),linkpath:this.type==="Link"?this[Eo](this.linkpath):this.linkpath,mode:this[nw](this.stat.mode),uid:this.portable?null:this.stat.uid,gid:this.portable?null:this.stat.gid,size:this.stat.size,mtime:this.noMtime?null:this.mtime||this.stat.mtime,type:this.type,uname:this.portable?null:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?null:this.stat.atime,ctime:this.portable?null:this.stat.ctime}),this.header.encode()&&!this.noPax&&super.write(new SU({atime:this.portable?null:this.header.atime,ctime:this.portable?null:this.header.ctime,gid:this.portable?null:this.header.gid,mtime:this.noMtime?null:this.mtime||this.header.mtime,path:this[Eo](this.path),linkpath:this.type==="Link"?this[Eo](this.linkpath):this.linkpath,size:this.header.size,uid:this.portable?null:this.header.uid,uname:this.portable?null:this.header.uname,dev:this.portable?null:this.stat.dev,ino:this.portable?null:this.stat.ino,nlink:this.portable?null:this.stat.nlink}).encode()),super.write(this.header.block)}[wU](){this.path.substr(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[Np](),this.end()}[bP](){ko.readlink(this.absolute,(e,t)=>{if(e)return this.emit("error",e);this[DP](t)})}[DP](e){this.linkpath=To(e),this[Np](),this.end()}[DU](e){this.type="Link",this.linkpath=To(yU.relative(this.cwd,e)),this.stat.size=0,this[Np](),this.end()}[vU](){if(this.stat.nlink>1){let e=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(e)){let t=this.linkCache.get(e);if(t.indexOf(this.cwd)===0)return this[DU](t)}this.linkCache.set(e,this.absolute)}if(this[Np](),this.stat.size===0)return this.end();this[CP]()}[CP](){ko.open(this.absolute,"r",(e,t)=>{if(e)return this.emit("error",e);this[xP](t)})}[xP](e){if(this.fd=e,this[CU])return this[La]();this.blockLen=512*Math.ceil(this.stat.size/512),this.blockRemain=this.blockLen;let t=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(t),this.offset=0,this.pos=0,this.remain=this.stat.size,this.length=this.buf.length,this[tw]()}[tw](){let{fd:e,buf:t,offset:i,length:r,pos:o}=this;ko.read(e,t,i,r,o,(s,a)=>{if(s)return this[La](()=>this.emit("error",s));this[wP](a)})}[La](e){ko.close(this.fd,e)}[wP](e){if(e<=0&&this.remain>0){let r=new Error("encountered unexpected EOF");return r.path=this.absolute,r.syscall="read",r.code="EOF",this[La](()=>this.emit("error",r))}if(e>this.remain){let r=new Error("did not encounter expected EOF");return r.path=this.absolute,r.syscall="read",r.code="EOF",this[La](()=>this.emit("error",r))}if(e===this.remain)for(let r=e;rthis[yP]())}[SP](e){this.once("drain",e)}write(e){if(this.blockRemaine?this.emit("error",e):this.end());this.offset>=this.length&&(this.buf=Buffer.allocUnsafe(Math.min(this.blockRemain,this.buf.length)),this.offset=0),this.length=this.buf.length-this.offset,this[tw]()}}),RU=class extends rw{[vP](){this[iw](ko.lstatSync(this.absolute))}[bP](){this[DP](ko.readlinkSync(this.absolute))}[CP](){this[xP](ko.openSync(this.absolute,"r"))}[tw](){let e=!0;try{let{fd:t,buf:i,offset:r,length:o,pos:s}=this,a=ko.readSync(t,i,r,o,s);this[wP](a),e=!1}finally{if(e)try{this[La](()=>{})}catch{}}}[SP](e){e()}[La](e){ko.closeSync(this.fd),e()}},mxe=EU(class extends xU{constructor(e,t){t=t||{};super(t);this.preservePaths=!!t.preservePaths,this.portable=!!t.portable,this.strict=!!t.strict,this.noPax=!!t.noPax,this.noMtime=!!t.noMtime,this.readEntry=e,this.type=e.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=t.prefix||null,this.path=To(e.path),this.mode=this[nw](e.mode),this.uid=this.portable?null:e.uid,this.gid=this.portable?null:e.gid,this.uname=this.portable?null:e.uname,this.gname=this.portable?null:e.gname,this.size=e.size,this.mtime=this.noMtime?null:t.mtime||e.mtime,this.atime=this.portable?null:e.atime,this.ctime=this.portable?null:e.ctime,this.linkpath=To(e.linkpath),typeof t.onwarn=="function"&&this.on("warn",t.onwarn);let i=!1;if(!this.preservePaths){let[r,o]=PU(this.path);r&&(this.path=o,i=r)}this.remain=e.size,this.blockRemain=e.startBlockSize,this.header=new TU({path:this[Eo](this.path),linkpath:this.type==="Link"?this[Eo](this.linkpath):this.linkpath,mode:this.mode,uid:this.portable?null:this.uid,gid:this.portable?null:this.gid,size:this.size,mtime:this.noMtime?null:this.mtime,type:this.type,uname:this.portable?null:this.uname,atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime}),i&&this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:this,path:i+this.path}),this.header.encode()&&!this.noPax&&super.write(new SU({atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime,gid:this.portable?null:this.gid,mtime:this.noMtime?null:this.mtime,path:this[Eo](this.path),linkpath:this.type==="Link"?this[Eo](this.linkpath):this.linkpath,size:this.size,uid:this.portable?null:this.uid,uname:this.portable?null:this.uname,dev:this.portable?null:this.readEntry.dev,ino:this.portable?null:this.readEntry.ino,nlink:this.portable?null:this.readEntry.nlink}).encode()),super.write(this.header.block),e.pipe(this)}[Eo](e){return kU(e,this.prefix)}[nw](e){return _U(e,this.type==="Directory",this.portable)}write(e){let t=e.length;if(t>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=t,super.write(e)}end(){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),super.end()}});rw.Sync=RU;rw.Tar=mxe;var yxe=n=>n.isFile()?"File":n.isDirectory()?"Directory":n.isSymbolicLink()?"SymbolicLink":"Unsupported";LU.exports=rw});var dw=y((S2e,BU)=>{"use strict";var RP=class{constructor(e,t){this.path=e||"./",this.absolute=t,this.entry=null,this.stat=null,this.readdir=null,this.pending=!1,this.ignore=!1,this.piped=!1}},bxe=rh(),vxe=sP(),wxe=Gv(),jP=TP(),Dxe=jP.Sync,Cxe=jP.Tar,xxe=yp(),FU=Buffer.alloc(1024),aw=Symbol("onStat"),ow=Symbol("ended"),Po=Symbol("queue"),ch=Symbol("current"),Ql=Symbol("process"),sw=Symbol("processing"),IU=Symbol("processJob"),_o=Symbol("jobs"),kP=Symbol("jobDone"),lw=Symbol("addFSEntry"),jU=Symbol("addTarEntry"),LP=Symbol("stat"),FP=Symbol("readdir"),uw=Symbol("onreaddir"),cw=Symbol("pipe"),AU=Symbol("entry"),EP=Symbol("entryOpt"),IP=Symbol("writeEntryClass"),OU=Symbol("write"),PP=Symbol("ondrain"),hw=require("fs"),MU=require("path"),Sxe=Vv(),_P=sh(),AP=Sxe(class extends bxe{constructor(e){super(e);e=e||Object.create(null),this.opt=e,this.file=e.file||"",this.cwd=e.cwd||process.cwd(),this.maxReadSize=e.maxReadSize,this.preservePaths=!!e.preservePaths,this.strict=!!e.strict,this.noPax=!!e.noPax,this.prefix=_P(e.prefix||""),this.linkCache=e.linkCache||new Map,this.statCache=e.statCache||new Map,this.readdirCache=e.readdirCache||new Map,this[IP]=jP,typeof e.onwarn=="function"&&this.on("warn",e.onwarn),this.portable=!!e.portable,this.zip=null,e.gzip?(typeof e.gzip!="object"&&(e.gzip={}),this.portable&&(e.gzip.portable=!0),this.zip=new vxe.Gzip(e.gzip),this.zip.on("data",t=>super.write(t)),this.zip.on("end",t=>super.end()),this.zip.on("drain",t=>this[PP]()),this.on("resume",t=>this.zip.resume())):this.on("drain",this[PP]),this.noDirRecurse=!!e.noDirRecurse,this.follow=!!e.follow,this.noMtime=!!e.noMtime,this.mtime=e.mtime||null,this.filter=typeof e.filter=="function"?e.filter:t=>!0,this[Po]=new xxe,this[_o]=0,this.jobs=+e.jobs||4,this[sw]=!1,this[ow]=!1}[OU](e){return super.write(e)}add(e){return this.write(e),this}end(e){return e&&this.write(e),this[ow]=!0,this[Ql](),this}write(e){if(this[ow])throw new Error("write after end");return e instanceof wxe?this[jU](e):this[lw](e),this.flowing}[jU](e){let t=_P(MU.resolve(this.cwd,e.path));if(!this.filter(e.path,e))e.resume();else{let i=new RP(e.path,t,!1);i.entry=new Cxe(e,this[EP](i)),i.entry.on("end",r=>this[kP](i)),this[_o]+=1,this[Po].push(i)}this[Ql]()}[lw](e){let t=_P(MU.resolve(this.cwd,e));this[Po].push(new RP(e,t)),this[Ql]()}[LP](e){e.pending=!0,this[_o]+=1;let t=this.follow?"stat":"lstat";hw[t](e.absolute,(i,r)=>{e.pending=!1,this[_o]-=1,i?this.emit("error",i):this[aw](e,r)})}[aw](e,t){this.statCache.set(e.absolute,t),e.stat=t,this.filter(e.path,t)||(e.ignore=!0),this[Ql]()}[FP](e){e.pending=!0,this[_o]+=1,hw.readdir(e.absolute,(t,i)=>{if(e.pending=!1,this[_o]-=1,t)return this.emit("error",t);this[uw](e,i)})}[uw](e,t){this.readdirCache.set(e.absolute,t),e.readdir=t,this[Ql]()}[Ql](){if(!this[sw]){this[sw]=!0;for(let e=this[Po].head;e!==null&&this[_o]this.warn(t,i,r),noPax:this.noPax,cwd:this.cwd,absolute:e.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime,prefix:this.prefix}}[AU](e){this[_o]+=1;try{return new this[IP](e.path,this[EP](e)).on("end",()=>this[kP](e)).on("error",t=>this.emit("error",t))}catch(t){this.emit("error",t)}}[PP](){this[ch]&&this[ch].entry&&this[ch].entry.resume()}[cw](e){e.piped=!0,e.readdir&&e.readdir.forEach(r=>{let o=e.path,s=o==="./"?"":o.replace(/\/*$/,"/");this[lw](s+r)});let t=e.entry,i=this.zip;i?t.on("data",r=>{i.write(r)||t.pause()}):t.on("data",r=>{super.write(r)||t.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),NU=class extends AP{constructor(e){super(e);this[IP]=Dxe}pause(){}resume(){}[LP](e){let t=this.follow?"statSync":"lstatSync";this[aw](e,hw[t](e.absolute))}[FP](e,t){this[uw](e,hw.readdirSync(e.absolute))}[cw](e){let t=e.entry,i=this.zip;e.readdir&&e.readdir.forEach(r=>{let o=e.path,s=o==="./"?"":o.replace(/\/*$/,"/");this[lw](s+r)}),i?t.on("data",r=>{i.write(r)}):t.on("data",r=>{super[OU](r)})}};AP.Sync=NU;BU.exports=AP});var bh=y(Hp=>{"use strict";var Txe=rh(),kxe=require("events").EventEmitter,_n=require("fs"),NP=_n.writev;if(!NP){let n=process.binding("fs"),e=n.FSReqWrap||n.FSReqCallback;NP=(t,i,r,o)=>{let s=(l,u)=>o(l,u,i),a=new e;a.oncomplete=s,n.writeBuffers(t,i,r,a)}}var mh=Symbol("_autoClose"),zr=Symbol("_close"),Bp=Symbol("_ended"),ut=Symbol("_fd"),HU=Symbol("_finished"),Ia=Symbol("_flags"),MP=Symbol("_flush"),BP=Symbol("_handleChunk"),HP=Symbol("_makeBuf"),yw=Symbol("_mode"),gw=Symbol("_needDrain"),ph=Symbol("_onerror"),yh=Symbol("_onopen"),OP=Symbol("_onread"),dh=Symbol("_onwrite"),ja=Symbol("_open"),Cs=Symbol("_path"),zl=Symbol("_pos"),Ro=Symbol("_queue"),gh=Symbol("_read"),qU=Symbol("_readSize"),Fa=Symbol("_reading"),pw=Symbol("_remain"),YU=Symbol("_size"),fw=Symbol("_write"),hh=Symbol("_writing"),mw=Symbol("_defaultFlag"),fh=Symbol("_errored"),qP=class extends Txe{constructor(e,t){t=t||{};super(t);if(this.readable=!0,this.writable=!1,typeof e!="string")throw new TypeError("path must be a string");this[fh]=!1,this[ut]=typeof t.fd=="number"?t.fd:null,this[Cs]=e,this[qU]=t.readSize||16*1024*1024,this[Fa]=!1,this[YU]=typeof t.size=="number"?t.size:1/0,this[pw]=this[YU],this[mh]=typeof t.autoClose=="boolean"?t.autoClose:!0,typeof this[ut]=="number"?this[gh]():this[ja]()}get fd(){return this[ut]}get path(){return this[Cs]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[ja](){_n.open(this[Cs],"r",(e,t)=>this[yh](e,t))}[yh](e,t){e?this[ph](e):(this[ut]=t,this.emit("open",t),this[gh]())}[HP](){return Buffer.allocUnsafe(Math.min(this[qU],this[pw]))}[gh](){if(!this[Fa]){this[Fa]=!0;let e=this[HP]();if(e.length===0)return process.nextTick(()=>this[OP](null,0,e));_n.read(this[ut],e,0,e.length,null,(t,i,r)=>this[OP](t,i,r))}}[OP](e,t,i){this[Fa]=!1,e?this[ph](e):this[BP](t,i)&&this[gh]()}[zr](){if(this[mh]&&typeof this[ut]=="number"){let e=this[ut];this[ut]=null,_n.close(e,t=>t?this.emit("error",t):this.emit("close"))}}[ph](e){this[Fa]=!0,this[zr](),this.emit("error",e)}[BP](e,t){let i=!1;return this[pw]-=e,e>0&&(i=super.write(ethis[yh](e,t))}[yh](e,t){this[mw]&&this[Ia]==="r+"&&e&&e.code==="ENOENT"?(this[Ia]="w",this[ja]()):e?this[ph](e):(this[ut]=t,this.emit("open",t),this[MP]())}end(e,t){return e&&this.write(e,t),this[Bp]=!0,!this[hh]&&!this[Ro].length&&typeof this[ut]=="number"&&this[dh](null,0),this}write(e,t){return typeof e=="string"&&(e=Buffer.from(e,t)),this[Bp]?(this.emit("error",new Error("write() after end()")),!1):this[ut]===null||this[hh]||this[Ro].length?(this[Ro].push(e),this[gw]=!0,!1):(this[hh]=!0,this[fw](e),!0)}[fw](e){_n.write(this[ut],e,0,e.length,this[zl],(t,i)=>this[dh](t,i))}[dh](e,t){e?this[ph](e):(this[zl]!==null&&(this[zl]+=t),this[Ro].length?this[MP]():(this[hh]=!1,this[Bp]&&!this[HU]?(this[HU]=!0,this[zr](),this.emit("finish")):this[gw]&&(this[gw]=!1,this.emit("drain"))))}[MP](){if(this[Ro].length===0)this[Bp]&&this[dh](null,0);else if(this[Ro].length===1)this[fw](this[Ro].pop());else{let e=this[Ro];this[Ro]=[],NP(this[ut],e,this[zl],(t,i)=>this[dh](t,i))}}[zr](){if(this[mh]&&typeof this[ut]=="number"){let e=this[ut];this[ut]=null,_n.close(e,t=>t?this.emit("error",t):this.emit("close"))}}},ZU=class extends YP{[ja](){let e;if(this[mw]&&this[Ia]==="r+")try{e=_n.openSync(this[Cs],this[Ia],this[yw])}catch(t){if(t.code==="ENOENT")return this[Ia]="w",this[ja]();throw t}else e=_n.openSync(this[Cs],this[Ia],this[yw]);this[yh](null,e)}[zr](){if(this[mh]&&typeof this[ut]=="number"){let e=this[ut];this[ut]=null,_n.closeSync(e),this.emit("close")}}[fw](e){let t=!0;try{this[dh](null,_n.writeSync(this[ut],e,0,e.length,this[zl])),t=!1}finally{if(t)try{this[zr]()}catch{}}}};Hp.ReadStream=qP;Hp.ReadStreamSync=WU;Hp.WriteStream=YP;Hp.WriteStreamSync=ZU});var Sw=y((E2e,QU)=>{"use strict";var Exe=Vv(),Pxe=lh(),_xe=require("events"),Rxe=yp(),Lxe=1024*1024,Fxe=Gv(),JU=zv(),Ixe=sP(),WP=Buffer.from([31,139]),mr=Symbol("state"),Vl=Symbol("writeEntry"),xs=Symbol("readEntry"),ZP=Symbol("nextEntry"),$U=Symbol("processEntry"),yr=Symbol("extendedHeader"),qp=Symbol("globalExtendedHeader"),Aa=Symbol("meta"),XU=Symbol("emitMeta"),Rt=Symbol("buffer"),Ss=Symbol("queue"),eu=Symbol("ended"),UU=Symbol("emittedEnd"),tu=Symbol("emit"),Rn=Symbol("unzip"),bw=Symbol("consumeChunk"),vw=Symbol("consumeChunkSub"),JP=Symbol("consumeBody"),GU=Symbol("consumeMeta"),KU=Symbol("consumeHeader"),ww=Symbol("consuming"),$P=Symbol("bufferConcat"),XP=Symbol("maybeEnd"),Yp=Symbol("writing"),Ma=Symbol("aborted"),Dw=Symbol("onDone"),iu=Symbol("sawValidEntry"),Cw=Symbol("sawNullBlock"),xw=Symbol("sawEOF"),jxe=n=>!0;QU.exports=Exe(class extends _xe{constructor(e){e=e||{};super(e);this.file=e.file||"",this[iu]=null,this.on(Dw,t=>{(this[mr]==="begin"||this[iu]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),e.ondone?this.on(Dw,e.ondone):this.on(Dw,t=>{this.emit("prefinish"),this.emit("finish"),this.emit("end"),this.emit("close")}),this.strict=!!e.strict,this.maxMetaEntrySize=e.maxMetaEntrySize||Lxe,this.filter=typeof e.filter=="function"?e.filter:jxe,this.writable=!0,this.readable=!1,this[Ss]=new Rxe,this[Rt]=null,this[xs]=null,this[Vl]=null,this[mr]="begin",this[Aa]="",this[yr]=null,this[qp]=null,this[eu]=!1,this[Rn]=null,this[Ma]=!1,this[Cw]=!1,this[xw]=!1,typeof e.onwarn=="function"&&this.on("warn",e.onwarn),typeof e.onentry=="function"&&this.on("entry",e.onentry)}[KU](e,t){this[iu]===null&&(this[iu]=!1);let i;try{i=new Pxe(e,t,this[yr],this[qp])}catch(r){return this.warn("TAR_ENTRY_INVALID",r)}if(i.nullBlock)this[Cw]?(this[xw]=!0,this[mr]==="begin"&&(this[mr]="header"),this[tu]("eof")):(this[Cw]=!0,this[tu]("nullBlock"));else if(this[Cw]=!1,!i.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:i});else if(!i.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:i});else{let r=i.type;if(/^(Symbolic)?Link$/.test(r)&&!i.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:i});else if(!/^(Symbolic)?Link$/.test(r)&&i.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:i});else{let o=this[Vl]=new Fxe(i,this[yr],this[qp]);if(!this[iu])if(o.remain){let s=()=>{o.invalid||(this[iu]=!0)};o.on("end",s)}else this[iu]=!0;o.meta?o.size>this.maxMetaEntrySize?(o.ignore=!0,this[tu]("ignoredEntry",o),this[mr]="ignore",o.resume()):o.size>0&&(this[Aa]="",o.on("data",s=>this[Aa]+=s),this[mr]="meta"):(this[yr]=null,o.ignore=o.ignore||!this.filter(o.path,o),o.ignore?(this[tu]("ignoredEntry",o),this[mr]=o.remain?"ignore":"header",o.resume()):(o.remain?this[mr]="body":(this[mr]="header",o.end()),this[xs]?this[Ss].push(o):(this[Ss].push(o),this[ZP]())))}}}[$U](e){let t=!0;return e?Array.isArray(e)?this.emit.apply(this,e):(this[xs]=e,this.emit("entry",e),e.emittedEnd||(e.on("end",i=>this[ZP]()),t=!1)):(this[xs]=null,t=!1),t}[ZP](){do;while(this[$U](this[Ss].shift()));if(!this[Ss].length){let e=this[xs];!e||e.flowing||e.size===e.remain?this[Yp]||this.emit("drain"):e.once("drain",i=>this.emit("drain"))}}[JP](e,t){let i=this[Vl],r=i.blockRemain,o=r>=e.length&&t===0?e:e.slice(t,t+r);return i.write(o),i.blockRemain||(this[mr]="header",this[Vl]=null,i.end()),o.length}[GU](e,t){let i=this[Vl],r=this[JP](e,t);return this[Vl]||this[XU](i),r}[tu](e,t,i){!this[Ss].length&&!this[xs]?this.emit(e,t,i):this[Ss].push([e,t,i])}[XU](e){switch(this[tu]("meta",this[Aa]),e.type){case"ExtendedHeader":case"OldExtendedHeader":this[yr]=JU.parse(this[Aa],this[yr],!1);break;case"GlobalExtendedHeader":this[qp]=JU.parse(this[Aa],this[qp],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[yr]=this[yr]||Object.create(null),this[yr].path=this[Aa].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[yr]=this[yr]||Object.create(null),this[yr].linkpath=this[Aa].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+e.type)}}abort(e){this[Ma]=!0,this.emit("abort",e),this.warn("TAR_ABORT",e,{recoverable:!1})}write(e){if(this[Ma])return;if(this[Rn]===null&&e){if(this[Rt]&&(e=Buffer.concat([this[Rt],e]),this[Rt]=null),e.lengththis[bw](o)),this[Rn].on("error",o=>this.abort(o)),this[Rn].on("end",o=>{this[eu]=!0,this[bw]()}),this[Yp]=!0;let r=this[Rn][i?"end":"write"](e);return this[Yp]=!1,r}}this[Yp]=!0,this[Rn]?this[Rn].write(e):this[bw](e),this[Yp]=!1;let t=this[Ss].length?!1:this[xs]?this[xs].flowing:!0;return!t&&!this[Ss].length&&this[xs].once("drain",i=>this.emit("drain")),t}[$P](e){e&&!this[Ma]&&(this[Rt]=this[Rt]?Buffer.concat([this[Rt],e]):e)}[XP](){if(this[eu]&&!this[UU]&&!this[Ma]&&!this[ww]){this[UU]=!0;let e=this[Vl];if(e&&e.blockRemain){let t=this[Rt]?this[Rt].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${e.blockRemain} more bytes, only ${t} available)`,{entry:e}),this[Rt]&&e.write(this[Rt]),e.end()}this[tu](Dw)}}[bw](e){if(this[ww])this[$P](e);else if(!e&&!this[Rt])this[XP]();else{if(this[ww]=!0,this[Rt]){this[$P](e);let t=this[Rt];this[Rt]=null,this[vw](t)}else this[vw](e);for(;this[Rt]&&this[Rt].length>=512&&!this[Ma]&&!this[xw];){let t=this[Rt];this[Rt]=null,this[vw](t)}this[ww]=!1}(!this[Rt]||this[eu])&&this[XP]()}[vw](e){let t=0,i=e.length;for(;t+512<=i&&!this[Ma]&&!this[xw];)switch(this[mr]){case"begin":case"header":this[KU](e,t),t+=512;break;case"ignore":case"body":t+=this[JP](e,t);break;case"meta":t+=this[GU](e,t);break;default:throw new Error("invalid state: "+this[mr])}t{"use strict";var Axe=nh(),VU=Sw(),vh=require("fs"),Mxe=bh(),zU=require("path"),UP=uh();t8.exports=(n,e,t)=>{typeof n=="function"?(t=n,e=null,n={}):Array.isArray(n)&&(e=n,n={}),typeof e=="function"&&(t=e,e=null),e?e=Array.from(e):e=[];let i=Axe(n);if(i.sync&&typeof t=="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof t=="function")throw new TypeError("callback only supported with file option");return e.length&&Nxe(i,e),i.noResume||Oxe(i),i.file&&i.sync?Bxe(i):i.file?Hxe(i,t):e8(i)};var Oxe=n=>{let e=n.onentry;n.onentry=e?t=>{e(t),t.resume()}:t=>t.resume()},Nxe=(n,e)=>{let t=new Map(e.map(o=>[UP(o),!0])),i=n.filter,r=(o,s)=>{let a=s||zU.parse(o).root||".",l=o===a?!1:t.has(o)?t.get(o):r(zU.dirname(o),a);return t.set(o,l),l};n.filter=i?(o,s)=>i(o,s)&&r(UP(o)):o=>r(UP(o))},Bxe=n=>{let e=e8(n),t=n.file,i=!0,r;try{let o=vh.statSync(t),s=n.maxReadSize||16*1024*1024;if(o.size{let t=new VU(n),i=n.maxReadSize||16*1024*1024,r=n.file,o=new Promise((s,a)=>{t.on("error",a),t.on("end",s),vh.stat(r,(l,u)=>{if(l)a(l);else{let c=new Mxe.ReadStream(r,{readSize:i,size:u.size});c.on("error",a),c.pipe(t)}})});return e?o.then(e,e):o},e8=n=>new VU(n)});var a8=y((_2e,s8)=>{"use strict";var qxe=nh(),kw=dw(),i8=bh(),n8=Tw(),r8=require("path");s8.exports=(n,e,t)=>{if(typeof e=="function"&&(t=e),Array.isArray(n)&&(e=n,n={}),!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");e=Array.from(e);let i=qxe(n);if(i.sync&&typeof t=="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof t=="function")throw new TypeError("callback only supported with file option");return i.file&&i.sync?Yxe(i,e):i.file?Wxe(i,e,t):i.sync?Zxe(i,e):Jxe(i,e)};var Yxe=(n,e)=>{let t=new kw.Sync(n),i=new i8.WriteStreamSync(n.file,{mode:n.mode||438});t.pipe(i),o8(t,e)},Wxe=(n,e,t)=>{let i=new kw(n),r=new i8.WriteStream(n.file,{mode:n.mode||438});i.pipe(r);let o=new Promise((s,a)=>{r.on("error",a),r.on("close",s),i.on("error",a)});return GP(i,e),t?o.then(t,t):o},o8=(n,e)=>{e.forEach(t=>{t.charAt(0)==="@"?n8({file:r8.resolve(n.cwd,t.substr(1)),sync:!0,noResume:!0,onentry:i=>n.add(i)}):n.add(t)}),n.end()},GP=(n,e)=>{for(;e.length;){let t=e.shift();if(t.charAt(0)==="@")return n8({file:r8.resolve(n.cwd,t.substr(1)),noResume:!0,onentry:i=>n.add(i)}).then(i=>GP(n,e));n.add(t)}n.end()},Zxe=(n,e)=>{let t=new kw.Sync(n);return o8(t,e),t},Jxe=(n,e)=>{let t=new kw(n);return GP(t,e),t}});var KP=y((R2e,p8)=>{"use strict";var $xe=nh(),l8=dw(),Un=require("fs"),u8=bh(),c8=Tw(),h8=require("path"),d8=lh();p8.exports=(n,e,t)=>{let i=$xe(n);if(!i.file)throw new TypeError("file is required");if(i.gzip)throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");return e=Array.from(e),i.sync?Xxe(i,e):Gxe(i,e,t)};var Xxe=(n,e)=>{let t=new l8.Sync(n),i=!0,r,o;try{try{r=Un.openSync(n.file,"r+")}catch(l){if(l.code==="ENOENT")r=Un.openSync(n.file,"w+");else throw l}let s=Un.fstatSync(r),a=Buffer.alloc(512);e:for(o=0;os.size)break;o+=u,n.mtimeCache&&n.mtimeCache.set(l.path,l.mtime)}i=!1,Uxe(n,t,o,r,e)}finally{if(i)try{Un.closeSync(r)}catch{}}},Uxe=(n,e,t,i,r)=>{let o=new u8.WriteStreamSync(n.file,{fd:i,start:t});e.pipe(o),Kxe(e,r)},Gxe=(n,e,t)=>{e=Array.from(e);let i=new l8(n),r=(s,a,l)=>{let u=(p,f)=>{p?Un.close(s,m=>l(p)):l(null,f)},c=0;if(a===0)return u(null,0);let h=0,d=Buffer.alloc(512),g=(p,f)=>{if(p)return u(p);if(h+=f,h<512&&f)return Un.read(s,d,h,d.length-h,c+h,g);if(c===0&&d[0]===31&&d[1]===139)return u(new Error("cannot append to compressed archives"));if(h<512)return u(null,c);let m=new d8(d);if(!m.cksumValid)return u(null,c);let b=512*Math.ceil(m.size/512);if(c+b+512>a||(c+=b+512,c>=a))return u(null,c);n.mtimeCache&&n.mtimeCache.set(m.path,m.mtime),h=0,Un.read(s,d,0,512,c,g)};Un.read(s,d,0,512,c,g)},o=new Promise((s,a)=>{i.on("error",a);let l="r+",u=(c,h)=>{if(c&&c.code==="ENOENT"&&l==="r+")return l="w+",Un.open(n.file,l,u);if(c)return a(c);Un.fstat(h,(d,g)=>{if(d)return Un.close(h,()=>a(d));r(h,g.size,(p,f)=>{if(p)return a(p);let m=new u8.WriteStream(n.file,{fd:h,start:f});i.pipe(m),m.on("error",a),m.on("close",s),g8(i,e)})})};Un.open(n.file,l,u)});return t?o.then(t,t):o},Kxe=(n,e)=>{e.forEach(t=>{t.charAt(0)==="@"?c8({file:h8.resolve(n.cwd,t.substr(1)),sync:!0,noResume:!0,onentry:i=>n.add(i)}):n.add(t)}),n.end()},g8=(n,e)=>{for(;e.length;){let t=e.shift();if(t.charAt(0)==="@")return c8({file:h8.resolve(n.cwd,t.substr(1)),noResume:!0,onentry:i=>n.add(i)}).then(i=>g8(n,e));n.add(t)}n.end()}});var m8=y((L2e,f8)=>{"use strict";var Qxe=nh(),zxe=KP();f8.exports=(n,e,t)=>{let i=Qxe(n);if(!i.file)throw new TypeError("file is required");if(i.gzip)throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");return e=Array.from(e),Vxe(i),zxe(i,e,t)};var Vxe=n=>{let e=n.filter;n.mtimeCache||(n.mtimeCache=new Map),n.filter=e?(t,i)=>e(t,i)&&!(n.mtimeCache.get(t)>i.mtime):(t,i)=>!(n.mtimeCache.get(t)>i.mtime)}});var v8=y((F2e,b8)=>{var{promisify:y8}=require("util"),Oa=require("fs"),eSe=n=>{if(!n)n={mode:511,fs:Oa};else if(typeof n=="object")n=ve({mode:511,fs:Oa},n);else if(typeof n=="number")n={mode:n,fs:Oa};else if(typeof n=="string")n={mode:parseInt(n,8),fs:Oa};else throw new TypeError("invalid options argument");return n.mkdir=n.mkdir||n.fs.mkdir||Oa.mkdir,n.mkdirAsync=y8(n.mkdir),n.stat=n.stat||n.fs.stat||Oa.stat,n.statAsync=y8(n.stat),n.statSync=n.statSync||n.fs.statSync||Oa.statSync,n.mkdirSync=n.mkdirSync||n.fs.mkdirSync||Oa.mkdirSync,n};b8.exports=eSe});var D8=y((I2e,w8)=>{var tSe=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:iSe,parse:nSe}=require("path"),rSe=n=>{if(/\0/.test(n))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:n,code:"ERR_INVALID_ARG_VALUE"});if(n=iSe(n),tSe==="win32"){let e=/[*|"<>?:]/,{root:t}=nSe(n);if(e.test(n.substr(t.length)))throw Object.assign(new Error("Illegal characters in path."),{path:n,code:"EINVAL"})}return n};w8.exports=rSe});var k8=y((j2e,T8)=>{var{dirname:C8}=require("path"),x8=(n,e,t=void 0)=>t===e?Promise.resolve():n.statAsync(e).then(i=>i.isDirectory()?t:void 0,i=>i.code==="ENOENT"?x8(n,C8(e),e):void 0),S8=(n,e,t=void 0)=>{if(t!==e)try{return n.statSync(e).isDirectory()?t:void 0}catch(i){return i.code==="ENOENT"?S8(n,C8(e),e):void 0}};T8.exports={findMade:x8,findMadeSync:S8}});var VP=y((A2e,P8)=>{var{dirname:E8}=require("path"),QP=(n,e,t)=>{e.recursive=!1;let i=E8(n);return i===n?e.mkdirAsync(n,e).catch(r=>{if(r.code!=="EISDIR")throw r}):e.mkdirAsync(n,e).then(()=>t||n,r=>{if(r.code==="ENOENT")return QP(i,e).then(o=>QP(n,e,o));if(r.code!=="EEXIST"&&r.code!=="EROFS")throw r;return e.statAsync(n).then(o=>{if(o.isDirectory())return t;throw r},()=>{throw r})})},zP=(n,e,t)=>{let i=E8(n);if(e.recursive=!1,i===n)try{return e.mkdirSync(n,e)}catch(r){if(r.code!=="EISDIR")throw r;return}try{return e.mkdirSync(n,e),t||n}catch(r){if(r.code==="ENOENT")return zP(n,e,zP(i,e,t));if(r.code!=="EEXIST"&&r.code!=="EROFS")throw r;try{if(!e.statSync(n).isDirectory())throw r}catch{throw r}}};P8.exports={mkdirpManual:QP,mkdirpManualSync:zP}});var L8=y((M2e,R8)=>{var{dirname:_8}=require("path"),{findMade:oSe,findMadeSync:sSe}=k8(),{mkdirpManual:aSe,mkdirpManualSync:lSe}=VP(),uSe=(n,e)=>(e.recursive=!0,_8(n)===n?e.mkdirAsync(n,e):oSe(e,n).then(i=>e.mkdirAsync(n,e).then(()=>i).catch(r=>{if(r.code==="ENOENT")return aSe(n,e);throw r}))),cSe=(n,e)=>{if(e.recursive=!0,_8(n)===n)return e.mkdirSync(n,e);let i=sSe(e,n);try{return e.mkdirSync(n,e),i}catch(r){if(r.code==="ENOENT")return lSe(n,e);throw r}};R8.exports={mkdirpNative:uSe,mkdirpNativeSync:cSe}});var A8=y((O2e,j8)=>{var F8=require("fs"),hSe=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,e_=hSe.replace(/^v/,"").split("."),I8=+e_[0]>10||+e_[0]==10&&+e_[1]>=12,dSe=I8?n=>n.mkdir===F8.mkdir:()=>!1,gSe=I8?n=>n.mkdirSync===F8.mkdirSync:()=>!1;j8.exports={useNative:dSe,useNativeSync:gSe}});var q8=y((N2e,H8)=>{var wh=v8(),Dh=D8(),{mkdirpNative:M8,mkdirpNativeSync:O8}=L8(),{mkdirpManual:N8,mkdirpManualSync:B8}=VP(),{useNative:pSe,useNativeSync:fSe}=A8(),Ch=(n,e)=>(n=Dh(n),e=wh(e),pSe(e)?M8(n,e):N8(n,e)),mSe=(n,e)=>(n=Dh(n),e=wh(e),fSe(e)?O8(n,e):B8(n,e));Ch.sync=mSe;Ch.native=(n,e)=>M8(Dh(n),wh(e));Ch.manual=(n,e)=>N8(Dh(n),wh(e));Ch.nativeSync=(n,e)=>O8(Dh(n),wh(e));Ch.manualSync=(n,e)=>B8(Dh(n),wh(e));H8.exports=Ch});var U8=y((B2e,X8)=>{"use strict";var br=require("fs"),nu=require("path"),ySe=br.lchown?"lchown":"chown",bSe=br.lchownSync?"lchownSync":"chownSync",W8=br.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),Y8=(n,e,t)=>{try{return br[bSe](n,e,t)}catch(i){if(i.code!=="ENOENT")throw i}},vSe=(n,e,t)=>{try{return br.chownSync(n,e,t)}catch(i){if(i.code!=="ENOENT")throw i}},wSe=W8?(n,e,t,i)=>r=>{!r||r.code!=="EISDIR"?i(r):br.chown(n,e,t,i)}:(n,e,t,i)=>i,t_=W8?(n,e,t)=>{try{return Y8(n,e,t)}catch(i){if(i.code!=="EISDIR")throw i;vSe(n,e,t)}}:(n,e,t)=>Y8(n,e,t),DSe=process.version,Z8=(n,e,t)=>br.readdir(n,e,t),CSe=(n,e)=>br.readdirSync(n,e);/^v4\./.test(DSe)&&(Z8=(n,e,t)=>br.readdir(n,t));var Ew=(n,e,t,i)=>{br[ySe](n,e,t,wSe(n,e,t,r=>{i(r&&r.code!=="ENOENT"?r:null)}))},J8=(n,e,t,i,r)=>{if(typeof e=="string")return br.lstat(nu.resolve(n,e),(o,s)=>{if(o)return r(o.code!=="ENOENT"?o:null);s.name=e,J8(n,s,t,i,r)});if(e.isDirectory())i_(nu.resolve(n,e.name),t,i,o=>{if(o)return r(o);let s=nu.resolve(n,e.name);Ew(s,t,i,r)});else{let o=nu.resolve(n,e.name);Ew(o,t,i,r)}},i_=(n,e,t,i)=>{Z8(n,{withFileTypes:!0},(r,o)=>{if(r){if(r.code==="ENOENT")return i();if(r.code!=="ENOTDIR"&&r.code!=="ENOTSUP")return i(r)}if(r||!o.length)return Ew(n,e,t,i);let s=o.length,a=null,l=u=>{if(!a){if(u)return i(a=u);if(--s===0)return Ew(n,e,t,i)}};o.forEach(u=>J8(n,u,e,t,l))})},xSe=(n,e,t,i)=>{if(typeof e=="string")try{let r=br.lstatSync(nu.resolve(n,e));r.name=e,e=r}catch(r){if(r.code==="ENOENT")return;throw r}e.isDirectory()&&$8(nu.resolve(n,e.name),t,i),t_(nu.resolve(n,e.name),t,i)},$8=(n,e,t)=>{let i;try{i=CSe(n,{withFileTypes:!0})}catch(r){if(r.code==="ENOENT")return;if(r.code==="ENOTDIR"||r.code==="ENOTSUP")return t_(n,e,t);throw r}return i&&i.length&&i.forEach(r=>xSe(n,r,e,t)),t_(n,e,t)};X8.exports=i_;i_.sync=$8});var z8=y((H2e,o_)=>{"use strict";var G8=q8(),vr=require("fs"),Pw=require("path"),K8=U8(),Vr=sh(),n_=class extends Error{constructor(e,t){super("Cannot extract through symbolic link");this.path=t,this.symlink=e}get name(){return"SylinkError"}},r_=class extends Error{constructor(e,t){super(t+": Cannot cd into '"+e+"'");this.path=e,this.code=t}get name(){return"CwdError"}},_w=(n,e)=>n.get(Vr(e)),Wp=(n,e,t)=>n.set(Vr(e),t),SSe=(n,e)=>{vr.stat(n,(t,i)=>{(t||!i.isDirectory())&&(t=new r_(n,t&&t.code||"ENOTDIR")),e(t)})};o_.exports=(n,e,t)=>{n=Vr(n);let i=e.umask,r=e.mode|448,o=(r&i)!==0,s=e.uid,a=e.gid,l=typeof s=="number"&&typeof a=="number"&&(s!==e.processUid||a!==e.processGid),u=e.preserve,c=e.unlink,h=e.cache,d=Vr(e.cwd),g=(m,b)=>{m?t(m):(Wp(h,n,!0),b&&l?K8(b,s,a,w=>g(w)):o?vr.chmod(n,r,t):t())};if(h&&_w(h,n)===!0)return g();if(n===d)return SSe(n,g);if(u)return G8(n,{mode:r}).then(m=>g(null,m),g);let f=Vr(Pw.relative(d,n)).split("/");Rw(d,f,r,h,c,d,null,g)};var Rw=(n,e,t,i,r,o,s,a)=>{if(!e.length)return a(null,s);let l=e.shift(),u=Vr(Pw.resolve(n+"/"+l));if(_w(i,u))return Rw(u,e,t,i,r,o,s,a);vr.mkdir(u,t,Q8(u,e,t,i,r,o,s,a))},Q8=(n,e,t,i,r,o,s,a)=>l=>{l?vr.lstat(n,(u,c)=>{if(u)u.path=u.path&&Vr(u.path),a(u);else if(c.isDirectory())Rw(n,e,t,i,r,o,s,a);else if(r)vr.unlink(n,h=>{if(h)return a(h);vr.mkdir(n,t,Q8(n,e,t,i,r,o,s,a))});else{if(c.isSymbolicLink())return a(new n_(n,n+"/"+e.join("/")));a(l)}}):(s=s||n,Rw(n,e,t,i,r,o,s,a))},TSe=n=>{let e=!1,t="ENOTDIR";try{e=vr.statSync(n).isDirectory()}catch(i){t=i.code}finally{if(!e)throw new r_(n,t)}};o_.exports.sync=(n,e)=>{n=Vr(n);let t=e.umask,i=e.mode|448,r=(i&t)!==0,o=e.uid,s=e.gid,a=typeof o=="number"&&typeof s=="number"&&(o!==e.processUid||s!==e.processGid),l=e.preserve,u=e.unlink,c=e.cache,h=Vr(e.cwd),d=m=>{Wp(c,n,!0),m&&a&&K8.sync(m,o,s),r&&vr.chmodSync(n,i)};if(c&&_w(c,n)===!0)return d();if(n===h)return TSe(h),d();if(l)return d(G8.sync(n,i));let p=Vr(Pw.relative(h,n)).split("/"),f=null;for(let m=p.shift(),b=h;m&&(b+="/"+m);m=p.shift())if(b=Vr(Pw.resolve(b)),!_w(c,b))try{vr.mkdirSync(b,i),f=f||b,Wp(c,b,!0)}catch{let D=vr.lstatSync(b);if(D.isDirectory()){Wp(c,b,!0);continue}else if(u){vr.unlinkSync(b),vr.mkdirSync(b,i),f=f||b,Wp(c,b,!0);continue}else if(D.isSymbolicLink())return new n_(b,b+"/"+p.join("/"))}return d(f)}});var a_=y((q2e,V8)=>{var s_=Object.create(null),{hasOwnProperty:kSe}=Object.prototype;V8.exports=n=>(kSe.call(s_,n)||(s_[n]=n.normalize("NFKD")),s_[n])});var nG=y((Y2e,iG)=>{var eG=require("assert"),ESe=a_(),PSe=uh(),{join:tG}=require("path"),_Se=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,RSe=_Se==="win32";iG.exports=()=>{let n=new Map,e=new Map,t=u=>u.split("/").slice(0,-1).reduce((h,d)=>(h.length&&(d=tG(h[h.length-1],d)),h.push(d||"/"),h),[]),i=new Set,r=u=>{let c=e.get(u);if(!c)throw new Error("function does not have any path reservations");return{paths:c.paths.map(h=>n.get(h)),dirs:[...c.dirs].map(h=>n.get(h))}},o=u=>{let{paths:c,dirs:h}=r(u);return c.every(d=>d[0]===u)&&h.every(d=>d[0]instanceof Set&&d[0].has(u))},s=u=>i.has(u)||!o(u)?!1:(i.add(u),u(()=>a(u)),!0),a=u=>{if(!i.has(u))return!1;let{paths:c,dirs:h}=e.get(u),d=new Set;return c.forEach(g=>{let p=n.get(g);eG.equal(p[0],u),p.length===1?n.delete(g):(p.shift(),typeof p[0]=="function"?d.add(p[0]):p[0].forEach(f=>d.add(f)))}),h.forEach(g=>{let p=n.get(g);eG(p[0]instanceof Set),p[0].size===1&&p.length===1?n.delete(g):p[0].size===1?(p.shift(),d.add(p[0])):p[0].delete(u)}),i.delete(u),d.forEach(g=>s(g)),!0};return{check:o,reserve:(u,c)=>{u=RSe?["win32 parallelization disabled"]:u.map(d=>ESe(PSe(tG(d))).toLowerCase());let h=new Set(u.map(d=>t(d)).reduce((d,g)=>d.concat(g)));return e.set(c,{dirs:h,paths:u}),u.forEach(d=>{let g=n.get(d);g?g.push(c):n.set(d,[c])}),h.forEach(d=>{let g=n.get(d);g?g[g.length-1]instanceof Set?g[g.length-1].add(c):g.push(new Set([c])):n.set(d,[new Set([c])])}),s(c)}}}});var sG=y((W2e,oG)=>{var LSe=process.env.__FAKE_PLATFORM__||process.platform,FSe=LSe==="win32",ISe=global.__FAKE_TESTING_FS__||require("fs"),{O_CREAT:jSe,O_TRUNC:ASe,O_WRONLY:MSe,UV_FS_O_FILEMAP:rG=0}=ISe.constants,OSe=FSe&&!!rG,NSe=512*1024,BSe=rG|ASe|jSe|MSe;oG.exports=OSe?n=>n"w"});var f_=y((Z2e,DG)=>{"use strict";var HSe=require("assert"),qSe=Sw(),ze=require("fs"),YSe=bh(),Ts=require("path"),yG=z8(),aG=fP(),WSe=nG(),ZSe=mP(),Gn=sh(),JSe=uh(),$Se=a_(),lG=Symbol("onEntry"),c_=Symbol("checkFs"),uG=Symbol("checkFs2"),Iw=Symbol("pruneCache"),h_=Symbol("isReusable"),wr=Symbol("makeFs"),d_=Symbol("file"),g_=Symbol("directory"),jw=Symbol("link"),cG=Symbol("symlink"),hG=Symbol("hardlink"),dG=Symbol("unsupported"),gG=Symbol("checkPath"),Na=Symbol("mkdir"),Zi=Symbol("onError"),Lw=Symbol("pending"),pG=Symbol("pend"),xh=Symbol("unpend"),l_=Symbol("ended"),u_=Symbol("maybeClose"),p_=Symbol("skip"),Zp=Symbol("doChown"),Jp=Symbol("uid"),$p=Symbol("gid"),Xp=Symbol("checkedCwd"),bG=require("crypto"),vG=sG(),XSe=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,Up=XSe==="win32",USe=(n,e)=>{if(!Up)return ze.unlink(n,e);let t=n+".DELETE."+bG.randomBytes(16).toString("hex");ze.rename(n,t,i=>{if(i)return e(i);ze.unlink(t,e)})},GSe=n=>{if(!Up)return ze.unlinkSync(n);let e=n+".DELETE."+bG.randomBytes(16).toString("hex");ze.renameSync(n,e),ze.unlinkSync(e)},fG=(n,e,t)=>n===n>>>0?n:e===e>>>0?e:t,mG=n=>$Se(JSe(Gn(n))).toLowerCase(),KSe=(n,e)=>{e=mG(e);for(let t of n.keys()){let i=mG(t);(i===e||i.indexOf(e+"/")===0)&&n.delete(t)}},QSe=n=>{for(let e of n.keys())n.delete(e)},Aw=class extends qSe{constructor(e){e||(e={}),e.ondone=t=>{this[l_]=!0,this[u_]()};super(e);if(this[Xp]=!1,this.reservations=WSe(),this.transform=typeof e.transform=="function"?e.transform:null,this.writable=!0,this.readable=!1,this[Lw]=0,this[l_]=!1,this.dirCache=e.dirCache||new Map,typeof e.uid=="number"||typeof e.gid=="number"){if(typeof e.uid!="number"||typeof e.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(e.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=e.uid,this.gid=e.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;e.preserveOwner===void 0&&typeof e.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!e.preserveOwner,this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():null,this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():null,this.forceChown=e.forceChown===!0,this.win32=!!e.win32||Up,this.newer=!!e.newer,this.keep=!!e.keep,this.noMtime=!!e.noMtime,this.preservePaths=!!e.preservePaths,this.unlink=!!e.unlink,this.cwd=Gn(Ts.resolve(e.cwd||process.cwd())),this.strip=+e.strip||0,this.processUmask=e.noChmod?0:process.umask(),this.umask=typeof e.umask=="number"?e.umask:this.processUmask,this.dmode=e.dmode||511&~this.umask,this.fmode=e.fmode||438&~this.umask,this.on("entry",t=>this[lG](t))}warn(e,t,i={}){return(e==="TAR_BAD_ARCHIVE"||e==="TAR_ABORT")&&(i.recoverable=!1),super.warn(e,t,i)}[u_](){this[l_]&&this[Lw]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"),this.emit("close"))}[gG](e){if(this.strip){let t=Gn(e.path).split("/");if(t.length=this.strip)e.linkpath=i.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let t=Gn(e.path),i=t.split("/");if(i.includes("..")||Up&&/^[a-z]:\.\.$/i.test(i[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:e,path:t}),!1;let[r,o]=ZSe(t);r&&(e.path=o,this.warn("TAR_ENTRY_INFO",`stripping ${r} from absolute path`,{entry:e,path:t}))}if(Ts.isAbsolute(e.path)?e.absolute=Gn(Ts.resolve(e.path)):e.absolute=Gn(Ts.resolve(this.cwd,e.path)),!this.preservePaths&&e.absolute.indexOf(this.cwd+"/")!==0&&e.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:e,path:Gn(e.path),resolvedPath:e.absolute,cwd:this.cwd}),!1;if(e.absolute===this.cwd&&e.type!=="Directory"&&e.type!=="GNUDumpDir")return!1;if(this.win32){let{root:t}=Ts.win32.parse(e.absolute);e.absolute=t+aG.encode(e.absolute.substr(t.length));let{root:i}=Ts.win32.parse(e.path);e.path=i+aG.encode(e.path.substr(i.length))}return!0}[lG](e){if(!this[gG](e))return e.resume();switch(HSe.equal(typeof e.absolute,"string"),e.type){case"Directory":case"GNUDumpDir":e.mode&&(e.mode=e.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[c_](e);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[dG](e)}}[Zi](e,t){e.name==="CwdError"?this.emit("error",e):(this.warn("TAR_ENTRY_ERROR",e,{entry:t}),this[xh](),t.resume())}[Na](e,t,i){yG(Gn(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:t,noChmod:this.noChmod},i)}[Zp](e){return this.forceChown||this.preserveOwner&&(typeof e.uid=="number"&&e.uid!==this.processUid||typeof e.gid=="number"&&e.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[Jp](e){return fG(this.uid,e.uid,this.processUid)}[$p](e){return fG(this.gid,e.gid,this.processGid)}[d_](e,t){let i=e.mode&4095||this.fmode,r=new YSe.WriteStream(e.absolute,{flags:vG(e.size),mode:i,autoClose:!1});r.on("error",l=>{r.fd&&ze.close(r.fd,()=>{}),r.write=()=>!0,this[Zi](l,e),t()});let o=1,s=l=>{if(l){r.fd&&ze.close(r.fd,()=>{}),this[Zi](l,e),t();return}--o===0&&ze.close(r.fd,u=>{u?this[Zi](u,e):this[xh](),t()})};r.on("finish",l=>{let u=e.absolute,c=r.fd;if(e.mtime&&!this.noMtime){o++;let h=e.atime||new Date,d=e.mtime;ze.futimes(c,h,d,g=>g?ze.utimes(u,h,d,p=>s(p&&g)):s())}if(this[Zp](e)){o++;let h=this[Jp](e),d=this[$p](e);ze.fchown(c,h,d,g=>g?ze.chown(u,h,d,p=>s(p&&g)):s())}s()});let a=this.transform&&this.transform(e)||e;a!==e&&(a.on("error",l=>{this[Zi](l,e),t()}),e.pipe(a)),a.pipe(r)}[g_](e,t){let i=e.mode&4095||this.dmode;this[Na](e.absolute,i,r=>{if(r){this[Zi](r,e),t();return}let o=1,s=a=>{--o===0&&(t(),this[xh](),e.resume())};e.mtime&&!this.noMtime&&(o++,ze.utimes(e.absolute,e.atime||new Date,e.mtime,s)),this[Zp](e)&&(o++,ze.chown(e.absolute,this[Jp](e),this[$p](e),s)),s()})}[dG](e){e.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e}),e.resume()}[cG](e,t){this[jw](e,e.linkpath,"symlink",t)}[hG](e,t){let i=Gn(Ts.resolve(this.cwd,e.linkpath));this[jw](e,i,"link",t)}[pG](){this[Lw]++}[xh](){this[Lw]--,this[u_]()}[p_](e){this[xh](),e.resume()}[h_](e,t){return e.type==="File"&&!this.unlink&&t.isFile()&&t.nlink<=1&&!Up}[c_](e){this[pG]();let t=[e.path];e.linkpath&&t.push(e.linkpath),this.reservations.reserve(t,i=>this[uG](e,i))}[Iw](e){e.type==="SymbolicLink"?QSe(this.dirCache):e.type!=="Directory"&&KSe(this.dirCache,e.absolute)}[uG](e,t){this[Iw](e);let i=a=>{this[Iw](e),t(a)},r=()=>{this[Na](this.cwd,this.dmode,a=>{if(a){this[Zi](a,e),i();return}this[Xp]=!0,o()})},o=()=>{if(e.absolute!==this.cwd){let a=Gn(Ts.dirname(e.absolute));if(a!==this.cwd)return this[Na](a,this.dmode,l=>{if(l){this[Zi](l,e),i();return}s()})}s()},s=()=>{ze.lstat(e.absolute,(a,l)=>{if(l&&(this.keep||this.newer&&l.mtime>e.mtime)){this[p_](e),i();return}if(a||this[h_](e,l))return this[wr](null,e,i);if(l.isDirectory()){if(e.type==="Directory"){let u=!this.noChmod&&e.mode&&(l.mode&4095)!==e.mode,c=h=>this[wr](h,e,i);return u?ze.chmod(e.absolute,e.mode,c):c()}if(e.absolute!==this.cwd)return ze.rmdir(e.absolute,u=>this[wr](u,e,i))}if(e.absolute===this.cwd)return this[wr](null,e,i);USe(e.absolute,u=>this[wr](u,e,i))})};this[Xp]?o():r()}[wr](e,t,i){if(e){this[Zi](e,t),i();return}switch(t.type){case"File":case"OldFile":case"ContiguousFile":return this[d_](t,i);case"Link":return this[hG](t,i);case"SymbolicLink":return this[cG](t,i);case"Directory":case"GNUDumpDir":return this[g_](t,i)}}[jw](e,t,i,r){ze[i](t,e.absolute,o=>{o?this[Zi](o,e):(this[xh](),e.resume()),r()})}},Fw=n=>{try{return[null,n()]}catch(e){return[e,null]}},wG=class extends Aw{[wr](e,t){return super[wr](e,t,()=>{})}[c_](e){if(this[Iw](e),!this[Xp]){let o=this[Na](this.cwd,this.dmode);if(o)return this[Zi](o,e);this[Xp]=!0}if(e.absolute!==this.cwd){let o=Gn(Ts.dirname(e.absolute));if(o!==this.cwd){let s=this[Na](o,this.dmode);if(s)return this[Zi](s,e)}}let[t,i]=Fw(()=>ze.lstatSync(e.absolute));if(i&&(this.keep||this.newer&&i.mtime>e.mtime))return this[p_](e);if(t||this[h_](e,i))return this[wr](null,e);if(i.isDirectory()){if(e.type==="Directory"){let s=!this.noChmod&&e.mode&&(i.mode&4095)!==e.mode,[a]=s?Fw(()=>{ze.chmodSync(e.absolute,e.mode)}):[];return this[wr](a,e)}let[o]=Fw(()=>ze.rmdirSync(e.absolute));this[wr](o,e)}let[r]=e.absolute===this.cwd?[]:Fw(()=>GSe(e.absolute));this[wr](r,e)}[d_](e,t){let i=e.mode&4095||this.fmode,r=a=>{let l;try{ze.closeSync(o)}catch(u){l=u}(a||l)&&this[Zi](a||l,e),t()},o;try{o=ze.openSync(e.absolute,vG(e.size),i)}catch(a){return r(a)}let s=this.transform&&this.transform(e)||e;s!==e&&(s.on("error",a=>this[Zi](a,e)),e.pipe(s)),s.on("data",a=>{try{ze.writeSync(o,a,0,a.length)}catch(l){r(l)}}),s.on("end",a=>{let l=null;if(e.mtime&&!this.noMtime){let u=e.atime||new Date,c=e.mtime;try{ze.futimesSync(o,u,c)}catch(h){try{ze.utimesSync(e.absolute,u,c)}catch{l=h}}}if(this[Zp](e)){let u=this[Jp](e),c=this[$p](e);try{ze.fchownSync(o,u,c)}catch(h){try{ze.chownSync(e.absolute,u,c)}catch{l=l||h}}}r(l)})}[g_](e,t){let i=e.mode&4095||this.dmode,r=this[Na](e.absolute,i);if(r){this[Zi](r,e),t();return}if(e.mtime&&!this.noMtime)try{ze.utimesSync(e.absolute,e.atime||new Date,e.mtime)}catch{}if(this[Zp](e))try{ze.chownSync(e.absolute,this[Jp](e),this[$p](e))}catch{}t(),e.resume()}[Na](e,t){try{return yG.sync(Gn(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:t})}catch(i){return i}}[jw](e,t,i,r){try{ze[i+"Sync"](t,e.absolute),r(),e.resume()}catch(o){return this[Zi](o,e)}}};Aw.Sync=wG;DG.exports=Aw});var kG=y((J2e,TG)=>{"use strict";var zSe=nh(),Mw=f_(),xG=require("fs"),SG=bh(),CG=require("path"),m_=uh();TG.exports=(n,e,t)=>{typeof n=="function"?(t=n,e=null,n={}):Array.isArray(n)&&(e=n,n={}),typeof e=="function"&&(t=e,e=null),e?e=Array.from(e):e=[];let i=zSe(n);if(i.sync&&typeof t=="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof t=="function")throw new TypeError("callback only supported with file option");return e.length&&VSe(i,e),i.file&&i.sync?e0e(i):i.file?t0e(i,t):i.sync?i0e(i):n0e(i)};var VSe=(n,e)=>{let t=new Map(e.map(o=>[m_(o),!0])),i=n.filter,r=(o,s)=>{let a=s||CG.parse(o).root||".",l=o===a?!1:t.has(o)?t.get(o):r(CG.dirname(o),a);return t.set(o,l),l};n.filter=i?(o,s)=>i(o,s)&&r(m_(o)):o=>r(m_(o))},e0e=n=>{let e=new Mw.Sync(n),t=n.file,i=xG.statSync(t),r=n.maxReadSize||16*1024*1024;new SG.ReadStreamSync(t,{readSize:r,size:i.size}).pipe(e)},t0e=(n,e)=>{let t=new Mw(n),i=n.maxReadSize||16*1024*1024,r=n.file,o=new Promise((s,a)=>{t.on("error",a),t.on("close",s),xG.stat(r,(l,u)=>{if(l)a(l);else{let c=new SG.ReadStream(r,{readSize:i,size:u.size});c.on("error",a),c.pipe(t)}})});return e?o.then(e,e):o},i0e=n=>new Mw.Sync(n),n0e=n=>new Mw(n)});var EG=y(ui=>{"use strict";ui.c=ui.create=a8();ui.r=ui.replace=KP();ui.t=ui.list=Tw();ui.u=ui.update=m8();ui.x=ui.extract=kG();ui.Pack=dw();ui.Unpack=f_();ui.Parse=Sw();ui.ReadEntry=Gv();ui.WriteEntry=TP();ui.Header=lh();ui.Pax=zv();ui.types=uP()});var LG=y((X2e,RG)=>{RG.exports=Ji;function Ji(n){if(!(this instanceof Ji))return new Ji(n);this.value=n}Ji.prototype.get=function(n){for(var e=this.value,t=0;t{var r0e=LG(),o0e=require("events").EventEmitter;FG.exports=Sh;function Sh(n){var e=Sh.saw(n,{}),t=n.call(e.handlers,e);return t!==void 0&&(e.handlers=t),e.record(),e.chain()}Sh.light=function(e){var t=Sh.saw(e,{}),i=e.call(t.handlers,t);return i!==void 0&&(t.handlers=i),t.chain()};Sh.saw=function(n,e){var t=new o0e;return t.handlers=e,t.actions=[],t.chain=function(){var i=r0e(t.handlers).map(function(r){if(this.isRoot)return r;var o=this.path;typeof r=="function"&&this.update(function(){return t.actions.push({path:o,args:[].slice.call(arguments)}),i})});return process.nextTick(function(){t.emit("begin"),t.next()}),i},t.pop=function(){return t.actions.shift()},t.next=function(){var i=t.pop();if(!i)t.emit("end");else if(!i.trap){var r=t.handlers;i.path.forEach(function(o){r=r[o]}),r.apply(t.handlers,i.args)}},t.nest=function(i){var r=[].slice.call(arguments,1),o=!0;if(typeof i=="boolean"){var o=i;i=r.shift()}var s=Sh.saw(n,{}),a=n.call(s.handlers,s);a!==void 0&&(s.handlers=a),typeof t.step<"u"&&s.record(),i.apply(s.chain(),r),o!==!1&&s.on("end",t.next)},t.record=function(){s0e(t)},["trap","down","jump"].forEach(function(i){t[i]=function(){throw new Error("To use the trap, down and jump features, please call record() first to start recording actions.")}}),t};function s0e(n){n.step=0,n.pop=function(){return n.actions[n.step++]},n.trap=function(e,t){var i=Array.isArray(e)?e:[e];n.actions.push({path:i,step:n.step,cb:t,trap:!0})},n.down=function(e){var t=(Array.isArray(e)?e:[e]).join("/"),i=n.actions.slice(n.step).map(function(o){return o.trap&&o.step<=n.step?!1:o.path.join("/")==t}).indexOf(!0);i>=0?n.step+=i:n.step=n.actions.length;var r=n.actions[n.step-1];r&&r.trap?(n.step=r.step,r.cb()):n.next()},n.jump=function(e){n.step=e,n.next()}}});var AG=y((G2e,jG)=>{jG.exports=pn;function pn(n){if(!(this instanceof pn))return new pn(n);this.buffers=n||[],this.length=this.buffers.reduce(function(e,t){return e+t.length},0)}pn.prototype.push=function(){for(var n=0;n=0?n:this.length-n,r=[].slice.call(arguments,2);e===void 0?e=this.length-i:e>this.length-i&&(e=this.length-i);for(var n=0;n0){var u=i-a;if(u+e0){var g=r.slice();g.unshift(h),g.push(d),t.splice.apply(t,[l,1].concat(g)),l+=g.length,r=[]}else t.splice(l,1,h,d),l+=2}else o.push(t[l].slice(u)),t[l]=t[l].slice(0,u),l++}for(r.length>0&&(t.splice.apply(t,[l,0].concat(r)),l+=r.length);o.lengththis.length&&(e=this.length);for(var i=0,r=0;r=e-n?Math.min(u+(e-n)-s,l):l;t[a].copy(o,s,u,c),s+=c-u}return o};pn.prototype.pos=function(n){if(n<0||n>=this.length)throw new Error("oob");for(var e=n,t=0,i=null;;){if(i=this.buffers[t],e=this.buffers[t].length;)if(i=0,t++,t>=this.buffers.length)return-1;var l=this.buffers[t][i];if(l==n[r]){if(r==0&&(o={i:t,j:i,pos:s}),r++,r==n.length)return o.pos}else r!=0&&(t=o.i,i=o.j,s=o.pos,r=0);i++,s++}};pn.prototype.toBuffer=function(){return this.slice()};pn.prototype.toString=function(n,e,t){return this.slice(e,t).toString(n)}});var OG=y((K2e,MG)=>{MG.exports=function(n){function e(i,r){var o=t.store,s=i.split(".");s.slice(0,-1).forEach(function(l){o[l]===void 0&&(o[l]={}),o=o[l]});var a=s[s.length-1];return arguments.length==1?o[a]:o[a]=r}var t={get:function(i){return e(i)},set:function(i,r){return e(i,r)},store:n||{}};return t}});var WG=y((ru,YG)=>{var a0e=IG(),NG=require("events").EventEmitter,l0e=AG(),Ow=OG(),u0e=require("stream").Stream;ru=YG.exports=function(n,e){if(Buffer.isBuffer(n))return ru.parse(n);var t=ru.stream();return n&&n.pipe?n.pipe(t):n&&(n.on(e||"data",function(i){t.write(i)}),n.on("end",function(){t.end()})),t};ru.stream=function(n){if(n)return ru.apply(null,arguments);var e=null;function t(h,d,g){e={bytes:h,skip:g,cb:function(p){e=null,d(p)}},r()}var i=null;function r(){if(!e){c&&(u=!0);return}if(typeof e=="function")e();else{var h=i+e.bytes;if(a.length>=h){var d;i==null?(d=a.splice(0,h),e.skip||(d=d.slice())):(e.skip||(d=a.slice(i,h)),i=h),e.skip?e.cb():e.cb(d)}}}function o(h){function d(){u||h.next()}var g=qG(function(p,f){return function(m){t(p,function(b){l.set(m,f(b)),d()})}});return g.tap=function(p){h.nest(p,l.store)},g.into=function(p,f){l.get(p)||l.set(p,{});var m=l;l=Ow(m.get(p)),h.nest(function(){f.apply(this,arguments),this.tap(function(){l=m})},l.store)},g.flush=function(){l.store={},d()},g.loop=function(p){var f=!1;h.nest(!1,function m(){this.vars=l.store,p.call(this,function(){f=!0,d()},l.store),this.tap(function(){f?h.next():m.call(this)}.bind(this))},l.store)},g.buffer=function(p,f){typeof f=="string"&&(f=l.get(f)),t(f,function(m){l.set(p,m),d()})},g.skip=function(p){typeof p=="string"&&(p=l.get(p)),t(p,function(){d()})},g.scan=function(f,m){if(typeof m=="string")m=new Buffer(m);else if(!Buffer.isBuffer(m))throw new Error("search must be a Buffer or a string");var b=0;e=function(){var w=a.indexOf(m,i+b),D=w-i-b;w!==-1?(e=null,i!=null?(l.set(f,a.slice(i,i+b+D)),i+=b+D+m.length):(l.set(f,a.slice(0,b+D)),a.splice(0,b+D+m.length)),d(),r()):D=Math.max(a.length-m.length-i-b,0),b+=D},r()},g.peek=function(p){i=0,h.nest(function(){p.call(this,l.store),this.tap(function(){i=null})})},g}var s=a0e.light(o);s.writable=!0;var a=l0e();s.write=function(h){a.push(h),r()};var l=Ow(),u=!1,c=!1;return s.end=function(){c=!0},s.pipe=u0e.prototype.pipe,Object.getOwnPropertyNames(NG.prototype).forEach(function(h){s[h]=NG.prototype[h]}),s};ru.parse=function(e){var t=qG(function(o,s){return function(a){if(i+o<=e.length){var l=e.slice(i,i+o);i+=o,r.set(a,s(l))}else r.set(a,null);return t}}),i=0,r=Ow();return t.vars=r.store,t.tap=function(o){return o.call(t,r.store),t},t.into=function(o,s){r.get(o)||r.set(o,{});var a=r;return r=Ow(a.get(o)),s.call(t,r.store),r=a,t},t.loop=function(o){for(var s=!1,a=function(){s=!0};s===!1;)o.call(t,a,r.store);return t},t.buffer=function(o,s){typeof s=="string"&&(s=r.get(s));var a=e.slice(i,Math.min(e.length,i+s));return i+=s,r.set(o,a),t},t.skip=function(o){return typeof o=="string"&&(o=r.get(o)),i+=o,t},t.scan=function(o,s){if(typeof s=="string")s=new Buffer(s);else if(!Buffer.isBuffer(s))throw new Error("search must be a Buffer or a string");r.set(o,null);for(var a=0;a+i<=e.length-s.length+1;a++){for(var l=0;l=e.length},t};function BG(n){for(var e=0,t=0;t{var ZG=require("stream").Transform,d0e=require("util");function ou(n,e){if(!(this instanceof ou))return new ou;ZG.call(this);var t=typeof n=="object"?n.pattern:n;this.pattern=Buffer.isBuffer(t)?t:Buffer.from(t),this.requiredLength=this.pattern.length,n.requiredExtraSize&&(this.requiredLength+=n.requiredExtraSize),this.data=new Buffer(""),this.bytesSoFar=0,this.matchFn=e}d0e.inherits(ou,ZG);ou.prototype.checkDataChunk=function(n){var e=this.data.length>=this.requiredLength;if(!!e){var t=this.data.indexOf(this.pattern,n?1:0);if(t>=0&&t+this.requiredLength>this.data.length){if(t>0){var i=this.data.slice(0,t);this.push(i),this.bytesSoFar+=t,this.data=this.data.slice(t)}return}if(t===-1){var r=this.data.length-this.requiredLength+1,i=this.data.slice(0,r);this.push(i),this.bytesSoFar+=r,this.data=this.data.slice(r);return}if(t>0){var i=this.data.slice(0,t);this.data=this.data.slice(t),this.push(i),this.bytesSoFar+=t}var o=this.matchFn?this.matchFn(this.data,this.bytesSoFar):!0;if(o){this.data=new Buffer("");return}return!0}};ou.prototype._transform=function(n,e,t){this.data=Buffer.concat([this.data,n]);for(var i=!0;this.checkDataChunk(!i);)i=!1;t()};ou.prototype._flush=function(n){if(this.data.length>0)for(var e=!0;this.checkDataChunk(!e);)e=!1;this.data.length>0&&(this.push(this.data),this.data=null),n()};JG.exports=ou});var UG=y((z2e,XG)=>{"use strict";var y_=require("stream"),g0e=require("util").inherits;function Gp(){if(!(this instanceof Gp))return new Gp;y_.PassThrough.call(this),this.path=null,this.type=null,this.isDirectory=!1}g0e(Gp,y_.PassThrough);Gp.prototype.autodrain=function(){return this.pipe(new y_.Transform({transform:function(n,e,t){t()}}))};XG.exports=Gp});var v_=y((V2e,KG)=>{"use strict";var Ba=WG(),b_=require("stream"),p0e=require("util"),f0e=require("zlib"),m0e=$G(),GG=UG(),be={STREAM_START:0,START:1,LOCAL_FILE_HEADER:2,LOCAL_FILE_HEADER_SUFFIX:3,FILE_DATA:4,FILE_DATA_END:5,DATA_DESCRIPTOR:6,CENTRAL_DIRECTORY_FILE_HEADER:7,CENTRAL_DIRECTORY_FILE_HEADER_SUFFIX:8,CDIR64_END:9,CDIR64_END_DATA_SECTOR:10,CDIR64_LOCATOR:11,CENTRAL_DIRECTORY_END:12,CENTRAL_DIRECTORY_END_COMMENT:13,TRAILING_JUNK:14,ERROR:99},Kp=4294967296,y0e=67324752,b0e=134695760,v0e=33639248,w0e=101075792,D0e=117853008,C0e=101010256;function ki(n){if(!(this instanceof ki))return new ki(n);b_.Transform.call(this),this.options=n||{},this.data=new Buffer(""),this.state=be.STREAM_START,this.skippedBytes=0,this.parsedEntity=null,this.outStreamInfo={}}p0e.inherits(ki,b_.Transform);ki.prototype.processDataChunk=function(n){var e;switch(this.state){case be.STREAM_START:case be.START:e=4;break;case be.LOCAL_FILE_HEADER:e=26;break;case be.LOCAL_FILE_HEADER_SUFFIX:e=this.parsedEntity.fileNameLength+this.parsedEntity.extraFieldLength;break;case be.DATA_DESCRIPTOR:e=12;break;case be.CENTRAL_DIRECTORY_FILE_HEADER:e=42;break;case be.CENTRAL_DIRECTORY_FILE_HEADER_SUFFIX:e=this.parsedEntity.fileNameLength+this.parsedEntity.extraFieldLength+this.parsedEntity.fileCommentLength;break;case be.CDIR64_END:e=52;break;case be.CDIR64_END_DATA_SECTOR:e=this.parsedEntity.centralDirectoryRecordSize-44;break;case be.CDIR64_LOCATOR:e=16;break;case be.CENTRAL_DIRECTORY_END:e=18;break;case be.CENTRAL_DIRECTORY_END_COMMENT:e=this.parsedEntity.commentLength;break;case be.FILE_DATA:return 0;case be.FILE_DATA_END:return 0;case be.TRAILING_JUNK:return this.options.debug&&console.log("found",n.length,"bytes of TRAILING_JUNK"),n.length;default:return n.length}var t=n.length;if(t>>8,(o&255)===80){s=a;break}return this.skippedBytes+=s,this.options.debug&&console.log("Skipped",this.skippedBytes,"bytes"),s}this.state=be.ERROR;var l=r?"Not a valid zip file":"Invalid signature in zip file";if(this.options.debug){var u=n.readUInt32LE(0),c;try{c=n.slice(0,4).toString()}catch{}console.log("Unexpected signature in zip file: 0x"+u.toString(16),'"'+c+'", skipped',this.skippedBytes,"bytes")}return this.emit("error",new Error(l)),n.length}return this.skippedBytes=0,e;case be.LOCAL_FILE_HEADER:return this.parsedEntity=this._readFile(n),this.state=be.LOCAL_FILE_HEADER_SUFFIX,e;case be.LOCAL_FILE_HEADER_SUFFIX:var h=new GG,d=(this.parsedEntity.flags&2048)!==0;h.path=this._decodeString(n.slice(0,this.parsedEntity.fileNameLength),d);var p=n.slice(this.parsedEntity.fileNameLength,this.parsedEntity.fileNameLength+this.parsedEntity.extraFieldLength),f=this._readExtraFields(p);if(f&&f.parsed&&(f.parsed.path&&!d&&(h.path=f.parsed.path),Number.isFinite(f.parsed.uncompressedSize)&&this.parsedEntity.uncompressedSize===Kp-1&&(this.parsedEntity.uncompressedSize=f.parsed.uncompressedSize),Number.isFinite(f.parsed.compressedSize)&&this.parsedEntity.compressedSize===Kp-1&&(this.parsedEntity.compressedSize=f.parsed.compressedSize)),this.parsedEntity.extra=f.parsed||{},this.options.debug){let T=Object.assign({},this.parsedEntity,{path:h.path,flags:"0x"+this.parsedEntity.flags.toString(16),extraFields:f&&f.debug});console.log("decoded LOCAL_FILE_HEADER:",JSON.stringify(T,null,2))}return this._prepareOutStream(this.parsedEntity,h),this.emit("entry",h),this.state=be.FILE_DATA,e;case be.CENTRAL_DIRECTORY_FILE_HEADER:return this.parsedEntity=this._readCentralDirectoryEntry(n),this.state=be.CENTRAL_DIRECTORY_FILE_HEADER_SUFFIX,e;case be.CENTRAL_DIRECTORY_FILE_HEADER_SUFFIX:var d=(this.parsedEntity.flags&2048)!==0,g=this._decodeString(n.slice(0,this.parsedEntity.fileNameLength),d),p=n.slice(this.parsedEntity.fileNameLength,this.parsedEntity.fileNameLength+this.parsedEntity.extraFieldLength),f=this._readExtraFields(p);f&&f.parsed&&f.parsed.path&&!d&&(g=f.parsed.path),this.parsedEntity.extra=f.parsed;var m=(this.parsedEntity.versionMadeBy&65280)>>8===3,b,w;if(m){b=this.parsedEntity.externalFileAttributes>>>16;var D=b>>>12;w=(D&10)===10}if(this.options.debug){let T=Object.assign({},this.parsedEntity,{path:g,flags:"0x"+this.parsedEntity.flags.toString(16),unixAttrs:b&&"0"+b.toString(8),isSymlink:w,extraFields:f.debug});console.log("decoded CENTRAL_DIRECTORY_FILE_HEADER:",JSON.stringify(T,null,2))}return this.state=be.START,e;case be.CDIR64_END:return this.parsedEntity=this._readEndOfCentralDirectory64(n),this.options.debug&&console.log("decoded CDIR64_END_RECORD:",this.parsedEntity),this.state=be.CDIR64_END_DATA_SECTOR,e;case be.CDIR64_END_DATA_SECTOR:return this.state=be.START,e;case be.CDIR64_LOCATOR:return this.state=be.START,e;case be.CENTRAL_DIRECTORY_END:return this.parsedEntity=this._readEndOfCentralDirectory(n),this.options.debug&&console.log("decoded CENTRAL_DIRECTORY_END:",this.parsedEntity),this.state=be.CENTRAL_DIRECTORY_END_COMMENT,e;case be.CENTRAL_DIRECTORY_END_COMMENT:return this.options.debug&&console.log("decoded CENTRAL_DIRECTORY_END_COMMENT:",n.slice(0,e).toString()),this.state=be.TRAILING_JUNK,e;case be.ERROR:return n.length;default:return console.log("didn't handle state #",this.state,"discarding"),n.length}};ki.prototype._prepareOutStream=function(n,e){var t=this,i=n.uncompressedSize===0&&/[\/\\]$/.test(e.path);e.path=e.path.replace(/^([/\\]*[.]+[/\\]+)*[/\\]*/,""),e.type=i?"Directory":"File",e.isDirectory=i;var r=!(n.flags&8);r&&(e.size=n.uncompressedSize);var o=n.versionsNeededToExtract<=45;if(this.outStreamInfo={stream:null,limit:r?n.compressedSize:-1,written:0},r)this.outStreamInfo.stream=new b_.PassThrough;else{var s=new Buffer(4);s.writeUInt32LE(b0e,0);var a=n.extra.zip64Mode,l=a?20:12,u={pattern:s,requiredExtraSize:l},c=new m0e(u,function(f,m){var b=t._readDataDescriptor(f,a),w=b.compressedSize===m;if(!a&&!w&&m>=Kp)for(var D=m-Kp;D>=0&&(w=b.compressedSize===D,!w);)D-=Kp;if(!!w){t.state=be.FILE_DATA_END;var T=a?24:16;return t.data.length>0?t.data=Buffer.concat([f.slice(T),t.data]):t.data=f.slice(T),!0}});this.outStreamInfo.stream=c}var h=n.flags&1||n.flags&64;if(h||!o){var d=h?"Encrypted files are not supported!":"Zip version "+Math.floor(n.versionsNeededToExtract/10)+"."+n.versionsNeededToExtract%10+" is not supported";e.skip=!0,setImmediate(()=>{e.emit("error",new Error(d))}),this.outStreamInfo.stream.pipe(new GG().autodrain());return}var g=n.compressionMethod>0;if(g){var p=f0e.createInflateRaw();p.on("error",function(f){t.state=be.ERROR,t.emit("error",f)}),this.outStreamInfo.stream.pipe(p).pipe(e)}else this.outStreamInfo.stream.pipe(e);this._drainAllEntries&&e.autodrain()};ki.prototype._readFile=function(n){var e=Ba.parse(n).word16lu("versionsNeededToExtract").word16lu("flags").word16lu("compressionMethod").word16lu("lastModifiedTime").word16lu("lastModifiedDate").word32lu("crc32").word32lu("compressedSize").word32lu("uncompressedSize").word16lu("fileNameLength").word16lu("extraFieldLength").vars;return e};ki.prototype._readExtraFields=function(n){var e={},t={parsed:e};this.options.debug&&(t.debug=[]);for(var i=0;i=w+4&&a&1&&(e.mtime=new Date(n.readUInt32LE(i+w)*1e3),w+=4),r.extraSize>=w+4&&a&2&&(e.atime=new Date(n.readUInt32LE(i+w)*1e3),w+=4),r.extraSize>=w+4&&a&4&&(e.ctime=new Date(n.readUInt32LE(i+w)*1e3));break;case 28789:o="Info-ZIP Unicode Path Extra Field";var l=n.readUInt8(i);if(l===1){var w=1,u=n.readUInt32LE(i+w);w+=4;var c=n.slice(i+w);e.path=c.toString()}break;case 13:case 22613:o=r.extraId===13?"PKWARE Unix":"Info-ZIP UNIX (type 1)";var w=0;if(r.extraSize>=8){var h=new Date(n.readUInt32LE(i+w)*1e3);w+=4;var d=new Date(n.readUInt32LE(i+w)*1e3);if(w+=4,e.atime=h,e.mtime=d,r.extraSize>=12){var g=n.readUInt16LE(i+w);w+=2;var p=n.readUInt16LE(i+w);w+=2,e.uid=g,e.gid=p}}break;case 30805:o="Info-ZIP UNIX (type 2)";var w=0;if(r.extraSize>=4){var g=n.readUInt16LE(i+w);w+=2;var p=n.readUInt16LE(i+w);w+=2,e.uid=g,e.gid=p}break;case 30837:o="Info-ZIP New Unix";var w=0,f=n.readUInt8(i);if(w+=1,f===1){var m=n.readUInt8(i+w);w+=1,m<=6&&(e.uid=n.readUIntLE(i+w,m)),w+=m;var b=n.readUInt8(i+w);w+=1,b<=6&&(e.gid=n.readUIntLE(i+w,b))}break;case 30062:o="ASi Unix";var w=0;if(r.extraSize>=14){var D=n.readUInt32LE(i+w);w+=4;var T=n.readUInt16LE(i+w);w+=2;var R=n.readUInt32LE(i+w);w+=4;var g=n.readUInt16LE(i+w);w+=2;var p=n.readUInt16LE(i+w);if(w+=2,e.mode=T,e.uid=g,e.gid=p,r.extraSize>14){var N=i+w,H=i+r.extraSize-14,X=this._decodeString(n.slice(N,H));e.symlink=X}}break}this.options.debug&&t.debug.push({extraId:"0x"+r.extraId.toString(16),description:o,data:n.slice(i,i+r.extraSize).inspect()}),i+=r.extraSize}return t};ki.prototype._readDataDescriptor=function(n,e){if(e){var t=Ba.parse(n).word32lu("dataDescriptorSignature").word32lu("crc32").word64lu("compressedSize").word64lu("uncompressedSize").vars;return t}var t=Ba.parse(n).word32lu("dataDescriptorSignature").word32lu("crc32").word32lu("compressedSize").word32lu("uncompressedSize").vars;return t};ki.prototype._readCentralDirectoryEntry=function(n){var e=Ba.parse(n).word16lu("versionMadeBy").word16lu("versionsNeededToExtract").word16lu("flags").word16lu("compressionMethod").word16lu("lastModifiedTime").word16lu("lastModifiedDate").word32lu("crc32").word32lu("compressedSize").word32lu("uncompressedSize").word16lu("fileNameLength").word16lu("extraFieldLength").word16lu("fileCommentLength").word16lu("diskNumber").word16lu("internalFileAttributes").word32lu("externalFileAttributes").word32lu("offsetToLocalFileHeader").vars;return e};ki.prototype._readEndOfCentralDirectory64=function(n){var e=Ba.parse(n).word64lu("centralDirectoryRecordSize").word16lu("versionMadeBy").word16lu("versionsNeededToExtract").word32lu("diskNumber").word32lu("diskNumberWithCentralDirectoryStart").word64lu("centralDirectoryEntries").word64lu("totalCentralDirectoryEntries").word64lu("sizeOfCentralDirectory").word64lu("offsetToStartOfCentralDirectory").vars;return e};ki.prototype._readEndOfCentralDirectory=function(n){var e=Ba.parse(n).word16lu("diskNumber").word16lu("diskStart").word16lu("centralDirectoryEntries").word16lu("totalCentralDirectoryEntries").word32lu("sizeOfCentralDirectory").word32lu("offsetToStartOfCentralDirectory").word16lu("commentLength").vars;return e};var x0e="\0\u263A\u263B\u2665\u2666\u2663\u2660\u2022\u25D8\u25CB\u25D9\u2642\u2640\u266A\u266B\u263C\u25BA\u25C4\u2195\u203C\xB6\xA7\u25AC\u21A8\u2191\u2193\u2192\u2190\u221F\u2194\u25B2\u25BC !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\u2302\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xA2\xA3\xA5\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0 ";ki.prototype._decodeString=function(n,e){if(e)return n.toString("utf8");if(this.options.decodeString)return this.options.decodeString(n);let t="";for(var i=0;i0&&(this.data=this.data.slice(t),this.data.length!==0););if(this.state===be.FILE_DATA){if(this.outStreamInfo.limit>=0){var i=this.outStreamInfo.limit-this.outStreamInfo.written,r;i{if(this.state===be.FILE_DATA_END)return this.state=be.START,o.end(e);e()})}return}e()};ki.prototype.drainAll=function(){this._drainAllEntries=!0};ki.prototype._transform=function(n,e,t){var i=this;i.data.length>0?i.data=Buffer.concat([i.data,n]):i.data=n;var r=i.data.length,o=function(){if(i.data.length>0&&i.data.length0){e._parseOrOutput("buffer",function(){if(e.data.length>0)return setImmediate(function(){e._flush(n)});n()});return}if(e.state===be.FILE_DATA)return n(new Error("Stream finished in an invalid state, uncompression failed"));setImmediate(n)};KG.exports=ki});var zG=y((eYe,QG)=>{var Qp=require("stream").Transform,S0e=require("util"),T0e=v_();function Ha(n){if(!(this instanceof Ha))return new Ha(n);var e=n||{};Qp.call(this,{readableObjectMode:!0}),this.opts=n||{},this.unzipStream=new T0e(this.opts);var t=this;this.unzipStream.on("entry",function(i){t.push(i)}),this.unzipStream.on("error",function(i){t.emit("error",i)})}S0e.inherits(Ha,Qp);Ha.prototype._transform=function(n,e,t){this.unzipStream.write(n,e,t)};Ha.prototype._flush=function(n){var e=this;this.unzipStream.end(function(){process.nextTick(function(){e.emit("close")}),n()})};Ha.prototype.on=function(n,e){return n==="entry"?Qp.prototype.on.call(this,"data",e):Qp.prototype.on.call(this,n,e)};Ha.prototype.drainAll=function(){return this.unzipStream.drainAll(),this.pipe(new Qp({objectMode:!0,transform:function(n,e,t){t()}}))};QG.exports=Ha});var i6=y((tYe,t6)=>{var zp=require("path"),VG=require("fs"),e6=parseInt("0777",8);t6.exports=Th.mkdirp=Th.mkdirP=Th;function Th(n,e,t,i){typeof e=="function"?(t=e,e={}):(!e||typeof e!="object")&&(e={mode:e});var r=e.mode,o=e.fs||VG;r===void 0&&(r=e6),i||(i=null);var s=t||function(){};n=zp.resolve(n),o.mkdir(n,r,function(a){if(!a)return i=i||n,s(null,i);switch(a.code){case"ENOENT":if(zp.dirname(n)===n)return s(a);Th(zp.dirname(n),e,function(l,u){l?s(l,u):Th(n,e,s,u)});break;default:o.stat(n,function(l,u){l||!u.isDirectory()?s(a,i):s(null,i)});break}})}Th.sync=function n(e,t,i){(!t||typeof t!="object")&&(t={mode:t});var r=t.mode,o=t.fs||VG;r===void 0&&(r=e6),i||(i=null),e=zp.resolve(e);try{o.mkdirSync(e,r),i=i||e}catch(a){switch(a.code){case"ENOENT":i=n(zp.dirname(e),t,i),n(e,t,i);break;default:var s;try{s=o.statSync(e)}catch{throw a}if(!s.isDirectory())throw a;break}}return i}});var s6=y((iYe,o6)=>{var k0e=require("fs"),n6=require("path"),E0e=require("util"),P0e=i6(),r6=require("stream").Transform,_0e=v_();function qa(n){if(!(this instanceof qa))return new qa(n);r6.call(this),this.opts=n||{},this.unzipStream=new _0e(this.opts),this.unfinishedEntries=0,this.afterFlushWait=!1,this.createdDirectories={};var e=this;this.unzipStream.on("entry",this._processEntry.bind(this)),this.unzipStream.on("error",function(t){e.emit("error",t)})}E0e.inherits(qa,r6);qa.prototype._transform=function(n,e,t){this.unzipStream.write(n,e,t)};qa.prototype._flush=function(n){var e=this,t=function(){process.nextTick(function(){e.emit("close")}),n()};this.unzipStream.end(function(){if(e.unfinishedEntries>0)return e.afterFlushWait=!0,e.on("await-finished",t);t()})};qa.prototype._processEntry=function(n){var e=this,t=n6.join(this.opts.path,n.path),i=n.isDirectory?t:n6.dirname(t);this.unfinishedEntries++;var r=function(){var o=k0e.createWriteStream(t);o.on("close",function(){e.unfinishedEntries--,e._notifyAwaiter()}),o.on("error",function(s){e.emit("error",s)}),n.pipe(o)};if(this.createdDirectories[i]||i===".")return r();P0e(i,function(o){if(o)return e.emit("error",o);if(e.createdDirectories[i]=!0,n.isDirectory){e.unfinishedEntries--,e._notifyAwaiter();return}r()})};qa.prototype._notifyAwaiter=function(){this.afterFlushWait&&this.unfinishedEntries===0&&(this.emit("await-finished"),this.afterFlushWait=!1)};o6.exports=qa});var a6=y(w_=>{"use strict";w_.Parse=zG();w_.Extract=s6()});var l6=y(D_=>{"use strict";Object.defineProperty(D_,"__esModule",{value:!0});function R0e(n,e,{signal:t}={}){return new Promise((i,r)=>{function o(){t==null||t.removeEventListener("abort",o),n.removeListener(e,s),n.removeListener("error",a)}function s(...l){o(),i(l)}function a(l){o(),r(l)}t==null||t.addEventListener("abort",o),n.on(e,s),n.on("error",a)})}D_.default=R0e});var u6=y(C_=>{"use strict";Object.defineProperty(C_,"__esModule",{value:!0});function L0e(n){return function(e,t){return new Promise((i,r)=>{n.call(this,e,t,(o,s)=>{o?r(o):i(s)})})}}C_.default=L0e});var T_=y((S_,h6)=>{"use strict";var c6=S_&&S_.__importDefault||function(n){return n&&n.__esModule?n:{default:n}},F0e=require("events"),I0e=c6(Wt()),j0e=c6(u6()),Vp=I0e.default("agent-base");function A0e(n){return Boolean(n)&&typeof n.addRequest=="function"}function x_(){let{stack:n}=new Error;return typeof n!="string"?!1:n.split(` +`).some(e=>e.indexOf("(https.js:")!==-1||e.indexOf("node:https:")!==-1)}function Nw(n,e){return new Nw.Agent(n,e)}(function(n){class e extends F0e.EventEmitter{constructor(i,r){super();let o=r;typeof i=="function"?this.callback=i:i&&(o=i),this.timeout=null,o&&typeof o.timeout=="number"&&(this.timeout=o.timeout),this.maxFreeSockets=1,this.maxSockets=1,this.maxTotalSockets=1/0,this.sockets={},this.freeSockets={},this.requests={},this.options={}}get defaultPort(){return typeof this.explicitDefaultPort=="number"?this.explicitDefaultPort:x_()?443:80}set defaultPort(i){this.explicitDefaultPort=i}get protocol(){return typeof this.explicitProtocol=="string"?this.explicitProtocol:x_()?"https:":"http:"}set protocol(i){this.explicitProtocol=i}callback(i,r,o){throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`')}addRequest(i,r){let o=Object.assign({},r);typeof o.secureEndpoint!="boolean"&&(o.secureEndpoint=x_()),o.host==null&&(o.host="localhost"),o.port==null&&(o.port=o.secureEndpoint?443:80),o.protocol==null&&(o.protocol=o.secureEndpoint?"https:":"http:"),o.host&&o.path&&delete o.path,delete o.agent,delete o.hostname,delete o._defaultAgent,delete o.defaultPort,delete o.createConnection,i._last=!0,i.shouldKeepAlive=!1;let s=!1,a=null,l=o.timeout||this.timeout,u=g=>{i._hadError||(i.emit("error",g),i._hadError=!0)},c=()=>{a=null,s=!0;let g=new Error(`A "socket" was not created for HTTP request before ${l}ms`);g.code="ETIMEOUT",u(g)},h=g=>{s||(a!==null&&(clearTimeout(a),a=null),u(g))},d=g=>{if(s)return;if(a!=null&&(clearTimeout(a),a=null),A0e(g)){Vp("Callback returned another Agent instance %o",g.constructor.name),g.addRequest(i,o);return}if(g){g.once("free",()=>{this.freeSocket(g,o)}),i.onSocket(g);return}let p=new Error(`no Duplex stream was returned to agent-base for \`${i.method} ${i.path}\``);u(p)};if(typeof this.callback!="function"){u(new Error("`callback` is not defined"));return}this.promisifiedCallback||(this.callback.length>=3?(Vp("Converting legacy callback function to promise"),this.promisifiedCallback=j0e.default(this.callback)):this.promisifiedCallback=this.callback),typeof l=="number"&&l>0&&(a=setTimeout(c,l)),"port"in o&&typeof o.port!="number"&&(o.port=Number(o.port));try{Vp("Resolving socket for %o request: %o",o.protocol,`${i.method} ${i.path}`),Promise.resolve(this.promisifiedCallback(i,o)).then(d,h)}catch(g){Promise.reject(g).catch(h)}}freeSocket(i,r){Vp("Freeing socket %o %o",i.constructor.name,r),i.destroy()}destroy(){Vp("Destroying agent %o",this.constructor.name)}}n.Agent=e,n.prototype=n.Agent.prototype})(Nw||(Nw={}));h6.exports=Nw});var g6=y(su=>{"use strict";var M0e=su&&su.__awaiter||function(n,e,t,i){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(c){try{u(i.next(c))}catch(h){s(h)}}function l(c){try{u(i.throw(c))}catch(h){s(h)}}function u(c){c.done?o(c.value):r(c.value).then(a,l)}u((i=i.apply(n,e||[])).next())})},ef=su&&su.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(su,"__esModule",{value:!0});var O0e=ef(require("net")),N0e=ef(require("tls")),k_=ef(require("url")),B0e=ef(Wt()),H0e=ef(l6()),q0e=T_(),Ya=(0,B0e.default)("http-proxy-agent");function Y0e(n){return typeof n=="string"?/^https:?$/i.test(n):!1}var d6=class extends q0e.Agent{constructor(e){let t;if(typeof e=="string"?t=k_.default.parse(e):t=e,!t)throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!");Ya("Creating new HttpProxyAgent instance: %o",t);super(t);let i=Object.assign({},t);this.secureProxy=t.secureProxy||Y0e(i.protocol),i.host=i.hostname||i.host,typeof i.port=="string"&&(i.port=parseInt(i.port,10)),!i.port&&i.host&&(i.port=this.secureProxy?443:80),i.host&&i.path&&(delete i.path,delete i.pathname),this.proxy=i}callback(e,t){return M0e(this,void 0,void 0,function*(){let{proxy:i,secureProxy:r}=this,o=k_.default.parse(e.path);o.protocol||(o.protocol="http:"),o.hostname||(o.hostname=t.hostname||t.host||null),o.port==null&&typeof t.port&&(o.port=String(t.port)),o.port==="80"&&(o.port=""),e.path=k_.default.format(o),i.auth&&e.setHeader("Proxy-Authorization",`Basic ${Buffer.from(i.auth).toString("base64")}`);let s;if(r?(Ya("Creating `tls.Socket`: %o",i),s=N0e.default.connect(i)):(Ya("Creating `net.Socket`: %o",i),s=O0e.default.connect(i)),e._header){let a,l;Ya("Regenerating stored HTTP header string for request"),e._header=null,e._implicitHeader(),e.output&&e.output.length>0?(Ya("Patching connection write() output buffer with updated header"),a=e.output[0],l=a.indexOf(`\r \r -`)+4,e.output[0]=e._header+a.substring(l),Pa("Output buffer: %o",e.output)):e.outputData&&e.outputData.length>0&&(Pa("Patching connection write() output buffer with updated header"),a=e.outputData[0].data,l=a.indexOf(`\r +`)+4,e.output[0]=e._header+a.substring(l),Ya("Output buffer: %o",e.output)):e.outputData&&e.outputData.length>0&&(Ya("Patching connection write() output buffer with updated header"),a=e.outputData[0].data,l=a.indexOf(`\r \r -`)+4,e.outputData[0].data=e._header+a.substring(l),Pa("Output buffer: %o",e.outputData[0].data))}return yield(0,oSe.default)(s,"connect"),s})}};Jl.default=G8});var z8=m((jP,K8)=>{"use strict";var lSe=jP&&jP.__importDefault||function(n){return n&&n.__esModule?n:{default:n}},FP=lSe(Q8());function IP(n){return new FP.default(n)}(function(n){n.HttpProxyAgent=FP.default,n.prototype=FP.default.prototype})(IP||(IP={}));K8.exports=IP});var V8=m(Af=>{"use strict";var uSe=Af&&Af.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Af,"__esModule",{value:!0});var cSe=uSe(Ot()),jf=cSe.default("https-proxy-agent:parse-proxy-response");function hSe(n){return new Promise((e,t)=>{let i=0,r=[];function o(){let h=n.read();h?c(h):n.once("readable",o)}function s(){n.removeListener("end",l),n.removeListener("error",u),n.removeListener("close",a),n.removeListener("readable",o)}function a(h){jf("onclose had error %o",h)}function l(){jf("onend")}function u(h){s(),jf("onerror %o",h),t(h)}function c(h){r.push(h),i+=h.length;let d=Buffer.concat(r,i);if(d.indexOf(`\r +`)+4,e.outputData[0].data=e._header+a.substring(l),Ya("Output buffer: %o",e.outputData[0].data))}return yield(0,H0e.default)(s,"connect"),s})}};su.default=d6});var f6=y((__,p6)=>{"use strict";var W0e=__&&__.__importDefault||function(n){return n&&n.__esModule?n:{default:n}},E_=W0e(g6());function P_(n){return new E_.default(n)}(function(n){n.HttpProxyAgent=E_.default,n.prototype=E_.default.prototype})(P_||(P_={}));p6.exports=P_});var m6=y(nf=>{"use strict";var Z0e=nf&&nf.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(nf,"__esModule",{value:!0});var J0e=Z0e(Wt()),tf=J0e.default("https-proxy-agent:parse-proxy-response");function $0e(n){return new Promise((e,t)=>{let i=0,r=[];function o(){let h=n.read();h?c(h):n.once("readable",o)}function s(){n.removeListener("end",l),n.removeListener("error",u),n.removeListener("close",a),n.removeListener("readable",o)}function a(h){tf("onclose had error %o",h)}function l(){tf("onend")}function u(h){s(),tf("onerror %o",h),t(h)}function c(h){r.push(h),i+=h.length;let d=Buffer.concat(r,i);if(d.indexOf(`\r \r -`)===-1){jf("have not received end of HTTP headers yet..."),o();return}let f=d.toString("ascii",0,d.indexOf(`\r -`)),p=+f.split(" ")[1];jf("got proxy server response: %o",f),e({statusCode:p,buffered:d})}n.on("error",u),n.on("close",a),n.on("end",l),o()})}Af.default=hSe});var nG=m($l=>{"use strict";var dSe=$l&&$l.__awaiter||function(n,e,t,i){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(c){try{u(i.next(c))}catch(h){s(h)}}function l(c){try{u(i.throw(c))}catch(h){s(h)}}function u(c){c.done?o(c.value):r(c.value).then(a,l)}u((i=i.apply(n,e||[])).next())})},gh=$l&&$l.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty($l,"__esModule",{value:!0});var eG=gh(require("net")),tG=gh(require("tls")),gSe=gh(require("url")),fSe=gh(require("assert")),pSe=gh(Ot()),mSe=RP(),bSe=gh(V8()),Of=pSe.default("https-proxy-agent:agent"),iG=class extends mSe.Agent{constructor(e){let t;if(typeof e=="string"?t=gSe.default.parse(e):t=e,!t)throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!");Of("creating new HttpsProxyAgent instance: %o",t);super(t);let i=Object.assign({},t);this.secureProxy=t.secureProxy||wSe(i.protocol),i.host=i.hostname||i.host,typeof i.port=="string"&&(i.port=parseInt(i.port,10)),!i.port&&i.host&&(i.port=this.secureProxy?443:80),this.secureProxy&&!("ALPNProtocols"in i)&&(i.ALPNProtocols=["http 1.1"]),i.host&&i.path&&(delete i.path,delete i.pathname),this.proxy=i}callback(e,t){return dSe(this,void 0,void 0,function*(){let{proxy:i,secureProxy:r}=this,o;r?(Of("Creating `tls.Socket`: %o",i),o=tG.default.connect(i)):(Of("Creating `net.Socket`: %o",i),o=eG.default.connect(i));let s=Object.assign({},i.headers),l=`CONNECT ${`${t.host}:${t.port}`} HTTP/1.1\r -`;i.auth&&(s["Proxy-Authorization"]=`Basic ${Buffer.from(i.auth).toString("base64")}`);let{host:u,port:c,secureEndpoint:h}=t;vSe(c,h)||(u+=`:${c}`),s.Host=u,s.Connection="close";for(let b of Object.keys(s))l+=`${b}: ${s[b]}\r -`;let d=bSe.default(o);o.write(`${l}\r -`);let{statusCode:g,buffered:f}=yield d;if(g===200){if(e.once("socket",ySe),t.secureEndpoint){let b=t.servername||t.host;if(!b)throw new Error('Could not determine "servername"');return Of("Upgrading socket connection to TLS"),tG.default.connect(Object.assign(Object.assign({},DSe(t,"host","hostname","path","port")),{socket:o,servername:b}))}return o}o.destroy();let p=new eG.default.Socket;return p.readable=!0,e.once("socket",b=>{Of("replaying proxy buffer for failed request"),fSe.default(b.listenerCount("data")>0),b.push(f),b.push(null)}),p})}};$l.default=iG;function ySe(n){n.resume()}function vSe(n,e){return Boolean(!e&&n===80||e&&n===443)}function wSe(n){return typeof n=="string"?/^https:?$/i.test(n):!1}function DSe(n,...e){let t={},i;for(i in n)e.includes(i)||(t[i]=n[i]);return t}});var oG=m((MP,rG)=>{"use strict";var xSe=MP&&MP.__importDefault||function(n){return n&&n.__esModule?n:{default:n}},AP=xSe(nG());function OP(n){return new AP.default(n)}(function(n){n.HttpsProxyAgent=AP.default,n.prototype=AP.default.prototype})(OP||(OP={}));rG.exports=OP});var aG=m((QHe,sG)=>{"use strict";var CSe=["aborted","complete","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];sG.exports=(n,e)=>{if(e._readableState.autoDestroy)throw new Error("The second stream must have the `autoDestroy` option set to `false`");let t=new Set(Object.keys(n).concat(CSe)),i={};for(let r of t)r in e||(i[r]={get(){let o=n[r];return typeof o=="function"?o.bind(n):o},set(o){n[r]=o},enumerable:!0,configurable:!1});return Object.defineProperties(e,i),n.once("aborted",()=>{e.destroy(),e.emit("aborted")}),n.once("close",()=>{n.complete&&e.readable?e.once("end",()=>{e.emit("close")}):e.emit("close")}),e}});var uG=m((KHe,lG)=>{"use strict";var{Transform:SSe,PassThrough:TSe}=require("stream"),NP=require("zlib"),kSe=aG();lG.exports=n=>{let e=(n.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(e))return n;let t=e==="br";if(t&&typeof NP.createBrotliDecompress!="function")return n.destroy(new Error("Brotli is not supported on Node.js < 12")),n;let i=!0,r=new SSe({transform(a,l,u){i=!1,u(null,a)},flush(a){a()}}),o=new TSe({autoDestroy:!1,destroy(a,l){n.destroy(),l(a)}}),s=t?NP.createBrotliDecompress():NP.createUnzip();return s.once("error",a=>{if(i&&!n.readable){o.end();return}o.destroy(a)}),kSe(n,o),n.pipe(r).pipe(s).pipe(o),o}});function ESe(n){let e;n.protocol==="http:"?e=process.env.HTTP_PROXY||process.env.http_proxy||null:n.protocol==="https:"&&(e=process.env.HTTPS_PROXY||process.env.https_proxy||process.env.HTTP_PROXY||process.env.http_proxy||null);let t=process.env.NO_PROXY||process.env.no_proxy;if(t==="*")e=null;else if(t){let i=n.hostname.replace(/^\.*/,".").toLowerCase(),r=n.port||n.protocol.startsWith("https")?"443":"80",o=t.split(",");for(let s=0,a=o.length;s{if(i){let u=i.onCancellationRequested(()=>{u.dispose(),l.destroy(new Error("request aborted"))})}let a,l=r.request(t,u=>{let c=u;if(u.statusCode>=200&&u.statusCode<300||u.statusCode===1223){let h=u.headers||{},d=[],g=h["content-type"]||"";c=(0,fG.default)(u),c.on("data",f=>{d.push(f)}),c.on("end",()=>{a&&clearTimeout(a);let f=Buffer.concat(d);if(!t.buffer&&(g.startsWith("application/json")||g.startsWith("text/"))){let p=g.match(/charset=(\S+)/),b=p?p[1]:"utf8",v=f.toString(b);if(!g.includes("application/json"))o(v);else try{let w=JSON.parse(v);o(w)}catch(w){s(new Error(`Parse response error: ${w}`))}}else o(f)}),c.on("error",f=>{s(new Error(`Unable to connect ${n}: ${f.message}`))})}else s(new Error(`Bad response from ${n}: ${u.statusCode}`))});l.on("error",u=>{t.agent&&u.code=="ECONNRESET"?a=setTimeout(()=>{s(u)},500):s(u)}),l.on("timeout",()=>{l.destroy(new Error(`Request timeout after ${t.timeout}ms`))}),e&&(typeof e=="string"||Buffer.isBuffer(e)?l.write(e):l.write(JSON.stringify(e))),t.timeout&&l.setTimeout(t.timeout),l.end()})}function RSe(n){return n===null?"null":n===void 0?"undefined":typeof n=="string"?"string":Buffer.isBuffer(n)?"buffer":Array.isArray(n)||_t(n)?"object":"unknown"}function fh(n,e={},t){let i=HP(n,e);return _Se(n,e.data,i,t).catch(r=>{if(pG.error(`Fetch error for ${n}:`,i,r),i.agent&&i.agent.proxy){let{proxy:o}=i.agent;throw new Error(`Request failed using proxy ${o.host}: ${r.message}`)}else throw r})}var lw,BP,cG,hG,dG,gG,fG,pG,uw=_(()=>{"use strict";lw=C(eE()),BP=require("url"),cG=C(require("fs"));In();V();hG=require("querystring"),dG=C(z8()),gG=C(oG()),fG=C(uG()),pG=q()("model-fetch")});function Nf(n,e,t){let{dest:i,onProgress:r,extract:o}=e;if(!i||!Mf.default.isAbsolute(i))throw new Error("Expect absolute file path for dest option.");let s;try{s=cw.default.statSync(i)}catch{cw.default.mkdirpSync(i)}if(s&&!s.isDirectory())throw new Error(`${i} exists, but not directory!`);let a=n.startsWith("https")?hw.https:hw.http,l=HP(n,e),u=Mf.default.extname(n);return new Promise((c,h)=>{if(t){let f=t.onCancellationRequested(()=>{f.dispose(),g.destroy(new Error("request aborted"))})}let d,g=a.request(l,f=>{var p,b;if(f.statusCode>=200&&f.statusCode<300||f.statusCode===1223){let v=f.headers||{},w=v["content-disposition"];if(!u&&w){let L=mG.default.parse(w);(p=L.parameters)!=null&&p.filename&&(u=Mf.default.extname(L.parameters.filename))}if(o===!0)if(u===".zip"||v["content-type"]=="application/zip")o="unzip";else if(u==".tgz")o="untar";else{h(new Error(`Unable to extract for ${n}`));return}let D=Number(v["content-length"]),S=0;isNaN(D)||f.on("data",L=>{S+=L.length;let j=(S/D*100).toFixed(1);r?r(j):qP.info(`Download ${n} progress ${j}%`)}),f.on("error",L=>{h(new Error(`Unable to connect ${n}: ${L.message}`))}),f.on("data",()=>{d&&(clearTimeout(d),d=void 0)}),f.on("end",()=>{qP.info("Download completed:",n)});let F;o==="untar"?F=f.pipe(bG.default.x({strip:(b=e.strip)!=null?b:1,C:i})):o==="unzip"?F=f.pipe(yG.default.Extract({path:i})):(i=Mf.default.join(i,`${Go()}${u}`),F=f.pipe(cw.default.createWriteStream(i))),F.on("finish",()=>{qP.info(`Downloaded ${n} => ${i}`),setTimeout(()=>{c(i)},100)}),F.on("error",h)}else h(new Error(`Invalid response from ${n}: ${f.statusCode}`))});g.on("error",f=>{l.agent&&f.code=="ECONNRESET"?d=setTimeout(()=>{h(f)},500):h(f)}),g.on("timeout",()=>{g.destroy(new Error(`request timeout after ${e.timeout}ms`))}),e.timeout&&g.setTimeout(e.timeout),g.end()})}var mG,hw,cw,Mf,bG,yG,qP,YP=_(()=>{"use strict";mG=C(n$()),hw=C(eE()),cw=C(Rn()),Mf=C(require("path")),bG=C(c8()),yG=C(Z8());Oe();uw();qP=q()("model-download")});function FSe(n="coc.nvim"){let e="https://registry.npmjs.org/",t=qn.default.join(LSe,".npmrc");if($t.default.existsSync(t))try{let i=$t.default.readFileSync(t,"utf8"),r={};for(let o of i.split(/\r?\n/))if(o.indexOf("=")>-1){let[s,a,l]=o.match(/^(.*?)=(.*)$/);r[a]=l}r[`${n}:registry`]?e=r[`${n}:registry`]:r.registry&&(e=r.registry)}catch(i){WP.error("Error on read .npmrc:",i)}return e.endsWith("/")?e:e+"/"}function ISe(n){let e=qn.default.basename(n);return e==="npm"||e==="npm.CMD"}function jSe(n){let e=qn.default.basename(n);return["yarn","yarn.CMD","yarnpkg","yarnpkg.CMD"].includes(e)}function ASe(n,e){let t=["install","--ignore-scripts","--no-lockfile","--production"];return e.startsWith("https://github.com")&&(t=["install"]),ISe(n)&&(t.push("--legacy-peer-deps"),t.push("--no-global")),jSe(n)&&t.push("--ignore-engines"),t}function OSe(n){let e;try{e=JSON.parse(n).dependencies||{}}catch{e={}}return zi(e,["coc.nvim","esbuild","webpack","@types/node"])}function vG(n){return!!($t.default.existsSync(n)&&$t.default.lstatSync(n).isSymbolicLink())}function fw(n,e){return t=>new CG(e,n,t)}var wG,DG,$t,gw,qn,xG,dw,WP,LSe,CG,SG=_(()=>{"use strict";wG=require("child_process"),DG=require("events"),$t=C(Rn());Eg();gw=C(require("os")),qn=C(require("path")),xG=C(require("readline")),dw=C(nf());Je();es();V();YP();uw();WP=q()("model-installer"),LSe=global.__TEST__?gw.default.tmpdir():gw.default.homedir();CG=class extends DG.EventEmitter{constructor(e,t,i){super();this.root=e;this.npm=t;this.def=i;if($t.default.existsSync(e)||$t.default.mkdirpSync(e),/^https?:/.test(i))this.url=i;else{let r=i.match(/(.+)@([^/]+)$/);r?(this.name=r[1],this.version=r[2]):this.name=i}}get info(){return{name:this.name,version:this.version}}async install(){this.log(`Using npm from: ${this.npm}`);let e=await this.getInfo();WP.info(`Fetched info of ${this.def}`,e);let{name:t}=e,i=e["engines.coc"]?e["engines.coc"].replace(/^\^/,">="):"";if(i&&!dw.default.satisfies(y.version,i))throw new Error(`${t} ${e.version} requires coc.nvim >= ${i}, please update coc.nvim.`);return await this.doInstall(e),t}async update(e){this.url=e;let t=qn.default.join(this.root,this.name);if(vG(t)){this.log("Skipped update for symbol link");return}let i;if($t.default.existsSync(qn.default.join(t,"package.json"))){let a=await $t.default.readFile(qn.default.join(t,"package.json"),"utf8");i=JSON.parse(a).version}this.log(`Using npm from: ${this.npm}`);let r=await this.getInfo();if(i&&r.version&&dw.default.gte(i,r.version)){this.log(`Current version ${i} is up to date.`);return}let o=r["engines.coc"]?r["engines.coc"].replace(/^\^/,">="):"";if(o&&!dw.default.satisfies(y.version,o))throw new Error(`${r.version} requires coc.nvim ${o}, please update coc.nvim.`);await this.doInstall(r);let s=qn.default.join(this.root,r.name,"package.json");return this.log(`Updated to v${r.version}`),qn.default.dirname(s)}async doInstall(e){let t=qn.default.join(this.root,e.name);if(vG(t))return!1;let i=await $t.default.mkdtemp(qn.default.join(gw.default.tmpdir(),`${e.name.replace("/","-")}-`)),r=e["dist.tarball"];this.log(`Downloading from ${r}`),await Nf(r,{dest:i,onProgress:d=>this.log(`Download progress ${d}%`,!0),extract:"untar"}),this.log(`Extension download at ${i}`);let o=await $t.default.readFile(qn.default.join(i,"package.json"),"utf8"),s=OSe(o);Object.keys(s).length&&await new Promise((g,f)=>{let p=ASe(this.npm,r);this.log(`Installing dependencies by: ${this.npm} ${p.join(" ")}.`);let b=(0,wG.spawn)(this.npm,p,{cwd:i});xG.default.createInterface({input:b.stdout}).on("line",D=>{this.log(`[npm] ${D}`,!0)}),b.stderr.setEncoding("utf8"),b.stdout.setEncoding("utf8"),b.on("error",f);let w="";b.stderr.on("data",D=>{w+=D}),b.on("exit",D=>{if(D){w&&this.log(w),f(new Error(`${this.npm} install exited with ${D}`));return}g()})});let a=qn.default.resolve(this.root,global.__TEST__?"":"..","package.json"),l=[];$t.default.existsSync(a)||$t.default.writeFileSync(a,"{}");let u=_c($t.default.readFileSync(a,"utf8"),l,{allowTrailingComma:!0});if(l&&l.length>0)throw new Error(`Error on load ${a}`);u.dependencies=u.dependencies||{},this.url?u.dependencies[e.name]=this.url:u.dependencies[e.name]=">="+e.version;let c={dependencies:{}};Object.keys(u.dependencies).sort().forEach(d=>{c.dependencies[d]=u.dependencies[d]});let h=await Ht(t);return h&&(h.isDirectory()?$t.default.removeSync(t):$t.default.unlinkSync(t)),await $t.default.move(i,t,{overwrite:!0}),await $t.default.writeFile(a,JSON.stringify(c,null,2),{encoding:"utf8"}),$t.default.existsSync(i)&&$t.default.rmdirSync(i),this.log(`Update package.json at ${a}`),this.log(`Installed extension ${this.name}@${e.version} at ${t}`),!0}async getInfo(){if(this.url)return await this.getInfoFromUri();let e=FSe();this.log(`Get info from ${e}`);let t=await fh(e+this.name,{timeout:1e4,buffer:!0}),i=JSON.parse(t.toString());this.version||(this.version=i["dist-tags"].latest);let r=i.versions[this.version];if(!r)throw new Error(`${this.def} doesn't exists in ${e}.`);let o=r.engines&&r.engines.coc;if(!o)throw new Error(`${this.def} is not valid coc extension, "engines" field with coc property required.`);return{"dist.tarball":r.dist.tarball,"engines.coc":o,version:r.version,name:i.name}}async getInfoFromUri(){let{url:e}=this;if(!e.startsWith("https://github.com"))throw new Error(`"${e}" is not supported, coc.nvim support github.com only`);e=e.replace(/\/$/,"");let t="master";if(e.includes("@")){let s=e.indexOf("@");t=e.substr(s+1),e=e.substring(0,s)}let i=e.replace("github.com","raw.githubusercontent.com")+`/${t}/package.json`;this.log(`Get info from ${i}`);let r=await fh(i,{timeout:1e4}),o=typeof r=="string"?JSON.parse(r):r;return this.name=o.name,{"dist.tarball":`${e}/archive/${t}.tar.gz`,"engines.coc":o.engines?o.engines.coc:null,name:o.name,version:o.version}}log(e,t=!1){WP.info(e),this.emit("message",e,t)}}});var ph,MSe,pw,TG=_(()=>{"use strict";ph=C(require("fs"));Jt();MSe=q()("model-memos"),pw=class{constructor(e){this.filepath=e;ph.default.existsSync(e)||ph.default.writeFileSync(e,"{}","utf8")}fetchContent(e,t){try{let i=ph.default.readFileSync(this.filepath,"utf8"),o=JSON.parse(i)[e];return o?o[t]:void 0}catch{return}}async update(e,t,i){let{filepath:r}=this;try{let o=ph.default.readFileSync(r,"utf8"),s=o?JSON.parse(o):{};s[e]=s[e]||{},i!==void 0?s[e][t]=_r(i):delete s[e][t],o=JSON.stringify(s,null,2),ph.default.writeFileSync(r,o,"utf8")}catch(o){MSe.error("Error on update memos:",o)}}createMemento(e){return{get:(t,i)=>{let r=this.fetchContent(e,t);return r===void 0?i:r},update:async(t,i)=>{await this.update(e,t,i)}}}}});var mw,kG=_(()=>{"use strict";we();lk();mw=class{constructor(e,t){if(typeof e!="string"&&(!e||!O.isUri(e)&&typeof e.uri!="string"))throw sk("base");if(typeof t!="string")throw sk("pattern");typeof e=="string"?this.baseUri=O.file(e):O.isUri(e)?this.baseUri=e:this.baseUri=O.parse(e.uri),this.pattern=t}toJSON(){return{pattern:this.pattern,baseUri:this.baseUri.toJSON()}}}});var PG=m((xqe,EG)=>{"use strict";EG.exports=H()});function _G(n,e){if(!n.killed)if(NSe)try{let t={stdio:["pipe","pipe","ignore"]};return e&&(t.cwd=e),Bf.execFileSync("taskkill",["/T","/F","/PID",n.pid.toString()],t),!0}catch{return!1}else if(HSe||BSe)try{let t=(0,bw.join)(qSe,"bin/terminateProcess.sh");return!Bf.spawnSync(t,[n.pid.toString()]).error}catch{return!1}else return n.kill("SIGKILL"),!0}var Bf,bw,NSe,BSe,HSe,qSe,RG=_(()=>{"use strict";Bf=C(require("child_process")),bw=require("path"),NSe=process.platform==="win32",BSe=process.platform==="darwin",HSe=process.platform==="linux",qSe=(0,bw.dirname)(__dirname)});function YSe(n){return typeof n!="number"?!1:n>=0&&n<=100}var LG,Aqe,Hf,ZP=_(()=>{"use strict";LG=C(H());z();ke();V();Aqe=q()("language-client-progressPart"),Hf=class{constructor(e,t,i,r){this.id=e;this.token=i;this.disposables=[];this._cancelled=!1;this._percent=0;this._started=!1;!y.env.dialog||this.disposables.push(t.onProgress(LG.WorkDoneProgress.type,this.token,o=>{switch(o.kind){case"begin":this.begin(o);break;case"report":this.report(o);break;case"end":this.done(o.message),r&&r(this);break}}))}begin(e){this._started||(this._started=!0,k.withProgress({source:`language-client-${this.id}`,cancellable:e.cancellable,title:e.title},(t,i)=>(this.progress=t,this.report(e),new Promise(r=>{e.cancellable&&i.onCancellationRequested(()=>{this.cancel(),r()}),this._resolve=r}))).catch(t=>{k.showErrorMessage(t.message)}).finally(()=>{this._resolve=void 0,this.progress=void 0}))}report(e){if(!this.progress)return;let t={};e.message&&(t.message=e.message),YSe(e.percentage)&&(t.increment=e.percentage-this._percent,this._percent=e.percentage),Object.keys(t).length>0&&this.progress.report(t)}cancel(){this._cancelled||(this._cancelled=!0,Z(this.disposables))}done(e){if(this.progress){let t={};e&&(t.message=e),this._percent>0&&(t.increment=100-this._percent),this.progress.report(t)}setTimeout(()=>{this._resolve&&this._resolve()},300),this.cancel()}}});var JP,$P,FG=_(()=>{"use strict";JP=C(H()),$P=class{constructor(e){this.defaultDelay=e,this.timeout=void 0,this.completionPromise=void 0,this.onSuccess=void 0,this.task=void 0}trigger(e,t=this.defaultDelay){return this.task=e,t>=0&&this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise(i=>{this.onSuccess=i}).then(()=>{this.completionPromise=void 0,this.onSuccess=void 0;let i=this.task();return this.task=void 0,i})),(t>=0||this.timeout===void 0)&&(this.timeout=(0,JP.RAL)().timer.setTimeout(()=>{this.timeout=void 0,this.onSuccess(void 0)},t>=0?t:this.defaultDelay)),this.completionPromise}forceDelivery(){if(!this.completionPromise)return;this.cancelTimeout();let e=this.task();return this.completionPromise=void 0,this.onSuccess=void 0,this.task=void 0,e}isTriggered(){return this.timeout!==void 0}cancel(){this.cancelTimeout(),this.completionPromise=void 0}dispose(){this.cancelTimeout()}cancelTimeout(){this.timeout!==void 0&&((0,JP.RAL)().timer.clearTimeout(this.timeout),this.timeout=void 0)}}});function IG(n){return{uri:n.uri,languageId:n.languageId,version:n.version,text:n.getText()}}function jG(n){return{textDocument:{uri:n.uri}}}function AG(n){return{textDocument:{uri:n.uri,version:n.version},contentChanges:[{text:n.getText()}]}}function XP(n){return{textDocument:yw(n.document),reason:n.reason}}function yw(n){return{uri:n.uri,version:n.version}}function OG(n,e){let t={textDocument:yw(n)};return e&&(t.text=n.getText()),t}function qf(n){return n.toString()}function MG(n,e,t){return{textDocument:{uri:n.uri},position:e,context:zi(t,["option"])}}function wn(n,e){return{textDocument:{uri:n.uri},position:e}}function NG(n,e,t){return{textDocument:Xl(n),position:e,context:t}}function Xl(n){return{uri:n.uri}}function BG(n,e,t){return{textDocument:{uri:n.uri},position:e,context:{includeDeclaration:t.includeDeclaration}}}function HG(n){return{textDocument:{uri:n.uri}}}function qG(n){return{textDocument:{uri:n.uri}}}var _a=_(()=>{"use strict";es()});function qe(){return re()}var vw=_(()=>{"use strict";Oe()});function WSe(n,e,t,i,r){let o=new WG,s=(0,x.createProtocolConnection)(n,e,o,r),a=[];return s.onError(u=>{t(u[0],u[1],u[2])},null,a),s.onClose(i,null,a),{listen:()=>s.listen(),unlisten:()=>{Z(a)},sendRequest:(u,...c)=>s.sendRequest(Ee(u)?u:u.method,...c),onRequest:(u,c)=>s.onRequest(Ee(u)?u:u.method,c),sendNotification:(u,c)=>s.sendNotification(Ee(u)?u:u.method,c),onNotification:(u,c)=>s.onNotification(Ee(u)?u:u.method,c),onProgress:s.onProgress,sendProgress:s.sendProgress,trace:(u,c,h)=>{let d={sendNotification:!1,traceFormat:x.TraceFormat.Text};h===void 0?s.trace(u,c,d):(Kn(h),s.trace(u,c,h))},initialize:u=>s.sendRequest(x.InitializeRequest.type,u),shutdown:()=>s.sendRequest(x.ShutdownRequest.type,void 0),exit:()=>s.sendNotification(x.ExitNotification.type),onLogMessage:u=>s.onNotification(x.LogMessageNotification.type,u),onShowMessage:u=>s.onNotification(x.ShowMessageNotification.type,u),onTelemetry:u=>s.onNotification(x.TelemetryEventNotification.type,u),didChangeConfiguration:u=>s.sendNotification(x.DidChangeConfigurationNotification.type,u),didChangeWatchedFiles:u=>s.sendNotification(x.DidChangeWatchedFilesNotification.type,u),didOpenTextDocument:u=>s.sendNotification(x.DidOpenTextDocumentNotification.type,u),didChangeTextDocument:u=>s.sendNotification(x.DidChangeTextDocumentNotification.type,u),didCloseTextDocument:u=>s.sendNotification(x.DidCloseTextDocumentNotification.type,u),didSaveTextDocument:u=>s.sendNotification(x.DidSaveTextDocumentNotification.type,u),onDiagnostics:u=>s.onNotification(x.PublishDiagnosticsNotification.type,u),end:()=>s.end(),dispose:()=>s.dispose()}}function U(n,e){return n[e]===void 0&&(n[e]={}),n[e]}var GP,x,YG,fo,WG,zP,VP,e_,ZG,ww,Dw,xw,JG,ZSe,$G,QP,po,XG,UG,GG,QG,KG,zG,VG,Me,e6,t6,i6,n6,r6,o6,s6,a6,l6,u6,c6,h6,d6,g6,f6,p6,m6,b6,mh,KP,t_,Dn=_(()=>{"use strict";GP=C(require("path")),x=C(H());we();wi();Ce();Je();In();es();Ob();ke();V();Ul();ZP();FG();YG=C(require("os"));_a();vw();yt();z();fo=q()("language-client-client"),WG=class{error(e){fo.error(e)}warn(e){fo.warn(e)}info(e){fo.info(e)}log(e){fo.log(e)}},zP=class{error(e){}warn(e){}info(e){}log(e){}};VP=(t=>(t[t.Continue=1]="Continue",t[t.Shutdown=2]="Shutdown",t))(VP||{}),e_=(t=>(t[t.DoNotRestart=1]="DoNotRestart",t[t.Restart=2]="Restart",t))(e_||{}),ZG=class{constructor(e,t){this.name=e;this.maxRestartCount=t;this.restarts=[]}error(e,t,i){return i&&i<=3?1:2}closed(){return this.restarts.push(Date.now()),this.restarts.length(r[r.Info=1]="Info",r[r.Warn=2]="Warn",r[r.Error=3]="Error",r[r.Never=4]="Never",r))(ww||{}),Dw=(i=>(i[i.Stopped=1]="Stopped",i[i.Running=2]="Running",i[i.Starting=3]="Starting",i))(Dw||{}),xw=(s=>(s[s.Initial=0]="Initial",s[s.Starting=1]="Starting",s[s.StartFailed=2]="StartFailed",s[s.Running=3]="Running",s[s.Stopping=4]="Stopping",s[s.Stopped=5]="Stopped",s))(xw||{}),JG=[x.SymbolKind.File,x.SymbolKind.Module,x.SymbolKind.Namespace,x.SymbolKind.Package,x.SymbolKind.Class,x.SymbolKind.Method,x.SymbolKind.Property,x.SymbolKind.Field,x.SymbolKind.Constructor,x.SymbolKind.Enum,x.SymbolKind.Interface,x.SymbolKind.Function,x.SymbolKind.Variable,x.SymbolKind.Constant,x.SymbolKind.String,x.SymbolKind.Number,x.SymbolKind.Boolean,x.SymbolKind.Array,x.SymbolKind.Object,x.SymbolKind.Key,x.SymbolKind.Null,x.SymbolKind.EnumMember,x.SymbolKind.Struct,x.SymbolKind.Event,x.SymbolKind.Operator,x.SymbolKind.TypeParameter],ZSe=[x.CompletionItemKind.Text,x.CompletionItemKind.Method,x.CompletionItemKind.Function,x.CompletionItemKind.Constructor,x.CompletionItemKind.Field,x.CompletionItemKind.Variable,x.CompletionItemKind.Class,x.CompletionItemKind.Interface,x.CompletionItemKind.Module,x.CompletionItemKind.Property,x.CompletionItemKind.Unit,x.CompletionItemKind.Value,x.CompletionItemKind.Enum,x.CompletionItemKind.Keyword,x.CompletionItemKind.Snippet,x.CompletionItemKind.Color,x.CompletionItemKind.File,x.CompletionItemKind.Reference,x.CompletionItemKind.Folder,x.CompletionItemKind.EnumMember,x.CompletionItemKind.Constant,x.CompletionItemKind.Struct,x.CompletionItemKind.Event,x.CompletionItemKind.Operator,x.CompletionItemKind.TypeParameter],$G=[x.SymbolTag.Deprecated];(e=>{function n(t){let i=t;return i&&Qs(i.register)&&Qs(i.unregister)&&Qs(i.dispose)&&i.registrationType!==void 0}e.is=n})(QP||(QP={}));po=class{constructor(e,t,i,r,o,s){this._client=e;this._event=t;this._type=i;this._middleware=r;this._createParams=o;this._selectorFilter=s;this._selectors=new Map}static textDocumentFilter(e,t){for(let i of e)if(y.match(i,t)>0)return!0;return!1}register(e){!e.registerOptions.documentSelector||(this._listener||(this._listener=this._event(this.callback,this)),this._selectors.set(e.id,e.registerOptions.documentSelector))}callback(e){(!this._selectorFilter||this._selectorFilter(this._selectors.values(),e))&&(this._middleware?this._middleware(e,t=>this._client.sendNotification(this._type,this._createParams(t))):this._client.sendNotification(this._type,this._createParams(e)),this.notificationSent(e))}notificationSent(e){}unregister(e){this._selectors.delete(e),this._selectors.size===0&&this._listener&&(this._listener.dispose(),this._listener=void 0)}dispose(){this._selectors.clear(),this._listener&&(this._listener.dispose(),this._listener=void 0)}getProvider(e){for(let t of this._selectors.values())if(y.match(t,e))return{send:i=>{this.callback(i)}}}},XG=class extends po{constructor(e,t){super(e,y.onDidOpenTextDocument,x.DidOpenTextDocumentNotification.type,e.clientOptions.middleware.didOpen,i=>({textDocument:IG(i)}),po.textDocumentFilter);this._syncedDocuments=t}get registrationType(){return x.DidOpenTextDocumentNotification.type}fillClientCapabilities(e){U(U(e,"textDocument"),"synchronization").dynamicRegistration=!0}initialize(e,t){let i=e.resolvedTextDocumentSync;t&&i&&i.openClose&&this.register({id:qe(),registerOptions:{documentSelector:t}})}register(e){if(super.register(e),!e.registerOptions.documentSelector)return;let t=e.registerOptions.documentSelector;y.textDocuments.forEach(i=>{let r=i.uri.toString();if(!this._syncedDocuments.has(r)&&y.match(t,i)>0){let o=this._client.clientOptions.middleware,s=a=>{this._client.sendNotification(this._type,this._createParams(a))};o.didOpen?o.didOpen(i,s):s(i),this._syncedDocuments.set(r,i)}})}notificationSent(e){super.notificationSent(e),this._syncedDocuments.set(e.uri.toString(),e)}},UG=class extends po{constructor(e,t){super(e,y.onDidCloseTextDocument,x.DidCloseTextDocumentNotification.type,e.clientOptions.middleware.didClose,i=>jG(i),po.textDocumentFilter);this._syncedDocuments=t}get registrationType(){return x.DidCloseTextDocumentNotification.type}fillClientCapabilities(e){U(U(e,"textDocument"),"synchronization").dynamicRegistration=!0}initialize(e,t){let i=e.resolvedTextDocumentSync;t&&i&&i.openClose&&this.register({id:qe(),registerOptions:{documentSelector:t}})}notificationSent(e){super.notificationSent(e),this._syncedDocuments.delete(e.uri.toString())}unregister(e){let t=this._selectors.get(e);super.unregister(e);let i=this._selectors.values();this._syncedDocuments.forEach(r=>{if(y.match(t,r)>0&&!this._selectorFilter(i,r)){let o=this._client.clientOptions.middleware,s=a=>{this._client.sendNotification(this._type,this._createParams(a))};this._syncedDocuments.delete(r.uri.toString()),o.didClose?o.didClose(r,s):s(r)}})}},GG=class{constructor(e){this._client=e;this._changeData=new Map}get registrationType(){return x.DidChangeTextDocumentNotification.type}fillClientCapabilities(e){U(U(e,"textDocument"),"synchronization").dynamicRegistration=!0}initialize(e,t){let i=e.resolvedTextDocumentSync;t&&i&&i.change!==void 0&&i.change!==x.TextDocumentSyncKind.None&&this.register({id:qe(),registerOptions:Object.assign({},{documentSelector:t},{syncKind:i.change})})}register(e){!e.registerOptions.documentSelector||(this._listener||(this._listener=y.onDidChangeTextDocument(t=>{this.callback({textDocument:t.textDocument,contentChanges:t.contentChanges.slice()})},this)),this._changeData.set(e.id,{documentSelector:e.registerOptions.documentSelector,syncKind:e.registerOptions.syncKind}))}callback(e){if(e.contentChanges.length===0)return;let t=y.getDocument(e.textDocument.uri);if(!t)return;let{textDocument:i}=t;for(let r of this._changeData.values())if(y.match(r.documentSelector,i)>0){let o=this._client.clientOptions.middleware;if(r.syncKind===x.TextDocumentSyncKind.Incremental){let s=a=>{this._client.sendNotification(x.DidChangeTextDocumentNotification.type,zi(a,["bufnr","original","originalLines"]))};o.didChange?o.didChange(e,s):s(e)}else if(r.syncKind===x.TextDocumentSyncKind.Full){let s=()=>{this._client.sendNotification(x.DidChangeTextDocumentNotification.type,AG(i))};o.didChange?o.didChange(e,s):s(e)}}}unregister(e){this._changeData.delete(e),this._changeData.size===0&&this._listener&&(this._listener.dispose(),this._listener=void 0)}dispose(){this._changeData.clear(),this._listener&&(this._listener.dispose(),this._listener=void 0)}getProvider(e){for(let t of this._changeData.values())if(y.match(t.documentSelector,e))return{send:i=>{this.callback(i)}}}},QG=class extends po{constructor(e){super(e,y.onWillSaveTextDocument,x.WillSaveTextDocumentNotification.type,e.clientOptions.middleware.willSave,t=>XP(t),(t,i)=>po.textDocumentFilter(t,i.document))}get registrationType(){return x.WillSaveTextDocumentNotification.type}fillClientCapabilities(e){let t=U(U(e,"textDocument"),"synchronization");t.willSave=!0}initialize(e,t){let i=e.resolvedTextDocumentSync;t&&i&&i.willSave&&this.register({id:qe(),registerOptions:{documentSelector:t}})}},KG=class{constructor(e){this._client=e;this._selectors=new Map}get registrationType(){return x.WillSaveTextDocumentWaitUntilRequest.type}fillClientCapabilities(e){let t=U(U(e,"textDocument"),"synchronization");t.willSaveWaitUntil=!0}initialize(e,t){let i=e.resolvedTextDocumentSync;t&&i&&i.willSaveWaitUntil&&this.register({id:qe(),registerOptions:{documentSelector:t}})}register(e){!e.registerOptions.documentSelector||(this._listener||(this._listener=y.onWillSaveTextDocument(this.callback,this)),this._selectors.set(e.id,e.registerOptions.documentSelector))}callback(e){if(po.textDocumentFilter(this._selectors.values(),e.document)){let t=this._client.clientOptions.middleware,i=r=>this._client.sendRequest(x.WillSaveTextDocumentWaitUntilRequest.type,XP(r)).then(o=>o||[],o=>(k.showMessage(`Error on willSaveWaitUntil: ${o}`,"error"),fo.error(o),[]));e.waitUntil(t.willSaveWaitUntil?t.willSaveWaitUntil(e,i):i(e))}}unregister(e){this._selectors.delete(e),this._selectors.size===0&&this._listener&&(this._listener.dispose(),this._listener=void 0)}dispose(){this._selectors.clear(),this._listener&&(this._listener.dispose(),this._listener=void 0)}},zG=class extends po{constructor(e){super(e,y.onDidSaveTextDocument,x.DidSaveTextDocumentNotification.type,e.clientOptions.middleware.didSave,t=>OG(t,this._includeText),po.textDocumentFilter);this._includeText=!1}get registrationType(){return x.DidSaveTextDocumentNotification.type}fillClientCapabilities(e){U(U(e,"textDocument"),"synchronization").didSave=!0}initialize(e,t){let i=e.resolvedTextDocumentSync;if(t&&i&&i.save){let r=typeof i.save=="boolean"?{includeText:!1}:{includeText:!!i.save.includeText};this.register({id:qe(),registerOptions:Object.assign({},{documentSelector:t},r)})}}register(e){this._includeText=!!e.registerOptions.includeText,super.register(e)}},VG=class{constructor(e,t){this._notifyFileEvent=t;this._watchers=new Map}get registrationType(){return x.DidChangeWatchedFilesNotification.type}fillClientCapabilities(e){U(U(e,"workspace"),"didChangeWatchedFiles").dynamicRegistration=!0}initialize(e,t){}register(e){if(!Array.isArray(e.registerOptions.watchers))return;let t=[];for(let i of e.registerOptions.watchers){if(!Ee(i.globPattern))continue;let r=!0,o=!0,s=!0;i.kind!=null&&(r=(i.kind&x.WatchKind.Create)!==0,o=(i.kind&x.WatchKind.Change)!=0,s=(i.kind&x.WatchKind.Delete)!=0);let a=y.createFileSystemWatcher(i.globPattern,!r,!o,!s);this.hookListeners(a,r,o,s,t),t.push(a)}this._watchers.set(e.id,t)}registerRaw(e,t){let i=[];for(let r of t)i.push(r),this.hookListeners(r,!0,!0,!0,i);this._watchers.set(e,i)}hookListeners(e,t,i,r,o){t&&e.onDidCreate(s=>this._notifyFileEvent({uri:qf(s),type:x.FileChangeType.Created}),null,o),i&&e.onDidChange(s=>this._notifyFileEvent({uri:qf(s),type:x.FileChangeType.Changed}),null,o),r&&e.onDidDelete(s=>this._notifyFileEvent({uri:qf(s),type:x.FileChangeType.Deleted}),null,o)}unregister(e){let t=this._watchers.get(e);if(t)for(let i of t)i.dispose()}dispose(){this._watchers.forEach(e=>{for(let t of e)t.dispose()}),this._watchers.clear()}},Me=class{constructor(e,t){this._client=e;this._registrationType=t;this._registrations=new Map}get registrationType(){return this._registrationType}register(e){if(!e.registerOptions.documentSelector)return;let t=this.registerLanguageProvider(e.registerOptions);this._registrations.set(e.id,{disposable:t[0],data:e,provider:t[1]})}unregister(e){let t=this._registrations.get(e);t&&t.disposable.dispose()}dispose(){this._registrations.forEach(e=>{e.disposable.dispose()}),this._registrations.clear()}getRegistration(e,t){if(t){if(x.TextDocumentRegistrationOptions.is(t)){let i=x.StaticRegistrationOptions.hasId(t)?t.id:qe(),r=t.documentSelector||e;if(r)return[i,Object.assign({},t,{documentSelector:r})]}else if(Kn(t)&&t===!0||x.WorkDoneProgressOptions.is(t)){if(!e)return[void 0,void 0];let i=Kn(t)&&t===!0?{documentSelector:e}:Object.assign({},t,{documentSelector:e});return[qe(),i]}}else return[void 0,void 0];return[void 0,void 0]}getRegistrationOptions(e,t){if(!(!e||!t))return Kn(t)&&t===!0?{documentSelector:e}:Object.assign({},t,{documentSelector:e})}getProvider(e){for(let t of this._registrations.values()){let i=t.data.registerOptions.documentSelector;if(i!==null&&y.match(i,e)>0)return t.provider}}getAllProviders(){let e=[];for(let t of this._registrations.values())e.push(t.provider);return e}},e6=class{constructor(e,t){this._client=e;this._registrationType=t;this._registrations=new Map}get registrationType(){return this._registrationType}register(e){let t=this.registerLanguageProvider(e.registerOptions);this._registrations.set(e.id,{disposable:t[0],provider:t[1]})}unregister(e){let t=this._registrations.get(e);t&&t.disposable.dispose()}dispose(){this._registrations.forEach(e=>{e.disposable.dispose()}),this._registrations.clear()}getProviders(){let e=[];for(let t of this._registrations.values())e.push(t.provider);return e}},t6=class extends Me{constructor(e){super(e,x.CompletionRequest.type)}fillClientCapabilities(e){let t=this._client.clientOptions.disableSnippetCompletion!==!0,i=U(U(e,"textDocument"),"completion");i.dynamicRegistration=!0,i.contextSupport=!0,i.completionItem={snippetSupport:t,commitCharactersSupport:!0,documentationFormat:this._client.supportedMarkupKind,deprecatedSupport:!0,preselectSupport:!0,insertReplaceSupport:!0,tagSupport:{valueSet:[x.CompletionItemTag.Deprecated]},resolveSupport:{properties:["documentation","detail","additionalTextEdits"]},insertTextModeSupport:{valueSet:[x.InsertTextMode.asIs,x.InsertTextMode.adjustIndentation]}},i.completionItemKind={valueSet:ZSe},i.insertTextMode=x.InsertTextMode.adjustIndentation}initialize(e,t){this.index=0;let i=this.getRegistrationOptions(t,e.completionProvider);!i||this.register({id:qe(),registerOptions:i})}registerLanguageProvider(e){let t=e.triggerCharacters||[],i=e.allCommitCharacters||[],r=e.priority,o={provideCompletionItems:(l,u,c,h)=>{let d=this._client,g=this._client.clientOptions.middleware,f=(p,b,v,w)=>d.sendRequest(x.CompletionRequest.type,MG(p,b,v),w).then(D=>D!=null?D:[],D=>d.handleFailedRequest(x.CompletionRequest.type,w,D,[]));return g.provideCompletionItem?g.provideCompletionItem(l,u,h,c,f):f(l,u,h,c)},resolveCompletionItem:e.resolveProvider?(l,u)=>{let c=this._client,h=this._client.clientOptions.middleware,d=(g,f)=>c.sendRequest(x.CompletionResolveRequest.type,g,f).then(p=>p,p=>c.handleFailedRequest(x.CompletionResolveRequest.type,f,p,g));return h.resolveCompletionItem?h.resolveCompletionItem(l,u,d):d(l,u)}:void 0},s=this._client.id+(this.index?"-"+this.index:"");Lt.removeSource(s);let a=A.registerCompletionItemProvider(s,"LS",e.documentSelector||this._client.clientOptions.documentSelector,o,t,r,i);return this.index=this.index+1,[a,o]}},i6=class extends Me{constructor(e){super(e,x.HoverRequest.type)}fillClientCapabilities(e){let t=U(U(e,"textDocument"),"hover");t.dynamicRegistration=!0,t.contentFormat=this._client.supportedMarkupKind}initialize(e,t){let i=this.getRegistrationOptions(t,e.hoverProvider);!i||this.register({id:qe(),registerOptions:i})}registerLanguageProvider(e){let t={provideHover:(i,r,o)=>{let s=this._client,a=(u,c,h)=>s.sendRequest(x.HoverRequest.type,wn(u,c),h).then(d=>d,d=>s.handleFailedRequest(x.HoverRequest.type,h,d,null)),l=s.clientOptions.middleware;return l.provideHover?l.provideHover(i,r,o,a):a(i,r,o)}};return[A.registerHoverProvider(e.documentSelector,t),t]}},n6=class extends Me{constructor(e){super(e,x.SignatureHelpRequest.type)}fillClientCapabilities(e){let t=U(U(e,"textDocument"),"signatureHelp");t.dynamicRegistration=!0,t.contextSupport=!0,t.signatureInformation={documentationFormat:this._client.supportedMarkupKind,activeParameterSupport:!0,parameterInformation:{labelOffsetSupport:!0}}}initialize(e,t){let i=this.getRegistrationOptions(t,e.signatureHelpProvider);!i||this.register({id:qe(),registerOptions:i})}registerLanguageProvider(e){let t={provideSignatureHelp:(o,s,a,l)=>{let u=this._client,c=(d,g,f,p)=>u.sendRequest(x.SignatureHelpRequest.type,NG(d,g,f),p).then(b=>b,b=>u.handleFailedRequest(x.SignatureHelpRequest.type,p,b,null)),h=u.clientOptions.middleware;return h.provideSignatureHelp?h.provideSignatureHelp(o,s,l,a,c):c(o,s,l,a)}},i=e.triggerCharacters||[];return[A.registerSignatureHelpProvider(e.documentSelector,t,i),t]}},r6=class extends Me{constructor(e){super(e,x.DefinitionRequest.type)}fillClientCapabilities(e){let t=U(U(e,"textDocument"),"definition");t.dynamicRegistration=!0}initialize(e,t){let i=this.getRegistrationOptions(t,e.definitionProvider);!i||this.register({id:qe(),registerOptions:i})}registerLanguageProvider(e){let t={provideDefinition:(i,r,o)=>{let s=this._client,a=(u,c,h)=>s.sendRequest(x.DefinitionRequest.type,wn(u,c),h).then(d=>d,d=>s.handleFailedRequest(x.DefinitionRequest.type,h,d,null)),l=s.clientOptions.middleware;return l.provideDefinition?l.provideDefinition(i,r,o,a):a(i,r,o)}};return[A.registerDefinitionProvider(e.documentSelector,t),t]}},o6=class extends Me{constructor(e){super(e,x.ReferencesRequest.type)}fillClientCapabilities(e){U(U(e,"textDocument"),"references").dynamicRegistration=!0}initialize(e,t){let i=this.getRegistrationOptions(t,e.referencesProvider);!i||this.register({id:qe(),registerOptions:i})}registerLanguageProvider(e){let t={provideReferences:(i,r,o,s)=>{let a=this._client,l=(c,h,d,g)=>a.sendRequest(x.ReferencesRequest.type,BG(c,h,d),g).then(f=>f,f=>a.handleFailedRequest(x.ReferencesRequest.type,g,f,null)),u=a.clientOptions.middleware;return u.provideReferences?u.provideReferences(i,r,o,s,l):l(i,r,o,s)}};return[A.registerReferencesProvider(e.documentSelector,t),t]}},s6=class extends Me{constructor(e){super(e,x.DocumentHighlightRequest.type)}fillClientCapabilities(e){U(U(e,"textDocument"),"documentHighlight").dynamicRegistration=!0}initialize(e,t){let i=this.getRegistrationOptions(t,e.documentHighlightProvider);!i||this.register({id:qe(),registerOptions:i})}registerLanguageProvider(e){let t={provideDocumentHighlights:(i,r,o)=>{let s=this._client,a=(u,c,h)=>s.sendRequest(x.DocumentHighlightRequest.type,wn(u,c),h).then(d=>d,d=>s.handleFailedRequest(x.DocumentHighlightRequest.type,h,d,null)),l=s.clientOptions.middleware;return l.provideDocumentHighlights?l.provideDocumentHighlights(i,r,o,a):a(i,r,o)}};return[A.registerDocumentHighlightProvider(e.documentSelector,t),t]}},a6=class extends Me{constructor(e){super(e,x.DocumentSymbolRequest.type)}fillClientCapabilities(e){let t=U(U(e,"textDocument"),"documentSymbol");t.dynamicRegistration=!0,t.symbolKind={valueSet:JG},t.hierarchicalDocumentSymbolSupport=!0,t.tagSupport={valueSet:$G},t.labelSupport=!0}initialize(e,t){let i=this.getRegistrationOptions(t,e.documentSymbolProvider);!i||this.register({id:qe(),registerOptions:i})}registerLanguageProvider(e){let t={provideDocumentSymbols:(r,o)=>{let s=this._client,a=(u,c)=>s.sendRequest(x.DocumentSymbolRequest.type,HG(u),c).then(h=>{if(h!==null){if(h.length===0)return[];{let d=h[0];return x.DocumentSymbol.is(d),h}}},h=>s.handleFailedRequest(x.DocumentSymbolRequest.type,c,h,null)),l=s.clientOptions.middleware;return l.provideDocumentSymbols?l.provideDocumentSymbols(r,o,a):a(r,o)}},i=e.label?{label:e.label}:void 0;return[A.registerDocumentSymbolProvider(e.documentSelector,t,i),t]}},l6=class extends e6{constructor(e){super(e,x.WorkspaceSymbolRequest.type)}fillClientCapabilities(e){let t=U(U(e,"workspace"),"symbol");t.dynamicRegistration=!0,t.symbolKind={valueSet:JG},t.tagSupport={valueSet:$G}}initialize(e){!e.workspaceSymbolProvider||this.register({id:qe(),registerOptions:e.workspaceSymbolProvider===!0?{workDoneProgress:!1}:e.workspaceSymbolProvider})}registerLanguageProvider(e){let t={provideWorkspaceSymbols:(i,r)=>{let o=this._client,s=(l,u)=>o.sendRequest(x.WorkspaceSymbolRequest.type,{query:l},u).then(c=>c,c=>o.handleFailedRequest(x.WorkspaceSymbolRequest.type,u,c,null)),a=o.clientOptions.middleware;return a.provideWorkspaceSymbols?a.provideWorkspaceSymbols(i,r,s):s(i,r)}};return[A.registerWorkspaceSymbolProvider(t),t]}},u6=class extends Me{constructor(e){super(e,x.CodeActionRequest.type);this.disposables=[]}fillClientCapabilities(e){let t=U(U(e,"textDocument"),"codeAction");t.dynamicRegistration=!0,t.isPreferredSupport=!0,t.disabledSupport=!0,t.dataSupport=!0,t.honorsChangeAnnotations=!1,t.resolveSupport={properties:["edit"]},t.codeActionLiteralSupport={codeActionKind:{valueSet:[x.CodeActionKind.Empty,x.CodeActionKind.QuickFix,x.CodeActionKind.Refactor,x.CodeActionKind.RefactorExtract,x.CodeActionKind.RefactorInline,x.CodeActionKind.RefactorRewrite,x.CodeActionKind.Source,x.CodeActionKind.SourceOrganizeImports]}}}initialize(e,t){let i=this.getRegistrationOptions(t,e.codeActionProvider);!i||this.register({id:qe(),registerOptions:i})}registerLanguageProvider(e){let t=r=>{if(oe.has(r))return;let o=this._client,s=(l,u)=>{let c={command:l,arguments:u};return o.sendRequest(x.ExecuteCommandRequest.type,c).then(void 0,h=>{throw o.handleFailedRequest(x.ExecuteCommandRequest.type,void 0,h,void 0),h})},a=o.clientOptions.middleware;this.disposables.push(oe.registerCommand(r,(...l)=>a.executeCommand?a.executeCommand(r,l,s):s(r,l),null,!0))},i={provideCodeActions:(r,o,s,a)=>{let l=this._client,u=(h,d,g,f)=>{let p={textDocument:{uri:h.uri},range:d,context:g};return l.sendRequest(x.CodeActionRequest.type,p,f).then(b=>{if(b!==null)return b.forEach(v=>{var D;let w=x.Command.is(v)?v.command:(D=v.command)==null?void 0:D.command;w&&!oe.has(w)&&t(w)}),b},b=>l.handleFailedRequest(x.CodeActionRequest.type,f,b,null))},c=l.clientOptions.middleware;return c.provideCodeActions?c.provideCodeActions(r,o,s,a,u):u(r,o,s,a)},resolveCodeAction:e.resolveProvider?(r,o)=>{let s=this._client,a=this._client.clientOptions.middleware,l=(u,c)=>s.sendRequest(x.CodeActionResolveRequest.type,u,c).then(h=>h,h=>s.handleFailedRequest(x.CodeActionResolveRequest.type,c,h,u));return a.resolveCodeAction?a.resolveCodeAction(r,o,l):l(r,o)}:void 0};return[A.registerCodeActionProvider(e.documentSelector,i,this._client.id,e.codeActionKinds),i]}dispose(){this.disposables.forEach(e=>{e.dispose()}),this.disposables=[],super.dispose()}},c6=class extends Me{constructor(e){super(e,x.CodeLensRequest.type)}fillClientCapabilities(e){U(U(e,"textDocument"),"codeLens").dynamicRegistration=!0,U(U(e,"workspace"),"codeLens").refreshSupport=!0}initialize(e,t){this._client.onRequest(x.CodeLensRefreshRequest.type,async()=>{for(let o of this.getAllProviders())o.onDidChangeCodeLensEmitter.fire()});let r=this.getRegistrationOptions(t,e.codeLensProvider);!r||this.register({id:qe(),registerOptions:r})}registerLanguageProvider(e){let t=new x.Emitter,i={onDidChangeCodeLenses:t.event,provideCodeLenses:(r,o)=>{let s=this._client,a=(u,c)=>s.sendRequest(x.CodeLensRequest.type,qG(u),c).then(h=>h,h=>s.handleFailedRequest(x.CodeLensRequest.type,c,h,null)),l=s.clientOptions.middleware;return l.provideCodeLenses?l.provideCodeLenses(r,o,a):a(r,o)},resolveCodeLens:e.resolveProvider?(r,o)=>{let s=this._client,a=(u,c)=>s.sendRequest(x.CodeLensResolveRequest.type,u,c).then(h=>h,h=>s.handleFailedRequest(x.CodeLensResolveRequest.type,c,h,u)),l=s.clientOptions.middleware;return l.resolveCodeLens?l.resolveCodeLens(r,o,a):a(r,o)}:void 0};return[A.registerCodeLensProvider(e.documentSelector,i),{provider:i,onDidChangeCodeLensEmitter:t}]}},h6=class extends Me{constructor(e){super(e,x.DocumentFormattingRequest.type)}fillClientCapabilities(e){U(U(e,"textDocument"),"formatting").dynamicRegistration=!0}initialize(e,t){let i=this.getRegistrationOptions(t,e.documentFormattingProvider);!i||this.register({id:qe(),registerOptions:i})}registerLanguageProvider(e){let t={provideDocumentFormattingEdits:(i,r,o)=>{let s=this._client,a=(u,c,h)=>{let d={textDocument:{uri:u.uri},options:c};return s.sendRequest(x.DocumentFormattingRequest.type,d,h).then(g=>g,g=>s.handleFailedRequest(x.DocumentFormattingRequest.type,h,g,null))},l=s.clientOptions.middleware;return l.provideDocumentFormattingEdits?l.provideDocumentFormattingEdits(i,r,o,a):a(i,r,o)}};return[A.registerDocumentFormatProvider(e.documentSelector,t,this._client.clientOptions.formatterPriority),t]}},d6=class extends Me{constructor(e){super(e,x.DocumentRangeFormattingRequest.type)}fillClientCapabilities(e){U(U(e,"textDocument"),"rangeFormatting").dynamicRegistration=!0}initialize(e,t){let i=this.getRegistrationOptions(t,e.documentRangeFormattingProvider);!i||this.register({id:qe(),registerOptions:i})}registerLanguageProvider(e){let t={provideDocumentRangeFormattingEdits:(i,r,o,s)=>{let a=this._client,l=(c,h,d,g)=>{let f={textDocument:{uri:c.uri},range:h,options:d};return a.sendRequest(x.DocumentRangeFormattingRequest.type,f,g).then(p=>p,p=>a.handleFailedRequest(x.DocumentRangeFormattingRequest.type,g,p,null))},u=a.clientOptions.middleware;return u.provideDocumentRangeFormattingEdits?u.provideDocumentRangeFormattingEdits(i,r,o,s,l):l(i,r,o,s)}};return[A.registerDocumentRangeFormatProvider(e.documentSelector,t),t]}},g6=class extends Me{constructor(e){super(e,x.DocumentOnTypeFormattingRequest.type)}fillClientCapabilities(e){U(U(e,"textDocument"),"onTypeFormatting").dynamicRegistration=!0}initialize(e,t){let i=this.getRegistrationOptions(t,e.documentOnTypeFormattingProvider);!i||this.register({id:qe(),registerOptions:i})}registerLanguageProvider(e){let t={provideOnTypeFormattingEdits:(o,s,a,l,u)=>{let c=this._client,h=(g,f,p,b,v)=>{let w={textDocument:yw(g),position:f,ch:p,options:b};return c.sendRequest(x.DocumentOnTypeFormattingRequest.type,w,v).then(D=>D,D=>c.handleFailedRequest(x.DocumentOnTypeFormattingRequest.type,v,D,null))},d=c.clientOptions.middleware;return d.provideOnTypeFormattingEdits?d.provideOnTypeFormattingEdits(o,s,a,l,u,h):h(o,s,a,l,u)}},i=e.moreTriggerCharacter||[],r=[e.firstTriggerCharacter,...i];return[A.registerOnTypeFormattingEditProvider(e.documentSelector,t,r),t]}},f6=class extends Me{constructor(e){super(e,x.RenameRequest.type)}fillClientCapabilities(e){let t=U(U(e,"textDocument"),"rename");t.dynamicRegistration=!0,t.prepareSupport=!0}initialize(e,t){let i=this.getRegistrationOptions(t,e.renameProvider);!i||(Kn(e.renameProvider)&&(i.prepareProvider=!1),this.register({id:qe(),registerOptions:i}))}registerLanguageProvider(e){let t={provideRenameEdits:(i,r,o,s)=>{let a=this._client,l=(c,h,d,g)=>{let f={textDocument:{uri:c.uri},position:h,newName:d};return a.sendRequest(x.RenameRequest.type,f,g).then(p=>p,p=>a.handleFailedRequest(x.RenameRequest.type,g,p,null))},u=a.clientOptions.middleware;return u.provideRenameEdits?u.provideRenameEdits(i,r,o,s,l):l(i,r,o,s)},prepareRename:e.prepareProvider?(i,r,o)=>{let s=this._client,a=(u,c,h)=>{let d={textDocument:Xl(u),position:c};return s.sendRequest(x.PrepareRenameRequest.type,d,h).then(g=>x.Range.is(g)?g:this.isDefaultBehavior(g)?g.defaultBehavior===!0?null:Promise.reject(new Error("The element can't be renamed.")):g&&x.Range.is(g.range)?{range:g.range,placeholder:g.placeholder}:Promise.reject(new Error("The element can't be renamed.")),g=>s.handleFailedRequest(x.PrepareRenameRequest.type,h,g,void 0))},l=s.clientOptions.middleware;return l.prepareRename?l.prepareRename(i,r,o,a):a(i,r,o)}:void 0};return[A.registerRenameProvider(e.documentSelector,t),t]}isDefaultBehavior(e){let t=e;return t&&Kn(t.defaultBehavior)}},p6=class extends Me{constructor(e){super(e,x.DocumentLinkRequest.type)}fillClientCapabilities(e){let t=U(U(e,"textDocument"),"documentLink");t.dynamicRegistration=!0,t.tooltipSupport=!0}initialize(e,t){let i=this.getRegistrationOptions(t,e.documentLinkProvider);!i||this.register({id:qe(),registerOptions:i})}registerLanguageProvider(e){let t={provideDocumentLinks:(i,r)=>{let o=this._client,s=(l,u)=>o.sendRequest(x.DocumentLinkRequest.type,{textDocument:{uri:l.uri}},u).then(c=>c,c=>o.handleFailedRequest(x.DocumentLinkRequest.type,u,c,null)),a=o.clientOptions.middleware;return a.provideDocumentLinks?a.provideDocumentLinks(i,r,s):s(i,r)},resolveDocumentLink:e.resolveProvider?(i,r)=>{let o=this._client,s=(l,u)=>o.sendRequest(x.DocumentLinkResolveRequest.type,l,u).then(c=>c,c=>o.handleFailedRequest(x.DocumentLinkResolveRequest.type,u,c,l)),a=o.clientOptions.middleware;return a.resolveDocumentLink?a.resolveDocumentLink(i,r,s):s(i,r)}:void 0};return[A.registerDocumentLinkProvider(e.documentSelector,t),t]}},m6=class{constructor(e){this._client=e;this._listeners=new Map}get registrationType(){return x.DidChangeConfigurationNotification.type}fillClientCapabilities(e){U(U(e,"workspace"),"didChangeConfiguration").dynamicRegistration=!0}initialize(){var t;let e=(t=this._client.clientOptions.synchronize)==null?void 0:t.configurationSection;e!==void 0&&this.register({id:qe(),registerOptions:{section:e}})}register(e){let{section:t}=e.registerOptions,i=y.onDidChangeConfiguration(r=>{this.onDidChangeConfiguration(e.registerOptions.section,r)});this._listeners.set(e.id,i),t!=null&&this.onDidChangeConfiguration(t,void 0)}unregister(e){let t=this._listeners.get(e);t&&(this._listeners.delete(e),t.dispose())}dispose(){for(let e of this._listeners.values())e.dispose();this._listeners.clear()}onDidChangeConfiguration(e,t){let i=typeof e=="string"&&e.startsWith("languageserver."),r;if(Ee(e)?r=[e]:r=e,r!=null&&t!=null&&!r.some(l=>t.affectsConfiguration(l)))return;let o=a=>{if(a==null){this._client.sendNotification(x.DidChangeConfigurationNotification.type,{settings:null});return}this._client.sendNotification(x.DidChangeConfigurationNotification.type,{settings:i?this.getConfiguredSettings(a[0]):this.extractSettingsInformation(a)})},s=this.getMiddleware();s?s(r,o):o(r)}getConfiguredSettings(e){let t=9,i=y.getConfiguration(e.slice(0,-t));return aY(i.get("settings",{}))}extractSettingsInformation(e){function t(r,o){let s=r;for(let a=0;a=0?a=y.getConfiguration(o.substr(0,s)).get(o.substr(s+1)):a=y.getConfiguration(o),a){let l=e[r].split(".");t(i,l)[l[l.length-1]]=a}}return i}getMiddleware(){let e=this._client.clientOptions.middleware;if(e.workspace&&e.workspace.didChangeConfiguration)return e.workspace.didChangeConfiguration}},b6=class{constructor(e){this._client=e;this._commands=new Map}get registrationType(){return x.ExecuteCommandRequest.type}fillClientCapabilities(e){U(U(e,"workspace"),"executeCommand").dynamicRegistration=!0}initialize(e){!e.executeCommandProvider||this.register({id:qe(),registerOptions:Object.assign({},e.executeCommandProvider)})}register(e){let t=this._client,i=t.clientOptions.middleware,r=(o,s)=>{let a={command:o,arguments:s};return t.sendRequest(x.ExecuteCommandRequest.type,a).then(void 0,l=>{throw t.handleFailedRequest(x.ExecuteCommandRequest.type,void 0,l,void 0),l})};if(e.registerOptions.commands){let o=[];for(let s of e.registerOptions.commands)o.push(oe.registerCommand(s,(...a)=>i.executeCommand?i.executeCommand(s,a,r):r(s,a),null,!0));this._commands.set(e.id,o)}}unregister(e){let t=this._commands.get(e);t&&t.forEach(i=>i.dispose())}dispose(){this._commands.forEach(e=>{e.forEach(t=>t.dispose())}),this._commands.clear()}};(e=>{function n(t){return t&&x.MessageReader.is(t.reader)&&x.MessageWriter.is(t.writer)}e.is=n})(mh||(mh={}));KP=class{constructor(e,t){this._resolve=e;this._reject=t;this._used=!1}get isUsed(){return this._used}resolve(){this._used=!0,this._resolve()}reject(e){this._used=!0,this._reject(e)}},t_=class{constructor(e,t,i){this._features=[];this._dynamicFeatures=new Map;var l;this._id=e,this._name=t,i.outputChannel?this._outputChannel=i.outputChannel:this._outputChannel=void 0;let r=!1;(y.getConfiguration("suggest").get("snippetsSupport",!0)===!1||i.disableSnippetCompletion)&&(r=!0);let s={isTrusted:!1,supportHtml:!1};i.markdown!=null&&(s.isTrusted=i.markdown.isTrusted===!0,s.supportHtml=i.markdown.supportHtml===!0),this._clientOptions={disableSnippetCompletion:r,disableDynamicRegister:i.disableDynamicRegister,disabledFeatures:i.disabledFeatures||[],formatterPriority:i.formatterPriority,ignoredRootPaths:i.ignoredRootPaths,documentSelector:i.documentSelector||[],synchronize:i.synchronize||{},diagnosticCollectionName:i.diagnosticCollectionName,outputChannelName:i.outputChannelName||this._id,revealOutputChannelOn:i.revealOutputChannelOn||4,stdioEncoding:i.stdioEncoding||"utf8",initializationOptions:i.initializationOptions,initializationFailedHandler:i.initializationFailedHandler,progressOnInitialization:!!i.progressOnInitialization,errorHandler:i.errorHandler||this.createDefaultErrorHandler((l=i.connectionOptions)==null?void 0:l.maxRestartCount),middleware:i.middleware||{},workspaceFolder:i.workspaceFolder,connectionOptions:i.connectionOptions,markdown:s};for(let u of["disableCompletion","disableWorkspaceFolders","disableDiagnostics"])if(typeof i[u]=="boolean"){let c=` +`)===-1){tf("have not received end of HTTP headers yet..."),o();return}let p=d.toString("ascii",0,d.indexOf(`\r +`)),f=+p.split(" ")[1];tf("got proxy server response: %o",p),e({statusCode:f,buffered:d})}n.on("error",u),n.on("close",a),n.on("end",l),o()})}nf.default=$0e});var w6=y(au=>{"use strict";var X0e=au&&au.__awaiter||function(n,e,t,i){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(c){try{u(i.next(c))}catch(h){s(h)}}function l(c){try{u(i.throw(c))}catch(h){s(h)}}function u(c){c.done?o(c.value):r(c.value).then(a,l)}u((i=i.apply(n,e||[])).next())})},kh=au&&au.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(au,"__esModule",{value:!0});var y6=kh(require("net")),b6=kh(require("tls")),U0e=kh(require("url")),G0e=kh(require("assert")),K0e=kh(Wt()),Q0e=T_(),z0e=kh(m6()),rf=K0e.default("https-proxy-agent:agent"),v6=class extends Q0e.Agent{constructor(e){let t;if(typeof e=="string"?t=U0e.default.parse(e):t=e,!t)throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!");rf("creating new HttpsProxyAgent instance: %o",t);super(t);let i=Object.assign({},t);this.secureProxy=t.secureProxy||tTe(i.protocol),i.host=i.hostname||i.host,typeof i.port=="string"&&(i.port=parseInt(i.port,10)),!i.port&&i.host&&(i.port=this.secureProxy?443:80),this.secureProxy&&!("ALPNProtocols"in i)&&(i.ALPNProtocols=["http 1.1"]),i.host&&i.path&&(delete i.path,delete i.pathname),this.proxy=i}callback(e,t){return X0e(this,void 0,void 0,function*(){let{proxy:i,secureProxy:r}=this,o;r?(rf("Creating `tls.Socket`: %o",i),o=b6.default.connect(i)):(rf("Creating `net.Socket`: %o",i),o=y6.default.connect(i));let s=Object.assign({},i.headers),l=`CONNECT ${`${t.host}:${t.port}`} HTTP/1.1\r +`;i.auth&&(s["Proxy-Authorization"]=`Basic ${Buffer.from(i.auth).toString("base64")}`);let{host:u,port:c,secureEndpoint:h}=t;eTe(c,h)||(u+=`:${c}`),s.Host=u,s.Connection="close";for(let m of Object.keys(s))l+=`${m}: ${s[m]}\r +`;let d=z0e.default(o);o.write(`${l}\r +`);let{statusCode:g,buffered:p}=yield d;if(g===200){if(e.once("socket",V0e),t.secureEndpoint){let m=t.servername||t.host;if(!m)throw new Error('Could not determine "servername"');return rf("Upgrading socket connection to TLS"),b6.default.connect(Object.assign(Object.assign({},iTe(t,"host","hostname","path","port")),{socket:o,servername:m}))}return o}o.destroy();let f=new y6.default.Socket;return f.readable=!0,e.once("socket",m=>{rf("replaying proxy buffer for failed request"),G0e.default(m.listenerCount("data")>0),m.push(p),m.push(null)}),f})}};au.default=v6;function V0e(n){n.resume()}function eTe(n,e){return Boolean(!e&&n===80||e&&n===443)}function tTe(n){return typeof n=="string"?/^https:?$/i.test(n):!1}function iTe(n,...e){let t={},i;for(i in n)e.includes(i)||(t[i]=n[i]);return t}});var C6=y((F_,D6)=>{"use strict";var nTe=F_&&F_.__importDefault||function(n){return n&&n.__esModule?n:{default:n}},R_=nTe(w6());function L_(n){return new R_.default(n)}(function(n){n.HttpsProxyAgent=R_.default,n.prototype=R_.default.prototype})(L_||(L_={}));D6.exports=L_});var S6=y((uYe,x6)=>{"use strict";var rTe=["aborted","complete","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];x6.exports=(n,e)=>{if(e._readableState.autoDestroy)throw new Error("The second stream must have the `autoDestroy` option set to `false`");let t=new Set(Object.keys(n).concat(rTe)),i={};for(let r of t)r in e||(i[r]={get(){let o=n[r];return typeof o=="function"?o.bind(n):o},set(o){n[r]=o},enumerable:!0,configurable:!1});return Object.defineProperties(e,i),n.once("aborted",()=>{e.destroy(),e.emit("aborted")}),n.once("close",()=>{n.complete&&e.readable?e.once("end",()=>{e.emit("close")}):e.emit("close")}),e}});var k6=y((cYe,T6)=>{"use strict";var{Transform:oTe,PassThrough:sTe}=require("stream"),I_=require("zlib"),aTe=S6();T6.exports=n=>{let e=(n.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(e))return n;let t=e==="br";if(t&&typeof I_.createBrotliDecompress!="function")return n.destroy(new Error("Brotli is not supported on Node.js < 12")),n;let i=!0,r=new oTe({transform(a,l,u){i=!1,u(null,a)},flush(a){a()}}),o=new sTe({autoDestroy:!1,destroy(a,l){n.destroy(),l(a)}}),s=t?I_.createBrotliDecompress():I_.createUnzip();return s.once("error",a=>{if(i&&!n.readable){o.end();return}o.destroy(a)}),aTe(n,o),n.pipe(r).pipe(s).pipe(o),o}});function lTe(n){let e;n.protocol==="http:"?e=process.env.HTTP_PROXY||process.env.http_proxy||null:n.protocol==="https:"&&(e=process.env.HTTPS_PROXY||process.env.https_proxy||process.env.HTTP_PROXY||process.env.http_proxy||null);let t=process.env.NO_PROXY||process.env.no_proxy;if(t==="*")e=null;else if(t){let i=n.hostname.replace(/^\.*/,".").toLowerCase(),r=n.port||n.protocol.startsWith("https")?"443":"80",o=t.split(",");for(let s=0,a=o.length;s{if(i){let u=i.onCancellationRequested(()=>{u.dispose(),l.destroy(new Error("request aborted"))})}let a,l=r.request(t,u=>{let c=u;if(u.statusCode>=200&&u.statusCode<300||u.statusCode===1223){let h=u.headers||{},d=[],g=h["content-type"]||"";c=(0,L6.default)(u),c.on("data",p=>{d.push(p)}),c.on("end",()=>{a&&clearTimeout(a);let p=Buffer.concat(d);if(!t.buffer&&(g.startsWith("application/json")||g.startsWith("text/"))){let f=g.match(/charset=(\S+)/),m=f?f[1]:"utf8",b=p.toString(m);if(!g.includes("application/json"))o(b);else try{let w=JSON.parse(b);o(w)}catch(w){s(new Error(`Parse response error: ${w}`))}}else o(p)}),c.on("error",p=>{s(new Error(`Unable to connect ${n}: ${p.message}`))})}else s(new Error(`Bad response from ${n}: ${u.statusCode}`))});l.on("error",u=>{t.agent&&u.code=="ECONNRESET"?a=setTimeout(()=>{s(u)},500):s(u)}),l.on("timeout",()=>{l.destroy(new Error(`Request timeout after ${t.timeout}ms`))}),e&&(typeof e=="string"||Buffer.isBuffer(e)?l.write(e):l.write(JSON.stringify(e))),t.timeout&&l.setTimeout(t.timeout),l.end()})}function hTe(n){return n===null?"null":n===void 0?"undefined":typeof n=="string"?"string":Buffer.isBuffer(n)?"buffer":Array.isArray(n)||Ht(n)?"object":"unknown"}function Eh(n,e={},t){let i=A_(n,e);return cTe(n,e.data,i,t).catch(r=>{if(F6.error(`Fetch error for ${n}:`,i,r),i.agent&&i.agent.proxy){let{proxy:o}=i.agent;throw new Error(`Request failed using proxy ${o.host}: ${r.message}`)}else throw r})}var Bw,j_,E6,P6,_6,R6,L6,F6,Hw=_(()=>{"use strict";Bw=x(GE()),j_=require("url"),E6=x(require("fs"));lr();ne();P6=require("querystring"),_6=x(f6()),R6=x(C6()),L6=x(k6()),F6=W()("model-fetch")});function sf(n,e,t){let{dest:i,onProgress:r,extract:o}=e;if(!i||!of.default.isAbsolute(i))throw new Error("Expect absolute file path for dest option.");let s;try{s=qw.default.statSync(i)}catch{qw.default.mkdirpSync(i)}if(s&&!s.isDirectory())throw new Error(`${i} exists, but not directory!`);let a=n.startsWith("https")?Yw.https:Yw.http,l=A_(n,e),u=of.default.extname(n);return new Promise((c,h)=>{if(t){let p=t.onCancellationRequested(()=>{p.dispose(),g.destroy(new Error("request aborted"))})}let d,g=a.request(l,p=>{var f;if(p.statusCode>=200&&p.statusCode<300||p.statusCode===1223){let m=p.headers||{},b=m["content-disposition"];if(!u&&b){let R=I6.default.parse(b);(f=R.parameters)!=null&&f.filename&&(u=of.default.extname(R.parameters.filename))}if(o===!0)if(u===".zip"||m["content-type"]=="application/zip")o="unzip";else if(u==".tgz")o="untar";else{h(new Error(`Unable to extract for ${n}`));return}let w=Number(m["content-length"]),D=0;isNaN(w)||p.on("data",R=>{D+=R.length;let N=(D/w*100).toFixed(1);r?r(N):M_.info(`Download ${n} progress ${N}%`)}),p.on("error",R=>{h(new Error(`Unable to connect ${n}: ${R.message}`))}),p.on("data",()=>{d&&(clearTimeout(d),d=void 0)}),p.on("end",()=>{M_.info("Download completed:",n)});let T;o==="untar"?T=p.pipe(j6.default.x({strip:e.strip??1,C:i})):o==="unzip"?T=p.pipe(A6.default.Extract({path:i})):(i=of.default.join(i,`${ps()}${u}`),T=p.pipe(qw.default.createWriteStream(i))),T.on("finish",()=>{M_.info(`Downloaded ${n} => ${i}`),setTimeout(()=>{c(i)},100)}),T.on("error",h)}else h(new Error(`Invalid response from ${n}: ${p.statusCode}`))});g.on("error",p=>{l.agent&&p.code=="ECONNRESET"?d=setTimeout(()=>{h(p)},500):h(p)}),g.on("timeout",()=>{g.destroy(new Error(`request timeout after ${e.timeout}ms`))}),e.timeout&&g.setTimeout(e.timeout),g.end()})}var I6,Yw,qw,of,j6,A6,M_,O_=_(()=>{"use strict";I6=x(wX()),Yw=x(GE()),qw=x(Bn()),of=x(require("path")),j6=x(EG()),A6=x(a6());He();Hw();M_=W()("model-download")});function gTe(n="coc.nvim"){let e="https://registry.npmjs.org/",t=Kn.default.join(dTe,".npmrc");if(zt.default.existsSync(t))try{let i=zt.default.readFileSync(t,"utf8"),r={};for(let o of i.split(/\r?\n/))if(o.indexOf("=")>-1){let[s,a,l]=o.match(/^(.*?)=(.*)$/);r[a]=l}r[`${n}:registry`]?e=r[`${n}:registry`]:r.registry&&(e=r.registry)}catch(i){N_.error("Error on read .npmrc:",i)}return e.endsWith("/")?e:e+"/"}function pTe(n){let e=Kn.default.basename(n);return e==="npm"||e==="npm.CMD"}function fTe(n){let e=Kn.default.basename(n);return["yarn","yarn.CMD","yarnpkg","yarnpkg.CMD"].includes(e)}function mTe(n,e){let t=["install","--ignore-scripts","--no-lockfile","--production"];return e.startsWith("https://github.com")&&(t=["install"]),pTe(n)&&(t.push("--legacy-peer-deps"),t.push("--no-global")),fTe(n)&&t.push("--ignore-engines"),t}function yTe(n){let e;try{e=JSON.parse(n).dependencies||{}}catch{e={}}return dn(e,["coc.nvim","esbuild","webpack","@types/node"])}function M6(n){return!!(zt.default.existsSync(n)&&zt.default.lstatSync(n).isSymbolicLink())}function Jw(n,e){return t=>new H6(e,n,t)}var O6,N6,zt,Zw,Kn,B6,Ww,N_,dTe,H6,q6=_(()=>{"use strict";O6=require("child_process"),N6=require("events"),zt=x(Bn());Gg();Zw=x(require("os")),Kn=x(require("path")),B6=x(require("readline")),Ww=x(Tp());et();bs();ne();O_();Hw();N_=W()("model-installer"),dTe=global.__TEST__?Zw.default.tmpdir():Zw.default.homedir();H6=class extends N6.EventEmitter{constructor(e,t,i){super();this.root=e;this.npm=t;this.def=i;if(zt.default.existsSync(e)||zt.default.mkdirpSync(e),/^https?:/.test(i))this.url=i;else{let r=i.match(/(.+)@([^/]+)$/);r?(this.name=r[1],this.version=r[2]):this.name=i}}get info(){return{name:this.name,version:this.version}}async install(){this.log(`Using npm from: ${this.npm}`);let e=await this.getInfo();N_.info(`Fetched info of ${this.def}`,e);let{name:t}=e,i=e["engines.coc"]?e["engines.coc"].replace(/^\^/,">="):"";if(i&&!Ww.default.satisfies(v.version,i))throw new Error(`${t} ${e.version} requires coc.nvim >= ${i}, please update coc.nvim.`);return await this.doInstall(e),t}async update(e){this.url=e;let t=Kn.default.join(this.root,this.name);if(M6(t)){this.log("Skipped update for symbol link");return}let i;if(zt.default.existsSync(Kn.default.join(t,"package.json"))){let a=await zt.default.readFile(Kn.default.join(t,"package.json"),"utf8");i=JSON.parse(a).version}this.log(`Using npm from: ${this.npm}`);let r=await this.getInfo();if(i&&r.version&&Ww.default.gte(i,r.version)){this.log(`Current version ${i} is up to date.`);return}let o=r["engines.coc"]?r["engines.coc"].replace(/^\^/,">="):"";if(o&&!Ww.default.satisfies(v.version,o))throw new Error(`${r.version} requires coc.nvim ${o}, please update coc.nvim.`);await this.doInstall(r);let s=Kn.default.join(this.root,r.name,"package.json");return this.log(`Updated to v${r.version}`),Kn.default.dirname(s)}async doInstall(e){let t=Kn.default.join(this.root,e.name);if(M6(t))return!1;let i=await zt.default.mkdtemp(Kn.default.join(Zw.default.tmpdir(),`${e.name.replace("/","-")}-`)),r=e["dist.tarball"];this.log(`Downloading from ${r}`),await sf(r,{dest:i,onProgress:d=>this.log(`Download progress ${d}%`,!0),extract:"untar"}),this.log(`Extension download at ${i}`);let o=await zt.default.readFile(Kn.default.join(i,"package.json"),"utf8"),s=yTe(o);Object.keys(s).length&&await new Promise((g,p)=>{let f=mTe(this.npm,r);this.log(`Installing dependencies by: ${this.npm} ${f.join(" ")}.`);let m=(0,O6.spawn)(this.npm,f,{cwd:i});B6.default.createInterface({input:m.stdout}).on("line",D=>{this.log(`[npm] ${D}`,!0)}),m.stderr.setEncoding("utf8"),m.stdout.setEncoding("utf8"),m.on("error",p);let w="";m.stderr.on("data",D=>{w+=D}),m.on("exit",D=>{if(D){w&&this.log(w),p(new Error(`${this.npm} install exited with ${D}`));return}g()})});let a=Kn.default.resolve(this.root,global.__TEST__?"":"..","package.json"),l=[];zt.default.existsSync(a)||zt.default.writeFileSync(a,"{}");let u=Yc(zt.default.readFileSync(a,"utf8"),l,{allowTrailingComma:!0});if(l&&l.length>0)throw new Error(`Error on load ${a}`);u.dependencies=u.dependencies||{},this.url?u.dependencies[e.name]=this.url:u.dependencies[e.name]=">="+e.version;let c={dependencies:{}};Object.keys(u.dependencies).sort().forEach(d=>{c.dependencies[d]=u.dependencies[d]});let h=await $t(t);return h&&(h.isDirectory()?zt.default.removeSync(t):zt.default.unlinkSync(t)),await zt.default.move(i,t,{overwrite:!0}),await zt.default.writeFile(a,JSON.stringify(c,null,2),{encoding:"utf8"}),zt.default.existsSync(i)&&zt.default.rmdirSync(i),this.log(`Update package.json at ${a}`),this.log(`Installed extension ${this.name}@${e.version} at ${t}`),!0}async getInfo(){if(this.url)return await this.getInfoFromUri();let e=gTe();this.log(`Get info from ${e}`);let t=await Eh(e+this.name,{timeout:1e4,buffer:!0}),i=JSON.parse(t.toString());this.version||(this.version=i["dist-tags"].latest);let r=i.versions[this.version];if(!r)throw new Error(`${this.def} doesn't exists in ${e}.`);let o=r.engines&&r.engines.coc;if(!o)throw new Error(`${this.def} is not valid coc extension, "engines" field with coc property required.`);return{"dist.tarball":r.dist.tarball,"engines.coc":o,version:r.version,name:i.name}}async getInfoFromUri(){let{url:e}=this;if(!e.startsWith("https://github.com"))throw new Error(`"${e}" is not supported, coc.nvim support github.com only`);e=e.replace(/\/$/,"");let t="master";if(e.includes("@")){let s=e.indexOf("@");t=e.substr(s+1),e=e.substring(0,s)}let i=e.replace("github.com","raw.githubusercontent.com")+`/${t}/package.json`;this.log(`Get info from ${i}`);let r=await Eh(i,{timeout:1e4}),o=typeof r=="string"?JSON.parse(r):r;return this.name=o.name,{"dist.tarball":`${e}/archive/${t}.tar.gz`,"engines.coc":o.engines?o.engines.coc:null,name:o.name,version:o.version}}log(e,t=!1){N_.info(e),this.emit("message",e,t)}}});var Ph,bTe,$w,Y6=_(()=>{"use strict";Ph=x(require("fs"));oi();bTe=W()("model-memos"),$w=class{constructor(e){this.filepath=e;Ph.default.existsSync(e)||Ph.default.writeFileSync(e,"{}","utf8")}fetchContent(e,t){try{let i=Ph.default.readFileSync(this.filepath,"utf8"),o=JSON.parse(i)[e];return o?o[t]:void 0}catch{return}}async update(e,t,i){let{filepath:r}=this;try{let o=Ph.default.readFileSync(r,"utf8"),s=o?JSON.parse(o):{};s[e]=s[e]||{},i!==void 0?s[e][t]=Yr(i):delete s[e][t],o=JSON.stringify(s,null,2),Ph.default.writeFileSync(r,o,"utf8")}catch(o){bTe.error("Error on update memos:",o)}}createMemento(e){return{get:(t,i)=>{let r=this.fetchContent(e,t);return r===void 0?i:r},update:async(t,i)=>{await this.update(e,t,i)}}}}});var Xw,W6=_(()=>{"use strict";Ee();rE();Xw=class{constructor(e,t){if(typeof e!="string"&&(!e||!I.isUri(e)&&typeof e.uri!="string"))throw iE("base");if(typeof t!="string")throw iE("pattern");typeof e=="string"?this.baseUri=I.file(e):I.isUri(e)?this.baseUri=e:this.baseUri=I.parse(e.uri),this.pattern=t}toJSON(){return{pattern:this.pattern,baseUri:this.baseUri.toJSON()}}}});var J6=y((MYe,Z6)=>{"use strict";Z6.exports=q()});function $6(n,e){if(!n.killed)if(vTe)try{let t={stdio:["pipe","pipe","ignore"]};return e&&(t.cwd=e),af.execFileSync("taskkill",["/T","/F","/PID",n.pid.toString()],t),!0}catch{return!1}else if(DTe||wTe)try{let t=(0,Uw.join)(CTe,"bin/terminateProcess.sh");return!af.spawnSync(t,[n.pid.toString()]).error}catch{return!1}else return n.kill("SIGKILL"),!0}var af,Uw,vTe,wTe,DTe,CTe,X6=_(()=>{"use strict";af=x(require("child_process")),Uw=require("path"),vTe=process.platform==="win32",wTe=process.platform==="darwin",DTe=process.platform==="linux",CTe=(0,Uw.dirname)(__dirname)});function xTe(n){return typeof n!="number"?!1:n>=0&&n<=100}var U6,GYe,lf,B_=_(()=>{"use strict";U6=x(q());re();Ae();ne();GYe=W()("language-client-progressPart"),lf=class{constructor(e,t,i,r){this.id=e;this.token=i;this.disposables=[];this._cancelled=!1;this._percent=0;this._started=!1;!v.env.dialog||this.disposables.push(t.onProgress(U6.WorkDoneProgress.type,this.token,o=>{switch(o.kind){case"begin":this.begin(o);break;case"report":this.report(o);break;case"end":this.done(o.message),r&&r(this);break}}))}begin(e){this._started||(this._started=!0,k.withProgress({source:`language-client-${this.id}`,cancellable:e.cancellable,title:e.title},(t,i)=>(this.progress=t,this.report(e),new Promise(r=>{e.cancellable&&i.onCancellationRequested(()=>{this.cancel(),r()}),this._resolve=r}))).catch(t=>{k.showErrorMessage(t.message)}).finally(()=>{this._resolve=void 0,this.progress=void 0}))}report(e){if(!this.progress)return;let t={};e.message&&(t.message=e.message),xTe(e.percentage)&&(t.increment=e.percentage-this._percent,this._percent=e.percentage),Object.keys(t).length>0&&this.progress.report(t)}cancel(){this._cancelled||(this._cancelled=!0,$(this.disposables))}done(e){if(this.progress){let t={};e&&(t.message=e),this._percent>0&&(t.increment=100-this._percent),this.progress.report(t)}setTimeout(()=>{this._resolve&&this._resolve()},300),this.cancel()}}});var G6,H_,K6=_(()=>{"use strict";G6=x(q()),H_=class{constructor(e){this.defaultDelay=e,this.timeout=void 0,this.completionPromise=void 0,this.onSuccess=void 0,this.task=void 0}trigger(e,t=this.defaultDelay){return this.task=e,t>=0&&this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise(i=>{this.onSuccess=i}).then(()=>{this.completionPromise=void 0,this.onSuccess=void 0;let i=this.task();return this.task=void 0,i})),(t>=0||this.timeout===void 0)&&(this.timeout=(0,G6.RAL)().timer.setTimeout(()=>{this.timeout=void 0,this.onSuccess(void 0)},t>=0?t:this.defaultDelay)),this.completionPromise}forceDelivery(){if(!this.completionPromise)return;this.cancelTimeout();let e=this.task();return this.completionPromise=void 0,this.onSuccess=void 0,this.task=void 0,e}isTriggered(){return this.timeout!==void 0}cancel(){this.cancelTimeout(),this.completionPromise=void 0}dispose(){this.cancelTimeout()}cancelTimeout(){this.timeout!==void 0&&(this.timeout.dispose(),this.timeout=void 0)}}});function Q6(n){return{uri:n.uri,languageId:n.languageId,version:n.version,text:n.getText()}}function z6(n){return{textDocument:{uri:n.uri}}}function V6(n){return{textDocument:{uri:n.uri,version:n.version},contentChanges:[{text:n.getText()}]}}function q_(n){return{textDocument:Gw(n.document),reason:n.reason}}function Gw(n){return{uri:n.uri,version:n.version}}function e4(n,e){let t={textDocument:Gw(n)};return e&&(t.text=n.getText()),t}function uf(n){return n.toString()}function t4(n,e,t){return{textDocument:{uri:n.uri},position:e,context:dn(t,["option"])}}function i4(n,e,t){if(!n)return;if(!n.itemDefaults)return n;let i=n.items.map(r=>{r.data=r.data??n.itemDefaults.data,r.commitCharacters=r.commitCharacters??n.itemDefaults.commitCharacters,r.insertTextMode=r.insertTextMode??n.itemDefaults.insertTextMode,r.insertTextFormat=r.insertTextFormat??n.itemDefaults.insertTextFormat;let o=n.itemDefaults.editRange;return o&&(r.textEditText=r.textEditText??r.label,r.insertText=r.insertText??r.textEditText,_h.Range.is(o)?r.textEdit=r.textEdit??{range:o,newText:r.textEditText}:r.textEdit=r.textEdit??_h.InsertReplaceEdit.create(r.textEditText,o.insert,o.replace)),r});return _h.CompletionList.create(i,n.isIncomplete)}function $i(n,e){return{textDocument:{uri:n.uri},position:e}}function n4(n,e,t){return{textDocument:eo(n),position:e,context:t}}function eo(n){return{uri:n.uri}}function r4(n,e,t){return{textDocument:{uri:n.uri},position:e,context:{includeDeclaration:t.includeDeclaration}}}function o4(n){return{textDocument:{uri:n.uri}}}function s4(n){return{textDocument:{uri:n.uri}}}var _h,to=_(()=>{"use strict";_h=x(q());bs()});function Ue(){return se()}var cf=_(()=>{"use strict";He()});function STe(n,e,t,i,r){let o=new l4,s=(0,S.createProtocolConnection)(n,e,o,r),a=[];return s.onError(u=>{t(u[0],u[1],u[2])},null,a),s.onClose(i,null,a),{listen:()=>s.listen(),unlisten:()=>{$(a)},sendRequest:(u,...c)=>s.sendRequest(Be(u)?u:u.method,...c),onRequest:(u,c)=>s.onRequest(Be(u)?u:u.method,c),sendNotification:(u,c)=>void s.sendNotification(Be(u)?u:u.method,c),onNotification:(u,c)=>s.onNotification(Be(u)?u:u.method,c),onProgress:s.onProgress,sendProgress:s.sendProgress,trace:(u,c,h)=>{let d={sendNotification:!1,traceFormat:S.TraceFormat.Text};h===void 0?s.trace(u,c,d):(ar(h),s.trace(u,c,h))},initialize:u=>s.sendRequest(S.InitializeRequest.type,u),shutdown:()=>s.sendRequest(S.ShutdownRequest.type,void 0),exit:()=>s.sendNotification(S.ExitNotification.type),onLogMessage:u=>s.onNotification(S.LogMessageNotification.type,u),onShowMessage:u=>s.onNotification(S.ShowMessageNotification.type,u),onTelemetry:u=>s.onNotification(S.TelemetryEventNotification.type,u),didChangeConfiguration:u=>s.sendNotification(S.DidChangeConfigurationNotification.type,u),didChangeWatchedFiles:u=>s.sendNotification(S.DidChangeWatchedFilesNotification.type,u),didOpenTextDocument:u=>s.sendNotification(S.DidOpenTextDocumentNotification.type,u),didChangeTextDocument:u=>s.sendNotification(S.DidChangeTextDocumentNotification.type,u),didCloseTextDocument:u=>s.sendNotification(S.DidCloseTextDocumentNotification.type,u),didSaveTextDocument:u=>s.sendNotification(S.DidSaveTextDocumentNotification.type,u),onDiagnostics:u=>s.onNotification(S.PublishDiagnosticsNotification.type,u),end:()=>s.end(),dispose:()=>s.dispose()}}function G(n,e){return n[e]===void 0&&(n[e]={}),n[e]}var Y_,S,a4,Lo,l4,J_,$_,X_,u4,zw,Vw,eD,U_,TTe,G_,W_,Fo,c4,h4,d4,g4,p4,f4,m4,Ie,y4,b4,v4,w4,D4,C4,x4,S4,T4,k4,E4,P4,_4,R4,L4,F4,Rh,Z_,Qw,ci=_(()=>{"use strict";Y_=x(require("path")),S=x(q());Ee();Ei();Te();et();lr();bs();ub();Ae();ne();Io();B_();K6();a4=x(require("os"));to();cf();_t();re();Lo=W()("language-client-client"),l4=class{error(e){Lo.error(e)}warn(e){Lo.warn(e)}info(e){Lo.info(e)}log(e){Lo.log(e)}},J_=class{error(e){}warn(e){}info(e){}log(e){}};$_=(t=>(t[t.Continue=1]="Continue",t[t.Shutdown=2]="Shutdown",t))($_||{}),X_=(t=>(t[t.DoNotRestart=1]="DoNotRestart",t[t.Restart=2]="Restart",t))(X_||{}),u4=class{constructor(e,t){this.name=e;this.maxRestartCount=t;this.restarts=[]}error(e,t,i){return i&&i<=3?1:2}closed(){return this.restarts.push(Date.now()),this.restarts.length(r[r.Info=1]="Info",r[r.Warn=2]="Warn",r[r.Error=3]="Error",r[r.Never=4]="Never",r))(zw||{}),Vw=(i=>(i[i.Stopped=1]="Stopped",i[i.Running=2]="Running",i[i.Starting=3]="Starting",i))(Vw||{}),eD=(s=>(s[s.Initial=0]="Initial",s[s.Starting=1]="Starting",s[s.StartFailed=2]="StartFailed",s[s.Running=3]="Running",s[s.Stopping=4]="Stopping",s[s.Stopped=5]="Stopped",s))(eD||{}),U_=[S.SymbolKind.File,S.SymbolKind.Module,S.SymbolKind.Namespace,S.SymbolKind.Package,S.SymbolKind.Class,S.SymbolKind.Method,S.SymbolKind.Property,S.SymbolKind.Field,S.SymbolKind.Constructor,S.SymbolKind.Enum,S.SymbolKind.Interface,S.SymbolKind.Function,S.SymbolKind.Variable,S.SymbolKind.Constant,S.SymbolKind.String,S.SymbolKind.Number,S.SymbolKind.Boolean,S.SymbolKind.Array,S.SymbolKind.Object,S.SymbolKind.Key,S.SymbolKind.Null,S.SymbolKind.EnumMember,S.SymbolKind.Struct,S.SymbolKind.Event,S.SymbolKind.Operator,S.SymbolKind.TypeParameter],TTe=[S.CompletionItemKind.Text,S.CompletionItemKind.Method,S.CompletionItemKind.Function,S.CompletionItemKind.Constructor,S.CompletionItemKind.Field,S.CompletionItemKind.Variable,S.CompletionItemKind.Class,S.CompletionItemKind.Interface,S.CompletionItemKind.Module,S.CompletionItemKind.Property,S.CompletionItemKind.Unit,S.CompletionItemKind.Value,S.CompletionItemKind.Enum,S.CompletionItemKind.Keyword,S.CompletionItemKind.Snippet,S.CompletionItemKind.Color,S.CompletionItemKind.File,S.CompletionItemKind.Reference,S.CompletionItemKind.Folder,S.CompletionItemKind.EnumMember,S.CompletionItemKind.Constant,S.CompletionItemKind.Struct,S.CompletionItemKind.Event,S.CompletionItemKind.Operator,S.CompletionItemKind.TypeParameter],G_=[S.SymbolTag.Deprecated];(e=>{function n(t){let i=t;return i&&ua(i.register)&&ua(i.unregister)&&ua(i.dispose)&&i.registrationType!==void 0}e.is=n})(W_||(W_={}));Fo=class{constructor(e,t,i,r,o,s){this._client=e;this._event=t;this._type=i;this._middleware=r;this._createParams=o;this._selectorFilter=s;this._selectors=new Map}static textDocumentFilter(e,t){for(let i of e)if(v.match(i,t)>0)return!0;return!1}register(e){!e.registerOptions.documentSelector||(this._listener||(this._listener=this._event(this.callback,this)),this._selectors.set(e.id,e.registerOptions.documentSelector))}callback(e){(!this._selectorFilter||this._selectorFilter(this._selectors.values(),e))&&(this._middleware?this._middleware(e,t=>this._client.sendNotification(this._type,this._createParams(t))):this._client.sendNotification(this._type,this._createParams(e)),this.notificationSent(e))}notificationSent(e){}unregister(e){this._selectors.delete(e),this._selectors.size===0&&this._listener&&(this._listener.dispose(),this._listener=void 0)}dispose(){this._selectors.clear(),this._listener&&(this._listener.dispose(),this._listener=void 0)}getProvider(e){for(let t of this._selectors.values())if(v.match(t,e))return{send:i=>{this.callback(i)}}}},c4=class extends Fo{constructor(e,t){super(e,v.onDidOpenTextDocument,S.DidOpenTextDocumentNotification.type,e.clientOptions.middleware.didOpen,i=>({textDocument:Q6(i)}),Fo.textDocumentFilter);this._syncedDocuments=t}get registrationType(){return S.DidOpenTextDocumentNotification.type}fillClientCapabilities(e){G(G(e,"textDocument"),"synchronization").dynamicRegistration=!0}initialize(e,t){let i=e.resolvedTextDocumentSync;t&&i&&i.openClose&&this.register({id:Ue(),registerOptions:{documentSelector:t}})}register(e){if(super.register(e),!e.registerOptions.documentSelector)return;let t=e.registerOptions.documentSelector;v.textDocuments.forEach(i=>{let r=i.uri.toString();if(!this._syncedDocuments.has(r)&&v.match(t,i)>0){let o=this._client.clientOptions.middleware,s=a=>{this._client.sendNotification(this._type,this._createParams(a))};o.didOpen?o.didOpen(i,s):s(i),this._syncedDocuments.set(r,i)}})}notificationSent(e){super.notificationSent(e),this._syncedDocuments.set(e.uri.toString(),e)}},h4=class extends Fo{constructor(e,t){super(e,v.onDidCloseTextDocument,S.DidCloseTextDocumentNotification.type,e.clientOptions.middleware.didClose,i=>z6(i),Fo.textDocumentFilter);this._syncedDocuments=t}get registrationType(){return S.DidCloseTextDocumentNotification.type}fillClientCapabilities(e){G(G(e,"textDocument"),"synchronization").dynamicRegistration=!0}initialize(e,t){let i=e.resolvedTextDocumentSync;t&&i&&i.openClose&&this.register({id:Ue(),registerOptions:{documentSelector:t}})}notificationSent(e){super.notificationSent(e),this._syncedDocuments.delete(e.uri.toString())}unregister(e){let t=this._selectors.get(e);super.unregister(e);let i=this._selectors.values();this._syncedDocuments.forEach(r=>{if(v.match(t,r)>0&&!this._selectorFilter(i,r)){let o=this._client.clientOptions.middleware,s=a=>{this._client.sendNotification(this._type,this._createParams(a))};this._syncedDocuments.delete(r.uri.toString()),o.didClose?o.didClose(r,s):s(r)}})}},d4=class{constructor(e){this._client=e;this._changeData=new Map}get registrationType(){return S.DidChangeTextDocumentNotification.type}fillClientCapabilities(e){G(G(e,"textDocument"),"synchronization").dynamicRegistration=!0}initialize(e,t){let i=e.resolvedTextDocumentSync;t&&i&&i.change!==void 0&&i.change!==S.TextDocumentSyncKind.None&&this.register({id:Ue(),registerOptions:Object.assign({},{documentSelector:t},{syncKind:i.change})})}register(e){!e.registerOptions.documentSelector||(this._listener||(this._listener=v.onDidChangeTextDocument(t=>{this.callback({textDocument:t.textDocument,contentChanges:t.contentChanges.slice()})},this)),this._changeData.set(e.id,{documentSelector:e.registerOptions.documentSelector,syncKind:e.registerOptions.syncKind}))}callback(e){if(e.contentChanges.length===0)return;let t=v.getDocument(e.textDocument.uri);if(!t)return;let{textDocument:i}=t;for(let r of this._changeData.values())if(v.match(r.documentSelector,i)>0){let o=this._client.clientOptions.middleware;if(r.syncKind===S.TextDocumentSyncKind.Incremental){let s=a=>{this._client.sendNotification(S.DidChangeTextDocumentNotification.type,dn(a,["bufnr","original","originalLines"]))};o.didChange?o.didChange(e,s):s(e)}else if(r.syncKind===S.TextDocumentSyncKind.Full){let s=()=>{this._client.sendNotification(S.DidChangeTextDocumentNotification.type,V6(i))};o.didChange?o.didChange(e,s):s(e)}}}unregister(e){this._changeData.delete(e),this._changeData.size===0&&this._listener&&(this._listener.dispose(),this._listener=void 0)}dispose(){this._changeData.clear(),this._listener&&(this._listener.dispose(),this._listener=void 0)}getProvider(e){for(let t of this._changeData.values())if(v.match(t.documentSelector,e))return{send:i=>{this.callback(i)}}}},g4=class extends Fo{constructor(e){super(e,v.onWillSaveTextDocument,S.WillSaveTextDocumentNotification.type,e.clientOptions.middleware.willSave,t=>q_(t),(t,i)=>Fo.textDocumentFilter(t,i.document))}get registrationType(){return S.WillSaveTextDocumentNotification.type}fillClientCapabilities(e){let t=G(G(e,"textDocument"),"synchronization");t.willSave=!0}initialize(e,t){let i=e.resolvedTextDocumentSync;t&&i&&i.willSave&&this.register({id:Ue(),registerOptions:{documentSelector:t}})}},p4=class{constructor(e){this._client=e;this._selectors=new Map}get registrationType(){return S.WillSaveTextDocumentWaitUntilRequest.type}fillClientCapabilities(e){let t=G(G(e,"textDocument"),"synchronization");t.willSaveWaitUntil=!0}initialize(e,t){let i=e.resolvedTextDocumentSync;t&&i&&i.willSaveWaitUntil&&this.register({id:Ue(),registerOptions:{documentSelector:t}})}register(e){!e.registerOptions.documentSelector||(this._listener||(this._listener=v.onWillSaveTextDocument(this.callback,this)),this._selectors.set(e.id,e.registerOptions.documentSelector))}callback(e){if(Fo.textDocumentFilter(this._selectors.values(),e.document)){let t=this._client.clientOptions.middleware,i=r=>this._client.sendRequest(S.WillSaveTextDocumentWaitUntilRequest.type,q_(r)).then(o=>o||[],o=>(k.showMessage(`Error on willSaveWaitUntil: ${o}`,"error"),Lo.error(o),[]));e.waitUntil(t.willSaveWaitUntil?t.willSaveWaitUntil(e,i):i(e))}}unregister(e){this._selectors.delete(e),this._selectors.size===0&&this._listener&&(this._listener.dispose(),this._listener=void 0)}dispose(){this._selectors.clear(),this._listener&&(this._listener.dispose(),this._listener=void 0)}},f4=class extends Fo{constructor(e){super(e,v.onDidSaveTextDocument,S.DidSaveTextDocumentNotification.type,e.clientOptions.middleware.didSave,t=>e4(t,this._includeText),Fo.textDocumentFilter);this._includeText=!1}get registrationType(){return S.DidSaveTextDocumentNotification.type}fillClientCapabilities(e){G(G(e,"textDocument"),"synchronization").didSave=!0}initialize(e,t){let i=e.resolvedTextDocumentSync;if(t&&i&&i.save){let r=typeof i.save=="boolean"?{includeText:!1}:{includeText:!!i.save.includeText};this.register({id:Ue(),registerOptions:Object.assign({},{documentSelector:t},r)})}}register(e){this._includeText=!!e.registerOptions.includeText,super.register(e)}},m4=class{constructor(e,t){this._notifyFileEvent=t;this._watchers=new Map}get registrationType(){return S.DidChangeWatchedFilesNotification.type}fillClientCapabilities(e){G(G(e,"workspace"),"didChangeWatchedFiles").dynamicRegistration=!0}initialize(e,t){}register(e){if(!Array.isArray(e.registerOptions.watchers))return;let t=[];for(let i of e.registerOptions.watchers){if(!Be(i.globPattern))continue;let r=!0,o=!0,s=!0;i.kind!=null&&(r=(i.kind&S.WatchKind.Create)!==0,o=(i.kind&S.WatchKind.Change)!=0,s=(i.kind&S.WatchKind.Delete)!=0);let a=v.createFileSystemWatcher(i.globPattern,!r,!o,!s);this.hookListeners(a,r,o,s,t),t.push(a)}this._watchers.set(e.id,t)}registerRaw(e,t){let i=[];for(let r of t)i.push(r),this.hookListeners(r,!0,!0,!0,i);this._watchers.set(e,i)}hookListeners(e,t,i,r,o){t&&e.onDidCreate(s=>this._notifyFileEvent({uri:uf(s),type:S.FileChangeType.Created}),null,o),i&&e.onDidChange(s=>this._notifyFileEvent({uri:uf(s),type:S.FileChangeType.Changed}),null,o),r&&e.onDidDelete(s=>this._notifyFileEvent({uri:uf(s),type:S.FileChangeType.Deleted}),null,o)}unregister(e){let t=this._watchers.get(e);if(t)for(let i of t)i.dispose()}dispose(){this._watchers.forEach(e=>{for(let t of e)t.dispose()}),this._watchers.clear()}},Ie=class{constructor(e,t){this._client=e;this._registrationType=t;this._registrations=new Map}get registrationType(){return this._registrationType}register(e){if(!e.registerOptions.documentSelector)return;let t=this.registerLanguageProvider(e.registerOptions);this._registrations.set(e.id,{disposable:t[0],data:e,provider:t[1]})}unregister(e){let t=this._registrations.get(e);t&&t.disposable.dispose()}dispose(){this._registrations.forEach(e=>{e.disposable.dispose()}),this._registrations.clear()}getRegistration(e,t){if(t){if(S.TextDocumentRegistrationOptions.is(t)){let i=S.StaticRegistrationOptions.hasId(t)?t.id:Ue(),r=t.documentSelector||e;if(r)return[i,Object.assign({},t,{documentSelector:r})]}else if(ar(t)&&t===!0||S.WorkDoneProgressOptions.is(t)){if(!e)return[void 0,void 0];let i=ar(t)&&t===!0?{documentSelector:e}:Object.assign({},t,{documentSelector:e});return[Ue(),i]}}else return[void 0,void 0];return[void 0,void 0]}getRegistrationOptions(e,t){if(!(!e||!t))return ar(t)&&t===!0?{documentSelector:e}:Object.assign({},t,{documentSelector:e})}getProvider(e){for(let t of this._registrations.values()){let i=t.data.registerOptions.documentSelector;if(i!==null&&v.match(i,e)>0)return t.provider}}getAllProviders(){let e=[];for(let t of this._registrations.values())e.push(t.provider);return e}},y4=class extends Ie{constructor(e){super(e,S.CompletionRequest.type)}fillClientCapabilities(e){let t=this._client.clientOptions.disableSnippetCompletion!==!0,i=G(G(e,"textDocument"),"completion");i.dynamicRegistration=!0,i.contextSupport=!0,i.completionItem={snippetSupport:t,commitCharactersSupport:!0,documentationFormat:this._client.supportedMarkupKind,deprecatedSupport:!0,preselectSupport:!0,insertReplaceSupport:!0,tagSupport:{valueSet:[S.CompletionItemTag.Deprecated]},resolveSupport:{properties:["documentation","detail","additionalTextEdits"]},labelDetailsSupport:!0,insertTextModeSupport:{valueSet:[S.InsertTextMode.asIs,S.InsertTextMode.adjustIndentation]}},i.completionItemKind={valueSet:TTe},i.insertTextMode=S.InsertTextMode.adjustIndentation,i.completionList={itemDefaults:["commitCharacters","editRange","insertTextFormat","insertTextMode"]}}initialize(e,t){this.index=0;let i=this.getRegistrationOptions(t,e.completionProvider);!i||this.register({id:Ue(),registerOptions:i})}registerLanguageProvider(e){let t=e.triggerCharacters||[],i=e.allCommitCharacters||[],r=e.priority,o={provideCompletionItems:(l,u,c,h)=>{let d=this._client,g=this._client.clientOptions.middleware,p=(f,m,b,w)=>d.sendRequest(S.CompletionRequest.type,t4(f,m,b),w).then(D=>w.isCancellationRequested?[]:Array.isArray(D)?D:i4(D,i,w),D=>d.handleFailedRequest(S.CompletionRequest.type,w,D,[]));return g.provideCompletionItem?g.provideCompletionItem(l,u,h,c,p):p(l,u,h,c)},resolveCompletionItem:e.resolveProvider?(l,u)=>{let c=this._client,h=this._client.clientOptions.middleware,d=(g,p)=>c.sendRequest(S.CompletionResolveRequest.type,g,p).then(f=>p.isCancellationRequested?g:f,f=>c.handleFailedRequest(S.CompletionResolveRequest.type,p,f,g));return h.resolveCompletionItem?h.resolveCompletionItem(l,u,d):d(l,u)}:void 0},s=this._client.id+(this.index?"-"+this.index:"");ct.removeSource(s);let a=j.registerCompletionItemProvider(s,"LS",e.documentSelector||this._client.clientOptions.documentSelector,o,t,r,i);return this.index=this.index+1,[a,o]}},b4=class extends Ie{constructor(e){super(e,S.HoverRequest.type)}fillClientCapabilities(e){let t=G(G(e,"textDocument"),"hover");t.dynamicRegistration=!0,t.contentFormat=this._client.supportedMarkupKind}initialize(e,t){let i=this.getRegistrationOptions(t,e.hoverProvider);!i||this.register({id:Ue(),registerOptions:i})}registerLanguageProvider(e){let t={provideHover:(i,r,o)=>{let s=this._client,a=(u,c,h)=>s.sendRequest(S.HoverRequest.type,$i(u,c),h).then(d=>h.isCancellationRequested?null:d,d=>s.handleFailedRequest(S.HoverRequest.type,h,d,null)),l=s.clientOptions.middleware;return l.provideHover?l.provideHover(i,r,o,a):a(i,r,o)}};return[j.registerHoverProvider(e.documentSelector,t),t]}},v4=class extends Ie{constructor(e){super(e,S.SignatureHelpRequest.type)}fillClientCapabilities(e){let t=G(G(e,"textDocument"),"signatureHelp");t.dynamicRegistration=!0,t.contextSupport=!0,t.signatureInformation={documentationFormat:this._client.supportedMarkupKind,activeParameterSupport:!0,parameterInformation:{labelOffsetSupport:!0}}}initialize(e,t){let i=this.getRegistrationOptions(t,e.signatureHelpProvider);!i||this.register({id:Ue(),registerOptions:i})}registerLanguageProvider(e){let t={provideSignatureHelp:(o,s,a,l)=>{let u=this._client,c=(d,g,p,f)=>u.sendRequest(S.SignatureHelpRequest.type,n4(d,g,p),f).then(m=>f.isCancellationRequested?null:m,m=>u.handleFailedRequest(S.SignatureHelpRequest.type,f,m,null)),h=u.clientOptions.middleware;return h.provideSignatureHelp?h.provideSignatureHelp(o,s,l,a,c):c(o,s,l,a)}},i=e.triggerCharacters||[];return[j.registerSignatureHelpProvider(e.documentSelector,t,i),t]}},w4=class extends Ie{constructor(e){super(e,S.DefinitionRequest.type)}fillClientCapabilities(e){let t=G(G(e,"textDocument"),"definition");t.dynamicRegistration=!0}initialize(e,t){let i=this.getRegistrationOptions(t,e.definitionProvider);!i||this.register({id:Ue(),registerOptions:i})}registerLanguageProvider(e){let t={provideDefinition:(i,r,o)=>{let s=this._client,a=(u,c,h)=>s.sendRequest(S.DefinitionRequest.type,$i(u,c),h).then(d=>h.isCancellationRequested?null:d,d=>s.handleFailedRequest(S.DefinitionRequest.type,h,d,null)),l=s.clientOptions.middleware;return l.provideDefinition?l.provideDefinition(i,r,o,a):a(i,r,o)}};return[j.registerDefinitionProvider(e.documentSelector,t),t]}},D4=class extends Ie{constructor(e){super(e,S.ReferencesRequest.type)}fillClientCapabilities(e){G(G(e,"textDocument"),"references").dynamicRegistration=!0}initialize(e,t){let i=this.getRegistrationOptions(t,e.referencesProvider);!i||this.register({id:Ue(),registerOptions:i})}registerLanguageProvider(e){let t={provideReferences:(i,r,o,s)=>{let a=this._client,l=(c,h,d,g)=>a.sendRequest(S.ReferencesRequest.type,r4(c,h,d),g).then(p=>g.isCancellationRequested?null:p,p=>a.handleFailedRequest(S.ReferencesRequest.type,g,p,null)),u=a.clientOptions.middleware;return u.provideReferences?u.provideReferences(i,r,o,s,l):l(i,r,o,s)}};return[j.registerReferencesProvider(e.documentSelector,t),t]}},C4=class extends Ie{constructor(e){super(e,S.DocumentHighlightRequest.type)}fillClientCapabilities(e){G(G(e,"textDocument"),"documentHighlight").dynamicRegistration=!0}initialize(e,t){let i=this.getRegistrationOptions(t,e.documentHighlightProvider);!i||this.register({id:Ue(),registerOptions:i})}registerLanguageProvider(e){let t={provideDocumentHighlights:(i,r,o)=>{let s=this._client,a=(u,c,h)=>s.sendRequest(S.DocumentHighlightRequest.type,$i(u,c),h).then(d=>h.isCancellationRequested?null:d,d=>s.handleFailedRequest(S.DocumentHighlightRequest.type,h,d,null)),l=s.clientOptions.middleware;return l.provideDocumentHighlights?l.provideDocumentHighlights(i,r,o,a):a(i,r,o)}};return[j.registerDocumentHighlightProvider(e.documentSelector,t),t]}},x4=class extends Ie{constructor(e){super(e,S.DocumentSymbolRequest.type)}fillClientCapabilities(e){let t=G(G(e,"textDocument"),"documentSymbol");t.dynamicRegistration=!0,t.symbolKind={valueSet:U_},t.hierarchicalDocumentSymbolSupport=!0,t.tagSupport={valueSet:G_},t.labelSupport=!0}initialize(e,t){let i=this.getRegistrationOptions(t,e.documentSymbolProvider);!i||this.register({id:Ue(),registerOptions:i})}registerLanguageProvider(e){let t={provideDocumentSymbols:(r,o)=>{let s=this._client,a=(u,c)=>s.sendRequest(S.DocumentSymbolRequest.type,o4(u),c).then(h=>{if(!(c.isCancellationRequested||h===void 0||h===null)){if(h.length===0)return[];{let d=h[0];return S.DocumentSymbol.is(d),h}}},h=>s.handleFailedRequest(S.DocumentSymbolRequest.type,c,h,null)),l=s.clientOptions.middleware;return l.provideDocumentSymbols?l.provideDocumentSymbols(r,o,a):a(r,o)}},i=e.label?{label:e.label}:void 0;return[j.registerDocumentSymbolProvider(e.documentSelector,t,i),t]}},S4=class extends Ie{constructor(e){super(e,S.CodeActionRequest.type);this.disposables=[]}fillClientCapabilities(e){let t=G(G(e,"textDocument"),"codeAction");t.dynamicRegistration=!0,t.isPreferredSupport=!0,t.disabledSupport=!0,t.dataSupport=!0,t.honorsChangeAnnotations=!1,t.resolveSupport={properties:["edit"]},t.codeActionLiteralSupport={codeActionKind:{valueSet:[S.CodeActionKind.Empty,S.CodeActionKind.QuickFix,S.CodeActionKind.Refactor,S.CodeActionKind.RefactorExtract,S.CodeActionKind.RefactorInline,S.CodeActionKind.RefactorRewrite,S.CodeActionKind.Source,S.CodeActionKind.SourceOrganizeImports]}}}initialize(e,t){let i=this.getRegistrationOptions(t,e.codeActionProvider);!i||this.register({id:Ue(),registerOptions:i})}registerLanguageProvider(e){let t=r=>{if(he.has(r))return;let o=this._client,s=(l,u)=>{let c={command:l,arguments:u};return o.sendRequest(S.ExecuteCommandRequest.type,c).then(void 0,h=>{throw o.handleFailedRequest(S.ExecuteCommandRequest.type,void 0,h,void 0),h})},a=o.clientOptions.middleware;this.disposables.push(he.registerCommand(r,(...l)=>a.executeCommand?a.executeCommand(r,l,s):s(r,l),null,!0))},i={provideCodeActions:(r,o,s,a)=>{let l=this._client,u=(h,d,g,p)=>{let f={textDocument:{uri:h.uri},range:d,context:g};return l.sendRequest(S.CodeActionRequest.type,f,p).then(m=>{if(!(p.isCancellationRequested||m===void 0||m===null))return m.forEach(b=>{var D;let w=S.Command.is(b)?b.command:(D=b.command)==null?void 0:D.command;w&&!he.has(w)&&t(w)}),m},m=>l.handleFailedRequest(S.CodeActionRequest.type,p,m,null))},c=l.clientOptions.middleware;return c.provideCodeActions?c.provideCodeActions(r,o,s,a,u):u(r,o,s,a)},resolveCodeAction:e.resolveProvider?(r,o)=>{let s=this._client,a=this._client.clientOptions.middleware,l=(u,c)=>s.sendRequest(S.CodeActionResolveRequest.type,u,c).then(h=>c.isCancellationRequested?u:h,h=>s.handleFailedRequest(S.CodeActionResolveRequest.type,c,h,u));return a.resolveCodeAction?a.resolveCodeAction(r,o,l):l(r,o)}:void 0};return[j.registerCodeActionProvider(e.documentSelector,i,this._client.id,e.codeActionKinds),i]}dispose(){this.disposables.forEach(e=>{e.dispose()}),this.disposables=[],super.dispose()}},T4=class extends Ie{constructor(e){super(e,S.CodeLensRequest.type)}fillClientCapabilities(e){G(G(e,"textDocument"),"codeLens").dynamicRegistration=!0,G(G(e,"workspace"),"codeLens").refreshSupport=!0}initialize(e,t){this._client.onRequest(S.CodeLensRefreshRequest.type,async()=>{for(let o of this.getAllProviders())o.onDidChangeCodeLensEmitter.fire()});let r=this.getRegistrationOptions(t,e.codeLensProvider);!r||this.register({id:Ue(),registerOptions:r})}registerLanguageProvider(e){let t=new S.Emitter,i={onDidChangeCodeLenses:t.event,provideCodeLenses:(r,o)=>{let s=this._client,a=(u,c)=>s.sendRequest(S.CodeLensRequest.type,s4(u),c).then(h=>c.isCancellationRequested?null:h,h=>s.handleFailedRequest(S.CodeLensRequest.type,c,h,null)),l=s.clientOptions.middleware;return l.provideCodeLenses?l.provideCodeLenses(r,o,a):a(r,o)},resolveCodeLens:e.resolveProvider?(r,o)=>{let s=this._client,a=(u,c)=>s.sendRequest(S.CodeLensResolveRequest.type,u,c).then(h=>c.isCancellationRequested?u:h,h=>s.handleFailedRequest(S.CodeLensResolveRequest.type,c,h,u)),l=s.clientOptions.middleware;return l.resolveCodeLens?l.resolveCodeLens(r,o,a):a(r,o)}:void 0};return[j.registerCodeLensProvider(e.documentSelector,i),{provider:i,onDidChangeCodeLensEmitter:t}]}},k4=class extends Ie{constructor(e){super(e,S.DocumentFormattingRequest.type)}fillClientCapabilities(e){G(G(e,"textDocument"),"formatting").dynamicRegistration=!0}initialize(e,t){let i=this.getRegistrationOptions(t,e.documentFormattingProvider);!i||this.register({id:Ue(),registerOptions:i})}registerLanguageProvider(e){let t={provideDocumentFormattingEdits:(i,r,o)=>{let s=this._client,a=(u,c,h)=>{let d={textDocument:{uri:u.uri},options:c};return s.sendRequest(S.DocumentFormattingRequest.type,d,h).then(g=>h.isCancellationRequested?null:g,g=>s.handleFailedRequest(S.DocumentFormattingRequest.type,h,g,null))},l=s.clientOptions.middleware;return l.provideDocumentFormattingEdits?l.provideDocumentFormattingEdits(i,r,o,a):a(i,r,o)}};return[j.registerDocumentFormatProvider(e.documentSelector,t,this._client.clientOptions.formatterPriority),t]}},E4=class extends Ie{constructor(e){super(e,S.DocumentRangeFormattingRequest.type)}fillClientCapabilities(e){G(G(e,"textDocument"),"rangeFormatting").dynamicRegistration=!0}initialize(e,t){let i=this.getRegistrationOptions(t,e.documentRangeFormattingProvider);!i||this.register({id:Ue(),registerOptions:i})}registerLanguageProvider(e){let t={provideDocumentRangeFormattingEdits:(i,r,o,s)=>{let a=this._client,l=(c,h,d,g)=>{let p={textDocument:{uri:c.uri},range:h,options:d};return a.sendRequest(S.DocumentRangeFormattingRequest.type,p,g).then(f=>g.isCancellationRequested?null:f,f=>a.handleFailedRequest(S.DocumentRangeFormattingRequest.type,g,f,null))},u=a.clientOptions.middleware;return u.provideDocumentRangeFormattingEdits?u.provideDocumentRangeFormattingEdits(i,r,o,s,l):l(i,r,o,s)}};return[j.registerDocumentRangeFormatProvider(e.documentSelector,t),t]}},P4=class extends Ie{constructor(e){super(e,S.DocumentOnTypeFormattingRequest.type)}fillClientCapabilities(e){G(G(e,"textDocument"),"onTypeFormatting").dynamicRegistration=!0}initialize(e,t){let i=this.getRegistrationOptions(t,e.documentOnTypeFormattingProvider);!i||this.register({id:Ue(),registerOptions:i})}registerLanguageProvider(e){let t={provideOnTypeFormattingEdits:(o,s,a,l,u)=>{let c=this._client,h=(g,p,f,m,b)=>{let w={textDocument:Gw(g),position:p,ch:f,options:m};return c.sendRequest(S.DocumentOnTypeFormattingRequest.type,w,b).then(D=>b.isCancellationRequested?null:D,D=>c.handleFailedRequest(S.DocumentOnTypeFormattingRequest.type,b,D,null))},d=c.clientOptions.middleware;return d.provideOnTypeFormattingEdits?d.provideOnTypeFormattingEdits(o,s,a,l,u,h):h(o,s,a,l,u)}},i=e.moreTriggerCharacter||[],r=[e.firstTriggerCharacter,...i];return[j.registerOnTypeFormattingEditProvider(e.documentSelector,t,r),t]}},_4=class extends Ie{constructor(e){super(e,S.RenameRequest.type)}fillClientCapabilities(e){let t=G(G(e,"textDocument"),"rename");t.dynamicRegistration=!0,t.prepareSupport=!0}initialize(e,t){let i=this.getRegistrationOptions(t,e.renameProvider);!i||(ar(e.renameProvider)&&(i.prepareProvider=!1),this.register({id:Ue(),registerOptions:i}))}registerLanguageProvider(e){let t={provideRenameEdits:(i,r,o,s)=>{let a=this._client,l=(c,h,d,g)=>{let p={textDocument:{uri:c.uri},position:h,newName:d};return a.sendRequest(S.RenameRequest.type,p,g).then(f=>g.isCancellationRequested?null:f,f=>a.handleFailedRequest(S.RenameRequest.type,g,f,null))},u=a.clientOptions.middleware;return u.provideRenameEdits?u.provideRenameEdits(i,r,o,s,l):l(i,r,o,s)},prepareRename:e.prepareProvider?(i,r,o)=>{let s=this._client,a=(u,c,h)=>{let d={textDocument:eo(u),position:c};return s.sendRequest(S.PrepareRenameRequest.type,d,h).then(g=>h.isCancellationRequested?null:S.Range.is(g)?g:this.isDefaultBehavior(g)?g.defaultBehavior===!0?null:Promise.reject(new Error("The element can't be renamed.")):g&&S.Range.is(g.range)?{range:g.range,placeholder:g.placeholder}:Promise.reject(new Error("The element can't be renamed.")),g=>s.handleFailedRequest(S.PrepareRenameRequest.type,h,g,void 0))},l=s.clientOptions.middleware;return l.prepareRename?l.prepareRename(i,r,o,a):a(i,r,o)}:void 0};return[j.registerRenameProvider(e.documentSelector,t),t]}isDefaultBehavior(e){let t=e;return t&&ar(t.defaultBehavior)}},R4=class extends Ie{constructor(e){super(e,S.DocumentLinkRequest.type)}fillClientCapabilities(e){let t=G(G(e,"textDocument"),"documentLink");t.dynamicRegistration=!0,t.tooltipSupport=!0}initialize(e,t){let i=this.getRegistrationOptions(t,e.documentLinkProvider);!i||this.register({id:Ue(),registerOptions:i})}registerLanguageProvider(e){let t={provideDocumentLinks:(i,r)=>{let o=this._client,s=(l,u)=>o.sendRequest(S.DocumentLinkRequest.type,{textDocument:{uri:l.uri}},u).then(c=>u.isCancellationRequested?null:c,c=>o.handleFailedRequest(S.DocumentLinkRequest.type,u,c,null)),a=o.clientOptions.middleware;return a.provideDocumentLinks?a.provideDocumentLinks(i,r,s):s(i,r)},resolveDocumentLink:e.resolveProvider?(i,r)=>{let o=this._client,s=(l,u)=>o.sendRequest(S.DocumentLinkResolveRequest.type,l,u).then(c=>u.isCancellationRequested?l:c,c=>o.handleFailedRequest(S.DocumentLinkResolveRequest.type,u,c,l)),a=o.clientOptions.middleware;return a.resolveDocumentLink?a.resolveDocumentLink(i,r,s):s(i,r)}:void 0};return[j.registerDocumentLinkProvider(e.documentSelector,t),t]}},L4=class{constructor(e){this._client=e;this._listeners=new Map}get registrationType(){return S.DidChangeConfigurationNotification.type}fillClientCapabilities(e){G(G(e,"workspace"),"didChangeConfiguration").dynamicRegistration=!0}initialize(){var t;let e=(t=this._client.clientOptions.synchronize)==null?void 0:t.configurationSection;e!==void 0&&this.register({id:Ue(),registerOptions:{section:e}})}register(e){let{section:t}=e.registerOptions,i=v.onDidChangeConfiguration(r=>{this.onDidChangeConfiguration(e.registerOptions.section,r)});this._listeners.set(e.id,i),t!=null&&this.onDidChangeConfiguration(t,void 0)}unregister(e){let t=this._listeners.get(e);t&&(this._listeners.delete(e),t.dispose())}dispose(){for(let e of this._listeners.values())e.dispose();this._listeners.clear()}onDidChangeConfiguration(e,t){let i=typeof e=="string"&&e.startsWith("languageserver."),r;if(Be(e)?r=[e]:r=e,r!=null&&t!=null&&!r.some(l=>t.affectsConfiguration(l)))return;let o=a=>{if(a==null){this._client.sendNotification(S.DidChangeConfigurationNotification.type,{settings:null});return}this._client.sendNotification(S.DidChangeConfigurationNotification.type,{settings:i?this.getConfiguredSettings(a[0]):this.extractSettingsInformation(a)})},s=this.getMiddleware();s?s(r,o):o(r)}getConfiguredSettings(e){let t=9,i=v.getConfiguration(e.slice(0,-t));return mW(i.get("settings",{}))}extractSettingsInformation(e){function t(r,o){let s=r;for(let a=0;a=0?a=v.getConfiguration(o.substr(0,s)).get(o.substr(s+1)):a=v.getConfiguration(o),a){let l=e[r].split(".");t(i,l)[l[l.length-1]]=a}}return i}getMiddleware(){let e=this._client.clientOptions.middleware;if(e.workspace&&e.workspace.didChangeConfiguration)return e.workspace.didChangeConfiguration}},F4=class{constructor(e){this._client=e;this._commands=new Map}get registrationType(){return S.ExecuteCommandRequest.type}fillClientCapabilities(e){G(G(e,"workspace"),"executeCommand").dynamicRegistration=!0}initialize(e){!e.executeCommandProvider||this.register({id:Ue(),registerOptions:Object.assign({},e.executeCommandProvider)})}register(e){let t=this._client,i=t.clientOptions.middleware,r=(o,s)=>{let a={command:o,arguments:s};return t.sendRequest(S.ExecuteCommandRequest.type,a).then(void 0,l=>{throw t.handleFailedRequest(S.ExecuteCommandRequest.type,void 0,l,void 0),l})};if(e.registerOptions.commands){let o=[];for(let s of e.registerOptions.commands)o.push(he.registerCommand(s,(...a)=>i.executeCommand?i.executeCommand(s,a,r):r(s,a),null,!0));this._commands.set(e.id,o)}}unregister(e){let t=this._commands.get(e);t&&t.forEach(i=>i.dispose())}dispose(){this._commands.forEach(e=>{e.forEach(t=>t.dispose())}),this._commands.clear()}};(e=>{function n(t){return t&&S.MessageReader.is(t.reader)&&S.MessageWriter.is(t.writer)}e.is=n})(Rh||(Rh={}));Z_=class{constructor(e,t){this._resolve=e;this._reject=t;this._used=!1}get isUsed(){return this._used}resolve(){this._used=!0,this._resolve()}reject(e){this._used=!0,this._reject(e)}},Qw=class{constructor(e,t,i){this._features=[];this._dynamicFeatures=new Map;var l;this._id=e,this._name=t,i.outputChannel?this._outputChannel=i.outputChannel:this._outputChannel=void 0;let r=!1;(v.getConfiguration("suggest").get("snippetsSupport",!0)===!1||i.disableSnippetCompletion)&&(r=!0);let s={isTrusted:!1,supportHtml:!1};i.markdown!=null&&(s.isTrusted=i.markdown.isTrusted===!0,s.supportHtml=i.markdown.supportHtml===!0),this._clientOptions={disableSnippetCompletion:r,disableDynamicRegister:i.disableDynamicRegister,disabledFeatures:i.disabledFeatures||[],formatterPriority:i.formatterPriority,ignoredRootPaths:i.ignoredRootPaths,documentSelector:i.documentSelector||[],synchronize:i.synchronize||{},diagnosticCollectionName:i.diagnosticCollectionName,outputChannelName:i.outputChannelName||this._id,revealOutputChannelOn:i.revealOutputChannelOn||4,stdioEncoding:i.stdioEncoding||"utf8",initializationOptions:i.initializationOptions,initializationFailedHandler:i.initializationFailedHandler,progressOnInitialization:!!i.progressOnInitialization,errorHandler:i.errorHandler||this.createDefaultErrorHandler((l=i.connectionOptions)==null?void 0:l.maxRestartCount),middleware:i.middleware||{},workspaceFolder:i.workspaceFolder,connectionOptions:i.connectionOptions,markdown:s};for(let u of["disableCompletion","disableWorkspaceFolders","disableDiagnostics"])if(typeof i[u]=="boolean"){let c=` `+Error().stack.split(` `).slice(2,4).join(` -`);if(fo.warn(`${u} in the client options is deprecated. use disabledFeatures instead.`,c),this.warn(`${u} in the client options is deprecated. use disabledFeatures instead.`,c),i[u]===!0){let h=u.slice(7);this._clientOptions.disabledFeatures.push(h[0].toLowerCase()+h.slice(1))}}this.state=0,this._connectionPromise=void 0,this._resolvedConnection=void 0,this._initializeResult=void 0,this._listeners=void 0,this._providers=void 0,this._diagnostics=void 0,this._fileEvents=[],this._fileEventDelayer=new $P(250),this._onReady=new Promise((u,c)=>{this._onReadyCallbacks=new KP(u,c)}),this._onStop=void 0,this._stateChangeEmitter=new x.Emitter,this._trace=x.Trace.Off,this._tracer={log:(u,c)=>{Ee(u)?this.logTrace(u,c):this.logObjectTrace(u)}},this._syncedDocuments=new Map;let a=y.getConfiguration("coc.preferences");this._markdownSupport=a.get("enableMarkdown",!0),this.registerBuiltinFeatures()}get supportedMarkupKind(){return this._markdownSupport?[x.MarkupKind.Markdown,x.MarkupKind.PlainText]:[x.MarkupKind.PlainText]}get state(){return this._state}get id(){return this._id}get name(){return this._name}set state(e){let t=this.getPublicState();this._state=e;let i=this.getPublicState();i!==t&&this._stateChangeEmitter.fire({oldState:t,newState:i})}getPublicState(){return this.state===3?2:this.state===1?3:1}get initializeResult(){return this._initializeResult}sendRequest(e,...t){if(!this.isConnectionActive())throw new Error("Language client is not ready yet");try{return this._resolvedConnection.sendRequest(e,...t)}catch(i){throw this.error(`Sending request ${Ee(e)?e:e.method} failed.`,i),i}}onRequest(e,t){if(!this.isConnectionActive())throw new Error("Language client is not ready yet");try{return this._resolvedConnection.onRequest(e,t)}catch(i){throw this.error(`Registering request handler ${Ee(e)?e:e.method} failed.`,i),i}}sendNotification(e,t){if(!this.isConnectionActive())throw new Error("Language client is not ready yet");try{this._resolvedConnection.sendNotification(e,t)}catch(i){throw this.error(`Sending notification ${Ee(e)?e:e.method} failed.`,i),i}}onNotification(e,t){if(!this.isConnectionActive())throw new Error("Language client is not ready yet");try{return this._resolvedConnection.onNotification(e,t)}catch(i){throw this.error(`Registering notification handler ${Ee(e)?e:e.method} failed.`,i),i}}onProgress(e,t,i){if(!this.isConnectionActive())throw new Error("Language client is not ready yet");try{if(e==x.WorkDoneProgress.type){let r=this._clientOptions.middleware.handleWorkDoneProgress;if(r!==void 0)return this._resolvedConnection.onProgress(e,t,o=>{r(t,o,()=>i(o))})}return this._resolvedConnection.onProgress(e,t,i)}catch(r){throw this.error(`Registering progress handler for token ${t} failed.`,r),r}}sendProgress(e,t,i){if(!this.isConnectionActive())throw new Error("Language client is not ready yet");try{this._resolvedConnection.sendProgress(e,t,i)}catch(r){throw this.error(`Sending progress for token ${t} failed.`,r),r}}get clientOptions(){return this._clientOptions}get onDidChangeState(){return this._stateChangeEmitter.event}get outputChannel(){if(!this._outputChannel){let{outputChannelName:e}=this._clientOptions;this._outputChannel=k.createOutputChannel(e||this._name)}return this._outputChannel}get diagnostics(){return this._diagnostics}createDefaultErrorHandler(e){return new ZG(this._id,e!=null?e:4)}set trace(e){this._trace=e,this.onReady().then(()=>{this.resolveConnection().then(t=>{t.trace(this._trace,this._tracer,{sendNotification:!1,traceFormat:this._traceFormat})})},()=>{})}logObjectTrace(e){e.isLSPMessage&&e.type?this.outputChannel.append(`[LSP - ${new Date().toLocaleTimeString()}] `):this.outputChannel.append(`[Trace - ${new Date().toLocaleTimeString()}] `),e&&this.outputChannel.appendLine(`${JSON.stringify(e)}`)}data2String(e){if(e instanceof x.ResponseError){let t=e;return` Message: ${t.message} +`);if(Lo.warn(`${u} in the client options is deprecated. use disabledFeatures instead.`,c),this.warn(`${u} in the client options is deprecated. use disabledFeatures instead.`,c),i[u]===!0){let h=u.slice(7);this._clientOptions.disabledFeatures.push(h[0].toLowerCase()+h.slice(1))}}this.state=0,this._connectionPromise=void 0,this._resolvedConnection=void 0,this._initializeResult=void 0,this._listeners=void 0,this._providers=void 0,this._diagnostics=void 0,this._fileEvents=[],this._fileEventDelayer=new H_(250),this._onReady=new Promise((u,c)=>{this._onReadyCallbacks=new Z_(u,c)}),this._onStop=void 0,this._stateChangeEmitter=new S.Emitter,this._trace=S.Trace.Off,this._tracer={log:(u,c)=>{Be(u)?this.logTrace(u,c):this.logObjectTrace(u)}},this._syncedDocuments=new Map;let a=v.getConfiguration("coc.preferences");this._markdownSupport=a.get("enableMarkdown",!0),this.registerBuiltinFeatures()}get supportedMarkupKind(){return this._markdownSupport?[S.MarkupKind.Markdown,S.MarkupKind.PlainText]:[S.MarkupKind.PlainText]}get state(){return this._state}get id(){return this._id}get name(){return this._name}set state(e){let t=this.getPublicState();this._state=e;let i=this.getPublicState();i!==t&&this._stateChangeEmitter.fire({oldState:t,newState:i})}getPublicState(){return this.state===3?2:this.state===1?3:1}get initializeResult(){return this._initializeResult}sendRequest(e,...t){if(!this.isConnectionActive())throw new Error("Language client is not ready yet");try{return this._resolvedConnection.sendRequest(e,...t)}catch(i){throw this.error(`Sending request ${Be(e)?e:e.method} failed.`,i),i}}onRequest(e,t){if(!this.isConnectionActive())throw new Error("Language client is not ready yet");try{return this._resolvedConnection.onRequest(e,t)}catch(i){throw this.error(`Registering request handler ${Be(e)?e:e.method} failed.`,i),i}}sendNotification(e,t){if(!this.isConnectionActive())throw new Error("Language client is not ready yet");try{this._resolvedConnection.sendNotification(e,t)}catch(i){throw this.error(`Sending notification ${Be(e)?e:e.method} failed.`,i),i}}onNotification(e,t){if(!this.isConnectionActive())throw new Error("Language client is not ready yet");try{return this._resolvedConnection.onNotification(e,t)}catch(i){throw this.error(`Registering notification handler ${Be(e)?e:e.method} failed.`,i),i}}onProgress(e,t,i){if(!this.isConnectionActive())throw new Error("Language client is not ready yet");try{if(e==S.WorkDoneProgress.type){let r=this._clientOptions.middleware.handleWorkDoneProgress;if(r!==void 0)return this._resolvedConnection.onProgress(e,t,o=>{r(t,o,()=>i(o))})}return this._resolvedConnection.onProgress(e,t,i)}catch(r){throw this.error(`Registering progress handler for token ${t} failed.`,r),r}}sendProgress(e,t,i){if(!this.isConnectionActive())throw new Error("Language client is not ready yet");try{this._resolvedConnection.sendProgress(e,t,i)}catch(r){throw this.error(`Sending progress for token ${t} failed.`,r),r}}get clientOptions(){return this._clientOptions}get onDidChangeState(){return this._stateChangeEmitter.event}get outputChannel(){if(!this._outputChannel){let{outputChannelName:e}=this._clientOptions;this._outputChannel=k.createOutputChannel(e||this._name)}return this._outputChannel}get diagnostics(){return this._diagnostics}createDefaultErrorHandler(e){return new u4(this._id,e??4)}set trace(e){this._trace=e,this.onReady().then(()=>{this.resolveConnection().then(t=>{t.trace(this._trace,this._tracer,{sendNotification:!1,traceFormat:this._traceFormat})})},()=>{})}logObjectTrace(e){e.isLSPMessage&&e.type?this.outputChannel.append(`[LSP - ${new Date().toLocaleTimeString()}] `):this.outputChannel.append(`[Trace - ${new Date().toLocaleTimeString()}] `),e&&this.outputChannel.appendLine(`${JSON.stringify(e)}`)}data2String(e){if(e instanceof S.ResponseError){let t=e;return` Message: ${t.message} Code: ${t.code} ${t.data?` -`+t.data.toString():""}`}return e instanceof Error?Ee(e.stack)?e.stack:e.message:Ee(e)?e:e.toString()}_appendOutput(e,t,i){let r=3;switch(e){case"Info":r=1;break;case"Warn":r=2;break}this.outputChannel.appendLine(`[${e} - ${new Date().toLocaleTimeString()}] ${t}`);let o;i&&(o=this.data2String(i),this.outputChannel.appendLine(o)),this._clientOptions.revealOutputChannelOn<=r&&this.outputChannel.show(!0)}info(e,t){this._appendOutput("Info",e,t)}warn(e,t){this._appendOutput("Warn",e,t)}error(e,t){this._appendOutput("Error",e,t)}logTrace(e,t){this.outputChannel.appendLine(`[Trace - ${new Date().toLocaleTimeString()}] ${e}`),t&&this.outputChannel.appendLine(this.data2String(t))}needsStart(){return this.state===0||this.state===4||this.state===5}needsStop(){return this.state===1||this.state===3}onReady(){return this._onReady}get started(){return this.state!=0}isConnectionActive(){return this.state===3&&!!this._resolvedConnection}start(){if(this._rootPath=this.resolveRootPath(),this._rootPath===!1)return this.warn("Required root pattern not resolved, server won't start."),x.Disposable.create(()=>{});if(this._onReadyCallbacks.isUsed&&(this._onReady=new Promise((e,t)=>{this._onReadyCallbacks=new KP(e,t)})),this._listeners=[],this._providers=[],!this._diagnostics){let e=this._clientOptions,t=e.diagnosticCollectionName?e.diagnosticCollectionName:this._id;e.disabledFeatures.includes("diagnostics")||(this._diagnostics=A.createDiagnosticCollection(t))}return this.state=1,this.resolveConnection().then(e=>(e.onLogMessage(t=>{let i;switch(t.type){case x.MessageType.Error:i="error",this.error(t.message);break;case x.MessageType.Warning:i="warning",this.warn(t.message);break;case x.MessageType.Info:i="info",this.info(t.message);break;default:i="log",this.outputChannel.appendLine(t.message)}if(global.hasOwnProperty("__TEST__")){console.log(`[${i}] ${t.message}`);return}}),e.onShowMessage(t=>{switch(t.type){case x.MessageType.Error:k.showErrorMessage(t.message);break;case x.MessageType.Warning:k.showWarningMessage(t.message);break;case x.MessageType.Info:k.showInformationMessage(t.message);break;default:k.showInformationMessage(t.message)}}),e.onRequest(x.ShowMessageRequest.type,t=>{let i;switch(t.type){case x.MessageType.Error:i=k.showErrorMessage.bind(k);break;case x.MessageType.Warning:i=k.showWarningMessage.bind(k);break;case x.MessageType.Info:i=k.showInformationMessage.bind(k);break;default:i=k.showInformationMessage.bind(k)}let r=t.actions||[];return i(t.message,...r).then(o=>o==null?null:o)}),e.onRequest(x.ShowDocumentRequest.type,async t=>{var o;let i=async s=>{try{if(s.external===!0||/^https?:\/\//.test(s.uri))return await y.openResource(s.uri),{success:!0};{let{selection:a,takeFocus:l}=s;return l===!1?await y.loadFile(s.uri):(await y.jumpTo(s.uri,a==null?void 0:a.start),De(a.start,a.end)!=0&&await k.selectRange(a)),{success:!0}}}catch{return{success:!0}}},r=(o=this._clientOptions.middleware.window)==null?void 0:o.showDocument;return r!==void 0?r(t,i):i(t)}),e.onTelemetry(t=>{}),e.listen(),this.initialize(e))).then(void 0,e=>{this.state=2,this._onReadyCallbacks.reject(e),this.error("Starting client failed ",e)}),x.Disposable.create(()=>{this.needsStop()&&this.stop()})}resolveConnection(){return this._connectionPromise||(this._connectionPromise=this.createConnection()),this._connectionPromise}resolveRootPath(){if(this._clientOptions.workspaceFolder)return O.parse(this._clientOptions.workspaceFolder.uri).fsPath;let{ignoredRootPaths:e}=this._clientOptions,t=y.getConfiguration(this.id),i=t.get("rootPatterns",[]),r=t.get("requireRootPattern",!1),o;if(i&&i.length){let a=y.getDocument(y.bufnr);if(a&&a.schema=="file"){let l=GP.default.dirname(O.parse(a.uri).fsPath);o=mb(l,i,y.cwd)}}if(r&&!o)return!1;let s=o||y.rootPath||y.cwd;return ii(s,YG.default.homedir())||Array.isArray(e)&&e.some(a=>ii(s,a))?(this.warn(`Ignored rootPath ${s} of client "${this._id}"`),null):s}initialize(e){let{initializationOptions:t,progressOnInitialization:i}=this._clientOptions;this.refreshTrace(e,!1);let r=this._rootPath,o={processId:process.pid,rootPath:r||null,rootUri:r?qf(O.file(r)):null,capabilities:this.computeClientCapabilities(),initializationOptions:Qs(t)?t():t,trace:x.Trace.toString(this._trace),workspaceFolders:null,locale:this.getLocale(),clientInfo:{name:"coc.nvim",version:y.version}};if(this.fillInitializeParams(o),i){let s=qe();o.workDoneToken=s;let a=new Hf(this._id,e,s);return a.begin({title:`Initializing ${this.id}`,kind:"begin"}),this.doInitialize(e,o).then(l=>(a.done(),l),l=>{throw a.cancel(),l})}else return this.doInitialize(e,o)}doInitialize(e,t){return e.initialize(t).then(i=>{this._resolvedConnection=e,this._initializeResult=i,this.state=3;let r;return ib(i.capabilities.textDocumentSync)?i.capabilities.textDocumentSync===x.TextDocumentSyncKind.None?r={openClose:!1,change:x.TextDocumentSyncKind.None,save:void 0}:r={openClose:!0,change:i.capabilities.textDocumentSync,save:{includeText:!1}}:i.capabilities.textDocumentSync!=null&&i.capabilities.textDocumentSync!==void 0&&(r=i.capabilities.textDocumentSync),this._capabilities=Object.assign({},i.capabilities,{resolvedTextDocumentSync:r}),e.onDiagnostics(o=>this.handleDiagnostics(o)),e.onRequest(x.RegistrationRequest.type,o=>this.handleRegistrationRequest(o)),e.onRequest("client/registerFeature",o=>this.handleRegistrationRequest(o)),e.onRequest(x.UnregistrationRequest.type,o=>this.handleUnregistrationRequest(o)),e.onRequest("client/unregisterFeature",o=>this.handleUnregistrationRequest(o)),e.onRequest(x.ApplyWorkspaceEditRequest.type,o=>this.handleApplyWorkspaceEdit(o)),e.sendNotification(x.InitializedNotification.type,{}),this.hookFileEvents(e),this.hookConfigurationChanged(e),this.initializeFeatures(e),this._onReadyCallbacks.resolve(),i}).then(void 0,i=>{throw this._clientOptions.initializationFailedHandler?this._clientOptions.initializationFailedHandler(i)?this.initialize(e):(this.stop(),this._onReadyCallbacks.reject(i)):i instanceof x.ResponseError&&i.data&&i.data.retry?k.showPrompt(i.message+" Retry?").then(r=>{r?this.initialize(e):(this.stop(),this._onReadyCallbacks.reject(i))}):(i&&i.message&&k.showMessage(i.message,"error"),this.error("Server initialization failed.",i),this.stop(),this._onReadyCallbacks.reject(i)),i})}stop(){if(this._initializeResult=void 0,!this._connectionPromise)return this.state=5,Promise.resolve();if(this.state===4&&this._onStop)return this._onStop;this.state=4,this.cleanUp();let e=this.resolveConnection().then(t=>{let i=!1,r=setTimeout(()=>{i=!0,t.end(),t.dispose()},2e3);return t.shutdown().then(()=>(clearTimeout(r),t.exit(),t),o=>{if(!i)throw t.end(),t.dispose(),o})});return(this._onStop=e.then(t=>{t&&t.unlisten()},t=>{throw fo.error("Stopping server failed:",t),this.error("Stopping server failed",t),t})).finally(()=>{this.state=5,this.cleanUpChannel(),this._onStop=void 0,this._connectionPromise=void 0,this._resolvedConnection=void 0})}cleanUp(e=!0,t=!0){this._listeners&&(this._listeners.forEach(i=>i.dispose()),this._listeners=void 0),this._providers&&(this._providers.forEach(i=>i.dispose()),this._providers=void 0);for(let i of this._features.values())typeof i.dispose=="function"?i.dispose():fo.error("Feature can't be disposed",i);this._syncedDocuments&&this._syncedDocuments.clear(),e&&this.cleanUpChannel(),this._diagnostics&&(t?(this._diagnostics.dispose(),this._diagnostics=void 0):this._diagnostics.clear())}cleanUpChannel(){this._outputChannel&&(this._outputChannel.dispose(),this._outputChannel=void 0)}notifyFileEvent(e){var o;let t=this;function i(s){t._fileEvents.push(s),t._fileEventDelayer.trigger(()=>{t.onReady().then(()=>{t.resolveConnection().then(a=>{t.isConnectionActive()&&a.didChangeWatchedFiles({changes:t._fileEvents}),t._fileEvents=[]})},a=>{t.error("Notify file events failed.",a)})})}let r=(o=this.clientOptions.middleware)==null?void 0:o.workspace;r!=null&&r.didChangeWatchedFile?r.didChangeWatchedFile(e,i):i(e)}handleDiagnostics(e){if(!this._diagnostics)return;let{uri:t,diagnostics:i,version:r}=e;if(typeof r=="number"){let s=y.getDocument(t);if(!s||s.version!=r)return}let o=this.clientOptions.middleware.handleDiagnostics;o?o(t,i,(s,a)=>this.setDiagnostics(s,a)):this.setDiagnostics(t,i)}setDiagnostics(e,t){var r;if(!this._diagnostics)return;if(y.getConfiguration("diagnostic").get("separateRelatedInformationAsDiagnostics")&&t.length>0){let o=new Map;o.set(e,t);for(let s of t){if((r=s.relatedInformation)!=null&&r.length){let a=`${s.message} +`+t.data.toString():""}`}return e instanceof Error?Be(e.stack)?e.stack:e.message:Be(e)?e:e.toString()}_appendOutput(e,t,i){let r=3;switch(e){case"Info":r=1;break;case"Warn":r=2;break}this.outputChannel.appendLine(`[${e} - ${new Date().toLocaleTimeString()}] ${t}`);let o;i&&(o=this.data2String(i),this.outputChannel.appendLine(o)),this._clientOptions.revealOutputChannelOn<=r&&this.outputChannel.show(!0)}info(e,t){this._appendOutput("Info",e,t)}warn(e,t){this._appendOutput("Warn",e,t)}error(e,t){this._appendOutput("Error",e,t)}logTrace(e,t){this.outputChannel.appendLine(`[Trace - ${new Date().toLocaleTimeString()}] ${e}`),t&&this.outputChannel.appendLine(this.data2String(t))}needsStart(){return this.state===0||this.state===4||this.state===5}needsStop(){return this.state===1||this.state===3}onReady(){return this._onReady}get started(){return this.state!=0}isConnectionActive(){return this.state===3&&!!this._resolvedConnection}start(){if(this._rootPath=this.resolveRootPath(),this._rootPath===!1)return this.warn("Required root pattern not resolved, server won't start."),S.Disposable.create(()=>{});if(this._onReadyCallbacks.isUsed&&(this._onReady=new Promise((e,t)=>{this._onReadyCallbacks=new Z_(e,t)})),this._listeners=[],this._providers=[],!this._diagnostics){let e=this._clientOptions,t=e.diagnosticCollectionName?e.diagnosticCollectionName:this._id;e.disabledFeatures.includes("diagnostics")||(this._diagnostics=j.createDiagnosticCollection(t))}return this.state=1,this.resolveConnection().then(e=>(e.onLogMessage(t=>{let i;switch(t.type){case S.MessageType.Error:i="error",this.error(t.message);break;case S.MessageType.Warning:i="warning",this.warn(t.message);break;case S.MessageType.Info:i="info",this.info(t.message);break;default:i="log",this.outputChannel.appendLine(t.message)}if(global.hasOwnProperty("__TEST__")){console.log(`[${i}] ${t.message}`);return}}),e.onShowMessage(t=>{switch(t.type){case S.MessageType.Error:k.showErrorMessage(t.message);break;case S.MessageType.Warning:k.showWarningMessage(t.message);break;case S.MessageType.Info:k.showInformationMessage(t.message);break;default:k.showInformationMessage(t.message)}}),e.onRequest(S.ShowMessageRequest.type,t=>{let i;switch(t.type){case S.MessageType.Error:i=k.showErrorMessage.bind(k);break;case S.MessageType.Warning:i=k.showWarningMessage.bind(k);break;case S.MessageType.Info:i=k.showInformationMessage.bind(k);break;default:i=k.showInformationMessage.bind(k)}let r=t.actions||[];return i(t.message,...r).then(o=>o??null)}),e.onRequest(S.ShowDocumentRequest.type,async t=>{var o;let i=async s=>{try{if(s.external===!0||/^https?:\/\//.test(s.uri))return await v.openResource(s.uri),{success:!0};{let{selection:a,takeFocus:l}=s;return l===!1?await v.loadFile(s.uri):(await v.jumpTo(s.uri,a==null?void 0:a.start),Fe(a.start,a.end)!=0&&await k.selectRange(a)),{success:!0}}}catch{return{success:!0}}},r=(o=this._clientOptions.middleware.window)==null?void 0:o.showDocument;return r!==void 0?r(t,i):i(t)}),e.onTelemetry(t=>{}),e.listen(),this.initialize(e))).then(void 0,e=>{this.state=2,this._onReadyCallbacks.reject(e),this.error("Starting client failed ",e)}),S.Disposable.create(()=>{this.needsStop()&&this.stop()})}resolveConnection(){return this._connectionPromise||(this._connectionPromise=this.createConnection()),this._connectionPromise}resolveRootPath(){if(this._clientOptions.workspaceFolder)return I.parse(this._clientOptions.workspaceFolder.uri).fsPath;let{ignoredRootPaths:e}=this._clientOptions,t=v.getConfiguration(this.id),i=t.get("rootPatterns",[]),r=t.get("requireRootPattern",!1),o;if(i&&i.length){let a=v.getDocument(v.bufnr);if(a&&a.schema=="file"){let l=Y_.default.dirname(I.parse(a.uri).fsPath);o=Wy(l,i,v.cwd)}}if(r&&!o)return!1;let s=o||v.rootPath||v.cwd;return li(s,a4.default.homedir())||Array.isArray(e)&&e.some(a=>li(s,a))?(this.warn(`Ignored rootPath ${s} of client "${this._id}"`),null):s}initialize(e){let{initializationOptions:t,progressOnInitialization:i}=this._clientOptions;this.refreshTrace(e,!1);let r=this._rootPath,o={processId:process.pid,rootPath:r||null,rootUri:r?uf(I.file(r)):null,capabilities:this.computeClientCapabilities(),initializationOptions:ua(t)?t():t,trace:S.Trace.toString(this._trace),workspaceFolders:null,locale:this.getLocale(),clientInfo:{name:"coc.nvim",version:v.version}};if(this.fillInitializeParams(o),i){let s=Ue();o.workDoneToken=s;let a=new lf(this._id,e,s);return a.begin({title:`Initializing ${this.id}`,kind:"begin"}),this.doInitialize(e,o).then(l=>(a.done(),l),l=>{throw a.cancel(),l})}else return this.doInitialize(e,o)}doInitialize(e,t){return e.initialize(t).then(i=>{this._resolvedConnection=e,this._initializeResult=i,this.state=3;let r;return _y(i.capabilities.textDocumentSync)?i.capabilities.textDocumentSync===S.TextDocumentSyncKind.None?r={openClose:!1,change:S.TextDocumentSyncKind.None,save:void 0}:r={openClose:!0,change:i.capabilities.textDocumentSync,save:{includeText:!1}}:i.capabilities.textDocumentSync!=null&&i.capabilities.textDocumentSync!==void 0&&(r=i.capabilities.textDocumentSync),this._capabilities=Object.assign({},i.capabilities,{resolvedTextDocumentSync:r}),e.onDiagnostics(o=>this.handleDiagnostics(o)),e.onRequest(S.RegistrationRequest.type,o=>this.handleRegistrationRequest(o)),e.onRequest("client/registerFeature",o=>this.handleRegistrationRequest(o)),e.onRequest(S.UnregistrationRequest.type,o=>this.handleUnregistrationRequest(o)),e.onRequest("client/unregisterFeature",o=>this.handleUnregistrationRequest(o)),e.onRequest(S.ApplyWorkspaceEditRequest.type,o=>this.handleApplyWorkspaceEdit(o)),e.sendNotification(S.InitializedNotification.type,{}),this.hookFileEvents(e),this.hookConfigurationChanged(e),this.initializeFeatures(e),this._onReadyCallbacks.resolve(),i}).then(void 0,i=>{throw this._clientOptions.initializationFailedHandler?this._clientOptions.initializationFailedHandler(i)?this.initialize(e):(this.stop(),this._onReadyCallbacks.reject(i)):i instanceof S.ResponseError&&i.data&&i.data.retry?k.showPrompt(i.message+" Retry?").then(r=>{r?this.initialize(e):(this.stop(),this._onReadyCallbacks.reject(i))}):(i&&i.message&&k.showMessage(i.message,"error"),this.error("Server initialization failed.",i),this.stop(),this._onReadyCallbacks.reject(i)),i})}stop(){if(this._initializeResult=void 0,!this._connectionPromise)return this.state=5,Promise.resolve();if(this.state===4&&this._onStop)return this._onStop;this.state=4,this.cleanUp();let e=this.resolveConnection().then(t=>{let i=!1,r=setTimeout(()=>{i=!0,t.end(),t.dispose()},2e3);return t.shutdown().then(()=>(clearTimeout(r),t.exit(),t),o=>{if(!i)throw t.end(),t.dispose(),o})});return(this._onStop=e.then(t=>{t&&t.unlisten()},t=>{throw Lo.error("Stopping server failed:",t),this.error("Stopping server failed",t),t})).finally(()=>{this.state=5,this.cleanUpChannel(),this._onStop=void 0,this._connectionPromise=void 0,this._resolvedConnection=void 0})}cleanUp(e=!0,t=!0){this._listeners&&(this._listeners.forEach(i=>i.dispose()),this._listeners=void 0),this._providers&&(this._providers.forEach(i=>i.dispose()),this._providers=void 0);for(let i of this._features.values())typeof i.dispose=="function"?i.dispose():Lo.error("Feature can't be disposed",i);this._syncedDocuments&&this._syncedDocuments.clear(),e&&this.cleanUpChannel(),this._diagnostics&&(t?(this._diagnostics.dispose(),this._diagnostics=void 0):this._diagnostics.clear())}cleanUpChannel(){this._outputChannel&&(this._outputChannel.dispose(),this._outputChannel=void 0)}notifyFileEvent(e){var o;let t=this;function i(s){t._fileEvents.push(s),t._fileEventDelayer.trigger(()=>{t.onReady().then(()=>{t.resolveConnection().then(a=>{t.isConnectionActive()&&a.didChangeWatchedFiles({changes:t._fileEvents}),t._fileEvents=[]})},a=>{t.error("Notify file events failed.",a)})})}let r=(o=this.clientOptions.middleware)==null?void 0:o.workspace;r!=null&&r.didChangeWatchedFile?r.didChangeWatchedFile(e,i):i(e)}handleDiagnostics(e){if(!this._diagnostics)return;let{uri:t,diagnostics:i,version:r}=e;if(typeof r=="number"){let s=v.getDocument(t);if(!s||s.version!=r)return}let o=this.clientOptions.middleware.handleDiagnostics;o?o(t,i,(s,a)=>this.setDiagnostics(s,a)):this.setDiagnostics(t,i)}setDiagnostics(e,t){var r;if(!this._diagnostics)return;if(v.getConfiguration("diagnostic").get("separateRelatedInformationAsDiagnostics")&&t.length>0){let o=new Map;o.set(e,t);for(let s of t){if((r=s.relatedInformation)!=null&&r.length){let a=`${s.message} Related diagnostics: -`;for(let l of s.relatedInformation){let u=GP.default.basename(O.parse(l.location.uri).fsPath),c=l.location.range.start.line;a=`${a} -${u}(line ${c+1}): ${l.message}`;let h=o.get(l.location.uri)||[];h.push(x.Diagnostic.create(l.location.range,l.message,x.DiagnosticSeverity.Hint,s.code,s.source)),o.set(l.location.uri,h)}s.message=a}this._diagnostics.set(Array.from(o))}}else this._diagnostics.set(e,t)}createConnection(){let e=(i,r,o)=>{fo.error("connection error:",i,r),this.handleConnectionError(i,r,o)},t=()=>{this.handleConnectionClosed()};return this.createMessageTransports(this._clientOptions.stdioEncoding||"utf8").then(i=>WSe(i.reader,i.writer,e,t,this._clientOptions.connectionOptions))}handleConnectionClosed(){if(this.state===5){fo.debug(`client ${this._id} normal close`);return}try{this._resolvedConnection&&this._resolvedConnection.dispose()}catch{}let e=1;if(this.state!==4)try{e=this._clientOptions.errorHandler.closed()}catch{}this._connectionPromise=void 0,this._resolvedConnection=void 0,e===1?(this.error("Connection to server got closed. Server will not be restarted."),this.state===1?(this._onReadyCallbacks.reject(new Error("Connection to server got closed. Server will not be restarted.")),this.state=2):this.state=5,this.cleanUp(!1,!0)):e===2&&(this.info("Connection to server got closed. Server will restart."),this.cleanUp(!1,!0),this.state=0,this.start())}restart(){this.cleanUp(!0,!1),this.start()}handleConnectionError(e,t,i){this._clientOptions.errorHandler.error(e,t,i)===2&&(this.error("Connection to server is erroring. Shutting down server."),this.stop())}hookConfigurationChanged(e){y.onDidChangeConfiguration(t=>{t.affectsConfiguration(this._id)&&this.refreshTrace(e,!0)},null,this._listeners)}refreshTrace(e,t=!1){let i=y.getConfiguration(this._id),r=x.Trace.Off,o=x.TraceFormat.Text;if(i){let s=i.get("trace.server","off");typeof s=="string"?r=x.Trace.fromString(s):(r=x.Trace.fromString(i.get("trace.server.verbosity","off")),o=x.TraceFormat.fromString(i.get("trace.server.format","text")))}t&&this._trace==r&&this._traceFormat==o||(this._trace=r,this._traceFormat=o,e.trace(this._trace,this._tracer,{sendNotification:t,traceFormat:this._traceFormat}))}hookFileEvents(e){let t=this._clientOptions.synchronize.fileEvents;if(!t)return;let i;Array.isArray(t)?i=t:i=[t],i&&this._dynamicFeatures.get(x.DidChangeWatchedFilesNotification.type.method).registerRaw(qe(),i)}registerFeatures(e){for(let t of e)this.registerFeature(t)}registerFeature(e){if(this._features.push(e),QP.is(e)){let t=e.registrationType;this._dynamicFeatures.set(t.method,e)}}getFeature(e){return this._dynamicFeatures.get(e)}registerBuiltinFeatures(){let{disabledFeatures:e}=this._clientOptions;e.includes("configuration")||this.registerFeature(new m6(this)),this.registerFeature(new XG(this,this._syncedDocuments)),this.registerFeature(new GG(this)),this.registerFeature(new UG(this,this._syncedDocuments)),e.includes("willSave")||this.registerFeature(new QG(this)),e.includes("willSaveWaitUntil")||this.registerFeature(new KG(this)),e.includes("didSave")||this.registerFeature(new zG(this)),e.includes("fileSystemWatcher")||this.registerFeature(new VG(this,t=>this.notifyFileEvent(t))),e.includes("completion")||this.registerFeature(new t6(this)),e.includes("hover")||this.registerFeature(new i6(this)),e.includes("signatureHelp")||this.registerFeature(new n6(this)),e.includes("references")||this.registerFeature(new o6(this)),e.includes("definition")||this.registerFeature(new r6(this)),e.includes("documentHighlight")||this.registerFeature(new s6(this)),e.includes("documentSymbol")||this.registerFeature(new a6(this)),e.includes("codeAction")||this.registerFeature(new u6(this)),e.includes("workspaceSymbol")||this.registerFeature(new l6(this)),e.includes("codeLens")||this.registerFeature(new c6(this)),e.includes("documentFormatting")||this.registerFeature(new h6(this)),e.includes("documentRangeFormatting")||this.registerFeature(new d6(this)),e.includes("documentOnTypeFormatting")||this.registerFeature(new g6(this)),e.includes("rename")||this.registerFeature(new f6(this)),e.includes("documentLink")||this.registerFeature(new p6(this)),e.includes("executeCommand")||this.registerFeature(new b6(this))}fillInitializeParams(e){for(let t of this._features)Qs(t.fillInitializeParams)&&t.fillInitializeParams(e)}computeClientCapabilities(){let e={};U(e,"workspace").applyEdit=!0;let t=U(U(e,"workspace"),"workspaceEdit");t.documentChanges=!0,t.resourceOperations=[x.ResourceOperationKind.Create,x.ResourceOperationKind.Rename,x.ResourceOperationKind.Delete],t.failureHandling=x.FailureHandlingKind.Undo,t.normalizesLineEndings=!0,t.changeAnnotationSupport={groupsOnLabel:!1};let i=U(U(e,"textDocument"),"publishDiagnostics");i.relatedInformation=!0,i.versionSupport=!0,i.tagSupport={valueSet:[x.DiagnosticTag.Unnecessary,x.DiagnosticTag.Deprecated]},i.codeDescriptionSupport=!0,i.dataSupport=!0;let r=U(e,"window"),o=U(r,"showMessage");o.messageActionItem={additionalPropertiesSupport:!0};let s=U(r,"showDocument");s.support=!0;let a=U(e,"general");a.regularExpressions={engine:"ECMAScript",version:"ES2020"},a.markdown={parser:"marked",version:"4.0.10"};for(let l of this._features)l.fillClientCapabilities(e);return e}initializeFeatures(e){let t=this._clientOptions.documentSelector;for(let i of this._features)i.initialize(this._capabilities,t)}handleRegistrationRequest(e){return this.clientOptions.disableDynamicRegister?Promise.resolve():new Promise((t,i)=>{for(let r of e.registrations){let o=this._dynamicFeatures.get(r.method);if(!o){i(new Error(`No feature implementation for ${r.method} found. Registration failed.`));return}let s=r.registerOptions||{};s.documentSelector=s.documentSelector||this._clientOptions.documentSelector;let a={id:r.id,registerOptions:s};try{o.register(a)}catch(l){i(l);return}}t()})}handleUnregistrationRequest(e){return new Promise((t,i)=>{for(let r of e.unregisterations){let o=this._dynamicFeatures.get(r.method);if(!o){i(new Error(`No feature implementation for ${r.method} found. Unregistration failed.`));return}o.unregister(r.id)}t()})}handleApplyWorkspaceEdit(e){let t=e.edit,i=new Map;y.textDocuments.forEach(o=>i.set(o.uri.toString(),o));let r=!1;if(t.documentChanges){for(let o of t.documentChanges)if(x.TextDocumentEdit.is(o)&&o.textDocument.version&&o.textDocument.version>=0){let s=i.get(o.textDocument.uri);if(s&&s.version!==o.textDocument.version){r=!0;break}}}return r?Promise.resolve({applied:!1}):y.applyEdit(e.edit).then(o=>({applied:o}))}getLocale(){let e=process.env.LANG;return e?e.split(".")[0]:"en"}handleFailedRequest(e,t,i,r){if(i instanceof x.ResponseError){if(i.code===x.LSPErrorCodes.RequestCancelled){if(t!==void 0&&t.isCancellationRequested)return r}else if(i.code===x.LSPErrorCodes.ContentModified)return r}this.error(`Request ${e.method} failed.`,i)}logFailedRequest(e,t){t instanceof x.ResponseError&&t.code===x.LSPErrorCodes.RequestCancelled||this.error(`Request ${e.method} failed.`,t)}}});var Gl,i_,y6=_(()=>{"use strict";Gl=C(H());Ce();Dn();"use strict";i_=class extends Me{constructor(e){super(e,Gl.DocumentColorRequest.type)}fillClientCapabilities(e){U(U(e,"textDocument"),"colorProvider").dynamicRegistration=!0}initialize(e,t){let[i,r]=this.getRegistration(t,e.colorProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){let t={provideColorPresentations:(i,r,o)=>{let s=this._client,a=(u,c,h)=>{let d={color:u,textDocument:{uri:c.document.uri},range:c.range};return s.sendRequest(Gl.ColorPresentationRequest.type,d,h).then(g=>g,g=>s.handleFailedRequest(Gl.ColorPresentationRequest.type,h,g,null))},l=s.clientOptions.middleware;return l.provideColorPresentations?l.provideColorPresentations(i,r,o,a):a(i,r,o)},provideDocumentColors:(i,r)=>{let o=this._client,s=(l,u)=>{let c={textDocument:{uri:l.uri}};return o.sendRequest(Gl.DocumentColorRequest.type,c,u).then(h=>h,h=>o.handleFailedRequest(Gl.ColorPresentationRequest.type,u,h,null))},a=o.clientOptions.middleware;return a.provideDocumentColors?a.provideDocumentColors(i,r,s):s(i,r)}};return[A.registerDocumentColorProvider(e.documentSelector,t),t]}}});function Wf(n){if(n){if(Array.isArray(n))return n.map(Wf);if(typeof n=="object"){let e=Object.create(null);for(let t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=Wf(n[t]));return e}}return n}var v6,qWe,n_,w6=_(()=>{"use strict";v6=C(H());V();qWe=q()("languageclient-configuration"),n_=class{constructor(e){this._client=e;var i;let t=(i=this._client.clientOptions.synchronize)==null?void 0:i.configurationSection;typeof t=="string"&&t.startsWith("languageserver.")&&(this.languageserverSection=t)}fillClientCapabilities(e){e.workspace=e.workspace||{},e.workspace.configuration=!0}initialize(){let e=this._client;e.onRequest(v6.ConfigurationRequest.type,(t,i)=>{let r=s=>{let a=[];for(let l of s.items)a.push(this.getConfiguration(l.scopeUri,l.section));return a},o=e.clientOptions.middleware.workspace;return o&&o.configuration?o.configuration(t,i,r):r(t,i)})}getConfiguration(e,t){let i=null;if(t){this.languageserverSection&&(t=`${this.languageserverSection}.${t}`);let r=t.lastIndexOf(".");if(r===-1)i=Wf(y.getConfiguration(void 0,e).get(t));else{let o=y.getConfiguration(t.substr(0,r),e);o&&(i=Wf(o.get(t.substr(r+1))))}}else{let r=y.getConfiguration(this.languageserverSection,e);i={};for(let o of Object.keys(r))r.has(o)&&(i[o]=Wf(r.get(o)))}return i}dispose(){}}});var Cw,r_,D6=_(()=>{"use strict";Cw=C(H());Ce();Dn();_a();"use strict";r_=class extends Me{constructor(e){super(e,Cw.DeclarationRequest.type)}fillClientCapabilities(e){let t=U(U(e,"textDocument"),"declaration");t.dynamicRegistration=!0}initialize(e,t){let[i,r]=this.getRegistration(t,e.declarationProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){let t={provideDeclaration:(i,r,o)=>{let s=this._client,a=(u,c,h)=>s.sendRequest(Cw.DeclarationRequest.type,wn(u,c),h).then(d=>d,d=>s.handleFailedRequest(Cw.DeclarationRequest.type,h,d,null)),l=s.clientOptions.middleware;return l.provideDeclaration?l.provideDeclaration(i,r,o,a):a(i,r,o)}};return[A.registerDeclarationProvider(e.documentSelector,t),t]}}});var Sw,o_,x6=_(()=>{"use strict";Sw=C(H());Ce();Dn();"use strict";o_=class extends Me{constructor(e){super(e,Sw.FoldingRangeRequest.type)}fillClientCapabilities(e){let t=U(U(e,"textDocument"),"foldingRange");t.dynamicRegistration=!0,t.rangeLimit=5e3,t.lineFoldingOnly=!0}initialize(e,t){let[i,r]=this.getRegistration(t,e.foldingRangeProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){let t={provideFoldingRanges:(i,r,o)=>{let s=this._client,a=(u,c,h)=>{let d={textDocument:{uri:u.uri}};return s.sendRequest(Sw.FoldingRangeRequest.type,d,h).then(g=>g,g=>s.handleFailedRequest(Sw.FoldingRangeRequest.type,h,g,null))},l=s.clientOptions.middleware;return l.provideFoldingRanges?l.provideFoldingRanges(i,r,o,a):a(i,r,o)}};return[A.registerFoldingRangeProvider(e.documentSelector,t),t]}}});var Tw,s_,C6=_(()=>{"use strict";Tw=C(H());Ce();Dn();_a();s_=class extends Me{constructor(e){super(e,Tw.ImplementationRequest.type)}fillClientCapabilities(e){let t=U(U(e,"textDocument"),"implementation");t.dynamicRegistration=!0}initialize(e,t){let[i,r]=this.getRegistration(t,e.implementationProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){let t={provideImplementation:(i,r,o)=>{let s=this._client,a=(u,c,h)=>s.sendRequest(Tw.ImplementationRequest.type,wn(u,c),h).then(d=>d,d=>s.handleFailedRequest(Tw.ImplementationRequest.type,h,d,null)),l=s.clientOptions.middleware;return l.provideImplementation?l.provideImplementation(i,r,o,a):a(i,r,o)}};return[A.registerImplementationProvider(e.documentSelector,t),t]}}});var S6,a_,T6=_(()=>{"use strict";S6=C(H());Dn();ZP();"use strict";a_=class{constructor(e){this._client=e;this.activeParts=new Set}fillClientCapabilities(e){U(e,"window").workDoneProgress=!0}initialize(){let e=this._client,t=r=>{this.activeParts.delete(r)},i=r=>{this.activeParts.add(new Hf(this._client.id,this._client,r.token,t))};e.onRequest(S6.WorkDoneProgressCreateRequest.type,i)}dispose(){for(let e of this.activeParts)e.done();this.activeParts.clear()}}});var kw,l_,k6=_(()=>{"use strict";kw=C(H());Ce();Dn();_a();l_=class extends Me{constructor(e){super(e,kw.TypeDefinitionRequest.type)}fillClientCapabilities(e){let t=U(U(e,"textDocument"),"typeDefinition");t.dynamicRegistration=!0}initialize(e,t){let[i,r]=this.getRegistration(t,e.typeDefinitionProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){let t={provideTypeDefinition:(i,r,o)=>{let s=this._client,a=(u,c,h)=>s.sendRequest(kw.TypeDefinitionRequest.type,wn(u,c),h).then(d=>d,d=>s.handleFailedRequest(kw.TypeDefinitionRequest.type,h,d,null)),l=s.clientOptions.middleware;return l.provideTypeDefinition?l.provideTypeDefinition(i,r,o,a):a(i,r,o)}};return[A.registerTypeDefinitionProvider(e.documentSelector,t),t]}}});function u_(n,e){if(n!==void 0)return n[e]}function E6(n,e){return n.filter(t=>!e.includes(t))}var Zf,cZe,c_,P6=_(()=>{"use strict";Zf=C(H());we();Je();V();vw();"use strict";cZe=q()("language-client-workspaceFolder");c_=class{constructor(e){this._client=e;this._listeners=new Map}get registrationType(){return Zf.DidChangeWorkspaceFoldersNotification.type}getValidWorkspaceFolders(){let{workspaceFolders:e}=y;if(!e||e.length==0)return;let{ignoredRootPaths:t}=this._client.clientOptions;Array.isArray(t)||(t=[]);let i=e.filter(r=>{let o=O.parse(r.uri).fsPath;return t.every(s=>!ii(s,o))});return i.length?i:void 0}asProtocol(e){return e==null?null:{uri:e.uri,name:e.name}}fillInitializeParams(e){let t=this.getValidWorkspaceFolders();this._initialFolders=t,t==null?(this._client.warn("No valid workspaceFolder exists"),e.workspaceFolders=null):e.workspaceFolders=t.map(i=>this.asProtocol(i))}fillClientCapabilities(e){e.workspace=e.workspace||{},e.workspace.workspaceFolders=!0}initialize(e){let t=this._client;t.onRequest(Zf.WorkspaceFoldersRequest.type,o=>{let s=()=>{let l=this.getValidWorkspaceFolders();return l===void 0?null:l.map(c=>this.asProtocol(c))},a=t.clientOptions.middleware.workspace;return a&&a.workspaceFolders?a.workspaceFolders(o,s):s(o)});let i=u_(u_(u_(e,"workspace"),"workspaceFolders"),"changeNotifications"),r;typeof i=="string"?r=i:i===!0&&(r=qe()),r&&this.register({id:r,registerOptions:void 0})}doSendEvent(e,t){let i={event:{added:e.map(r=>this.asProtocol(r)),removed:t.map(r=>this.asProtocol(r))}};this._client.sendNotification(Zf.DidChangeWorkspaceFoldersNotification.type,i)}sendInitialEvent(e){if(this._initialFolders&&e){let t=E6(this._initialFolders,e),i=E6(e,this._initialFolders);(i.length>0||t.length>0)&&this.doSendEvent(i,t)}else this._initialFolders?this.doSendEvent([],this._initialFolders):e&&this.doSendEvent(e,[])}register(e){let t=e.id,i=this._client,r=y.onDidChangeWorkspaceFolders(s=>{let a=u=>{this.doSendEvent(u.added,u.removed)},l=i.clientOptions.middleware.workspace;l&&l.didChangeWorkspaceFolders?l.didChangeWorkspaceFolders(s,a):a(s)});this._listeners.set(t,r);let o=this.getValidWorkspaceFolders();this.sendInitialEvent(o)}unregister(e){let t=this._listeners.get(e);t!==void 0&&(this._listeners.delete(e),t.dispose())}dispose(){for(let e of this._listeners.values())e.dispose();this._listeners.clear()}}});var Ew,h_,_6=_(()=>{"use strict";Ew=C(H());Ce();Dn();"use strict";h_=class extends Me{constructor(e){super(e,Ew.SelectionRangeRequest.type)}fillClientCapabilities(e){let t=U(U(e,"textDocument"),"selectionRange");t.dynamicRegistration=!0}initialize(e,t){let[i,r]=this.getRegistration(t,e.selectionRangeProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){let t={provideSelectionRanges:(i,r,o)=>{let s=this._client,a=(u,c,h)=>{let d={textDocument:{uri:u.uri},positions:c};return s.sendRequest(Ew.SelectionRangeRequest.type,d,h).then(g=>g,g=>s.handleFailedRequest(Ew.SelectionRangeRequest.type,h,g,null))},l=s.clientOptions.middleware;return l.provideSelectionRanges?l.provideSelectionRanges(i,r,o,a):a(i,r,o)}};return[A.registerSelectionRangeProvider(e.documentSelector,t),t]}}});var mo,d_,R6=_(()=>{"use strict";mo=C(H());Ce();Dn();_a();"use strict";d_=class extends Me{constructor(e){super(e,mo.CallHierarchyPrepareRequest.type)}fillClientCapabilities(e){let i=U(U(e,"textDocument"),"callHierarchy");i.dynamicRegistration=!0}initialize(e,t){let[i,r]=this.getRegistration(t,e.callHierarchyProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){let t={prepareCallHierarchy:(i,r,o)=>{let s=this._client,a=(u,c,h)=>{let d=wn(u,c);return s.sendRequest(mo.CallHierarchyPrepareRequest.type,d,h).then(g=>g,g=>s.handleFailedRequest(mo.CallHierarchyPrepareRequest.type,h,g,null))},l=s.clientOptions.middleware;return l.prepareCallHierarchy?l.prepareCallHierarchy(i,r,o,a):a(i,r,o)},provideCallHierarchyIncomingCalls:(i,r)=>{let o=this._client,s=(l,u)=>o.sendRequest(mo.CallHierarchyIncomingCallsRequest.type,{item:l},u).then(c=>c,c=>o.handleFailedRequest(mo.CallHierarchyIncomingCallsRequest.type,u,c,null)),a=o.clientOptions.middleware;return a.provideCallHierarchyIncomingCalls?a.provideCallHierarchyIncomingCalls(i,r,s):s(i,r)},provideCallHierarchyOutgoingCalls:(i,r)=>{let o=this._client,s=(l,u)=>o.sendRequest(mo.CallHierarchyOutgoingCallsRequest.type,{item:l},u).then(c=>c,c=>o.handleFailedRequest(mo.CallHierarchyOutgoingCallsRequest.type,u,c,null)),a=o.clientOptions.middleware;return a.provideCallHierarchyOutgoingCalls?a.provideCallHierarchyOutgoingCalls(i,r,s):s(i,r)}};return[A.registerCallHierarchyProvider(e.documentSelector,t),t]}}});var ue,sJe,g_,L6=_(()=>{"use strict";ue=C(H());Ce();In();Dn();_a();"use strict";sJe=q()("languageclient-semanticTokens"),g_=class extends Me{constructor(e){super(e,ue.SemanticTokensRegistrationType.type)}fillClientCapabilities(e){let t=U(U(e,"textDocument"),"semanticTokens");t.dynamicRegistration=!0,t.tokenTypes=[ue.SemanticTokenTypes.namespace,ue.SemanticTokenTypes.type,ue.SemanticTokenTypes.class,ue.SemanticTokenTypes.enum,ue.SemanticTokenTypes.interface,ue.SemanticTokenTypes.struct,ue.SemanticTokenTypes.typeParameter,ue.SemanticTokenTypes.parameter,ue.SemanticTokenTypes.variable,ue.SemanticTokenTypes.property,ue.SemanticTokenTypes.enumMember,ue.SemanticTokenTypes.event,ue.SemanticTokenTypes.function,ue.SemanticTokenTypes.method,ue.SemanticTokenTypes.macro,ue.SemanticTokenTypes.keyword,ue.SemanticTokenTypes.modifier,ue.SemanticTokenTypes.comment,ue.SemanticTokenTypes.string,ue.SemanticTokenTypes.number,ue.SemanticTokenTypes.regexp,ue.SemanticTokenTypes.operator],t.tokenModifiers=[ue.SemanticTokenModifiers.declaration,ue.SemanticTokenModifiers.definition,ue.SemanticTokenModifiers.readonly,ue.SemanticTokenModifiers.static,ue.SemanticTokenModifiers.deprecated,ue.SemanticTokenModifiers.abstract,ue.SemanticTokenModifiers.async,ue.SemanticTokenModifiers.modification,ue.SemanticTokenModifiers.documentation,ue.SemanticTokenModifiers.defaultLibrary],t.formats=[ue.TokenFormat.Relative],t.requests={range:!0,full:{delta:!0}},t.multilineTokenSupport=!1,t.overlappingTokenSupport=!1,U(U(e,"workspace"),"semanticTokens").refreshSupport=!0}initialize(e,t){this._client.onRequest(ue.SemanticTokensRefreshRequest.type,async()=>{for(let s of this.getAllProviders())s.onDidChangeSemanticTokensEmitter.fire()});let[r,o]=this.getRegistration(t,e.semanticTokensProvider);!r||!o||this.register({id:r,registerOptions:o})}registerLanguageProvider(e){let t=Kn(e.full)?e.full:e.full!==void 0,i=e.full!==void 0&&typeof e.full!="boolean"&&e.full.delta===!0,r=new ue.Emitter,o=t?{onDidChangeSemanticTokens:r.event,provideDocumentSemanticTokens:(u,c)=>{let h=this._client,d=h.clientOptions.middleware,g=(f,p)=>{let b={textDocument:Xl(f)};return h.sendRequest(ue.SemanticTokensRequest.type,b,p).then(v=>v,v=>h.handleFailedRequest(ue.SemanticTokensRequest.type,p,v,null))};return d.provideDocumentSemanticTokens?d.provideDocumentSemanticTokens(u,c,g):g(u,c)},provideDocumentSemanticTokensEdits:i?(u,c,h)=>{let d=this._client,g=d.clientOptions.middleware,f=(p,b,v)=>{let w={textDocument:Xl(p),previousResultId:b};return d.sendRequest(ue.SemanticTokensDeltaRequest.type,w,v).then(D=>D,D=>d.handleFailedRequest(ue.SemanticTokensDeltaRequest.type,v,D,null))};return g.provideDocumentSemanticTokensEdits?g.provideDocumentSemanticTokensEdits(u,c,h,f):f(u,c,h)}:void 0}:void 0,a=e.range===!0?{provideDocumentRangeSemanticTokens:(u,c,h)=>{let d=this._client,g=d.clientOptions.middleware,f=(p,b,v)=>{let w={textDocument:Xl(p),range:b};return d.sendRequest(ue.SemanticTokensRangeRequest.type,w,v).then(D=>D,D=>d.handleFailedRequest(ue.SemanticTokensRangeRequest.type,v,D,null))};return g.provideDocumentRangeSemanticTokens?g.provideDocumentRangeSemanticTokens(u,c,h,f):f(u,c,h)}}:void 0,l=[];return o!==void 0&&l.push(A.registerDocumentSemanticTokensProvider(e.documentSelector,o,e.legend)),a!==void 0&&l.push(A.registerDocumentRangeSemanticTokensProvider(e.documentSelector,a,e.legend)),[ue.Disposable.create(()=>l.forEach(u=>u.dispose())),{range:a,full:o,onDidChangeSemanticTokensEmitter:r}]}}});var Pw,wJe,f_,F6=_(()=>{"use strict";Pw=C(H());Ce();Dn();_a();wJe=q()("languageclient-linkedEditingRange"),f_=class extends Me{constructor(e){super(e,Pw.LinkedEditingRangeRequest.type)}fillClientCapabilities(e){let t=U(U(e,"textDocument"),"linkedEditingRange");t.dynamicRegistration=!0}initialize(e,t){let[i,r]=this.getRegistration(t,e.linkedEditingRangeProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){let t={provideLinkedEditingRanges:(i,r,o)=>{let s=this._client,a=(u,c,h)=>{let d=wn(u,c);return s.sendRequest(Pw.LinkedEditingRangeRequest.type,d,h).then(g=>g,g=>s.handleFailedRequest(Pw.LinkedEditingRangeRequest.type,h,g,null))},l=s.clientOptions.middleware;return l.provideLinkedEditingRange?l.provideLinkedEditingRange(i,r,o,a):a(i,r,o)}};return[A.registerLinkedEditingRangeProvider(e.documentSelector,t),t]}}});function JSe(n,e){return n[e]}function I6(n,e,t){n[e]=t}function _w(n){return{files:n.files.map(e=>({uri:e.toString()}))}}function A6(n){return{files:n.files.map(e=>({oldUri:e.oldUri.toString(),newUri:e.newUri.toString()}))}}var j6,Oi,KJe,Ql,Rw,p_,m_,b_,Lw,y_,v_,w_,O6=_(()=>{"use strict";j6=C(Vn()),Oi=C(H());Ir();Je();V();Dn();vw();KJe=q()("language-client-fileOperations");Ql=class{constructor(e,t,i,r,o){this._filters=new Map;this._client=e,this._event=t,this._registrationType=i,this._clientCapability=r,this._serverCapability=o}get registrationType(){return this._registrationType}fillClientCapabilities(e){let t=U(U(e,"workspace"),"fileOperations");I6(t,"dynamicRegistration",!0),I6(t,this._clientCapability,!0)}initialize(e){var r;let t=(r=e.workspace)==null?void 0:r.fileOperations,i=t!==void 0?JSe(t,this._serverCapability):void 0;if((i==null?void 0:i.filters)!==void 0)try{this.register({id:qe(),registerOptions:{filters:i.filters}})}catch(o){this._client.warn(`Ignoring invalid glob pattern for ${this._serverCapability} registration: ${o}`)}}register(e){this._listener||(this._listener=this._event(this.send,this));let t=e.registerOptions.filters.map(i=>{let r=new j6.Minimatch(i.pattern.glob,Ql.asMinimatchOptions(i.pattern.options));if(!r.makeRe())throw new Error(`Invalid pattern ${i.pattern.glob}!`);return{scheme:i.scheme,matcher:r,kind:i.pattern.matches}});this._filters.set(e.id,t)}unregister(e){this._filters.delete(e),this._filters.size===0&&this._listener&&(this._listener.dispose(),this._listener=void 0)}dispose(){this._filters.clear(),this._listener&&(this._listener.dispose(),this._listener=void 0)}async filter(e,t){let i=await Promise.all(e.files.map(async o=>{let s=t(o),a=s.fsPath.replace(/\\/g,"/");for(let l of this._filters.values())for(let u of l)if(!(u.scheme!==void 0&&u.scheme!==s.scheme)){if(u.matcher.match(a)){if(u.kind===void 0)return!0;let c=await Ql.getFileType(s);if(c===void 0)return this._client.error(`Failed to determine file type for ${s.toString()}.`),!0;if(c===1&&u.kind===Oi.FileOperationPatternKind.file||c===2&&u.kind===Oi.FileOperationPatternKind.folder)return!0}else if(u.kind===Oi.FileOperationPatternKind.folder&&await Ql.getFileType(s)===2&&u.matcher.match(`${a}/`))return!0}return!1})),r=e.files.filter((o,s)=>i[s]);return Ba(ge({},e),{files:r})}static async getFileType(e){try{let t=await Ht(e.fsPath);return t.isFile()?1:t.isDirectory()?2:t.isSymbolicLink()?64:0}catch{return}}static asMinimatchOptions(e){if(e!==void 0&&e.ignoreCase===!0)return{nocase:!0}}},Rw=class extends Ql{constructor(e,t,i,r,o,s,a){super(e,t,i,r,o);this._notificationType=i,this._accessUri=s,this._createParams=a}async send(e){let t=await this.filter(e,this._accessUri);if(t.files.length){let i=async r=>{this._client.sendNotification(this._notificationType,this._createParams(r))};this.doSend(t,i)}}},p_=class extends Rw{constructor(e){super(e,y.onDidCreateFiles,Oi.DidCreateFilesNotification.type,"didCreate","didCreate",t=>t,t=>_w(t))}doSend(e,t){var r;let i=(r=this._client.clientOptions.middleware)==null?void 0:r.workspace;return i!=null&&i.didCreateFiles?i.didCreateFiles(e,t):t(e)}},m_=class extends Rw{constructor(e){super(e,y.onDidRenameFiles,Oi.DidRenameFilesNotification.type,"didRename","didRename",t=>t.oldUri,t=>A6(t))}doSend(e,t){var r;let i=(r=this._client.clientOptions.middleware)==null?void 0:r.workspace;return i!=null&&i.didRenameFiles?i.didRenameFiles(e,t):t(e)}},b_=class extends Rw{constructor(e){super(e,y.onDidDeleteFiles,Oi.DidDeleteFilesNotification.type,"didDelete","didDelete",t=>t,t=>_w(t))}doSend(e,t){var r;let i=(r=this._client.clientOptions.middleware)==null?void 0:r.workspace;return i!=null&&i.didDeleteFiles?i.didDeleteFiles(e,t):t(e)}},Lw=class extends Ql{constructor(e,t,i,r,o,s,a){super(e,t,i,r,o);this._requestType=i,this._accessUri=s,this._createParams=a}async send(e){let t=this.waitUntil(e);e.waitUntil(t)}async waitUntil(e){let t=await this.filter(e,this._accessUri);if(t.files.length){let i=r=>this._client.sendRequest(this._requestType,this._createParams(r));return this.doSend(t,i)}else return}},y_=class extends Lw{constructor(e){super(e,y.onWillCreateFiles,Oi.WillCreateFilesRequest.type,"willCreate","willCreate",t=>t,t=>_w(t))}doSend(e,t){var r;let i=(r=this._client.clientOptions.middleware)==null?void 0:r.workspace;return i!=null&&i.willCreateFiles?i.willCreateFiles(e,t):t(e)}},v_=class extends Lw{constructor(e){super(e,y.onWillRenameFiles,Oi.WillRenameFilesRequest.type,"willRename","willRename",t=>t.oldUri,t=>A6(t))}doSend(e,t){var r;let i=(r=this._client.clientOptions.middleware)==null?void 0:r.workspace;return i!=null&&i.willRenameFiles?i.willRenameFiles(e,t):t(e)}},w_=class extends Lw{constructor(e){super(e,y.onWillDeleteFiles,Oi.WillDeleteFilesRequest.type,"willDelete","willDelete",t=>t,t=>_w(t))}doSend(e,t){var r;let i=(r=this._client.clientOptions.middleware)==null?void 0:r.workspace;return i!=null&&i.willDeleteFiles?i.willDeleteFiles(e,t):t(e)}}});var ls,Fw,bh,ht,y$e,D_,x_,Iw,yh,C_,S_,T_,Jf,k_,$Se,E_=_(()=>{"use strict";ls=C(require("child_process")),Fw=C(require("fs")),bh=C(require("path")),ht=C(PG());Ir();z();In();RG();V();Dn();y6();w6();D6();x6();C6();T6();k6();P6();_6();R6();L6();F6();O6();Dn();y$e=ls.default.ChildProcess,D_=q()("language-client-index");(e=>{function n(t){return Ee(t.command)}e.is=n})(x_||(x_={}));Iw=(r=>(r[r.stdio=0]="stdio",r[r.ipc=1]="ipc",r[r.pipe=2]="pipe",r[r.socket=3]="socket",r))(Iw||{});(e=>{function n(t){let i=t;return i&&i.kind===3&&ib(i.port)}e.isSocket=n})(yh||(yh={}));(e=>{function n(t){return Ee(t.module)}e.is=n})(C_||(C_={}));(e=>{function n(t){let i=t;return i&&i.writer!==void 0&&i.reader!==void 0}e.is=n})(S_||(S_={}));(e=>{function n(t){let i=t;return i&&i.process!==void 0&&typeof i.detached=="boolean"}e.is=n})(T_||(T_={}));Jf=class extends t_{constructor(e,t,i,r,o){let s,a,l,u,c;Ee(t)?(s=e,a=t,l=i,u=r,c=!!o):(s=e.toLowerCase(),a=e,l=t,u=i,c=r),c===void 0&&(c=!1);super(s,a,u);this._serverOptions=l,this._forceDebug=c,this.registerProposedFeatures()}stop(){return super.stop().then(()=>{if(this._serverProcess){let e=this._serverProcess;this._serverProcess=void 0,(this._isDetached===void 0||!this._isDetached)&&this.checkProcessDied(e),this._isDetached=void 0}})}get serviceState(){let e=this._state;switch(e){case 0:return 0;case 3:return 3;case 2:return 2;case 1:return 1;case 5:return 5;case 4:return 4;default:return D_.error(`Unknown state: ${e}`),5}}static stateName(e){switch(e){case 0:return"Initial";case 3:return"Running";case 2:return"StartFailed";case 1:return"Starting";case 5:return"Stopped";case 4:return"Stopping";default:return"Unknown"}}checkProcessDied(e){!e||global.__TEST__||setTimeout(()=>{try{process.kill(e.pid,0),_G(e)}catch{}},2e3)}handleConnectionClosed(){this._serverProcess=void 0,super.handleConnectionClosed()}createMessageTransports(e){function t(c,h){if(!c&&!h)return;let d=Object.create(null);return Object.keys(process.env).forEach(g=>d[g]=process.env[g]),c&&Object.keys(c).forEach(g=>d[g]=c[g]),d}let i=["--debug=","--debug-brk=","--inspect=","--inspect-brk="],r=["--debug","--debug-brk","--inspect","--inspect-brk"];function o(){let c=process.execArgv;return c?c.some(h=>i.some(d=>h.startsWith(d))||r.some(d=>h===d)):!1}function s(c){if(c.stdin===null||c.stdout===null||c.stderr===null)throw new Error("Process created without stdio streams")}let a=this._serverOptions;if(Qs(a))return a().then(c=>{if(mh.is(c))return this._isDetached=!!c.detached,c;if(S_.is(c))return this._isDetached=!!c.detached,{reader:new ht.StreamMessageReader(c.reader),writer:new ht.StreamMessageWriter(c.writer)};{let h;return T_.is(c)?(h=c.process,this._isDetached=c.detached):(h=c,this._isDetached=!1),h.stderr.on("data",d=>this.outputChannel.append(Ee(d)?d:d.toString(e))),{reader:new ht.StreamMessageReader(h.stdout),writer:new ht.StreamMessageWriter(h.stdin)}}});let l,u=a;return u.run||u.debug?typeof v8debug=="object"||this._forceDebug||o()?l=u.debug:l=u.run:l=a,this._getServerWorkingDir(l.options).then(c=>{if(C_.is(l)&&l.module){let h=l,d=h.transport||0;if(h.runtime){let g=[],f=h.options||Object.create(null);f.execArgv&&f.execArgv.forEach(w=>g.push(w)),g.push(h.module),h.args&&h.args.forEach(w=>g.push(w));let p=Object.create(null);p.cwd=c,p.env=t(f.env,!1);let b=this._getRuntimePath(h.runtime,c),v;if(d===1?(p.stdio=[null,null,null,"ipc"],g.push("--node-ipc")):d===0?g.push("--stdio"):d===2?(v=(0,ht.generateRandomPipeName)(),g.push(`--pipe=${v}`)):yh.isSocket(d)&&g.push(`--socket=${d.port}`),g.push(`--clientProcessId=${process.pid.toString()}`),d===1||d===0){let w=ls.default.spawn(b,g,p);return!w||!w.pid?Promise.reject(`Launching server using runtime ${b} failed.`):(this._serverProcess=w,w.stderr.on("data",D=>this.outputChannel.append(Ee(D)?D:D.toString(e))),d===1?(w.stdout.on("data",D=>this.outputChannel.append(Ee(D)?D:D.toString(e))),Promise.resolve({reader:new ht.IPCMessageReader(w),writer:new ht.IPCMessageWriter(w)})):Promise.resolve({reader:new ht.StreamMessageReader(w.stdout),writer:new ht.StreamMessageWriter(w.stdin)}))}else{if(d===2)return(0,ht.createClientPipeTransport)(v).then(w=>{let D=ls.default.spawn(b,g,p);return!D||!D.pid?Promise.reject(`Launching server using runtime ${b} failed.`):(this._serverProcess=D,D.stderr.on("data",S=>this.outputChannel.append(Ee(S)?S:S.toString(e))),D.stdout.on("data",S=>this.outputChannel.append(Ee(S)?S:S.toString(e))),w.onConnected().then(S=>({reader:S[0],writer:S[1]})))});if(yh.isSocket(d))return(0,ht.createClientSocketTransport)(d.port).then(w=>{let D=ls.default.spawn(b,g,p);return!D||!D.pid?Promise.reject(`Launching server using runtime ${b} failed.`):(this._serverProcess=D,D.stderr.on("data",S=>this.outputChannel.append(Ee(S)?S:S.toString(e))),D.stdout.on("data",S=>this.outputChannel.append(Ee(S)?S:S.toString(e))),w.onConnected().then(S=>({reader:S[0],writer:S[1]})))})}}else{let g;return new Promise((f,p)=>{let b=h.args&&h.args.slice()||[];d===1?b.push("--node-ipc"):d===0?b.push("--stdio"):d===2?(g=(0,ht.generateRandomPipeName)(),b.push(`--pipe=${g}`)):yh.isSocket(d)&&b.push(`--socket=${d.port}`),b.push(`--clientProcessId=${process.pid.toString()}`);let v=h.options||Object.create(null);if(v.env=t(v.env,!0),v.execArgv=v.execArgv||[],v.cwd=c,v.silent=!0,d===1||d===0){let w=ls.default.fork(h.module,b||[],v);s(w),this._serverProcess=w,w.stderr.on("data",D=>this.outputChannel.append(Ee(D)?D:D.toString(e))),d===1?(w.stdout.on("data",D=>this.outputChannel.append(Ee(D)?D:D.toString(e))),f({reader:new ht.IPCMessageReader(this._serverProcess),writer:new ht.IPCMessageWriter(this._serverProcess)})):f({reader:new ht.StreamMessageReader(w.stdout),writer:new ht.StreamMessageWriter(w.stdin)})}else d===2?(0,ht.createClientPipeTransport)(g).then(w=>{let D=ls.default.fork(h.module,b||[],v);s(D),this._serverProcess=D,D.stderr.on("data",S=>this.outputChannel.append(Ee(S)?S:S.toString(e))),D.stdout.on("data",S=>this.outputChannel.append(Ee(S)?S:S.toString(e))),w.onConnected().then(S=>{f({reader:S[0],writer:S[1]})})}):yh.isSocket(d)&&(0,ht.createClientSocketTransport)(d.port).then(w=>{let D=ls.default.fork(h.module,b||[],v);s(D),this._serverProcess=D,D.stderr.on("data",S=>this.outputChannel.append(Ee(S)?S:S.toString(e))),D.stdout.on("data",S=>this.outputChannel.append(Ee(S)?S:S.toString(e))),w.onConnected().then(S=>{f({reader:S[0],writer:S[1]})})})})}}else if(x_.is(l)&&l.command){let h=l,d=h.args||[],g=Object.assign({},h.options);g.env=g.env?Object.assign({},process.env,g.env):process.env,g.cwd=g.cwd||c;let f=y.expand(l.command),p=ls.default.spawn(f,d,g);return p.on("error",b=>{this.error(b.message),D_.error(b)}),!p||!p.pid?Promise.reject(`Launching server "${this.id}" using command ${h.command} failed.`):(D_.info(`Language server "${this.id}" started with ${p.pid}`),p.on("exit",b=>{b!=0&&this.error(`${h.command} exited with code: ${b}`)}),p.stderr.on("data",b=>this.outputChannel.append(Ee(b)?b:b.toString(e))),this._serverProcess=p,this._isDetached=!!g.detached,Promise.resolve({reader:new ht.StreamMessageReader(p.stdout),writer:new ht.StreamMessageWriter(p.stdin)}))}return Promise.reject(`Unsupported server configuration ${JSON.stringify(a,null,2)}`)})}_getRuntimePath(e,t){if(bh.default.isAbsolute(e))return e;let i=this._mainGetRootPath();if(i!==void 0){let r=bh.default.join(i,e);if(Fw.default.existsSync(r))return r}if(t!==void 0){let r=bh.default.join(t,e);if(Fw.default.existsSync(r))return r}return e}_mainGetRootPath(){let e=y.workspaceFolders;return!e||e.length===0?void 0:e[0].uri}registerProposedFeatures(){this.registerFeatures($Se.createAll(this))}registerBuiltinFeatures(){super.registerBuiltinFeatures();let{disabledFeatures:e}=this.clientOptions;e.includes("pullConfiguration")||this.registerFeature(new n_(this)),e.includes("typeDefinition")||this.registerFeature(new l_(this)),e.includes("implementation")||this.registerFeature(new s_(this)),e.includes("declaration")||this.registerFeature(new r_(this)),e.includes("colorProvider")||this.registerFeature(new i_(this)),e.includes("foldingRange")||this.registerFeature(new o_(this)),e.includes("selectionRange")||this.registerFeature(new h_(this)),e.includes("callHierarchy")||this.registerFeature(new d_(this)),e.includes("progress")||this.registerFeature(new a_(this)),e.includes("linkedEditing")||this.registerFeature(new f_(this)),e.includes("fileEvents")||(this.registerFeature(new p_(this)),this.registerFeature(new m_(this)),this.registerFeature(new b_(this)),this.registerFeature(new y_(this)),this.registerFeature(new v_(this)),this.registerFeature(new w_(this))),e.includes("semanticTokens")||this.registerFeature(new g_(this)),e.includes("workspaceFolders")||this.registerFeature(new c_(this))}_getServerWorkingDir(e){let t=e&&e.cwd;return t&&!bh.default.isAbsolute(t)&&(t=bh.default.join(y.cwd,t)),t||(t=y.cwd),t?new Promise(i=>{Fw.default.lstat(t,(r,o)=>{i(!r&&o.isDirectory()?t:void 0)})}):Promise.resolve(void 0)}appendOutput(e,t){let i=Ee(e)?e:e.toString(t);this.outputChannel.append(i.endsWith(` +`;for(let l of s.relatedInformation){let u=Y_.default.basename(I.parse(l.location.uri).fsPath),c=l.location.range.start.line;a=`${a} +${u}(line ${c+1}): ${l.message}`;let h=o.get(l.location.uri)||[];h.push(S.Diagnostic.create(l.location.range,l.message,S.DiagnosticSeverity.Hint,s.code,s.source)),o.set(l.location.uri,h)}s.message=a}this._diagnostics.set(Array.from(o))}}else this._diagnostics.set(e,t)}createConnection(){let e=(i,r,o)=>{Lo.error("connection error:",i,r),this.handleConnectionError(i,r,o)},t=()=>{this.handleConnectionClosed()};return this.createMessageTransports(this._clientOptions.stdioEncoding||"utf8").then(i=>STe(i.reader,i.writer,e,t,this._clientOptions.connectionOptions))}handleConnectionClosed(){if(this.state===5){Lo.debug(`client ${this._id} normal close`);return}try{this._resolvedConnection&&this._resolvedConnection.dispose()}catch{}let e=1;if(this.state!==4)try{e=this._clientOptions.errorHandler.closed()}catch{}this._connectionPromise=void 0,this._resolvedConnection=void 0,e===1?(this.error("Connection to server got closed. Server will not be restarted."),this.state===1?(this._onReadyCallbacks.reject(new Error("Connection to server got closed. Server will not be restarted.")),this.state=2):this.state=5,this.cleanUp(!1,!0)):e===2&&(this.info("Connection to server got closed. Server will restart."),this.cleanUp(!1,!0),this.state=0,this.start())}restart(){this.cleanUp(!0,!1),this.start()}handleConnectionError(e,t,i){this._clientOptions.errorHandler.error(e,t,i)===2&&(this.error("Connection to server is erroring. Shutting down server."),this.stop())}hookConfigurationChanged(e){v.onDidChangeConfiguration(t=>{t.affectsConfiguration(this._id)&&this.refreshTrace(e,!0)},null,this._listeners)}refreshTrace(e,t=!1){let i=v.getConfiguration(this._id),r=S.Trace.Off,o=S.TraceFormat.Text;if(i){let s=i.get("trace.server","off");typeof s=="string"?r=S.Trace.fromString(s):(r=S.Trace.fromString(i.get("trace.server.verbosity","off")),o=S.TraceFormat.fromString(i.get("trace.server.format","text")))}t&&this._trace==r&&this._traceFormat==o||(this._trace=r,this._traceFormat=o,e.trace(this._trace,this._tracer,{sendNotification:t,traceFormat:this._traceFormat}))}hookFileEvents(e){let t=this._clientOptions.synchronize.fileEvents;if(!t)return;let i;Array.isArray(t)?i=t:i=[t],i&&this._dynamicFeatures.get(S.DidChangeWatchedFilesNotification.type.method).registerRaw(Ue(),i)}registerFeatures(e){for(let t of e)this.registerFeature(t)}registerFeature(e){if(this._features.push(e),W_.is(e)){let t=e.registrationType;this._dynamicFeatures.set(t.method,e)}}getFeature(e){return this._dynamicFeatures.get(e)}registerBuiltinFeatures(){let{disabledFeatures:e}=this._clientOptions;e.includes("configuration")||this.registerFeature(new L4(this)),this.registerFeature(new c4(this,this._syncedDocuments)),this.registerFeature(new d4(this)),this.registerFeature(new h4(this,this._syncedDocuments)),e.includes("willSave")||this.registerFeature(new g4(this)),e.includes("willSaveWaitUntil")||this.registerFeature(new p4(this)),e.includes("didSave")||this.registerFeature(new f4(this)),e.includes("fileSystemWatcher")||this.registerFeature(new m4(this,t=>this.notifyFileEvent(t))),e.includes("completion")||this.registerFeature(new y4(this)),e.includes("hover")||this.registerFeature(new b4(this)),e.includes("signatureHelp")||this.registerFeature(new v4(this)),e.includes("references")||this.registerFeature(new D4(this)),e.includes("definition")||this.registerFeature(new w4(this)),e.includes("documentHighlight")||this.registerFeature(new C4(this)),e.includes("documentSymbol")||this.registerFeature(new x4(this)),e.includes("codeAction")||this.registerFeature(new S4(this)),e.includes("codeLens")||this.registerFeature(new T4(this)),e.includes("documentFormatting")||this.registerFeature(new k4(this)),e.includes("documentRangeFormatting")||this.registerFeature(new E4(this)),e.includes("documentOnTypeFormatting")||this.registerFeature(new P4(this)),e.includes("rename")||this.registerFeature(new _4(this)),e.includes("documentLink")||this.registerFeature(new R4(this)),e.includes("executeCommand")||this.registerFeature(new F4(this))}fillInitializeParams(e){for(let t of this._features)ua(t.fillInitializeParams)&&t.fillInitializeParams(e)}computeClientCapabilities(){let e={};G(e,"workspace").applyEdit=!0;let t=G(G(e,"workspace"),"workspaceEdit");t.documentChanges=!0,t.resourceOperations=[S.ResourceOperationKind.Create,S.ResourceOperationKind.Rename,S.ResourceOperationKind.Delete],t.failureHandling=S.FailureHandlingKind.Undo,t.normalizesLineEndings=!0,t.changeAnnotationSupport={groupsOnLabel:!1};let i=G(G(e,"textDocument"),"publishDiagnostics");i.relatedInformation=!0,i.versionSupport=!0,i.tagSupport={valueSet:[S.DiagnosticTag.Unnecessary,S.DiagnosticTag.Deprecated]},i.codeDescriptionSupport=!0,i.dataSupport=!0;let r=G(e,"window"),o=G(r,"showMessage");o.messageActionItem={additionalPropertiesSupport:!0};let s=G(r,"showDocument");s.support=!0;let a=G(e,"general");a.regularExpressions={engine:"ECMAScript",version:"ES2020"},a.markdown={parser:"marked",version:"4.0.10"},a.positionEncodings=["utf-16"];for(let l of this._features)l.fillClientCapabilities(e);return e}initializeFeatures(e){let t=this._clientOptions.documentSelector;for(let i of this._features)i.initialize(this._capabilities,t)}handleRegistrationRequest(e){return this.clientOptions.disableDynamicRegister?Promise.resolve():new Promise((t,i)=>{for(let r of e.registrations){let o=this._dynamicFeatures.get(r.method);if(!o){i(new Error(`No feature implementation for ${r.method} found. Registration failed.`));return}let s=r.registerOptions||{};s.documentSelector=s.documentSelector||this._clientOptions.documentSelector;let a={id:r.id,registerOptions:s};try{o.register(a)}catch(l){i(l);return}}t()})}handleUnregistrationRequest(e){return new Promise((t,i)=>{for(let r of e.unregisterations){let o=this._dynamicFeatures.get(r.method);if(!o){i(new Error(`No feature implementation for ${r.method} found. Unregistration failed.`));return}o.unregister(r.id)}t()})}handleApplyWorkspaceEdit(e){let t=e.edit,i=new Map;v.textDocuments.forEach(o=>i.set(o.uri.toString(),o));let r=!1;if(t.documentChanges){for(let o of t.documentChanges)if(S.TextDocumentEdit.is(o)&&o.textDocument.version&&o.textDocument.version>=0){let s=i.get(o.textDocument.uri);if(s&&s.version!==o.textDocument.version){r=!0;break}}}return r?Promise.resolve({applied:!1}):v.applyEdit(e.edit).then(o=>({applied:o}))}getLocale(){let e=process.env.LANG;return e?e.split(".")[0]:"en"}handleFailedRequest(e,t,i,r){if(i instanceof S.ResponseError){if(i.code===S.LSPErrorCodes.RequestCancelled||i.code===S.LSPErrorCodes.ServerCancelled){if(t!==void 0&&t.isCancellationRequested)return r}else if(i.code===S.LSPErrorCodes.ContentModified)return r}this.error(`Request ${e.method} failed.`,i)}logFailedRequest(e,t){t instanceof S.ResponseError&&t.code===S.LSPErrorCodes.RequestCancelled||this.error(`Request ${e.method} failed.`,t)}};Qw.RequestsToCancelOnContentModified=new Set([S.SemanticTokensRequest.method,S.SemanticTokensRangeRequest.method,S.SemanticTokensDeltaRequest.method])});var lu,K_,I4=_(()=>{"use strict";lu=x(q());Te();ci();"use strict";K_=class extends Ie{constructor(e){super(e,lu.DocumentColorRequest.type)}fillClientCapabilities(e){G(G(e,"textDocument"),"colorProvider").dynamicRegistration=!0}initialize(e,t){let[i,r]=this.getRegistration(t,e.colorProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){let t={provideColorPresentations:(i,r,o)=>{let s=this._client,a=(u,c,h)=>{let d={color:u,textDocument:{uri:c.document.uri},range:c.range};return s.sendRequest(lu.ColorPresentationRequest.type,d,h).then(g=>h.isCancellationRequested?null:g,g=>s.handleFailedRequest(lu.ColorPresentationRequest.type,h,g,null))},l=s.clientOptions.middleware;return l.provideColorPresentations?l.provideColorPresentations(i,r,o,a):a(i,r,o)},provideDocumentColors:(i,r)=>{let o=this._client,s=(l,u)=>{let c={textDocument:{uri:l.uri}};return o.sendRequest(lu.DocumentColorRequest.type,c,u).then(h=>u.isCancellationRequested?null:h,h=>o.handleFailedRequest(lu.ColorPresentationRequest.type,u,h,null))},a=o.clientOptions.middleware;return a.provideDocumentColors?a.provideDocumentColors(i,r,s):s(i,r)}};return[j.registerDocumentColorProvider(e.documentSelector,t),t]}}});function hf(n){if(n){if(Array.isArray(n))return n.map(hf);if(typeof n=="object"){let e=Object.create(null);for(let t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=hf(n[t]));return e}}return n}var j4,CJe,Q_,A4=_(()=>{"use strict";j4=x(q());ne();CJe=W()("languageclient-configuration"),Q_=class{constructor(e){this._client=e;var i;let t=(i=this._client.clientOptions.synchronize)==null?void 0:i.configurationSection;typeof t=="string"&&t.startsWith("languageserver.")&&(this.languageserverSection=t)}fillClientCapabilities(e){e.workspace=e.workspace||{},e.workspace.configuration=!0}initialize(){let e=this._client;e.onRequest(j4.ConfigurationRequest.type,(t,i)=>{let r=s=>{let a=[];for(let l of s.items)a.push(this.getConfiguration(l.scopeUri,l.section));return a},o=e.clientOptions.middleware.workspace;return o&&o.configuration?o.configuration(t,i,r):r(t,i)})}getConfiguration(e,t){let i=null;if(t){this.languageserverSection&&(t=`${this.languageserverSection}.${t}`);let r=t.lastIndexOf(".");if(r===-1)i=hf(v.getConfiguration(void 0,e).get(t));else{let o=v.getConfiguration(t.substr(0,r),e);o&&(i=hf(o.get(t.substr(r+1))))}}else{let r=v.getConfiguration(this.languageserverSection,e);i={};for(let o of Object.keys(r))r.has(o)&&(i[o]=hf(r.get(o)))}return i}dispose(){}}});var tD,z_,M4=_(()=>{"use strict";tD=x(q());Te();ci();to();"use strict";z_=class extends Ie{constructor(e){super(e,tD.DeclarationRequest.type)}fillClientCapabilities(e){let t=G(G(e,"textDocument"),"declaration");t.dynamicRegistration=!0}initialize(e,t){let[i,r]=this.getRegistration(t,e.declarationProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){let t={provideDeclaration:(i,r,o)=>{let s=this._client,a=(u,c,h)=>s.sendRequest(tD.DeclarationRequest.type,$i(u,c),h).then(d=>h.isCancellationRequested?null:d,d=>s.handleFailedRequest(tD.DeclarationRequest.type,h,d,null)),l=s.clientOptions.middleware;return l.provideDeclaration?l.provideDeclaration(i,r,o,a):a(i,r,o)}};return[j.registerDeclarationProvider(e.documentSelector,t),t]}}});var iD,V_,O4=_(()=>{"use strict";iD=x(q());Te();ci();"use strict";V_=class extends Ie{constructor(e){super(e,iD.FoldingRangeRequest.type)}fillClientCapabilities(e){let t=G(G(e,"textDocument"),"foldingRange");t.dynamicRegistration=!0,t.rangeLimit=5e3,t.lineFoldingOnly=!0}initialize(e,t){let[i,r]=this.getRegistration(t,e.foldingRangeProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){let t={provideFoldingRanges:(i,r,o)=>{let s=this._client,a=(u,c,h)=>{let d={textDocument:{uri:u.uri}};return s.sendRequest(iD.FoldingRangeRequest.type,d,h).then(g=>h.isCancellationRequested?null:g,g=>s.handleFailedRequest(iD.FoldingRangeRequest.type,h,g,null))},l=s.clientOptions.middleware;return l.provideFoldingRanges?l.provideFoldingRanges(i,r,o,a):a(i,r,o)}};return[j.registerFoldingRangeProvider(e.documentSelector,t),t]}}});var nD,eR,N4=_(()=>{"use strict";nD=x(q());Te();ci();to();eR=class extends Ie{constructor(e){super(e,nD.ImplementationRequest.type)}fillClientCapabilities(e){let t=G(G(e,"textDocument"),"implementation");t.dynamicRegistration=!0}initialize(e,t){let[i,r]=this.getRegistration(t,e.implementationProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){let t={provideImplementation:(i,r,o)=>{let s=this._client,a=(u,c,h)=>s.sendRequest(nD.ImplementationRequest.type,$i(u,c),h).then(d=>h.isCancellationRequested?null:d,d=>s.handleFailedRequest(nD.ImplementationRequest.type,h,d,null)),l=s.clientOptions.middleware;return l.provideImplementation?l.provideImplementation(i,r,o,a):a(i,r,o)}};return[j.registerImplementationProvider(e.documentSelector,t),t]}}});var B4,tR,H4=_(()=>{"use strict";B4=x(q());ci();B_();"use strict";tR=class{constructor(e){this._client=e;this.activeParts=new Set}fillClientCapabilities(e){G(e,"window").workDoneProgress=!0}initialize(){let e=this._client,t=r=>{this.activeParts.delete(r)},i=r=>{this.activeParts.add(new lf(this._client.id,this._client,r.token,t))};e.onRequest(B4.WorkDoneProgressCreateRequest.type,i)}dispose(){for(let e of this.activeParts)e.done();this.activeParts.clear()}}});var rD,iR,q4=_(()=>{"use strict";rD=x(q());Te();ci();to();iR=class extends Ie{constructor(e){super(e,rD.TypeDefinitionRequest.type)}fillClientCapabilities(e){let t=G(G(e,"textDocument"),"typeDefinition");t.dynamicRegistration=!0}initialize(e,t){let[i,r]=this.getRegistration(t,e.typeDefinitionProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){let t={provideTypeDefinition:(i,r,o)=>{let s=this._client,a=(u,c,h)=>s.sendRequest(rD.TypeDefinitionRequest.type,$i(u,c),h).then(d=>h.isCancellationRequested?null:d,d=>s.handleFailedRequest(rD.TypeDefinitionRequest.type,h,d,null)),l=s.clientOptions.middleware;return l.provideTypeDefinition?l.provideTypeDefinition(i,r,o,a):a(i,r,o)}};return[j.registerTypeDefinitionProvider(e.documentSelector,t),t]}}});function nR(n,e){if(n!==void 0)return n[e]}function Y4(n,e){return n.filter(t=>!e.includes(t))}var df,J$e,rR,W4=_(()=>{"use strict";df=x(q());Ee();et();ne();cf();"use strict";J$e=W()("language-client-workspaceFolder");rR=class{constructor(e){this._client=e;this._listeners=new Map}get registrationType(){return df.DidChangeWorkspaceFoldersNotification.type}getValidWorkspaceFolders(){let{workspaceFolders:e}=v;if(!e||e.length==0)return;let{ignoredRootPaths:t}=this._client.clientOptions;Array.isArray(t)||(t=[]);let i=e.filter(r=>{let o=I.parse(r.uri).fsPath;return t.every(s=>!li(s,o))});return i.length?i:void 0}asProtocol(e){return e==null?null:{uri:e.uri,name:e.name}}fillInitializeParams(e){let t=this.getValidWorkspaceFolders();this._initialFolders=t,t==null?(this._client.warn("No valid workspaceFolder exists"),e.workspaceFolders=null):e.workspaceFolders=t.map(i=>this.asProtocol(i))}fillClientCapabilities(e){e.workspace=e.workspace||{},e.workspace.workspaceFolders=!0}initialize(e){let t=this._client;t.onRequest(df.WorkspaceFoldersRequest.type,o=>{let s=()=>{let l=this.getValidWorkspaceFolders();return l===void 0?null:l.map(c=>this.asProtocol(c))},a=t.clientOptions.middleware.workspace;return a&&a.workspaceFolders?a.workspaceFolders(o,s):s(o)});let i=nR(nR(nR(e,"workspace"),"workspaceFolders"),"changeNotifications"),r;typeof i=="string"?r=i:i===!0&&(r=Ue()),r&&this.register({id:r,registerOptions:void 0})}doSendEvent(e,t){let i={event:{added:e.map(r=>this.asProtocol(r)),removed:t.map(r=>this.asProtocol(r))}};this._client.sendNotification(df.DidChangeWorkspaceFoldersNotification.type,i)}sendInitialEvent(e){if(this._initialFolders&&e){let t=Y4(this._initialFolders,e),i=Y4(e,this._initialFolders);(i.length>0||t.length>0)&&this.doSendEvent(i,t)}else this._initialFolders?this.doSendEvent([],this._initialFolders):e&&this.doSendEvent(e,[])}register(e){let t=e.id,i=this._client,r=v.onDidChangeWorkspaceFolders(s=>{let a=u=>{this.doSendEvent(u.added,u.removed)},l=i.clientOptions.middleware.workspace;l&&l.didChangeWorkspaceFolders?l.didChangeWorkspaceFolders(s,a):a(s)});this._listeners.set(t,r);let o=this.getValidWorkspaceFolders();this.sendInitialEvent(o)}unregister(e){let t=this._listeners.get(e);t!==void 0&&(this._listeners.delete(e),t.dispose())}dispose(){for(let e of this._listeners.values())e.dispose();this._listeners.clear()}}});var oD,oR,Z4=_(()=>{"use strict";oD=x(q());Te();ci();"use strict";oR=class extends Ie{constructor(e){super(e,oD.SelectionRangeRequest.type)}fillClientCapabilities(e){let t=G(G(e,"textDocument"),"selectionRange");t.dynamicRegistration=!0}initialize(e,t){let[i,r]=this.getRegistration(t,e.selectionRangeProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){let t={provideSelectionRanges:(i,r,o)=>{let s=this._client,a=(u,c,h)=>{let d={textDocument:{uri:u.uri},positions:c};return s.sendRequest(oD.SelectionRangeRequest.type,d,h).then(g=>h.isCancellationRequested?null:g,g=>s.handleFailedRequest(oD.SelectionRangeRequest.type,h,g,null))},l=s.clientOptions.middleware;return l.provideSelectionRanges?l.provideSelectionRanges(i,r,o,a):a(i,r,o)}};return[j.registerSelectionRangeProvider(e.documentSelector,t),t]}}});var jo,sR,J4=_(()=>{"use strict";jo=x(q());Te();ci();to();"use strict";sR=class extends Ie{constructor(e){super(e,jo.CallHierarchyPrepareRequest.type)}fillClientCapabilities(e){let i=G(G(e,"textDocument"),"callHierarchy");i.dynamicRegistration=!0}initialize(e,t){let[i,r]=this.getRegistration(t,e.callHierarchyProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){let t={prepareCallHierarchy:(i,r,o)=>{let s=this._client,a=(u,c,h)=>{let d=$i(u,c);return s.sendRequest(jo.CallHierarchyPrepareRequest.type,d,h).then(g=>h.isCancellationRequested?null:g,g=>s.handleFailedRequest(jo.CallHierarchyPrepareRequest.type,h,g,null))},l=s.clientOptions.middleware;return l.prepareCallHierarchy?l.prepareCallHierarchy(i,r,o,a):a(i,r,o)},provideCallHierarchyIncomingCalls:(i,r)=>{let o=this._client,s=(l,u)=>o.sendRequest(jo.CallHierarchyIncomingCallsRequest.type,{item:l},u).then(c=>u.isCancellationRequested?null:c,c=>o.handleFailedRequest(jo.CallHierarchyIncomingCallsRequest.type,u,c,null)),a=o.clientOptions.middleware;return a.provideCallHierarchyIncomingCalls?a.provideCallHierarchyIncomingCalls(i,r,s):s(i,r)},provideCallHierarchyOutgoingCalls:(i,r)=>{let o=this._client,s=(l,u)=>o.sendRequest(jo.CallHierarchyOutgoingCallsRequest.type,{item:l},u).then(c=>u.isCancellationRequested?null:c,c=>o.handleFailedRequest(jo.CallHierarchyOutgoingCallsRequest.type,u,c,null)),a=o.clientOptions.middleware;return a.provideCallHierarchyOutgoingCalls?a.provideCallHierarchyOutgoingCalls(i,r,s):s(i,r)}};return[j.registerCallHierarchyProvider(e.documentSelector,t),t]}}});var fe,qXe,aR,$4=_(()=>{"use strict";fe=x(q());Te();lr();ci();to();"use strict";qXe=W()("languageclient-semanticTokens"),aR=class extends Ie{constructor(e){super(e,fe.SemanticTokensRegistrationType.type)}fillClientCapabilities(e){let t=G(G(e,"textDocument"),"semanticTokens");t.dynamicRegistration=!0,t.tokenTypes=[fe.SemanticTokenTypes.namespace,fe.SemanticTokenTypes.type,fe.SemanticTokenTypes.class,fe.SemanticTokenTypes.enum,fe.SemanticTokenTypes.interface,fe.SemanticTokenTypes.struct,fe.SemanticTokenTypes.typeParameter,fe.SemanticTokenTypes.parameter,fe.SemanticTokenTypes.variable,fe.SemanticTokenTypes.property,fe.SemanticTokenTypes.enumMember,fe.SemanticTokenTypes.event,fe.SemanticTokenTypes.function,fe.SemanticTokenTypes.method,fe.SemanticTokenTypes.macro,fe.SemanticTokenTypes.keyword,fe.SemanticTokenTypes.modifier,fe.SemanticTokenTypes.comment,fe.SemanticTokenTypes.string,fe.SemanticTokenTypes.number,fe.SemanticTokenTypes.regexp,fe.SemanticTokenTypes.decorator,fe.SemanticTokenTypes.operator],t.tokenModifiers=[fe.SemanticTokenModifiers.declaration,fe.SemanticTokenModifiers.definition,fe.SemanticTokenModifiers.readonly,fe.SemanticTokenModifiers.static,fe.SemanticTokenModifiers.deprecated,fe.SemanticTokenModifiers.abstract,fe.SemanticTokenModifiers.async,fe.SemanticTokenModifiers.modification,fe.SemanticTokenModifiers.documentation,fe.SemanticTokenModifiers.defaultLibrary],t.formats=[fe.TokenFormat.Relative],t.requests={range:!0,full:{delta:!0}},t.multilineTokenSupport=!1,t.overlappingTokenSupport=!1,t.serverCancelSupport=!1,t.augmentsSyntaxTokens=!1,G(G(e,"workspace"),"semanticTokens").refreshSupport=!0}initialize(e,t){this._client.onRequest(fe.SemanticTokensRefreshRequest.type,async()=>{for(let s of this.getAllProviders())s.onDidChangeSemanticTokensEmitter.fire()});let[r,o]=this.getRegistration(t,e.semanticTokensProvider);!r||!o||this.register({id:r,registerOptions:o})}registerLanguageProvider(e){let t=ar(e.full)?e.full:e.full!==void 0,i=e.full!==void 0&&typeof e.full!="boolean"&&e.full.delta===!0,r=new fe.Emitter,o=t?{onDidChangeSemanticTokens:r.event,provideDocumentSemanticTokens:(u,c)=>{let h=this._client,d=h.clientOptions.middleware,g=(p,f)=>{let m={textDocument:eo(p)};return h.sendRequest(fe.SemanticTokensRequest.type,m,f).then(b=>f.isCancellationRequested?null:b,b=>h.handleFailedRequest(fe.SemanticTokensRequest.type,f,b,null))};return d.provideDocumentSemanticTokens?d.provideDocumentSemanticTokens(u,c,g):g(u,c)},provideDocumentSemanticTokensEdits:i?(u,c,h)=>{let d=this._client,g=d.clientOptions.middleware,p=(f,m,b)=>{let w={textDocument:eo(f),previousResultId:m};return d.sendRequest(fe.SemanticTokensDeltaRequest.type,w,b).then(D=>b.isCancellationRequested?null:D,D=>d.handleFailedRequest(fe.SemanticTokensDeltaRequest.type,b,D,null))};return g.provideDocumentSemanticTokensEdits?g.provideDocumentSemanticTokensEdits(u,c,h,p):p(u,c,h)}:void 0}:void 0,a=e.range===!0?{provideDocumentRangeSemanticTokens:(u,c,h)=>{let d=this._client,g=d.clientOptions.middleware,p=(f,m,b)=>{let w={textDocument:eo(f),range:m};return d.sendRequest(fe.SemanticTokensRangeRequest.type,w,b).then(D=>b.isCancellationRequested?null:D,D=>d.handleFailedRequest(fe.SemanticTokensRangeRequest.type,b,D,null))};return g.provideDocumentRangeSemanticTokens?g.provideDocumentRangeSemanticTokens(u,c,h,p):p(u,c,h)}}:void 0,l=[];return o!==void 0&&l.push(j.registerDocumentSemanticTokensProvider(e.documentSelector,o,e.legend)),a!==void 0&&l.push(j.registerDocumentRangeSemanticTokensProvider(e.documentSelector,a,e.legend)),[fe.Disposable.create(()=>l.forEach(u=>u.dispose())),{range:a,full:o,onDidChangeSemanticTokensEmitter:r}]}}});var io,iUe,lR,X4=_(()=>{io=x(q());Te();ci();to();iUe=W()("language-client-inlayHint"),lR=class extends Ie{constructor(e){super(e,io.InlayHintRequest.type)}fillClientCapabilities(e){let t=G(G(e,"textDocument"),"inlayHint");t.dynamicRegistration=!0,t.resolveSupport={properties:["tooltip","textEdits","label.tooltip","label.location","label.command"]},G(G(e,"workspace"),"inlayHint").refreshSupport=!0}initialize(e,t){this._client.onRequest(io.InlayHintRefreshRequest.type,async()=>{for(let o of this.getAllProviders())o.onDidChangeInlayHints.fire()});let[i,r]=this.getRegistration(t,e.inlayHintProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){let t=new io.Emitter,i={onDidChangeInlayHints:t.event,provideInlayHints:(o,s,a)=>{let l=this._client,u=async(h,d,g)=>{let p={textDocument:eo(h),range:d};try{let f=await l.sendRequest(io.InlayHintRequest.type,p,g);return g.isCancellationRequested||!f?[]:f}catch(f){return l.handleFailedRequest(io.InlayHintRequest.type,g,f,[])}},c=l.clientOptions.middleware;return c.provideInlayHints?c.provideInlayHints(o,s,a,u):u(o,s,a)}};i.resolveInlayHint=e.resolveProvider===!0?(o,s)=>{let a=this._client,l=async(c,h)=>{try{let d=await a.sendRequest(io.InlayHintResolveRequest.type,c,h);return h.isCancellationRequested?null:d}catch(d){return a.handleFailedRequest(io.InlayHintResolveRequest.type,h,d,null)}},u=a.clientOptions.middleware;return u.resolveInlayHint?u.resolveInlayHint(o,s,l):l(o,s)}:void 0;let r=e.documentSelector;return[j.registerInlayHintsProvider(r,i),{provider:i,onDidChangeInlayHints:t}]}}});var Za,uR,U4=_(()=>{Za=x(q());Te();ci();to();uR=class extends Ie{constructor(e){super(e,Za.InlineValueRequest.type)}fillClientCapabilities(e){G(G(e,"textDocument"),"inlineValue").dynamicRegistration=!0,G(G(e,"workspace"),"inlineValue").refreshSupport=!0}initialize(e,t){this._client.onRequest(Za.InlineValueRefreshRequest.type,async()=>{for(let o of this.getAllProviders())o.onDidChangeInlineValues.fire()});let[i,r]=this.getRegistration(t,e.inlineValueProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){let t=new Za.Emitter,i={onDidChangeInlineValues:t.event,provideInlineValues:(o,s,a,l)=>{let u=this._client,c=(d,g,p,f)=>{let m={textDocument:eo(d),range:g,context:p};return u.sendRequest(Za.InlineValueRequest.type,m,f).then(b=>f.isCancellationRequested?null:b,b=>u.handleFailedRequest(Za.InlineValueRequest.type,f,b,null))},h=u.clientOptions.middleware;return h.provideInlineValues?h.provideInlineValues(o,s,a,l,c):c(o,s,a,l)}},r=e.documentSelector;return[j.registerInlineValuesProvider(r,i),{provider:i,onDidChangeInlineValues:t}]}}});var G4,qe,K4,Q4,z4,V4,cR,eK=_(()=>{G4=x(Yn());He();qe=x(q());Ee();Te();Ae();ne();ci();K4=class{constructor(){this.documentPullStates=new Map,this.workspacePullStates=new Map}track(e,t,i){let r=e===1?this.documentPullStates:this.workspacePullStates,[o,s,a]=t instanceof I?[t.toString(),t,i]:[t.uri.toString(),I.parse(t.uri),t.version],l=r.get(o);return l===void 0&&(l={document:s,pulledVersion:a,resultId:void 0},r.set(o,l)),l}update(e,t,i,r){let o=e===1?this.documentPullStates:this.workspacePullStates,[s,a,l,u]=t instanceof I?[t.toString(),t,i,r]:[t.uri.toString(),I.parse(t.uri),t.version,i],c=o.get(s);c===void 0?(c={document:a,pulledVersion:l,resultId:u},o.set(s,c)):(c.pulledVersion=l,c.resultId=u)}unTrack(e,t){let i=t instanceof I?t.toString():t.uri.toString();(e===1?this.documentPullStates:this.workspacePullStates).delete(i)}tracks(e,t){let i=t instanceof I?t.toString():t.uri.toString();return(e===1?this.documentPullStates:this.workspacePullStates).has(i)}getResultId(e,t){var o;let i=t instanceof I?t.toString():t.uri.toString();return(o=(e===1?this.documentPullStates:this.workspacePullStates).get(i))==null?void 0:o.resultId}getAllResultIds(){let e=[];for(let[t,i]of this.workspacePullStates)this.documentPullStates.has(t)&&(i=this.documentPullStates.get(t)),i.resultId!==void 0&&e.push({uri:t,value:i.resultId});return e}},Q4=class{constructor(e,t){this.client=e,this.options=t,this.isDisposed=!1,this.onDidChangeDiagnosticsEmitter=new qe.Emitter,this.provider=this.createProvider(),this.diagnostics=j.createDiagnosticCollection(t.identifier),this.openRequests=new Map,this.documentStates=new K4,this.workspaceErrorCounter=0}knows(e,t){return this.documentStates.tracks(e,t)}pull(e,t){let i=e instanceof I?e:e.uri;this.pullAsync(e).then(()=>{t&&t()},r=>{this.client.error(`Document pull failed for text document ${i.toString()}`,r)})}async pullAsync(e,t){let i=e instanceof I,r=i?e:e.uri,o=r.toString();t=i?t:e.version;let s=this.openRequests.get(o),a=i?this.documentStates.track(1,e,t):this.documentStates.track(1,e);if(s===void 0){let l=new qe.CancellationTokenSource;this.openRequests.set(o,{state:"open",document:e,version:t,tokenSource:l});let u,c;try{u=await this.provider.provideDiagnostics(e,a.resultId,l.token)??{kind:qe.DocumentDiagnosticReportKind.Full,items:[]}}catch(g){if(g.data&&qe.DiagnosticServerCancellationData.is(g.data)&&g.data.retriggerRequest===!1&&(c={state:"drop",document:e}),c===void 0)c={state:"reschedule",document:e};else throw g}if(c=c??this.openRequests.get(o),c===void 0){this.client.error(`Lost request state in diagnostic pull model. Clearing diagnostics for ${o}`),this.diagnostics.delete(r.toString());return}this.openRequests.delete(o);let h=e instanceof I?e.toString():e.uri.toString();if(!k.visibleTextEditors.some(g=>g.document.uri.toString()===h)){this.documentStates.unTrack(1,e);return}if(c.state==="drop")return;u!==void 0&&(u.kind===qe.DocumentDiagnosticReportKind.Full&&this.diagnostics.set(r.toString(),u.items),a.pulledVersion=t,a.resultId=u.resultId),c.state==="reschedule"&&this.pull(e)}else s.state==="open"?(s.tokenSource.cancel(),this.openRequests.set(o,{state:"reschedule",document:s.document})):s.state==="drop"&&this.openRequests.set(o,{state:"reschedule",document:s.document})}cleanupPull(e){let t=e instanceof I?e:e.uri,i=t.toString(),r=this.openRequests.get(i);this.options.workspaceDiagnostics||this.options.interFileDependencies?r!==void 0?this.openRequests.set(i,{state:"reschedule",document:e}):this.pull(e):(r!==void 0&&(r.state==="open"&&r.tokenSource.cancel(),this.openRequests.set(i,{state:"drop",document:e})),this.diagnostics.delete(t.toString()))}pullWorkspace(){this.pullWorkspaceAsync().then(()=>{this.workspaceTimeout=(0,qe.RAL)().timer.setTimeout(()=>{this.pullWorkspace()},2e3)},e=>{qe.DiagnosticServerCancellationData.is(e.data)||(this.client.error("Workspace diagnostic pull failed.",e),this.workspaceErrorCounter++),this.workspaceErrorCounter<=5&&(this.workspaceTimeout=(0,qe.RAL)().timer.setTimeout(()=>{this.pullWorkspace()},2e3))})}async pullWorkspaceAsync(){if(!this.provider.provideWorkspaceDiagnostics)return;this.workspaceCancellation!==void 0&&(this.workspaceCancellation.cancel(),this.workspaceCancellation=void 0),this.workspaceCancellation=new qe.CancellationTokenSource;let e=this.documentStates.getAllResultIds();await this.provider.provideWorkspaceDiagnostics(e,this.workspaceCancellation.token,t=>{if(!(!t||this.isDisposed))for(let i of t.items)i.kind===qe.DocumentDiagnosticReportKind.Full&&(this.documentStates.tracks(1,I.parse(i.uri))||this.diagnostics.set(i.uri.toString(),i.items)),this.documentStates.update(2,I.parse(i.uri),i.version??void 0,i.resultId)})}createProvider(){let e={onDidChangeDiagnostics:this.onDidChangeDiagnosticsEmitter.event,provideDiagnostics:(t,i,r)=>{let o=(a,l,u)=>{let c={identifier:this.options.identifier,textDocument:{uri:a instanceof I?a.toString():a.uri},previousResultId:l};return this.client.sendRequest(qe.DocumentDiagnosticRequest.type,c,u).then(async h=>h==null||this.isDisposed||u.isCancellationRequested?{kind:qe.DocumentDiagnosticReportKind.Full,items:[]}:h,h=>this.client.handleFailedRequest(qe.DocumentDiagnosticRequest.type,u,h,{kind:qe.DocumentDiagnosticReportKind.Full,items:[]}))},s=this.client.clientOptions.middleware;return s.provideDiagnostics?s.provideDiagnostics(t,i,r,o):o(t,i,r)}};return this.options.workspaceDiagnostics&&(e.provideWorkspaceDiagnostics=(t,i,r)=>{let o=(a,l)=>{let u=se(),c=this.client.onProgress(qe.WorkspaceDiagnosticRequest.partialResult,u,d=>{if(d==null){r(null);return}r(d)}),h={identifier:this.options.identifier,previousResultIds:a,partialResultToken:u};return this.client.sendRequest(qe.WorkspaceDiagnosticRequest.type,h,l).then(async d=>l.isCancellationRequested?{items:[]}:(c.dispose(),r(d),{items:[]}),d=>(c.dispose(),this.client.handleFailedRequest(qe.DocumentDiagnosticRequest.type,l,d,{items:[]})))},s=this.client.clientOptions.middleware;return s.provideWorkspaceDiagnostics?s.provideWorkspaceDiagnostics(t,i,r,o):o(t,i,r)}),e}dispose(){var e,t;this.isDisposed=!0,(e=this.workspaceCancellation)==null||e.cancel(),(t=this.workspaceTimeout)==null||t.dispose();for(let[i,r]of this.openRequests)r.state==="open"&&r.tokenSource.cancel(),this.openRequests.set(i,{state:"drop",document:r.document})}},z4=class{constructor(e){this.diagnosticRequestor=e,this.documents=new qe.LinkedMap}add(e){let t=e instanceof I?e.toString():e.uri.toString();this.documents.has(t)||(this.documents.set(t,e,qe.Touch.Last),this.trigger())}remove(e){let t=e instanceof I?e.toString():e.uri.toString();this.documents.has(t)&&(this.documents.delete(t),this.diagnosticRequestor.pull(e)),this.documents.size===0?this.stop():e===this.endDocument&&(this.endDocument=this.documents.last)}trigger(){if(this.intervalHandle!==void 0){this.endDocument=this.documents.last;return}this.endDocument=this.documents.last,this.intervalHandle=(0,qe.RAL)().timer.setInterval(()=>{let e=this.documents.first;if(e!==void 0){let t=e instanceof I?e.toString():e.uri.toString();this.diagnosticRequestor.pull(e),this.documents.set(t,e,qe.Touch.Last),e===this.endDocument&&this.stop()}},200)}dispose(){this.stop(),this.documents.clear()}stop(){var e;(e=this.intervalHandle)==null||e.dispose(),this.intervalHandle=void 0,this.endDocument=void 0}},V4=class{constructor(e,t){var c;let i=e.clientOptions.diagnosticPullOptions??{onChange:!0,onSave:!1},r=t.documentSelector,o=[],s=h=>{let d=t.documentSelector;if(i.match!==void 0)return i.match(d,h);for(let g of d)if(!!qe.TextDocumentFilter.is(g)){if(typeof g=="string"||g.language!==void 0&&g.language!=="*"||g.scheme!==void 0&&g.scheme!=="*"&&g.scheme!==h.scheme)return!1;if(g.pattern!==void 0){let p=new G4.Minimatch(g.pattern,{noext:!0});if(!p.makeRe()||!p.match(h.fsPath))return!1}}return!0},a=h=>{let d=k.visibleTextEditors.some(g=>g.document.uri===h.toString());return h instanceof I?s(h):v.match(r,h)>0&&d};this.diagnosticRequestor=new Q4(e,t),this.backgroundScheduler=new z4(this.diagnosticRequestor);let l=h=>{var d;!a(h)||!t.interFileDependencies||((d=this.activeTextDocument)==null?void 0:d.uri)===h.uri||this.backgroundScheduler.add(h)};this.activeTextDocument=(c=k.activeTextEditor)==null?void 0:c.document.textDocument,k.onDidChangeActiveTextEditor(h=>{let d=this.activeTextDocument;this.activeTextDocument=h==null?void 0:h.document.textDocument,d!==void 0&&l(d),this.activeTextDocument!==void 0&&this.backgroundScheduler.remove(this.activeTextDocument)});let u=new Set;v.onDidOpenTextDocument(h=>{u.has(h.uri.toString())||a(h)&&(this.diagnosticRequestor.pull(h,()=>{l(h)}),u.add(h.uri.toString()))});for(let h of v.textDocuments)u.has(h.uri.toString())||a(h)&&(this.diagnosticRequestor.pull(h,()=>{l(h)}),u.add(h.uri.toString()));i.onChange===!0&&v.onDidChangeTextDocument(async h=>{let d=v.getDocument(h.bufnr).textDocument;(i.filter===void 0||!i.filter(d,"onType"))&&this.diagnosticRequestor.knows(1,d)&&h.contentChanges.length>0&&this.diagnosticRequestor.pull(d,()=>{this.backgroundScheduler.trigger()})}),i.onSave===!0&&v.onDidSaveTextDocument(h=>{(i.filter===void 0||!i.filter(h,"onSave"))&&this.diagnosticRequestor.knows(1,h)&&this.diagnosticRequestor.pull(h,()=>this.backgroundScheduler.trigger())}),v.onDidCloseTextDocument(h=>{this.diagnosticRequestor.cleanupPull(h),this.backgroundScheduler.remove(h)}),this.diagnosticRequestor.onDidChangeDiagnosticsEmitter.event(()=>{for(let h of v.textDocuments)a(h)&&this.diagnosticRequestor.pull(h)}),t.workspaceDiagnostics===!0&&t.identifier!=="da348dc5-c30a-4515-9d98-31ff3be38d14"&&this.diagnosticRequestor.pullWorkspace(),o.push(j.registerDiagnosticsProvider(t.documentSelector,this.diagnosticRequestor.provider)),this.disposable=qe.Disposable.create(()=>[...o,this.backgroundScheduler,this.diagnosticRequestor].forEach(h=>h.dispose()))}get onDidChangeDiagnosticsEmitter(){return this.diagnosticRequestor.onDidChangeDiagnosticsEmitter}get diagnostics(){return this.diagnosticRequestor.provider}},cR=class extends Ie{constructor(e){super(e,qe.DocumentDiagnosticRequest.type)}fillClientCapabilities(e){let t=G(G(e,"textDocument"),"diagnostic");t.dynamicRegistration=!0,t.relatedDocumentSupport=!1,G(G(e,"workspace"),"diagnostics").refreshSupport=!0}initialize(e,t){this._client.onRequest(qe.DiagnosticRefreshRequest.type,async()=>{for(let s of this.getAllProviders())s.onDidChangeDiagnosticsEmitter.fire()});let[r,o]=this.getRegistration(t,e.diagnosticProvider);!r||!o||this.register({id:r,registerOptions:o})}dispose(){super.dispose()}registerLanguageProvider(e){let t=new V4(this._client,e);return[t.disposable,t]}}});var Ao,tK,hR,iK=_(()=>{Ao=x(q());Te();ci();to();tK=class{constructor(e){this.client=e}prepareTypeHierarchy(e,t,i){let r=this.client,o=(a,l,u)=>{let c=$i(a,l);return r.sendRequest(Ao.TypeHierarchyPrepareRequest.type,c,u).then(h=>u.isCancellationRequested?null:h,h=>r.handleFailedRequest(Ao.TypeHierarchyPrepareRequest.type,u,h,null))},s=r.clientOptions.middleware;return s.prepareTypeHierarchy?s.prepareTypeHierarchy(e,t,i,o):o(e,t,i)}provideTypeHierarchySupertypes(e,t){let i=this.client,r=(s,a)=>i.sendRequest(Ao.TypeHierarchySupertypesRequest.type,{item:s},a).then(l=>a.isCancellationRequested?null:l,l=>i.handleFailedRequest(Ao.TypeHierarchySupertypesRequest.type,a,l,null)),o=i.clientOptions.middleware;return o.provideTypeHierarchySupertypes?o.provideTypeHierarchySupertypes(e,t,r):r(e,t)}provideTypeHierarchySubtypes(e,t){let i=this.client,r=(s,a)=>i.sendRequest(Ao.TypeHierarchySubtypesRequest.type,{item:s},a).then(l=>a.isCancellationRequested?null:l,l=>i.handleFailedRequest(Ao.TypeHierarchySubtypesRequest.type,a,l,null)),o=i.clientOptions.middleware;return o.provideTypeHierarchySubtypes?o.provideTypeHierarchySubtypes(e,t,r):r(e,t)}},hR=class extends Ie{constructor(e){super(e,Ao.TypeHierarchyPrepareRequest.type)}fillClientCapabilities(e){let t=G(G(e,"textDocument"),"typeHierarchy");t.dynamicRegistration=!0}initialize(e,t){let[i,r]=this.getRegistration(t,e.typeHierarchyProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){let t=this._client,i=new tK(t),r=e.documentSelector;return[j.registerTypeHierarchyProvider(r,i),i]}}});var uu,nK,dR,rK=_(()=>{uu=x(q());Te();ci();cf();nK=class{constructor(e,t){this._client=e;this._registrationType=t;this._registrations=new Map}get registrationType(){return this._registrationType}register(e){let t=this.registerLanguageProvider(e.registerOptions);this._registrations.set(e.id,{disposable:t[0],provider:t[1]})}unregister(e){let t=this._registrations.get(e);t&&t.disposable.dispose()}dispose(){this._registrations.forEach(e=>{e.disposable.dispose()}),this._registrations.clear()}getProviders(){let e=[];for(let t of this._registrations.values())e.push(t.provider);return e}},dR=class extends nK{constructor(e){super(e,uu.WorkspaceSymbolRequest.type)}fillClientCapabilities(e){let t=G(G(e,"workspace"),"symbol");t.dynamicRegistration=!0,t.symbolKind={valueSet:U_},t.tagSupport={valueSet:G_},t.resolveSupport={properties:["location.range"]}}initialize(e){!e.workspaceSymbolProvider||this.register({id:Ue(),registerOptions:e.workspaceSymbolProvider===!0?{workDoneProgress:!1}:e.workspaceSymbolProvider})}registerLanguageProvider(e){let t={provideWorkspaceSymbols:(i,r)=>{let o=this._client,s=(l,u)=>o.sendRequest(uu.WorkspaceSymbolRequest.type,{query:l},u).then(c=>u.isCancellationRequested?null:c,c=>o.handleFailedRequest(uu.WorkspaceSymbolRequest.type,u,c,null)),a=o.clientOptions.middleware;return a.provideWorkspaceSymbols?a.provideWorkspaceSymbols(i,r,s):s(i,r)},resolveWorkspaceSymbol:e.resolveProvider===!0?(i,r)=>{let o=this._client,s=(l,u)=>o.sendRequest(uu.WorkspaceSymbolResolveRequest.type,l,u).then(c=>u.isCancellationRequested?null:c,c=>o.handleFailedRequest(uu.WorkspaceSymbolResolveRequest.type,u,c,null)),a=o.clientOptions.middleware;return a.resolveWorkspaceSymbol?a.resolveWorkspaceSymbol(i,r,s):s(i,r)}:void 0};return[j.registerWorkspaceSymbolProvider(t),t]}}});var sD,E8e,gR,oK=_(()=>{"use strict";sD=x(q());Te();ci();to();E8e=W()("languageclient-linkedEditingRange"),gR=class extends Ie{constructor(e){super(e,sD.LinkedEditingRangeRequest.type)}fillClientCapabilities(e){let t=G(G(e,"textDocument"),"linkedEditingRange");t.dynamicRegistration=!0}initialize(e,t){let[i,r]=this.getRegistration(t,e.linkedEditingRangeProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){let t={provideLinkedEditingRanges:(i,r,o)=>{let s=this._client,a=(u,c,h)=>{let d=$i(u,c);return s.sendRequest(sD.LinkedEditingRangeRequest.type,d,h).then(g=>h.isCancellationRequested?null:g,g=>s.handleFailedRequest(sD.LinkedEditingRangeRequest.type,h,g,null))},l=s.clientOptions.middleware;return l.provideLinkedEditingRange?l.provideLinkedEditingRange(i,r,o,a):a(i,r,o)}};return[j.registerLinkedEditingRangeProvider(e.documentSelector,t),t]}}});function kTe(n,e){return n[e]}function sK(n,e,t){n[e]=t}function aD(n){return{files:n.files.map(e=>({uri:e.toString()}))}}function lK(n){return{files:n.files.map(e=>({oldUri:e.oldUri.toString(),newUri:e.newUri.toString()}))}}var aK,Xi,rGe,cu,lD,pR,fR,mR,uD,yR,bR,vR,uK=_(()=>{"use strict";aK=x(Yn()),Xi=x(q());$r();et();ne();ci();cf();rGe=W()("language-client-fileOperations");cu=class{constructor(e,t,i,r,o){this._filters=new Map;this._client=e,this._event=t,this._registrationType=i,this._clientCapability=r,this._serverCapability=o}get registrationType(){return this._registrationType}fillClientCapabilities(e){let t=G(G(e,"workspace"),"fileOperations");sK(t,"dynamicRegistration",!0),sK(t,this._clientCapability,!0)}initialize(e){var r;let t=(r=e.workspace)==null?void 0:r.fileOperations,i=t!==void 0?kTe(t,this._serverCapability):void 0;if((i==null?void 0:i.filters)!==void 0)try{this.register({id:Ue(),registerOptions:{filters:i.filters}})}catch(o){this._client.warn(`Ignoring invalid glob pattern for ${this._serverCapability} registration: ${o}`)}}register(e){this._listener||(this._listener=this._event(this.send,this));let t=e.registerOptions.filters.map(i=>{let r=new aK.Minimatch(i.pattern.glob,cu.asMinimatchOptions(i.pattern.options));if(!r.makeRe())throw new Error(`Invalid pattern ${i.pattern.glob}!`);return{scheme:i.scheme,matcher:r,kind:i.pattern.matches}});this._filters.set(e.id,t)}unregister(e){this._filters.delete(e),this._filters.size===0&&this._listener&&(this._listener.dispose(),this._listener=void 0)}dispose(){this._filters.clear(),this._listener&&(this._listener.dispose(),this._listener=void 0)}async filter(e,t){let i=await Promise.all(e.files.map(async o=>{let s=t(o),a=s.fsPath.replace(/\\/g,"/");for(let l of this._filters.values())for(let u of l)if(!(u.scheme!==void 0&&u.scheme!==s.scheme)){if(u.matcher.match(a)){if(u.kind===void 0)return!0;let c=await cu.getFileType(s);if(c===void 0)return this._client.error(`Failed to determine file type for ${s.toString()}.`),!0;if(c===1&&u.kind===Xi.FileOperationPatternKind.file||c===2&&u.kind===Xi.FileOperationPatternKind.folder)return!0}else if(u.kind===Xi.FileOperationPatternKind.folder&&await cu.getFileType(s)===2&&u.matcher.match(`${a}/`))return!0}return!1})),r=e.files.filter((o,s)=>i[s]);return Va(ve({},e),{files:r})}static async getFileType(e){try{let t=await $t(e.fsPath);return t.isFile()?1:t.isDirectory()?2:t.isSymbolicLink()?64:0}catch{return}}static asMinimatchOptions(e){if(e!==void 0&&e.ignoreCase===!0)return{nocase:!0}}},lD=class extends cu{constructor(e,t,i,r,o,s,a){super(e,t,i,r,o);this._notificationType=i,this._accessUri=s,this._createParams=a}async send(e){let t=await this.filter(e,this._accessUri);if(t.files.length){let i=async r=>{this._client.sendNotification(this._notificationType,this._createParams(r))};this.doSend(t,i)}}},pR=class extends lD{constructor(e){super(e,v.onDidCreateFiles,Xi.DidCreateFilesNotification.type,"didCreate","didCreate",t=>t,t=>aD(t))}doSend(e,t){var r;let i=(r=this._client.clientOptions.middleware)==null?void 0:r.workspace;return i!=null&&i.didCreateFiles?i.didCreateFiles(e,t):t(e)}},fR=class extends lD{constructor(e){super(e,v.onDidRenameFiles,Xi.DidRenameFilesNotification.type,"didRename","didRename",t=>t.oldUri,t=>lK(t))}doSend(e,t){var r;let i=(r=this._client.clientOptions.middleware)==null?void 0:r.workspace;return i!=null&&i.didRenameFiles?i.didRenameFiles(e,t):t(e)}},mR=class extends lD{constructor(e){super(e,v.onDidDeleteFiles,Xi.DidDeleteFilesNotification.type,"didDelete","didDelete",t=>t,t=>aD(t))}doSend(e,t){var r;let i=(r=this._client.clientOptions.middleware)==null?void 0:r.workspace;return i!=null&&i.didDeleteFiles?i.didDeleteFiles(e,t):t(e)}},uD=class extends cu{constructor(e,t,i,r,o,s,a){super(e,t,i,r,o);this._requestType=i,this._accessUri=s,this._createParams=a}async send(e){let t=this.waitUntil(e);e.waitUntil(t)}async waitUntil(e){let t=await this.filter(e,this._accessUri);if(t.files.length){let i=r=>this._client.sendRequest(this._requestType,this._createParams(r));return this.doSend(t,i)}else return}},yR=class extends uD{constructor(e){super(e,v.onWillCreateFiles,Xi.WillCreateFilesRequest.type,"willCreate","willCreate",t=>t,t=>aD(t))}doSend(e,t){var r;let i=(r=this._client.clientOptions.middleware)==null?void 0:r.workspace;return i!=null&&i.willCreateFiles?i.willCreateFiles(e,t):t(e)}},bR=class extends uD{constructor(e){super(e,v.onWillRenameFiles,Xi.WillRenameFilesRequest.type,"willRename","willRename",t=>t.oldUri,t=>lK(t))}doSend(e,t){var r;let i=(r=this._client.clientOptions.middleware)==null?void 0:r.workspace;return i!=null&&i.willRenameFiles?i.willRenameFiles(e,t):t(e)}},vR=class extends uD{constructor(e){super(e,v.onWillDeleteFiles,Xi.WillDeleteFilesRequest.type,"willDelete","willDelete",t=>t,t=>aD(t))}doSend(e,t){var r;let i=(r=this._client.clientOptions.middleware)==null?void 0:r.workspace;return i!=null&&i.willDeleteFiles?i.willDeleteFiles(e,t):t(e)}}});var ks,cD,Lh,vt,SGe,wR,DR,hD,Fh,CR,xR,SR,gf,TR,ETe,kR=_(()=>{"use strict";ks=x(require("child_process")),cD=x(require("fs")),Lh=x(require("path")),vt=x(J6());$r();re();lr();X6();ne();ci();I4();A4();M4();O4();N4();H4();q4();W4();Z4();J4();$4();X4();U4();eK();iK();rK();oK();uK();ci();SGe=ks.default.ChildProcess,wR=W()("language-client-index");(e=>{function n(t){return Be(t.command)}e.is=n})(DR||(DR={}));hD=(r=>(r[r.stdio=0]="stdio",r[r.ipc=1]="ipc",r[r.pipe=2]="pipe",r[r.socket=3]="socket",r))(hD||{});(e=>{function n(t){let i=t;return i&&i.kind===3&&_y(i.port)}e.isSocket=n})(Fh||(Fh={}));(e=>{function n(t){return Be(t.module)}e.is=n})(CR||(CR={}));(e=>{function n(t){let i=t;return i&&i.writer!==void 0&&i.reader!==void 0}e.is=n})(xR||(xR={}));(e=>{function n(t){let i=t;return i&&i.process!==void 0&&typeof i.detached=="boolean"}e.is=n})(SR||(SR={}));gf=class extends Qw{constructor(e,t,i,r,o){let s,a,l,u,c;Be(t)?(s=e,a=t,l=i,u=r,c=!!o):(s=e.toLowerCase(),a=e,l=t,u=i,c=r),c===void 0&&(c=!1);super(s,a,u);this._serverOptions=l,this._forceDebug=c,this.registerProposedFeatures()}stop(){return super.stop().then(()=>{if(this._serverProcess){let e=this._serverProcess;this._serverProcess=void 0,(this._isDetached===void 0||!this._isDetached)&&this.checkProcessDied(e),this._isDetached=void 0}})}get serviceState(){let e=this._state;switch(e){case 0:return 0;case 3:return 3;case 2:return 2;case 1:return 1;case 5:return 5;case 4:return 4;default:return wR.error(`Unknown state: ${e}`),5}}static stateName(e){switch(e){case 0:return"Initial";case 3:return"Running";case 2:return"StartFailed";case 1:return"Starting";case 5:return"Stopped";case 4:return"Stopping";default:return"Unknown"}}checkProcessDied(e){!e||global.__TEST__||setTimeout(()=>{try{process.kill(e.pid,0),$6(e)}catch{}},2e3)}handleConnectionClosed(){this._serverProcess=void 0,super.handleConnectionClosed()}createMessageTransports(e){function t(c,h){if(!c&&!h)return;let d=Object.create(null);return Object.keys(process.env).forEach(g=>d[g]=process.env[g]),c&&Object.keys(c).forEach(g=>d[g]=c[g]),d}let i=["--debug=","--debug-brk=","--inspect=","--inspect-brk="],r=["--debug","--debug-brk","--inspect","--inspect-brk"];function o(){let c=process.execArgv;return c?c.some(h=>i.some(d=>h.startsWith(d))||r.some(d=>h===d)):!1}function s(c){if(c.stdin===null||c.stdout===null||c.stderr===null)throw new Error("Process created without stdio streams")}let a=this._serverOptions;if(ua(a))return a().then(c=>{if(Rh.is(c))return this._isDetached=!!c.detached,c;if(xR.is(c))return this._isDetached=!!c.detached,{reader:new vt.StreamMessageReader(c.reader),writer:new vt.StreamMessageWriter(c.writer)};{let h;return SR.is(c)?(h=c.process,this._isDetached=c.detached):(h=c,this._isDetached=!1),h.stderr.on("data",d=>this.outputChannel.append(Be(d)?d:d.toString(e))),{reader:new vt.StreamMessageReader(h.stdout),writer:new vt.StreamMessageWriter(h.stdin)}}});let l,u=a;return u.run||u.debug?typeof v8debug=="object"||this._forceDebug||o()?l=u.debug:l=u.run:l=a,this._getServerWorkingDir(l.options).then(c=>{if(CR.is(l)&&l.module){let h=l,d=h.transport||0;if(h.runtime){let g=[],p=h.options||Object.create(null);p.execArgv&&p.execArgv.forEach(w=>g.push(w)),g.push(h.module),h.args&&h.args.forEach(w=>g.push(w));let f=Object.create(null);f.cwd=c,f.env=t(p.env,!1);let m=this._getRuntimePath(h.runtime,c),b;if(d===1?(f.stdio=[null,null,null,"ipc"],g.push("--node-ipc")):d===0?g.push("--stdio"):d===2?(b=(0,vt.generateRandomPipeName)(),g.push(`--pipe=${b}`)):Fh.isSocket(d)&&g.push(`--socket=${d.port}`),g.push(`--clientProcessId=${process.pid.toString()}`),d===1||d===0){let w=ks.default.spawn(m,g,f);return!w||!w.pid?Promise.reject(`Launching server using runtime ${m} failed.`):(this._serverProcess=w,w.stderr.on("data",D=>this.outputChannel.append(Be(D)?D:D.toString(e))),d===1?(w.stdout.on("data",D=>this.outputChannel.append(Be(D)?D:D.toString(e))),Promise.resolve({reader:new vt.IPCMessageReader(w),writer:new vt.IPCMessageWriter(w)})):Promise.resolve({reader:new vt.StreamMessageReader(w.stdout),writer:new vt.StreamMessageWriter(w.stdin)}))}else{if(d===2)return(0,vt.createClientPipeTransport)(b).then(w=>{let D=ks.default.spawn(m,g,f);return!D||!D.pid?Promise.reject(`Launching server using runtime ${m} failed.`):(this._serverProcess=D,D.stderr.on("data",T=>this.outputChannel.append(Be(T)?T:T.toString(e))),D.stdout.on("data",T=>this.outputChannel.append(Be(T)?T:T.toString(e))),w.onConnected().then(T=>({reader:T[0],writer:T[1]})))});if(Fh.isSocket(d))return(0,vt.createClientSocketTransport)(d.port).then(w=>{let D=ks.default.spawn(m,g,f);return!D||!D.pid?Promise.reject(`Launching server using runtime ${m} failed.`):(this._serverProcess=D,D.stderr.on("data",T=>this.outputChannel.append(Be(T)?T:T.toString(e))),D.stdout.on("data",T=>this.outputChannel.append(Be(T)?T:T.toString(e))),w.onConnected().then(T=>({reader:T[0],writer:T[1]})))})}}else{let g;return new Promise((p,f)=>{let m=h.args&&h.args.slice()||[];d===1?m.push("--node-ipc"):d===0?m.push("--stdio"):d===2?(g=(0,vt.generateRandomPipeName)(),m.push(`--pipe=${g}`)):Fh.isSocket(d)&&m.push(`--socket=${d.port}`),m.push(`--clientProcessId=${process.pid.toString()}`);let b=h.options||Object.create(null);if(b.env=t(b.env,!0),b.execArgv=b.execArgv||[],b.cwd=c,b.silent=!0,d===1||d===0){let w=ks.default.fork(h.module,m||[],b);s(w),this._serverProcess=w,w.stderr.on("data",D=>this.outputChannel.append(Be(D)?D:D.toString(e))),d===1?(w.stdout.on("data",D=>this.outputChannel.append(Be(D)?D:D.toString(e))),p({reader:new vt.IPCMessageReader(this._serverProcess),writer:new vt.IPCMessageWriter(this._serverProcess)})):p({reader:new vt.StreamMessageReader(w.stdout),writer:new vt.StreamMessageWriter(w.stdin)})}else d===2?(0,vt.createClientPipeTransport)(g).then(w=>{let D=ks.default.fork(h.module,m||[],b);s(D),this._serverProcess=D,D.stderr.on("data",T=>this.outputChannel.append(Be(T)?T:T.toString(e))),D.stdout.on("data",T=>this.outputChannel.append(Be(T)?T:T.toString(e))),w.onConnected().then(T=>{p({reader:T[0],writer:T[1]})})}):Fh.isSocket(d)&&(0,vt.createClientSocketTransport)(d.port).then(w=>{let D=ks.default.fork(h.module,m||[],b);s(D),this._serverProcess=D,D.stderr.on("data",T=>this.outputChannel.append(Be(T)?T:T.toString(e))),D.stdout.on("data",T=>this.outputChannel.append(Be(T)?T:T.toString(e))),w.onConnected().then(T=>{p({reader:T[0],writer:T[1]})})})})}}else if(DR.is(l)&&l.command){let h=l,d=h.args||[],g=Object.assign({},h.options);g.env=g.env?Object.assign({},process.env,g.env):process.env,g.cwd=g.cwd||c;let p=v.expand(l.command),f=ks.default.spawn(p,d,g);return f.on("error",m=>{this.error(m.message),wR.error(m)}),!f||!f.pid?Promise.reject(`Launching server "${this.id}" using command ${h.command} failed.`):(wR.info(`Language server "${this.id}" started with ${f.pid}`),f.on("exit",m=>{m!=0&&this.error(`${h.command} exited with code: ${m}`)}),f.stderr.on("data",m=>this.outputChannel.append(Be(m)?m:m.toString(e))),this._serverProcess=f,this._isDetached=!!g.detached,Promise.resolve({reader:new vt.StreamMessageReader(f.stdout),writer:new vt.StreamMessageWriter(f.stdin)}))}return Promise.reject(`Unsupported server configuration ${JSON.stringify(a,null,2)}`)})}_getRuntimePath(e,t){if(Lh.default.isAbsolute(e))return e;let i=this._mainGetRootPath();if(i!==void 0){let r=Lh.default.join(i,e);if(cD.default.existsSync(r))return r}if(t!==void 0){let r=Lh.default.join(t,e);if(cD.default.existsSync(r))return r}return e}_mainGetRootPath(){let e=v.workspaceFolders;return!e||e.length===0?void 0:e[0].uri}registerProposedFeatures(){this.registerFeatures(ETe.createAll(this))}registerBuiltinFeatures(){super.registerBuiltinFeatures();let{disabledFeatures:e}=this.clientOptions;e.includes("pullConfiguration")||this.registerFeature(new Q_(this)),e.includes("typeDefinition")||this.registerFeature(new iR(this)),e.includes("implementation")||this.registerFeature(new eR(this)),e.includes("declaration")||this.registerFeature(new z_(this)),e.includes("colorProvider")||this.registerFeature(new K_(this)),e.includes("foldingRange")||this.registerFeature(new V_(this)),e.includes("selectionRange")||this.registerFeature(new oR(this)),e.includes("callHierarchy")||this.registerFeature(new sR(this)),e.includes("progress")||this.registerFeature(new tR(this)),e.includes("linkedEditing")||this.registerFeature(new gR(this)),e.includes("fileEvents")||(this.registerFeature(new pR(this)),this.registerFeature(new fR(this)),this.registerFeature(new mR(this)),this.registerFeature(new yR(this)),this.registerFeature(new bR(this)),this.registerFeature(new vR(this))),e.includes("semanticTokens")||this.registerFeature(new aR(this)),e.includes("inlayHint")||this.registerFeature(new lR(this)),e.includes("inlineValue")||this.registerFeature(new uR(this)),e.includes("pullDiagnostic")||this.registerFeature(new cR(this)),e.includes("typeHierarchy")||this.registerFeature(new hR(this)),e.includes("workspaceSymbol")||this.registerFeature(new dR(this)),e.includes("workspaceFolders")||this.registerFeature(new rR(this))}_getServerWorkingDir(e){let t=e&&e.cwd;return t&&!Lh.default.isAbsolute(t)&&(t=Lh.default.join(v.cwd,t)),t||(t=v.cwd),t?new Promise(i=>{cD.default.lstat(t,(r,o)=>{i(!r&&o.isDirectory()?t:void 0)})}):Promise.resolve(void 0)}appendOutput(e,t){let i=Be(e)?e:e.toString(t);this.outputChannel.append(i.endsWith(` `)?i:i+` -`)}},k_=class{constructor(e,t){this._client=e;this._setting=t;this._listeners=[]}start(){return y.onDidChangeConfiguration(e=>{e.affectsConfiguration(this._setting)&&this.onDidChangeConfiguration()},null,this._listeners),this.onDidChangeConfiguration(),{dispose:()=>{Z(this._listeners),this._client.needsStop()&&this._client.stop()}}}onDidChangeConfiguration(){let e=this._setting.indexOf("."),t=e>=0?this._setting.substr(0,e):this._setting,i=e>=0?this._setting.substr(e+1):void 0,r=i?y.getConfiguration(t).get(i,!0):y.getConfiguration(t);r&&this._client.needsStart()?this._client.start():!r&&this._client.needsStop()&&this._client.stop()}},$Se={createAll:n=>[]}});function XSe(n){switch(n){case 0:return"init";case 3:return"running";case 1:return"starting";case 2:return"startFailed";case 4:return"stopping";case 5:return"stopped";default:return"unknown"}}function USe(n){let e=n.map(t=>typeof t=="string"?t:t.language);return e=e.filter(t=>typeof t=="string"),Array.from(new Set(e))}function GSe(n,e,t){let{command:i,module:r,port:o,args:s,filetypes:a}=t;if(s=s||[],!a)return k.showMessage(`Wrong configuration of LS "${e}", filetypes not found`,"error"),null;if(!i&&!r&&!o)return k.showMessage(`Wrong configuration of LS "${e}", no command or module specified.`,"error"),null;let l;if(r){if(r=y.expand(r),!B6.default.existsSync(r))return k.showMessage(`Module file "${r}" not found for LS "${e}"`,"error"),null;l={module:r,runtime:t.runtime||process.execPath,args:s,transport:KSe(t),options:zSe(t)}}else i?l={command:i,args:s,options:VSe(t)}:o&&(l=()=>new Promise((g,f)=>{let p=new H6.default.Socket,b=t.host||"127.0.0.1";Kl.info(`languageserver "${n}" connecting to ${b}:${o}`),p.connect(o,b,()=>{g({reader:p,writer:p})}),p.on("error",v=>{f(new Error(`Connection error for ${n}: ${v.message}`))})}));let u=Array.from(t.disabledFeatures||[]);for(let g of["disableWorkspaceFolders","disableCompletion","disableDiagnostics"])if(t[g]===!0){let f=g.slice(7);u.push(f[0].toLowerCase()+f.slice(1))}let c=!!t.disableSnippetCompletion;return[{ignoredRootPaths:(t.ignoredRootPaths||[]).map(g=>y.expand(g)),disableSnippetCompletion:c,disableDynamicRegister:!!t.disableDynamicRegister,disabledFeatures:u,formatterPriority:t.formatterPriority||0,documentSelector:Y6(t.filetypes,t.additionalSchemes),revealOutputChannelOn:QSe(t.revealOutputChannelOn),synchronize:{configurationSection:`${n}.settings`},diagnosticCollectionName:e,outputChannelName:n,stdioEncoding:t.stdioEncoding||"utf8",progressOnInitialization:t.progressOnInitialization===!0,initializationOptions:t.initializationOptions||{}},l]}function QSe(n){switch(n){case"info":return 1;case"warn":return 2;case"error":return 3;case"never":return 4;default:return 4}}function Y6(n,e){let t=[],i=["file","untitled"].concat(e||[]);return n?(n.forEach(r=>{t.push(...i.map(o=>({language:r,scheme:o})))}),t):i.map(r=>({scheme:r}))}function KSe(n){let{transport:e,transportPort:t}=n;return!e||e=="ipc"?1:e=="stdio"?0:e=="pipe"?2:{kind:3,port:t}}function zSe(n){return{cwd:n.cwd,execArgv:n.execArgv||[],env:n.env||void 0}}function VSe(n){return{cwd:n.cwd,detached:!!n.detached,shell:!!n.shell,env:n.env||void 0}}function M6(n){switch(n){case 2:return"running";case 3:return"starting";case 1:return"stopped";default:return"unknown"}}var N6,B6,H6,vh,Kl,q6,Mi,$f=_(()=>{"use strict";N6=require("events"),B6=C(require("fs")),H6=C(require("net")),vh=C(H());E_();Ir();z();ke();V();Kl=q()("services");q6=class extends N6.EventEmitter{constructor(){super(...arguments);this.registered=new Map;this.disposables=[]}init(){y.onDidOpenTextDocument(e=>{this.start(e)},null,this.disposables),y.onDidChangeConfiguration(e=>{e.affectsConfiguration("languageserver")&&this.createCustomServices()},null,this.disposables),this.createCustomServices()}dispose(){this.removeAllListeners(),Z(this.disposables);for(let e of this.registered.values())e.dispose()}regist(e){let{id:t}=e;if(t||Kl.error("invalid service configuration. ",e.name),!this.registered.get(t))return this.registered.set(t,e),Kl.info(`registered service "${t}"`),this.shouldStart(e)&&e.start(),e.state==3&&this.emit("ready",t),e.onServiceReady(()=>{Kl.info(`service ${t} started`),this.emit("ready",t)},null,this.disposables),vh.Disposable.create(()=>{e.stop(),e.dispose(),this.registered.delete(t)})}getService(e){let t=this.registered.get(e);return t||(t=this.registered.get(`languageserver.${e}`)),t}shouldStart(e){if(e.state!=0)return!1;let t=e.selector;for(let i of y.documents)if(y.match(t,i.textDocument))return!0;return!1}start(e){let t=this.getServices(e);for(let i of t)i.state==0&&i.start()}getServices(e){let t=[];for(let i of this.registered.values())y.match(i.selector,e)>0&&t.push(i);return t}stop(e){let t=this.registered.get(e);if(!t){k.showMessage(`Service ${e} not found`,"error");return}return Promise.resolve(t.stop())}stopAll(){for(let e of this.registered.values())e.stop()}async toggle(e){let t=this.registered.get(e);if(!t){k.showMessage(`Service ${e} not found`,"error");return}let{state:i}=t;try{i==3?await Promise.resolve(t.stop()):i==0?await t.start():i==5&&await t.restart()}catch(r){k.showMessage(`Service error: ${r}`,"error")}}getServiceStats(){let e=[];for(let[t,i]of this.registered)e.push({id:t,languageIds:USe(i.selector),state:XSe(i.state)});return e}createCustomServices(){let e=y.getConfiguration().get("languageserver",{});for(let t of Object.keys(e)){let i=e[t];!this.validServerConfig(t,i)||this.registLanguageClient(t,i)}}validServerConfig(e,t){let i=[];return t.module!=null&&typeof t.module!="string"&&i.push(`"module" field of languageserver ${e} should be string`),t.command!=null&&typeof t.command!="string"&&i.push(`"command" field of languageserver ${e} should be string`),t.transport!=null&&typeof t.transport!="string"&&i.push(`"transport" field of languageserver ${e} should be string`),t.transportPort!=null&&typeof t.transportPort!="number"&&i.push(`"transportPort" field of languageserver ${e} should be string`),(!Array.isArray(t.filetypes)||!t.filetypes.every(r=>typeof r=="string"))&&i.push(`"filetypes" field of languageserver ${e} should be array of string`),t.additionalSchemes&&(!Array.isArray(t.additionalSchemes)||t.additionalSchemes.some(r=>typeof r!="string"))&&i.push(`"additionalSchemes" field of languageserver ${e} should be array of string`),i.length?(k.showMessage(i.join(` -`),"error"),!1):!0}waitClient(e){let t=this.getService(e);return t&&t.state==3?Promise.resolve():t?new Promise(i=>{t.onServiceReady(()=>{i()})}):new Promise(i=>{let r=o=>{(o==e||o==`languageserver.${e}`)&&(this.off("ready",r),i())};this.on("ready",r)})}async registNotification(e,t){await this.waitClient(e);let i=this.getService(e);if(!i.client){k.showMessage(`Not a language client: ${e}`,"error");return}i.client.onNotification(t,async o=>{y.nvim.call("coc#do_notify",[e,t,o],!0)})}async sendNotification(e,t,i){if(!t)throw new Error("method required for ontification");let r=this.getService(e);if(!r||!r.client)throw new Error(`Language server ${e} not found`);if(r.state==1&&await r.client.onReady(),r.state!=3)throw new Error(`Language server ${e} not running`);await Promise.resolve(r.client.sendNotification(t,i))}async sendRequest(e,t,i,r){if(!t)throw new Error("method required for sendRequest");let o=this.getService(e);if(o||await bt(100),o=this.getService(e),!o||!o.client)throw new Error(`Language server ${e} not found`);if(o.state==1&&await o.client.onReady(),o.state!=3)throw new Error(`Language server ${e} not running`);return r||(r=new vh.CancellationTokenSource().token),await Promise.resolve(o.client.sendRequest(t,i,r))}registLanguageClient(e,t){let i=typeof e=="string"?`languageserver.${e}`:e.id,r=[],o=new vh.Emitter,s=typeof e=="string"?null:e;if(this.registered.has(i))return;let a=!1,l={id:i,client:s,name:typeof e=="string"?e:e.name,selector:typeof e=="string"?Y6(t.filetypes,t.additionalSchemes):e.clientOptions.documentSelector,state:0,onServiceReady:o.event,start:()=>{if(l.state==1||l.state==3||s&&!s.needsStart())return;if(a&&s)return s.restart(),Promise.resolve();if(!a){if(typeof e=="string"&&!s){let c=y.getConfiguration().get("languageserver",{})[e];if(!c||c.enable===!1)return;let h=GSe(i,e,c);if(!h)return;s=new Jf(i,e,h[1],h[0]),l.selector=h[0].documentSelector,l.client=s}s.onDidChangeState(c=>{let{oldState:h,newState:d}=c;d==3?l.state=1:d==2?l.state=3:d==1&&(l.state=5);let g=M6(h),f=M6(d);Kl.info(`${s.name} state change: ${g} => ${f}`)},null,r),a=!0}l.state=1,Kl.debug(`starting service: ${i}`);let u=s.start();return r.push(u),new Promise(c=>{s.onReady().then(()=>{o.fire(void 0),c()},h=>{k.showMessage(`Server ${i} failed to start: ${h}`,"error"),Kl.error(`Server ${i} failed to start:`,h),l.state=2,c()})})},dispose:async()=>{o.dispose(),Z(r)},stop:async()=>{!s||!s.needsStop()||await Promise.resolve(s.stop())},restart:async()=>{s?(l.state=1,s.restart()):await l.start()}};return this.regist(l)}};Mi=new q6});var W6,zl,wh,jw=_(()=>{"use strict";V();ke();W6=require("events"),zl=["","","","","","","","","","","","","","","","","","","","<2-LeftMouse>","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""],wh=class extends W6.EventEmitter{constructor(){super();this.configuration=y.getConfiguration("list"),this.disposable=y.onDidChangeConfiguration(e=>{e.affectsConfiguration("list")&&(this.configuration=y.getConfiguration("list"),this.emit("change"))})}get(e,t){return this.configuration.get(e,t)}get previousKey(){return this.fixKey(this.configuration.get("previousKeymap",""))}get nextKey(){return this.fixKey(this.configuration.get("nextKeymap",""))}dispose(){this.disposable.dispose(),this.removeAllListeners()}fixKey(e){if(zl.includes(e))return e;let t=zl.find(i=>i.toLowerCase()==e.toLowerCase());return t||(k.showMessage(`Configured key "${e}" not supported.`,"error"),null)}}});var J$e,Aw,Z6=_(()=>{"use strict";ke();jw();J$e=q()("list-mappings"),Aw=class{constructor(e,t,i){this.manager=e;this.nvim=t;this.config=i;this.insertMappings=new Map;this.normalMappings=new Map;this.userInsertMappings=new Map;this.userNormalMappings=new Map;this.actions=new Map;let{prompt:r}=e;this.addAction("do:switch",async()=>{await e.switchMatcher()}),this.addAction("do:selectall",async()=>{var o;await((o=e.session)==null?void 0:o.ui.selectAll())}),this.addAction("do:help",async()=>{var o;await((o=e.session)==null?void 0:o.showHelp())}),this.addAction("do:refresh",async()=>{var o;await((o=e.session)==null?void 0:o.reloadItems())}),this.addAction("do:exit",async()=>{await e.cancel()}),this.addAction("do:stop",()=>{e.stop()}),this.addAction("do:cancel",async()=>{await e.cancel(!1)}),this.addAction("do:toggle",async()=>{var o;await((o=e.session)==null?void 0:o.ui.toggleSelection())}),this.addAction("do:jumpback",()=>{var o;(o=e.session)==null||o.jumpBack()}),this.addAction("do:previous",async()=>{await e.normal("k")}),this.addAction("do:next",async()=>{await e.normal("j")}),this.addAction("do:defaultaction",async()=>{await e.doAction()}),this.addAction("do:chooseaction",async()=>{await e.chooseAction()}),this.addAction("do:togglemode",()=>{e.toggleMode()}),this.addAction("do:previewtoggle",async()=>{await e.togglePreview()}),this.addAction("do:previewup",()=>{this.scrollPreview("up")}),this.addAction("do:previewdown",()=>{this.scrollPreview("down")}),this.addAction("do:command",async()=>{await e.cancel(!1),await t.eval('feedkeys(":")')}),this.addAction("prompt:previous",()=>{var o;(o=e.session)==null||o.history.previous()}),this.addAction("prompt:next",()=>{var o;(o=e.session)==null||o.history.next()}),this.addAction("prompt:start",()=>{r.moveToStart()}),this.addAction("prompt:end",()=>{r.moveToEnd()}),this.addAction("prompt:left",()=>{r.moveLeft()}),this.addAction("prompt:right",()=>{r.moveRight()}),this.addAction("prompt:deleteforward",()=>{r.onBackspace()}),this.addAction("prompt:deletebackward",()=>{r.removeNext()}),this.addAction("prompt:removetail",()=>{r.removeTail()}),this.addAction("prompt:removeahead",()=>{r.removeAhead()}),this.addAction("prompt:removeword",()=>{r.removeWord()}),this.addAction("prompt:insertregister",()=>{r.insertRegister()}),this.addAction("prompt:paste",async()=>{await r.paste()}),this.addAction("eval",async o=>{await r.eval(o)}),this.addAction("command",async o=>{await e.command(o)}),this.addAction("action",async o=>{await e.doAction(o)}),this.addAction("feedkeys",async o=>{await e.feedkeys(o)}),this.addAction("normal",async o=>{await e.normal(o,!1)}),this.addAction("normal!",async o=>{await e.normal(o,!0)}),this.addAction("call",async o=>{await e.call(o)}),this.addAction("expr",async o=>{let s=await e.call(o);s&&await e.doAction(s)}),this.addKeyMapping("insert","","do:switch"),this.addKeyMapping("insert","","prompt:next"),this.addKeyMapping("insert","","prompt:previous"),this.addKeyMapping("insert","","prompt:paste"),this.addKeyMapping("insert",["",""],"do:defaultaction"),this.addKeyMapping("insert",["",""," "],"do:chooseaction"),this.addKeyMapping("insert","","do:togglemode"),this.addKeyMapping("insert","","do:stop"),this.addKeyMapping("insert","","do:refresh"),this.addKeyMapping("insert","","prompt:left"),this.addKeyMapping("insert","","prompt:right"),this.addKeyMapping("insert",["",""],"prompt:end"),this.addKeyMapping("insert",["",""],"prompt:start"),this.addKeyMapping("insert",["","",""],"prompt:deleteforward"),this.addKeyMapping("insert","","prompt:removeword"),this.addKeyMapping("insert","","prompt:removeahead"),this.addKeyMapping("insert","","prompt:insertregister"),this.addKeyMapping("normal","t","action:tabe"),this.addKeyMapping("normal","s","action:split"),this.addKeyMapping("normal","d","action:drop"),this.addKeyMapping("normal",["","","\r"],"do:defaultaction"),this.addKeyMapping("normal","","do:selectall"),this.addKeyMapping("normal"," ","do:toggle"),this.addKeyMapping("normal","p","do:previewtoggle"),this.addKeyMapping("normal",[""," ",""],"do:chooseaction"),this.addKeyMapping("normal","","do:stop"),this.addKeyMapping("normal","","do:refresh"),this.addKeyMapping("normal","","do:jumpback"),this.addKeyMapping("normal","","do:previewdown"),this.addKeyMapping("normal","","do:previewup"),this.addKeyMapping("normal",["i","I","o","O","a","A"],"do:togglemode"),this.addKeyMapping("normal","?","do:help"),this.addKeyMapping("normal",":","do:command"),this.createMappings(),i.on("change",()=>{this.createMappings()})}createMappings(){let e=this.config.get("insertMappings",{});this.userInsertMappings=this.fixUserMappings(e,"list.insertMappings");let t=this.config.get("normalMappings",{});this.userNormalMappings=this.fixUserMappings(t,"list.normalMappings")}hasUserMapping(e,t){return(e=="insert"?this.userInsertMappings:this.userNormalMappings).has(t)}isValidAction(e){if(this.actions.has(e))return!0;let[t,i]=e.split(":",2);return!(!i||!this.actions.has(t))}fixUserMappings(e,t){let i=new Map;for(let[r,o]of Object.entries(e)){if(!this.isValidAction(o)){k.showMessage(`Invalid configuration - unable to support action "${o}" in "${t}"`,"warning");continue}if(r.length==1)i.set(r,o);else if(r.startsWith("<")&&r.endsWith(">"))if(r.toLowerCase()=="")i.set(" ",o);else if(r.toLowerCase()=="")i.set("",o);else if(zl.includes(r))i.set(r,o);else{let s=!1;for(let a=0;athis.doAction(e);let[t,i]=e.split(":",2);if(!i||!this.actions.has(t))throw new Error(`Invalid action ${e}`);return()=>this.doAction(t,i)}async doAction(e,t){let i=this.actions.get(e);if(!i)throw new Error(`Action ${e} doesn't exist`);await Promise.resolve(i(t))}scrollPreview(e){let{nvim:t}=this;t.pauseNotification(),t.call("coc#list#scroll_preview",[e],!0),t.command("redraw",!0),t.resumeNotification(!1,!0)}}});var J6,U$e,Ow,$6=_(()=>{"use strict";J6=C(H()),U$e=q()("list-prompt"),Ow=class{constructor(e,t){this.nvim=e;this.config=t;this.cusorIndex=0;this._input="";this._mode="insert";this.interactive=!1;this.requestInput=!1;this._onDidChangeInput=new J6.Emitter;this.onDidChangeInput=this._onDidChangeInput.event}get input(){return this._input}set input(e){this._input!=e&&(this.cusorIndex=e.length,this._input=e,this.drawPrompt(),this._onDidChangeInput.fire(this._input))}get mode(){return this._mode}set mode(e){e!=this._mode&&(this._mode=e,this.drawPrompt())}set matcher(e){this._matcher=e,this.drawPrompt()}start(e){e&&(this.interactive=e.interactive,this.cusorIndex=e.input.length,this._input=e.input,this._mode=e.mode,this._matcher=e.interactive?"":e.matcher),this.nvim.call("coc#prompt#start_prompt",["list"],!0),this.drawPrompt()}cancel(){let{nvim:e}=this;e.call("coc#prompt#stop_prompt",["list"],!0)}reset(){this._input="",this.cusorIndex=0}drawPrompt(){let e=this.config.get("indicator",">"),{cusorIndex:t,interactive:i,input:r,_matcher:o}=this,s=['echo ""'];if(this.mode=="insert")if(i?s.push("echohl MoreMsg | echon 'INTERACTIVE ' | echohl None"):o&&s.push(`echohl MoreMsg | echon '${o.toUpperCase()} ' | echohl None`),s.push(`echohl Special | echon '${e} ' | echohl None`),t==r.length)s.push(`echon '${r.replace(/'/g,"''")}'`),s.push("echohl Cursor | echon ' ' | echohl None");else{let l=r.slice(0,t);l&&s.push(`echon '${l.replace(/'/g,"''")}'`),s.push(`echohl Cursor | echon '${r[t].replace(/'/,"''")}' | echohl None`);let u=r.slice(t+1);s.push(`echon '${u.replace(/'/g,"''")}'`)}else s.push('echohl MoreMsg | echo "" | echohl None');s.push("redraw");let a=s.join("|");this.nvim.command(a,!0)}moveLeft(){this.cusorIndex!=0&&(this.cusorIndex=this.cusorIndex-1,this.drawPrompt())}moveRight(){this.cusorIndex!=this._input.length&&(this.cusorIndex=this.cusorIndex+1,this.drawPrompt())}moveToEnd(){this.cusorIndex!=this._input.length&&(this.cusorIndex=this._input.length,this.drawPrompt())}moveToStart(){this.cusorIndex!=0&&(this.cusorIndex=0,this.drawPrompt())}onBackspace(){let{cusorIndex:e,input:t}=this;if(e==0)return;let i=t.slice(0,e),r=t.slice(e);this.cusorIndex=e-1,this._input=`${i.slice(0,i.length-1)}${r}`,this.drawPrompt(),this._onDidChangeInput.fire(this._input)}removeNext(){let{cusorIndex:e,input:t}=this;if(e==t.length-1)return;let i=t.slice(0,e),r=t.slice(e+1);this._input=`${i}${r}`,this.drawPrompt(),this._onDidChangeInput.fire(this._input)}removeWord(){let{cusorIndex:e,input:t}=this;if(e==0)return;let i=t.slice(0,e),r=t.slice(e),o=i.replace(/[\w$]+([^\w$]+)?$/,"");this.cusorIndex=e-(i.length-o.length),this._input=`${o}${r}`,this.drawPrompt(),this._onDidChangeInput.fire(this._input)}removeTail(){let{cusorIndex:e,input:t}=this;if(e==t.length)return;let i=t.slice(0,e);this._input=i,this.drawPrompt(),this._onDidChangeInput.fire(this._input)}removeAhead(){let{cusorIndex:e,input:t}=this;if(e==0)return;let i=t.slice(e);this.cusorIndex=0,this._input=i,this.drawPrompt(),this._onDidChangeInput.fire(this._input)}async acceptCharacter(e){if(this.requestInput){if(this.requestInput=!1,/^[0-9a-z"%#*+/:\-.]$/.test(e)){let t=await this.nvim.call("getreg",e);t=t.replace(/\n/g," "),this.addText(t)}}else this.addText(e)}insertRegister(){this.requestInput=!0}async paste(){let e=await this.nvim.eval("@*");e=e.replace(/\n/g,""),e&&this.addText(e)}async eval(e){let t=await this.nvim.call("eval",[e]);t=t.replace(/\n/g,""),this.addText(t)}addText(e){let{cusorIndex:t,input:i}=this;this.cusorIndex=t+e.length;let r=i.slice(0,t),o=i.slice(t);this._input=`${r}${e}${o}`,this.drawPrompt(),this._onDidChangeInput.fire(this._input)}}});function xn(n){let e=[];for(let t=0,i=n.length;t=97&&n<=122||n>=65&&n<=90}function Mw(n,e,t=!1){return!!(n==e||n>=97&&n<=122&&e+32===n||t&&n<=90&&n+32===e)}function Xf(n,e){let t=n.charCodeAt(0),i=e.charCodeAt(0);return t===i||t>=97&&t<=122&&i+32===t}function bo(n,e){let t=n.length;if(n.length>e.length)return!1;let i=0;for(let r=0;r=97&&s<=122&&o+32===s){i=i+1;continue}}return i===t}var us=_(()=>{"use strict"});var V$e,Nw,U6=_(()=>{"use strict";us();V();V$e=q()("list-history"),Nw=class{constructor(e,t){this.prompt=e;this.name=t;this.index=-1;this.loaded=[];this.current=[];this.db=y.createDatabase(`list-${t}-history`),this.key=Buffer.from(y.cwd).toString("base64")}filter(){let{input:e}=this.prompt;if(e==this.curr)return;this.historyInput="";let t=xn(e);this.current=this.loaded.filter(i=>bo(t,i)),this.index=-1}get curr(){return this.index==-1?null:this.current[this.index]}load(e){let{db:t}=this;e=e||"";let i=t.fetch(this.key);!i||!Array.isArray(i)?this.loaded=[]:this.loaded=i,this.index=-1,this.current=this.loaded.filter(r=>r.startsWith(e))}add(){let{loaded:e,db:t,prompt:i}=this,{input:r}=i;if(!r||r.length<2||r==this.historyInput)return;let o=e.indexOf(r);o!=-1&&e.splice(o,1),e.push(r),e.length>200&&(e=e.slice(-200)),t.push(this.key,e)}previous(){let{current:e,index:t}=this;!e||!e.length||(t<=0?this.index=e.length-1:this.index=t-1,this.historyInput=this.prompt.input=e[this.index]||"")}next(){let{current:e,index:t}=this;!e||!e.length||(t==e.length-1?this.index=0:this.index=t+1,this.historyInput=this.prompt.input=e[this.index]||"")}}});var G6,Dh,aXe,Bw,Q6=_(()=>{"use strict";G6=C(Ei()),Dh=C(H());le();z();no();V();aXe=q()("list-ui"),Bw=class{constructor(e,t,i,r){this.nvim=e;this.name=t;this.listOptions=i;this.config=r;this.newTab=!1;this.reversed=!1;this.currIndex=0;this.items=[];this.disposables=[];this.selected=new Set;this.mutex=new ei;this._onDidChangeLine=new Dh.Emitter;this._onDidOpen=new Dh.Emitter;this._onDidClose=new Dh.Emitter;this._onDidLineChange=new Dh.Emitter;this._onDoubleClick=new Dh.Emitter;this.onDidChangeLine=this._onDidChangeLine.event;this.onDidLineChange=this._onDidLineChange.event;this.onDidOpen=this._onDidOpen.event;this.onDidClose=this._onDidClose.event;this.onDidDoubleClick=this._onDoubleClick.event;this.signOffset=r.get("signOffset"),this.newTab=i.position=="tab",this.reversed=i.reverse===!0,E.on("BufWinLeave",async s=>{s!=this.bufnr||this.window==null||(this.window=null,this._onDidClose.fire(s))},null,this.disposables),E.on("CursorMoved",async(s,a)=>{if(s!=this.bufnr)return;let l=this.lnumToIndex(a[0]);this.onLineChange(l)},null,this.disposables);let o=(0,G6.default)(async s=>{if(s!=this.bufnr)return;let[a,l,u]=await e.eval('[win_getid(),line("w0"),line("w$")]');if(u<300||a!=this.winid)return;let c=u-l+1,h=this.lnumToIndex(l),d=this.lnumToIndex(l+c*2);e.pauseNotification(),this.doHighlight(h,d),e.command("redraw",!0),e.resumeNotification(!1,!0)},global.hasOwnProperty("__TEST__")?20:100);this.disposables.push({dispose:()=>{o.clear()}}),E.on("CursorMoved",o,null,this.disposables)}lnumToIndex(e){let{reversed:t,length:i}=this;return t?Math.max(0,i-e):e-1}indexToLnum(e){let{reversed:t,length:i}=this;return t?Math.max(Math.min(i,i-e),1):Math.min(e+1,i)}get bufnr(){var e;return(e=this.buffer)==null?void 0:e.id}get winid(){var e;return(e=this.window)==null?void 0:e.id}get limitLines(){return this.config.get("limitLines",1/0)}onLineChange(e){this.currIndex!=e&&(this.currIndex=e,this._onDidChangeLine.fire(e))}set index(e){if(e<0||e>=this.items.length)return;let{nvim:t}=this,i=this.indexToLnum(e);t.pauseNotification(),this.setCursor(i),t.command("redraw",!0),t.resumeNotification(!1,!0)}get index(){return this.currIndex}getItem(e){return this.items[e]}get item(){let{window:e}=this;return e?e.cursor.then(t=>(this.currIndex=this.lnumToIndex(t[0]),this.items[this.currIndex])):Promise.resolve(null)}async echoMessage(e){let{items:t}=this,r=`[${t.indexOf(e)+1}/${t.length}] ${e.label||""}`;this.nvim.callTimer("coc#ui#echo_lines",[[r]],!0)}updateItem(e,t,i){if(!this.buffer||t>=this.length)return;let r=this.items[t];if(Object.assign(r,e,{resolved:!0}),!i)return;let{nvim:o}=this,s=this.indexToLnum(t);o.pauseNotification(),this.buffer.setOption("modifiable",!0,!0),o.call("setbufline",[this.bufnr,s,r.label],!0),this.doHighlight(t,t+1),this.buffer.setOption("modifiable",!1,!0),o.resumeNotification(!0,!0)}async getItems(){if(this.length==0||!this.window)return[];let e=await this.nvim.call("mode");if(e=="v"||e=="V"){let[r,o]=await this.getSelectedRange(),s=[];for(let a=r;a<=o;a++){let l=this.lnumToIndex(a),u=this.items[l];u&&s.push(u)}return s}let{selectedItems:t}=this;if(t.length)return t;let i=await this.item;return i==null?[]:[i]}async onMouse(e){let{nvim:t,window:i}=this;if(!i)return;let[r,o,s]=await t.eval("[v:mouse_winid,v:mouse_lnum,v:mouse_col]");if(e=="mouseDown"){this.mouseDown={winid:r,lnum:o,col:s,current:r==i.id};return}let a=r==i.id;if(a&&e=="doubleClick"&&(this.setCursor(o),this._onDoubleClick.fire()),a&&e=="mouseDrag"){if(!this.mouseDown)return;await this.selectLines(this.mouseDown.lnum,o)}else if(a&&e=="mouseUp"){if(!this.mouseDown)return;this.mouseDown.lnum==o?(this.setCursor(o),t.command("redraw",!0)):await this.selectLines(this.mouseDown.lnum,o)}else!a&&e=="mouseUp"&&(t.pauseNotification(),t.call("win_gotoid",r,!0),t.call("cursor",[o,s],!0),t.command("redraw",!0),t.resumeNotification(!1,!0))}async resume(){var r;let{items:e,selected:t,nvim:i}=this;if(await this.drawItems(e,this.height,!0),!(!t.size||!this.buffer)){i.pauseNotification();for(let o of t)(r=this.buffer)==null||r.placeSign({lnum:o,id:this.signOffset+o,name:"CocSelected",group:"coc-list"});i.command("redraw",!0),i.resumeNotification(!1,!0)}}async toggleSelection(){let{nvim:e,reversed:t}=this;await e.call("win_gotoid",[this.winid]);let i=await e.call("line","."),r=await e.call("mode");if(r=="v"||r=="V"){let[o,s]=await this.getSelectedRange();o>s&&([o,s]=[s,o]);for(let l=o;l<=s;l++)this.toggleLine(l);this.setCursor(s),e.command("redraw",!0),await e.resumeNotification();return}e.pauseNotification(),this.toggleLine(i),this.setCursor(t?i-1:i+1),e.command("redraw",!0),await e.resumeNotification()}toggleLine(e){let{selected:t,buffer:i,signOffset:r}=this;t.has(e)?(t.delete(e),i.unplaceSign({id:r+e,group:"coc-list"})):(t.add(e),i.placeSign({lnum:e,id:r+e,name:"CocSelected",group:"coc-list"}))}async selectLines(e,t){let{nvim:i,signOffset:r,buffer:o,length:s}=this;this.clearSelection();let{selected:a}=this;i.pauseNotification(),e>t&&([e,t]=[t,e]);for(let u=e;u<=t&&!(u>s);u++)a.add(u),o.placeSign({lnum:u,id:r+u,name:"CocSelected",group:"coc-list"});this.setCursor(t),i.command("redraw",!0),await i.resumeNotification()}async selectAll(){let{length:e}=this;e>0&&await this.selectLines(1,e)}clearSelection(){let{selected:e,buffer:t}=this;e.size>0&&(t==null||t.unplaceSign({group:"coc-list"}),this.selected.clear())}get ready(){return this.window?Promise.resolve():new Promise(e=>{let t=this.onDidLineChange(()=>{t.dispose(),e()})})}async drawItems(e,t,i=!1){let{nvim:r,name:o,listOptions:s}=this;await this.mutex.use(async()=>{if(this.items=e.length>this.limitLines?e.slice(0,this.limitLines):e,!this.window){let{position:c,numberSelect:h}=s,[d,g,f]=await r.call("coc#list#create",[c,t,o,h]);this.tabnr=f,this.height=t,this.buffer=r.createBuffer(d);let p=this.window=r.createWindow(g),b=this.config.get("statusLineSegments");b&&p.setOption("statusline",b.join(" "),!0),this._onDidOpen.fire(this.bufnr)}let a=[],l=0;this.items.forEach((c,h)=>{a.push(c.label),!i&&l==0&&c.preselect&&(l=h)});let u=i?this.currIndex:l;this.setLines(a,0,u),this._onDidLineChange.fire()})}async appendItems(e){!this.window||e.length===0||await this.mutex.use(async()=>{let t=this.items.length,i=this.limitLines-t;if(i>0){let r=io.label),r.length,this.currIndex)}})}setLines(e,t,i){let{nvim:r,buffer:o,window:s,reversed:a,newTab:l}=this;if(!(!o||!s)){if(r.pauseNotification(),t||(r.call("coc#compat#clear_matches",[s.id],!0),e.length||(e=["No results, press ? on normal mode to get help."],r.call("coc#compat#matchaddpos",["Comment",[[1]],99,s.id],!0))),o.setOption("modifiable",!0,!0),a){let u=e.reverse();t?r.call("coc#compat#prepend_lines",[o.id,u],!0):o.setLines(u,{start:0,end:-1,strictIndexing:!1},!0)}else o.setLines(e,{start:t?-1:0,end:-1,strictIndexing:!1},!0);if(o.setOption("modifiable",!1,!0),a&&!l){let u=this.config.get("height",10);r.call("coc#window#set_height",[s.id,Math.max(Math.min(u,this.length),1)],!0)}if(i>this.items.length-1&&(i=0),i==0)if(t==0)this.doHighlight(0,299);else{let u=this.length-t-1;u<300&&this.doHighlight(u,Math.min(299,this.length-1))}else{let u=l?y.env.lines:this.height;this.doHighlight(Math.max(0,i-u),Math.min(i+u+1,this.length-1))}if(!t){this.currIndex=i;let u=this.indexToLnum(i);s.setCursor([u,0],!0),r.call("coc#list#select",[o.id,u],!0)}a&&r.command("normal! zb",!0),r.command("redraws",!0),r.resumeNotification(!0,!0)}}restoreWindow(){if(this.newTab)return;let{winid:e,height:t}=this;e&&t&&this.nvim.call("coc#window#set_height",[e,t],!0)}get length(){return this.items.length}get selectedItems(){let{selected:e,items:t}=this,i=[];for(let r of e){let o=this.lnumToIndex(r);t[r-1]&&i.push(t[o])}return i}doHighlight(e,t){let{items:i,reversed:r,length:o,buffer:s}=this;if(!s)return;let a=[],l=u=>{let c=this.indexToLnum(u)-1,{ansiHighlights:h,highlights:d}=i[u];if(h)for(let g of h){let{span:f,hlGroup:p}=g;a.push({hlGroup:p,lnum:c,colStart:f[0],colEnd:f[1]})}if(d&&Array.isArray(d.spans)){let{spans:g,hlGroup:f}=d;for(let p of g)f=f!=null?f:"CocListSearch",a.push({hlGroup:f,lnum:c,colStart:p[0],colEnd:p[1]})}};if(r)for(let u=Math.min(t,o-1);u>=e;u--)l(u);else for(let u=e;u<=Math.min(t,o-1);u++)l(u);e=this.indexToLnum(e)-1,t=this.indexToLnum(t)-1,e>t&&([e,t]=[t,e]),a.length!=0&&s.updateHighlights("list",a,{start:e,end:t+1,priority:99})}setCursor(e,t=0){var s;let{items:i}=this,r=i.length==0?1:i.length;if(e>r)return;let o=this.lnumToIndex(e);this.onLineChange(o),(s=this.window)==null||s.setCursor([e,t],!0),this.nvim.call("coc#list#select",[this.bufnr,e],!0)}moveUp(){let{index:e,reversed:t}=this;this.index=t?e+1:e-1}moveDown(){let{index:e,reversed:t}=this;this.index=t?e-1:e+1}async getSelectedRange(){let{nvim:e}=this;await e.call("coc#prompt#stop_prompt",["list"]),await e.eval('feedkeys("\\", "in")');let[,t]=await e.call("getpos","'<"),[,i]=await e.call("getpos","'>");return this.nvim.call("coc#prompt#start_prompt",["list"],!0),[t,i]}reset(){this.window&&(this.window=null,this.buffer=null,this.tabnr=void 0)}dispose(){Z(this.disposables),this.nvim.call("coc#window#close",[this.winid||-1],!0),this.window=null,this.buffer=null,this.items=[],this._onDidChangeLine.dispose(),this._onDidOpen.dispose(),this._onDidClose.dispose(),this._onDidLineChange.dispose(),this._onDoubleClick.dispose()}}});async function Hw(n,e,t,i){if(n.length===0)return;let r=new z6,o=n.length;function s(l){let u=[];r.start();for(let c=l;c{setImmediate(()=>{l(s(a))})})}var K6,z6,V6=_(()=>{K6=15,z6=class{constructor(e=K6){this.yieldAfter=Math.max(e,K6),this.startTime=Date.now(),this.counter=0,this.total=0,this.counterInterval=1}start(){this.startTime=Date.now()}shouldYield(){if(++this.counter>=this.counterInterval){let e=Date.now()-this.startTime,t=Math.max(0,this.yieldAfter-e);if(this.total+=this.counter,this.counter=0,e>=this.yieldAfter||t<=1)return this.counterInterval=1,this.total=0,!0;switch(e){case 0:case 1:this.counterInterval=this.total*2;break}}return!1}}});function l0e(n){return n.toLowerCase()===n}function u0e(n){return n.toUpperCase()===n}function c0e(n){let e=n.length,t=new Array(e),i="/";for(let r=0;r1024)return xh;let r=new Array(t),o=new Array(t);return t4(n,e,r,o),o[t-1][i-1]}function i4(n){let e=[];for(let t=0;t1024)return r;let o=new Array(t),s=new Array(t);t4(n,e,o,s);let a=!1;for(let l=t-1,u=i-1;l>=0;l--)for(;u>=0;u--)if(o[l][u]!==xh&&(a||o[l][u]===s[l][u])){a=l&&u&&s[l][u]===o[l-1][u-1]+e4,r[l]=u--;break}return r}function Sh(n,e){n=n.toLowerCase(),e=e.toLowerCase();let t=n.length;for(let i=0,r=0;i{"use strict";xh=-1/0,e0e=1/0,t0e=-.005,i0e=-.005,n0e=-.01,e4=1,r0e=.9,o0e=.8,s0e=.7,a0e=.6});function n4(n,e,t=""){if(!n)return{score:0};if(!e)return{score:1};let i=[],r=xn(e),o=t?n.indexOf(t):-1,s=o!=-1&&bo(r,t),a=0,l=e[0],u=0,c=n[0];if(s){if(t.startsWith(l))a=a+2,u=o+1,i.push(o);else if(t[0].toLowerCase()==l)a=a+1.5,u=o+1,i.push(o);else for(let h=1;he.score&&(e=n[t]);return e}var P_,o4=_(()=>{"use strict";P_=require("path");us()});function qw(n){return n.filterText!=null?FY(n.filterText,n.label):n.label}function g0e(n){let e=[],t=0,i=0,r="";for(;io.replace(/\\\s/g," ").trim()).filter(o=>o.length>0)}function a4(n,e){let t=[];if(e&&e.length){let i=e.shift(),r=e.shift(),o=i;for(;r;){if(r==o+1){o=r,r=e.shift();continue}t.push([Ze(n,i),Ze(n,o)+1]),i=r,o=i,r=e.shift()}t.push([Ze(n,i),Ze(n,o)+1])}return{spans:t}}function __(n,e){let t=qw(e),i=n4(t,n);return i!=null&&i.score?a4(t,i.matches):{spans:[]}}var Ra,s4,d0e,Yw,l4=_(()=>{"use strict";Ra=C(H());bc();V6();$T();Uf();no();o4();Pe();s4=q()("list-worker"),d0e="\x1B",Yw=class{constructor(e,t,i,r,o){this.nvim=e;this.list=t;this.prompt=i;this.listOptions=r;this.config=o;this._loading=!1;this._finished=!1;this.mutex=new ei;this.totalItems=[];this._onDidChangeItems=new Ra.Emitter;this._onDidChangeLoading=new Ra.Emitter;this.onDidChangeItems=this._onDidChangeItems.event;this.onDidChangeLoading=this._onDidChangeLoading.event}set loading(e){this._loading!=e&&(this._loading=e,this._onDidChangeLoading.fire(e))}get isLoading(){return this._loading}async loadItems(e,t=!1){this.cancelFilter(),this.filteredCount=0,this._finished=!1;let{list:i,listOptions:r}=this;this.loading=!0;let{interactive:o}=r;this.tokenSource=new Ra.CancellationTokenSource;let s=this.tokenSource.token,a=await i.loadItems(e,s);if(!s.isCancellationRequested)if(a=a!=null?a:[],Array.isArray(a)){this.tokenSource=null,this.totalItems=a,this.loading=!1,this._finished=!0;let l;if(o)l=this.convertToHighlightItems(a),this._onDidChangeItems.fire({items:l,reload:t,finished:!0});else{let u=this.filterTokenSource=new Ra.CancellationTokenSource;await this.mutex.use(async()=>{let c=u.token;c.isCancellationRequested||await this.filterItems(a,{reload:t},c)})}}else{let l=a,u=this.totalItems=[],c=0,h=e.input,d=!1;this.filterTokenSource=new Ra.CancellationTokenSource;let g=async w=>{d=!0,await this.mutex.use(async()=>{var L;if(this.input!=h&&(h=this.input,c=(L=this.filteredCount)!=null?L:0),c>=u.length)return;let S=c>0,F=u.slice(c);if(c=u.length,o){let j=this.convertToHighlightItems(F);this._onDidChangeItems.fire({items:j,append:S,reload:t,finished:w})}else{let j=this.filterTokenSource;j&&!j.token.isCancellationRequested&&await this.filterItems(F,{append:S,reload:t},j.token)}}),d=!1},f=Promise.resolve(),p=setInterval(()=>{d||(f=g())},50);l.on("data",w=>{s.isCancellationRequested||u.push(w)});let b=()=>{l!=null&&(this.tokenSource=null,l=null,this.loading=!1,this._finished=!0,v.dispose(),clearInterval(p),f.then(()=>{if(!s.isCancellationRequested){if(u.length==0){this._onDidChangeItems.fire({items:[],append:!1,reload:t,finished:!0});return}return g(!0)}}).catch(w=>{s4.error("Error on filter",w)}))},v=s.onCancellationRequested(()=>{l==null||l.dispose(),b()});l.on("error",async w=>{l!=null&&(l=null,this.tokenSource=null,this.loading=!1,v.dispose(),clearInterval(p),this.nvim.call("coc#prompt#stop_prompt",["list"],!0),this.nvim.echoError(`Task error: ${w.toString()}`),s4.error("Task error:",w))}),l.on("end",b)}}async drawItems(){let{totalItems:e}=this;if(e.length===0)return;this.cancelFilter();let t=this.filterTokenSource=new Ra.CancellationTokenSource,i=t.token;await this.mutex.use(async()=>{if(i.isCancellationRequested)return;let{totalItems:r}=this;this.filteredCount=r.length,await this.filterItems(r,{},t.token)})}cancelFilter(){this.filterTokenSource&&(this.filterTokenSource.cancel(),this.filterTokenSource=null)}stop(){this.cancelFilter(),this.tokenSource&&(this.tokenSource.cancel(),this.tokenSource=null),this.loading=!1}get length(){return this.totalItems.length}get input(){return this.prompt.input}convertToHighlightItems(e){var r;let t=(r=this.input)!=null?r:"";return e.map(o=>{this.convertItemLabel(o);let s=t.length>0?__(t,o):void 0;return Object.assign({},o,{highlights:s})})}async filterItemsByInclude(e,t,i,r){let{ignorecase:o}=this.listOptions;o&&(e=e.map(s=>s.toLowerCase())),await Hw(t,s=>{this.convertItemLabel(s);let a=[],l=qw(s),u=!0;for(let c of e){let h=o?l.toLowerCase().indexOf(c):l.indexOf(c);if(h==-1){u=!1;break}a.push([Ze(l,h),Ze(l,h+Q(c))])}return u?{highlights:{spans:a}}:!1},r,i)}async filterItemsByRegex(e,t,i,r){let{ignorecase:o}=this.listOptions,s=o?"iu":"u",a=e.reduce((l,u)=>{try{l.push(new RegExp(u,s))}catch{}return l},[]);await Hw(t,l=>{this.convertItemLabel(l);let u=[],c=qw(l),h=!0;for(let d of a){let g=c.match(d);if(g==null){h=!1;break}u.push([Ze(c,g.index),Ze(c,g.index+Q(g[0]))])}return h?{highlights:{spans:u}}:!1},r,i)}async filterItemsByFuzzyMatch(e,t,i,r){let{sort:o}=this.listOptions,s=0;await Hw(t,a=>{this.convertItemLabel(a);let l=a.filterText||a.label,u=0,c=[],h=qw(a),d=!0;for(let g of e){if(!Sh(g,l)){d=!1;break}c.push(...Vl(g,h)),o&&(u+=Ch(g,l))}return s=s+1,d?{sortText:typeof a.sortText=="string"?a.sortText:String.fromCharCode(s),score:u,highlights:a4(h,c)}:!1},(a,l)=>{r(a,l,o)},i)}async filterItems(e,t,i){let{input:r}=this;if(r.length===0){let l=e.map(u=>this.convertItemLabel(u));this._onDidChangeItems.fire(ge({items:l,finished:this._finished},t));return}let o=this.config.extendedSearchMode?g0e(r):[r],s=!1,a=(l,u,c)=>{if(u=u&&this._finished,i.isCancellationRequested||!u&&l.length==0)return;c&&l.sort((d,g)=>d.score!=g.score?g.score-d.score:d.sortText>g.sortText?1:-1);let h=t.append===!0||s;s=!0,this._onDidChangeItems.fire({items:l,append:h,reload:t.reload,finished:u})};switch(this.listOptions.matcher){case"strict":await this.filterItemsByInclude(o,e,i,a);break;case"regex":await this.filterItemsByRegex(o,e,i,a);break;default:await this.filterItemsByFuzzyMatch(o,e,i,a)}}convertItemLabel(e){let{label:t,converted:i}=e;if(i)return e;if(t.includes(` -`)&&(t=e.label=t.replace(/\r?\n/g," ")),t.includes(d0e)){let{line:r,highlights:o}=mc(t);e.label=r,Array.isArray(e.ansiHighlights)||(e.ansiHighlights=o)}return e.converted=!0,e}dispose(){this.stop()}}});var R_,u4,f0e,LXe,Ww,c4=_(()=>{"use strict";R_=C(Ei()),u4=C(H());yo();oa();z();ke();V();U6();Q6();l4();f0e=["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"],LXe=q()("list-session"),Ww=class{constructor(e,t,i,r,o=[],s){this.nvim=e;this.prompt=t;this.list=i;this.listOptions=r;this.listArgs=o;this.config=s;this.loadingFrame="";this.hidden=!1;this.disposables=[];this.args=[];this.ui=new Bw(e,i.name,r,s),this.history=new Nw(t,i.name),this.worker=new Yw(e,i,t,r,{interactiveDebounceTime:s.get("interactiveDebounceTime",100),extendedSearchMode:s.get("extendedSearchMode",!0)}),this.interactiveDebounceTime=s.get("interactiveDebounceTime",100);let a=(0,R_.default)(async()=>{let[d,g,f]=await e.eval('[coc#list#has_preview(),win_getid(),line(".")]');if(d&&g==this.winid){let p=this.ui.lnumToIndex(f);await this.doPreview(p)}},50);this.disposables.push({dispose:()=>{a.clear()}}),this.ui.onDidChangeLine(a,null,this.disposables),this.ui.onDidChangeLine(this.resolveItem,this,this.disposables),this.ui.onDidLineChange(this.resolveItem,this,this.disposables);let l=(0,R_.default)(async()=>{this.updateStatus();let{autoPreview:d}=this.listOptions;if(!d){let[g,f]=await e.eval("[coc#list#has_preview(),mode()]");if(!g||f!="n")return}await this.doAction("preview")},50);this.disposables.push({dispose:()=>{l.clear()}}),this.ui.onDidLineChange(l,null,this.disposables),this.ui.onDidOpen(async()=>{typeof this.list.doHighlight=="function"&&this.list.doHighlight(),y.isVim&&this.prompt.drawPrompt(),this.listOptions.first&&await this.doAction()},null,this.disposables),this.ui.onDidClose(async()=>{await this.hide()},null,this.disposables),this.ui.onDidDoubleClick(async()=>{await this.doAction()},null,this.disposables),this.worker.onDidChangeItems(async({items:d,reload:g,append:f,finished:p})=>{if(!this.hidden)if(f)await this.ui.appendItems(d);else{let b=this.config.get("height",10);p&&!r.interactive&&r.input.length==0&&(b=Math.min(d.length,b)),await this.ui.drawItems(d,Math.max(1,b),g)}},null,this.disposables);let u=0,c,h;this.disposables.push(u4.Disposable.create(()=>{c&&clearTimeout(c),h&&clearInterval(h)})),this.worker.onDidChangeLoading(d=>{this.hidden||(c&&clearTimeout(c),d?(u=Date.now(),h=setInterval(()=>{let g=Math.floor((Date.now()-u)%1e3/100);this.loadingFrame=f0e[g],this.updateStatus()},100)):c=setTimeout(()=>{this.loadingFrame="",h&&clearInterval(h),h=null,this.updateStatus()},Math.max(0,200-(Date.now()-u))))},null,this.disposables)}async start(e){this.args=e,this.cwd=y.cwd,this.hidden=!1;let{listOptions:t,listArgs:i}=this,r=await this.nvim.eval('[win_getid(),bufnr("%"),winheight("%")]');this.listArgs=i,this.history.load(t.input||""),this.window=this.nvim.createWindow(r[0]),this.buffer=this.nvim.createBuffer(r[1]),this.savedHeight=r[2],await this.worker.loadItems(this.context)}async reloadItems(){!this.ui.winid||await this.worker.loadItems(this.context,!0)}async call(e){var o,s;await this.nvim.call("coc#prompt#stop_prompt",["list"]);let t=await this.ui.getItems(),i={name:this.name,args:this.listArgs,input:this.prompt.input,winid:(o=this.window)==null?void 0:o.id,bufnr:(s=this.buffer)==null?void 0:s.id,targets:t},r=await this.nvim.call(e,[i]);return this.prompt.start(),r}async chooseAction(){let{nvim:e,defaultAction:t}=this,{actions:i}=this.list,r=i.map(h=>h.name),o=r.indexOf(t.name);o!=-1&&(r.splice(o,1),r.unshift(t.name));let s=new Set,a=[],l=[],u=y.env.dialog&&this.config.get("menuAction",!1);for(let h of r){let d=0;for(let g of h){if(!s.has(g)){s.add(g),a.push(`${h.slice(0,d)}&${h.slice(d)}`);break}d++}d==h.length&&l.push(h)}l.length&&!u&&(r=r.filter(h=>!l.includes(h)));let c;u?(e.call("coc#prompt#stop_prompt",["list"],!0),c=await k.showMenuPicker(r,{title:"Choose action",shortcuts:!0}),c=c+1,y.isVim&&await bt(10),this.prompt.start()):(await e.call("coc#prompt#stop_prompt",["list"]),c=await e.call("confirm",["Choose action:",a.join(` -`)]),await bt(10),this.prompt.start()),c&&await this.doAction(r[c-1])}async doAction(e){let{list:t}=this,i;if(e!=null){if(i=t.actions.find(o=>o.name==e),!i){k.showErrorMessage(`Action ${e} not found`);return}}else i=this.defaultAction;let r;if(e=="preview"){let o=await this.ui.item;r=o?[o]:[]}else r=await this.ui.getItems();r.length&&await this.doItemAction(r,i)}async doPreview(e){let t=this.ui.getItem(e),i=this.list.actions.find(r=>r.name=="preview");!t||!i||await this.doItemAction([t],i)}async first(){await this.doDefaultAction(0)}async last(){await this.doDefaultAction(this.ui.length-1)}async previous(){await this.doDefaultAction(this.ui.index-1)}async next(){await this.doDefaultAction(this.ui.index+1)}async doDefaultAction(e){let{ui:t}=this,i=t.getItem(e);!i||(t.index=e,await this.doItemAction([i],this.defaultAction),await t.echoMessage(i))}get name(){return this.list.name}get winid(){return this.ui.winid}get length(){return this.ui.length}get defaultAction(){let{defaultAction:e,actions:t,name:i}=this.list,r=y.getConfiguration(`list.source.${i}`),o;if(r.defaultAction&&(o=t.find(s=>s.name==r.defaultAction)),o||(o=t.find(s=>s.name==e)),o||(o=t[0]),!o)throw new Error(`default action "${e}" not found`);return o}async hide(e=!1){if(this.hidden)return;let{nvim:t,timer:i,window:r}=this,{winid:o,tabnr:s}=this.ui;i&&clearTimeout(i),this.worker.stop(),this.history.add(),this.ui.reset(),this.hidden=!0;let{isVim:a}=y;if(t.pauseNotification(),a||t.call("coc#prompt#stop_prompt",["list"],!0),s&&t.call("coc#list#close_preview",[s],!0),r&&t.call("win_gotoid",[r.id],!0),o&&t.call("coc#window#close",[o],!0),r&&this.savedHeight&&this.listOptions.position!=="tab"&&t.call("coc#window#set_height",[r.id,this.savedHeight],!0),e)return t.resumeNotification(!1,!0);await t.resumeNotification(!1),a&&(await bt(10),t.call("feedkeys",["\x1B","int"],!0),t.command("redraw",!0))}toggleMode(){let e=this.prompt.mode=="normal"?"insert":"normal";this.prompt.mode=e,this.listOptions.mode=e,this.updateStatus()}stop(){this.worker.stop()}async resolveItem(){let e=this.ui.index,t=this.ui.getItem(e);if(!t||t.resolved)return;let{list:i}=this;if(typeof i.resolveItem=="function"){let r=t.label,o=await Promise.resolve(i.resolveItem(t));if(o&&e==this.ui.index){let s=__(this.prompt.input,o);this.ui.updateItem(Object.assign({highlights:s},o),e,r!=o.label)}}}async showHelp(){await this.hide();let{list:e,nvim:t}=this;if(!e)return;t.pauseNotification(),t.command("tabe +setl\\ previewwindow [LIST HELP]",!0),t.command("setl nobuflisted noswapfile buftype=nofile bufhidden=wipe",!0),await t.resumeNotification();let i=e.options&&e.options.length,r=await t.buffer,o=new Ri;if(o.addLine("NAME","Label"),o.addLine(` ${e.name} - ${e.description||""} +`)}},TR=class{constructor(e,t){this._client=e;this._setting=t;this._listeners=[]}start(){return v.onDidChangeConfiguration(e=>{e.affectsConfiguration(this._setting)&&this.onDidChangeConfiguration()},null,this._listeners),this.onDidChangeConfiguration(),{dispose:()=>{$(this._listeners),this._client.needsStop()&&this._client.stop()}}}onDidChangeConfiguration(){let e=this._setting.indexOf("."),t=e>=0?this._setting.substr(0,e):this._setting,i=e>=0?this._setting.substr(e+1):void 0,r=i?v.getConfiguration(t).get(i,!0):v.getConfiguration(t);r&&this._client.needsStart()?this._client.start():!r&&this._client.needsStop()&&this._client.stop()}},ETe={createAll:n=>[]}});function PTe(n){switch(n){case 0:return"init";case 3:return"running";case 1:return"starting";case 2:return"startFailed";case 4:return"stopping";case 5:return"stopped";default:return"unknown"}}function _Te(n){let e=n.map(t=>typeof t=="string"?t:t.language);return e=e.filter(t=>typeof t=="string"),Array.from(new Set(e))}function RTe(n,e,t){let{command:i,module:r,port:o,args:s,filetypes:a}=t;if(s=s||[],!a)return k.showMessage(`Wrong configuration of LS "${e}", filetypes not found`,"error"),null;if(!i&&!r&&!o)return k.showMessage(`Wrong configuration of LS "${e}", no command or module specified.`,"error"),null;let l;if(r){if(r=v.expand(r),!dK.default.existsSync(r))return k.showMessage(`Module file "${r}" not found for LS "${e}"`,"error"),null;l={module:r,runtime:t.runtime||process.execPath,args:s,transport:FTe(t),options:ITe(t)}}else i?l={command:i,args:s,options:jTe(t)}:o&&(l=()=>new Promise((g,p)=>{let f=new gK.default.Socket,m=t.host||"127.0.0.1";hu.info(`languageserver "${n}" connecting to ${m}:${o}`),f.connect(o,m,()=>{g({reader:f,writer:f})}),f.on("error",b=>{p(new Error(`Connection error for ${n}: ${b.message}`))})}));let u=Array.from(t.disabledFeatures||[]);for(let g of["disableWorkspaceFolders","disableCompletion","disableDiagnostics"])if(t[g]===!0){let p=g.slice(7);u.push(p[0].toLowerCase()+p.slice(1))}let c=!!t.disableSnippetCompletion;return[{ignoredRootPaths:(t.ignoredRootPaths||[]).map(g=>v.expand(g)),disableSnippetCompletion:c,disableDynamicRegister:!!t.disableDynamicRegister,disabledFeatures:u,formatterPriority:t.formatterPriority||0,documentSelector:fK(t.filetypes,t.additionalSchemes),revealOutputChannelOn:LTe(t.revealOutputChannelOn),synchronize:{configurationSection:`${n}.settings`},diagnosticCollectionName:e,outputChannelName:n,stdioEncoding:t.stdioEncoding||"utf8",progressOnInitialization:t.progressOnInitialization===!0,initializationOptions:t.initializationOptions||{}},l]}function LTe(n){switch(n){case"info":return 1;case"warn":return 2;case"error":return 3;case"never":return 4;default:return 4}}function fK(n,e){let t=[],i=["file","untitled"].concat(e||[]);return n?(n.forEach(r=>{t.push(...i.map(o=>({language:r,scheme:o})))}),t):i.map(r=>({scheme:r}))}function FTe(n){let{transport:e,transportPort:t}=n;return!e||e=="ipc"?1:e=="stdio"?0:e=="pipe"?2:{kind:3,port:t}}function ITe(n){return{cwd:n.cwd,execArgv:n.execArgv||[],env:n.env||void 0}}function jTe(n){return{cwd:n.cwd,detached:!!n.detached,shell:!!n.shell,env:n.env||void 0}}function cK(n){switch(n){case 2:return"running";case 3:return"starting";case 1:return"stopped";default:return"unknown"}}var hK,dK,gK,Ih,hu,pK,Ui,pf=_(()=>{"use strict";hK=require("events"),dK=x(require("fs")),gK=x(require("net")),Ih=x(q());kR();$r();re();Ae();ne();hu=W()("services");pK=class extends hK.EventEmitter{constructor(){super(...arguments);this.registered=new Map;this.disposables=[]}init(){v.onDidOpenTextDocument(e=>{this.start(e)},null,this.disposables),v.onDidChangeConfiguration(e=>{e.affectsConfiguration("languageserver")&&this.createCustomServices()},null,this.disposables),this.createCustomServices()}dispose(){this.removeAllListeners(),$(this.disposables);for(let e of this.registered.values())e.dispose()}regist(e){let{id:t}=e;if(t||hu.error("invalid service configuration. ",e.name),!this.registered.get(t))return this.registered.set(t,e),hu.info(`registered service "${t}"`),this.shouldStart(e)&&e.start(),e.state==3&&this.emit("ready",t),e.onServiceReady(()=>{hu.info(`service ${t} started`),this.emit("ready",t)},null,this.disposables),Ih.Disposable.create(()=>{e.stop(),e.dispose(),this.registered.delete(t)})}getService(e){let t=this.registered.get(e);return t||(t=this.registered.get(`languageserver.${e}`)),t}shouldStart(e){if(e.state!=0)return!1;let t=e.selector;for(let i of v.documents)if(v.match(t,i.textDocument))return!0;return!1}start(e){let t=this.getServices(e);for(let i of t)i.state==0&&i.start()}getServices(e){let t=[];for(let i of this.registered.values())v.match(i.selector,e)>0&&t.push(i);return t}stop(e){let t=this.registered.get(e);if(!t){k.showMessage(`Service ${e} not found`,"error");return}return Promise.resolve(t.stop())}stopAll(){for(let e of this.registered.values())e.stop()}async toggle(e){let t=this.registered.get(e);if(!t){k.showMessage(`Service ${e} not found`,"error");return}let{state:i}=t;try{i==3?await Promise.resolve(t.stop()):i==0?await t.start():i==5&&await t.restart()}catch(r){k.showMessage(`Service error: ${r}`,"error")}}getServiceStats(){let e=[];for(let[t,i]of this.registered)e.push({id:t,languageIds:_Te(i.selector),state:PTe(i.state)});return e}createCustomServices(){let e=v.getConfiguration().get("languageserver",{});for(let t of Object.keys(e)){let i=e[t];!this.validServerConfig(t,i)||this.registLanguageClient(t,i)}}validServerConfig(e,t){let i=[];return t.module!=null&&typeof t.module!="string"&&i.push(`"module" field of languageserver ${e} should be string`),t.command!=null&&typeof t.command!="string"&&i.push(`"command" field of languageserver ${e} should be string`),t.transport!=null&&typeof t.transport!="string"&&i.push(`"transport" field of languageserver ${e} should be string`),t.transportPort!=null&&typeof t.transportPort!="number"&&i.push(`"transportPort" field of languageserver ${e} should be string`),(!Array.isArray(t.filetypes)||!t.filetypes.every(r=>typeof r=="string"))&&i.push(`"filetypes" field of languageserver ${e} should be array of string`),t.additionalSchemes&&(!Array.isArray(t.additionalSchemes)||t.additionalSchemes.some(r=>typeof r!="string"))&&i.push(`"additionalSchemes" field of languageserver ${e} should be array of string`),i.length?(k.showMessage(i.join(` +`),"error"),!1):!0}waitClient(e){let t=this.getService(e);return t&&t.state==3?Promise.resolve():t?new Promise(i=>{t.onServiceReady(()=>{i()})}):new Promise(i=>{let r=o=>{(o==e||o==`languageserver.${e}`)&&(this.off("ready",r),i())};this.on("ready",r)})}async registNotification(e,t){await this.waitClient(e);let i=this.getService(e);if(!i.client){k.showMessage(`Not a language client: ${e}`,"error");return}i.client.onNotification(t,async o=>{v.nvim.call("coc#do_notify",[e,t,o],!0)})}async sendNotification(e,t,i){if(!t)throw new Error("method required for ontification");let r=this.getService(e);if(!r||!r.client)throw new Error(`Language server ${e} not found`);if(r.state==1&&await r.client.onReady(),r.state!=3)throw new Error(`Language server ${e} not running`);await Promise.resolve(r.client.sendNotification(t,i))}async sendRequest(e,t,i,r){if(!t)throw new Error("method required for sendRequest");let o=this.getService(e);if(o||await Pt(100),o=this.getService(e),!o||!o.client)throw new Error(`Language server ${e} not found`);if(o.state==1&&await o.client.onReady(),o.state!=3)throw new Error(`Language server ${e} not running`);return r||(r=new Ih.CancellationTokenSource().token),await Promise.resolve(o.client.sendRequest(t,i,r))}registLanguageClient(e,t){let i=typeof e=="string"?`languageserver.${e}`:e.id,r=[],o=new Ih.Emitter,s=typeof e=="string"?null:e;if(this.registered.has(i))return;let a=!1,l={id:i,client:s,name:typeof e=="string"?e:e.name,selector:typeof e=="string"?fK(t.filetypes,t.additionalSchemes):e.clientOptions.documentSelector,state:0,onServiceReady:o.event,start:()=>{if(l.state==1||l.state==3||s&&!s.needsStart())return;if(a&&s)return s.restart(),Promise.resolve();if(!a){if(typeof e=="string"&&!s){let c=v.getConfiguration().get("languageserver",{})[e];if(!c||c.enable===!1)return;let h=RTe(i,e,c);if(!h)return;s=new gf(i,e,h[1],h[0]),l.selector=h[0].documentSelector,l.client=s}s.onDidChangeState(c=>{let{oldState:h,newState:d}=c;d==3?l.state=1:d==2?l.state=3:d==1&&(l.state=5);let g=cK(h),p=cK(d);hu.info(`${s.name} state change: ${g} => ${p}`)},null,r),a=!0}l.state=1,hu.debug(`starting service: ${i}`);let u=s.start();return r.push(u),new Promise(c=>{s.onReady().then(()=>{o.fire(void 0),c()},h=>{k.showMessage(`Server ${i} failed to start: ${h}`,"error"),hu.error(`Server ${i} failed to start:`,h),l.state=2,c()})})},dispose:async()=>{o.dispose(),$(r)},stop:async()=>{!s||!s.needsStop()||await Promise.resolve(s.stop())},restart:async()=>{s?(l.state=1,s.restart()):await l.start()}};return this.regist(l)}};Ui=new pK});var mK,du,jh,dD=_(()=>{"use strict";ne();Ae();mK=require("events"),du=["","","","","","","","","","","","","","","","","","","","<2-LeftMouse>","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""],jh=class extends mK.EventEmitter{constructor(){super();this.configuration=v.getConfiguration("list"),this.disposable=v.onDidChangeConfiguration(e=>{e.affectsConfiguration("list")&&(this.configuration=v.getConfiguration("list"),this.emit("change"))})}get(e,t){return this.configuration.get(e,t)}get previousKey(){return this.fixKey(this.configuration.get("previousKeymap",""))}get nextKey(){return this.fixKey(this.configuration.get("nextKeymap",""))}dispose(){this.disposable.dispose(),this.removeAllListeners()}fixKey(e){if(du.includes(e))return e;let t=du.find(i=>i.toLowerCase()==e.toLowerCase());return t||(k.showMessage(`Configured key "${e}" not supported.`,"error"),null)}}});var i6e,gD,yK=_(()=>{"use strict";Ae();dD();i6e=W()("list-mappings"),gD=class{constructor(e,t,i){this.manager=e;this.nvim=t;this.config=i;this.insertMappings=new Map;this.normalMappings=new Map;this.userInsertMappings=new Map;this.userNormalMappings=new Map;this.actions=new Map;let{prompt:r}=e;this.addAction("do:switch",async()=>{await e.switchMatcher()}),this.addAction("do:selectall",async()=>{var o;await((o=e.session)==null?void 0:o.ui.selectAll())}),this.addAction("do:help",async()=>{var o;await((o=e.session)==null?void 0:o.showHelp())}),this.addAction("do:refresh",async()=>{var o;await((o=e.session)==null?void 0:o.reloadItems())}),this.addAction("do:exit",async()=>{await e.cancel()}),this.addAction("do:stop",()=>{e.stop()}),this.addAction("do:cancel",async()=>{await e.cancel(!1)}),this.addAction("do:toggle",async()=>{var o;await((o=e.session)==null?void 0:o.ui.toggleSelection())}),this.addAction("do:jumpback",()=>{var o;(o=e.session)==null||o.jumpBack()}),this.addAction("do:previous",async()=>{await e.normal("k")}),this.addAction("do:next",async()=>{await e.normal("j")}),this.addAction("do:defaultaction",async()=>{await e.doAction()}),this.addAction("do:chooseaction",async()=>{await e.chooseAction()}),this.addAction("do:togglemode",()=>{e.toggleMode()}),this.addAction("do:previewtoggle",async()=>{await e.togglePreview()}),this.addAction("do:previewup",()=>{this.scrollPreview("up")}),this.addAction("do:previewdown",()=>{this.scrollPreview("down")}),this.addAction("do:command",async()=>{await e.cancel(!1),await t.eval('feedkeys(":")')}),this.addAction("prompt:previous",()=>{var o;(o=e.session)==null||o.history.previous()}),this.addAction("prompt:next",()=>{var o;(o=e.session)==null||o.history.next()}),this.addAction("prompt:start",()=>{r.moveToStart()}),this.addAction("prompt:end",()=>{r.moveToEnd()}),this.addAction("prompt:left",()=>{r.moveLeft()}),this.addAction("prompt:right",()=>{r.moveRight()}),this.addAction("prompt:deleteforward",()=>{r.onBackspace()}),this.addAction("prompt:deletebackward",()=>{r.removeNext()}),this.addAction("prompt:removetail",()=>{r.removeTail()}),this.addAction("prompt:removeahead",()=>{r.removeAhead()}),this.addAction("prompt:removeword",()=>{r.removeWord()}),this.addAction("prompt:insertregister",()=>{r.insertRegister()}),this.addAction("prompt:paste",async()=>{await r.paste()}),this.addAction("eval",async o=>{await r.eval(o)}),this.addAction("command",async o=>{await e.command(o)}),this.addAction("action",async o=>{await e.doAction(o)}),this.addAction("feedkeys",async o=>{await e.feedkeys(o)}),this.addAction("normal",async o=>{await e.normal(o,!1)}),this.addAction("normal!",async o=>{await e.normal(o,!0)}),this.addAction("call",async o=>{await e.call(o)}),this.addAction("expr",async o=>{let s=await e.call(o);s&&await e.doAction(s)}),this.addKeyMapping("insert","","do:switch"),this.addKeyMapping("insert","","prompt:next"),this.addKeyMapping("insert","","prompt:previous"),this.addKeyMapping("insert","","prompt:paste"),this.addKeyMapping("insert",["",""],"do:defaultaction"),this.addKeyMapping("insert",["",""," "],"do:chooseaction"),this.addKeyMapping("insert","","do:togglemode"),this.addKeyMapping("insert","","do:stop"),this.addKeyMapping("insert","","do:refresh"),this.addKeyMapping("insert","","prompt:left"),this.addKeyMapping("insert","","prompt:right"),this.addKeyMapping("insert",["",""],"prompt:end"),this.addKeyMapping("insert",["",""],"prompt:start"),this.addKeyMapping("insert",["","",""],"prompt:deleteforward"),this.addKeyMapping("insert","","prompt:removeword"),this.addKeyMapping("insert","","prompt:removeahead"),this.addKeyMapping("insert","","prompt:insertregister"),this.addKeyMapping("normal","t","action:tabe"),this.addKeyMapping("normal","s","action:split"),this.addKeyMapping("normal","d","action:drop"),this.addKeyMapping("normal",["","","\r"],"do:defaultaction"),this.addKeyMapping("normal","","do:selectall"),this.addKeyMapping("normal"," ","do:toggle"),this.addKeyMapping("normal","p","do:previewtoggle"),this.addKeyMapping("normal",[""," ",""],"do:chooseaction"),this.addKeyMapping("normal","","do:stop"),this.addKeyMapping("normal","","do:refresh"),this.addKeyMapping("normal","","do:jumpback"),this.addKeyMapping("normal","","do:previewdown"),this.addKeyMapping("normal","","do:previewup"),this.addKeyMapping("normal",["i","I","o","O","a","A"],"do:togglemode"),this.addKeyMapping("normal","?","do:help"),this.addKeyMapping("normal",":","do:command"),this.createMappings(),i.on("change",()=>{this.createMappings()})}createMappings(){let e=this.config.get("insertMappings",{});this.userInsertMappings=this.fixUserMappings(e,"list.insertMappings");let t=this.config.get("normalMappings",{});this.userNormalMappings=this.fixUserMappings(t,"list.normalMappings")}hasUserMapping(e,t){return(e=="insert"?this.userInsertMappings:this.userNormalMappings).has(t)}isValidAction(e){if(this.actions.has(e))return!0;let[t,i]=e.split(":",2);return!(!i||!this.actions.has(t))}fixUserMappings(e,t){let i=new Map;for(let[r,o]of Object.entries(e)){if(!this.isValidAction(o)){k.showMessage(`Invalid configuration - unable to support action "${o}" in "${t}"`,"warning");continue}if(r.length==1)i.set(r,o);else if(r.startsWith("<")&&r.endsWith(">"))if(r.toLowerCase()=="")i.set(" ",o);else if(r.toLowerCase()=="")i.set("",o);else if(du.includes(r))i.set(r,o);else{let s=!1;for(let a=0;athis.doAction(e);let[t,i]=e.split(":",2);if(!i||!this.actions.has(t))throw new Error(`Invalid action ${e}`);return()=>this.doAction(t,i)}async doAction(e,t){let i=this.actions.get(e);if(!i)throw new Error(`Action ${e} doesn't exist`);await Promise.resolve(i(t))}scrollPreview(e){let{nvim:t}=this;t.pauseNotification(),t.call("coc#list#scroll_preview",[e],!0),t.command("redraw",!0),t.resumeNotification(!1,!0)}}});var bK,o6e,pD,vK=_(()=>{"use strict";bK=x(q()),o6e=W()("list-prompt"),pD=class{constructor(e,t){this.nvim=e;this.config=t;this.cusorIndex=0;this._input="";this._mode="insert";this.interactive=!1;this.requestInput=!1;this._onDidChangeInput=new bK.Emitter;this.onDidChangeInput=this._onDidChangeInput.event}get input(){return this._input}set input(e){this._input!=e&&(this.cusorIndex=e.length,this._input=e,this.drawPrompt(),this._onDidChangeInput.fire(this._input))}get mode(){return this._mode}set mode(e){e!=this._mode&&(this._mode=e,this.drawPrompt())}set matcher(e){this._matcher=e,this.drawPrompt()}start(e){e&&(this.interactive=e.interactive,this.cusorIndex=e.input.length,this._input=e.input,this._mode=e.mode,this._matcher=e.interactive?"":e.matcher),this.nvim.call("coc#prompt#start_prompt",["list"],!0),this.drawPrompt()}cancel(){let{nvim:e}=this;e.call("coc#prompt#stop_prompt",["list"],!0)}reset(){this._input="",this.cusorIndex=0}drawPrompt(){let e=this.config.get("indicator",">"),{cusorIndex:t,interactive:i,input:r,_matcher:o}=this,s=['echo ""'];if(this.mode=="insert")if(i?s.push("echohl MoreMsg | echon 'INTERACTIVE ' | echohl None"):o&&s.push(`echohl MoreMsg | echon '${o.toUpperCase()} ' | echohl None`),s.push(`echohl Special | echon '${e} ' | echohl None`),t==r.length)s.push(`echon '${r.replace(/'/g,"''")}'`),s.push("echohl Cursor | echon ' ' | echohl None");else{let l=r.slice(0,t);l&&s.push(`echon '${l.replace(/'/g,"''")}'`),s.push(`echohl Cursor | echon '${r[t].replace(/'/,"''")}' | echohl None`);let u=r.slice(t+1);s.push(`echon '${u.replace(/'/g,"''")}'`)}else s.push('echohl MoreMsg | echo "" | echohl None');s.push("redraw");let a=s.join("|");this.nvim.command(a,!0)}moveLeft(){this.cusorIndex!=0&&(this.cusorIndex=this.cusorIndex-1,this.drawPrompt())}moveRight(){this.cusorIndex!=this._input.length&&(this.cusorIndex=this.cusorIndex+1,this.drawPrompt())}moveToEnd(){this.cusorIndex!=this._input.length&&(this.cusorIndex=this._input.length,this.drawPrompt())}moveToStart(){this.cusorIndex!=0&&(this.cusorIndex=0,this.drawPrompt())}onBackspace(){let{cusorIndex:e,input:t}=this;if(e==0)return;let i=t.slice(0,e),r=t.slice(e);this.cusorIndex=e-1,this._input=`${i.slice(0,i.length-1)}${r}`,this.drawPrompt(),this._onDidChangeInput.fire(this._input)}removeNext(){let{cusorIndex:e,input:t}=this;if(e==t.length-1)return;let i=t.slice(0,e),r=t.slice(e+1);this._input=`${i}${r}`,this.drawPrompt(),this._onDidChangeInput.fire(this._input)}removeWord(){let{cusorIndex:e,input:t}=this;if(e==0)return;let i=t.slice(0,e),r=t.slice(e),o=i.replace(/[\w$]+([^\w$]+)?$/,"");this.cusorIndex=e-(i.length-o.length),this._input=`${o}${r}`,this.drawPrompt(),this._onDidChangeInput.fire(this._input)}removeTail(){let{cusorIndex:e,input:t}=this;if(e==t.length)return;let i=t.slice(0,e);this._input=i,this.drawPrompt(),this._onDidChangeInput.fire(this._input)}removeAhead(){let{cusorIndex:e,input:t}=this;if(e==0)return;let i=t.slice(e);this.cusorIndex=0,this._input=i,this.drawPrompt(),this._onDidChangeInput.fire(this._input)}async acceptCharacter(e){if(this.requestInput){if(this.requestInput=!1,/^[0-9a-z"%#*+/:\-.]$/.test(e)){let t=await this.nvim.call("getreg",e);t=t.replace(/\n/g," "),this.addText(t)}}else this.addText(e)}insertRegister(){this.requestInput=!0}async paste(){let e=await this.nvim.eval("@*");e=e.replace(/\n/g,""),e&&this.addText(e)}async eval(e){let t=await this.nvim.call("eval",[e]);t=t.replace(/\n/g,""),this.addText(t)}addText(e){let{cusorIndex:t,input:i}=this;this.cusorIndex=t+e.length;let r=i.slice(0,t),o=i.slice(t);this._input=`${r}${e}${o}`,this.drawPrompt(),this._onDidChangeInput.fire(this._input)}}});function Ln(n){let e=[];for(let t=0,i=n.length;t=97&&n<=122||n>=65&&n<=90}function fD(n,e,t=!1){return!!(n==e||n>=97&&n<=122&&e+32===n||t&&n<=90&&n+32===e)}function Ah(n,e,t=!1){let i=n.charCodeAt(0),r=e.charCodeAt(0);return!!(i===r||i>=97&&i<=122&&r+32===i||t&&i<=90&&i+32===r)}function Mo(n,e){let t=n.length;if(n.length>e.length)return!1;let i=0;for(let r=0;r=97&&s<=122&&o+32===s){i=i+1;continue}}return i===t}var Es=_(()=>{"use strict"});var c6e,mD,DK=_(()=>{"use strict";Es();ne();c6e=W()("list-history"),mD=class{constructor(e,t){this.prompt=e;this.name=t;this.index=-1;this.loaded=[];this.current=[];this.db=v.createDatabase(`list-${t}-history`),this.key=Buffer.from(v.cwd).toString("base64")}filter(){let{input:e}=this.prompt;if(e==this.curr)return;this.historyInput="";let t=Ln(e);this.current=this.loaded.filter(i=>Mo(t,i)),this.index=-1}get curr(){return this.index==-1?null:this.current[this.index]}load(e){let{db:t}=this;e=e||"";let i=t.fetch(this.key);!i||!Array.isArray(i)?this.loaded=[]:this.loaded=i,this.index=-1,this.current=this.loaded.filter(r=>r.startsWith(e))}add(){let{loaded:e,db:t,prompt:i}=this,{input:r}=i;if(!r||r.length<2||r==this.historyInput)return;let o=e.indexOf(r);o!=-1&&e.splice(o,1),e.push(r),e.length>200&&(e=e.slice(-200)),t.push(this.key,e)}previous(){let{current:e,index:t}=this;!e||!e.length||(t<=0?this.index=e.length-1:this.index=t-1,this.historyInput=this.prompt.input=e[this.index]||"")}next(){let{current:e,index:t}=this;!e||!e.length||(t==e.length-1?this.index=0:this.index=t+1,this.historyInput=this.prompt.input=e[this.index]||"")}}});var CK,Mh,b6e,yD,xK=_(()=>{"use strict";CK=x(Oi()),Mh=x(q());we();re();Do();ne();b6e=W()("list-ui"),yD=class{constructor(e,t,i,r){this.nvim=e;this.name=t;this.listOptions=i;this.config=r;this.newTab=!1;this.reversed=!1;this.currIndex=0;this.items=[];this.disposables=[];this.selected=new Set;this.mutex=new si;this._onDidChangeLine=new Mh.Emitter;this._onDidOpen=new Mh.Emitter;this._onDidClose=new Mh.Emitter;this._onDidLineChange=new Mh.Emitter;this._onDoubleClick=new Mh.Emitter;this.onDidChangeLine=this._onDidChangeLine.event;this.onDidLineChange=this._onDidLineChange.event;this.onDidOpen=this._onDidOpen.event;this.onDidClose=this._onDidClose.event;this.onDidDoubleClick=this._onDoubleClick.event;this.signOffset=r.get("signOffset"),this.newTab=i.position=="tab",this.reversed=i.reverse===!0,P.on("BufWinLeave",async s=>{s!=this.bufnr||this.window==null||(this.window=null,this._onDidClose.fire(s))},null,this.disposables),P.on("CursorMoved",async(s,a)=>{if(s!=this.bufnr)return;let l=this.lnumToIndex(a[0]);this.onLineChange(l)},null,this.disposables);let o=(0,CK.default)(async s=>{if(s!=this.bufnr)return;let[a,l,u]=await e.eval('[win_getid(),line("w0"),line("w$")]');if(u<300||a!=this.winid)return;let c=u-l+1,h=this.lnumToIndex(l),d=this.lnumToIndex(l+c*2);e.pauseNotification(),this.doHighlight(h,d),e.command("redraw",!0),e.resumeNotification(!1,!0)},global.hasOwnProperty("__TEST__")?20:100);this.disposables.push({dispose:()=>{o.clear()}}),P.on("CursorMoved",o,null,this.disposables)}lnumToIndex(e){let{reversed:t,length:i}=this;return t?Math.max(0,i-e):e-1}indexToLnum(e){let{reversed:t,length:i}=this;return t?Math.max(Math.min(i,i-e),1):Math.min(e+1,i)}get bufnr(){var e;return(e=this.buffer)==null?void 0:e.id}get winid(){var e;return(e=this.window)==null?void 0:e.id}get limitLines(){return this.config.get("limitLines",1/0)}onLineChange(e){this.currIndex!=e&&(this.currIndex=e,this._onDidChangeLine.fire(e))}set index(e){if(e<0||e>=this.items.length)return;let{nvim:t}=this,i=this.indexToLnum(e);t.pauseNotification(),this.setCursor(i),t.command("redraw",!0),t.resumeNotification(!1,!0)}get index(){return this.currIndex}getItem(e){return this.items[e]}get item(){let{window:e}=this;return e?e.cursor.then(t=>(this.currIndex=this.lnumToIndex(t[0]),this.items[this.currIndex])):Promise.resolve(null)}async echoMessage(e){let{items:t}=this,r=`[${t.indexOf(e)+1}/${t.length}] ${e.label||""}`;this.nvim.callTimer("coc#ui#echo_lines",[[r]],!0)}updateItem(e,t,i){if(!this.buffer||t>=this.length)return;let r=this.items[t];if(Object.assign(r,e,{resolved:!0}),!i)return;let{nvim:o}=this,s=this.indexToLnum(t);o.pauseNotification(),this.buffer.setOption("modifiable",!0,!0),o.call("setbufline",[this.bufnr,s,r.label],!0),this.doHighlight(t,t+1),this.buffer.setOption("modifiable",!1,!0),o.resumeNotification(!0,!0)}async getItems(){if(this.length==0||!this.window)return[];let e=await this.nvim.call("mode");if(e=="v"||e=="V"){let[r,o]=await this.getSelectedRange(),s=[];for(let a=r;a<=o;a++){let l=this.lnumToIndex(a),u=this.items[l];u&&s.push(u)}return s}let{selectedItems:t}=this;if(t.length)return t;let i=await this.item;return i==null?[]:[i]}async onMouse(e){let{nvim:t,window:i}=this;if(!i)return;let[r,o,s]=await t.eval("[v:mouse_winid,v:mouse_lnum,v:mouse_col]");if(e=="mouseDown"){this.mouseDown={winid:r,lnum:o,col:s,current:r==i.id};return}let a=r==i.id;if(a&&e=="doubleClick"&&(this.setCursor(o),this._onDoubleClick.fire()),a&&e=="mouseDrag"){if(!this.mouseDown)return;await this.selectLines(this.mouseDown.lnum,o)}else if(a&&e=="mouseUp"){if(!this.mouseDown)return;this.mouseDown.lnum==o?(this.setCursor(o),t.command("redraw",!0)):await this.selectLines(this.mouseDown.lnum,o)}else!a&&e=="mouseUp"&&(t.pauseNotification(),t.call("win_gotoid",r,!0),t.call("cursor",[o,s],!0),t.command("redraw",!0),t.resumeNotification(!1,!0))}async resume(){var r;let{items:e,selected:t,nvim:i}=this;if(await this.drawItems(e,this.height,!0),!(!t.size||!this.buffer)){i.pauseNotification();for(let o of t)(r=this.buffer)==null||r.placeSign({lnum:o,id:this.signOffset+o,name:"CocSelected",group:"coc-list"});i.command("redraw",!0),i.resumeNotification(!1,!0)}}async toggleSelection(){let{nvim:e,reversed:t}=this;await e.call("win_gotoid",[this.winid]);let i=await e.call("line","."),r=await e.call("mode");if(r=="v"||r=="V"){let[o,s]=await this.getSelectedRange();o>s&&([o,s]=[s,o]);for(let l=o;l<=s;l++)this.toggleLine(l);this.setCursor(s),e.command("redraw",!0),await e.resumeNotification();return}e.pauseNotification(),this.toggleLine(i),this.setCursor(t?i-1:i+1),e.command("redraw",!0),await e.resumeNotification()}toggleLine(e){let{selected:t,buffer:i,signOffset:r}=this;t.has(e)?(t.delete(e),i.unplaceSign({id:r+e,group:"coc-list"})):(t.add(e),i.placeSign({lnum:e,id:r+e,name:"CocSelected",group:"coc-list"}))}async selectLines(e,t){let{nvim:i,signOffset:r,buffer:o,length:s}=this;this.clearSelection();let{selected:a}=this;i.pauseNotification(),e>t&&([e,t]=[t,e]);for(let u=e;u<=t&&!(u>s);u++)a.add(u),o.placeSign({lnum:u,id:r+u,name:"CocSelected",group:"coc-list"});this.setCursor(t),i.command("redraw",!0),await i.resumeNotification()}async selectAll(){let{length:e}=this;e>0&&await this.selectLines(1,e)}clearSelection(){let{selected:e,buffer:t}=this;e.size>0&&(t==null||t.unplaceSign({group:"coc-list"}),this.selected.clear())}get ready(){return this.window?Promise.resolve():new Promise(e=>{let t=this.onDidLineChange(()=>{t.dispose(),e()})})}async drawItems(e,t,i=!1){let{nvim:r,name:o,listOptions:s}=this;await this.mutex.use(async()=>{if(this.items=e.length>this.limitLines?e.slice(0,this.limitLines):e,!this.window){let{position:c,numberSelect:h}=s,[d,g,p]=await r.call("coc#list#create",[c,t,o,h]);this.tabnr=p,this.height=t,this.buffer=r.createBuffer(d);let f=this.window=r.createWindow(g),m=this.config.get("statusLineSegments");m&&f.setOption("statusline",m.join(" "),!0),this._onDidOpen.fire(this.bufnr)}let a=[],l=0;this.items.forEach((c,h)=>{a.push(c.label),!i&&l==0&&c.preselect&&(l=h)});let u=i?this.currIndex:l;this.setLines(a,0,u),this._onDidLineChange.fire()})}async appendItems(e){!this.window||e.length===0||await this.mutex.use(async()=>{let t=this.items.length,i=this.limitLines-t;if(i>0){let r=io.label),r.length,this.currIndex)}})}setLines(e,t,i){let{nvim:r,buffer:o,window:s,reversed:a,newTab:l}=this;if(!(!o||!s)){if(r.pauseNotification(),t||(r.call("coc#compat#clear_matches",[s.id],!0),e.length||(e=["No results, press ? on normal mode to get help."],r.call("coc#compat#matchaddpos",["Comment",[[1]],99,s.id],!0))),o.setOption("modifiable",!0,!0),a){let u=e.reverse();t?r.call("coc#compat#prepend_lines",[o.id,u],!0):o.setLines(u,{start:0,end:-1,strictIndexing:!1},!0)}else o.setLines(e,{start:t?-1:0,end:-1,strictIndexing:!1},!0);if(o.setOption("modifiable",!1,!0),a&&!l){let u=this.config.get("height",10);r.call("coc#window#set_height",[s.id,Math.max(Math.min(u,this.length),1)],!0)}if(i>this.items.length-1&&(i=0),i==0)if(t==0)this.doHighlight(0,299);else{let u=this.length-t-1;u<300&&this.doHighlight(u,Math.min(299,this.length-1))}else{let u=l?v.env.lines:this.height;this.doHighlight(Math.max(0,i-u),Math.min(i+u+1,this.length-1))}if(!t){this.currIndex=i;let u=this.indexToLnum(i);s.setCursor([u,0],!0),r.call("coc#list#select",[o.id,u],!0)}a&&r.command("normal! zb",!0),r.command("redraws",!0),r.resumeNotification(!0,!0)}}restoreWindow(){if(this.newTab)return;let{winid:e,height:t}=this;e&&t&&this.nvim.call("coc#window#set_height",[e,t],!0)}get length(){return this.items.length}get selectedItems(){let{selected:e,items:t}=this,i=[];for(let r of e){let o=this.lnumToIndex(r);t[r-1]&&i.push(t[o])}return i}doHighlight(e,t){let{items:i,reversed:r,length:o,buffer:s}=this;if(!s)return;let a=[],l=u=>{let c=this.indexToLnum(u)-1,{ansiHighlights:h,highlights:d}=i[u];if(h)for(let g of h){let{span:p,hlGroup:f}=g;a.push({hlGroup:f,lnum:c,colStart:p[0],colEnd:p[1]})}if(d&&Array.isArray(d.spans)){let{spans:g,hlGroup:p}=d;for(let f of g)p=p??"CocListSearch",a.push({hlGroup:p,lnum:c,colStart:f[0],colEnd:f[1]})}};if(r)for(let u=Math.min(t,o-1);u>=e;u--)l(u);else for(let u=e;u<=Math.min(t,o-1);u++)l(u);e=this.indexToLnum(e)-1,t=this.indexToLnum(t)-1,e>t&&([e,t]=[t,e]),a.length!=0&&s.updateHighlights("list",a,{start:e,end:t+1,priority:99})}setCursor(e,t=0){var s;let{items:i}=this,r=i.length==0?1:i.length;if(e>r)return;let o=this.lnumToIndex(e);this.onLineChange(o),(s=this.window)==null||s.setCursor([e,t],!0),this.nvim.call("coc#list#select",[this.bufnr,e],!0)}moveUp(){let{index:e,reversed:t}=this;this.index=t?e+1:e-1}moveDown(){let{index:e,reversed:t}=this;this.index=t?e-1:e+1}async getSelectedRange(){let{nvim:e}=this;await e.call("coc#prompt#stop_prompt",["list"]),await e.eval('feedkeys("\\", "in")');let[,t]=await e.call("getpos","'<"),[,i]=await e.call("getpos","'>");return this.nvim.call("coc#prompt#start_prompt",["list"],!0),[t,i]}reset(){this.window&&(this.window=null,this.buffer=null,this.tabnr=void 0)}dispose(){$(this.disposables),this.nvim.call("coc#window#close",[this.winid||-1],!0),this.window=null,this.buffer=null,this.items=[],this._onDidChangeLine.dispose(),this._onDidOpen.dispose(),this._onDidClose.dispose(),this._onDidLineChange.dispose(),this._onDoubleClick.dispose()}}});async function bD(n,e,t,i){if(n.length===0)return;let r=new TK,o=n.length;function s(l){let u=[];r.start();for(let c=l;c{setImmediate(()=>{l(s(a))})})}var SK,TK,kK=_(()=>{SK=15,TK=class{constructor(e=SK){this.yieldAfter=Math.max(e,SK),this.startTime=Date.now(),this.counter=0,this.total=0,this.counterInterval=1}start(){this.startTime=Date.now()}shouldYield(){if(++this.counter>=this.counterInterval){let e=Date.now()-this.startTime,t=Math.max(0,this.yieldAfter-e);if(this.total+=this.counter,this.counter=0,e>=this.yieldAfter||t<=1)return this.counterInterval=1,this.total=0,!0;switch(e){case 0:case 1:this.counterInterval=this.total*2;break}}return!1}}});function WTe(n){return n.toLowerCase()===n}function ZTe(n){return n.toUpperCase()===n}function JTe(n){let e=n.length,t=new Array(e),i="/";for(let r=0;r1024)return Oh;let r=new Array(t),o=new Array(t);return PK(n,e,r,o),o[t-1][i-1]}function _K(n){let e=[];for(let t=0;t1024)return r;let o=new Array(t),s=new Array(t);PK(n,e,o,s);let a=!1;for(let l=t-1,u=i-1;l>=0;l--)for(;u>=0;u--)if(o[l][u]!==Oh&&(a||o[l][u]===s[l][u])){a=l&&u&&s[l][u]===o[l-1][u-1]+EK,r[l]=u--;break}return r}function Bh(n,e){n=n.toLowerCase(),e=e.toLowerCase();let t=n.length;for(let i=0,r=0;i{"use strict";Oh=-1/0,ATe=1/0,MTe=-.005,OTe=-.005,NTe=-.01,EK=1,BTe=.9,HTe=.8,qTe=.7,YTe=.6});function RK(n,e,t=0,i="CocSearch",r=!0){let o=[],s=0,a,l=e.length;for(let u=0;ue.score&&(e=n[t]);return e}var ER,PR=_(()=>{"use strict";ER=require("path");Es();Ne()});function vD(n){return n.filterText!=null?qW(n.filterText,n.label):n.label}function UTe(n){let e=[],t=0,i=0,r="";for(;io.replace(/\\\s/g," ").trim()).filter(o=>o.length>0)}function jK(n,e){let t=[];if(e&&e.length){let i=e.shift(),r=e.shift(),o=i;for(;r;){if(r==o+1){o=r,r=e.shift();continue}t.push([We(n,i),We(n,o)+1]),i=r,o=i,r=e.shift()}t.push([We(n,i),We(n,o)+1])}return{spans:t}}function _R(n,e){let t=vD(e),i=LK(t,n);return i!=null&&i.score?jK(t,i.matches):{spans:[]}}var Ja,IK,XTe,wD,AK=_(()=>{"use strict";Ja=x(q());Rc();kK();Yk();ff();Do();PR();Ne();IK=W()("list-worker"),XTe="\x1B",wD=class{constructor(e,t,i,r,o){this.nvim=e;this.list=t;this.prompt=i;this.listOptions=r;this.config=o;this._loading=!1;this._finished=!1;this.mutex=new si;this.totalItems=[];this._onDidChangeItems=new Ja.Emitter;this._onDidChangeLoading=new Ja.Emitter;this.onDidChangeItems=this._onDidChangeItems.event;this.onDidChangeLoading=this._onDidChangeLoading.event}set loading(e){this._loading!=e&&(this._loading=e,this._onDidChangeLoading.fire(e))}get isLoading(){return this._loading}async loadItems(e,t=!1){this.cancelFilter(),this.filteredCount=0,this._finished=!1;let{list:i,listOptions:r}=this;this.loading=!0;let{interactive:o}=r;this.tokenSource=new Ja.CancellationTokenSource;let s=this.tokenSource.token,a=await i.loadItems(e,s);if(!s.isCancellationRequested)if(a=a??[],Array.isArray(a)){this.tokenSource=null,this.totalItems=a,this.loading=!1,this._finished=!0;let l;if(o)l=this.convertToHighlightItems(a),this._onDidChangeItems.fire({items:l,reload:t,finished:!0});else{let u=this.filterTokenSource=new Ja.CancellationTokenSource;await this.mutex.use(async()=>{let c=u.token;c.isCancellationRequested||await this.filterItems(a,{reload:t},c)})}}else{let l=a,u=this.totalItems=[],c=0,h=e.input,d=!1;this.filterTokenSource=new Ja.CancellationTokenSource;let g=async w=>{d=!0,await this.mutex.use(async()=>{if(this.input!=h&&(h=this.input,c=this.filteredCount??0),c>=u.length)return;let T=c>0,R=u.slice(c);if(c=u.length,o){let N=this.convertToHighlightItems(R);this._onDidChangeItems.fire({items:N,append:T,reload:t,finished:w})}else{let N=this.filterTokenSource;N&&!N.token.isCancellationRequested&&await this.filterItems(R,{append:T,reload:t},N.token)}}),d=!1},p=Promise.resolve(),f=setInterval(()=>{d||(p=g())},50);l.on("data",w=>{s.isCancellationRequested||u.push(w)});let m=()=>{l!=null&&(this.tokenSource=null,l=null,this.loading=!1,this._finished=!0,b.dispose(),clearInterval(f),p.then(()=>{if(!s.isCancellationRequested){if(u.length==0){this._onDidChangeItems.fire({items:[],append:!1,reload:t,finished:!0});return}return g(!0)}}).catch(w=>{IK.error("Error on filter",w)}))},b=s.onCancellationRequested(()=>{l==null||l.dispose(),m()});l.on("error",async w=>{l!=null&&(l=null,this.tokenSource=null,this.loading=!1,b.dispose(),clearInterval(f),this.nvim.call("coc#prompt#stop_prompt",["list"],!0),this.nvim.echoError(`Task error: ${w.toString()}`),IK.error("Task error:",w))}),l.on("end",m)}}async drawItems(){let{totalItems:e}=this;if(e.length===0)return;this.cancelFilter();let t=this.filterTokenSource=new Ja.CancellationTokenSource,i=t.token;await this.mutex.use(async()=>{if(i.isCancellationRequested)return;let{totalItems:r}=this;this.filteredCount=r.length,await this.filterItems(r,{},t.token)})}cancelFilter(){this.filterTokenSource&&(this.filterTokenSource.cancel(),this.filterTokenSource=null)}stop(){this.cancelFilter(),this.tokenSource&&(this.tokenSource.cancel(),this.tokenSource=null),this.loading=!1}get length(){return this.totalItems.length}get input(){return this.prompt.input}convertToHighlightItems(e){let t=this.input??"";return e.map(r=>{this.convertItemLabel(r);let o=t.length>0?_R(t,r):void 0;return Object.assign({},r,{highlights:o})})}async filterItemsByInclude(e,t,i,r){let{ignorecase:o}=this.listOptions;o&&(e=e.map(s=>s.toLowerCase())),await bD(t,s=>{this.convertItemLabel(s);let a=[],l=vD(s),u=!0;for(let c of e){let h=o?l.toLowerCase().indexOf(c):l.indexOf(c);if(h==-1){u=!1;break}a.push([We(l,h),We(l,h+V(c))])}return u?{highlights:{spans:a}}:!1},r,i)}async filterItemsByRegex(e,t,i,r){let{ignorecase:o}=this.listOptions,s=o?"iu":"u",a=e.reduce((l,u)=>{try{l.push(new RegExp(u,s))}catch{}return l},[]);await bD(t,l=>{this.convertItemLabel(l);let u=[],c=vD(l),h=!0;for(let d of a){let g=c.match(d);if(g==null){h=!1;break}u.push([We(c,g.index),We(c,g.index+V(g[0]))])}return h?{highlights:{spans:u}}:!1},r,i)}async filterItemsByFuzzyMatch(e,t,i,r){let{sort:o}=this.listOptions,s=0;await bD(t,a=>{this.convertItemLabel(a);let l=a.filterText||a.label,u=0,c=[],h=vD(a),d=!0;for(let g of e){if(!Bh(g,l)){d=!1;break}c.push(...gu(g,h)),o&&(u+=Nh(g,l))}return s=s+1,d?{sortText:typeof a.sortText=="string"?a.sortText:String.fromCharCode(s),score:u,highlights:jK(h,c)}:!1},(a,l)=>{r(a,l,o)},i)}async filterItems(e,t,i){let{input:r}=this;if(r.length===0){let l=e.map(u=>this.convertItemLabel(u));this._onDidChangeItems.fire(ve({items:l,finished:this._finished},t));return}let o=this.config.extendedSearchMode?UTe(r):[r],s=!1,a=(l,u,c)=>{if(u=u&&this._finished,i.isCancellationRequested||!u&&l.length==0)return;c&&l.sort((d,g)=>d.score!=g.score?g.score-d.score:d.sortText>g.sortText?1:-1);let h=t.append===!0||s;s=!0,this._onDidChangeItems.fire({items:l,append:h,reload:t.reload,finished:u})};switch(this.listOptions.matcher){case"strict":await this.filterItemsByInclude(o,e,i,a);break;case"regex":await this.filterItemsByRegex(o,e,i,a);break;default:await this.filterItemsByFuzzyMatch(o,e,i,a)}}convertItemLabel(e){let{label:t,converted:i}=e;if(i)return e;if(t.includes(` +`)&&(t=e.label=t.replace(/\r?\n/g," ")),t.includes(XTe)){let{line:r,highlights:o}=_c(t);e.label=r,Array.isArray(e.ansiHighlights)||(e.ansiHighlights=o)}return e.converted=!0,e}dispose(){this.stop()}}});var RR,MK,GTe,W6e,DD,OK=_(()=>{"use strict";RR=x(Oi()),MK=x(q());Oo();ba();re();Ae();ne();DK();xK();AK();GTe=["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"],W6e=W()("list-session"),DD=class{constructor(e,t,i,r,o=[],s){this.nvim=e;this.prompt=t;this.list=i;this.listOptions=r;this.listArgs=o;this.config=s;this.loadingFrame="";this.hidden=!1;this.disposables=[];this.args=[];this.ui=new yD(e,i.name,r,s),this.history=new mD(t,i.name),this.worker=new wD(e,i,t,r,{interactiveDebounceTime:s.get("interactiveDebounceTime",100),extendedSearchMode:s.get("extendedSearchMode",!0)}),this.interactiveDebounceTime=s.get("interactiveDebounceTime",100);let a=(0,RR.default)(async()=>{let[d,g,p]=await e.eval('[coc#list#has_preview(),win_getid(),line(".")]');if(d&&g==this.winid){let f=this.ui.lnumToIndex(p);await this.doPreview(f)}},50);this.disposables.push({dispose:()=>{a.clear()}}),this.ui.onDidChangeLine(a,null,this.disposables),this.ui.onDidChangeLine(this.resolveItem,this,this.disposables),this.ui.onDidLineChange(this.resolveItem,this,this.disposables);let l=(0,RR.default)(async()=>{this.updateStatus();let{autoPreview:d}=this.listOptions;if(!d){let[g,p]=await e.eval("[coc#list#has_preview(),mode()]");if(!g||p!="n")return}await this.doAction("preview")},50);this.disposables.push({dispose:()=>{l.clear()}}),this.ui.onDidLineChange(l,null,this.disposables),this.ui.onDidOpen(async()=>{typeof this.list.doHighlight=="function"&&this.list.doHighlight(),v.isVim&&this.prompt.drawPrompt(),this.listOptions.first&&await this.doAction()},null,this.disposables),this.ui.onDidClose(async()=>{await this.hide()},null,this.disposables),this.ui.onDidDoubleClick(async()=>{await this.doAction()},null,this.disposables),this.worker.onDidChangeItems(async({items:d,reload:g,append:p,finished:f})=>{if(!this.hidden)if(p)await this.ui.appendItems(d);else{let m=this.config.get("height",10);f&&!r.interactive&&r.input.length==0&&(m=Math.min(d.length,m)),await this.ui.drawItems(d,Math.max(1,m),g)}},null,this.disposables);let u=0,c,h;this.disposables.push(MK.Disposable.create(()=>{c&&clearTimeout(c),h&&clearInterval(h)})),this.worker.onDidChangeLoading(d=>{this.hidden||(c&&clearTimeout(c),d?(u=Date.now(),h&&clearInterval(h),h=setInterval(()=>{let g=Math.floor((Date.now()-u)%1e3/100);this.loadingFrame=GTe[g],this.updateStatus()},100)):c=setTimeout(()=>{this.loadingFrame="",h&&clearInterval(h),h=null,this.updateStatus()},Math.max(0,200-(Date.now()-u))))},null,this.disposables)}async start(e){this.args=e,this.cwd=v.cwd,this.hidden=!1;let{listOptions:t,listArgs:i}=this,r=await this.nvim.eval('[win_getid(),bufnr("%"),winheight("%")]');this.listArgs=i,this.history.load(t.input||""),this.window=this.nvim.createWindow(r[0]),this.buffer=this.nvim.createBuffer(r[1]),this.savedHeight=r[2],await this.worker.loadItems(this.context)}async reloadItems(){!this.ui.winid||await this.worker.loadItems(this.context,!0)}async call(e){var o,s;await this.nvim.call("coc#prompt#stop_prompt",["list"]);let t=await this.ui.getItems(),i={name:this.name,args:this.listArgs,input:this.prompt.input,winid:(o=this.window)==null?void 0:o.id,bufnr:(s=this.buffer)==null?void 0:s.id,targets:t},r=await this.nvim.call(e,[i]);return this.prompt.start(),r}async chooseAction(){let{nvim:e,defaultAction:t}=this,{actions:i}=this.list,r=i.map(h=>h.name),o=r.indexOf(t.name);o!=-1&&(r.splice(o,1),r.unshift(t.name));let s=new Set,a=[],l=[],u=v.env.dialog&&this.config.get("menuAction",!1);for(let h of r){let d=0;for(let g of h){if(!s.has(g)){s.add(g),a.push(`${h.slice(0,d)}&${h.slice(d)}`);break}d++}d==h.length&&l.push(h)}l.length&&!u&&(r=r.filter(h=>!l.includes(h)));let c;u?(e.call("coc#prompt#stop_prompt",["list"],!0),c=await k.showMenuPicker(r,{title:"Choose action",shortcuts:!0}),c=c+1,v.isVim&&await Pt(10),this.prompt.start()):(await e.call("coc#prompt#stop_prompt",["list"]),c=await e.call("confirm",["Choose action:",a.join(` +`)]),await Pt(10),this.prompt.start()),c&&await this.doAction(r[c-1])}async doAction(e){let{list:t}=this,i;if(e!=null){if(i=t.actions.find(o=>o.name==e),!i){k.showErrorMessage(`Action ${e} not found`);return}}else i=this.defaultAction;let r;if(e=="preview"){let o=await this.ui.item;r=o?[o]:[]}else r=await this.ui.getItems();r.length&&await this.doItemAction(r,i)}async doPreview(e){let t=this.ui.getItem(e),i=this.list.actions.find(r=>r.name=="preview");!t||!i||await this.doItemAction([t],i)}async first(){await this.doDefaultAction(0)}async last(){await this.doDefaultAction(this.ui.length-1)}async previous(){await this.doDefaultAction(this.ui.index-1)}async next(){await this.doDefaultAction(this.ui.index+1)}async doDefaultAction(e){let{ui:t}=this,i=t.getItem(e);!i||(t.index=e,await this.doItemAction([i],this.defaultAction),await t.echoMessage(i))}get name(){return this.list.name}get winid(){return this.ui.winid}get length(){return this.ui.length}get defaultAction(){let{defaultAction:e,actions:t,name:i}=this.list,r=v.getConfiguration(`list.source.${i}`),o;if(r.defaultAction&&(o=t.find(s=>s.name==r.defaultAction)),o||(o=t.find(s=>s.name==e)),o||(o=t[0]),!o)throw new Error(`default action "${e}" not found`);return o}async hide(e=!1){if(this.hidden)return;let{nvim:t,timer:i,window:r}=this,{winid:o,tabnr:s}=this.ui;i&&clearTimeout(i),this.worker.stop(),this.history.add(),this.ui.reset(),this.hidden=!0;let{isVim:a}=v;if(t.pauseNotification(),a||t.call("coc#prompt#stop_prompt",["list"],!0),s&&t.call("coc#list#close_preview",[s],!0),r&&t.call("win_gotoid",[r.id],!0),o&&t.call("coc#window#close",[o],!0),r&&this.savedHeight&&this.listOptions.position!=="tab"&&t.call("coc#window#set_height",[r.id,this.savedHeight],!0),e)return t.resumeNotification(!1,!0);await t.resumeNotification(!1),a&&(await Pt(10),t.call("feedkeys",["\x1B","int"],!0),t.command("redraw",!0))}toggleMode(){let e=this.prompt.mode=="normal"?"insert":"normal";this.prompt.mode=e,this.listOptions.mode=e,this.updateStatus()}stop(){this.worker.stop()}async resolveItem(){let e=this.ui.index,t=this.ui.getItem(e);if(!t||t.resolved)return;let{list:i}=this;if(typeof i.resolveItem=="function"){let r=t.label,o=await Promise.resolve(i.resolveItem(t));if(o&&e==this.ui.index){let s=_R(this.prompt.input,o);this.ui.updateItem(Object.assign({highlights:s},o),e,r!=o.label)}}}async showHelp(){await this.hide();let{list:e,nvim:t}=this;if(!e)return;t.pauseNotification(),t.command("tabe +setl\\ previewwindow [LIST HELP]",!0),t.command("setl nobuflisted noswapfile buftype=nofile bufhidden=wipe",!0),await t.resumeNotification();let i=e.options&&e.options.length,r=await t.buffer,o=new Hi;if(o.addLine("NAME","Label"),o.addLine(` ${e.name} - ${e.description||""} `),o.addLine("SYNOPSIS","Label"),o.addLine(` :CocList [LIST OPTIONS] ${e.name}${i?" [ARGUMENTS]":""} `),e.detail){o.addLine("DESCRIPTION","Label");let a=e.detail.split(` `).map(l=>" "+l);o.addLine(a.join(` `)+` -`)}if(i){o.addLine("ARGUMENTS","Label"),o.addLine("");for(let a of e.options)o.addLine(a.name,"Special"),o.addLine(` ${a.description}`),o.addLine("");o.addLine("")}let s=y.getConfiguration(`list.source.${e.name}`);if(Object.keys(s).length){o.addLine("CONFIGURATIONS","Label"),o.addLine("");let a={};ye.all.forEach(l=>{let{packageJSON:u}=l,{contributes:c}=u;if(!c)return;let{configuration:h}=c;if(h){let{properties:d}=h;if(d)for(let g of Object.keys(d))a[g]=d[g]}});for(let l of Object.keys(s)){let u=s[l],c=`list.source.${e.name}.${l}`,h=a[c]&&a[c].description?a[c].description:l;o.addLine(` "${c}"`,"MoreMsg"),o.addText(` - ${h}, current value: `),o.addText(JSON.stringify(u),"Special")}o.addLine("")}o.addLine("ACTIONS","Label"),o.addLine(` ${e.actions.map(a=>a.name).join(", ")}`),o.addLine(""),o.addLine("see ':h coc-list-options' for available list options.","Comment"),t.pauseNotification(),o.render(r,0,-1),t.command("setl nomod",!0),t.command("setl nomodifiable",!0),t.command("normal! gg",!0),t.command("nnoremap q :bd!",!0),await t.resumeNotification()}async switchMatcher(){let{matcher:e,interactive:t}=this.listOptions;if(t)return;let i=["fuzzy","strict","regex"],r=i.indexOf(e)+1;r>=i.length&&(r=0),this.listOptions.matcher=i[r],this.prompt.matcher=i[r],await this.worker.drawItems()}updateStatus(){let{ui:e,list:t,nvim:i}=this;if(!e.bufnr)return;let r=i.createBuffer(e.bufnr),o={mode:this.prompt.mode.toUpperCase(),args:this.args.join(" "),name:t.name,cwd:this.cwd,loading:this.loadingFrame,total:this.worker.length};r.setVar("list_status",o,!0),i.command("redraws",!0)}get context(){let{winid:e}=this.ui;return{options:this.listOptions,args:this.listArgs,input:this.prompt.input,cwd:y.cwd,window:this.window,buffer:this.buffer,listWindow:e?this.nvim.createWindow(e):void 0}}onMouseEvent(e){switch(e){case"":return this.ui.onMouse("mouseDown");case"":return this.ui.onMouse("mouseDrag");case"":return this.ui.onMouse("mouseUp");case"<2-LeftMouse>":return this.ui.onMouse("doubleClick")}}async doNumberSelect(e){if(!this.listOptions.numberSelect)return!1;let t=e.charCodeAt(0);if(t>=48&&t<=57){let i=Number(e);if(i==0&&(i=10),this.ui.length>=i)return this.nvim.pauseNotification(),this.ui.setCursor(i),await this.nvim.resumeNotification(),await this.doAction(),!0}return!1}jumpBack(){let{window:e,nvim:t}=this;e&&(t.pauseNotification(),t.call("coc#prompt#stop_prompt",["list"],!0),this.nvim.call("win_gotoid",[e.id],!0),t.resumeNotification(!1,!0))}async resume(){this.winid&&await this.hide();let e=await this.nvim.eval('[win_getid(),bufnr("%"),winheight("%")]');this.hidden=!1,this.window=this.nvim.createWindow(e[0]),this.buffer=this.nvim.createBuffer(e[1]),this.savedHeight=e[2],this.prompt.start(),await this.ui.resume(),this.listOptions.autoPreview&&await this.doAction("preview")}async doItemAction(e,t){let{noQuit:i,position:r}=this.listOptions,{nvim:o}=this,s=t.persist===!0||t.name=="preview";r==="tab"&&t.tabPersist&&(s=!0);let a=this.winid&&(s||i);try{if(a?s||(o.pauseNotification(),o.call("coc#prompt#stop_prompt",["list"],!0),o.call("win_gotoid",[this.context.window.id],!0),await o.resumeNotification()):await this.hide(),t.multiple)await Promise.resolve(t.execute(e,this.context));else if(t.parallel)await Promise.all(e.map(l=>Promise.resolve(t.execute(l,this.context))));else for(let l of e)await Promise.resolve(t.execute(l,this.context));a&&this.ui.restoreWindow(),t.reload&&a?await this.reloadItems():a&&this.nvim.command("redraw",!0)}catch(l){this.nvim.echoError(l)}}onInputChange(){this.timer&&clearTimeout(this.timer),this.listOptions.input=this.prompt.input,this.listOptions.interactive?(this.worker.stop(),this.timer=setTimeout(async()=>{await this.worker.loadItems(this.context)},this.interactiveDebounceTime)):this.worker.drawItems()}dispose(){this.hide(!0),Z(this.disposables),this.worker.dispose(),this.ui.dispose()}}});var h4,d4,g4,p0e,Zw,f4=_(()=>{"use strict";h4=require("child_process"),d4=require("events"),g4=C(require("readline"));z();V();p0e=q()("list-commandTask"),Zw=class extends d4.EventEmitter{constructor(e){super();this.opt=e;this.disposables=[];this.start()}start(){let{cmd:e,args:t,cwd:i,onLine:r}=this.opt,o=(0,h4.spawn)(e,t,{cwd:i||y.cwd,windowsHide:!0});this.disposables.push({dispose:()=>{o.kill()}}),o.on("error",a=>{this.emit("error",a.message)}),o.stderr.on("data",a=>{p0e.error(`[${e} Error]`,a.toString("utf8"))});let s=g4.default.createInterface(o.stdout);s.on("line",a=>{let l=r(a);l&&this.emit("data",l)}),s.on("close",()=>{this.emit("end")})}dispose(){Z(this.disposables)}}});function m0e(n){switch(n){case"latex":return"tex";default:return n}}var p4,L_,m4,Cn,$Xe,Xt,vo=_(()=>{"use strict";p4=C(require("fs")),L_=C(require("path")),m4=C(require("readline")),Cn=C(H());we();z();Je();yt();V();f4();jw();$Xe=q()("list-basic"),Xt=class{constructor(e){this.nvim=e;this.defaultAction="open";this.actions=[];this.options=[];this.disposables=[];this.config=new wh}get alignColumns(){return this.config.get("alignColumns",!1)}get hlGroup(){return this.config.get("previewHighlightGroup","Search")}get previewHeight(){return this.config.get("maxPreviewHeight",12)}get splitRight(){return this.config.get("previewSplitRight",!1)}get toplineStyle(){return this.config.get("previewToplineStyle","offset")}get toplineOffset(){return this.config.get("previewToplineOffset",3)}parseArguments(e){if(!this.optionMap){this.optionMap=new Map;for(let i of this.options){let r=i.name.split(/,\s*/g).map(s=>s.replace(/\s+.*/g,"")),o=i.key?i.key:r[r.length-1].replace(/^-/,"");for(let s of r)this.optionMap.set(s,{name:o,hasValue:i.hasValue})}}let t={};for(let i=0;i{let r=await this.convertLocation(t.location);await this.previewLocation(r,i)}});let{nvim:e}=this;this.createAction({name:"quickfix",multiple:!0,execute:async t=>{let i=await Promise.all(t.map(o=>this.convertLocation(o.location).then(s=>y.getQuickfixItem(s))));await e.call("setqflist",[i]);let r=await e.getVar("coc_quickfix_open_command");e.command(typeof r=="string"?r:"copen",!0)}});for(let t of["open","tabe","drop","vsplit","split"])this.createAction({name:t,execute:async(i,r)=>{await this.jumpTo(i.location,t=="open"?null:t,r)},tabPersist:t==="open"})}async convertLocation(e){if(typeof e=="string")return Cn.Location.create(e,Cn.Range.create(0,0,0,0));if(Cn.Location.is(e))return e;let t=O.parse(e.uri);if(t.scheme!="file")return Cn.Location.create(e.uri,Cn.Range.create(0,0,0,0));let i=m4.default.createInterface({input:p4.default.createReadStream(t.fsPath,{encoding:"utf8"})}),r=e.line,o=0,s=!1,a=await new Promise(l=>{i.on("line",u=>{if(!s){if(u.includes(r)){i.removeAllListeners(),i.close(),s=!0,l(u);return}o=o+1}}),i.on("error",u=>{this.nvim.errWriteLine(`Read ${t.fsPath} error: ${u.message}`),l(null)})});if(a!=null){let l=e.text?a.indexOf(e.text):0;l==0&&(l=a.match(/^\s*/)[0].length);let u=Cn.Position.create(o,l+(e.text?e.text.length:0));return Cn.Location.create(e.uri,Cn.Range.create(Cn.Position.create(o,l),u))}return Cn.Location.create(e.uri,Cn.Range.create(0,0,0,0))}async jumpTo(e,t,i){if(t==null&&i&&i.options.position==="tab"&&(t="tabe"),typeof e=="string"){await y.jumpTo(e,null,t);return}let{range:r,uri:o}=await this.convertLocation(e),s=r.start;s.line==0&&s.character==0&&De(s,r.end)==0&&(s=null),await y.jumpTo(o,s,t)}createAction(e){let{name:t}=e,i=this.actions.findIndex(r=>r.name==t);i!==-1&&this.actions.splice(i,1),this.actions.push(e)}async previewLocation(e,t){if(!t.listWindow)return;let{nvim:i}=this,{uri:r,range:o}=e,s=y.getDocument(e.uri),a=O.parse(r),l=[];if(s)l=s.getLines();else if(a.scheme=="file")try{l=(await xc(a.fsPath,"utf8")).split(/\r?\n/)}catch(c){`${a.fsPath}`,c.toString()}let u={winid:t.window.id,range:Ct(o)?null:o,lnum:o.start.line+1,name:a.scheme=="file"?a.fsPath:r,filetype:m0e(s?s.languageId:this.getLanguageId(a.fsPath)),position:t.options.position,maxHeight:this.previewHeight,splitRight:this.splitRight,hlGroup:this.hlGroup,scheme:a.scheme,toplineStyle:this.toplineStyle,toplineOffset:this.toplineOffset};await i.call("coc#list#preview",[l,u])}async preview(e,t){let{nvim:i}=this,{bufname:r,filetype:o,range:s,lines:a,lnum:l}=e,u={winid:t.window.id,lnum:s?s.start.line+1:l||1,filetype:o||"txt",position:t.options.position,maxHeight:this.previewHeight,splitRight:this.splitRight,hlGroup:this.hlGroup,toplineStyle:this.toplineStyle,toplineOffset:this.toplineOffset};r&&(u.name=r),s&&(u.range=s),await i.call("coc#list#preview",[a,u]),i.command("redraw",!0)}doHighlight(){}dispose(){Z(this.disposables)}getLanguageId(e){let t=L_.default.extname(e);if(!t)return"";for(let i of y.documents){let r=O.parse(i.uri).fsPath;if(L_.default.extname(r)==t)return i.languageId}return""}}});function Sn(n,e){if(e.length===0)return[];let t=[];if(n){let i=Array(Math.min(...e.map(r=>r.label.length))).fill(0);for(let r of e)for(let o=0;oBa(ge({},r),{label:r.label.map((o,s)=>o.padEnd(i[s])).join(" ")}))}else t=e.map(i=>Ba(ge({},i),{label:i.label.join(" ")}));return t}function b4(n,e){var t;if(n==="hidden")return"";if(n==="full")return e;if(n==="short"){let i=e.split(Jw.default.sep);return i.length<2?e:[...i.slice(0,i.length-2).filter(o=>o.length>0).map(o=>o[0]),i[i.length-1]].join(Jw.default.sep)}else{let i=e.split(Jw.default.sep);return(t=i[i.length-1])!=null?t:""}}var Jw,La=_(()=>{"use strict";Jw=C(require("path"))});function b0e(n,e){let t=n.indexOf(e);return t==-1?-1:n.length-t}var $w,y4=_(()=>{"use strict";wi();V();vo();La();$w=class extends Xt{constructor(e){super(e);this.defaultAction="run";this.description="registered commands of coc.nvim";this.name="commands";this.mru=y.createMru("commands"),this.addAction("run",async t=>{await oe.fireCommand(t.data.cmd)}),this.addAction("append",async t=>{let{cmd:i}=t.data;await e.feedKeys(`:CocCommand ${i} `,"n",!1)})}async loadItems(e){let t=[],i=await this.mru.load(),{commandList:r,onCommandList:o,titles:s}=oe,a=r.map(l=>l.id).concat(o);for(let l of[...new Set(a)])t.push({label:[l,...s.get(l)?[s.get(l)]:[]],filterText:l,data:{cmd:l,score:b0e(i,l)}});return t.sort((l,u)=>u.data.score-l.data.score),Sn(this.alignColumns,t)}doHighlight(){let{nvim:e}=this;e.pauseNotification(),e.command("syntax match CocCommandsTitle /\\t.*$/ contained containedin=CocCommandsLine",!0),e.command("highlight default link CocCommandsTitle Comment",!0),e.resumeNotification(!1,!0)}}});var Gf,lUe,wo,Qf=_(()=>{"use strict";Kr();Gf=C(require("path"));vo();V();wi();we();Je();Pe();lUe=q()("list-location"),wo=class extends Xt{constructor(e){super(e);this.defaultAction="open";this.description="show locations saved by g:coc_jump_locations variable";this.name="location";this.createAction({name:"refactor",multiple:!0,execute:async t=>{let i=t.map(r=>r.location);await oe.executeCommand("workspace.refactor",i)}}),this.addLocationActions()}async loadItems(e,t){let i=await this.nvim.getVar("coc_jump_locations");if(t.isCancellationRequested)return[];i=i||[],i.forEach(a=>{if(!a.uri){let l=Gf.default.isAbsolute(a.filename)?a.filename:Gf.default.join(e.cwd,a.filename);a.uri=O.file(l).toString()}if(!a.bufnr&&y.getDocument(a.uri)!=null&&(a.bufnr=y.getDocument(a.uri).bufnr),a.range)a.lnum=a.lnum||a.range.start.line+1,a.col=a.col||a.range.start.character+1;else{let{lnum:l,col:u}=a;a.range=Ne.create(l-1,u-1,l-1,u-1)}});let r=e.buffer.id,o=i.every(a=>a.bufnr&&r&&a.bufnr==r);return i.map(a=>{let l=o?"":a.filename,u=`${l}${a.text.trim()}`;Gf.default.isAbsolute(l)&&(l=Ae(e.cwd,l)?Gf.default.relative(e.cwd,l):l);let c=`${l} |${a.type?a.type+" ":""}${a.lnum} col ${a.col}| `,h;if(a.range&&a.range.start.line==a.range.end.line){let g=Q(c)+Q(a.text.slice(0,a.range.start.character)),f=Q(c)+Q(a.text.slice(0,a.range.end.character));h={hlGroup:"Search",span:[g,f]}}return{label:c+a.text,location:cn.create(a.uri,a.range),filterText:u,ansiHighlights:h?[h]:void 0}})}doHighlight(){let{nvim:e}=this;e.pauseNotification(),e.command("syntax match CocLocationName /\\v^[^|]+/ contained containedin=CocLocationLine",!0),e.command("syntax match CocLocationPosition /\\v\\|\\w*\\s?\\d+\\scol\\s\\d+\\|/ contained containedin=CocLocationLine",!0),e.command("syntax match CocLocationError /Error/ contained containedin=CocLocationPosition",!0),e.command("syntax match CocLocationWarning /Warning/ contained containedin=CocLocationPosition",!0),e.command("highlight default link CocLocationName Directory",!0),e.command("highlight default link CocLocationPosition LineNr",!0),e.command("highlight default link CocLocationError Error",!0),e.command("highlight default link CocLocationWarning WarningMsg",!0),e.resumeNotification(!1,!0)}}});var v4,mUe,Xw,w4=_(()=>{"use strict";v4=C(require("path"));eu();Je();La();Qf();mUe=q()("list-symbols"),Xw=class extends wo{constructor(e,t){super(e);this.defaultAction="open";this.description="diagnostics of current workspace";this.name="diagnostics";Ft.onDidRefresh(async()=>{let i=t.getSession("diagnostics");i&&await i.reloadItems()},null,this.disposables)}async loadItems(e){let t=await Ft.getDiagnosticList(),{cwd:i}=e,r=this.getConfig(),o=r.get("includeCode",!0),s=r.get("pathFormat","full"),a=t.map(l=>{let u=Ae(i,l.file)?v4.default.relative(i,l.file):l.file,c=b4(s,u),h=s!=="hidden"?[`${c}:${l.lnum}`]:[],d=o?[`[${l.source}${l.code?"":"]"}`,l.code?`${l.code}]`:""]:[];return{label:[...h,...d,l.severity,l.message],location:l.location}});return Sn(this.alignColumns,a)}doHighlight(){let{nvim:e}=this;e.pauseNotification(),e.command("syntax match CocDiagnosticsFile /\\v^\\s*\\S+/ contained containedin=CocDiagnosticsLine",!0),e.command("syntax match CocDiagnosticsError /\\tError\\s*\\t/ contained containedin=CocDiagnosticsLine",!0),e.command("syntax match CocDiagnosticsWarning /\\tWarning\\s*\\t/ contained containedin=CocDiagnosticsLine",!0),e.command("syntax match CocDiagnosticsInfo /\\tInformation\\s*\\t/ contained containedin=CocDiagnosticsLine",!0),e.command("syntax match CocDiagnosticsHint /\\tHint\\s*\\t/ contained containedin=CocDiagnosticsLine",!0),e.command("highlight default link CocDiagnosticsFile Comment",!0),e.command("highlight default link CocDiagnosticsError CocErrorSign",!0),e.command("highlight default link CocDiagnosticsWarning CocWarningSign",!0),e.command("highlight default link CocDiagnosticsInfo CocInfoSign",!0),e.command("highlight default link CocDiagnosticsHint CocHintSign",!0),e.resumeNotification(!1,!0)}}});function v0e(n){switch(n){case"unknown":return 2;case"activated":return 1;case"disabled":return-1;default:return 0}}var Th,D4,Uw,y0e,Gw,x4=_(()=>{"use strict";Th=C(Rn()),D4=C(require("os")),Uw=C(require("path"));we();yo();z();V();ke();vo();La();y0e=q()("list-extensions"),Gw=class extends Xt{constructor(e){super(e);this.defaultAction="toggle";this.description="manage coc extensions";this.name="extensions";this.addAction("toggle",async t=>{let{id:i,state:r}=t.data;r!="disabled"&&(r=="activated"?await ye.deactivate(i):await ye.activate(i),await bt(100))},{persist:!0,reload:!0,parallel:!0}),this.addAction("configuration",async t=>{let{root:i}=t.data,r=Uw.default.join(i,"package.json");if(Th.default.existsSync(r)){let s=Th.default.readFileSync(r,"utf8").split(/\r?\n/).findIndex(a=>a.includes('"contributes"'));await y.jumpTo(O.file(r).toString(),{line:s==-1?0:s,character:0})}}),this.addAction("open",async t=>{let{root:i}=t.data;y.env.isiTerm?e.call("coc#ui#iterm_open",[i],!0):e.call("coc#ui#open_url",[i],!0)}),this.addAction("disable",async t=>{let{id:i,state:r}=t.data;r!=="disabled"&&await ye.toggleExtension(i)},{persist:!0,reload:!0,parallel:!0}),this.addAction("enable",async t=>{let{id:i,state:r}=t.data;r=="disabled"&&await ye.toggleExtension(i)},{persist:!0,reload:!0,parallel:!0}),this.addAction("lock",async t=>{let{id:i}=t.data;await ye.lockExtension(i)},{persist:!0,reload:!0}),this.addAction("help",async t=>{let{root:i}=t.data,o=(await Th.default.readdir(i)).find(s=>/^readme/i.test(s));o&&await y.callAsync("coc#util#jump",["edit",Uw.default.join(i,o)])}),this.addAction("reload",async t=>{let{id:i}=t.data;await ye.reloadExtension(i)},{persist:!0,reload:!0}),this.addAction("fix",async t=>{let{root:i,isLocal:r}=t.data,{npm:o}=ye;if(r){k.showMessage("Can't fix for local extension.","warning");return}if(!o)return;let s=Uw.default.join(i,"node_modules");Th.default.existsSync(s)&&Th.default.removeSync(s);let a=await k.createTerminal({cwd:i});!await a.show(!1)||(y.nvim.command("startinsert",!0),a.sendText(`${o} install --production --ignore-scripts --no-lockfile`,!0))}),this.addMultipleAction("uninstall",async t=>{let i=[];for(let r of t)r.data.isLocal||i.push(r.data.id);ye.uninstallExtension(i).catch(r=>{y0e.error(r)})})}async loadItems(e){let t=[],i=await ye.getExtensionStates(),r=await ye.getLockedList();for(let o of i){let s="+";o.state=="disabled"?s="-":o.state=="activated"?s="*":o.state=="unknown"&&(s="?");let a=await this.nvim.call("resolve",o.root),l=r.includes(o.id);t.push({label:[`${s} ${o.id}${l?" \uE0A2":""}`,...o.isLocal?["[RTP]"]:[],o.version,a.replace(D4.default.homedir(),"~")],filterText:o.id,data:{id:o.id,root:a,state:o.state,isLocal:o.isLocal,priority:v0e(o.state)}})}return t.sort((o,s)=>o.data.priority!=s.data.priority?s.data.priority-o.data.priority:s.data.id-o.data.id?1:-1),Sn(this.alignColumns,t)}doHighlight(){let{nvim:e}=this;e.pauseNotification(),e.command("syntax match CocExtensionsActivited /\\v^\\*/ contained containedin=CocExtensionsLine",!0),e.command("syntax match CocExtensionsLoaded /\\v^\\+/ contained containedin=CocExtensionsLine",!0),e.command("syntax match CocExtensionsDisabled /\\v^-/ contained containedin=CocExtensionsLine",!0),e.command("syntax match CocExtensionsName /\\v%3c\\S+/ contained containedin=CocExtensionsLine",!0),e.command("syntax match CocExtensionsRoot /\\v\\t[^\\t]*$/ contained containedin=CocExtensionsLine",!0),e.command("syntax match CocExtensionsLocal /\\v\\[RTP\\]/ contained containedin=CocExtensionsLine",!0),e.command("highlight default link CocExtensionsActivited Special",!0),e.command("highlight default link CocExtensionsLoaded Normal",!0),e.command("highlight default link CocExtensionsDisabled Comment",!0),e.command("highlight default link CocExtensionsName String",!0),e.command("highlight default link CocExtensionsLocal MoreMsg",!0),e.command("highlight default link CocExtensionsRoot Comment",!0),e.resumeNotification(!1,!0)}}});var C4,S4,Qw,T4=_(()=>{"use strict";C4=C(require("path"));we();S4=C(Rn());Je();V();ke();vo();Qw=class extends Xt{constructor(e){super(e);this.defaultAction="edit";this.description="list of current workspace folders";this.name="folders";this.addAction("edit",async t=>{let i=await e.call("input",["Folder: ",t.label,"dir"]),r=await Ht(i);if(!r||!r.isDirectory()){k.showMessage(`invalid path: ${i}`,"error");return}y.workspaceFolderControl.renameWorkspaceFolder(t.label,i)}),this.addAction("delete",async t=>{y.workspaceFolderControl.removeWorkspaceFolder(t.label)},{reload:!0,persist:!0}),this.addAction("newfile",async(t,i)=>{let r=await k.requestInput("File name",t.label+"/");if(!r)return;let o=C4.default.dirname(r),s=await Ht(o);(!s||!s.isDirectory())&&S4.default.mkdirpSync(o),await y.createFile(r,{overwrite:!1,ignoreIfExists:!0}),await this.jumpTo(O.file(r).toString(),null,i)})}async loadItems(e){return y.folderPaths.map(t=>({label:t}))}}});function k4(n){if(!n.startsWith("file:"))return n;let e=O.parse(n).fsPath;return Ae(y.cwd,e)?E4.default.relative(y.cwd,e):e}var E4,Kw,P4=_(()=>{"use strict";Ce();V();E4=C(require("path"));vo();Kr();we();Je();Kw=class extends Xt{constructor(e){super(e);this.defaultAction="open";this.description="links of current buffer";this.name="links";this.addAction("open",async t=>{let{target:i}=t.data;O.parse(i).scheme.startsWith("http")?await e.call("coc#ui#open_url",i):await y.jumpTo(i)}),this.addAction("jump",async t=>{let{location:i}=t.data;await y.jumpTo(i.uri,i.range.start)})}async loadItems(e,t){let i=await e.window.buffer,r=y.getDocument(i.id);if(!r)return null;let o=[],s=await A.getDocumentLinks(r.textDocument,t);if(t.isCancellationRequested)return null;if(s==null)throw new Error("Links provider not found.");let a=[];for(let l of s)l.target?o.push({label:k4(l.target),data:{target:l.target,location:cn.create(r.uri,l.range)}}):(l=await A.resolveDocumentLink(l,t),l.target&&o.push({label:k4(l.target),data:{target:l.target,location:cn.create(r.uri,l.range)}}),a.push(l));return o}}});function w0e(n,e){let t=n.indexOf(e);return t==-1?-1:n.length-t}var zw,_4=_(()=>{"use strict";vo();lf();La();zw=class extends Xt{constructor(e,t){super(e);this.listMap=t;this.name="lists";this.defaultAction="open";this.description="registered lists of coc.nvim";this.mru=new so("lists");this.addAction("open",async i=>{let{name:r}=i.data;await this.mru.add(r),e.command(`CocList ${r}`,!0)})}async loadItems(e){let t=[],i=await this.mru.load();for(let r of this.listMap.values())r.name!="lists"&&t.push({label:[r.name,...r.description?[r.description]:[]],data:{name:r.name,interactive:r.interactive,score:w0e(i,r.name)}});return t.sort((r,o)=>o.data.score-r.data.score),Sn(this.alignColumns,t)}doHighlight(){let{nvim:e}=this;e.pauseNotification(),e.command("syntax match CocListsDesc /\\t.*$/ contained containedin=CocListsLine",!0),e.command("highlight default link CocListsDesc Comment",!0),e.resumeNotification(!1,!0)}}});function Do(n){switch(n){case dt.SymbolKind.File:return"File";case dt.SymbolKind.Module:return"Module";case dt.SymbolKind.Namespace:return"Namespace";case dt.SymbolKind.Package:return"Package";case dt.SymbolKind.Class:return"Class";case dt.SymbolKind.Method:return"Method";case dt.SymbolKind.Property:return"Property";case dt.SymbolKind.Field:return"Field";case dt.SymbolKind.Constructor:return"Constructor";case dt.SymbolKind.Enum:return"Enum";case dt.SymbolKind.Interface:return"Interface";case dt.SymbolKind.Function:return"Function";case dt.SymbolKind.Variable:return"Variable";case dt.SymbolKind.Constant:return"Constant";case dt.SymbolKind.String:return"String";case dt.SymbolKind.Number:return"Number";case dt.SymbolKind.Boolean:return"Boolean";case dt.SymbolKind.Array:return"Array";case dt.SymbolKind.Object:return"Object";case dt.SymbolKind.Key:return"Key";case dt.SymbolKind.Null:return"Null";case dt.SymbolKind.EnumMember:return"EnumMember";case dt.SymbolKind.Struct:return"Struct";case dt.SymbolKind.Event:return"Event";case dt.SymbolKind.Operator:return"Operator";case dt.SymbolKind.TypeParameter:return"TypeParameter";default:return"Unknown"}}var dt,Kf=_(()=>{"use strict";dt=C(H())});function R4(n,e){return`${n.name}${e?` ${e}`:""}`}function D0e(n,e){let t=n.selectionRange,i=e.selectionRange;return t.start.line!=i.start.line?t.start.line-i.start.line:t.start.character-i.start.character}var L4,F4,o8e,Vw,I4=_(()=>{"use strict";L4=C(require("path"));Kr();we();F4=C(rg());Ce();z();Je();V();Qf();Kf();La();o8e=q()("list-symbols");Vw=class extends wo{constructor(){super(...arguments);this.description="symbols of current document";this.name="outline";this.options=[{name:"-k, -kind KIND",hasValue:!0,description:"filter symbol by kind"}]}async loadItems(e,t){let i=await e.window.buffer,r=y.getDocument(i.id);if(!r)return null;let s=this.getConfig().get("ctagsFilestypes",[]),a,l=this.parseArguments(e.args);if(s.includes(r.filetype)||(a=await A.getDocumentSymbol(r.textDocument,t)),t.isCancellationRequested)return[];if(!a)return await this.loadCtagsSymbols(r);if(a.length==0)return[];let u=l.kind?l.kind.toLowerCase():null,c=[];if(!a[0].hasOwnProperty("location")){let d=function(g,f=0){g.sort(D0e);for(let p of g){let b=Do(p.kind),v=cn.create(r.uri,p.selectionRange);c.push({label:[`${"| ".repeat(f)}${p.name}`,`[${b}]`,`${p.range.start.line+1}`],filterText:R4(p,l.kind==""?b:null),location:v,data:{kind:b}}),p.children&&p.children.length&&d(p.children,f+1)}};d(a),u&&(c=c.filter(g=>g.data.kind.toLowerCase().indexOf(u)==0))}else{a.sort((d,g)=>{let f=d.location.range.start,p=g.location.range.start,b=f.line-p.line;return b==0?f.character-p.character:b});for(let d of a){let g=Do(d.kind);d.name.endsWith(") callback")||u&&!g.toLowerCase().startsWith(u)||(d.location.uri===void 0&&(d.location.uri=r.uri),c.push({label:[d.name,`[${g}]`,`${d.location.range.start.line+1}`],filterText:R4(d,l.kind==""?g:null),location:d.location}))}}return Sn(this.alignColumns,c)}doHighlight(){let{nvim:e}=this;e.pauseNotification(),e.command("syntax match CocOutlineName /\\v\\s?[^\\t]+\\s/ contained containedin=CocOutlineLine",!0),e.command("syntax match CocOutlineIndentLine /\\v\\|/ contained containedin=CocOutlineLine,CocOutlineName",!0),e.command("syntax match CocOutlineKind /\\[\\w\\+\\]/ contained containedin=CocOutlineLine",!0),e.command("syntax match CocOutlineLine /\\d\\+$/ contained containedin=CocOutlineLine",!0),e.command("highlight default link CocOutlineName Normal",!0),e.command("highlight default link CocOutlineIndentLine Comment",!0),e.command("highlight default link CocOutlineKind Typedef",!0),e.command("highlight default link CocOutlineLine Comment",!0),e.resumeNotification(!1,!0)}async loadCtagsSymbols(e){if(!F4.default.sync("ctags",{nothrow:!0}))return[];let t=O.parse(e.uri),i=L4.default.extname(t.fsPath),r="",s=`${await this.nvim.call("tempname")}.${i}`,a=await this.nvim.call("fnameescape",s);await bb(a,e.getDocumentContent());try{r=await eo(`ctags -f - --excmd=number --language-force=${e.filetype} ${a}`)}catch{}if(r.trim().length||(r=await eo(`ctags -f - --excmd=number ${a}`)),r=r.trim(),!r)return[];let l=r.split(/\r?\n/),u=[];for(let c of l){let h=c.split(" ");if(h.length<4)continue;let d=Number(h[2].replace(/;"$/,"")),g=e.getline(d-1);if(!g)continue;let f=g.indexOf(h[0]),p=f==-1?0:f,b=Ne.create(d-1,p,d-1,p+h[0].length);u.push({label:`${h[0]} [${h[3]}] ${d}`,filterText:h[0],location:cn.create(e.uri,b),data:{line:d}})}return u.sort((c,h)=>c.data.line-h.data.line),u}}});var eD,j4=_(()=>{"use strict";$f();vo();z();La();eD=class extends Xt{constructor(e){super(e);this.defaultAction="toggle";this.description="registered services of coc.nvim";this.name="services";this.addAction("toggle",async t=>{let{id:i}=t.data;await Mi.toggle(i),await bt(100)},{persist:!0,reload:!0})}async loadItems(e){let t=Mi.getServiceStats();return t.sort((i,r)=>i.id>r.id?-1:1),Sn(this.alignColumns,t.map(i=>({label:[i.state=="running"?"*":" ",i.id,`[${i.state}]`,i.languageIds.join(", ")],data:{id:i.id}})))}doHighlight(){let{nvim:e}=this;e.pauseNotification(),e.command("syntax match CocServicesPrefix /\\v^./ contained containedin=CocServicesLine",!0),e.command("syntax match CocServicesName /\\v%3c\\S+/ contained containedin=CocServicesLine",!0),e.command("syntax match CocServicesStat /\\v\\t\\[\\w+\\]/ contained containedin=CocServicesLine",!0),e.command("syntax match CocServicesLanguages /\\v(\\])@<=.*$/ contained containedin=CocServicesLine",!0),e.command("highlight default link CocServicesPrefix Special",!0),e.command("highlight default link CocServicesName Type",!0),e.command("highlight default link CocServicesStat Statement",!0),e.command("highlight default link CocServicesLanguages Comment",!0),e.resumeNotification(!1,!0)}}});function tD(n,e){return n.length>e?n.slice(0,e-1)+".":n+" ".repeat(e-n.length)}var m8e,iD,A4=_(()=>{"use strict";Kr();we();Ul();vo();m8e=q()("list-sources"),iD=class extends Xt{constructor(e){super(e);this.defaultAction="toggle";this.description="registered completion sources";this.name="sources";this.addAction("toggle",async t=>{let{name:i}=t.data;Lt.toggleSource(i)},{persist:!0,reload:!0}),this.addAction("refresh",async t=>{let{name:i}=t.data;await Lt.refresh(i)},{persist:!0,reload:!0}),this.addAction("open",async(t,i)=>{let{location:r}=t;r&&await this.jumpTo(r,null,i)})}async loadItems(e){let t=Lt.sourceStats();return t.sort((i,r)=>i.type!=r.type?i.typer.name?-1:1),t.map(i=>{let r=i.disabled?" ":"*",o;return i.filepath&&(o=cn.create(O.file(i.filepath).toString(),Ne.create(0,0,0,0))),{label:`${r} ${tD(i.name,22)} ${tD("["+i.shortcut+"]",10)} ${tD(i.triggerCharacters.join(""),10)} ${tD(i.priority.toString(),3)} ${i.filetypes.join(",")}`,location:o,data:{name:i.name}}})}doHighlight(){let{nvim:e}=this;e.pauseNotification(),e.command("syntax match CocSourcesPrefix /\\v^./ contained containedin=CocSourcesLine",!0),e.command("syntax match CocSourcesName /\\v%3c\\S+/ contained containedin=CocSourcesLine",!0),e.command("syntax match CocSourcesType /\\v%25v.*%36v/ contained containedin=CocSourcesLine",!0),e.command("syntax match CocSourcesPriority /\\v%46v.*%50v/ contained containedin=CocSourcesLine",!0),e.command("syntax match CocSourcesFileTypes /\\v\\S+$/ contained containedin=CocSourcesLine",!0),e.command("highlight default link CocSourcesPrefix Special",!0),e.command("highlight default link CocSourcesName Type",!0),e.command("highlight default link CocSourcesPriority Number",!0),e.command("highlight default link CocSourcesFileTypes Comment",!0),e.command("highlight default link CocSourcesType Statement",!0),e.resumeNotification(!1,!0)}}});var F_,O4,M4,P8e,nD,N4=_(()=>{"use strict";F_=C(require("path")),O4=C(Vn());we();Ce();V();Qf();Kf();Je();Uf();M4=C(H());La();P8e=q()("list-symbols"),nD=class extends wo{constructor(){super(...arguments);this.interactive=!0;this.description="search workspace symbols";this.detail="Symbols list is provided by server, it works on interactive mode only.";this.name="symbols";this.options=[{name:"-k, -kind KIND",description:"Filter symbols by kind.",hasValue:!0}]}async loadItems(e,t){let{input:i}=e;this.cwd=e.cwd;let r=this.parseArguments(e.args),o=r.kind?r.kind.toLowerCase():"";if(!e.options.interactive)throw new Error("Symbols only works on interactive mode");let s=await A.getWorkspaceSymbols(i,t);if(!s)throw new Error("No workspace symbols provider registered");let l=this.getConfig().get("excludes",[]),u=[];for(let c of s){let h=Do(c.kind);if(o&&h.toLowerCase()!=o)continue;let d=O.parse(c.location.uri).fsPath;Ae(y.cwd,d)&&(d=F_.default.relative(y.cwd,d)),!l.some(g=>(0,O4.default)(d,g))&&u.push({label:[c.name,`[${h}]`,d],filterText:`${c.name}`,location:c.location,data:{original:c,kind:c.kind,file:d,score:Ch(i,c.name)}})}return u.sort((c,h)=>c.data.score!=h.data.score?h.data.score-c.data.score:c.data.kind!=h.data.kind?c.data.kind-h.data.kind:c.data.file.length-h.data.file.length),Sn(this.alignColumns,u)}async resolveItem(e){let t=e.data.original;if(!t)return null;let i=new M4.CancellationTokenSource,r=await A.resolveWorkspaceSymbol(t,i.token);if(!r)return null;let o=Do(r.kind),s=O.parse(r.location.uri).fsPath;return Ae(this.cwd,s)&&(s=F_.default.relative(this.cwd,s)),{label:`${t.name} [${o}] ${s}`,filterText:`${t.name}`,location:t.location}}doHighlight(){let{nvim:e}=this;e.pauseNotification(),e.command("syntax match CocSymbolsName /\\v^\\s*\\S+/ contained containedin=CocSymbolsLine",!0),e.command("syntax match CocSymbolsKind /\\[\\w\\+\\]\\s*\\t/ contained containedin=CocSymbolsLine",!0),e.command("syntax match CocSymbolsFile /\\S\\+$/ contained containedin=CocSymbolsLine",!0),e.command("highlight default link CocSymbolsName Normal",!0),e.command("highlight default link CocSymbolsKind Typedef",!0),e.command("highlight default link CocSymbolsFile Comment",!0),e.resumeNotification(!1,!0)}}});var H4,rD,q4,x0e,B4,Y4,Di,oD=_(()=>{"use strict";H4=C(Ei()),rD=C(H());le();yo();z();V();ke();jw();Z6();$6();c4();y4();w4();x4();T4();P4();_4();Qf();I4();j4();A4();N4();q4=C(dg()),x0e=q()("list-manager"),B4=["","","","<2-LeftMouse>"],Y4=class{constructor(){this.plugTs=0;this.sessionsMap=new Map;this.disposables=[];this.listMap=new Map}init(e){this.nvim=e,this.config=new wh,this.prompt=new Ow(e,this.config),this.mappings=new Aw(this,e,this.config);let t=this.config.get("selectedSignText","*");e.command(`sign define CocSelected text=${t} texthl=CocSelectedText linehl=CocSelectedLine`,!0),E.on("InputChar",this.onInputChar,this,this.disposables);let i=(0,H4.default)(async()=>{await this.getCurrentSession()&&this.prompt.drawPrompt()},100);E.on("FocusGained",i,null,this.disposables),E.on("WinEnter",o=>{let s=this.getSessionByWinid(o);s&&this.prompt.start(s.listOptions)},null,this.disposables);let r;E.on("WinLeave",o=>{r&&clearTimeout(r),this.getSessionByWinid(o)&&setTimeout(()=>{this.prompt.cancel()},y.isVim?50:0)},null,this.disposables),this.disposables.push({dispose:()=>{i.clear()}}),this.prompt.onDidChangeInput(()=>{let{session:o}=this;!o||(o.onInputChange(),o.history.filter())}),this.registerList(new Kw(e)),this.registerList(new wo(e)),this.registerList(new nD(e)),this.registerList(new Vw(e)),this.registerList(new $w(e)),this.registerList(new Gw(e)),this.registerList(new Xw(e,this)),this.registerList(new iD(e)),this.registerList(new eD(e)),this.registerList(new zw(e,this.listMap)),this.registerList(new Qw(e))}async start(e){let t=this.parseArgs(e);if(!t)return;let{name:i}=t.list,r=this.sessionsMap.get(i);r&&r.dispose(),this.prompt.start(t.options);let o=new Ww(this.nvim,this.prompt,t.list,t.options,t.listArgs,this.config);this.sessionsMap.set(i,o),this.lastSession=o;try{await o.start(e)}catch(s){this.nvim.call("coc#prompt#stop_prompt",["list"],!0);let a=s instanceof Error?s.message:s.toString();k.showMessage(`Error on "CocList ${i}": ${a}`,"error"),x0e.error(s)}}getSessionByWinid(e){for(let t of this.sessionsMap.values())if(t&&t.winid==e)return this.lastSession=t,t;return null}async getCurrentSession(){let{id:e}=await this.nvim.window;for(let t of this.sessionsMap.values())if(t&&t.winid==e)return this.lastSession=t,t;return null}async resume(e){var t;if(!e)await((t=this.session)==null?void 0:t.resume());else{let i=this.sessionsMap.get(e);if(!i){k.showMessage(`Can't find exists ${e} list`);return}await i.resume()}}async doAction(e){let t=this.lastSession;!t||await t.doAction(e)}async first(e){let t=this.getSession(e);t&&await t.first()}async last(e){let t=this.getSession(e);t&&await t.last()}async previous(e){let t=this.getSession(e);t&&await t.previous()}async next(e){let t=this.getSession(e);t&&await t.next()}getSession(e){return e?this.sessionsMap.get(e):this.session}async cancel(e=!0){this.prompt.cancel(),!!e&&this.session&&await this.session.hide()}reset(){this.prompt.cancel(),this.lastSession=void 0;for(let e of this.sessionsMap.values())e.dispose();this.sessionsMap.clear(),this.nvim.call("coc#prompt#stop_prompt",["list"],!0)}async switchMatcher(){var e;await((e=this.session)==null?void 0:e.switchMatcher())}async togglePreview(){let{nvim:e}=this,t=await e.call("coc#list#get_preview",[0]);t!=-1?(await e.call("coc#window#close",[t]),await e.command("redraw")):await this.doAction("preview")}async chooseAction(){let{lastSession:e}=this;e&&await e.chooseAction()}parseArgs(e){let t=[],i=!1,r=!1,o=!1,s=!1,a=!1,l=!1,u,c="",h="fuzzy",d="bottom",g=[],f=[];for(let v of e)if(!u&&v.startsWith("-"))f.push(v);else if(u)g.push(v);else{if(!/^\w+$/.test(v))return k.showMessage(`Invalid list option: "${v}"`,"error"),null;u=v}u=u||"lists";let p=y.getConfiguration(`list.source.${u}`);!f.length&&!g.length&&(f=p.get("defaultOptions",[])),g.length||(g=p.get("defaultArgs",[]));for(let v of f)if(v.startsWith("--input"))c=v.slice(8);else if(v=="--number-select"||v=="-N")o=!0;else if(v=="--auto-preview"||v=="-A")r=!0;else if(v=="--regex"||v=="-R")h="regex";else if(v=="--strict"||v=="-S")h="strict";else if(v=="--interactive"||v=="-I")i=!0;else if(v=="--top")d="top";else if(v=="--tab")d="tab";else if(v=="--ignore-case"||v=="--normal"||v=="--no-sort")t.push(v.slice(2));else if(v=="--first")a=!0;else if(v=="--reverse")l=!0;else if(v=="--no-quit")s=!0;else return k.showMessage(`Invalid option "${v}" of list`,"error"),null;let b=this.listMap.get(u);return b?i&&!b.interactive?(k.showMessage(`Interactive mode of "${u}" list not supported`,"error"),null):{list:b,listArgs:g,options:{numberSelect:o,autoPreview:r,reverse:l,noQuit:s,first:a,input:c,interactive:i,matcher:h,position:d,ignorecase:!!t.includes("ignore-case"),mode:t.includes("normal")?"normal":"insert",sort:!t.includes("no-sort")}}:(k.showMessage(`List ${u} not found`,"error"),null)}async onInputChar(e,t,i){if(e!="list")return;let{mode:r}=this.prompt,o=Date.now();if(t==""||this.plugTs&&o-this.plugTs<20){this.plugTs=o;return}if(!!t){if(t==""){await this.cancel();return}r=="insert"?await this.onInsertInput(t,i):await this.onNormalInput(t,i)}}async onInsertInput(e,t){let{session:i}=this;if(!i)return;if(B4.includes(e)){await this.onMouseEvent(e);return}if(!(await i.doNumberSelect(e)||await this.mappings.doInsertKeymap(e)||t)){if(e.startsWith("<")&&e.endsWith(">")){await this.feedkeys(e,!1);return}for(let s of e){let a=s.codePointAt(0);if(a==65533||a<32||a>=127&&a<=159)return;await this.prompt.acceptCharacter(s)}}}async onNormalInput(e,t){if(B4.includes(e)){await this.onMouseEvent(e);return}await this.mappings.doNormalKeymap(e)||await this.feedkeys(e)}onMouseEvent(e){if(this.session)return this.session.onMouseEvent(e)}async feedkeys(e,t=!0){let{nvim:i}=this;e=e.startsWith("<")&&e.endsWith(">")?`\\${e}`:e,await i.call("coc#prompt#stop_prompt",["list"]),await i.call("eval",[`feedkeys("${e}", "${t?"i":"in"}")`]),this.prompt.start()}async command(e){let{nvim:t}=this;await t.call("coc#prompt#stop_prompt",["list"]),await t.command(e),this.prompt.start()}async normal(e,t=!0){let{nvim:i}=this;await i.call("coc#prompt#stop_prompt",["list"]),await i.command(`normal${t?"!":""} ${e}`),this.prompt.start()}async call(e){if(this.session)return await this.session.call(e)}get session(){return this.lastSession}registerList(e){let{name:t}=e,i=this.listMap.get(t);return this.listMap.has(t)&&(i&&(typeof i.dispose=="function"&&i.dispose(),this.listMap.delete(t)),k.showMessage(`list "${t}" recreated.`)),this.listMap.set(t,e),ye.addSchemeProperty(`list.source.${t}.defaultAction`,{type:"string",default:null,description:`Default action of "${t}" list.`}),ye.addSchemeProperty(`list.source.${t}.defaultOptions`,{type:"array",default:e.interactive?["--interactive"]:[],description:`Default list options of "${t}" list, only used when both list option and argument are empty.`,uniqueItems:!0,items:{type:"string",enum:["--top","--normal","--no-sort","--input","--tab","--strict","--regex","--ignore-case","--number-select","--interactive","--auto-preview","--first","--no-quit"]}}),ye.addSchemeProperty(`list.source.${t}.defaultArgs`,{type:"array",default:[],description:`Default argument list of "${t}" list, only used when list argument is empty.`,uniqueItems:!0,items:{type:"string"}}),rD.Disposable.create(()=>{typeof e.dispose=="function"&&e.dispose(),this.listMap.delete(t)})}get names(){return Array.from(this.listMap.keys())}get descriptions(){let e={};for(let t of this.listMap.keys()){let i=this.listMap.get(t);e[t]=i.description}return e}async loadItems(e){let t=[e],i=this.parseArgs(t);if(!i)return;let{list:r,options:o,listArgs:s}=i,l=new rD.CancellationTokenSource().token,u=await this.nvim.eval('[win_getid(),bufnr("%")]'),c=await r.loadItems({options:o,args:s,input:"",cwd:y.cwd,window:this.nvim.createWindow(u[0]),buffer:this.nvim.createBuffer(u[1]),listWindow:null},l);if(!c||Array.isArray(c))return c;let h=c;return await new Promise((g,f)=>{let p=[];h.on("data",b=>{b.label=(0,q4.default)(b.label),p.push(b)}),h.on("end",()=>{g(p)}),h.on("error",b=>{f(b)})})}toggleMode(){let e=this.lastSession;e&&e.toggleMode()}get isActivated(){var e;return((e=this.session)==null?void 0:e.winid)!=null}stop(){let e=this.lastSession;e&&e.stop()}dispose(){for(let e of this.sessionsMap.values())e.dispose();this.sessionsMap.clear(),this.config&&this.config.dispose(),this.lastSession=void 0,Z(this.disposables)}},Di=new Y4});var Z4=m((K8e,W4)=>{W4.exports=["\0","","","","","","","\x07","\b"," ",` -`,"\v","\f","\r","","","","","","","","","","","","","","\x1B","","","",""," ","!",'"',"#","$","%","&","'","(",")","*","+",",","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";","<","=",">","?","@","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","[","\\","]","^","_","`","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","{","|","}","~","\x7F","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""," ","!","C/","PS","$?","Y=","|","SS",'"',"(c)","a","<<","!","","(r)","-","deg","+-","2","3","'","u","P","*",",","1","o",">>","1/4","1/2","3/4","?","A","A","A","A","A","A","AE","C","E","E","E","E","I","I","I","I","D","N","O","O","O","O","O","x","O","U","U","U","U","U","Th","ss","a","a","a","a","a","a","ae","c","e","e","e","e","i","i","i","i","d","n","o","o","o","o","o","/","o","u","u","u","u","y","th","y"]});var $4=m((z8e,J4)=>{J4.exports=["A","a","A","a","A","a","C","c","C","c","C","c","C","c","D","d","D","d","E","e","E","e","E","e","E","e","E","e","G","g","G","g","G","g","G","g","H","h","H","h","I","i","I","i","I","i","I","i","I","i","IJ","","J","j","K","k","k","L","l","L","l","L","l","L","l","L","l","N","n","N","n","N","n","'n","ng","NG","O","o","O","o","O","o","OE","oe","R","r","R","r","R","r","S","s","S","s","S","s","S","s","T","t","T","t","T","t","U","u","U","u","U","u","U","u","U","u","U","u","W","w","Y","y","Y","Z","z","Z","z","Z","z","s","b","B","B","b","6","6","O","C","c","D","D","D","d","d","3","@","E","F","f","G","G","hv","I","I","K","k","l","l","W","N","n","O","O","o","OI","oi","P","p","YR","2","2","SH","sh","t","T","t","T","U","u","Y","V","Y","y","Z","z","ZH","ZH","zh","zh","2","5","5","ts","w","|","||","|=","!","DZ","Dz","dz","LJ","Lj","lj","NJ","Nj","nj","A","a","I","i","O","o","U","u","U","u","U","u","U","u","U","u","@","A","a","A","a","AE","ae","G","g","G","g","K","k","O","o","O","o","ZH","zh","j","DZ","D","dz","G","g","HV","W","N","n","A","a","AE","ae","O","o"]});var U4=m((V8e,X4)=>{X4.exports=["A","a","A","a","E","e","E","e","I","i","I","i","O","o","O","o","R","r","R","r","U","u","U","u","S","s","T","t","Y","y","H","h","[?]","[?]","OU","ou","Z","z","A","a","E","e","O","o","O","o","O","o","O","o","Y","y","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","a","a","a","b","o","c","d","d","e","@","@","e","e","e","e","j","g","g","g","g","u","Y","h","h","i","i","I","l","l","l","lZ","W","W","m","n","n","n","o","OE","O","F","R","R","R","R","r","r","R","R","R","s","S","j","S","S","t","t","U","U","v","^","W","Y","Y","z","z","Z","Z","?","?","?","C","@","B","E","G","H","j","k","L","q","?","?","dz","dZ","dz","ts","tS","tC","fN","ls","lz","WW","]]","[?]","[?]","k","h","j","r","r","r","r","w","y","'",'"',"`","'","`","`","'","?","?","<",">","^","V","^","V","'","-","/","\\",",","_","\\","/",":",".","`","'","^","V","+","-","V",".","@",",","~",'"',"R","X","G","l","s","x","?","","","","","","","","V","=",'"',"[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var Q4=m((eGe,G4)=>{G4.exports=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","","","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","'",",","[?]","[?]","[?]","[?]","","[?]","[?]","[?]","?","[?]","[?]","[?]","[?]","[?]","","","A",";","E","E","I","[?]","O","[?]","U","O","I","A","B","G","D","E","Z","E","Th","I","K","L","M","N","Ks","O","P","R","[?]","S","T","U","Ph","Kh","Ps","O","I","U","a","e","e","i","u","a","b","g","d","e","z","e","th","i","k","l","m","n","x","o","p","r","s","s","t","u","ph","kh","ps","o","i","u","o","u","o","[?]","b","th","U","U","U","ph","p","&","[?]","[?]","St","st","W","w","Q","q","Sp","sp","Sh","sh","F","f","Kh","kh","H","h","G","g","CH","ch","Ti","ti","k","r","c","j","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var z4=m((tGe,K4)=>{K4.exports=["Ie","Io","Dj","Gj","Ie","Dz","I","Yi","J","Lj","Nj","Tsh","Kj","I","U","Dzh","A","B","V","G","D","Ie","Zh","Z","I","I","K","L","M","N","O","P","R","S","T","U","F","Kh","Ts","Ch","Sh","Shch","","Y","'","E","Iu","Ia","a","b","v","gh","d","ie","zh","z","i","i","k","l","m","n","o","p","r","s","t","u","f","kh","ts","ch","sh","shch","","y","'","e","iu","ia","ie","io","dj","gj","ie","dz","i","yi","j","lj","nj","tsh","kj","i","u","dzh","O","o","E","e","Ie","ie","E","e","Ie","ie","O","o","Io","io","Ks","ks","Ps","ps","F","f","Y","y","Y","y","u","u","O","o","O","o","Ot","ot","Q","q","*1000*","","","","","[?]","*100.000*","*1.000.000*","[?]","[?]",'"','"',"R'","r'","G'","g'","G'","g'","G'","g'","Zh'","zh'","Z'","z'","K'","k'","K'","k'","K'","k'","K'","k'","N'","n'","Ng","ng","P'","p'","Kh","kh","S'","s'","T'","t'","U","u","U'","u'","Kh'","kh'","Tts","tts","Ch'","ch'","Ch'","ch'","H","h","Ch","ch","Ch'","ch'","`","Zh","zh","K'","k'","[?]","[?]","N'","n'","[?]","[?]","Ch","ch","[?]","[?]","[?]","a","a","A","a","Ae","ae","Ie","ie","@","@","@","@","Zh","zh","Z","z","Dz","dz","I","i","I","i","O","o","O","o","O","o","E","e","U","u","U","u","U","u","Ch","ch","[?]","[?]","Y","y","[?]","[?]","[?]","[?]","[?]"]});var eQ=m((iGe,V4)=>{V4.exports=["[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","A","B","G","D","E","Z","E","E","T`","Zh","I","L","Kh","Ts","K","H","Dz","Gh","Ch","M","Y","N","Sh","O","Ch`","P","J","Rh","S","V","T","R","Ts`","W","P`","K`","O","F","[?]","[?]","<","'","/","!",",","?",".","[?]","a","b","g","d","e","z","e","e","t`","zh","i","l","kh","ts","k","h","dz","gh","ch","m","y","n","sh","o","ch`","p","j","rh","s","v","t","r","ts`","w","p`","k`","o","f","ew","[?]",".","-","[?]","[?]","[?]","[?]","[?]","[?]","","","","","","","","","","","","","","","","","","[?]","","","","","","","","","","","","","","@","e","a","o","i","e","e","a","a","o","[?]","u","'","","","","","","",":","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","","b","g","d","h","v","z","kh","t","y","k","k","l","m","m","n","n","s","`","p","p","ts","ts","q","r","sh","t","[?]","[?]","[?]","[?]","[?]","V","oy","i","'",'"',"[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var iQ=m((nGe,tQ)=>{tQ.exports=["[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]",",","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]",";","[?]","[?]","[?]","?","[?]","","a","'","w'","","y'","","b","@","t","th","j","H","kh","d","dh","r","z","s","sh","S","D","T","Z","aa","G","[?]","[?]","[?]","[?]","[?]","","f","q","k","l","m","n","h","w","~","y","an","un","in","a","u","i","W","","","'","'","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","0","1","2","3","4","5","6","7","8","9","%",".",",","*","[?]","[?]","","'","'","'","","'","'w","'u","'y","tt","tth","b","t","T","p","th","bh","'h","H","ny","dy","H","ch","cch","dd","D","D","Dt","dh","ddh","d","D","D","rr","R","R","R","R","R","R","j","R","S","S","S","S","S","T","GH","F","F","F","v","f","ph","Q","Q","kh","k","K","K","ng","K","g","G","N","G","G","G","L","L","L","L","N","N","N","N","N","h","Ch","hy","h","H","@","W","oe","oe","u","yu","yu","W","v","y","Y","Y","W","","","y","y'",".","ae","","","","","","","","@","#","","","","","","","","","","","^","","","","","[?]","[?]","0","1","2","3","4","5","6","7","8","9","Sh","D","Gh","&","+m"]});var rQ=m((rGe,nQ)=>{nQ.exports=["//","/",",","!","!","-",",",",",";","?","~","{","}","*","[?]","","'","","b","g","g","d","d","h","w","z","H","t","t","y","yh","k","l","m","n","s","s","`","p","p","S","q","r","sh","t","[?]","[?]","[?]","a","a","a","A","A","A","e","e","e","E","i","i","u","u","u","o","","`","'","","","X","Q","@","@","|","+","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","h","sh","n","r","b","L","k","'","v","m","f","dh","th","l","g","ny","s","d","z","t","y","p","j","ch","tt","hh","kh","th","z","sh","s","d","t","z","`","gh","q","w","a","aa","i","ee","u","oo","e","ey","o","oa","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var sQ=m((oGe,oQ)=>{oQ.exports=["[?]","N","N","H","[?]","a","aa","i","ii","u","uu","R","L","eN","e","e","ai","oN","o","o","au","k","kh","g","gh","ng","c","ch","j","jh","ny","tt","tth","dd","ddh","nn","t","th","d","dh","n","nnn","p","ph","b","bh","m","y","r","rr","l","l","lll","v","sh","ss","s","h","[?]","[?]","'","'","aa","i","ii","u","uu","R","RR","eN","e","e","ai","oN","o","o","au","","[?]","[?]","AUM","'","'","`","'","[?]","[?]","[?]","q","khh","ghh","z","dddh","rh","f","yy","RR","LL","L","LL"," / "," // ","0","1","2","3","4","5","6","7","8","9",".","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","N","N","H","[?]","a","aa","i","ii","u","uu","R","RR","[?]","[?]","e","ai","[?]","[?]","o","au","k","kh","g","gh","ng","c","ch","j","jh","ny","tt","tth","dd","ddh","nn","t","th","d","dh","n","[?]","p","ph","b","bh","m","y","r","[?]","l","[?]","[?]","[?]","sh","ss","s","h","[?]","[?]","'","[?]","aa","i","ii","u","uu","R","RR","[?]","[?]","e","ai","[?]","[?]","o","au","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","+","[?]","[?]","[?]","[?]","rr","rh","[?]","yy","RR","LL","L","LL","[?]","[?]","0","1","2","3","4","5","6","7","8","9","r'","r`","Rs","Rs","1/","2/","3/","4/"," 1 - 1/","/16","","[?]","[?]","[?]","[?]"]});var lQ=m((sGe,aQ)=>{aQ.exports=["[?]","[?]","N","[?]","[?]","a","aa","i","ii","u","uu","[?]","[?]","[?]","[?]","ee","ai","[?]","[?]","oo","au","k","kh","g","gh","ng","c","ch","j","jh","ny","tt","tth","dd","ddh","nn","t","th","d","dh","n","[?]","p","ph","b","bb","m","y","r","[?]","l","ll","[?]","v","sh","[?]","s","h","[?]","[?]","'","[?]","aa","i","ii","u","uu","[?]","[?]","[?]","[?]","ee","ai","[?]","[?]","oo","au","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","khh","ghh","z","rr","[?]","f","[?]","[?]","[?]","[?]","[?]","[?]","[?]","0","1","2","3","4","5","6","7","8","9","N","H","","","G.E.O.","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","N","N","H","[?]","a","aa","i","ii","u","uu","R","[?]","eN","[?]","e","ai","oN","[?]","o","au","k","kh","g","gh","ng","c","ch","j","jh","ny","tt","tth","dd","ddh","nn","t","th","d","dh","n","[?]","p","ph","b","bh","m","ya","r","[?]","l","ll","[?]","v","sh","ss","s","h","[?]","[?]","'","'","aa","i","ii","u","uu","R","RR","eN","[?]","e","ai","oN","[?]","o","au","","[?]","[?]","AUM","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","RR","[?]","[?]","[?]","[?]","[?]","0","1","2","3","4","5","6","7","8","9","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var cQ=m((aGe,uQ)=>{uQ.exports=["[?]","N","N","H","[?]","a","aa","i","ii","u","uu","R","L","[?]","[?]","e","ai","[?]","[?]","o","au","k","kh","g","gh","ng","c","ch","j","jh","ny","tt","tth","dd","ddh","nn","t","th","d","dh","n","[?]","p","ph","b","bh","m","y","r","[?]","l","ll","[?]","","sh","ss","s","h","[?]","[?]","'","'","aa","i","ii","u","uu","R","[?]","[?]","[?]","e","ai","[?]","[?]","o","au","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","+","+","[?]","[?]","[?]","[?]","rr","rh","[?]","yy","RR","LL","[?]","[?]","[?]","[?]","0","1","2","3","4","5","6","7","8","9","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","N","H","[?]","a","aa","i","ii","u","uu","[?]","[?]","[?]","e","ee","ai","[?]","o","oo","au","k","[?]","[?]","[?]","ng","c","[?]","j","[?]","ny","tt","[?]","[?]","[?]","nn","t","[?]","[?]","[?]","n","nnn","p","[?]","[?]","[?]","m","y","r","rr","l","ll","lll","v","[?]","ss","s","h","[?]","[?]","[?]","[?]","aa","i","ii","u","uu","[?]","[?]","[?]","e","ee","ai","[?]","o","oo","au","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","+","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","0","1","2","3","4","5","6","7","8","9","+10+","+100+","+1000+","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var dQ=m((lGe,hQ)=>{hQ.exports=["[?]","N","N","H","[?]","a","aa","i","ii","u","uu","R","L","[?]","e","ee","ai","[?]","o","oo","au","k","kh","g","gh","ng","c","ch","j","jh","ny","tt","tth","dd","ddh","nn","t","th","d","dh","n","[?]","p","ph","b","bh","m","y","r","rr","l","ll","[?]","v","sh","ss","s","h","[?]","[?]","[?]","[?]","aa","i","ii","u","uu","R","RR","[?]","e","ee","ai","[?]","o","oo","au","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","+","+","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","RR","LL","[?]","[?]","[?]","[?]","0","1","2","3","4","5","6","7","8","9","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","N","H","[?]","a","aa","i","ii","u","uu","R","L","[?]","e","ee","ai","[?]","o","oo","au","k","kh","g","gh","ng","c","ch","j","jh","ny","tt","tth","dd","ddh","nn","t","th","d","dh","n","[?]","p","ph","b","bh","m","y","r","rr","l","ll","[?]","v","sh","ss","s","h","[?]","[?]","[?]","[?]","aa","i","ii","u","uu","R","RR","[?]","e","ee","ai","[?]","o","oo","au","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","+","+","[?]","[?]","[?]","[?]","[?]","[?]","[?]","lll","[?]","RR","LL","[?]","[?]","[?]","[?]","0","1","2","3","4","5","6","7","8","9","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var fQ=m((uGe,gQ)=>{gQ.exports=["[?]","[?]","N","H","[?]","a","aa","i","ii","u","uu","R","L","[?]","e","ee","ai","[?]","o","oo","au","k","kh","g","gh","ng","c","ch","j","jh","ny","tt","tth","dd","ddh","nn","t","th","d","dh","n","[?]","p","ph","b","bh","m","y","r","rr","l","ll","lll","v","sh","ss","s","h","[?]","[?]","[?]","[?]","aa","i","ii","u","uu","R","[?]","[?]","e","ee","ai","","o","oo","au","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","+","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","RR","LL","[?]","[?]","[?]","[?]","0","1","2","3","4","5","6","7","8","9","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","N","H","[?]","a","aa","ae","aae","i","ii","u","uu","R","RR","L","LL","e","ee","ai","o","oo","au","[?]","[?]","[?]","k","kh","g","gh","ng","nng","c","ch","j","jh","ny","jny","nyj","tt","tth","dd","ddh","nn","nndd","t","th","d","dh","n","[?]","nd","p","ph","b","bh","m","mb","y","r","[?]","l","[?]","[?]","v","sh","ss","s","h","ll","f","[?]","[?]","[?]","","[?]","[?]","[?]","[?]","aa","ae","aae","i","ii","u","[?]","uu","[?]","R","e","ee","ai","o","oo","au","L","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","RR","LL"," . ","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var mQ=m((cGe,pQ)=>{pQ.exports=["[?]","k","kh","kh","kh","kh","kh","ng","cch","ch","ch","ch","ch","y","d","t","th","th","th","n","d","t","th","th","th","n","b","p","ph","f","ph","f","ph","m","y","r","R","l","L","w","s","s","s","h","l","`","h","~","a","a","aa","am","i","ii","ue","uue","u","uu","'","[?]","[?]","[?]","[?]","Bh.","e","ae","o","ai","ai","ao","+","","","","","","","M",""," * ","0","1","2","3","4","5","6","7","8","9"," // "," /// ","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","k","kh","[?]","kh","[?]","[?]","ng","ch","[?]","s","[?]","[?]","ny","[?]","[?]","[?]","[?]","[?]","[?]","d","h","th","th","[?]","n","b","p","ph","f","ph","f","[?]","m","y","r","[?]","l","[?]","w","[?]","[?]","s","h","[?]","`","","~","a","","aa","am","i","ii","y","yy","u","uu","[?]","o","l","ny","[?]","[?]","e","ei","o","ay","ai","[?]","+","[?]","","","","","","M","[?]","[?]","0","1","2","3","4","5","6","7","8","9","[?]","[?]","hn","hm","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var yQ=m((hGe,bQ)=>{bQ.exports=["AUM","","","","","","",""," // "," * ","","-"," / "," / "," // "," -/ "," +/ "," X/ "," /XX/ "," /X/ ",", ","","","","","","","","","","","","0","1","2","3","4","5","6","7","8","9",".5","1.5","2.5","3.5","4.5","5.5","6.5","7.5","8.5","-.5","+","*","^","_","","~","[?]","]","[[","]]","","","k","kh","g","gh","ng","c","ch","j","[?]","ny","tt","tth","dd","ddh","nn","t","th","d","dh","n","p","ph","b","bh","m","ts","tsh","dz","dzh","w","zh","z","'","y","r","l","sh","ssh","s","h","a","kss","r","[?]","[?]","[?]","[?]","[?]","[?]","aa","i","ii","u","uu","R","RR","L","LL","e","ee","o","oo","M","H","i","ii","","","","","","","","","","","[?]","[?]","[?]","[?]","k","kh","g","gh","ng","c","ch","j","[?]","ny","tt","tth","dd","ddh","nn","t","th","d","dh","n","p","ph","b","bh","m","ts","tsh","dz","dzh","w","zh","z","'","y","r","l","sh","ss","s","h","a","kss","w","y","r","[?]","X"," :X: "," /O/ "," /o/ "," \\o\\ "," (O) ","","","","","","","","","","[?]","[?]","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var wQ=m((dGe,vQ)=>{vQ.exports=["k","kh","g","gh","ng","c","ch","j","jh","ny","nny","tt","tth","dd","ddh","nn","tt","th","d","dh","n","p","ph","b","bh","m","y","r","l","w","s","h","ll","a","[?]","i","ii","u","uu","e","[?]","o","au","[?]","aa","i","ii","u","uu","e","ai","[?]","[?]","[?]","N","'",":","","[?]","[?]","[?]","[?]","[?]","[?]","0","1","2","3","4","5","6","7","8","9"," / "," // ","n*","r*","l*","e*","sh","ss","R","RR","L","LL","R","RR","L","LL","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","A","B","G","D","E","V","Z","T`","I","K","L","M","N","O","P","Zh","R","S","T","U","P`","K`","G'","Q","Sh","Ch`","C`","Z'","C","Ch","X","J","H","E","Y","W","Xh","OE","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","a","b","g","d","e","v","z","t`","i","k","l","m","n","o","p","zh","r","s","t","u","p`","k`","g'","q","sh","ch`","c`","z'","c","ch","x","j","h","e","y","w","xh","oe","f","[?]","[?]","[?]","[?]"," // ","[?]","[?]","[?]"]});var xQ=m((gGe,DQ)=>{DQ.exports=["g","gg","n","d","dd","r","m","b","bb","s","ss","","j","jj","c","k","t","p","h","ng","nn","nd","nb","dg","rn","rr","rh","rN","mb","mN","bg","bn","","bs","bsg","bst","bsb","bss","bsj","bj","bc","bt","bp","bN","bbN","sg","sn","sd","sr","sm","sb","sbg","sss","s","sj","sc","sk","st","sp","sh","","","","","Z","g","d","m","b","s","Z","","j","c","t","p","N","j","","","","","ck","ch","","","pb","pN","hh","Q","[?]","[?]","[?]","[?]","[?]","","","a","ae","ya","yae","eo","e","yeo","ye","o","wa","wae","oe","yo","u","weo","we","wi","yu","eu","yi","i","a-o","a-u","ya-o","ya-yo","eo-o","eo-u","eo-eu","yeo-o","yeo-u","o-eo","o-e","o-ye","o-o","o-u","yo-ya","yo-yae","yo-yeo","yo-o","yo-i","u-a","u-ae","u-eo-eu","u-ye","u-u","yu-a","yu-eo","yu-e","yu-yeo","yu-ye","yu-u","yu-i","eu-u","eu-eu","yi-u","i-a","i-ya","i-o","i-u","i-eu","i-U","U","U-eo","U-u","U-i","UU","[?]","[?]","[?]","[?]","[?]","g","gg","gs","n","nj","nh","d","l","lg","lm","lb","ls","lt","lp","lh","m","b","bs","s","ss","ng","j","c","k","t","p","h","gl","gsg","ng","nd","ns","nZ","nt","dg","tl","lgs","ln","ld","lth","ll","lmg","lms","lbs","lbh","rNp","lss","lZ","lk","lQ","mg","ml","mb","ms","mss","mZ","mc","mh","mN","bl","bp","ph","pN","sg","sd","sl","sb","Z","g","ss","","kh","N","Ns","NZ","pb","pN","hn","hl","hm","hb","Q","[?]","[?]","[?]","[?]","[?]"]});var SQ=m((fGe,CQ)=>{CQ.exports=["ha","hu","hi","haa","hee","he","ho","[?]","la","lu","li","laa","lee","le","lo","lwa","hha","hhu","hhi","hhaa","hhee","hhe","hho","hhwa","ma","mu","mi","maa","mee","me","mo","mwa","sza","szu","szi","szaa","szee","sze","szo","szwa","ra","ru","ri","raa","ree","re","ro","rwa","sa","su","si","saa","see","se","so","swa","sha","shu","shi","shaa","shee","she","sho","shwa","qa","qu","qi","qaa","qee","qe","qo","[?]","qwa","[?]","qwi","qwaa","qwee","qwe","[?]","[?]","qha","qhu","qhi","qhaa","qhee","qhe","qho","[?]","qhwa","[?]","qhwi","qhwaa","qhwee","qhwe","[?]","[?]","ba","bu","bi","baa","bee","be","bo","bwa","va","vu","vi","vaa","vee","ve","vo","vwa","ta","tu","ti","taa","tee","te","to","twa","ca","cu","ci","caa","cee","ce","co","cwa","xa","xu","xi","xaa","xee","xe","xo","[?]","xwa","[?]","xwi","xwaa","xwee","xwe","[?]","[?]","na","nu","ni","naa","nee","ne","no","nwa","nya","nyu","nyi","nyaa","nyee","nye","nyo","nywa","'a","'u","[?]","'aa","'ee","'e","'o","'wa","ka","ku","ki","kaa","kee","ke","ko","[?]","kwa","[?]","kwi","kwaa","kwee","kwe","[?]","[?]","kxa","kxu","kxi","kxaa","kxee","kxe","kxo","[?]","kxwa","[?]","kxwi","kxwaa","kxwee","kxwe","[?]","[?]","wa","wu","wi","waa","wee","we","wo","[?]","`a","`u","`i","`aa","`ee","`e","`o","[?]","za","zu","zi","zaa","zee","ze","zo","zwa","zha","zhu","zhi","zhaa","zhee","zhe","zho","zhwa","ya","yu","yi","yaa","yee","ye","yo","[?]","da","du","di","daa","dee","de","do","dwa","dda","ddu","ddi","ddaa","ddee","dde","ddo","ddwa"]});var kQ=m((pGe,TQ)=>{TQ.exports=["ja","ju","ji","jaa","jee","je","jo","jwa","ga","gu","gi","gaa","gee","ge","go","[?]","gwa","[?]","gwi","gwaa","gwee","gwe","[?]","[?]","gga","ggu","ggi","ggaa","ggee","gge","ggo","[?]","tha","thu","thi","thaa","thee","the","tho","thwa","cha","chu","chi","chaa","chee","che","cho","chwa","pha","phu","phi","phaa","phee","phe","pho","phwa","tsa","tsu","tsi","tsaa","tsee","tse","tso","tswa","tza","tzu","tzi","tzaa","tzee","tze","tzo","[?]","fa","fu","fi","faa","fee","fe","fo","fwa","pa","pu","pi","paa","pee","pe","po","pwa","rya","mya","fya","[?]","[?]","[?]","[?]","[?]","[?]"," ",".",",",";",":",":: ","?","//","1","2","3","4","5","6","7","8","9","10+","20+","30+","40+","50+","60+","70+","80+","90+","100+","10,000+","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","a","e","i","o","u","v","ga","ka","ge","gi","go","gu","gv","ha","he","hi","ho","hu","hv","la","le","li","lo","lu","lv","ma","me","mi","mo","mu","na","hna","nah","ne","ni","no","nu","nv","qua","que","qui","quo","quu","quv","sa","s","se","si","so","su","sv","da","ta","de","te","di","ti","do","du","dv","dla","tla","tle","tli","tlo","tlu","tlv","tsa","tse","tsi","tso","tsu","tsv","wa","we","wi","wo","wu","wv","ya","ye","yi","yo","yu","yv","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var PQ=m((mGe,EQ)=>{EQ.exports=["[?]","e","aai","i","ii","o","oo","oo","ee","i","a","aa","we","we","wi","wi","wii","wii","wo","wo","woo","woo","woo","wa","wa","waa","waa","waa","ai","w","'","t","k","sh","s","n","w","n","[?]","w","c","?","l","en","in","on","an","pe","paai","pi","pii","po","poo","poo","hee","hi","pa","paa","pwe","pwe","pwi","pwi","pwii","pwii","pwo","pwo","pwoo","pwoo","pwa","pwa","pwaa","pwaa","pwaa","p","p","h","te","taai","ti","tii","to","too","too","dee","di","ta","taa","twe","twe","twi","twi","twii","twii","two","two","twoo","twoo","twa","twa","twaa","twaa","twaa","t","tte","tti","tto","tta","ke","kaai","ki","kii","ko","koo","koo","ka","kaa","kwe","kwe","kwi","kwi","kwii","kwii","kwo","kwo","kwoo","kwoo","kwa","kwa","kwaa","kwaa","kwaa","k","kw","keh","kih","koh","kah","ce","caai","ci","cii","co","coo","coo","ca","caa","cwe","cwe","cwi","cwi","cwii","cwii","cwo","cwo","cwoo","cwoo","cwa","cwa","cwaa","cwaa","cwaa","c","th","me","maai","mi","mii","mo","moo","moo","ma","maa","mwe","mwe","mwi","mwi","mwii","mwii","mwo","mwo","mwoo","mwoo","mwa","mwa","mwaa","mwaa","mwaa","m","m","mh","m","m","ne","naai","ni","nii","no","noo","noo","na","naa","nwe","nwe","nwa","nwa","nwaa","nwaa","nwaa","n","ng","nh","le","laai","li","lii","lo","loo","loo","la","laa","lwe","lwe","lwi","lwi","lwii","lwii","lwo","lwo","lwoo","lwoo","lwa","lwa","lwaa","lwaa","l","l","l","se","saai","si","sii","so","soo","soo","sa","saa","swe","swe","swi","swi","swii","swii","swo","swo","swoo","swoo"]});var RQ=m((bGe,_Q)=>{_Q.exports=["swa","swa","swaa","swaa","swaa","s","s","sw","s","sk","skw","sW","spwa","stwa","skwa","scwa","she","shi","shii","sho","shoo","sha","shaa","shwe","shwe","shwi","shwi","shwii","shwii","shwo","shwo","shwoo","shwoo","shwa","shwa","shwaa","shwaa","sh","ye","yaai","yi","yii","yo","yoo","yoo","ya","yaa","ywe","ywe","ywi","ywi","ywii","ywii","ywo","ywo","ywoo","ywoo","ywa","ywa","ywaa","ywaa","ywaa","y","y","y","yi","re","re","le","raai","ri","rii","ro","roo","lo","ra","raa","la","rwaa","rwaa","r","r","r","fe","faai","fi","fii","fo","foo","fa","faa","fwaa","fwaa","f","the","the","thi","thi","thii","thii","tho","thoo","tha","thaa","thwaa","thwaa","th","tthe","tthi","ttho","ttha","tth","tye","tyi","tyo","tya","he","hi","hii","ho","hoo","ha","haa","h","h","hk","qaai","qi","qii","qo","qoo","qa","qaa","q","tlhe","tlhi","tlho","tlha","re","ri","ro","ra","ngaai","ngi","ngii","ngo","ngoo","nga","ngaa","ng","nng","she","shi","sho","sha","the","thi","tho","tha","th","lhi","lhii","lho","lhoo","lha","lhaa","lh","the","thi","thii","tho","thoo","tha","thaa","th","b","e","i","o","a","we","wi","wo","wa","ne","ni","no","na","ke","ki","ko","ka","he","hi","ho","ha","ghu","gho","ghe","ghee","ghi","gha","ru","ro","re","ree","ri","ra","wu","wo","we","wee","wi","wa","hwu","hwo","hwe","hwee","hwi","hwa","thu","tho","the","thee","thi","tha","ttu","tto","tte","ttee","tti","tta","pu","po","pe","pee","pi","pa","p","gu","go","ge","gee","gi","ga","khu","kho","khe","khee","khi","kha","kku","kko","kke","kkee","kki"]});var FQ=m((yGe,LQ)=>{LQ.exports=["kka","kk","nu","no","ne","nee","ni","na","mu","mo","me","mee","mi","ma","yu","yo","ye","yee","yi","ya","ju","ju","jo","je","jee","ji","ji","ja","jju","jjo","jje","jjee","jji","jja","lu","lo","le","lee","li","la","dlu","dlo","dle","dlee","dli","dla","lhu","lho","lhe","lhee","lhi","lha","tlhu","tlho","tlhe","tlhee","tlhi","tlha","tlu","tlo","tle","tlee","tli","tla","zu","zo","ze","zee","zi","za","z","z","dzu","dzo","dze","dzee","dzi","dza","su","so","se","see","si","sa","shu","sho","she","shee","shi","sha","sh","tsu","tso","tse","tsee","tsi","tsa","chu","cho","che","chee","chi","cha","ttsu","ttso","ttse","ttsee","ttsi","ttsa","X",".","qai","ngai","nngi","nngii","nngo","nngoo","nnga","nngaa","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"," ","b","l","f","s","n","h","d","t","c","q","m","g","ng","z","r","a","o","u","e","i","ch","th","ph","p","x","p","<",">","[?]","[?]","[?]","f","v","u","yr","y","w","th","th","a","o","ac","ae","o","o","o","oe","on","r","k","c","k","g","ng","g","g","w","h","h","h","h","n","n","n","i","e","j","g","ae","a","eo","p","z","s","s","s","c","z","t","t","d","b","b","p","p","e","m","m","m","l","l","ng","ng","d","o","ear","ior","qu","qu","qu","s","yr","yr","yr","q","x",".",":","+","17","18","19","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var jQ=m((vGe,IQ)=>{IQ.exports=["[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","k","kh","g","gh","ng","c","ch","j","jh","ny","t","tth","d","ddh","nn","t","th","d","dh","n","p","ph","b","bh","m","y","r","l","v","sh","ss","s","h","l","q","a","aa","i","ii","u","uk","uu","uuv","ry","ryy","ly","lyy","e","ai","oo","oo","au","a","aa","aa","i","ii","y","yy","u","uu","ua","oe","ya","ie","e","ae","ai","oo","au","M","H","a`","","","","r","","!","","","","","","."," // ",":","+","++"," * "," /// ","KR","'","[?]","[?]","[?]","0","1","2","3","4","5","6","7","8","9","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var OQ=m((wGe,AQ)=>{AQ.exports=[" @ "," ... ",", ",". ",": "," // ","","-",", ",". ","","","","","","[?]","0","1","2","3","4","5","6","7","8","9","[?]","[?]","[?]","[?]","[?]","[?]","a","e","i","o","u","O","U","ee","n","ng","b","p","q","g","m","l","s","sh","t","d","ch","j","y","r","w","f","k","kha","ts","z","h","zr","lh","zh","ch","-","e","i","o","u","O","U","ng","b","p","q","g","m","t","d","ch","j","ts","y","w","k","g","h","jy","ny","dz","e","i","iy","U","u","ng","k","g","h","p","sh","t","d","j","f","g","h","ts","z","r","ch","zh","i","k","r","f","zh","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","H","X","W","M"," 3 "," 333 ","a","i","k","ng","c","tt","tth","dd","nn","t","d","p","ph","ss","zh","z","a","t","zh","gh","ng","c","jh","tta","ddh","t","dh","ss","cy","zh","z","u","y","bh","'","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var NQ=m((DGe,MQ)=>{MQ.exports=["A","a","B","b","B","b","B","b","C","c","D","d","D","d","D","d","D","d","D","d","E","e","E","e","E","e","E","e","E","e","F","f","G","g","H","h","H","h","H","h","H","h","H","h","I","i","I","i","K","k","K","k","K","k","L","l","L","l","L","l","L","l","M","m","M","m","M","m","N","n","N","n","N","n","N","n","O","o","O","o","O","o","O","o","P","p","P","p","R","r","R","r","R","r","R","r","S","s","S","s","S","s","S","s","S","s","T","t","T","t","T","t","T","t","U","u","U","u","U","u","U","u","U","u","V","v","V","v","W","w","W","w","W","w","W","w","W","w","X","x","X","x","Y","y","Z","z","Z","z","Z","z","h","t","w","y","a","S","[?]","[?]","[?]","[?]","A","a","A","a","A","a","A","a","A","a","A","a","A","a","A","a","A","a","A","a","A","a","A","a","E","e","E","e","E","e","E","e","E","e","E","e","E","e","E","e","I","i","I","i","O","o","O","o","O","o","O","o","O","o","O","o","O","o","O","o","O","o","O","o","O","o","O","o","U","u","U","u","U","u","U","u","U","u","U","u","U","u","Y","y","Y","y","Y","y","Y","y","[?]","[?]","[?]","[?]","[?]"]});var HQ=m((xGe,BQ)=>{BQ.exports=["a","a","a","a","a","a","a","a","A","A","A","A","A","A","A","A","e","e","e","e","e","e","[?]","[?]","E","E","E","E","E","E","[?]","[?]","e","e","e","e","e","e","e","e","E","E","E","E","E","E","E","E","i","i","i","i","i","i","i","i","I","I","I","I","I","I","I","I","o","o","o","o","o","o","[?]","[?]","O","O","O","O","O","O","[?]","[?]","u","u","u","u","u","u","u","u","[?]","U","[?]","U","[?]","U","[?]","U","o","o","o","o","o","o","o","o","O","O","O","O","O","O","O","O","a","a","e","e","e","e","i","i","o","o","u","u","o","o","[?]","[?]","a","a","a","a","a","a","a","a","A","A","A","A","A","A","A","A","e","e","e","e","e","e","e","e","E","E","E","E","E","E","E","E","o","o","o","o","o","o","o","o","O","O","O","O","O","O","O","O","a","a","a","a","a","[?]","a","a","A","A","A","A","A","'","i","'","~",'"~',"e","e","e","[?]","e","e","E","E","E","E","E","'`","''","'~","i","i","i","i","[?]","[?]","i","i","I","I","I","I","[?]","`'","`'","`~","u","u","u","u","R","R","u","u","U","U","U","U","R",'"`',`"'`,"`","[?]","[?]","o","o","o","[?]","o","o","O","O","O","O","O","'","`"]});var YQ=m((CGe,qQ)=>{qQ.exports=[" "," "," "," "," "," "," "," "," "," "," "," ","","","","","-","-","-","-","--","--","||","_","'","'",",","'",'"','"',",,",'"',"+","++","*","*>",".","..","...",".",` +`)}if(i){o.addLine("ARGUMENTS","Label"),o.addLine("");for(let a of e.options)o.addLine(a.name,"Special"),o.addLine(` ${a.description}`),o.addLine("");o.addLine("")}let s=v.getConfiguration(`list.source.${e.name}`);if(Object.keys(s).length){o.addLine("CONFIGURATIONS","Label"),o.addLine("");let a={};Pe.all.forEach(l=>{let{packageJSON:u}=l,{contributes:c}=u;if(!c)return;let{configuration:h}=c;if(h){let{properties:d}=h;if(d)for(let g of Object.keys(d))a[g]=d[g]}});for(let l of Object.keys(s)){let u=s[l],c=`list.source.${e.name}.${l}`,h=a[c]&&a[c].description?a[c].description:l;o.addLine(` "${c}"`,"MoreMsg"),o.addText(` - ${h}, current value: `),o.addText(JSON.stringify(u),"Special")}o.addLine("")}o.addLine("ACTIONS","Label"),o.addLine(` ${e.actions.map(a=>a.name).join(", ")}`),o.addLine(""),o.addLine("see ':h coc-list-options' for available list options.","Comment"),t.pauseNotification(),o.render(r,0,-1),t.command("setl nomod",!0),t.command("setl nomodifiable",!0),t.command("normal! gg",!0),t.command("nnoremap q :bd!",!0),await t.resumeNotification()}async switchMatcher(){let{matcher:e,interactive:t}=this.listOptions;if(t)return;let i=["fuzzy","strict","regex"],r=i.indexOf(e)+1;r>=i.length&&(r=0),this.listOptions.matcher=i[r],this.prompt.matcher=i[r],await this.worker.drawItems()}updateStatus(){let{ui:e,list:t,nvim:i}=this;if(!e.bufnr)return;let r=i.createBuffer(e.bufnr),o={mode:this.prompt.mode.toUpperCase(),args:this.args.join(" "),name:t.name,cwd:this.cwd,loading:this.loadingFrame,total:this.worker.length};r.setVar("list_status",o,!0),i.command("redraws",!0)}get context(){let{winid:e}=this.ui;return{options:this.listOptions,args:this.listArgs,input:this.prompt.input,cwd:v.cwd,window:this.window,buffer:this.buffer,listWindow:e?this.nvim.createWindow(e):void 0}}onMouseEvent(e){switch(e){case"":return this.ui.onMouse("mouseDown");case"":return this.ui.onMouse("mouseDrag");case"":return this.ui.onMouse("mouseUp");case"<2-LeftMouse>":return this.ui.onMouse("doubleClick")}}async doNumberSelect(e){if(!this.listOptions.numberSelect)return!1;let t=e.charCodeAt(0);if(t>=48&&t<=57){let i=Number(e);if(i==0&&(i=10),this.ui.length>=i)return this.nvim.pauseNotification(),this.ui.setCursor(i),await this.nvim.resumeNotification(),await this.doAction(),!0}return!1}jumpBack(){let{window:e,nvim:t}=this;e&&(t.pauseNotification(),t.call("coc#prompt#stop_prompt",["list"],!0),this.nvim.call("win_gotoid",[e.id],!0),t.resumeNotification(!1,!0))}async resume(){this.winid&&await this.hide();let e=await this.nvim.eval('[win_getid(),bufnr("%"),winheight("%")]');this.hidden=!1,this.window=this.nvim.createWindow(e[0]),this.buffer=this.nvim.createBuffer(e[1]),this.savedHeight=e[2],this.prompt.start(),await this.ui.resume(),this.listOptions.autoPreview&&await this.doAction("preview")}async doItemAction(e,t){let{noQuit:i,position:r}=this.listOptions,{nvim:o}=this,s=t.persist===!0||t.name=="preview";r==="tab"&&t.tabPersist&&(s=!0);let a=this.winid&&(s||i);try{if(a?s||(o.pauseNotification(),o.call("coc#prompt#stop_prompt",["list"],!0),o.call("win_gotoid",[this.context.window.id],!0),await o.resumeNotification()):await this.hide(),t.multiple)await Promise.resolve(t.execute(e,this.context));else if(t.parallel)await Promise.all(e.map(l=>Promise.resolve(t.execute(l,this.context))));else for(let l of e)await Promise.resolve(t.execute(l,this.context));a&&this.ui.restoreWindow(),t.reload&&a?await this.reloadItems():a&&this.nvim.command("redraw",!0)}catch(l){this.nvim.echoError(l)}}onInputChange(){this.timer&&clearTimeout(this.timer),this.listOptions.input=this.prompt.input,this.listOptions.interactive?(this.worker.stop(),this.timer=setTimeout(async()=>{await this.worker.loadItems(this.context)},this.interactiveDebounceTime)):this.worker.drawItems()}dispose(){this.hide(!0),$(this.disposables),this.worker.dispose(),this.ui.dispose()}}});var NK,BK,HK,KTe,CD,qK=_(()=>{"use strict";NK=require("child_process"),BK=require("events"),HK=x(require("readline"));re();ne();KTe=W()("list-commandTask"),CD=class extends BK.EventEmitter{constructor(e){super();this.opt=e;this.disposables=[];this.start()}start(){let{cmd:e,args:t,cwd:i,onLine:r}=this.opt,o=(0,NK.spawn)(e,t,{cwd:i||v.cwd,windowsHide:!0});this.disposables.push({dispose:()=>{o.kill()}}),o.on("error",a=>{this.emit("error",a.message)}),o.stderr.on("data",a=>{KTe.error(`[${e} Error]`,a.toString("utf8"))});let s=HK.default.createInterface(o.stdout);s.on("line",a=>{let l=r(a);l&&this.emit("data",l)}),s.on("close",()=>{this.emit("end")})}dispose(){$(this.disposables)}}});function QTe(n){switch(n){case"latex":return"tex";default:return n}}var YK,LR,WK,Fn,r4e,Vt,No=_(()=>{"use strict";YK=x(require("fs")),LR=x(require("path")),WK=x(require("readline")),Fn=x(q());Ee();re();et();_t();ne();qK();dD();r4e=W()("list-basic"),Vt=class{constructor(e){this.nvim=e;this.defaultAction="open";this.actions=[];this.options=[];this.disposables=[];this.config=new jh}get alignColumns(){return this.config.get("alignColumns",!1)}get hlGroup(){return this.config.get("previewHighlightGroup","Search")}get previewHeight(){return this.config.get("maxPreviewHeight",12)}get splitRight(){return this.config.get("previewSplitRight",!1)}get toplineStyle(){return this.config.get("previewToplineStyle","offset")}get toplineOffset(){return this.config.get("previewToplineOffset",3)}parseArguments(e){if(!this.optionMap){this.optionMap=new Map;for(let i of this.options){let r=i.name.split(/,\s*/g).map(s=>s.replace(/\s+.*/g,"")),o=i.key?i.key:r[r.length-1].replace(/^-/,"");for(let s of r)this.optionMap.set(s,{name:o,hasValue:i.hasValue})}}let t={};for(let i=0;i{let r=await this.convertLocation(t.location);await this.previewLocation(r,i)}});let{nvim:e}=this;this.createAction({name:"quickfix",multiple:!0,execute:async t=>{let i=await Promise.all(t.map(o=>this.convertLocation(o.location).then(s=>v.getQuickfixItem(s))));await e.call("setqflist",[i]);let r=await e.getVar("coc_quickfix_open_command");e.command(typeof r=="string"?r:"copen",!0)}});for(let t of["open","tabe","drop","vsplit","split"])this.createAction({name:t,execute:async(i,r)=>{await this.jumpTo(i.location,t=="open"?null:t,r)},tabPersist:t==="open"})}async convertLocation(e){if(typeof e=="string")return Fn.Location.create(e,Fn.Range.create(0,0,0,0));if(Fn.Location.is(e))return e;let t=I.parse(e.uri);if(t.scheme!="file")return Fn.Location.create(e.uri,Fn.Range.create(0,0,0,0));let i=WK.default.createInterface({input:YK.default.createReadStream(t.fsPath,{encoding:"utf8"})}),r=e.line,o=0,s=!1,a=await new Promise(l=>{i.on("line",u=>{if(!s){if(u.includes(r)){i.removeAllListeners(),i.close(),s=!0,l(u);return}o=o+1}}),i.on("error",u=>{this.nvim.errWriteLine(`Read ${t.fsPath} error: ${u.message}`),l(null)})});if(a!=null){let l=e.text?a.indexOf(e.text):0;l==0&&(l=a.match(/^\s*/)[0].length);let u=Fn.Position.create(o,l+(e.text?e.text.length:0));return Fn.Location.create(e.uri,Fn.Range.create(Fn.Position.create(o,l),u))}return Fn.Location.create(e.uri,Fn.Range.create(0,0,0,0))}async jumpTo(e,t,i){if(t==null&&i&&i.options.position==="tab"&&(t="tabe"),typeof e=="string"){await v.jumpTo(e,null,t);return}let{range:r,uri:o}=await this.convertLocation(e),s=r.start;s.line==0&&s.character==0&&Fe(s,r.end)==0&&(s=null),await v.jumpTo(o,s,t)}createAction(e){let{name:t}=e,i=this.actions.findIndex(r=>r.name==t);i!==-1&&this.actions.splice(i,1),this.actions.push(e)}async previewLocation(e,t){if(!t.listWindow)return;let{nvim:i}=this,{uri:r,range:o}=e,s=v.getDocument(e.uri),a=I.parse(r),l=[];if(s)l=s.getLines();else if(a.scheme=="file")try{l=(await Ac(a.fsPath,"utf8")).split(/\r?\n/)}catch(c){`${a.fsPath}`,c.toString()}let u={winid:t.window.id,range:jt(o)?null:o,lnum:o.start.line+1,name:a.scheme=="file"?a.fsPath:r,filetype:QTe(s?s.languageId:this.getLanguageId(a.fsPath)),position:t.options.position,maxHeight:this.previewHeight,splitRight:this.splitRight,hlGroup:this.hlGroup,scheme:a.scheme,toplineStyle:this.toplineStyle,toplineOffset:this.toplineOffset};await i.call("coc#list#preview",[l,u])}async preview(e,t){let{nvim:i}=this,{bufname:r,filetype:o,range:s,lines:a,lnum:l}=e,u={winid:t.window.id,lnum:s?s.start.line+1:l||1,filetype:o||"txt",position:t.options.position,maxHeight:this.previewHeight,splitRight:this.splitRight,hlGroup:this.hlGroup,toplineStyle:this.toplineStyle,toplineOffset:this.toplineOffset};r&&(u.name=r),s&&(u.range=s),await i.call("coc#list#preview",[a,u]),i.command("redraw",!0)}doHighlight(){}dispose(){$(this.disposables)}getLanguageId(e){let t=LR.default.extname(e);if(!t)return"";for(let i of v.documents){let r=I.parse(i.uri).fsPath;if(LR.default.extname(r)==t)return i.languageId}return""}}});function Dr(n,e){if(e.length===0)return[];let t=[];if(n){let i=Array(Math.min(...e.map(r=>r.label.length))).fill(0);for(let r of e)for(let o=0;oVa(ve({},r),{label:r.label.map((o,s)=>o.padEnd(i[s])).join(" ")}))}else t=e.map(i=>Va(ve({},i),{label:i.label.join(" ")}));return t}function ZK(n,e){if(n==="hidden")return"";if(n==="full")return e;if(n==="short"){let t=e.split(xD.default.sep);return t.length<2?e:[...t.slice(0,t.length-2).filter(r=>r.length>0).map(r=>r[0]),t[t.length-1]].join(xD.default.sep)}else{let t=e.split(xD.default.sep);return t[t.length-1]??""}}var xD,pu=_(()=>{"use strict";xD=x(require("path"))});function zTe(n,e){let t=n.indexOf(e);return t==-1?-1:n.length-t}var SD,JK=_(()=>{"use strict";Ei();ne();No();pu();SD=class extends Vt{constructor(e){super(e);this.defaultAction="run";this.description="registered commands of coc.nvim";this.name="commands";this.mru=v.createMru("commands"),this.addAction("run",async t=>{await he.fireCommand(t.data.cmd)}),this.addAction("append",async t=>{let{cmd:i}=t.data;await e.feedKeys(`:CocCommand ${i} `,"n",!1)})}async loadItems(e){let t=[],i=await this.mru.load(),{commandList:r,onCommandList:o,titles:s}=he,a=r.map(l=>l.id).concat(o);for(let l of[...new Set(a)])t.push({label:[l,...s.get(l)?[s.get(l)]:[]],filterText:l,data:{cmd:l,score:zTe(i,l)}});return t.sort((l,u)=>u.data.score-l.data.score),Dr(this.alignColumns,t)}doHighlight(){let{nvim:e}=this;e.pauseNotification(),e.command("syntax match CocCommandsTitle /\\t.*$/ contained containedin=CocCommandsLine",!0),e.command("highlight default link CocCommandsTitle Comment",!0),e.resumeNotification(!1,!0)}}});var mf,w4e,Bo,yf=_(()=>{"use strict";or();mf=x(require("path"));No();ne();Ei();Ee();et();Ne();w4e=W()("list-location"),Bo=class extends Vt{constructor(e){super(e);this.defaultAction="open";this.description="show locations saved by g:coc_jump_locations variable";this.name="location";this.createAction({name:"refactor",multiple:!0,execute:async t=>{let i=t.map(r=>r.location);await he.executeCommand("workspace.refactor",i)}}),this.addLocationActions()}async loadItems(e,t){let i=await this.nvim.getVar("coc_jump_locations");if(t.isCancellationRequested)return[];i=i||[],i.forEach(a=>{if(!a.uri){let l=mf.default.isAbsolute(a.filename)?a.filename:mf.default.join(e.cwd,a.filename);a.uri=I.file(l).toString()}if(!a.bufnr&&v.getDocument(a.uri)!=null&&(a.bufnr=v.getDocument(a.uri).bufnr),a.range)a.lnum=a.lnum||a.range.start.line+1,a.col=a.col||a.range.start.character+1;else{let{lnum:l,col:u}=a;a.range=Ye.create(l-1,u-1,l-1,u-1)}});let r=e.buffer.id,o=i.every(a=>a.bufnr&&r&&a.bufnr==r);return i.map(a=>{let l=o?"":a.filename,u=`${l}${a.text.trim()}`;mf.default.isAbsolute(l)&&(l=Je(e.cwd,l)?mf.default.relative(e.cwd,l):l);let c=`${l} |${a.type?a.type+" ":""}${a.lnum} col ${a.col}| `,h;if(a.range&&a.range.start.line==a.range.end.line){let g=V(c)+V(a.text.slice(0,a.range.start.character)),p=V(c)+V(a.text.slice(0,a.range.end.character));h={hlGroup:"Search",span:[g,p]}}return{label:c+a.text,location:rn.create(a.uri,a.range),filterText:u,ansiHighlights:h?[h]:void 0}})}doHighlight(){let{nvim:e}=this;e.pauseNotification(),e.command("syntax match CocLocationName /\\v^[^|]+/ contained containedin=CocLocationLine",!0),e.command("syntax match CocLocationPosition /\\v\\|\\w*\\s?\\d+\\scol\\s\\d+\\|/ contained containedin=CocLocationLine",!0),e.command("syntax match CocLocationError /Error/ contained containedin=CocLocationPosition",!0),e.command("syntax match CocLocationWarning /Warning/ contained containedin=CocLocationPosition",!0),e.command("highlight default link CocLocationName Directory",!0),e.command("highlight default link CocLocationPosition LineNr",!0),e.command("highlight default link CocLocationError Error",!0),e.command("highlight default link CocLocationWarning WarningMsg",!0),e.resumeNotification(!1,!0)}}});var $K,P4e,TD,XK=_(()=>{"use strict";$K=x(require("path"));fu();et();pu();yf();P4e=W()("list-symbols"),TD=class extends Bo{constructor(e,t){super(e);this.defaultAction="open";this.description="diagnostics of current workspace";this.name="diagnostics";Yt.onDidRefresh(async()=>{let i=t.getSession("diagnostics");i&&await i.reloadItems()},null,this.disposables)}async loadItems(e){let t=await Yt.getDiagnosticList(),{cwd:i}=e,r=this.getConfig(),o=r.get("includeCode",!0),s=r.get("pathFormat","full"),a=t.map(l=>{let u=Je(i,l.file)?$K.default.relative(i,l.file):l.file,c=ZK(s,u),h=s!=="hidden"?[`${c}:${l.lnum}`]:[],d=o?[`[${l.source}${l.code?"":"]"}`,l.code?`${l.code}]`:""]:[];return{label:[...h,...d,l.severity,l.message],location:l.location}});return Dr(this.alignColumns,a)}doHighlight(){let{nvim:e}=this;e.pauseNotification(),e.command("syntax match CocDiagnosticsFile /\\v^\\s*\\S+/ contained containedin=CocDiagnosticsLine",!0),e.command("syntax match CocDiagnosticsError /\\tError\\s*\\t/ contained containedin=CocDiagnosticsLine",!0),e.command("syntax match CocDiagnosticsWarning /\\tWarning\\s*\\t/ contained containedin=CocDiagnosticsLine",!0),e.command("syntax match CocDiagnosticsInfo /\\tInformation\\s*\\t/ contained containedin=CocDiagnosticsLine",!0),e.command("syntax match CocDiagnosticsHint /\\tHint\\s*\\t/ contained containedin=CocDiagnosticsLine",!0),e.command("highlight default link CocDiagnosticsFile Comment",!0),e.command("highlight default link CocDiagnosticsError CocErrorSign",!0),e.command("highlight default link CocDiagnosticsWarning CocWarningSign",!0),e.command("highlight default link CocDiagnosticsInfo CocInfoSign",!0),e.command("highlight default link CocDiagnosticsHint CocHintSign",!0),e.resumeNotification(!1,!0)}}});function eke(n){switch(n){case"unknown":return 2;case"activated":return 1;case"disabled":return-1;default:return 0}}var Hh,UK,kD,VTe,ED,GK=_(()=>{"use strict";Hh=x(Bn()),UK=x(require("os")),kD=x(require("path"));Ee();Oo();re();ne();Ae();No();pu();VTe=W()("list-extensions"),ED=class extends Vt{constructor(e){super(e);this.defaultAction="toggle";this.description="manage coc extensions";this.name="extensions";this.addAction("toggle",async t=>{let{id:i,state:r}=t.data;r!="disabled"&&(r=="activated"?await Pe.deactivate(i):await Pe.activate(i),await Pt(100))},{persist:!0,reload:!0,parallel:!0}),this.addAction("configuration",async t=>{let{root:i}=t.data,r=kD.default.join(i,"package.json");if(Hh.default.existsSync(r)){let s=Hh.default.readFileSync(r,"utf8").split(/\r?\n/).findIndex(a=>a.includes('"contributes"'));await v.jumpTo(I.file(r).toString(),{line:s==-1?0:s,character:0})}}),this.addAction("open",async t=>{let{root:i}=t.data;v.env.isiTerm?e.call("coc#ui#iterm_open",[i],!0):e.call("coc#ui#open_url",[i],!0)}),this.addAction("disable",async t=>{let{id:i,state:r}=t.data;r!=="disabled"&&await Pe.toggleExtension(i)},{persist:!0,reload:!0,parallel:!0}),this.addAction("enable",async t=>{let{id:i,state:r}=t.data;r=="disabled"&&await Pe.toggleExtension(i)},{persist:!0,reload:!0,parallel:!0}),this.addAction("lock",async t=>{let{id:i}=t.data;await Pe.lockExtension(i)},{persist:!0,reload:!0}),this.addAction("help",async t=>{let{root:i}=t.data,o=(await Hh.default.readdir(i)).find(s=>/^readme/i.test(s));o&&await v.callAsync("coc#util#jump",["edit",kD.default.join(i,o)])}),this.addAction("reload",async t=>{let{id:i}=t.data;await Pe.reloadExtension(i)},{persist:!0,reload:!0}),this.addAction("fix",async t=>{let{root:i,isLocal:r}=t.data,{npm:o}=Pe;if(r){k.showMessage("Can't fix for local extension.","warning");return}if(!o)return;let s=kD.default.join(i,"node_modules");Hh.default.existsSync(s)&&Hh.default.removeSync(s);let a=await k.createTerminal({cwd:i});!await a.show(!1)||(v.nvim.command("startinsert",!0),a.sendText(`${o} install --production --ignore-scripts --no-lockfile`,!0))}),this.addMultipleAction("uninstall",async t=>{let i=[];for(let r of t)r.data.isLocal||i.push(r.data.id);Pe.uninstallExtension(i).catch(r=>{VTe.error(r)})})}async loadItems(e){let t=[],i=await Pe.getExtensionStates(),r=await Pe.getLockedList();for(let o of i){let s="+";o.state=="disabled"?s="-":o.state=="activated"?s="*":o.state=="unknown"&&(s="?");let a=await this.nvim.call("resolve",o.root),l=r.includes(o.id);t.push({label:[`${s} ${o.id}${l?" \uE0A2":""}`,...o.isLocal?["[RTP]"]:[],o.version,a.replace(UK.default.homedir(),"~")],filterText:o.id,data:{id:o.id,root:a,state:o.state,isLocal:o.isLocal,priority:eke(o.state)}})}return t.sort((o,s)=>o.data.priority!=s.data.priority?s.data.priority-o.data.priority:s.data.id-o.data.id?1:-1),Dr(this.alignColumns,t)}doHighlight(){let{nvim:e}=this;e.pauseNotification(),e.command("syntax match CocExtensionsActivited /\\v^\\*/ contained containedin=CocExtensionsLine",!0),e.command("syntax match CocExtensionsLoaded /\\v^\\+/ contained containedin=CocExtensionsLine",!0),e.command("syntax match CocExtensionsDisabled /\\v^-/ contained containedin=CocExtensionsLine",!0),e.command("syntax match CocExtensionsName /\\v%3c\\S+/ contained containedin=CocExtensionsLine",!0),e.command("syntax match CocExtensionsRoot /\\v\\t[^\\t]*$/ contained containedin=CocExtensionsLine",!0),e.command("syntax match CocExtensionsLocal /\\v\\[RTP\\]/ contained containedin=CocExtensionsLine",!0),e.command("highlight default link CocExtensionsActivited Special",!0),e.command("highlight default link CocExtensionsLoaded Normal",!0),e.command("highlight default link CocExtensionsDisabled Comment",!0),e.command("highlight default link CocExtensionsName String",!0),e.command("highlight default link CocExtensionsLocal MoreMsg",!0),e.command("highlight default link CocExtensionsRoot Comment",!0),e.resumeNotification(!1,!0)}}});var KK,QK,PD,zK=_(()=>{"use strict";KK=x(require("path"));Ee();QK=x(Bn());et();ne();Ae();No();PD=class extends Vt{constructor(e){super(e);this.defaultAction="edit";this.description="list of current workspace folders";this.name="folders";this.addAction("edit",async t=>{let i=await e.call("input",["Folder: ",t.label,"dir"]),r=await $t(i);if(!r||!r.isDirectory()){k.showMessage(`invalid path: ${i}`,"error");return}v.workspaceFolderControl.renameWorkspaceFolder(t.label,i)}),this.addAction("delete",async t=>{v.workspaceFolderControl.removeWorkspaceFolder(t.label)},{reload:!0,persist:!0}),this.addAction("newfile",async(t,i)=>{let r=await k.requestInput("File name",t.label+"/");if(!r)return;let o=KK.default.dirname(r),s=await $t(o);(!s||!s.isDirectory())&&QK.default.mkdirpSync(o),await v.createFile(r,{overwrite:!1,ignoreIfExists:!0}),await this.jumpTo(I.file(r).toString(),null,i)})}async loadItems(e){return v.folderPaths.map(t=>({label:t}))}}});function VK(n){if(!n.startsWith("file:"))return n;let e=I.parse(n).fsPath;return Je(v.cwd,e)?eQ.default.relative(v.cwd,e):e}var eQ,_D,tQ=_(()=>{"use strict";Te();ne();eQ=x(require("path"));No();or();Ee();et();_D=class extends Vt{constructor(e){super(e);this.defaultAction="open";this.description="links of current buffer";this.name="links";this.addAction("open",async t=>{let{target:i}=t.data;I.parse(i).scheme.startsWith("http")?await e.call("coc#ui#open_url",i):await v.jumpTo(i)}),this.addAction("jump",async t=>{let{location:i}=t.data;await v.jumpTo(i.uri,i.range.start)})}async loadItems(e,t){let i=await e.window.buffer,r=v.getDocument(i.id);if(!r)return null;let o=[],s=await j.getDocumentLinks(r.textDocument,t);if(t.isCancellationRequested)return null;if(s==null)throw new Error("Links provider not found.");let a=[];for(let l of s)l.target?o.push({label:VK(l.target),data:{target:l.target,location:rn.create(r.uri,l.range)}}):(l=await j.resolveDocumentLink(l,t),l.target&&o.push({label:VK(l.target),data:{target:l.target,location:rn.create(r.uri,l.range)}}),a.push(l));return o}}});function tke(n,e){let t=n.indexOf(e);return t==-1?-1:n.length-t}var RD,iQ=_(()=>{"use strict";No();av();pu();RD=class extends Vt{constructor(e,t){super(e);this.listMap=t;this.name="lists";this.defaultAction="open";this.description="registered lists of coc.nvim";this.mru=new Sa("lists");this.addAction("open",async i=>{let{name:r}=i.data;await this.mru.add(r),e.command(`CocList ${r}`,!0)})}async loadItems(e){let t=[],i=await this.mru.load();for(let r of this.listMap.values())r.name!="lists"&&t.push({label:[r.name,...r.description?[r.description]:[]],data:{name:r.name,interactive:r.interactive,score:tke(i,r.name)}});return t.sort((r,o)=>o.data.score-r.data.score),Dr(this.alignColumns,t)}doHighlight(){let{nvim:e}=this;e.pauseNotification(),e.command("syntax match CocListsDesc /\\t.*$/ contained containedin=CocListsLine",!0),e.command("highlight default link CocListsDesc Comment",!0),e.resumeNotification(!1,!0)}}});function Ho(n){switch(n){case wt.SymbolKind.File:return"File";case wt.SymbolKind.Module:return"Module";case wt.SymbolKind.Namespace:return"Namespace";case wt.SymbolKind.Package:return"Package";case wt.SymbolKind.Class:return"Class";case wt.SymbolKind.Method:return"Method";case wt.SymbolKind.Property:return"Property";case wt.SymbolKind.Field:return"Field";case wt.SymbolKind.Constructor:return"Constructor";case wt.SymbolKind.Enum:return"Enum";case wt.SymbolKind.Interface:return"Interface";case wt.SymbolKind.Function:return"Function";case wt.SymbolKind.Variable:return"Variable";case wt.SymbolKind.Constant:return"Constant";case wt.SymbolKind.String:return"String";case wt.SymbolKind.Number:return"Number";case wt.SymbolKind.Boolean:return"Boolean";case wt.SymbolKind.Array:return"Array";case wt.SymbolKind.Object:return"Object";case wt.SymbolKind.Key:return"Key";case wt.SymbolKind.Null:return"Null";case wt.SymbolKind.EnumMember:return"EnumMember";case wt.SymbolKind.Struct:return"Struct";case wt.SymbolKind.Event:return"Event";case wt.SymbolKind.Operator:return"Operator";case wt.SymbolKind.TypeParameter:return"TypeParameter";default:return"Unknown"}}var wt,bf=_(()=>{"use strict";wt=x(q())});function nQ(n,e){return`${n.name}${e?` ${e}`:""}`}function ike(n,e){let t=n.selectionRange,i=e.selectionRange;return t.start.line!=i.start.line?t.start.line-i.start.line:t.start.character-i.start.character}var rQ,oQ,yKe,LD,sQ=_(()=>{"use strict";rQ=x(require("path"));or();Ee();oQ=x(Tg());Te();re();et();ne();yf();bf();pu();yKe=W()("list-symbols");LD=class extends Bo{constructor(){super(...arguments);this.description="symbols of current document";this.name="outline";this.options=[{name:"-k, -kind KIND",hasValue:!0,description:"filter symbol by kind"}]}async loadItems(e,t){let i=await e.window.buffer,r=v.getDocument(i.id);if(!r)return null;let s=this.getConfig().get("ctagsFilestypes",[]),a,l=this.parseArguments(e.args);if(s.includes(r.filetype)||(a=await j.getDocumentSymbol(r.textDocument,t)),t.isCancellationRequested)return[];if(!a)return await this.loadCtagsSymbols(r);if(a.length==0)return[];let u=l.kind?l.kind.toLowerCase():null,c=[];if(!a[0].hasOwnProperty("location")){let d=function(g,p=0){g.sort(ike);for(let f of g){let m=Ho(f.kind),b=rn.create(r.uri,f.selectionRange);c.push({label:[`${"| ".repeat(p)}${f.name}`,`[${m}]`,`${f.range.start.line+1}`],filterText:nQ(f,l.kind==""?m:null),location:b,data:{kind:m}}),f.children&&f.children.length&&d(f.children,p+1)}};d(a),u&&(c=c.filter(g=>g.data.kind.toLowerCase().indexOf(u)==0))}else{a.sort((d,g)=>{let p=d.location.range.start,f=g.location.range.start,m=p.line-f.line;return m==0?p.character-f.character:m});for(let d of a){let g=Ho(d.kind);d.name.endsWith(") callback")||u&&!g.toLowerCase().startsWith(u)||(d.location.uri===void 0&&(d.location.uri=r.uri),c.push({label:[d.name,`[${g}]`,`${d.location.range.start.line+1}`],filterText:nQ(d,l.kind==""?g:null),location:d.location}))}}return Dr(this.alignColumns,c)}doHighlight(){let{nvim:e}=this;e.pauseNotification(),e.command("syntax match CocOutlineName /\\v\\s?[^\\t]+\\s/ contained containedin=CocOutlineLine",!0),e.command("syntax match CocOutlineIndentLine /\\v\\|/ contained containedin=CocOutlineLine,CocOutlineName",!0),e.command("syntax match CocOutlineKind /\\[\\w\\+\\]/ contained containedin=CocOutlineLine",!0),e.command("syntax match CocOutlineLine /\\d\\+$/ contained containedin=CocOutlineLine",!0),e.command("highlight default link CocOutlineName Normal",!0),e.command("highlight default link CocOutlineIndentLine Comment",!0),e.command("highlight default link CocOutlineKind Typedef",!0),e.command("highlight default link CocOutlineLine Comment",!0),e.resumeNotification(!1,!0)}async loadCtagsSymbols(e){if(!oQ.default.sync("ctags",{nothrow:!0}))return[];let t=I.parse(e.uri),i=rQ.default.extname(t.fsPath),r="",s=`${await this.nvim.call("tempname")}.${i}`,a=await this.nvim.call("fnameescape",s);await Zy(a,e.getDocumentContent());try{r=await bo(`ctags -f - --excmd=number --language-force=${e.filetype} ${a}`)}catch{}if(r.trim().length||(r=await bo(`ctags -f - --excmd=number ${a}`)),r=r.trim(),!r)return[];let l=r.split(/\r?\n/),u=[];for(let c of l){let h=c.split(" ");if(h.length<4)continue;let d=Number(h[2].replace(/;"$/,"")),g=e.getline(d-1);if(!g)continue;let p=g.indexOf(h[0]),f=p==-1?0:p,m=Ye.create(d-1,f,d-1,f+h[0].length);u.push({label:`${h[0]} [${h[3]}] ${d}`,filterText:h[0],location:rn.create(e.uri,m),data:{line:d}})}return u.sort((c,h)=>c.data.line-h.data.line),u}}});var FD,aQ=_(()=>{"use strict";pf();No();re();pu();FD=class extends Vt{constructor(e){super(e);this.defaultAction="toggle";this.description="registered services of coc.nvim";this.name="services";this.addAction("toggle",async t=>{let{id:i}=t.data;await Ui.toggle(i),await Pt(100)},{persist:!0,reload:!0})}async loadItems(e){let t=Ui.getServiceStats();return t.sort((i,r)=>i.id>r.id?-1:1),Dr(this.alignColumns,t.map(i=>({label:[i.state=="running"?"*":" ",i.id,`[${i.state}]`,i.languageIds.join(", ")],data:{id:i.id}})))}doHighlight(){let{nvim:e}=this;e.pauseNotification(),e.command("syntax match CocServicesPrefix /\\v^./ contained containedin=CocServicesLine",!0),e.command("syntax match CocServicesName /\\v%3c\\S+/ contained containedin=CocServicesLine",!0),e.command("syntax match CocServicesStat /\\v\\t\\[\\w+\\]/ contained containedin=CocServicesLine",!0),e.command("syntax match CocServicesLanguages /\\v(\\])@<=.*$/ contained containedin=CocServicesLine",!0),e.command("highlight default link CocServicesPrefix Special",!0),e.command("highlight default link CocServicesName Type",!0),e.command("highlight default link CocServicesStat Statement",!0),e.command("highlight default link CocServicesLanguages Comment",!0),e.resumeNotification(!1,!0)}}});function ID(n,e){return n.length>e?n.slice(0,e-1)+".":n+" ".repeat(e-n.length)}var PKe,jD,lQ=_(()=>{"use strict";or();Ee();Io();No();PKe=W()("list-sources"),jD=class extends Vt{constructor(e){super(e);this.defaultAction="toggle";this.description="registered completion sources";this.name="sources";this.addAction("toggle",async t=>{let{name:i}=t.data;ct.toggleSource(i)},{persist:!0,reload:!0}),this.addAction("refresh",async t=>{let{name:i}=t.data;await ct.refresh(i)},{persist:!0,reload:!0}),this.addAction("open",async(t,i)=>{let{location:r}=t;r&&await this.jumpTo(r,null,i)})}async loadItems(e){let t=ct.sourceStats();return t.sort((i,r)=>i.type!=r.type?i.typer.name?-1:1),t.map(i=>{let r=i.disabled?" ":"*",o;return i.filepath&&(o=rn.create(I.file(i.filepath).toString(),Ye.create(0,0,0,0))),{label:`${r} ${ID(i.name,22)} ${ID("["+i.shortcut+"]",10)} ${ID(i.triggerCharacters.join(""),10)} ${ID(i.priority.toString(),3)} ${i.filetypes.join(",")}`,location:o,data:{name:i.name}}})}doHighlight(){let{nvim:e}=this;e.pauseNotification(),e.command("syntax match CocSourcesPrefix /\\v^./ contained containedin=CocSourcesLine",!0),e.command("syntax match CocSourcesName /\\v%3c\\S+/ contained containedin=CocSourcesLine",!0),e.command("syntax match CocSourcesType /\\v%25v.*%36v/ contained containedin=CocSourcesLine",!0),e.command("syntax match CocSourcesPriority /\\v%46v.*%50v/ contained containedin=CocSourcesLine",!0),e.command("syntax match CocSourcesFileTypes /\\v\\S+$/ contained containedin=CocSourcesLine",!0),e.command("highlight default link CocSourcesPrefix Special",!0),e.command("highlight default link CocSourcesName Type",!0),e.command("highlight default link CocSourcesPriority Number",!0),e.command("highlight default link CocSourcesFileTypes Comment",!0),e.command("highlight default link CocSourcesType Statement",!0),e.resumeNotification(!1,!0)}}});function uQ(n,e,t,i,r){let o="",s=[],a=[e,`[${t}]`,i],l=["Normal","Typedef","Comment"];for(let c=0;c{"use strict";FR=x(require("path")),cQ=x(Yn());Ee();Te();ne();yf();bf();et();ff();hQ=x(q());Ne();PR();qKe=W()("list-symbols"),AD=class extends Bo{constructor(){super(...arguments);this.interactive=!0;this.description="search workspace symbols";this.detail="Symbols list is provided by server, it works on interactive mode only.";this.name="symbols";this.options=[{name:"-k, -kind KIND",description:"Filter symbols by kind.",hasValue:!0}]}async loadItems(e,t){let{input:i}=e;this.cwd=e.cwd;let r=this.parseArguments(e.args),o=r.kind?r.kind.toLowerCase():"";if(!e.options.interactive)throw new Error("Symbols only works on interactive mode");let s=await j.getWorkspaceSymbols(i,t);if(!s)throw new Error("No workspace symbols provider registered");let l=this.getConfig().get("excludes",[]),u=[];for(let c of s){let h=Ho(c.kind);if(o&&h.toLowerCase()!=o)continue;let d=I.parse(c.location.uri).fsPath;if(Je(v.cwd,d)&&(d=FR.default.relative(v.cwd,d)),l.some(p=>(0,cQ.default)(d,p)))continue;let g=uQ(i,c.name,h,d,c.location);g.data={original:c,input:i,kind:c.kind,file:d,score:Nh(i,c.name)},u.push(g)}return u.sort((c,h)=>c.data.score!=h.data.score?h.data.score-c.data.score:c.data.kind!=h.data.kind?c.data.kind-h.data.kind:c.data.file.length-h.data.file.length),u}async resolveItem(e){let t=e.data.original;if(!t)return null;let i=new hQ.CancellationTokenSource,r=await j.resolveWorkspaceSymbol(t,i.token);if(!r)return null;let o=Ho(r.kind),s=I.parse(r.location.uri).fsPath;return Je(this.cwd,s)&&(s=FR.default.relative(this.cwd,s)),uQ(e.data.input,t.name,o,s,t.location)}doHighlight(){}}});var pQ,MD,fQ,nke,gQ,mQ,Pi,OD=_(()=>{"use strict";pQ=x(Oi()),MD=x(q());we();Oo();re();ne();Ae();dD();yK();vK();OK();JK();XK();GK();zK();tQ();iQ();yf();sQ();aQ();lQ();dQ();fQ=x(jg()),nke=W()("list-manager"),gQ=["","","","<2-LeftMouse>"],mQ=class{constructor(){this.plugTs=0;this.sessionsMap=new Map;this.disposables=[];this.listMap=new Map}init(e){this.nvim=e,this.config=new jh,this.prompt=new pD(e,this.config),this.mappings=new gD(this,e,this.config);let t=this.config.get("selectedSignText","*");e.command(`sign define CocSelected text=${t} texthl=CocSelectedText linehl=CocSelectedLine`,!0),P.on("InputChar",this.onInputChar,this,this.disposables);let i=(0,pQ.default)(async()=>{await this.getCurrentSession()&&this.prompt.drawPrompt()},100);P.on("FocusGained",i,null,this.disposables),P.on("WinEnter",o=>{let s=this.getSessionByWinid(o);s&&this.prompt.start(s.listOptions)},null,this.disposables);let r;P.on("WinLeave",o=>{r&&clearTimeout(r),this.getSessionByWinid(o)&&setTimeout(()=>{this.prompt.cancel()},v.isVim?50:0)},null,this.disposables),this.disposables.push({dispose:()=>{i.clear()}}),this.prompt.onDidChangeInput(()=>{let{session:o}=this;!o||(o.onInputChange(),o.history.filter())}),this.registerList(new _D(e)),this.registerList(new Bo(e)),this.registerList(new AD(e)),this.registerList(new LD(e)),this.registerList(new SD(e)),this.registerList(new ED(e)),this.registerList(new TD(e,this)),this.registerList(new jD(e)),this.registerList(new FD(e)),this.registerList(new RD(e,this.listMap)),this.registerList(new PD(e))}async start(e){let t=this.parseArgs(e);if(!t)return;let{name:i}=t.list,r=this.sessionsMap.get(i);r&&r.dispose(),this.prompt.start(t.options);let o=new DD(this.nvim,this.prompt,t.list,t.options,t.listArgs,this.config);this.sessionsMap.set(i,o),this.lastSession=o;try{await o.start(e)}catch(s){this.nvim.call("coc#prompt#stop_prompt",["list"],!0);let a=s instanceof Error?s.message:s.toString();k.showMessage(`Error on "CocList ${i}": ${a}`,"error"),nke.error(s)}}getSessionByWinid(e){for(let t of this.sessionsMap.values())if(t&&t.winid==e)return this.lastSession=t,t;return null}async getCurrentSession(){let{id:e}=await this.nvim.window;for(let t of this.sessionsMap.values())if(t&&t.winid==e)return this.lastSession=t,t;return null}async resume(e){var t;if(!e)await((t=this.session)==null?void 0:t.resume());else{let i=this.sessionsMap.get(e);if(!i){k.showMessage(`Can't find exists ${e} list`);return}await i.resume()}}async doAction(e){let t=this.lastSession;!t||await t.doAction(e)}async first(e){let t=this.getSession(e);t&&await t.first()}async last(e){let t=this.getSession(e);t&&await t.last()}async previous(e){let t=this.getSession(e);t&&await t.previous()}async next(e){let t=this.getSession(e);t&&await t.next()}getSession(e){return e?this.sessionsMap.get(e):this.session}async cancel(e=!0){this.prompt.cancel(),!!e&&this.session&&await this.session.hide()}reset(){this.prompt.cancel(),this.lastSession=void 0;for(let e of this.sessionsMap.values())e.dispose();this.sessionsMap.clear(),this.nvim.call("coc#prompt#stop_prompt",["list"],!0)}async switchMatcher(){var e;await((e=this.session)==null?void 0:e.switchMatcher())}async togglePreview(){let{nvim:e}=this,t=await e.call("coc#list#get_preview",[0]);t!=-1?(await e.call("coc#window#close",[t]),await e.command("redraw")):await this.doAction("preview")}async chooseAction(){let{lastSession:e}=this;e&&await e.chooseAction()}parseArgs(e){let t=[],i=!1,r=!1,o=!1,s=!1,a=!1,l=!1,u,c="",h="fuzzy",d="bottom",g=[],p=[];for(let b of e)if(!u&&b.startsWith("-"))p.push(b);else if(u)g.push(b);else{if(!/^\w+$/.test(b))return k.showMessage(`Invalid list option: "${b}"`,"error"),null;u=b}u=u||"lists";let f=v.getConfiguration(`list.source.${u}`);!p.length&&!g.length&&(p=f.get("defaultOptions",[])),g.length||(g=f.get("defaultArgs",[]));for(let b of p)if(b.startsWith("--input"))c=b.slice(8);else if(b=="--number-select"||b=="-N")o=!0;else if(b=="--auto-preview"||b=="-A")r=!0;else if(b=="--regex"||b=="-R")h="regex";else if(b=="--strict"||b=="-S")h="strict";else if(b=="--interactive"||b=="-I")i=!0;else if(b=="--top")d="top";else if(b=="--tab")d="tab";else if(b=="--ignore-case"||b=="--normal"||b=="--no-sort")t.push(b.slice(2));else if(b=="--first")a=!0;else if(b=="--reverse")l=!0;else if(b=="--no-quit")s=!0;else return k.showMessage(`Invalid option "${b}" of list`,"error"),null;let m=this.listMap.get(u);return m?i&&!m.interactive?(k.showMessage(`Interactive mode of "${u}" list not supported`,"error"),null):{list:m,listArgs:g,options:{numberSelect:o,autoPreview:r,reverse:l,noQuit:s,first:a,input:c,interactive:i,matcher:h,position:d,ignorecase:!!t.includes("ignore-case"),mode:t.includes("normal")?"normal":"insert",sort:!t.includes("no-sort")}}:(k.showMessage(`List ${u} not found`,"error"),null)}async onInputChar(e,t,i){if(e!="list")return;let{mode:r}=this.prompt,o=Date.now();if(t==""||this.plugTs&&o-this.plugTs<20){this.plugTs=o;return}if(!!t){if(t==""){await this.cancel();return}r=="insert"?await this.onInsertInput(t,i):await this.onNormalInput(t,i)}}async onInsertInput(e,t){let{session:i}=this;if(!i)return;if(gQ.includes(e)){await this.onMouseEvent(e);return}if(!(await i.doNumberSelect(e)||await this.mappings.doInsertKeymap(e)||t)){if(e.startsWith("<")&&e.endsWith(">")){await this.feedkeys(e,!1);return}for(let s of e){let a=s.codePointAt(0);if(a==65533||a<32||a>=127&&a<=159)return;await this.prompt.acceptCharacter(s)}}}async onNormalInput(e,t){if(gQ.includes(e)){await this.onMouseEvent(e);return}await this.mappings.doNormalKeymap(e)||await this.feedkeys(e)}onMouseEvent(e){if(this.session)return this.session.onMouseEvent(e)}async feedkeys(e,t=!0){let{nvim:i}=this;e=e.startsWith("<")&&e.endsWith(">")?`\\${e}`:e,await i.call("coc#prompt#stop_prompt",["list"]),await i.call("eval",[`feedkeys("${e}", "${t?"i":"in"}")`]),this.prompt.start()}async command(e){let{nvim:t}=this;await t.call("coc#prompt#stop_prompt",["list"]),await t.command(e),this.prompt.start()}async normal(e,t=!0){let{nvim:i}=this;await i.call("coc#prompt#stop_prompt",["list"]),await i.command(`normal${t?"!":""} ${e}`),this.prompt.start()}async call(e){if(this.session)return await this.session.call(e)}get session(){return this.lastSession}registerList(e){let{name:t}=e,i=this.listMap.get(t);return this.listMap.has(t)&&(i&&(typeof i.dispose=="function"&&i.dispose(),this.listMap.delete(t)),k.showMessage(`list "${t}" recreated.`)),this.listMap.set(t,e),Pe.addSchemeProperty(`list.source.${t}.defaultAction`,{type:"string",default:null,description:`Default action of "${t}" list.`}),Pe.addSchemeProperty(`list.source.${t}.defaultOptions`,{type:"array",default:e.interactive?["--interactive"]:[],description:`Default list options of "${t}" list, only used when both list option and argument are empty.`,uniqueItems:!0,items:{type:"string",enum:["--top","--normal","--no-sort","--input","--tab","--strict","--regex","--ignore-case","--number-select","--interactive","--auto-preview","--first","--no-quit"]}}),Pe.addSchemeProperty(`list.source.${t}.defaultArgs`,{type:"array",default:[],description:`Default argument list of "${t}" list, only used when list argument is empty.`,uniqueItems:!0,items:{type:"string"}}),MD.Disposable.create(()=>{typeof e.dispose=="function"&&e.dispose(),this.listMap.delete(t)})}get names(){return Array.from(this.listMap.keys())}get descriptions(){let e={};for(let t of this.listMap.keys()){let i=this.listMap.get(t);e[t]=i.description}return e}async loadItems(e){let t=[e],i=this.parseArgs(t);if(!i)return;let{list:r,options:o,listArgs:s}=i,l=new MD.CancellationTokenSource().token,u=await this.nvim.eval('[win_getid(),bufnr("%")]'),c=await r.loadItems({options:o,args:s,input:"",cwd:v.cwd,window:this.nvim.createWindow(u[0]),buffer:this.nvim.createBuffer(u[1]),listWindow:null},l);if(!c||Array.isArray(c))return c;let h=c;return await new Promise((g,p)=>{let f=[];h.on("data",m=>{m.label=(0,fQ.default)(m.label),f.push(m)}),h.on("end",()=>{g(f)}),h.on("error",m=>{p(m)})})}toggleMode(){let e=this.lastSession;e&&e.toggleMode()}get isActivated(){var e;return((e=this.session)==null?void 0:e.winid)!=null}stop(){let e=this.lastSession;e&&e.stop()}dispose(){for(let e of this.sessionsMap.values())e.dispose();this.sessionsMap.clear(),this.config&&this.config.dispose(),this.lastSession=void 0,$(this.disposables)}},Pi=new mQ});var bQ=y((cQe,yQ)=>{yQ.exports=["\0","","","","","","","\x07","\b"," ",` +`,"\v","\f","\r","","","","","","","","","","","","","","\x1B","","","",""," ","!",'"',"#","$","%","&","'","(",")","*","+",",","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";","<","=",">","?","@","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","[","\\","]","^","_","`","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","{","|","}","~","\x7F","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""," ","!","C/","PS","$?","Y=","|","SS",'"',"(c)","a","<<","!","","(r)","-","deg","+-","2","3","'","u","P","*",",","1","o",">>","1/4","1/2","3/4","?","A","A","A","A","A","A","AE","C","E","E","E","E","I","I","I","I","D","N","O","O","O","O","O","x","O","U","U","U","U","U","Th","ss","a","a","a","a","a","a","ae","c","e","e","e","e","i","i","i","i","d","n","o","o","o","o","o","/","o","u","u","u","u","y","th","y"]});var wQ=y((hQe,vQ)=>{vQ.exports=["A","a","A","a","A","a","C","c","C","c","C","c","C","c","D","d","D","d","E","e","E","e","E","e","E","e","E","e","G","g","G","g","G","g","G","g","H","h","H","h","I","i","I","i","I","i","I","i","I","i","IJ","","J","j","K","k","k","L","l","L","l","L","l","L","l","L","l","N","n","N","n","N","n","'n","ng","NG","O","o","O","o","O","o","OE","oe","R","r","R","r","R","r","S","s","S","s","S","s","S","s","T","t","T","t","T","t","U","u","U","u","U","u","U","u","U","u","U","u","W","w","Y","y","Y","Z","z","Z","z","Z","z","s","b","B","B","b","6","6","O","C","c","D","D","D","d","d","3","@","E","F","f","G","G","hv","I","I","K","k","l","l","W","N","n","O","O","o","OI","oi","P","p","YR","2","2","SH","sh","t","T","t","T","U","u","Y","V","Y","y","Z","z","ZH","ZH","zh","zh","2","5","5","ts","w","|","||","|=","!","DZ","Dz","dz","LJ","Lj","lj","NJ","Nj","nj","A","a","I","i","O","o","U","u","U","u","U","u","U","u","U","u","@","A","a","A","a","AE","ae","G","g","G","g","K","k","O","o","O","o","ZH","zh","j","DZ","D","dz","G","g","HV","W","N","n","A","a","AE","ae","O","o"]});var CQ=y((dQe,DQ)=>{DQ.exports=["A","a","A","a","E","e","E","e","I","i","I","i","O","o","O","o","R","r","R","r","U","u","U","u","S","s","T","t","Y","y","H","h","[?]","[?]","OU","ou","Z","z","A","a","E","e","O","o","O","o","O","o","O","o","Y","y","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","a","a","a","b","o","c","d","d","e","@","@","e","e","e","e","j","g","g","g","g","u","Y","h","h","i","i","I","l","l","l","lZ","W","W","m","n","n","n","o","OE","O","F","R","R","R","R","r","r","R","R","R","s","S","j","S","S","t","t","U","U","v","^","W","Y","Y","z","z","Z","Z","?","?","?","C","@","B","E","G","H","j","k","L","q","?","?","dz","dZ","dz","ts","tS","tC","fN","ls","lz","WW","]]","[?]","[?]","k","h","j","r","r","r","r","w","y","'",'"',"`","'","`","`","'","?","?","<",">","^","V","^","V","'","-","/","\\",",","_","\\","/",":",".","`","'","^","V","+","-","V",".","@",",","~",'"',"R","X","G","l","s","x","?","","","","","","","","V","=",'"',"[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var SQ=y((gQe,xQ)=>{xQ.exports=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","","","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","'",",","[?]","[?]","[?]","[?]","","[?]","[?]","[?]","?","[?]","[?]","[?]","[?]","[?]","","","A",";","E","E","I","[?]","O","[?]","U","O","I","A","B","G","D","E","Z","E","Th","I","K","L","M","N","Ks","O","P","R","[?]","S","T","U","Ph","Kh","Ps","O","I","U","a","e","e","i","u","a","b","g","d","e","z","e","th","i","k","l","m","n","x","o","p","r","s","s","t","u","ph","kh","ps","o","i","u","o","u","o","[?]","b","th","U","U","U","ph","p","&","[?]","[?]","St","st","W","w","Q","q","Sp","sp","Sh","sh","F","f","Kh","kh","H","h","G","g","CH","ch","Ti","ti","k","r","c","j","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var kQ=y((pQe,TQ)=>{TQ.exports=["Ie","Io","Dj","Gj","Ie","Dz","I","Yi","J","Lj","Nj","Tsh","Kj","I","U","Dzh","A","B","V","G","D","Ie","Zh","Z","I","I","K","L","M","N","O","P","R","S","T","U","F","Kh","Ts","Ch","Sh","Shch","","Y","'","E","Iu","Ia","a","b","v","gh","d","ie","zh","z","i","i","k","l","m","n","o","p","r","s","t","u","f","kh","ts","ch","sh","shch","","y","'","e","iu","ia","ie","io","dj","gj","ie","dz","i","yi","j","lj","nj","tsh","kj","i","u","dzh","O","o","E","e","Ie","ie","E","e","Ie","ie","O","o","Io","io","Ks","ks","Ps","ps","F","f","Y","y","Y","y","u","u","O","o","O","o","Ot","ot","Q","q","*1000*","","","","","[?]","*100.000*","*1.000.000*","[?]","[?]",'"','"',"R'","r'","G'","g'","G'","g'","G'","g'","Zh'","zh'","Z'","z'","K'","k'","K'","k'","K'","k'","K'","k'","N'","n'","Ng","ng","P'","p'","Kh","kh","S'","s'","T'","t'","U","u","U'","u'","Kh'","kh'","Tts","tts","Ch'","ch'","Ch'","ch'","H","h","Ch","ch","Ch'","ch'","`","Zh","zh","K'","k'","[?]","[?]","N'","n'","[?]","[?]","Ch","ch","[?]","[?]","[?]","a","a","A","a","Ae","ae","Ie","ie","@","@","@","@","Zh","zh","Z","z","Dz","dz","I","i","I","i","O","o","O","o","O","o","E","e","U","u","U","u","U","u","Ch","ch","[?]","[?]","Y","y","[?]","[?]","[?]","[?]","[?]"]});var PQ=y((fQe,EQ)=>{EQ.exports=["[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","A","B","G","D","E","Z","E","E","T`","Zh","I","L","Kh","Ts","K","H","Dz","Gh","Ch","M","Y","N","Sh","O","Ch`","P","J","Rh","S","V","T","R","Ts`","W","P`","K`","O","F","[?]","[?]","<","'","/","!",",","?",".","[?]","a","b","g","d","e","z","e","e","t`","zh","i","l","kh","ts","k","h","dz","gh","ch","m","y","n","sh","o","ch`","p","j","rh","s","v","t","r","ts`","w","p`","k`","o","f","ew","[?]",".","-","[?]","[?]","[?]","[?]","[?]","[?]","","","","","","","","","","","","","","","","","","[?]","","","","","","","","","","","","","","@","e","a","o","i","e","e","a","a","o","[?]","u","'","","","","","","",":","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","","b","g","d","h","v","z","kh","t","y","k","k","l","m","m","n","n","s","`","p","p","ts","ts","q","r","sh","t","[?]","[?]","[?]","[?]","[?]","V","oy","i","'",'"',"[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var RQ=y((mQe,_Q)=>{_Q.exports=["[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]",",","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]",";","[?]","[?]","[?]","?","[?]","","a","'","w'","","y'","","b","@","t","th","j","H","kh","d","dh","r","z","s","sh","S","D","T","Z","aa","G","[?]","[?]","[?]","[?]","[?]","","f","q","k","l","m","n","h","w","~","y","an","un","in","a","u","i","W","","","'","'","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","0","1","2","3","4","5","6","7","8","9","%",".",",","*","[?]","[?]","","'","'","'","","'","'w","'u","'y","tt","tth","b","t","T","p","th","bh","'h","H","ny","dy","H","ch","cch","dd","D","D","Dt","dh","ddh","d","D","D","rr","R","R","R","R","R","R","j","R","S","S","S","S","S","T","GH","F","F","F","v","f","ph","Q","Q","kh","k","K","K","ng","K","g","G","N","G","G","G","L","L","L","L","N","N","N","N","N","h","Ch","hy","h","H","@","W","oe","oe","u","yu","yu","W","v","y","Y","Y","W","","","y","y'",".","ae","","","","","","","","@","#","","","","","","","","","","","^","","","","","[?]","[?]","0","1","2","3","4","5","6","7","8","9","Sh","D","Gh","&","+m"]});var FQ=y((yQe,LQ)=>{LQ.exports=["//","/",",","!","!","-",",",",",";","?","~","{","}","*","[?]","","'","","b","g","g","d","d","h","w","z","H","t","t","y","yh","k","l","m","n","s","s","`","p","p","S","q","r","sh","t","[?]","[?]","[?]","a","a","a","A","A","A","e","e","e","E","i","i","u","u","u","o","","`","'","","","X","Q","@","@","|","+","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","h","sh","n","r","b","L","k","'","v","m","f","dh","th","l","g","ny","s","d","z","t","y","p","j","ch","tt","hh","kh","th","z","sh","s","d","t","z","`","gh","q","w","a","aa","i","ee","u","oo","e","ey","o","oa","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var jQ=y((bQe,IQ)=>{IQ.exports=["[?]","N","N","H","[?]","a","aa","i","ii","u","uu","R","L","eN","e","e","ai","oN","o","o","au","k","kh","g","gh","ng","c","ch","j","jh","ny","tt","tth","dd","ddh","nn","t","th","d","dh","n","nnn","p","ph","b","bh","m","y","r","rr","l","l","lll","v","sh","ss","s","h","[?]","[?]","'","'","aa","i","ii","u","uu","R","RR","eN","e","e","ai","oN","o","o","au","","[?]","[?]","AUM","'","'","`","'","[?]","[?]","[?]","q","khh","ghh","z","dddh","rh","f","yy","RR","LL","L","LL"," / "," // ","0","1","2","3","4","5","6","7","8","9",".","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","N","N","H","[?]","a","aa","i","ii","u","uu","R","RR","[?]","[?]","e","ai","[?]","[?]","o","au","k","kh","g","gh","ng","c","ch","j","jh","ny","tt","tth","dd","ddh","nn","t","th","d","dh","n","[?]","p","ph","b","bh","m","y","r","[?]","l","[?]","[?]","[?]","sh","ss","s","h","[?]","[?]","'","[?]","aa","i","ii","u","uu","R","RR","[?]","[?]","e","ai","[?]","[?]","o","au","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","+","[?]","[?]","[?]","[?]","rr","rh","[?]","yy","RR","LL","L","LL","[?]","[?]","0","1","2","3","4","5","6","7","8","9","r'","r`","Rs","Rs","1/","2/","3/","4/"," 1 - 1/","/16","","[?]","[?]","[?]","[?]"]});var MQ=y((vQe,AQ)=>{AQ.exports=["[?]","[?]","N","[?]","[?]","a","aa","i","ii","u","uu","[?]","[?]","[?]","[?]","ee","ai","[?]","[?]","oo","au","k","kh","g","gh","ng","c","ch","j","jh","ny","tt","tth","dd","ddh","nn","t","th","d","dh","n","[?]","p","ph","b","bb","m","y","r","[?]","l","ll","[?]","v","sh","[?]","s","h","[?]","[?]","'","[?]","aa","i","ii","u","uu","[?]","[?]","[?]","[?]","ee","ai","[?]","[?]","oo","au","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","khh","ghh","z","rr","[?]","f","[?]","[?]","[?]","[?]","[?]","[?]","[?]","0","1","2","3","4","5","6","7","8","9","N","H","","","G.E.O.","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","N","N","H","[?]","a","aa","i","ii","u","uu","R","[?]","eN","[?]","e","ai","oN","[?]","o","au","k","kh","g","gh","ng","c","ch","j","jh","ny","tt","tth","dd","ddh","nn","t","th","d","dh","n","[?]","p","ph","b","bh","m","ya","r","[?]","l","ll","[?]","v","sh","ss","s","h","[?]","[?]","'","'","aa","i","ii","u","uu","R","RR","eN","[?]","e","ai","oN","[?]","o","au","","[?]","[?]","AUM","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","RR","[?]","[?]","[?]","[?]","[?]","0","1","2","3","4","5","6","7","8","9","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var NQ=y((wQe,OQ)=>{OQ.exports=["[?]","N","N","H","[?]","a","aa","i","ii","u","uu","R","L","[?]","[?]","e","ai","[?]","[?]","o","au","k","kh","g","gh","ng","c","ch","j","jh","ny","tt","tth","dd","ddh","nn","t","th","d","dh","n","[?]","p","ph","b","bh","m","y","r","[?]","l","ll","[?]","","sh","ss","s","h","[?]","[?]","'","'","aa","i","ii","u","uu","R","[?]","[?]","[?]","e","ai","[?]","[?]","o","au","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","+","+","[?]","[?]","[?]","[?]","rr","rh","[?]","yy","RR","LL","[?]","[?]","[?]","[?]","0","1","2","3","4","5","6","7","8","9","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","N","H","[?]","a","aa","i","ii","u","uu","[?]","[?]","[?]","e","ee","ai","[?]","o","oo","au","k","[?]","[?]","[?]","ng","c","[?]","j","[?]","ny","tt","[?]","[?]","[?]","nn","t","[?]","[?]","[?]","n","nnn","p","[?]","[?]","[?]","m","y","r","rr","l","ll","lll","v","[?]","ss","s","h","[?]","[?]","[?]","[?]","aa","i","ii","u","uu","[?]","[?]","[?]","e","ee","ai","[?]","o","oo","au","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","+","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","0","1","2","3","4","5","6","7","8","9","+10+","+100+","+1000+","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var HQ=y((DQe,BQ)=>{BQ.exports=["[?]","N","N","H","[?]","a","aa","i","ii","u","uu","R","L","[?]","e","ee","ai","[?]","o","oo","au","k","kh","g","gh","ng","c","ch","j","jh","ny","tt","tth","dd","ddh","nn","t","th","d","dh","n","[?]","p","ph","b","bh","m","y","r","rr","l","ll","[?]","v","sh","ss","s","h","[?]","[?]","[?]","[?]","aa","i","ii","u","uu","R","RR","[?]","e","ee","ai","[?]","o","oo","au","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","+","+","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","RR","LL","[?]","[?]","[?]","[?]","0","1","2","3","4","5","6","7","8","9","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","N","H","[?]","a","aa","i","ii","u","uu","R","L","[?]","e","ee","ai","[?]","o","oo","au","k","kh","g","gh","ng","c","ch","j","jh","ny","tt","tth","dd","ddh","nn","t","th","d","dh","n","[?]","p","ph","b","bh","m","y","r","rr","l","ll","[?]","v","sh","ss","s","h","[?]","[?]","[?]","[?]","aa","i","ii","u","uu","R","RR","[?]","e","ee","ai","[?]","o","oo","au","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","+","+","[?]","[?]","[?]","[?]","[?]","[?]","[?]","lll","[?]","RR","LL","[?]","[?]","[?]","[?]","0","1","2","3","4","5","6","7","8","9","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var YQ=y((CQe,qQ)=>{qQ.exports=["[?]","[?]","N","H","[?]","a","aa","i","ii","u","uu","R","L","[?]","e","ee","ai","[?]","o","oo","au","k","kh","g","gh","ng","c","ch","j","jh","ny","tt","tth","dd","ddh","nn","t","th","d","dh","n","[?]","p","ph","b","bh","m","y","r","rr","l","ll","lll","v","sh","ss","s","h","[?]","[?]","[?]","[?]","aa","i","ii","u","uu","R","[?]","[?]","e","ee","ai","","o","oo","au","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","+","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","RR","LL","[?]","[?]","[?]","[?]","0","1","2","3","4","5","6","7","8","9","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","N","H","[?]","a","aa","ae","aae","i","ii","u","uu","R","RR","L","LL","e","ee","ai","o","oo","au","[?]","[?]","[?]","k","kh","g","gh","ng","nng","c","ch","j","jh","ny","jny","nyj","tt","tth","dd","ddh","nn","nndd","t","th","d","dh","n","[?]","nd","p","ph","b","bh","m","mb","y","r","[?]","l","[?]","[?]","v","sh","ss","s","h","ll","f","[?]","[?]","[?]","","[?]","[?]","[?]","[?]","aa","ae","aae","i","ii","u","[?]","uu","[?]","R","e","ee","ai","o","oo","au","L","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","RR","LL"," . ","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var ZQ=y((xQe,WQ)=>{WQ.exports=["[?]","k","kh","kh","kh","kh","kh","ng","cch","ch","ch","ch","ch","y","d","t","th","th","th","n","d","t","th","th","th","n","b","p","ph","f","ph","f","ph","m","y","r","R","l","L","w","s","s","s","h","l","`","h","~","a","a","aa","am","i","ii","ue","uue","u","uu","'","[?]","[?]","[?]","[?]","Bh.","e","ae","o","ai","ai","ao","+","","","","","","","M",""," * ","0","1","2","3","4","5","6","7","8","9"," // "," /// ","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","k","kh","[?]","kh","[?]","[?]","ng","ch","[?]","s","[?]","[?]","ny","[?]","[?]","[?]","[?]","[?]","[?]","d","h","th","th","[?]","n","b","p","ph","f","ph","f","[?]","m","y","r","[?]","l","[?]","w","[?]","[?]","s","h","[?]","`","","~","a","","aa","am","i","ii","y","yy","u","uu","[?]","o","l","ny","[?]","[?]","e","ei","o","ay","ai","[?]","+","[?]","","","","","","M","[?]","[?]","0","1","2","3","4","5","6","7","8","9","[?]","[?]","hn","hm","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var $Q=y((SQe,JQ)=>{JQ.exports=["AUM","","","","","","",""," // "," * ","","-"," / "," / "," // "," -/ "," +/ "," X/ "," /XX/ "," /X/ ",", ","","","","","","","","","","","","0","1","2","3","4","5","6","7","8","9",".5","1.5","2.5","3.5","4.5","5.5","6.5","7.5","8.5","-.5","+","*","^","_","","~","[?]","]","[[","]]","","","k","kh","g","gh","ng","c","ch","j","[?]","ny","tt","tth","dd","ddh","nn","t","th","d","dh","n","p","ph","b","bh","m","ts","tsh","dz","dzh","w","zh","z","'","y","r","l","sh","ssh","s","h","a","kss","r","[?]","[?]","[?]","[?]","[?]","[?]","aa","i","ii","u","uu","R","RR","L","LL","e","ee","o","oo","M","H","i","ii","","","","","","","","","","","[?]","[?]","[?]","[?]","k","kh","g","gh","ng","c","ch","j","[?]","ny","tt","tth","dd","ddh","nn","t","th","d","dh","n","p","ph","b","bh","m","ts","tsh","dz","dzh","w","zh","z","'","y","r","l","sh","ss","s","h","a","kss","w","y","r","[?]","X"," :X: "," /O/ "," /o/ "," \\o\\ "," (O) ","","","","","","","","","","[?]","[?]","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var UQ=y((TQe,XQ)=>{XQ.exports=["k","kh","g","gh","ng","c","ch","j","jh","ny","nny","tt","tth","dd","ddh","nn","tt","th","d","dh","n","p","ph","b","bh","m","y","r","l","w","s","h","ll","a","[?]","i","ii","u","uu","e","[?]","o","au","[?]","aa","i","ii","u","uu","e","ai","[?]","[?]","[?]","N","'",":","","[?]","[?]","[?]","[?]","[?]","[?]","0","1","2","3","4","5","6","7","8","9"," / "," // ","n*","r*","l*","e*","sh","ss","R","RR","L","LL","R","RR","L","LL","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","A","B","G","D","E","V","Z","T`","I","K","L","M","N","O","P","Zh","R","S","T","U","P`","K`","G'","Q","Sh","Ch`","C`","Z'","C","Ch","X","J","H","E","Y","W","Xh","OE","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","a","b","g","d","e","v","z","t`","i","k","l","m","n","o","p","zh","r","s","t","u","p`","k`","g'","q","sh","ch`","c`","z'","c","ch","x","j","h","e","y","w","xh","oe","f","[?]","[?]","[?]","[?]"," // ","[?]","[?]","[?]"]});var KQ=y((kQe,GQ)=>{GQ.exports=["g","gg","n","d","dd","r","m","b","bb","s","ss","","j","jj","c","k","t","p","h","ng","nn","nd","nb","dg","rn","rr","rh","rN","mb","mN","bg","bn","","bs","bsg","bst","bsb","bss","bsj","bj","bc","bt","bp","bN","bbN","sg","sn","sd","sr","sm","sb","sbg","sss","s","sj","sc","sk","st","sp","sh","","","","","Z","g","d","m","b","s","Z","","j","c","t","p","N","j","","","","","ck","ch","","","pb","pN","hh","Q","[?]","[?]","[?]","[?]","[?]","","","a","ae","ya","yae","eo","e","yeo","ye","o","wa","wae","oe","yo","u","weo","we","wi","yu","eu","yi","i","a-o","a-u","ya-o","ya-yo","eo-o","eo-u","eo-eu","yeo-o","yeo-u","o-eo","o-e","o-ye","o-o","o-u","yo-ya","yo-yae","yo-yeo","yo-o","yo-i","u-a","u-ae","u-eo-eu","u-ye","u-u","yu-a","yu-eo","yu-e","yu-yeo","yu-ye","yu-u","yu-i","eu-u","eu-eu","yi-u","i-a","i-ya","i-o","i-u","i-eu","i-U","U","U-eo","U-u","U-i","UU","[?]","[?]","[?]","[?]","[?]","g","gg","gs","n","nj","nh","d","l","lg","lm","lb","ls","lt","lp","lh","m","b","bs","s","ss","ng","j","c","k","t","p","h","gl","gsg","ng","nd","ns","nZ","nt","dg","tl","lgs","ln","ld","lth","ll","lmg","lms","lbs","lbh","rNp","lss","lZ","lk","lQ","mg","ml","mb","ms","mss","mZ","mc","mh","mN","bl","bp","ph","pN","sg","sd","sl","sb","Z","g","ss","","kh","N","Ns","NZ","pb","pN","hn","hl","hm","hb","Q","[?]","[?]","[?]","[?]","[?]"]});var zQ=y((EQe,QQ)=>{QQ.exports=["ha","hu","hi","haa","hee","he","ho","[?]","la","lu","li","laa","lee","le","lo","lwa","hha","hhu","hhi","hhaa","hhee","hhe","hho","hhwa","ma","mu","mi","maa","mee","me","mo","mwa","sza","szu","szi","szaa","szee","sze","szo","szwa","ra","ru","ri","raa","ree","re","ro","rwa","sa","su","si","saa","see","se","so","swa","sha","shu","shi","shaa","shee","she","sho","shwa","qa","qu","qi","qaa","qee","qe","qo","[?]","qwa","[?]","qwi","qwaa","qwee","qwe","[?]","[?]","qha","qhu","qhi","qhaa","qhee","qhe","qho","[?]","qhwa","[?]","qhwi","qhwaa","qhwee","qhwe","[?]","[?]","ba","bu","bi","baa","bee","be","bo","bwa","va","vu","vi","vaa","vee","ve","vo","vwa","ta","tu","ti","taa","tee","te","to","twa","ca","cu","ci","caa","cee","ce","co","cwa","xa","xu","xi","xaa","xee","xe","xo","[?]","xwa","[?]","xwi","xwaa","xwee","xwe","[?]","[?]","na","nu","ni","naa","nee","ne","no","nwa","nya","nyu","nyi","nyaa","nyee","nye","nyo","nywa","'a","'u","[?]","'aa","'ee","'e","'o","'wa","ka","ku","ki","kaa","kee","ke","ko","[?]","kwa","[?]","kwi","kwaa","kwee","kwe","[?]","[?]","kxa","kxu","kxi","kxaa","kxee","kxe","kxo","[?]","kxwa","[?]","kxwi","kxwaa","kxwee","kxwe","[?]","[?]","wa","wu","wi","waa","wee","we","wo","[?]","`a","`u","`i","`aa","`ee","`e","`o","[?]","za","zu","zi","zaa","zee","ze","zo","zwa","zha","zhu","zhi","zhaa","zhee","zhe","zho","zhwa","ya","yu","yi","yaa","yee","ye","yo","[?]","da","du","di","daa","dee","de","do","dwa","dda","ddu","ddi","ddaa","ddee","dde","ddo","ddwa"]});var ez=y((PQe,VQ)=>{VQ.exports=["ja","ju","ji","jaa","jee","je","jo","jwa","ga","gu","gi","gaa","gee","ge","go","[?]","gwa","[?]","gwi","gwaa","gwee","gwe","[?]","[?]","gga","ggu","ggi","ggaa","ggee","gge","ggo","[?]","tha","thu","thi","thaa","thee","the","tho","thwa","cha","chu","chi","chaa","chee","che","cho","chwa","pha","phu","phi","phaa","phee","phe","pho","phwa","tsa","tsu","tsi","tsaa","tsee","tse","tso","tswa","tza","tzu","tzi","tzaa","tzee","tze","tzo","[?]","fa","fu","fi","faa","fee","fe","fo","fwa","pa","pu","pi","paa","pee","pe","po","pwa","rya","mya","fya","[?]","[?]","[?]","[?]","[?]","[?]"," ",".",",",";",":",":: ","?","//","1","2","3","4","5","6","7","8","9","10+","20+","30+","40+","50+","60+","70+","80+","90+","100+","10,000+","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","a","e","i","o","u","v","ga","ka","ge","gi","go","gu","gv","ha","he","hi","ho","hu","hv","la","le","li","lo","lu","lv","ma","me","mi","mo","mu","na","hna","nah","ne","ni","no","nu","nv","qua","que","qui","quo","quu","quv","sa","s","se","si","so","su","sv","da","ta","de","te","di","ti","do","du","dv","dla","tla","tle","tli","tlo","tlu","tlv","tsa","tse","tsi","tso","tsu","tsv","wa","we","wi","wo","wu","wv","ya","ye","yi","yo","yu","yv","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var iz=y((_Qe,tz)=>{tz.exports=["[?]","e","aai","i","ii","o","oo","oo","ee","i","a","aa","we","we","wi","wi","wii","wii","wo","wo","woo","woo","woo","wa","wa","waa","waa","waa","ai","w","'","t","k","sh","s","n","w","n","[?]","w","c","?","l","en","in","on","an","pe","paai","pi","pii","po","poo","poo","hee","hi","pa","paa","pwe","pwe","pwi","pwi","pwii","pwii","pwo","pwo","pwoo","pwoo","pwa","pwa","pwaa","pwaa","pwaa","p","p","h","te","taai","ti","tii","to","too","too","dee","di","ta","taa","twe","twe","twi","twi","twii","twii","two","two","twoo","twoo","twa","twa","twaa","twaa","twaa","t","tte","tti","tto","tta","ke","kaai","ki","kii","ko","koo","koo","ka","kaa","kwe","kwe","kwi","kwi","kwii","kwii","kwo","kwo","kwoo","kwoo","kwa","kwa","kwaa","kwaa","kwaa","k","kw","keh","kih","koh","kah","ce","caai","ci","cii","co","coo","coo","ca","caa","cwe","cwe","cwi","cwi","cwii","cwii","cwo","cwo","cwoo","cwoo","cwa","cwa","cwaa","cwaa","cwaa","c","th","me","maai","mi","mii","mo","moo","moo","ma","maa","mwe","mwe","mwi","mwi","mwii","mwii","mwo","mwo","mwoo","mwoo","mwa","mwa","mwaa","mwaa","mwaa","m","m","mh","m","m","ne","naai","ni","nii","no","noo","noo","na","naa","nwe","nwe","nwa","nwa","nwaa","nwaa","nwaa","n","ng","nh","le","laai","li","lii","lo","loo","loo","la","laa","lwe","lwe","lwi","lwi","lwii","lwii","lwo","lwo","lwoo","lwoo","lwa","lwa","lwaa","lwaa","l","l","l","se","saai","si","sii","so","soo","soo","sa","saa","swe","swe","swi","swi","swii","swii","swo","swo","swoo","swoo"]});var rz=y((RQe,nz)=>{nz.exports=["swa","swa","swaa","swaa","swaa","s","s","sw","s","sk","skw","sW","spwa","stwa","skwa","scwa","she","shi","shii","sho","shoo","sha","shaa","shwe","shwe","shwi","shwi","shwii","shwii","shwo","shwo","shwoo","shwoo","shwa","shwa","shwaa","shwaa","sh","ye","yaai","yi","yii","yo","yoo","yoo","ya","yaa","ywe","ywe","ywi","ywi","ywii","ywii","ywo","ywo","ywoo","ywoo","ywa","ywa","ywaa","ywaa","ywaa","y","y","y","yi","re","re","le","raai","ri","rii","ro","roo","lo","ra","raa","la","rwaa","rwaa","r","r","r","fe","faai","fi","fii","fo","foo","fa","faa","fwaa","fwaa","f","the","the","thi","thi","thii","thii","tho","thoo","tha","thaa","thwaa","thwaa","th","tthe","tthi","ttho","ttha","tth","tye","tyi","tyo","tya","he","hi","hii","ho","hoo","ha","haa","h","h","hk","qaai","qi","qii","qo","qoo","qa","qaa","q","tlhe","tlhi","tlho","tlha","re","ri","ro","ra","ngaai","ngi","ngii","ngo","ngoo","nga","ngaa","ng","nng","she","shi","sho","sha","the","thi","tho","tha","th","lhi","lhii","lho","lhoo","lha","lhaa","lh","the","thi","thii","tho","thoo","tha","thaa","th","b","e","i","o","a","we","wi","wo","wa","ne","ni","no","na","ke","ki","ko","ka","he","hi","ho","ha","ghu","gho","ghe","ghee","ghi","gha","ru","ro","re","ree","ri","ra","wu","wo","we","wee","wi","wa","hwu","hwo","hwe","hwee","hwi","hwa","thu","tho","the","thee","thi","tha","ttu","tto","tte","ttee","tti","tta","pu","po","pe","pee","pi","pa","p","gu","go","ge","gee","gi","ga","khu","kho","khe","khee","khi","kha","kku","kko","kke","kkee","kki"]});var sz=y((LQe,oz)=>{oz.exports=["kka","kk","nu","no","ne","nee","ni","na","mu","mo","me","mee","mi","ma","yu","yo","ye","yee","yi","ya","ju","ju","jo","je","jee","ji","ji","ja","jju","jjo","jje","jjee","jji","jja","lu","lo","le","lee","li","la","dlu","dlo","dle","dlee","dli","dla","lhu","lho","lhe","lhee","lhi","lha","tlhu","tlho","tlhe","tlhee","tlhi","tlha","tlu","tlo","tle","tlee","tli","tla","zu","zo","ze","zee","zi","za","z","z","dzu","dzo","dze","dzee","dzi","dza","su","so","se","see","si","sa","shu","sho","she","shee","shi","sha","sh","tsu","tso","tse","tsee","tsi","tsa","chu","cho","che","chee","chi","cha","ttsu","ttso","ttse","ttsee","ttsi","ttsa","X",".","qai","ngai","nngi","nngii","nngo","nngoo","nnga","nngaa","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"," ","b","l","f","s","n","h","d","t","c","q","m","g","ng","z","r","a","o","u","e","i","ch","th","ph","p","x","p","<",">","[?]","[?]","[?]","f","v","u","yr","y","w","th","th","a","o","ac","ae","o","o","o","oe","on","r","k","c","k","g","ng","g","g","w","h","h","h","h","n","n","n","i","e","j","g","ae","a","eo","p","z","s","s","s","c","z","t","t","d","b","b","p","p","e","m","m","m","l","l","ng","ng","d","o","ear","ior","qu","qu","qu","s","yr","yr","yr","q","x",".",":","+","17","18","19","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var lz=y((FQe,az)=>{az.exports=["[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","k","kh","g","gh","ng","c","ch","j","jh","ny","t","tth","d","ddh","nn","t","th","d","dh","n","p","ph","b","bh","m","y","r","l","v","sh","ss","s","h","l","q","a","aa","i","ii","u","uk","uu","uuv","ry","ryy","ly","lyy","e","ai","oo","oo","au","a","aa","aa","i","ii","y","yy","u","uu","ua","oe","ya","ie","e","ae","ai","oo","au","M","H","a`","","","","r","","!","","","","","","."," // ",":","+","++"," * "," /// ","KR","'","[?]","[?]","[?]","0","1","2","3","4","5","6","7","8","9","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var cz=y((IQe,uz)=>{uz.exports=[" @ "," ... ",", ",". ",": "," // ","","-",", ",". ","","","","","","[?]","0","1","2","3","4","5","6","7","8","9","[?]","[?]","[?]","[?]","[?]","[?]","a","e","i","o","u","O","U","ee","n","ng","b","p","q","g","m","l","s","sh","t","d","ch","j","y","r","w","f","k","kha","ts","z","h","zr","lh","zh","ch","-","e","i","o","u","O","U","ng","b","p","q","g","m","t","d","ch","j","ts","y","w","k","g","h","jy","ny","dz","e","i","iy","U","u","ng","k","g","h","p","sh","t","d","j","f","g","h","ts","z","r","ch","zh","i","k","r","f","zh","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","H","X","W","M"," 3 "," 333 ","a","i","k","ng","c","tt","tth","dd","nn","t","d","p","ph","ss","zh","z","a","t","zh","gh","ng","c","jh","tta","ddh","t","dh","ss","cy","zh","z","u","y","bh","'","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var dz=y((jQe,hz)=>{hz.exports=["A","a","B","b","B","b","B","b","C","c","D","d","D","d","D","d","D","d","D","d","E","e","E","e","E","e","E","e","E","e","F","f","G","g","H","h","H","h","H","h","H","h","H","h","I","i","I","i","K","k","K","k","K","k","L","l","L","l","L","l","L","l","M","m","M","m","M","m","N","n","N","n","N","n","N","n","O","o","O","o","O","o","O","o","P","p","P","p","R","r","R","r","R","r","R","r","S","s","S","s","S","s","S","s","S","s","T","t","T","t","T","t","T","t","U","u","U","u","U","u","U","u","U","u","V","v","V","v","W","w","W","w","W","w","W","w","W","w","X","x","X","x","Y","y","Z","z","Z","z","Z","z","h","t","w","y","a","S","[?]","[?]","[?]","[?]","A","a","A","a","A","a","A","a","A","a","A","a","A","a","A","a","A","a","A","a","A","a","A","a","E","e","E","e","E","e","E","e","E","e","E","e","E","e","E","e","I","i","I","i","O","o","O","o","O","o","O","o","O","o","O","o","O","o","O","o","O","o","O","o","O","o","O","o","U","u","U","u","U","u","U","u","U","u","U","u","U","u","Y","y","Y","y","Y","y","Y","y","[?]","[?]","[?]","[?]","[?]"]});var pz=y((AQe,gz)=>{gz.exports=["a","a","a","a","a","a","a","a","A","A","A","A","A","A","A","A","e","e","e","e","e","e","[?]","[?]","E","E","E","E","E","E","[?]","[?]","e","e","e","e","e","e","e","e","E","E","E","E","E","E","E","E","i","i","i","i","i","i","i","i","I","I","I","I","I","I","I","I","o","o","o","o","o","o","[?]","[?]","O","O","O","O","O","O","[?]","[?]","u","u","u","u","u","u","u","u","[?]","U","[?]","U","[?]","U","[?]","U","o","o","o","o","o","o","o","o","O","O","O","O","O","O","O","O","a","a","e","e","e","e","i","i","o","o","u","u","o","o","[?]","[?]","a","a","a","a","a","a","a","a","A","A","A","A","A","A","A","A","e","e","e","e","e","e","e","e","E","E","E","E","E","E","E","E","o","o","o","o","o","o","o","o","O","O","O","O","O","O","O","O","a","a","a","a","a","[?]","a","a","A","A","A","A","A","'","i","'","~",'"~',"e","e","e","[?]","e","e","E","E","E","E","E","'`","''","'~","i","i","i","i","[?]","[?]","i","i","I","I","I","I","[?]","`'","`'","`~","u","u","u","u","R","R","u","u","U","U","U","U","R",'"`',`"'`,"`","[?]","[?]","o","o","o","[?]","o","o","O","O","O","O","O","'","`"]});var mz=y((MQe,fz)=>{fz.exports=[" "," "," "," "," "," "," "," "," "," "," "," ","","","","","-","-","-","-","--","--","||","_","'","'",",","'",'"','"',",,",'"',"+","++","*","*>",".","..","...",".",` `,` -`,"","","","",""," ","%0","%00","'","''","'''","`","``","```","^","<",">","*","!!","!?","-","_","-","^","***","--","/","-[","]-","[?]","?!","!?","7","PP","(]","[)","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","","","","","","","0","","","","4","5","6","7","8","9","+","-","=","(",")","n","0","1","2","3","4","5","6","7","8","9","+","-","=","(",")","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","ECU","CL","Cr","FF","L","mil","N","Pts","Rs","W","NS","D","EU","K","T","Dr","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","","","","","","","","","","","","","","","","","","","","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var ZQ=m((SGe,WQ)=>{WQ.exports=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"," 1/3 "," 2/3 "," 1/5 "," 2/5 "," 3/5 "," 4/5 "," 1/6 "," 5/6 "," 1/8 "," 3/8 "," 5/8 "," 7/8 "," 1/","I","II","III","IV","V","VI","VII","VIII","IX","X","XI","XII","L","C","D","M","i","ii","iii","iv","v","vi","vii","viii","ix","x","xi","xii","l","c","d","m","(D","D)","((|))",")","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","-","|","-","|","-","|","\\","/","\\","/","-","-","~","~","-","|","-","|","-","-","-","|","-","|","|","-","-","-","-","-","-","|","|","|","|","|","|","|","^","V","\\","=","V","^","-","-","|","|","-","-","|","|","=","|","=","=","|","=","|","=","=","=","=","=","=","|","=","|","=","|","\\","/","\\","/","=","=","~","~","|","|","-","|","-","|","-","-","-","|","-","|","|","|","|","|","|","|","-","\\","\\","|","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var $Q=m((TGe,JQ)=>{JQ.exports=["[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var UQ=m((kGe,XQ)=>{XQ.exports=["[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var QQ=m((EGe,GQ)=>{GQ.exports=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","","","","","","","","","","","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var zQ=m((PGe,KQ)=>{KQ.exports=["-","-","|","|","-","-","|","|","-","-","|","|","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","-","-","|","|","-","|","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","/","\\","X","-","|","-","|","-","|","-","|","-","|","-","|","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","-","|","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","^","^","^","^",">",">",">",">",">",">","V","V","V","V","<","<","<","<","<","<","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","#","#","#","#","#","^","^","^","O","#","#","#","#","#","#","#","#","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var eK=m((_Ge,VQ)=>{VQ.exports=["","","","","","","","","","","","","","","","","","","","","[?]","[?]","[?]","[?]","[?]","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var iK=m((RGe,tK)=>{tK.exports=["[?]","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","[?]","[?]","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","[?]","","","","","","","","","","","","","","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var rK=m((LGe,nK)=>{nK.exports=[" ","a","1","b","'","k","2","l","@","c","i","f","/","m","s","p",'"',"e","3","h","9","o","6","r","^","d","j","g",">","n","t","q",",","*","5","<","-","u","8","v",".","%","[","$","+","x","!","&",";",":","4","\\","0","z","7","(","_","?","w","]","#","y",")","=","[d7]","[d17]","[d27]","[d127]","[d37]","[d137]","[d237]","[d1237]","[d47]","[d147]","[d247]","[d1247]","[d347]","[d1347]","[d2347]","[d12347]","[d57]","[d157]","[d257]","[d1257]","[d357]","[d1357]","[d2357]","[d12357]","[d457]","[d1457]","[d2457]","[d12457]","[d3457]","[d13457]","[d23457]","[d123457]","[d67]","[d167]","[d267]","[d1267]","[d367]","[d1367]","[d2367]","[d12367]","[d467]","[d1467]","[d2467]","[d12467]","[d3467]","[d13467]","[d23467]","[d123467]","[d567]","[d1567]","[d2567]","[d12567]","[d3567]","[d13567]","[d23567]","[d123567]","[d4567]","[d14567]","[d24567]","[d124567]","[d34567]","[d134567]","[d234567]","[d1234567]","[d8]","[d18]","[d28]","[d128]","[d38]","[d138]","[d238]","[d1238]","[d48]","[d148]","[d248]","[d1248]","[d348]","[d1348]","[d2348]","[d12348]","[d58]","[d158]","[d258]","[d1258]","[d358]","[d1358]","[d2358]","[d12358]","[d458]","[d1458]","[d2458]","[d12458]","[d3458]","[d13458]","[d23458]","[d123458]","[d68]","[d168]","[d268]","[d1268]","[d368]","[d1368]","[d2368]","[d12368]","[d468]","[d1468]","[d2468]","[d12468]","[d3468]","[d13468]","[d23468]","[d123468]","[d568]","[d1568]","[d2568]","[d12568]","[d3568]","[d13568]","[d23568]","[d123568]","[d4568]","[d14568]","[d24568]","[d124568]","[d34568]","[d134568]","[d234568]","[d1234568]","[d78]","[d178]","[d278]","[d1278]","[d378]","[d1378]","[d2378]","[d12378]","[d478]","[d1478]","[d2478]","[d12478]","[d3478]","[d13478]","[d23478]","[d123478]","[d578]","[d1578]","[d2578]","[d12578]","[d3578]","[d13578]","[d23578]","[d123578]","[d4578]","[d14578]","[d24578]","[d124578]","[d34578]","[d134578]","[d234578]","[d1234578]","[d678]","[d1678]","[d2678]","[d12678]","[d3678]","[d13678]","[d23678]","[d123678]","[d4678]","[d14678]","[d24678]","[d124678]","[d34678]","[d134678]","[d234678]","[d1234678]","[d5678]","[d15678]","[d25678]","[d125678]","[d35678]","[d135678]","[d235678]","[d1235678]","[d45678]","[d145678]","[d245678]","[d1245678]","[d345678]","[d1345678]","[d2345678]","[d12345678]"]});var sK=m((FGe,oK)=>{oK.exports=["[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?]","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var lK=m((IGe,aK)=>{aK.exports=["[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?]","[?]","[?]"]});var cK=m((jGe,uK)=>{uK.exports=[" ",", ",". ",'"',"[JIS]",'"',"/","0","<","> ","<<",">> ","[","] ","{","} ","[(",")] ","@","X ","[","] ","[[","]] ","((",")) ","[[","]] ","~ ","``","''",",,","@","1","2","3","4","5","6","7","8","9","","","","","","","~","+","+","+","+","","@"," // ","+10+","+20+","+30+","[?]","[?]","[?]","","","[?]","a","a","i","i","u","u","e","e","o","o","ka","ga","ki","gi","ku","gu","ke","ge","ko","go","sa","za","si","zi","su","zu","se","ze","so","zo","ta","da","ti","di","tu","tu","du","te","de","to","do","na","ni","nu","ne","no","ha","ba","pa","hi","bi","pi","hu","bu","pu","he","be","pe","ho","bo","po","ma","mi","mu","me","mo","ya","ya","yu","yu","yo","yo","ra","ri","ru","re","ro","wa","wa","wi","we","wo","n","vu","[?]","[?]","[?]","[?]","","","","",'"','"',"[?]","[?]","a","a","i","i","u","u","e","e","o","o","ka","ga","ki","gi","ku","gu","ke","ge","ko","go","sa","za","si","zi","su","zu","se","ze","so","zo","ta","da","ti","di","tu","tu","du","te","de","to","do","na","ni","nu","ne","no","ha","ba","pa","hi","bi","pi","hu","bu","pu","he","be","pe","ho","bo","po","ma","mi","mu","me","mo","ya","ya","yu","yu","yo","yo","ra","ri","ru","re","ro","wa","wa","wi","we","wo","n","vu","ka","ke","va","vi","ve","vo","","",'"','"']});var dK=m((AGe,hK)=>{hK.exports=["[?]","[?]","[?]","[?]","[?]","B","P","M","F","D","T","N","L","G","K","H","J","Q","X","ZH","CH","SH","R","Z","C","S","A","O","E","EH","AI","EI","AU","OU","AN","EN","ANG","ENG","ER","I","U","IU","V","NG","GN","[?]","[?]","[?]","[?]","g","gg","gs","n","nj","nh","d","dd","r","lg","lm","lb","ls","lt","lp","rh","m","b","bb","bs","s","ss","","j","jj","c","k","t","p","h","a","ae","ya","yae","eo","e","yeo","ye","o","wa","wae","oe","yo","u","weo","we","wi","yu","eu","yi","i","","nn","nd","ns","nZ","lgs","ld","lbs","lZ","lQ","mb","ms","mZ","mN","bg","","bsg","bst","bj","bt","bN","bbN","sg","sn","sd","sb","sj","Z","","N","Ns","NZ","pN","hh","Q","yo-ya","yo-yae","yo-i","yu-yeo","yu-ye","yu-i","U","U-i","[?]","","","","","","","","","","","","","","","","","BU","ZI","JI","GU","EE","ENN","OO","ONN","IR","ANN","INN","UNN","IM","NGG","AINN","AUNN","AM","OM","ONG","INNN","P","T","K","H","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var fK=m((OGe,gK)=>{gK.exports=["(g)","(n)","(d)","(r)","(m)","(b)","(s)","()","(j)","(c)","(k)","(t)","(p)","(h)","(ga)","(na)","(da)","(ra)","(ma)","(ba)","(sa)","(a)","(ja)","(ca)","(ka)","(ta)","(pa)","(ha)","(ju)","[?]","[?]","[?]","(1) ","(2) ","(3) ","(4) ","(5) ","(6) ","(7) ","(8) ","(9) ","(10) ","(Yue) ","(Huo) ","(Shui) ","(Mu) ","(Jin) ","(Tu) ","(Ri) ","(Zhu) ","(You) ","(She) ","(Ming) ","(Te) ","(Cai) ","(Zhu) ","(Lao) ","(Dai) ","(Hu) ","(Xue) ","(Jian) ","(Qi) ","(Zi) ","(Xie) ","(Ji) ","(Xiu) ","<<",">>","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","(g)","(n)","(d)","(r)","(m)","(b)","(s)","()","(j)","(c)","(k)","(t)","(p)","(h)","(ga)","(na)","(da)","(ra)","(ma)","(ba)","(sa)","(a)","(ja)","(ca)","(ka)","(ta)","(pa)","(ha)","[?]","[?]","[?]","KIS ","(1) ","(2) ","(3) ","(4) ","(5) ","(6) ","(7) ","(8) ","(9) ","(10) ","(Yue) ","(Huo) ","(Shui) ","(Mu) ","(Jin) ","(Tu) ","(Ri) ","(Zhu) ","(You) ","(She) ","(Ming) ","(Te) ","(Cai) ","(Zhu) ","(Lao) ","(Mi) ","(Nan) ","(Nu) ","(Shi) ","(You) ","(Yin) ","(Zhu) ","(Xiang) ","(Xiu) ","(Xie) ","(Zheng) ","(Shang) ","(Zhong) ","(Xia) ","(Zuo) ","(You) ","(Yi) ","(Zong) ","(Xue) ","(Jian) ","(Qi) ","(Zi) ","(Xie) ","(Ye) ","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","1M","2M","3M","4M","5M","6M","7M","8M","9M","10M","11M","12M","[?]","[?]","[?]","[?]","a","i","u","u","o","ka","ki","ku","ke","ko","sa","si","su","se","so","ta","ti","tu","te","to","na","ni","nu","ne","no","ha","hi","hu","he","ho","ma","mi","mu","me","mo","ya","yu","yo","ra","ri","ru","re","ro","wa","wi","we","wo"]});var mK=m((MGe,pK)=>{pK.exports=["apartment","alpha","ampere","are","inning","inch","won","escudo","acre","ounce","ohm","kai-ri","carat","calorie","gallon","gamma","giga","guinea","curie","guilder","kilo","kilogram","kilometer","kilowatt","gram","gram ton","cruzeiro","krone","case","koruna","co-op","cycle","centime","shilling","centi","cent","dozen","desi","dollar","ton","nano","knot","heights","percent","parts","barrel","piaster","picul","pico","building","farad","feet","bushel","franc","hectare","peso","pfennig","hertz","pence","page","beta","point","volt","hon","pound","hall","horn","micro","mile","mach","mark","mansion","micron","milli","millibar","mega","megaton","meter","yard","yard","yuan","liter","lira","rupee","ruble","rem","roentgen","watt","0h","1h","2h","3h","4h","5h","6h","7h","8h","9h","10h","11h","12h","13h","14h","15h","16h","17h","18h","19h","20h","21h","22h","23h","24h","HPA","da","AU","bar","oV","pc","[?]","[?]","[?]","[?]","Heisei","Syouwa","Taisyou","Meiji","Inc.","pA","nA","microamp","mA","kA","kB","MB","GB","cal","kcal","pF","nF","microFarad","microgram","mg","kg","Hz","kHz","MHz","GHz","THz","microliter","ml","dl","kl","fm","nm","micrometer","mm","cm","km","mm^2","cm^2","m^2","km^2","mm^4","cm^3","m^3","km^3","m/s","m/s^2","Pa","kPa","MPa","GPa","rad","rad/s","rad/s^2","ps","ns","microsecond","ms","pV","nV","microvolt","mV","kV","MV","pW","nW","microwatt","mW","kW","MW","kOhm","MOhm","a.m.","Bq","cc","cd","C/kg","Co.","dB","Gy","ha","HP","in","K.K.","KM","kt","lm","ln","log","lx","mb","mil","mol","pH","p.m.","PPM","PR","sr","Sv","Wb","[?]","[?]","1d","2d","3d","4d","5d","6d","7d","8d","9d","10d","11d","12d","13d","14d","15d","16d","17d","18d","19d","20d","21d","22d","23d","24d","25d","26d","27d","28d","29d","30d","31d"]});var yK=m((NGe,bK)=>{bK.exports=["[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var wK=m((BGe,vK)=>{vK.exports=["Yi ","Ding ","Kao ","Qi ","Shang ","Xia ","[?] ","Mo ","Zhang ","San ","Shang ","Xia ","Ji ","Bu ","Yu ","Mian ","Gai ","Chou ","Chou ","Zhuan ","Qie ","Pi ","Shi ","Shi ","Qiu ","Bing ","Ye ","Cong ","Dong ","Si ","Cheng ","Diu ","Qiu ","Liang ","Diu ","You ","Liang ","Yan ","Bing ","Sang ","Gun ","Jiu ","Ge ","Ya ","Qiang ","Zhong ","Ji ","Jie ","Feng ","Guan ","Chuan ","Chan ","Lin ","Zhuo ","Zhu ","Ha ","Wan ","Dan ","Wei ","Zhu ","Jing ","Li ","Ju ","Pie ","Fu ","Yi ","Yi ","Nai ","Shime ","Jiu ","Jiu ","Zhe ","Yao ","Yi ","[?] ","Zhi ","Wu ","Zha ","Hu ","Fa ","Le ","Zhong ","Ping ","Pang ","Qiao ","Hu ","Guai ","Cheng ","Cheng ","Yi ","Yin ","[?] ","Mie ","Jiu ","Qi ","Ye ","Xi ","Xiang ","Gai ","Diu ","Hal ","[?] ","Shu ","Twul ","Shi ","Ji ","Nang ","Jia ","Kel ","Shi ","[?] ","Ol ","Mai ","Luan ","Cal ","Ru ","Xue ","Yan ","Fu ","Sha ","Na ","Gan ","Sol ","El ","Cwul ","[?] ","Gan ","Chi ","Gui ","Gan ","Luan ","Lin ","Yi ","Jue ","Liao ","Ma ","Yu ","Zheng ","Shi ","Shi ","Er ","Chu ","Yu ","Yu ","Yu ","Yun ","Hu ","Qi ","Wu ","Jing ","Si ","Sui ","Gen ","Gen ","Ya ","Xie ","Ya ","Qi ","Ya ","Ji ","Tou ","Wang ","Kang ","Ta ","Jiao ","Hai ","Yi ","Chan ","Heng ","Mu ","[?] ","Xiang ","Jing ","Ting ","Liang ","Xiang ","Jing ","Ye ","Qin ","Bo ","You ","Xie ","Dan ","Lian ","Duo ","Wei ","Ren ","Ren ","Ji ","La ","Wang ","Yi ","Shi ","Ren ","Le ","Ding ","Ze ","Jin ","Pu ","Chou ","Ba ","Zhang ","Jin ","Jie ","Bing ","Reng ","Cong ","Fo ","San ","Lun ","Sya ","Cang ","Zi ","Shi ","Ta ","Zhang ","Fu ","Xian ","Xian ","Tuo ","Hong ","Tong ","Ren ","Qian ","Gan ","Yi ","Di ","Dai ","Ling ","Yi ","Chao ","Chang ","Sa ","[?] ","Yi ","Mu ","Men ","Ren ","Jia ","Chao ","Yang ","Qian ","Zhong ","Pi ","Wan ","Wu ","Jian ","Jie ","Yao ","Feng ","Cang ","Ren ","Wang ","Fen ","Di ","Fang "]});var xK=m((HGe,DK)=>{DK.exports=["Zhong ","Qi ","Pei ","Yu ","Diao ","Dun ","Wen ","Yi ","Xin ","Kang ","Yi ","Ji ","Ai ","Wu ","Ji ","Fu ","Fa ","Xiu ","Jin ","Bei ","Dan ","Fu ","Tang ","Zhong ","You ","Huo ","Hui ","Yu ","Cui ","Chuan ","San ","Wei ","Chuan ","Che ","Ya ","Xian ","Shang ","Chang ","Lun ","Cang ","Xun ","Xin ","Wei ","Zhu ","[?] ","Xuan ","Nu ","Bo ","Gu ","Ni ","Ni ","Xie ","Ban ","Xu ","Ling ","Zhou ","Shen ","Qu ","Si ","Beng ","Si ","Jia ","Pi ","Yi ","Si ","Ai ","Zheng ","Dian ","Han ","Mai ","Dan ","Zhu ","Bu ","Qu ","Bi ","Shao ","Ci ","Wei ","Di ","Zhu ","Zuo ","You ","Yang ","Ti ","Zhan ","He ","Bi ","Tuo ","She ","Yu ","Yi ","Fo ","Zuo ","Kou ","Ning ","Tong ","Ni ","Xuan ","Qu ","Yong ","Wa ","Qian ","[?] ","Ka ","[?] ","Pei ","Huai ","He ","Lao ","Xiang ","Ge ","Yang ","Bai ","Fa ","Ming ","Jia ","Er ","Bing ","Ji ","Hen ","Huo ","Gui ","Quan ","Tiao ","Jiao ","Ci ","Yi ","Shi ","Xing ","Shen ","Tuo ","Kan ","Zhi ","Gai ","Lai ","Yi ","Chi ","Kua ","Guang ","Li ","Yin ","Shi ","Mi ","Zhu ","Xu ","You ","An ","Lu ","Mou ","Er ","Lun ","Tong ","Cha ","Chi ","Xun ","Gong ","Zhou ","Yi ","Ru ","Jian ","Xia ","Jia ","Zai ","Lu ","Ko ","Jiao ","Zhen ","Ce ","Qiao ","Kuai ","Chai ","Ning ","Nong ","Jin ","Wu ","Hou ","Jiong ","Cheng ","Zhen ","Zuo ","Chou ","Qin ","Lu ","Ju ","Shu ","Ting ","Shen ","Tuo ","Bo ","Nan ","Hao ","Bian ","Tui ","Yu ","Xi ","Cu ","E ","Qiu ","Xu ","Kuang ","Ku ","Wu ","Jun ","Yi ","Fu ","Lang ","Zu ","Qiao ","Li ","Yong ","Hun ","Jing ","Xian ","San ","Pai ","Su ","Fu ","Xi ","Li ","Fu ","Ping ","Bao ","Yu ","Si ","Xia ","Xin ","Xiu ","Yu ","Ti ","Che ","Chou ","[?] ","Yan ","Lia ","Li ","Lai ","[?] ","Jian ","Xiu ","Fu ","He ","Ju ","Xiao ","Pai ","Jian ","Biao ","Chu ","Fei ","Feng ","Ya ","An ","Bei ","Yu ","Xin ","Bi ","Jian "]});var SK=m((qGe,CK)=>{CK.exports=["Chang ","Chi ","Bing ","Zan ","Yao ","Cui ","Lia ","Wan ","Lai ","Cang ","Zong ","Ge ","Guan ","Bei ","Tian ","Shu ","Shu ","Men ","Dao ","Tan ","Jue ","Chui ","Xing ","Peng ","Tang ","Hou ","Yi ","Qi ","Ti ","Gan ","Jing ","Jie ","Sui ","Chang ","Jie ","Fang ","Zhi ","Kong ","Juan ","Zong ","Ju ","Qian ","Ni ","Lun ","Zhuo ","Wei ","Luo ","Song ","Leng ","Hun ","Dong ","Zi ","Ben ","Wu ","Ju ","Nai ","Cai ","Jian ","Zhai ","Ye ","Zhi ","Sha ","Qing ","[?] ","Ying ","Cheng ","Jian ","Yan ","Nuan ","Zhong ","Chun ","Jia ","Jie ","Wei ","Yu ","Bing ","Ruo ","Ti ","Wei ","Pian ","Yan ","Feng ","Tang ","Wo ","E ","Xie ","Che ","Sheng ","Kan ","Di ","Zuo ","Cha ","Ting ","Bei ","Ye ","Huang ","Yao ","Zhan ","Chou ","Yan ","You ","Jian ","Xu ","Zha ","Ci ","Fu ","Bi ","Zhi ","Zong ","Mian ","Ji ","Yi ","Xie ","Xun ","Si ","Duan ","Ce ","Zhen ","Ou ","Tou ","Tou ","Bei ","Za ","Lu ","Jie ","Wei ","Fen ","Chang ","Gui ","Sou ","Zhi ","Su ","Xia ","Fu ","Yuan ","Rong ","Li ","Ru ","Yun ","Gou ","Ma ","Bang ","Dian ","Tang ","Hao ","Jie ","Xi ","Shan ","Qian ","Jue ","Cang ","Chu ","San ","Bei ","Xiao ","Yong ","Yao ","Tan ","Suo ","Yang ","Fa ","Bing ","Jia ","Dai ","Zai ","Tang ","[?] ","Bin ","Chu ","Nuo ","Can ","Lei ","Cui ","Yong ","Zao ","Zong ","Peng ","Song ","Ao ","Chuan ","Yu ","Zhai ","Cou ","Shang ","Qiang ","Jing ","Chi ","Sha ","Han ","Zhang ","Qing ","Yan ","Di ","Xi ","Lu ","Bei ","Piao ","Jin ","Lian ","Lu ","Man ","Qian ","Xian ","Tan ","Ying ","Dong ","Zhuan ","Xiang ","Shan ","Qiao ","Jiong ","Tui ","Zun ","Pu ","Xi ","Lao ","Chang ","Guang ","Liao ","Qi ","Deng ","Chan ","Wei ","Ji ","Fan ","Hui ","Chuan ","Jian ","Dan ","Jiao ","Jiu ","Seng ","Fen ","Xian ","Jue ","E ","Jiao ","Jian ","Tong ","Lin ","Bo ","Gu ","[?] ","Su ","Xian ","Jiang ","Min ","Ye ","Jin ","Jia ","Qiao ","Pi ","Feng ","Zhou ","Ai ","Sai "]});var kK=m((YGe,TK)=>{TK.exports=["Yi ","Jun ","Nong ","Chan ","Yi ","Dang ","Jing ","Xuan ","Kuai ","Jian ","Chu ","Dan ","Jiao ","Sha ","Zai ","[?] ","Bin ","An ","Ru ","Tai ","Chou ","Chai ","Lan ","Ni ","Jin ","Qian ","Meng ","Wu ","Ning ","Qiong ","Ni ","Chang ","Lie ","Lei ","Lu ","Kuang ","Bao ","Du ","Biao ","Zan ","Zhi ","Si ","You ","Hao ","Chen ","Chen ","Li ","Teng ","Wei ","Long ","Chu ","Chan ","Rang ","Shu ","Hui ","Li ","Luo ","Zan ","Nuo ","Tang ","Yan ","Lei ","Nang ","Er ","Wu ","Yun ","Zan ","Yuan ","Xiong ","Chong ","Zhao ","Xiong ","Xian ","Guang ","Dui ","Ke ","Dui ","Mian ","Tu ","Chang ","Er ","Dui ","Er ","Xin ","Tu ","Si ","Yan ","Yan ","Shi ","Shi ","Dang ","Qian ","Dou ","Fen ","Mao ","Shen ","Dou ","Bai ","Jing ","Li ","Huang ","Ru ","Wang ","Nei ","Quan ","Liang ","Yu ","Ba ","Gong ","Liu ","Xi ","[?] ","Lan ","Gong ","Tian ","Guan ","Xing ","Bing ","Qi ","Ju ","Dian ","Zi ","Ppwun ","Yang ","Jian ","Shou ","Ji ","Yi ","Ji ","Chan ","Jiong ","Mao ","Ran ","Nei ","Yuan ","Mao ","Gang ","Ran ","Ce ","Jiong ","Ce ","Zai ","Gua ","Jiong ","Mao ","Zhou ","Mou ","Gou ","Xu ","Mian ","Mi ","Rong ","Yin ","Xie ","Kan ","Jun ","Nong ","Yi ","Mi ","Shi ","Guan ","Meng ","Zhong ","Ju ","Yuan ","Ming ","Kou ","Lam ","Fu ","Xie ","Mi ","Bing ","Dong ","Tai ","Gang ","Feng ","Bing ","Hu ","Chong ","Jue ","Hu ","Kuang ","Ye ","Leng ","Pan ","Fu ","Min ","Dong ","Xian ","Lie ","Xia ","Jian ","Jing ","Shu ","Mei ","Tu ","Qi ","Gu ","Zhun ","Song ","Jing ","Liang ","Qing ","Diao ","Ling ","Dong ","Gan ","Jian ","Yin ","Cou ","Yi ","Li ","Cang ","Ming ","Zhuen ","Cui ","Si ","Duo ","Jin ","Lin ","Lin ","Ning ","Xi ","Du ","Ji ","Fan ","Fan ","Fan ","Feng ","Ju ","Chu ","Tako ","Feng ","Mok ","Ci ","Fu ","Feng ","Ping ","Feng ","Kai ","Huang ","Kai ","Gan ","Deng ","Ping ","Qu ","Xiong ","Kuai ","Tu ","Ao ","Chu ","Ji ","Dang ","Han ","Han ","Zao "]});var PK=m((WGe,EK)=>{EK.exports=["Dao ","Diao ","Dao ","Ren ","Ren ","Chuang ","Fen ","Qie ","Yi ","Ji ","Kan ","Qian ","Cun ","Chu ","Wen ","Ji ","Dan ","Xing ","Hua ","Wan ","Jue ","Li ","Yue ","Lie ","Liu ","Ze ","Gang ","Chuang ","Fu ","Chu ","Qu ","Ju ","Shan ","Min ","Ling ","Zhong ","Pan ","Bie ","Jie ","Jie ","Bao ","Li ","Shan ","Bie ","Chan ","Jing ","Gua ","Gen ","Dao ","Chuang ","Kui ","Ku ","Duo ","Er ","Zhi ","Shua ","Quan ","Cha ","Ci ","Ke ","Jie ","Gui ","Ci ","Gui ","Kai ","Duo ","Ji ","Ti ","Jing ","Lou ","Gen ","Ze ","Yuan ","Cuo ","Xue ","Ke ","La ","Qian ","Cha ","Chuang ","Gua ","Jian ","Cuo ","Li ","Ti ","Fei ","Pou ","Chan ","Qi ","Chuang ","Zi ","Gang ","Wan ","Bo ","Ji ","Duo ","Qing ","Yan ","Zhuo ","Jian ","Ji ","Bo ","Yan ","Ju ","Huo ","Sheng ","Jian ","Duo ","Duan ","Wu ","Gua ","Fu ","Sheng ","Jian ","Ge ","Zha ","Kai ","Chuang ","Juan ","Chan ","Tuan ","Lu ","Li ","Fou ","Shan ","Piao ","Kou ","Jiao ","Gua ","Qiao ","Jue ","Hua ","Zha ","Zhuo ","Lian ","Ju ","Pi ","Liu ","Gui ","Jiao ","Gui ","Jian ","Jian ","Tang ","Huo ","Ji ","Jian ","Yi ","Jian ","Zhi ","Chan ","Cuan ","Mo ","Li ","Zhu ","Li ","Ya ","Quan ","Ban ","Gong ","Jia ","Wu ","Mai ","Lie ","Jin ","Keng ","Xie ","Zhi ","Dong ","Zhu ","Nu ","Jie ","Qu ","Shao ","Yi ","Zhu ","Miao ","Li ","Jing ","Lao ","Lao ","Juan ","Kou ","Yang ","Wa ","Xiao ","Mou ","Kuang ","Jie ","Lie ","He ","Shi ","Ke ","Jing ","Hao ","Bo ","Min ","Chi ","Lang ","Yong ","Yong ","Mian ","Ke ","Xun ","Juan ","Qing ","Lu ","Pou ","Meng ","Lai ","Le ","Kai ","Mian ","Dong ","Xu ","Xu ","Kan ","Wu ","Yi ","Xun ","Weng ","Sheng ","Lao ","Mu ","Lu ","Piao ","Shi ","Ji ","Qin ","Qiang ","Jiao ","Quan ","Yang ","Yi ","Jue ","Fan ","Juan ","Tong ","Ju ","Dan ","Xie ","Mai ","Xun ","Xun ","Lu ","Li ","Che ","Rang ","Quan ","Bao ","Shao ","Yun ","Jiu ","Bao ","Gou ","Wu "]});var RK=m((ZGe,_K)=>{_K.exports=["Yun ","Mwun ","Nay ","Gai ","Gai ","Bao ","Cong ","[?] ","Xiong ","Peng ","Ju ","Tao ","Ge ","Pu ","An ","Pao ","Fu ","Gong ","Da ","Jiu ","Qiong ","Bi ","Hua ","Bei ","Nao ","Chi ","Fang ","Jiu ","Yi ","Za ","Jiang ","Kang ","Jiang ","Kuang ","Hu ","Xia ","Qu ","Bian ","Gui ","Qie ","Zang ","Kuang ","Fei ","Hu ","Tou ","Gui ","Gui ","Hui ","Dan ","Gui ","Lian ","Lian ","Suan ","Du ","Jiu ","Qu ","Xi ","Pi ","Qu ","Yi ","Qia ","Yan ","Bian ","Ni ","Qu ","Shi ","Xin ","Qian ","Nian ","Sa ","Zu ","Sheng ","Wu ","Hui ","Ban ","Shi ","Xi ","Wan ","Hua ","Xie ","Wan ","Bei ","Zu ","Zhuo ","Xie ","Dan ","Mai ","Nan ","Dan ","Ji ","Bo ","Shuai ","Bu ","Kuang ","Bian ","Bu ","Zhan ","Qia ","Lu ","You ","Lu ","Xi ","Gua ","Wo ","Xie ","Jie ","Jie ","Wei ","Ang ","Qiong ","Zhi ","Mao ","Yin ","Wei ","Shao ","Ji ","Que ","Luan ","Shi ","Juan ","Xie ","Xu ","Jin ","Que ","Wu ","Ji ","E ","Qing ","Xi ","[?] ","Han ","Zhan ","E ","Ting ","Li ","Zhe ","Han ","Li ","Ya ","Ya ","Yan ","She ","Zhi ","Zha ","Pang ","[?] ","He ","Ya ","Zhi ","Ce ","Pang ","Ti ","Li ","She ","Hou ","Ting ","Zui ","Cuo ","Fei ","Yuan ","Ce ","Yuan ","Xiang ","Yan ","Li ","Jue ","Sha ","Dian ","Chu ","Jiu ","Qin ","Ao ","Gui ","Yan ","Si ","Li ","Chang ","Lan ","Li ","Yan ","Yan ","Yuan ","Si ","Gong ","Lin ","Qiu ","Qu ","Qu ","Uk ","Lei ","Du ","Xian ","Zhuan ","San ","Can ","Can ","Can ","Can ","Ai ","Dai ","You ","Cha ","Ji ","You ","Shuang ","Fan ","Shou ","Guai ","Ba ","Fa ","Ruo ","Shi ","Shu ","Zhuo ","Qu ","Shou ","Bian ","Xu ","Jia ","Pan ","Sou ","Gao ","Wei ","Sou ","Die ","Rui ","Cong ","Kou ","Gu ","Ju ","Ling ","Gua ","Tao ","Kou ","Zhi ","Jiao ","Zhao ","Ba ","Ding ","Ke ","Tai ","Chi ","Shi ","You ","Qiu ","Po ","Xie ","Hao ","Si ","Tan ","Chi ","Le ","Diao ","Ji ","[?] ","Hong "]});var FK=m((JGe,LK)=>{LK.exports=["Mie ","Xu ","Mang ","Chi ","Ge ","Xuan ","Yao ","Zi ","He ","Ji ","Diao ","Cun ","Tong ","Ming ","Hou ","Li ","Tu ","Xiang ","Zha ","Xia ","Ye ","Lu ","A ","Ma ","Ou ","Xue ","Yi ","Jun ","Chou ","Lin ","Tun ","Yin ","Fei ","Bi ","Qin ","Qin ","Jie ","Bu ","Fou ","Ba ","Dun ","Fen ","E ","Han ","Ting ","Hang ","Shun ","Qi ","Hong ","Zhi ","Shen ","Wu ","Wu ","Chao ","Ne ","Xue ","Xi ","Chui ","Dou ","Wen ","Hou ","Ou ","Wu ","Gao ","Ya ","Jun ","Lu ","E ","Ge ","Mei ","Ai ","Qi ","Cheng ","Wu ","Gao ","Fu ","Jiao ","Hong ","Chi ","Sheng ","Ne ","Tun ","Fu ","Yi ","Dai ","Ou ","Li ","Bai ","Yuan ","Kuai ","[?] ","Qiang ","Wu ","E ","Shi ","Quan ","Pen ","Wen ","Ni ","M ","Ling ","Ran ","You ","Di ","Zhou ","Shi ","Zhou ","Tie ","Xi ","Yi ","Qi ","Ping ","Zi ","Gu ","Zi ","Wei ","Xu ","He ","Nao ","Xia ","Pei ","Yi ","Xiao ","Shen ","Hu ","Ming ","Da ","Qu ","Ju ","Gem ","Za ","Tuo ","Duo ","Pou ","Pao ","Bi ","Fu ","Yang ","He ","Zha ","He ","Hai ","Jiu ","Yong ","Fu ","Que ","Zhou ","Wa ","Ka ","Gu ","Ka ","Zuo ","Bu ","Long ","Dong ","Ning ","Tha ","Si ","Xian ","Huo ","Qi ","Er ","E ","Guang ","Zha ","Xi ","Yi ","Lie ","Zi ","Mie ","Mi ","Zhi ","Yao ","Ji ","Zhou ","Ge ","Shuai ","Zan ","Xiao ","Ke ","Hui ","Kua ","Huai ","Tao ","Xian ","E ","Xuan ","Xiu ","Wai ","Yan ","Lao ","Yi ","Ai ","Pin ","Shen ","Tong ","Hong ","Xiong ","Chi ","Wa ","Ha ","Zai ","Yu ","Di ","Pai ","Xiang ","Ai ","Hen ","Kuang ","Ya ","Da ","Xiao ","Bi ","Yue ","[?] ","Hua ","Sasou ","Kuai ","Duo ","[?] ","Ji ","Nong ","Mou ","Yo ","Hao ","Yuan ","Long ","Pou ","Mang ","Ge ","E ","Chi ","Shao ","Li ","Na ","Zu ","He ","Ku ","Xiao ","Xian ","Lao ","Bo ","Zhe ","Zha ","Liang ","Ba ","Mie ","Le ","Sui ","Fou ","Bu ","Han ","Heng ","Geng ","Shuo ","Ge "]});var jK=m(($Ge,IK)=>{IK.exports=["You ","Yan ","Gu ","Gu ","Bai ","Han ","Suo ","Chun ","Yi ","Ai ","Jia ","Tu ","Xian ","Huan ","Li ","Xi ","Tang ","Zuo ","Qiu ","Che ","Wu ","Zao ","Ya ","Dou ","Qi ","Di ","Qin ","Ma ","Mal ","Hong ","Dou ","Kes ","Lao ","Liang ","Suo ","Zao ","Huan ","Lang ","Sha ","Ji ","Zuo ","Wo ","Feng ","Yin ","Hu ","Qi ","Shou ","Wei ","Shua ","Chang ","Er ","Li ","Qiang ","An ","Jie ","Yo ","Nian ","Yu ","Tian ","Lai ","Sha ","Xi ","Tuo ","Hu ","Ai ","Zhou ","Nou ","Ken ","Zhuo ","Zhuo ","Shang ","Di ","Heng ","Lan ","A ","Xiao ","Xiang ","Tun ","Wu ","Wen ","Cui ","Sha ","Hu ","Qi ","Qi ","Tao ","Dan ","Dan ","Ye ","Zi ","Bi ","Cui ","Chuo ","He ","Ya ","Qi ","Zhe ","Pei ","Liang ","Xian ","Pi ","Sha ","La ","Ze ","Qing ","Gua ","Pa ","Zhe ","Se ","Zhuan ","Nie ","Guo ","Luo ","Yan ","Di ","Quan ","Tan ","Bo ","Ding ","Lang ","Xiao ","[?] ","Tang ","Chi ","Ti ","An ","Jiu ","Dan ","Ke ","Yong ","Wei ","Nan ","Shan ","Yu ","Zhe ","La ","Jie ","Hou ","Han ","Die ","Zhou ","Chai ","Wai ","Re ","Yu ","Yin ","Zan ","Yao ","Wo ","Mian ","Hu ","Yun ","Chuan ","Hui ","Huan ","Huan ","Xi ","He ","Ji ","Kui ","Zhong ","Wei ","Sha ","Xu ","Huang ","Du ","Nie ","Xuan ","Liang ","Yu ","Sang ","Chi ","Qiao ","Yan ","Dan ","Pen ","Can ","Li ","Yo ","Zha ","Wei ","Miao ","Ying ","Pen ","Phos ","Kui ","Xi ","Yu ","Jie ","Lou ","Ku ","Sao ","Huo ","Ti ","Yao ","He ","A ","Xiu ","Qiang ","Se ","Yong ","Su ","Hong ","Xie ","Yi ","Suo ","Ma ","Cha ","Hai ","Ke ","Ta ","Sang ","Tian ","Ru ","Sou ","Wa ","Ji ","Pang ","Wu ","Xian ","Shi ","Ge ","Zi ","Jie ","Luo ","Weng ","Wa ","Si ","Chi ","Hao ","Suo ","Jia ","Hai ","Suo ","Qin ","Nie ","He ","Cis ","Sai ","Ng ","Ge ","Na ","Dia ","Ai ","[?] ","Tong ","Bi ","Ao ","Ao ","Lian ","Cui ","Zhe ","Mo ","Sou ","Sou ","Tan "]});var OK=m((XGe,AK)=>{AK.exports=["Di ","Qi ","Jiao ","Chong ","Jiao ","Kai ","Tan ","San ","Cao ","Jia ","Ai ","Xiao ","Piao ","Lou ","Ga ","Gu ","Xiao ","Hu ","Hui ","Guo ","Ou ","Xian ","Ze ","Chang ","Xu ","Po ","De ","Ma ","Ma ","Hu ","Lei ","Du ","Ga ","Tang ","Ye ","Beng ","Ying ","Saai ","Jiao ","Mi ","Xiao ","Hua ","Mai ","Ran ","Zuo ","Peng ","Lao ","Xiao ","Ji ","Zhu ","Chao ","Kui ","Zui ","Xiao ","Si ","Hao ","Fu ","Liao ","Qiao ","Xi ","Xiu ","Tan ","Tan ","Mo ","Xun ","E ","Zun ","Fan ","Chi ","Hui ","Zan ","Chuang ","Cu ","Dan ","Yu ","Tun ","Cheng ","Jiao ","Ye ","Xi ","Qi ","Hao ","Lian ","Xu ","Deng ","Hui ","Yin ","Pu ","Jue ","Qin ","Xun ","Nie ","Lu ","Si ","Yan ","Ying ","Da ","Dan ","Yu ","Zhou ","Jin ","Nong ","Yue ","Hui ","Qi ","E ","Zao ","Yi ","Shi ","Jiao ","Yuan ","Ai ","Yong ","Jue ","Kuai ","Yu ","Pen ","Dao ","Ge ","Xin ","Dun ","Dang ","Sin ","Sai ","Pi ","Pi ","Yin ","Zui ","Ning ","Di ","Lan ","Ta ","Huo ","Ru ","Hao ","Xia ","Ya ","Duo ","Xi ","Chou ","Ji ","Jin ","Hao ","Ti ","Chang ","[?] ","[?] ","Ca ","Ti ","Lu ","Hui ","Bo ","You ","Nie ","Yin ","Hu ","Mo ","Huang ","Zhe ","Li ","Liu ","Haai ","Nang ","Xiao ","Mo ","Yan ","Li ","Lu ","Long ","Fu ","Dan ","Chen ","Pin ","Pi ","Xiang ","Huo ","Mo ","Xi ","Duo ","Ku ","Yan ","Chan ","Ying ","Rang ","Dian ","La ","Ta ","Xiao ","Jiao ","Chuo ","Huan ","Huo ","Zhuan ","Nie ","Xiao ","Ca ","Li ","Chan ","Chai ","Li ","Yi ","Luo ","Nang ","Zan ","Su ","Xi ","So ","Jian ","Za ","Zhu ","Lan ","Nie ","Nang ","[?] ","[?] ","Wei ","Hui ","Yin ","Qiu ","Si ","Nin ","Jian ","Hui ","Xin ","Yin ","Nan ","Tuan ","Tuan ","Dun ","Kang ","Yuan ","Jiong ","Pian ","Yun ","Cong ","Hu ","Hui ","Yuan ","You ","Guo ","Kun ","Cong ","Wei ","Tu ","Wei ","Lun ","Guo ","Qun ","Ri ","Ling ","Gu ","Guo ","Tai ","Guo ","Tu ","You "]});var NK=m((UGe,MK)=>{MK.exports=["Guo ","Yin ","Hun ","Pu ","Yu ","Han ","Yuan ","Lun ","Quan ","Yu ","Qing ","Guo ","Chuan ","Wei ","Yuan ","Quan ","Ku ","Fu ","Yuan ","Yuan ","E ","Tu ","Tu ","Tu ","Tuan ","Lue ","Hui ","Yi ","Yuan ","Luan ","Luan ","Tu ","Ya ","Tu ","Ting ","Sheng ","Pu ","Lu ","Iri ","Ya ","Zai ","Wei ","Ge ","Yu ","Wu ","Gui ","Pi ","Yi ","Di ","Qian ","Qian ","Zhen ","Zhuo ","Dang ","Qia ","Akutsu ","Yama ","Kuang ","Chang ","Qi ","Nie ","Mo ","Ji ","Jia ","Zhi ","Zhi ","Ban ","Xun ","Tou ","Qin ","Fen ","Jun ","Keng ","Tun ","Fang ","Fen ","Ben ","Tan ","Kan ","Pi ","Zuo ","Keng ","Bi ","Xing ","Di ","Jing ","Ji ","Kuai ","Di ","Jing ","Jian ","Tan ","Li ","Ba ","Wu ","Fen ","Zhui ","Po ","Pan ","Tang ","Kun ","Qu ","Tan ","Zhi ","Tuo ","Gan ","Ping ","Dian ","Gua ","Ni ","Tai ","Pi ","Jiong ","Yang ","Fo ","Ao ","Liu ","Qiu ","Mu ","Ke ","Gou ","Xue ","Ba ","Chi ","Che ","Ling ","Zhu ","Fu ","Hu ","Zhi ","Chui ","La ","Long ","Long ","Lu ","Ao ","Tay ","Pao ","[?] ","Xing ","Dong ","Ji ","Ke ","Lu ","Ci ","Chi ","Lei ","Gai ","Yin ","Hou ","Dui ","Zhao ","Fu ","Guang ","Yao ","Duo ","Duo ","Gui ","Cha ","Yang ","Yin ","Fa ","Gou ","Yuan ","Die ","Xie ","Ken ","Jiong ","Shou ","E ","Ha ","Dian ","Hong ","Wu ","Kua ","[?] ","Tao ","Dang ","Kai ","Gake ","Nao ","An ","Xing ","Xian ","Huan ","Bang ","Pei ","Ba ","Yi ","Yin ","Han ","Xu ","Chui ","Cen ","Geng ","Ai ","Peng ","Fang ","Que ","Yong ","Xun ","Jia ","Di ","Mai ","Lang ","Xuan ","Cheng ","Yan ","Jin ","Zhe ","Lei ","Lie ","Bu ","Cheng ","Gomi ","Bu ","Shi ","Xun ","Guo ","Jiong ","Ye ","Nian ","Di ","Yu ","Bu ","Ya ","Juan ","Sui ","Pi ","Cheng ","Wan ","Ju ","Lun ","Zheng ","Kong ","Chong ","Dong ","Dai ","Tan ","An ","Cai ","Shu ","Beng ","Kan ","Zhi ","Duo ","Yi ","Zhi ","Yi ","Pei ","Ji ","Zhun ","Qi ","Sao ","Ju ","Ni "]});var HK=m((GGe,BK)=>{BK.exports=["Ku ","Ke ","Tang ","Kun ","Ni ","Jian ","Dui ","Jin ","Gang ","Yu ","E ","Peng ","Gu ","Tu ","Leng ","[?] ","Ya ","Qian ","[?] ","An ","[?] ","Duo ","Nao ","Tu ","Cheng ","Yin ","Hun ","Bi ","Lian ","Guo ","Die ","Zhuan ","Hou ","Bao ","Bao ","Yu ","Di ","Mao ","Jie ","Ruan ","E ","Geng ","Kan ","Zong ","Yu ","Huang ","E ","Yao ","Yan ","Bao ","Ji ","Mei ","Chang ","Du ","Tuo ","Yin ","Feng ","Zhong ","Jie ","Zhen ","Feng ","Gang ","Chuan ","Jian ","Pyeng ","Toride ","Xiang ","Huang ","Leng ","Duan ","[?] ","Xuan ","Ji ","Ji ","Kuai ","Ying ","Ta ","Cheng ","Yong ","Kai ","Su ","Su ","Shi ","Mi ","Ta ","Weng ","Cheng ","Tu ","Tang ","Que ","Zhong ","Li ","Peng ","Bang ","Sai ","Zang ","Dui ","Tian ","Wu ","Cheng ","Xun ","Ge ","Zhen ","Ai ","Gong ","Yan ","Kan ","Tian ","Yuan ","Wen ","Xie ","Liu ","Ama ","Lang ","Chang ","Peng ","Beng ","Chen ","Cu ","Lu ","Ou ","Qian ","Mei ","Mo ","Zhuan ","Shuang ","Shu ","Lou ","Chi ","Man ","Biao ","Jing ","Qi ","Shu ","Di ","Zhang ","Kan ","Yong ","Dian ","Chen ","Zhi ","Xi ","Guo ","Qiang ","Jin ","Di ","Shang ","Mu ","Cui ","Yan ","Ta ","Zeng ","Qi ","Qiang ","Liang ","[?] ","Zhui ","Qiao ","Zeng ","Xu ","Shan ","Shan ","Ba ","Pu ","Kuai ","Dong ","Fan ","Que ","Mo ","Dun ","Dun ","Dun ","Di ","Sheng ","Duo ","Duo ","Tan ","Deng ","Wu ","Fen ","Huang ","Tan ","Da ","Ye ","Sho ","Mama ","Yu ","Qiang ","Ji ","Qiao ","Ken ","Yi ","Pi ","Bi ","Dian ","Jiang ","Ye ","Yong ","Bo ","Tan ","Lan ","Ju ","Huai ","Dang ","Rang ","Qian ","Xun ","Lan ","Xi ","He ","Ai ","Ya ","Dao ","Hao ","Ruan ","Mama ","Lei ","Kuang ","Lu ","Yan ","Tan ","Wei ","Huai ","Long ","Long ","Rui ","Li ","Lin ","Rang ","Ten ","Xun ","Yan ","Lei ","Ba ","[?] ","Shi ","Ren ","[?] ","Zhuang ","Zhuang ","Sheng ","Yi ","Mai ","Ke ","Zhu ","Zhuang ","Hu ","Hu ","Kun ","Yi ","Hu ","Xu ","Kun ","Shou ","Mang ","Zun "]});var YK=m((QGe,qK)=>{qK.exports=["Shou ","Yi ","Zhi ","Gu ","Chu ","Jiang ","Feng ","Bei ","Cay ","Bian ","Sui ","Qun ","Ling ","Fu ","Zuo ","Xia ","Xiong ","[?] ","Nao ","Xia ","Kui ","Xi ","Wai ","Yuan ","Mao ","Su ","Duo ","Duo ","Ye ","Qing ","Uys ","Gou ","Gou ","Qi ","Meng ","Meng ","Yin ","Huo ","Chen ","Da ","Ze ","Tian ","Tai ","Fu ","Guai ","Yao ","Yang ","Hang ","Gao ","Shi ","Ben ","Tai ","Tou ","Yan ","Bi ","Yi ","Kua ","Jia ","Duo ","Kwu ","Kuang ","Yun ","Jia ","Pa ","En ","Lian ","Huan ","Di ","Yan ","Pao ","Quan ","Qi ","Nai ","Feng ","Xie ","Fen ","Dian ","[?] ","Kui ","Zou ","Huan ","Qi ","Kai ","Zha ","Ben ","Yi ","Jiang ","Tao ","Zang ","Ben ","Xi ","Xiang ","Fei ","Diao ","Xun ","Keng ","Dian ","Ao ","She ","Weng ","Pan ","Ao ","Wu ","Ao ","Jiang ","Lian ","Duo ","Yun ","Jiang ","Shi ","Fen ","Huo ","Bi ","Lian ","Duo ","Nu ","Nu ","Ding ","Nai ","Qian ","Jian ","Ta ","Jiu ","Nan ","Cha ","Hao ","Xian ","Fan ","Ji ","Shuo ","Ru ","Fei ","Wang ","Hong ","Zhuang ","Fu ","Ma ","Dan ","Ren ","Fu ","Jing ","Yan ","Xie ","Wen ","Zhong ","Pa ","Du ","Ji ","Keng ","Zhong ","Yao ","Jin ","Yun ","Miao ","Pei ","Shi ","Yue ","Zhuang ","Niu ","Yan ","Na ","Xin ","Fen ","Bi ","Yu ","Tuo ","Feng ","Yuan ","Fang ","Wu ","Yu ","Gui ","Du ","Ba ","Ni ","Zhou ","Zhuo ","Zhao ","Da ","Nai ","Yuan ","Tou ","Xuan ","Zhi ","E ","Mei ","Mo ","Qi ","Bi ","Shen ","Qie ","E ","He ","Xu ","Fa ","Zheng ","Min ","Ban ","Mu ","Fu ","Ling ","Zi ","Zi ","Shi ","Ran ","Shan ","Yang ","Man ","Jie ","Gu ","Si ","Xing ","Wei ","Zi ","Ju ","Shan ","Pin ","Ren ","Yao ","Tong ","Jiang ","Shu ","Ji ","Gai ","Shang ","Kuo ","Juan ","Jiao ","Gou ","Mu ","Jian ","Jian ","Yi ","Nian ","Zhi ","Ji ","Ji ","Xian ","Heng ","Guang ","Jun ","Kua ","Yan ","Ming ","Lie ","Pei ","Yan ","You ","Yan ","Cha ","Shen ","Yin ","Chi ","Gui ","Quan ","Zi "]});var ZK=m((KGe,WK)=>{WK.exports=["Song ","Wei ","Hong ","Wa ","Lou ","Ya ","Rao ","Jiao ","Luan ","Ping ","Xian ","Shao ","Li ","Cheng ","Xiao ","Mang ","Fu ","Suo ","Wu ","Wei ","Ke ","Lai ","Chuo ","Ding ","Niang ","Xing ","Nan ","Yu ","Nuo ","Pei ","Nei ","Juan ","Shen ","Zhi ","Han ","Di ","Zhuang ","E ","Pin ","Tui ","Han ","Mian ","Wu ","Yan ","Wu ","Xi ","Yan ","Yu ","Si ","Yu ","Wa ","[?] ","Xian ","Ju ","Qu ","Shui ","Qi ","Xian ","Zhui ","Dong ","Chang ","Lu ","Ai ","E ","E ","Lou ","Mian ","Cong ","Pou ","Ju ","Po ","Cai ","Ding ","Wan ","Biao ","Xiao ","Shu ","Qi ","Hui ","Fu ","E ","Wo ","Tan ","Fei ","Wei ","Jie ","Tian ","Ni ","Quan ","Jing ","Hun ","Jing ","Qian ","Dian ","Xing ","Hu ","Wa ","Lai ","Bi ","Yin ","Chou ","Chuo ","Fu ","Jing ","Lun ","Yan ","Lan ","Kun ","Yin ","Ya ","Ju ","Li ","Dian ","Xian ","Hwa ","Hua ","Ying ","Chan ","Shen ","Ting ","Dang ","Yao ","Wu ","Nan ","Ruo ","Jia ","Tou ","Xu ","Yu ","Wei ","Ti ","Rou ","Mei ","Dan ","Ruan ","Qin ","Hui ","Wu ","Qian ","Chun ","Mao ","Fu ","Jie ","Duan ","Xi ","Zhong ","Mei ","Huang ","Mian ","An ","Ying ","Xuan ","Jie ","Wei ","Mei ","Yuan ","Zhen ","Qiu ","Ti ","Xie ","Tuo ","Lian ","Mao ","Ran ","Si ","Pian ","Wei ","Wa ","Jiu ","Hu ","Ao ","[?] ","Bou ","Xu ","Tou ","Gui ","Zou ","Yao ","Pi ","Xi ","Yuan ","Ying ","Rong ","Ru ","Chi ","Liu ","Mei ","Pan ","Ao ","Ma ","Gou ","Kui ","Qin ","Jia ","Sao ","Zhen ","Yuan ","Cha ","Yong ","Ming ","Ying ","Ji ","Su ","Niao ","Xian ","Tao ","Pang ","Lang ","Nao ","Bao ","Ai ","Pi ","Pin ","Yi ","Piao ","Yu ","Lei ","Xuan ","Man ","Yi ","Zhang ","Kang ","Yong ","Ni ","Li ","Di ","Gui ","Yan ","Jin ","Zhuan ","Chang ","Ce ","Han ","Nen ","Lao ","Mo ","Zhe ","Hu ","Hu ","Ao ","Nen ","Qiang ","Ma ","Pie ","Gu ","Wu ","Jiao ","Tuo ","Zhan ","Mao ","Xian ","Xian ","Mo ","Liao ","Lian ","Hua "]});var $K=m((zGe,JK)=>{JK.exports=["Gui ","Deng ","Zhi ","Xu ","Yi ","Hua ","Xi ","Hui ","Rao ","Xi ","Yan ","Chan ","Jiao ","Mei ","Fan ","Fan ","Xian ","Yi ","Wei ","Jiao ","Fu ","Shi ","Bi ","Shan ","Sui ","Qiang ","Lian ","Huan ","Xin ","Niao ","Dong ","Yi ","Can ","Ai ","Niang ","Neng ","Ma ","Tiao ","Chou ","Jin ","Ci ","Yu ","Pin ","Yong ","Xu ","Nai ","Yan ","Tai ","Ying ","Can ","Niao ","Wo ","Ying ","Mian ","Kaka ","Ma ","Shen ","Xing ","Ni ","Du ","Liu ","Yuan ","Lan ","Yan ","Shuang ","Ling ","Jiao ","Niang ","Lan ","Xian ","Ying ","Shuang ","Shuai ","Quan ","Mi ","Li ","Luan ","Yan ","Zhu ","Lan ","Zi ","Jie ","Jue ","Jue ","Kong ","Yun ","Zi ","Zi ","Cun ","Sun ","Fu ","Bei ","Zi ","Xiao ","Xin ","Meng ","Si ","Tai ","Bao ","Ji ","Gu ","Nu ","Xue ","[?] ","Zhuan ","Hai ","Luan ","Sun ","Huai ","Mie ","Cong ","Qian ","Shu ","Chan ","Ya ","Zi ","Ni ","Fu ","Zi ","Li ","Xue ","Bo ","Ru ","Lai ","Nie ","Nie ","Ying ","Luan ","Mian ","Zhu ","Rong ","Ta ","Gui ","Zhai ","Qiong ","Yu ","Shou ","An ","Tu ","Song ","Wan ","Rou ","Yao ","Hong ","Yi ","Jing ","Zhun ","Mi ","Zhu ","Dang ","Hong ","Zong ","Guan ","Zhou ","Ding ","Wan ","Yi ","Bao ","Shi ","Shi ","Chong ","Shen ","Ke ","Xuan ","Shi ","You ","Huan ","Yi ","Tiao ","Shi ","Xian ","Gong ","Cheng ","Qun ","Gong ","Xiao ","Zai ","Zha ","Bao ","Hai ","Yan ","Xiao ","Jia ","Shen ","Chen ","Rong ","Huang ","Mi ","Kou ","Kuan ","Bin ","Su ","Cai ","Zan ","Ji ","Yuan ","Ji ","Yin ","Mi ","Kou ","Qing ","Que ","Zhen ","Jian ","Fu ","Ning ","Bing ","Huan ","Mei ","Qin ","Han ","Yu ","Shi ","Ning ","Qin ","Ning ","Zhi ","Yu ","Bao ","Kuan ","Ning ","Qin ","Mo ","Cha ","Ju ","Gua ","Qin ","Hu ","Wu ","Liao ","Shi ","Zhu ","Zhai ","Shen ","Wei ","Xie ","Kuan ","Hui ","Liao ","Jun ","Huan ","Yi ","Yi ","Bao ","Qin ","Chong ","Bao ","Feng ","Cun ","Dui ","Si ","Xun ","Dao ","Lu ","Dui ","Shou "]});var UK=m((VGe,XK)=>{XK.exports=["Po ","Feng ","Zhuan ","Fu ","She ","Ke ","Jiang ","Jiang ","Zhuan ","Wei ","Zun ","Xun ","Shu ","Dui ","Dao ","Xiao ","Ji ","Shao ","Er ","Er ","Er ","Ga ","Jian ","Shu ","Chen ","Shang ","Shang ","Mo ","Ga ","Chang ","Liao ","Xian ","Xian ","[?] ","Wang ","Wang ","You ","Liao ","Liao ","Yao ","Mang ","Wang ","Wang ","Wang ","Ga ","Yao ","Duo ","Kui ","Zhong ","Jiu ","Gan ","Gu ","Gan ","Tui ","Gan ","Gan ","Shi ","Yin ","Chi ","Kao ","Ni ","Jin ","Wei ","Niao ","Ju ","Pi ","Ceng ","Xi ","Bi ","Ju ","Jie ","Tian ","Qu ","Ti ","Jie ","Wu ","Diao ","Shi ","Shi ","Ping ","Ji ","Xie ","Chen ","Xi ","Ni ","Zhan ","Xi ","[?] ","Man ","E ","Lou ","Ping ","Ti ","Fei ","Shu ","Xie ","Tu ","Lu ","Lu ","Xi ","Ceng ","Lu ","Ju ","Xie ","Ju ","Jue ","Liao ","Jue ","Shu ","Xi ","Che ","Tun ","Ni ","Shan ","[?] ","Xian ","Li ","Xue ","Nata ","[?] ","Long ","Yi ","Qi ","Ren ","Wu ","Han ","Shen ","Yu ","Chu ","Sui ","Qi ","[?] ","Yue ","Ban ","Yao ","Ang ","Ya ","Wu ","Jie ","E ","Ji ","Qian ","Fen ","Yuan ","Qi ","Cen ","Qian ","Qi ","Cha ","Jie ","Qu ","Gang ","Xian ","Ao ","Lan ","Dao ","Ba ","Zuo ","Zuo ","Yang ","Ju ","Gang ","Ke ","Gou ","Xue ","Bei ","Li ","Tiao ","Ju ","Yan ","Fu ","Xiu ","Jia ","Ling ","Tuo ","Pei ","You ","Dai ","Kuang ","Yue ","Qu ","Hu ","Po ","Min ","An ","Tiao ","Ling ","Chi ","Yuri ","Dong ","Cem ","Kui ","Xiu ","Mao ","Tong ","Xue ","Yi ","Kura ","He ","Ke ","Luo ","E ","Fu ","Xun ","Die ","Lu ","An ","Er ","Gai ","Quan ","Tong ","Yi ","Mu ","Shi ","An ","Wei ","Hu ","Zhi ","Mi ","Li ","Ji ","Tong ","Wei ","You ","Sang ","Xia ","Li ","Yao ","Jiao ","Zheng ","Luan ","Jiao ","E ","E ","Yu ","Ye ","Bu ","Qiao ","Qun ","Feng ","Feng ","Nao ","Li ","You ","Xian ","Hong ","Dao ","Shen ","Cheng ","Tu ","Geng ","Jun ","Hao ","Xia ","Yin ","Yu "]});var QK=m((e6e,GK)=>{GK.exports=["Lang ","Kan ","Lao ","Lai ","Xian ","Que ","Kong ","Chong ","Chong ","Ta ","Lin ","Hua ","Ju ","Lai ","Qi ","Min ","Kun ","Kun ","Zu ","Gu ","Cui ","Ya ","Ya ","Gang ","Lun ","Lun ","Leng ","Jue ","Duo ","Zheng ","Guo ","Yin ","Dong ","Han ","Zheng ","Wei ","Yao ","Pi ","Yan ","Song ","Jie ","Beng ","Zu ","Jue ","Dong ","Zhan ","Gu ","Yin ","[?] ","Ze ","Huang ","Yu ","Wei ","Yang ","Feng ","Qiu ","Dun ","Ti ","Yi ","Zhi ","Shi ","Zai ","Yao ","E ","Zhu ","Kan ","Lu ","Yan ","Mei ","Gan ","Ji ","Ji ","Huan ","Ting ","Sheng ","Mei ","Qian ","Wu ","Yu ","Zong ","Lan ","Jue ","Yan ","Yan ","Wei ","Zong ","Cha ","Sui ","Rong ","Yamashina ","Qin ","Yu ","Kewashii ","Lou ","Tu ","Dui ","Xi ","Weng ","Cang ","Dang ","Hong ","Jie ","Ai ","Liu ","Wu ","Song ","Qiao ","Zi ","Wei ","Beng ","Dian ","Cuo ","Qian ","Yong ","Nie ","Cuo ","Ji ","[?] ","Tao ","Song ","Zong ","Jiang ","Liao ","Kang ","Chan ","Die ","Cen ","Ding ","Tu ","Lou ","Zhang ","Zhan ","Zhan ","Ao ","Cao ","Qu ","Qiang ","Zui ","Zui ","Dao ","Dao ","Xi ","Yu ","Bo ","Long ","Xiang ","Ceng ","Bo ","Qin ","Jiao ","Yan ","Lao ","Zhan ","Lin ","Liao ","Liao ","Jin ","Deng ","Duo ","Zun ","Jiao ","Gui ","Yao ","Qiao ","Yao ","Jue ","Zhan ","Yi ","Xue ","Nao ","Ye ","Ye ","Yi ","E ","Xian ","Ji ","Xie ","Ke ","Xi ","Di ","Ao ","Zui ","[?] ","Ni ","Rong ","Dao ","Ling ","Za ","Yu ","Yue ","Yin ","[?] ","Jie ","Li ","Sui ","Long ","Long ","Dian ","Ying ","Xi ","Ju ","Chan ","Ying ","Kui ","Yan ","Wei ","Nao ","Quan ","Chao ","Cuan ","Luan ","Dian ","Dian ","[?] ","Yan ","Yan ","Yan ","Nao ","Yan ","Chuan ","Gui ","Chuan ","Zhou ","Huang ","Jing ","Xun ","Chao ","Chao ","Lie ","Gong ","Zuo ","Qiao ","Ju ","Gong ","Kek ","Wu ","Pwu ","Pwu ","Chai ","Qiu ","Qiu ","Ji ","Yi ","Si ","Ba ","Zhi ","Zhao ","Xiang ","Yi ","Jin ","Xun ","Juan ","Phas ","Xun ","Jin ","Fu "]});var zK=m((t6e,KK)=>{KK.exports=["Za ","Bi ","Shi ","Bu ","Ding ","Shuai ","Fan ","Nie ","Shi ","Fen ","Pa ","Zhi ","Xi ","Hu ","Dan ","Wei ","Zhang ","Tang ","Dai ","Ma ","Pei ","Pa ","Tie ","Fu ","Lian ","Zhi ","Zhou ","Bo ","Zhi ","Di ","Mo ","Yi ","Yi ","Ping ","Qia ","Juan ","Ru ","Shuai ","Dai ","Zheng ","Shui ","Qiao ","Zhen ","Shi ","Qun ","Xi ","Bang ","Dai ","Gui ","Chou ","Ping ","Zhang ","Sha ","Wan ","Dai ","Wei ","Chang ","Sha ","Qi ","Ze ","Guo ","Mao ","Du ","Hou ","Zheng ","Xu ","Mi ","Wei ","Wo ","Fu ","Yi ","Bang ","Ping ","Tazuna ","Gong ","Pan ","Huang ","Dao ","Mi ","Jia ","Teng ","Hui ","Zhong ","Shan ","Man ","Mu ","Biao ","Guo ","Ze ","Mu ","Bang ","Zhang ","Jiong ","Chan ","Fu ","Zhi ","Hu ","Fan ","Chuang ","Bi ","Hei ","[?] ","Mi ","Qiao ","Chan ","Fen ","Meng ","Bang ","Chou ","Mie ","Chu ","Jie ","Xian ","Lan ","Gan ","Ping ","Nian ","Qian ","Bing ","Bing ","Xing ","Gan ","Yao ","Huan ","You ","You ","Ji ","Yan ","Pi ","Ting ","Ze ","Guang ","Zhuang ","Mo ","Qing ","Bi ","Qin ","Dun ","Chuang ","Gui ","Ya ","Bai ","Jie ","Xu ","Lu ","Wu ","[?] ","Ku ","Ying ","Di ","Pao ","Dian ","Ya ","Miao ","Geng ","Ci ","Fu ","Tong ","Pang ","Fei ","Xiang ","Yi ","Zhi ","Tiao ","Zhi ","Xiu ","Du ","Zuo ","Xiao ","Tu ","Gui ","Ku ","Pang ","Ting ","You ","Bu ","Ding ","Cheng ","Lai ","Bei ","Ji ","An ","Shu ","Kang ","Yong ","Tuo ","Song ","Shu ","Qing ","Yu ","Yu ","Miao ","Sou ","Ce ","Xiang ","Fei ","Jiu ","He ","Hui ","Liu ","Sha ","Lian ","Lang ","Sou ","Jian ","Pou ","Qing ","Jiu ","Jiu ","Qin ","Ao ","Kuo ","Lou ","Yin ","Liao ","Dai ","Lu ","Yi ","Chu ","Chan ","Tu ","Si ","Xin ","Miao ","Chang ","Wu ","Fei ","Guang ","Koc ","Kuai ","Bi ","Qiang ","Xie ","Lin ","Lin ","Liao ","Lu ","[?] ","Ying ","Xian ","Ting ","Yong ","Li ","Ting ","Yin ","Xun ","Yan ","Ting ","Di ","Po ","Jian ","Hui ","Nai ","Hui ","Gong ","Nian "]});var ez=m((i6e,VK)=>{VK.exports=["Kai ","Bian ","Yi ","Qi ","Nong ","Fen ","Ju ","Yan ","Yi ","Zang ","Bi ","Yi ","Yi ","Er ","San ","Shi ","Er ","Shi ","Shi ","Gong ","Diao ","Yin ","Hu ","Fu ","Hong ","Wu ","Tui ","Chi ","Jiang ","Ba ","Shen ","Di ","Zhang ","Jue ","Tao ","Fu ","Di ","Mi ","Xian ","Hu ","Chao ","Nu ","Jing ","Zhen ","Yi ","Mi ","Quan ","Wan ","Shao ","Ruo ","Xuan ","Jing ","Dun ","Zhang ","Jiang ","Qiang ","Peng ","Dan ","Qiang ","Bi ","Bi ","She ","Dan ","Jian ","Gou ","Sei ","Fa ","Bi ","Kou ","Nagi ","Bie ","Xiao ","Dan ","Kuo ","Qiang ","Hong ","Mi ","Kuo ","Wan ","Jue ","Ji ","Ji ","Gui ","Dang ","Lu ","Lu ","Tuan ","Hui ","Zhi ","Hui ","Hui ","Yi ","Yi ","Yi ","Yi ","Huo ","Huo ","Shan ","Xing ","Wen ","Tong ","Yan ","Yan ","Yu ","Chi ","Cai ","Biao ","Diao ","Bin ","Peng ","Yong ","Piao ","Zhang ","Ying ","Chi ","Chi ","Zhuo ","Tuo ","Ji ","Pang ","Zhong ","Yi ","Wang ","Che ","Bi ","Chi ","Ling ","Fu ","Wang ","Zheng ","Cu ","Wang ","Jing ","Dai ","Xi ","Xun ","Hen ","Yang ","Huai ","Lu ","Hou ","Wa ","Cheng ","Zhi ","Xu ","Jing ","Tu ","Cong ","[?] ","Lai ","Cong ","De ","Pai ","Xi ","[?] ","Qi ","Chang ","Zhi ","Cong ","Zhou ","Lai ","Yu ","Xie ","Jie ","Jian ","Chi ","Jia ","Bian ","Huang ","Fu ","Xun ","Wei ","Pang ","Yao ","Wei ","Xi ","Zheng ","Piao ","Chi ","De ","Zheng ","Zheng ","Bie ","De ","Chong ","Che ","Jiao ","Wei ","Jiao ","Hui ","Mei ","Long ","Xiang ","Bao ","Qu ","Xin ","Shu ","Bi ","Yi ","Le ","Ren ","Dao ","Ding ","Gai ","Ji ","Ren ","Ren ","Chan ","Tan ","Te ","Te ","Gan ","Qi ","Shi ","Cun ","Zhi ","Wang ","Mang ","Xi ","Fan ","Ying ","Tian ","Min ","Min ","Zhong ","Chong ","Wu ","Ji ","Wu ","Xi ","Ye ","You ","Wan ","Cong ","Zhong ","Kuai ","Yu ","Bian ","Zhi ","Qi ","Cui ","Chen ","Tai ","Tun ","Qian ","Nian ","Hun ","Xiong ","Niu ","Wang ","Xian ","Xin ","Kang ","Hu ","Kai ","Fen "]});var iz=m((n6e,tz)=>{tz.exports=["Huai ","Tai ","Song ","Wu ","Ou ","Chang ","Chuang ","Ju ","Yi ","Bao ","Chao ","Min ","Pei ","Zuo ","Zen ","Yang ","Kou ","Ban ","Nu ","Nao ","Zheng ","Pa ","Bu ","Tie ","Gu ","Hu ","Ju ","Da ","Lian ","Si ","Chou ","Di ","Dai ","Yi ","Tu ","You ","Fu ","Ji ","Peng ","Xing ","Yuan ","Ni ","Guai ","Fu ","Xi ","Bi ","You ","Qie ","Xuan ","Cong ","Bing ","Huang ","Xu ","Chu ","Pi ","Xi ","Xi ","Tan ","Koraeru ","Zong ","Dui ","[?] ","Ki ","Yi ","Chi ","Ren ","Xun ","Shi ","Xi ","Lao ","Heng ","Kuang ","Mu ","Zhi ","Xie ","Lian ","Tiao ","Huang ","Die ","Hao ","Kong ","Gui ","Heng ","Xi ","Xiao ","Shu ","S ","Kua ","Qiu ","Yang ","Hui ","Hui ","Chi ","Jia ","Yi ","Xiong ","Guai ","Lin ","Hui ","Zi ","Xu ","Chi ","Xiang ","Nu ","Hen ","En ","Ke ","Tong ","Tian ","Gong ","Quan ","Xi ","Qia ","Yue ","Peng ","Ken ","De ","Hui ","E ","Kyuu ","Tong ","Yan ","Kai ","Ce ","Nao ","Yun ","Mang ","Yong ","Yong ","Yuan ","Pi ","Kun ","Qiao ","Yue ","Yu ","Yu ","Jie ","Xi ","Zhe ","Lin ","Ti ","Han ","Hao ","Qie ","Ti ","Bu ","Yi ","Qian ","Hui ","Xi ","Bei ","Man ","Yi ","Heng ","Song ","Quan ","Cheng ","Hui ","Wu ","Wu ","You ","Li ","Liang ","Huan ","Cong ","Yi ","Yue ","Li ","Nin ","Nao ","E ","Que ","Xuan ","Qian ","Wu ","Min ","Cong ","Fei ","Bei ","Duo ","Cui ","Chang ","Men ","Li ","Ji ","Guan ","Guan ","Xing ","Dao ","Qi ","Kong ","Tian ","Lun ","Xi ","Kan ","Kun ","Ni ","Qing ","Chou ","Dun ","Guo ","Chan ","Liang ","Wan ","Yuan ","Jin ","Ji ","Lin ","Yu ","Huo ","He ","Quan ","Tan ","Ti ","Ti ","Nie ","Wang ","Chuo ","Bu ","Hun ","Xi ","Tang ","Xin ","Wei ","Hui ","E ","Rui ","Zong ","Jian ","Yong ","Dian ","Ju ","Can ","Cheng ","De ","Bei ","Qie ","Can ","Dan ","Guan ","Duo ","Nao ","Yun ","Xiang ","Zhui ","Die ","Huang ","Chun ","Qiong ","Re ","Xing ","Ce ","Bian ","Hun ","Zong ","Ti "]});var rz=m((r6e,nz)=>{nz.exports=["Qiao ","Chou ","Bei ","Xuan ","Wei ","Ge ","Qian ","Wei ","Yu ","Yu ","Bi ","Xuan ","Huan ","Min ","Bi ","Yi ","Mian ","Yong ","Kai ","Dang ","Yin ","E ","Chen ","Mou ","Ke ","Ke ","Yu ","Ai ","Qie ","Yan ","Nuo ","Gan ","Yun ","Zong ","Sai ","Leng ","Fen ","[?] ","Kui ","Kui ","Que ","Gong ","Yun ","Su ","Su ","Qi ","Yao ","Song ","Huang ","Ji ","Gu ","Ju ","Chuang ","Ni ","Xie ","Kai ","Zheng ","Yong ","Cao ","Sun ","Shen ","Bo ","Kai ","Yuan ","Xie ","Hun ","Yong ","Yang ","Li ","Sao ","Tao ","Yin ","Ci ","Xu ","Qian ","Tai ","Huang ","Yun ","Shen ","Ming ","[?] ","She ","Cong ","Piao ","Mo ","Mu ","Guo ","Chi ","Can ","Can ","Can ","Cui ","Min ","Te ","Zhang ","Tong ","Ao ","Shuang ","Man ","Guan ","Que ","Zao ","Jiu ","Hui ","Kai ","Lian ","Ou ","Song ","Jin ","Yin ","Lu ","Shang ","Wei ","Tuan ","Man ","Qian ","She ","Yong ","Qing ","Kang ","Di ","Zhi ","Lou ","Juan ","Qi ","Qi ","Yu ","Ping ","Liao ","Cong ","You ","Chong ","Zhi ","Tong ","Cheng ","Qi ","Qu ","Peng ","Bei ","Bie ","Chun ","Jiao ","Zeng ","Chi ","Lian ","Ping ","Kui ","Hui ","Qiao ","Cheng ","Yin ","Yin ","Xi ","Xi ","Dan ","Tan ","Duo ","Dui ","Dui ","Su ","Jue ","Ce ","Xiao ","Fan ","Fen ","Lao ","Lao ","Chong ","Han ","Qi ","Xian ","Min ","Jing ","Liao ","Wu ","Can ","Jue ","Cu ","Xian ","Tan ","Sheng ","Pi ","Yi ","Chu ","Xian ","Nao ","Dan ","Tan ","Jing ","Song ","Han ","Jiao ","Wai ","Huan ","Dong ","Qin ","Qin ","Qu ","Cao ","Ken ","Xie ","Ying ","Ao ","Mao ","Yi ","Lin ","Se ","Jun ","Huai ","Men ","Lan ","Ai ","Lin ","Yan ","Gua ","Xia ","Chi ","Yu ","Yin ","Dai ","Meng ","Ai ","Meng ","Dui ","Qi ","Mo ","Lan ","Men ","Chou ","Zhi ","Nuo ","Nuo ","Yan ","Yang ","Bo ","Zhi ","Kuang ","Kuang ","You ","Fu ","Liu ","Mie ","Cheng ","[?] ","Chan ","Meng ","Lan ","Huai ","Xuan ","Rang ","Chan ","Ji ","Ju ","Huan ","She ","Yi "]});var sz=m((o6e,oz)=>{oz.exports=["Lian ","Nan ","Mi ","Tang ","Jue ","Gang ","Gang ","Gang ","Ge ","Yue ","Wu ","Jian ","Xu ","Shu ","Rong ","Xi ","Cheng ","Wo ","Jie ","Ge ","Jian ","Qiang ","Huo ","Qiang ","Zhan ","Dong ","Qi ","Jia ","Die ","Zei ","Jia ","Ji ","Shi ","Kan ","Ji ","Kui ","Gai ","Deng ","Zhan ","Chuang ","Ge ","Jian ","Jie ","Yu ","Jian ","Yan ","Lu ","Xi ","Zhan ","Xi ","Xi ","Chuo ","Dai ","Qu ","Hu ","Hu ","Hu ","E ","Shi ","Li ","Mao ","Hu ","Li ","Fang ","Suo ","Bian ","Dian ","Jiong ","Shang ","Yi ","Yi ","Shan ","Hu ","Fei ","Yan ","Shou ","T ","Cai ","Zha ","Qiu ","Le ","Bu ","Ba ","Da ","Reng ","Fu ","Hameru ","Zai ","Tuo ","Zhang ","Diao ","Kang ","Yu ","Ku ","Han ","Shen ","Cha ","Yi ","Gu ","Kou ","Wu ","Tuo ","Qian ","Zhi ","Ren ","Kuo ","Men ","Sao ","Yang ","Niu ","Ban ","Che ","Rao ","Xi ","Qian ","Ban ","Jia ","Yu ","Fu ","Ao ","Xi ","Pi ","Zhi ","Zi ","E ","Dun ","Zhao ","Cheng ","Ji ","Yan ","Kuang ","Bian ","Chao ","Ju ","Wen ","Hu ","Yue ","Jue ","Ba ","Qin ","Zhen ","Zheng ","Yun ","Wan ","Nu ","Yi ","Shu ","Zhua ","Pou ","Tou ","Dou ","Kang ","Zhe ","Pou ","Fu ","Pao ","Ba ","Ao ","Ze ","Tuan ","Kou ","Lun ","Qiang ","[?] ","Hu ","Bao ","Bing ","Zhi ","Peng ","Tan ","Pu ","Pi ","Tai ","Yao ","Zhen ","Zha ","Yang ","Bao ","He ","Ni ","Yi ","Di ","Chi ","Pi ","Za ","Mo ","Mo ","Shen ","Ya ","Chou ","Qu ","Min ","Chu ","Jia ","Fu ","Zhan ","Zhu ","Dan ","Chai ","Mu ","Nian ","La ","Fu ","Pao ","Ban ","Pai ","Ling ","Na ","Guai ","Qian ","Ju ","Tuo ","Ba ","Tuo ","Tuo ","Ao ","Ju ","Zhuo ","Pan ","Zhao ","Bai ","Bai ","Di ","Ni ","Ju ","Kuo ","Long ","Jian ","[?] ","Yong ","Lan ","Ning ","Bo ","Ze ","Qian ","Hen ","Gua ","Shi ","Jie ","Zheng ","Nin ","Gong ","Gong ","Quan ","Shuan ","Cun ","Zan ","Kao ","Chi ","Xie ","Ce ","Hui ","Pin ","Zhuai ","Shi ","Na "]});var lz=m((s6e,az)=>{az.exports=["Bo ","Chi ","Gua ","Zhi ","Kuo ","Duo ","Duo ","Zhi ","Qie ","An ","Nong ","Zhen ","Ge ","Jiao ","Ku ","Dong ","Ru ","Tiao ","Lie ","Zha ","Lu ","Die ","Wa ","Jue ","Mushiru ","Ju ","Zhi ","Luan ","Ya ","Zhua ","Ta ","Xie ","Nao ","Dang ","Jiao ","Zheng ","Ji ","Hui ","Xun ","Ku ","Ai ","Tuo ","Nuo ","Cuo ","Bo ","Geng ","Ti ","Zhen ","Cheng ","Suo ","Suo ","Keng ","Mei ","Long ","Ju ","Peng ","Jian ","Yi ","Ting ","Shan ","Nuo ","Wan ","Xie ","Cha ","Feng ","Jiao ","Wu ","Jun ","Jiu ","Tong ","Kun ","Huo ","Tu ","Zhuo ","Pou ","Le ","Ba ","Han ","Shao ","Nie ","Juan ","Ze ","Song ","Ye ","Jue ","Bu ","Huan ","Bu ","Zun ","Yi ","Zhai ","Lu ","Sou ","Tuo ","Lao ","Sun ","Bang ","Jian ","Huan ","Dao ","[?] ","Wan ","Qin ","Peng ","She ","Lie ","Min ","Men ","Fu ","Bai ","Ju ","Dao ","Wo ","Ai ","Juan ","Yue ","Zong ","Chen ","Chui ","Jie ","Tu ","Ben ","Na ","Nian ","Nuo ","Zu ","Wo ","Xi ","Xian ","Cheng ","Dian ","Sao ","Lun ","Qing ","Gang ","Duo ","Shou ","Diao ","Pou ","Di ","Zhang ","Gun ","Ji ","Tao ","Qia ","Qi ","Pai ","Shu ","Qian ","Ling ","Yi ","Ya ","Jue ","Zheng ","Liang ","Gua ","Yi ","Huo ","Shan ","Zheng ","Lue ","Cai ","Tan ","Che ","Bing ","Jie ","Ti ","Kong ","Tui ","Yan ","Cuo ","Zou ","Ju ","Tian ","Qian ","Ken ","Bai ","Shou ","Jie ","Lu ","Guo ","Haba ","[?] ","Zhi ","Dan ","Mang ","Xian ","Sao ","Guan ","Peng ","Yuan ","Nuo ","Jian ","Zhen ","Jiu ","Jian ","Yu ","Yan ","Kui ","Nan ","Hong ","Rou ","Pi ","Wei ","Sai ","Zou ","Xuan ","Miao ","Ti ","Nie ","Cha ","Shi ","Zong ","Zhen ","Yi ","Shun ","Heng ","Bian ","Yang ","Huan ","Yan ","Zuan ","An ","Xu ","Ya ","Wo ","Ke ","Chuai ","Ji ","Ti ","La ","La ","Cheng ","Kai ","Jiu ","Jiu ","Tu ","Jie ","Hui ","Geng ","Chong ","Shuo ","She ","Xie ","Yuan ","Qian ","Ye ","Cha ","Zha ","Bei ","Yao ","[?] ","[?] ","Lan ","Wen ","Qin "]});var cz=m((a6e,uz)=>{uz.exports=["Chan ","Ge ","Lou ","Zong ","Geng ","Jiao ","Gou ","Qin ","Yong ","Que ","Chou ","Chi ","Zhan ","Sun ","Sun ","Bo ","Chu ","Rong ","Beng ","Cuo ","Sao ","Ke ","Yao ","Dao ","Zhi ","Nu ","Xie ","Jian ","Sou ","Qiu ","Gao ","Xian ","Shuo ","Sang ","Jin ","Mie ","E ","Chui ","Nuo ","Shan ","Ta ","Jie ","Tang ","Pan ","Ban ","Da ","Li ","Tao ","Hu ","Zhi ","Wa ","Xia ","Qian ","Wen ","Qiang ","Tian ","Zhen ","E ","Xi ","Nuo ","Quan ","Cha ","Zha ","Ge ","Wu ","En ","She ","Kang ","She ","Shu ","Bai ","Yao ","Bin ","Sou ","Tan ","Sa ","Chan ","Suo ","Liao ","Chong ","Chuang ","Guo ","Bing ","Feng ","Shuai ","Di ","Qi ","Sou ","Zhai ","Lian ","Tang ","Chi ","Guan ","Lu ","Luo ","Lou ","Zong ","Gai ","Hu ","Zha ","Chuang ","Tang ","Hua ","Cui ","Nai ","Mo ","Jiang ","Gui ","Ying ","Zhi ","Ao ","Zhi ","Nie ","Man ","Shan ","Kou ","Shu ","Suo ","Tuan ","Jiao ","Mo ","Mo ","Zhe ","Xian ","Keng ","Piao ","Jiang ","Yin ","Gou ","Qian ","Lue ","Ji ","Ying ","Jue ","Pie ","Pie ","Lao ","Dun ","Xian ","Ruan ","Kui ","Zan ","Yi ","Xun ","Cheng ","Cheng ","Sa ","Nao ","Heng ","Si ","Qian ","Huang ","Da ","Zun ","Nian ","Lin ","Zheng ","Hui ","Zhuang ","Jiao ","Ji ","Cao ","Dan ","Dan ","Che ","Bo ","Che ","Jue ","Xiao ","Liao ","Ben ","Fu ","Qiao ","Bo ","Cuo ","Zhuo ","Zhuan ","Tuo ","Pu ","Qin ","Dun ","Nian ","[?] ","Xie ","Lu ","Jiao ","Cuan ","Ta ","Han ","Qiao ","Zhua ","Jian ","Gan ","Yong ","Lei ","Kuo ","Lu ","Shan ","Zhuo ","Ze ","Pu ","Chuo ","Ji ","Dang ","Suo ","Cao ","Qing ","Jing ","Huan ","Jie ","Qin ","Kuai ","Dan ","Xi ","Ge ","Pi ","Bo ","Ao ","Ju ","Ye ","[?] ","Mang ","Sou ","Mi ","Ji ","Tai ","Zhuo ","Dao ","Xing ","Lan ","Ca ","Ju ","Ye ","Ru ","Ye ","Ye ","Ni ","Hu ","Ji ","Bin ","Ning ","Ge ","Zhi ","Jie ","Kuo ","Mo ","Jian ","Xie ","Lie ","Tan ","Bai ","Sou ","Lu ","Lue ","Rao ","Zhi "]});var dz=m((l6e,hz)=>{hz.exports=["Pan ","Yang ","Lei ","Sa ","Shu ","Zan ","Nian ","Xian ","Jun ","Huo ","Li ","La ","Han ","Ying ","Lu ","Long ","Qian ","Qian ","Zan ","Qian ","Lan ","San ","Ying ","Mei ","Rang ","Chan ","[?] ","Cuan ","Xi ","She ","Luo ","Jun ","Mi ","Li ","Zan ","Luan ","Tan ","Zuan ","Li ","Dian ","Wa ","Dang ","Jiao ","Jue ","Lan ","Li ","Nang ","Zhi ","Gui ","Gui ","Qi ","Xin ","Pu ","Sui ","Shou ","Kao ","You ","Gai ","Yi ","Gong ","Gan ","Ban ","Fang ","Zheng ","Bo ","Dian ","Kou ","Min ","Wu ","Gu ","He ","Ce ","Xiao ","Mi ","Chu ","Ge ","Di ","Xu ","Jiao ","Min ","Chen ","Jiu ","Zhen ","Duo ","Yu ","Chi ","Ao ","Bai ","Xu ","Jiao ","Duo ","Lian ","Nie ","Bi ","Chang ","Dian ","Duo ","Yi ","Gan ","San ","Ke ","Yan ","Dun ","Qi ","Dou ","Xiao ","Duo ","Jiao ","Jing ","Yang ","Xia ","Min ","Shu ","Ai ","Qiao ","Ai ","Zheng ","Di ","Zhen ","Fu ","Shu ","Liao ","Qu ","Xiong ","Xi ","Jiao ","Sen ","Jiao ","Zhuo ","Yi ","Lian ","Bi ","Li ","Xiao ","Xiao ","Wen ","Xue ","Qi ","Qi ","Zhai ","Bin ","Jue ","Zhai ","[?] ","Fei ","Ban ","Ban ","Lan ","Yu ","Lan ","Wei ","Dou ","Sheng ","Liao ","Jia ","Hu ","Xie ","Jia ","Yu ","Zhen ","Jiao ","Wo ","Tou ","Chu ","Jin ","Chi ","Yin ","Fu ","Qiang ","Zhan ","Qu ","Zhuo ","Zhan ","Duan ","Zhuo ","Si ","Xin ","Zhuo ","Zhuo ","Qin ","Lin ","Zhuo ","Chu ","Duan ","Zhu ","Fang ","Xie ","Hang ","Yu ","Shi ","Pei ","You ","Mye ","Pang ","Qi ","Zhan ","Mao ","Lu ","Pei ","Pi ","Liu ","Fu ","Fang ","Xuan ","Jing ","Jing ","Ni ","Zu ","Zhao ","Yi ","Liu ","Shao ","Jian ","Es ","Yi ","Qi ","Zhi ","Fan ","Piao ","Fan ","Zhan ","Guai ","Sui ","Yu ","Wu ","Ji ","Ji ","Ji ","Huo ","Ri ","Dan ","Jiu ","Zhi ","Zao ","Xie ","Tiao ","Xun ","Xu ","Xu ","Xu ","Gan ","Han ","Tai ","Di ","Xu ","Chan ","Shi ","Kuang ","Yang ","Shi ","Wang ","Min ","Min ","Tun ","Chun ","Wu "]});var fz=m((u6e,gz)=>{gz.exports=["Yun ","Bei ","Ang ","Ze ","Ban ","Jie ","Kun ","Sheng ","Hu ","Fang ","Hao ","Gui ","Chang ","Xuan ","Ming ","Hun ","Fen ","Qin ","Hu ","Yi ","Xi ","Xin ","Yan ","Ze ","Fang ","Tan ","Shen ","Ju ","Yang ","Zan ","Bing ","Xing ","Ying ","Xuan ","Pei ","Zhen ","Ling ","Chun ","Hao ","Mei ","Zuo ","Mo ","Bian ","Xu ","Hun ","Zhao ","Zong ","Shi ","Shi ","Yu ","Fei ","Die ","Mao ","Ni ","Chang ","Wen ","Dong ","Ai ","Bing ","Ang ","Zhou ","Long ","Xian ","Kuang ","Tiao ","Chao ","Shi ","Huang ","Huang ","Xuan ","Kui ","Xu ","Jiao ","Jin ","Zhi ","Jin ","Shang ","Tong ","Hong ","Yan ","Gai ","Xiang ","Shai ","Xiao ","Ye ","Yun ","Hui ","Han ","Han ","Jun ","Wan ","Xian ","Kun ","Zhou ","Xi ","Cheng ","Sheng ","Bu ","Zhe ","Zhe ","Wu ","Han ","Hui ","Hao ","Chen ","Wan ","Tian ","Zhuo ","Zui ","Zhou ","Pu ","Jing ","Xi ","Shan ","Yi ","Xi ","Qing ","Qi ","Jing ","Gui ","Zhen ","Yi ","Zhi ","An ","Wan ","Lin ","Liang ","Chang ","Wang ","Xiao ","Zan ","Hi ","Xuan ","Xuan ","Yi ","Xia ","Yun ","Hui ","Fu ","Min ","Kui ","He ","Ying ","Du ","Wei ","Shu ","Qing ","Mao ","Nan ","Jian ","Nuan ","An ","Yang ","Chun ","Yao ","Suo ","Jin ","Ming ","Jiao ","Kai ","Gao ","Weng ","Chang ","Qi ","Hao ","Yan ","Li ","Ai ","Ji ","Gui ","Men ","Zan ","Xie ","Hao ","Mu ","Mo ","Cong ","Ni ","Zhang ","Hui ","Bao ","Han ","Xuan ","Chuan ","Liao ","Xian ","Dan ","Jing ","Pie ","Lin ","Tun ","Xi ","Yi ","Ji ","Huang ","Tai ","Ye ","Ye ","Li ","Tan ","Tong ","Xiao ","Fei ","Qin ","Zhao ","Hao ","Yi ","Xiang ","Xing ","Sen ","Jiao ","Bao ","Jing ","Yian ","Ai ","Ye ","Ru ","Shu ","Meng ","Xun ","Yao ","Pu ","Li ","Chen ","Kuang ","Die ","[?] ","Yan ","Huo ","Lu ","Xi ","Rong ","Long ","Nang ","Luo ","Luan ","Shai ","Tang ","Yan ","Chu ","Yue ","Yue ","Qu ","Yi ","Geng ","Ye ","Hu ","He ","Shu ","Cao ","Cao ","Noboru ","Man ","Ceng ","Ceng ","Ti "]});var mz=m((c6e,pz)=>{pz.exports=["Zui ","Can ","Xu ","Hui ","Yin ","Qie ","Fen ","Pi ","Yue ","You ","Ruan ","Peng ","Ban ","Fu ","Ling ","Fei ","Qu ","[?] ","Nu ","Tiao ","Shuo ","Zhen ","Lang ","Lang ","Juan ","Ming ","Huang ","Wang ","Tun ","Zhao ","Ji ","Qi ","Ying ","Zong ","Wang ","Tong ","Lang ","[?] ","Meng ","Long ","Mu ","Deng ","Wei ","Mo ","Ben ","Zha ","Zhu ","Zhu ","[?] ","Zhu ","Ren ","Ba ","Po ","Duo ","Duo ","Dao ","Li ","Qiu ","Ji ","Jiu ","Bi ","Xiu ","Ting ","Ci ","Sha ","Eburi ","Za ","Quan ","Qian ","Yu ","Gan ","Wu ","Cha ","Shan ","Xun ","Fan ","Wu ","Zi ","Li ","Xing ","Cai ","Cun ","Ren ","Shao ","Tuo ","Di ","Zhang ","Mang ","Chi ","Yi ","Gu ","Gong ","Du ","Yi ","Qi ","Shu ","Gang ","Tiao ","Moku ","Soma ","Tochi ","Lai ","Sugi ","Mang ","Yang ","Ma ","Miao ","Si ","Yuan ","Hang ","Fei ","Bei ","Jie ","Dong ","Gao ","Yao ","Xian ","Chu ","Qun ","Pa ","Shu ","Hua ","Xin ","Chou ","Zhu ","Chou ","Song ","Ban ","Song ","Ji ","Yue ","Jin ","Gou ","Ji ","Mao ","Pi ","Bi ","Wang ","Ang ","Fang ","Fen ","Yi ","Fu ","Nan ","Xi ","Hu ","Ya ","Dou ","Xun ","Zhen ","Yao ","Lin ","Rui ","E ","Mei ","Zhao ","Guo ","Zhi ","Cong ","Yun ","Waku ","Dou ","Shu ","Zao ","[?] ","Li ","Haze ","Jian ","Cheng ","Matsu ","Qiang ","Feng ","Nan ","Xiao ","Xian ","Ku ","Ping ","Yi ","Xi ","Zhi ","Guai ","Xiao ","Jia ","Jia ","Gou ","Fu ","Mo ","Yi ","Ye ","Ye ","Shi ","Nie ","Bi ","Duo ","Yi ","Ling ","Bing ","Ni ","La ","He ","Pan ","Fan ","Zhong ","Dai ","Ci ","Yang ","Fu ","Bo ","Mou ","Gan ","Qi ","Ran ","Rou ","Mao ","Zhao ","Song ","Zhe ","Xia ","You ","Shen ","Ju ","Tuo ","Zuo ","Nan ","Ning ","Yong ","Di ","Zhi ","Zha ","Cha ","Dan ","Gu ","Pu ","Jiu ","Ao ","Fu ","Jian ","Bo ","Duo ","Ke ","Nai ","Zhu ","Bi ","Liu ","Chai ","Zha ","Si ","Zhu ","Pei ","Shi ","Guai ","Cha ","Yao ","Jue ","Jiu ","Shi "]});var yz=m((h6e,bz)=>{bz.exports=["Zhi ","Liu ","Mei ","Hoy ","Rong ","Zha ","[?] ","Biao ","Zhan ","Jie ","Long ","Dong ","Lu ","Sayng ","Li ","Lan ","Yong ","Shu ","Xun ","Shuan ","Qi ","Zhen ","Qi ","Li ","Yi ","Xiang ","Zhen ","Li ","Su ","Gua ","Kan ","Bing ","Ren ","Xiao ","Bo ","Ren ","Bing ","Zi ","Chou ","Yi ","Jie ","Xu ","Zhu ","Jian ","Zui ","Er ","Er ","You ","Fa ","Gong ","Kao ","Lao ","Zhan ","Li ","Yin ","Yang ","He ","Gen ","Zhi ","Chi ","Ge ","Zai ","Luan ","Fu ","Jie ","Hang ","Gui ","Tao ","Guang ","Wei ","Kuang ","Ru ","An ","An ","Juan ","Yi ","Zhuo ","Ku ","Zhi ","Qiong ","Tong ","Sang ","Sang ","Huan ","Jie ","Jiu ","Xue ","Duo ","Zhui ","Yu ","Zan ","Kasei ","Ying ","Masu ","[?] ","Zhan ","Ya ","Nao ","Zhen ","Dang ","Qi ","Qiao ","Hua ","Kuai ","Jiang ","Zhuang ","Xun ","Suo ","Sha ","Zhen ","Bei ","Ting ","Gua ","Jing ","Bo ","Ben ","Fu ","Rui ","Tong ","Jue ","Xi ","Lang ","Liu ","Feng ","Qi ","Wen ","Jun ","Gan ","Cu ","Liang ","Qiu ","Ting ","You ","Mei ","Bang ","Long ","Peng ","Zhuang ","Di ","Xuan ","Tu ","Zao ","Ao ","Gu ","Bi ","Di ","Han ","Zi ","Zhi ","Ren ","Bei ","Geng ","Jian ","Huan ","Wan ","Nuo ","Jia ","Tiao ","Ji ","Xiao ","Lu ","Huan ","Shao ","Cen ","Fen ","Song ","Meng ","Wu ","Li ","Li ","Dou ","Cen ","Ying ","Suo ","Ju ","Ti ","Jie ","Kun ","Zhuo ","Shu ","Chan ","Fan ","Wei ","Jing ","Li ","Bing ","Fumoto ","Shikimi ","Tao ","Zhi ","Lai ","Lian ","Jian ","Zhuo ","Ling ","Li ","Qi ","Bing ","Zhun ","Cong ","Qian ","Mian ","Qi ","Qi ","Cai ","Gun ","Chan ","Te ","Fei ","Pai ","Bang ","Pou ","Hun ","Zong ","Cheng ","Zao ","Ji ","Li ","Peng ","Yu ","Yu ","Gu ","Hun ","Dong ","Tang ","Gang ","Wang ","Di ","Xi ","Fan ","Cheng ","Zhan ","Qi ","Yuan ","Yan ","Yu ","Quan ","Yi ","Sen ","Ren ","Chui ","Leng ","Qi ","Zhuo ","Fu ","Ke ","Lai ","Zou ","Zou ","Zhuo ","Guan ","Fen ","Fen ","Chen ","Qiong ","Nie "]});var wz=m((d6e,vz)=>{vz.exports=["Wan ","Guo ","Lu ","Hao ","Jie ","Yi ","Chou ","Ju ","Ju ","Cheng ","Zuo ","Liang ","Qiang ","Zhi ","Zhui ","Ya ","Ju ","Bei ","Jiao ","Zhuo ","Zi ","Bin ","Peng ","Ding ","Chu ","Chang ","Kunugi ","Momiji ","Jian ","Gui ","Xi ","Du ","Qian ","Kunugi ","Soko ","Shide ","Luo ","Zhi ","Ken ","Myeng ","Tafu ","[?] ","Peng ","Zhan ","[?] ","Tuo ","Sen ","Duo ","Ye ","Fou ","Wei ","Wei ","Duan ","Jia ","Zong ","Jian ","Yi ","Shen ","Xi ","Yan ","Yan ","Chuan ","Zhan ","Chun ","Yu ","He ","Zha ","Wo ","Pian ","Bi ","Yao ","Huo ","Xu ","Ruo ","Yang ","La ","Yan ","Ben ","Hun ","Kui ","Jie ","Kui ","Si ","Feng ","Xie ","Tuo ","Zhi ","Jian ","Mu ","Mao ","Chu ","Hu ","Hu ","Lian ","Leng ","Ting ","Nan ","Yu ","You ","Mei ","Song ","Xuan ","Xuan ","Ying ","Zhen ","Pian ","Ye ","Ji ","Jie ","Ye ","Chu ","Shun ","Yu ","Cou ","Wei ","Mei ","Di ","Ji ","Jie ","Kai ","Qiu ","Ying ","Rou ","Heng ","Lou ","Le ","Hazou ","Katsura ","Pin ","Muro ","Gai ","Tan ","Lan ","Yun ","Yu ","Chen ","Lu ","Ju ","Sakaki ","[?] ","Pi ","Xie ","Jia ","Yi ","Zhan ","Fu ","Nai ","Mi ","Lang ","Rong ","Gu ","Jian ","Ju ","Ta ","Yao ","Zhen ","Bang ","Sha ","Yuan ","Zi ","Ming ","Su ","Jia ","Yao ","Jie ","Huang ","Gan ","Fei ","Zha ","Qian ","Ma ","Sun ","Yuan ","Xie ","Rong ","Shi ","Zhi ","Cui ","Yun ","Ting ","Liu ","Rong ","Tang ","Que ","Zhai ","Si ","Sheng ","Ta ","Ke ","Xi ","Gu ","Qi ","Kao ","Gao ","Sun ","Pan ","Tao ","Ge ","Xun ","Dian ","Nou ","Ji ","Shuo ","Gou ","Chui ","Qiang ","Cha ","Qian ","Huai ","Mei ","Xu ","Gang ","Gao ","Zhuo ","Tuo ","Hashi ","Yang ","Dian ","Jia ","Jian ","Zui ","Kashi ","Ori ","Bin ","Zhu ","[?] ","Xi ","Qi ","Lian ","Hui ","Yong ","Qian ","Guo ","Gai ","Gai ","Tuan ","Hua ","Cu ","Sen ","Cui ","Beng ","You ","Hu ","Jiang ","Hu ","Huan ","Kui ","Yi ","Nie ","Gao ","Kang ","Gui ","Gui ","Cao ","Man ","Jin "]});var xz=m((g6e,Dz)=>{Dz.exports=["Di ","Zhuang ","Le ","Lang ","Chen ","Cong ","Li ","Xiu ","Qing ","Shuang ","Fan ","Tong ","Guan ","Ji ","Suo ","Lei ","Lu ","Liang ","Mi ","Lou ","Chao ","Su ","Ke ","Shu ","Tang ","Biao ","Lu ","Jiu ","Shu ","Zha ","Shu ","Zhang ","Men ","Mo ","Niao ","Yang ","Tiao ","Peng ","Zhu ","Sha ","Xi ","Quan ","Heng ","Jian ","Cong ","[?] ","Hokuso ","Qiang ","Tara ","Ying ","Er ","Xin ","Zhi ","Qiao ","Zui ","Cong ","Pu ","Shu ","Hua ","Kui ","Zhen ","Zun ","Yue ","Zhan ","Xi ","Xun ","Dian ","Fa ","Gan ","Mo ","Wu ","Qiao ","Nao ","Lin ","Liu ","Qiao ","Xian ","Run ","Fan ","Zhan ","Tuo ","Lao ","Yun ","Shun ","Tui ","Cheng ","Tang ","Meng ","Ju ","Cheng ","Su ","Jue ","Jue ","Tan ","Hui ","Ji ","Nuo ","Xiang ","Tuo ","Ning ","Rui ","Zhu ","Chuang ","Zeng ","Fen ","Qiong ","Ran ","Heng ","Cen ","Gu ","Liu ","Lao ","Gao ","Chu ","Zusa ","Nude ","Ca ","San ","Ji ","Dou ","Shou ","Lu ","[?] ","[?] ","Yuan ","Ta ","Shu ","Jiang ","Tan ","Lin ","Nong ","Yin ","Xi ","Sui ","Shan ","Zui ","Xuan ","Cheng ","Gan ","Ju ","Zui ","Yi ","Qin ","Pu ","Yan ","Lei ","Feng ","Hui ","Dang ","Ji ","Sui ","Bo ","Bi ","Ding ","Chu ","Zhua ","Kuai ","Ji ","Jie ","Jia ","Qing ","Zhe ","Jian ","Qiang ","Dao ","Yi ","Biao ","Song ","She ","Lin ","Kunugi ","Cha ","Meng ","Yin ","Tao ","Tai ","Mian ","Qi ","Toan ","Bin ","Huo ","Ji ","Qian ","Mi ","Ning ","Yi ","Gao ","Jian ","Yin ","Er ","Qing ","Yan ","Qi ","Mi ","Zhao ","Gui ","Chun ","Ji ","Kui ","Po ","Deng ","Chu ","[?] ","Mian ","You ","Zhi ","Guang ","Qian ","Lei ","Lei ","Sa ","Lu ","Li ","Cuan ","Lu ","Mie ","Hui ","Ou ","Lu ","Jie ","Gao ","Du ","Yuan ","Li ","Fei ","Zhuo ","Sou ","Lian ","Tamo ","Chu ","[?] ","Zhu ","Lu ","Yan ","Li ","Zhu ","Chen ","Jie ","E ","Su ","Huai ","Nie ","Yu ","Long ","Lai ","[?] ","Xian ","Kwi ","Ju ","Xiao ","Ling ","Ying ","Jian ","Yin ","You ","Ying "]});var Sz=m((f6e,Cz)=>{Cz.exports=["Xiang ","Nong ","Bo ","Chan ","Lan ","Ju ","Shuang ","She ","Wei ","Cong ","Quan ","Qu ","Cang ","[?] ","Yu ","Luo ","Li ","Zan ","Luan ","Dang ","Jue ","Em ","Lan ","Lan ","Zhu ","Lei ","Li ","Ba ","Nang ","Yu ","Ling ","Tsuki ","Qian ","Ci ","Huan ","Xin ","Yu ","Yu ","Qian ","Ou ","Xu ","Chao ","Chu ","Chi ","Kai ","Yi ","Jue ","Xi ","Xu ","Xia ","Yu ","Kuai ","Lang ","Kuan ","Shuo ","Xi ","Ai ","Yi ","Qi ","Hu ","Chi ","Qin ","Kuan ","Kan ","Kuan ","Kan ","Chuan ","Sha ","Gua ","Yin ","Xin ","Xie ","Yu ","Qian ","Xiao ","Yi ","Ge ","Wu ","Tan ","Jin ","Ou ","Hu ","Ti ","Huan ","Xu ","Pen ","Xi ","Xiao ","Xu ","Xi ","Sen ","Lian ","Chu ","Yi ","Kan ","Yu ","Chuo ","Huan ","Zhi ","Zheng ","Ci ","Bu ","Wu ","Qi ","Bu ","Bu ","Wai ","Ju ","Qian ","Chi ","Se ","Chi ","Se ","Zhong ","Sui ","Sui ","Li ","Cuo ","Yu ","Li ","Gui ","Dai ","Dai ","Si ","Jian ","Zhe ","Mo ","Mo ","Yao ","Mo ","Cu ","Yang ","Tian ","Sheng ","Dai ","Shang ","Xu ","Xun ","Shu ","Can ","Jue ","Piao ","Qia ","Qiu ","Su ","Qing ","Yun ","Lian ","Yi ","Fou ","Zhi ","Ye ","Can ","Hun ","Dan ","Ji ","Ye ","Zhen ","Yun ","Wen ","Chou ","Bin ","Ti ","Jin ","Shang ","Yin ","Diao ","Cu ","Hui ","Cuan ","Yi ","Dan ","Du ","Jiang ","Lian ","Bin ","Du ","Tsukusu ","Jian ","Shu ","Ou ","Duan ","Zhu ","Yin ","Qing ","Yi ","Sha ","Que ","Ke ","Yao ","Jun ","Dian ","Hui ","Hui ","Gu ","Que ","Ji ","Yi ","Ou ","Hui ","Duan ","Yi ","Xiao ","Wu ","Guan ","Mu ","Mei ","Mei ","Ai ","Zuo ","Du ","Yu ","Bi ","Bi ","Bi ","Pi ","Pi ","Bi ","Chan ","Mao ","[?] ","[?] ","Pu ","Mushiru ","Jia ","Zhan ","Sai ","Mu ","Tuo ","Xun ","Er ","Rong ","Xian ","Ju ","Mu ","Hao ","Qiu ","Dou ","Mushiru ","Tan ","Pei ","Ju ","Duo ","Cui ","Bi ","San ","[?] ","Mao ","Sui ","Yu ","Yu ","Tuo ","He ","Jian ","Ta ","San "]});var kz=m((p6e,Tz)=>{Tz.exports=["Lu ","Mu ","Li ","Tong ","Rong ","Chang ","Pu ","Luo ","Zhan ","Sao ","Zhan ","Meng ","Luo ","Qu ","Die ","Shi ","Di ","Min ","Jue ","Mang ","Qi ","Pie ","Nai ","Qi ","Dao ","Xian ","Chuan ","Fen ","Ri ","Nei ","[?] ","Fu ","Shen ","Dong ","Qing ","Qi ","Yin ","Xi ","Hai ","Yang ","An ","Ya ","Ke ","Qing ","Ya ","Dong ","Dan ","Lu ","Qing ","Yang ","Yun ","Yun ","Shui ","San ","Zheng ","Bing ","Yong ","Dang ","Shitamizu ","Le ","Ni ","Tun ","Fan ","Gui ","Ting ","Zhi ","Qiu ","Bin ","Ze ","Mian ","Cuan ","Hui ","Diao ","Yi ","Cha ","Zhuo ","Chuan ","Wan ","Fan ","Dai ","Xi ","Tuo ","Mang ","Qiu ","Qi ","Shan ","Pai ","Han ","Qian ","Wu ","Wu ","Xun ","Si ","Ru ","Gong ","Jiang ","Chi ","Wu ","Tsuchi ","[?] ","Tang ","Zhi ","Chi ","Qian ","Mi ","Yu ","Wang ","Qing ","Jing ","Rui ","Jun ","Hong ","Tai ","Quan ","Ji ","Bian ","Bian ","Gan ","Wen ","Zhong ","Fang ","Xiong ","Jue ","Hang ","Niou ","Qi ","Fen ","Xu ","Xu ","Qin ","Yi ","Wo ","Yun ","Yuan ","Hang ","Yan ","Chen ","Chen ","Dan ","You ","Dun ","Hu ","Huo ","Qie ","Mu ","Rou ","Mei ","Ta ","Mian ","Wu ","Chong ","Tian ","Bi ","Sha ","Zhi ","Pei ","Pan ","Zhui ","Za ","Gou ","Liu ","Mei ","Ze ","Feng ","Ou ","Li ","Lun ","Cang ","Feng ","Wei ","Hu ","Mo ","Mei ","Shu ","Ju ","Zan ","Tuo ","Tuo ","Tuo ","He ","Li ","Mi ","Yi ","Fa ","Fei ","You ","Tian ","Zhi ","Zhao ","Gu ","Zhan ","Yan ","Si ","Kuang ","Jiong ","Ju ","Xie ","Qiu ","Yi ","Jia ","Zhong ","Quan ","Bo ","Hui ","Mi ","Ben ","Zhuo ","Chu ","Le ","You ","Gu ","Hong ","Gan ","Fa ","Mao ","Si ","Hu ","Ping ","Ci ","Fan ","Chi ","Su ","Ning ","Cheng ","Ling ","Pao ","Bo ","Qi ","Si ","Ni ","Ju ","Yue ","Zhu ","Sheng ","Lei ","Xuan ","Xue ","Fu ","Pan ","Min ","Tai ","Yang ","Ji ","Yong ","Guan ","Beng ","Xue ","Long ","Lu ","[?] ","Bo ","Xie ","Po ","Ze ","Jing ","Yin "]});var Pz=m((m6e,Ez)=>{Ez.exports=["Zhou ","Ji ","Yi ","Hui ","Hui ","Zui ","Cheng ","Yin ","Wei ","Hou ","Jian ","Yang ","Lie ","Si ","Ji ","Er ","Xing ","Fu ","Sa ","Suo ","Zhi ","Yin ","Wu ","Xi ","Kao ","Zhu ","Jiang ","Luo ","[?] ","An ","Dong ","Yi ","Mou ","Lei ","Yi ","Mi ","Quan ","Jin ","Mo ","Wei ","Xiao ","Xie ","Hong ","Xu ","Shuo ","Kuang ","Tao ","Qie ","Ju ","Er ","Zhou ","Ru ","Ping ","Xun ","Xiong ","Zhi ","Guang ","Huan ","Ming ","Huo ","Wa ","Qia ","Pai ","Wu ","Qu ","Liu ","Yi ","Jia ","Jing ","Qian ","Jiang ","Jiao ","Cheng ","Shi ","Zhuo ","Ce ","Pal ","Kuai ","Ji ","Liu ","Chan ","Hun ","Hu ","Nong ","Xun ","Jin ","Lie ","Qiu ","Wei ","Zhe ","Jun ","Han ","Bang ","Mang ","Zhuo ","You ","Xi ","Bo ","Dou ","Wan ","Hong ","Yi ","Pu ","Ying ","Lan ","Hao ","Lang ","Han ","Li ","Geng ","Fu ","Wu ","Lian ","Chun ","Feng ","Yi ","Yu ","Tong ","Lao ","Hai ","Jin ","Jia ","Chong ","Weng ","Mei ","Sui ","Cheng ","Pei ","Xian ","Shen ","Tu ","Kun ","Pin ","Nie ","Han ","Jing ","Xiao ","She ","Nian ","Tu ","Yong ","Xiao ","Xian ","Ting ","E ","Su ","Tun ","Juan ","Cen ","Ti ","Li ","Shui ","Si ","Lei ","Shui ","Tao ","Du ","Lao ","Lai ","Lian ","Wei ","Wo ","Yun ","Huan ","Di ","[?] ","Run ","Jian ","Zhang ","Se ","Fu ","Guan ","Xing ","Shou ","Shuan ","Ya ","Chuo ","Zhang ","Ye ","Kong ","Wo ","Han ","Tuo ","Dong ","He ","Wo ","Ju ","Gan ","Liang ","Hun ","Ta ","Zhuo ","Dian ","Qie ","De ","Juan ","Zi ","Xi ","Yao ","Qi ","Gu ","Guo ","Han ","Lin ","Tang ","Zhou ","Peng ","Hao ","Chang ","Shu ","Qi ","Fang ","Chi ","Lu ","Nao ","Ju ","Tao ","Cong ","Lei ","Zhi ","Peng ","Fei ","Song ","Tian ","Pi ","Dan ","Yu ","Ni ","Yu ","Lu ","Gan ","Mi ","Jing ","Ling ","Lun ","Yin ","Cui ","Qu ","Huai ","Yu ","Nian ","Shen ","Piao ","Chun ","Wa ","Yuan ","Lai ","Hun ","Qing ","Yan ","Qian ","Tian ","Miao ","Zhi ","Yin ","Mi "]});var Rz=m((b6e,_z)=>{_z.exports=["Ben ","Yuan ","Wen ","Re ","Fei ","Qing ","Yuan ","Ke ","Ji ","She ","Yuan ","Shibui ","Lu ","Zi ","Du ","[?] ","Jian ","Min ","Pi ","Tani ","Yu ","Yuan ","Shen ","Shen ","Rou ","Huan ","Zhu ","Jian ","Nuan ","Yu ","Qiu ","Ting ","Qu ","Du ","Feng ","Zha ","Bo ","Wo ","Wo ","Di ","Wei ","Wen ","Ru ","Xie ","Ce ","Wei ","Ge ","Gang ","Yan ","Hong ","Xuan ","Mi ","Ke ","Mao ","Ying ","Yan ","You ","Hong ","Miao ","Xing ","Mei ","Zai ","Hun ","Nai ","Kui ","Shi ","E ","Pai ","Mei ","Lian ","Qi ","Qi ","Mei ","Tian ","Cou ","Wei ","Can ","Tuan ","Mian ","Hui ","Mo ","Xu ","Ji ","Pen ","Jian ","Jian ","Hu ","Feng ","Xiang ","Yi ","Yin ","Zhan ","Shi ","Jie ","Cheng ","Huang ","Tan ","Yu ","Bi ","Min ","Shi ","Tu ","Sheng ","Yong ","Qu ","Zhong ","Suei ","Jiu ","Jiao ","Qiou ","Yin ","Tang ","Long ","Huo ","Yuan ","Nan ","Ban ","You ","Quan ","Chui ","Liang ","Chan ","Yan ","Chun ","Nie ","Zi ","Wan ","Shi ","Man ","Ying ","Ratsu ","Kui ","[?] ","Jian ","Xu ","Lu ","Gui ","Gai ","[?] ","[?] ","Po ","Jin ","Gui ","Tang ","Yuan ","Suo ","Yuan ","Lian ","Yao ","Meng ","Zhun ","Sheng ","Ke ","Tai ","Da ","Wa ","Liu ","Gou ","Sao ","Ming ","Zha ","Shi ","Yi ","Lun ","Ma ","Pu ","Wei ","Li ","Cai ","Wu ","Xi ","Wen ","Qiang ","Ze ","Shi ","Su ","Yi ","Zhen ","Sou ","Yun ","Xiu ","Yin ","Rong ","Hun ","Su ","Su ","Ni ","Ta ","Shi ","Ru ","Wei ","Pan ","Chu ","Chu ","Pang ","Weng ","Cang ","Mie ","He ","Dian ","Hao ","Huang ","Xi ","Zi ","Di ","Zhi ","Ying ","Fu ","Jie ","Hua ","Ge ","Zi ","Tao ","Teng ","Sui ","Bi ","Jiao ","Hui ","Gun ","Yin ","Gao ","Long ","Zhi ","Yan ","She ","Man ","Ying ","Chun ","Lu ","Lan ","Luan ","[?] ","Bin ","Tan ","Yu ","Sou ","Hu ","Bi ","Biao ","Zhi ","Jiang ","Kou ","Shen ","Shang ","Di ","Mi ","Ao ","Lu ","Hu ","Hu ","You ","Chan ","Fan ","Yong ","Gun ","Man "]});var Fz=m((y6e,Lz)=>{Lz.exports=["Qing ","Yu ","Piao ","Ji ","Ya ","Jiao ","Qi ","Xi ","Ji ","Lu ","Lu ","Long ","Jin ","Guo ","Cong ","Lou ","Zhi ","Gai ","Qiang ","Li ","Yan ","Cao ","Jiao ","Cong ","Qun ","Tuan ","Ou ","Teng ","Ye ","Xi ","Mi ","Tang ","Mo ","Shang ","Han ","Lian ","Lan ","Wa ","Li ","Qian ","Feng ","Xuan ","Yi ","Man ","Zi ","Mang ","Kang ","Lei ","Peng ","Shu ","Zhang ","Zhang ","Chong ","Xu ","Huan ","Kuo ","Jian ","Yan ","Chuang ","Liao ","Cui ","Ti ","Yang ","Jiang ","Cong ","Ying ","Hong ","Xun ","Shu ","Guan ","Ying ","Xiao ","[?] ","[?] ","Xu ","Lian ","Zhi ","Wei ","Pi ","Jue ","Jiao ","Po ","Dang ","Hui ","Jie ","Wu ","Pa ","Ji ","Pan ","Gui ","Xiao ","Qian ","Qian ","Xi ","Lu ","Xi ","Xuan ","Dun ","Huang ","Min ","Run ","Su ","Liao ","Zhen ","Zhong ","Yi ","Di ","Wan ","Dan ","Tan ","Chao ","Xun ","Kui ","Yie ","Shao ","Tu ","Zhu ","San ","Hei ","Bi ","Shan ","Chan ","Chan ","Shu ","Tong ","Pu ","Lin ","Wei ","Se ","Se ","Cheng ","Jiong ","Cheng ","Hua ","Jiao ","Lao ","Che ","Gan ","Cun ","Heng ","Si ","Shu ","Peng ","Han ","Yun ","Liu ","Hong ","Fu ","Hao ","He ","Xian ","Jian ","Shan ","Xi ","Oki ","[?] ","Lan ","[?] ","Yu ","Lin ","Min ","Zao ","Dang ","Wan ","Ze ","Xie ","Yu ","Li ","Shi ","Xue ","Ling ","Man ","Zi ","Yong ","Kuai ","Can ","Lian ","Dian ","Ye ","Ao ","Huan ","Zhen ","Chan ","Man ","Dan ","Dan ","Yi ","Sui ","Pi ","Ju ","Ta ","Qin ","Ji ","Zhuo ","Lian ","Nong ","Guo ","Jin ","Fen ","Se ","Ji ","Sui ","Hui ","Chu ","Ta ","Song ","Ding ","[?] ","Zhu ","Lai ","Bin ","Lian ","Mi ","Shi ","Shu ","Mi ","Ning ","Ying ","Ying ","Meng ","Jin ","Qi ","Pi ","Ji ","Hao ","Ru ","Zui ","Wo ","Tao ","Yin ","Yin ","Dui ","Ci ","Huo ","Jing ","Lan ","Jun ","Ai ","Pu ","Zhuo ","Wei ","Bin ","Gu ","Qian ","Xing ","Hama ","Kuo ","Fei ","[?] ","Boku ","Jian ","Wei ","Luo ","Zan ","Lu ","Li "]});var jz=m((v6e,Iz)=>{Iz.exports=["You ","Yang ","Lu ","Si ","Jie ","Ying ","Du ","Wang ","Hui ","Xie ","Pan ","Shen ","Biao ","Chan ","Mo ","Liu ","Jian ","Pu ","Se ","Cheng ","Gu ","Bin ","Huo ","Xian ","Lu ","Qin ","Han ","Ying ","Yong ","Li ","Jing ","Xiao ","Ying ","Sui ","Wei ","Xie ","Huai ","Hao ","Zhu ","Long ","Lai ","Dui ","Fan ","Hu ","Lai ","[?] ","[?] ","Ying ","Mi ","Ji ","Lian ","Jian ","Ying ","Fen ","Lin ","Yi ","Jian ","Yue ","Chan ","Dai ","Rang ","Jian ","Lan ","Fan ","Shuang ","Yuan ","Zhuo ","Feng ","She ","Lei ","Lan ","Cong ","Qu ","Yong ","Qian ","Fa ","Guan ","Que ","Yan ","Hao ","Hyeng ","Sa ","Zan ","Luan ","Yan ","Li ","Mi ","Shan ","Tan ","Dang ","Jiao ","Chan ","[?] ","Hao ","Ba ","Zhu ","Lan ","Lan ","Nang ","Wan ","Luan ","Xun ","Xian ","Yan ","Gan ","Yan ","Yu ","Huo ","Si ","Mie ","Guang ","Deng ","Hui ","Xiao ","Xiao ","Hu ","Hong ","Ling ","Zao ","Zhuan ","Jiu ","Zha ","Xie ","Chi ","Zhuo ","Zai ","Zai ","Can ","Yang ","Qi ","Zhong ","Fen ","Niu ","Jiong ","Wen ","Po ","Yi ","Lu ","Chui ","Pi ","Kai ","Pan ","Yan ","Kai ","Pang ","Mu ","Chao ","Liao ","Gui ","Kang ","Tun ","Guang ","Xin ","Zhi ","Guang ","Guang ","Wei ","Qiang ","[?] ","Da ","Xia ","Zheng ","Zhu ","Ke ","Zhao ","Fu ","Ba ","Duo ","Duo ","Ling ","Zhuo ","Xuan ","Ju ","Tan ","Pao ","Jiong ","Pao ","Tai ","Tai ","Bing ","Yang ","Tong ","Han ","Zhu ","Zha ","Dian ","Wei ","Shi ","Lian ","Chi ","Huang ","[?] ","Hu ","Shuo ","Lan ","Jing ","Jiao ","Xu ","Xing ","Quan ","Lie ","Huan ","Yang ","Xiao ","Xiu ","Xian ","Yin ","Wu ","Zhou ","Yao ","Shi ","Wei ","Tong ","Xue ","Zai ","Kai ","Hong ","Luo ","Xia ","Zhu ","Xuan ","Zheng ","Po ","Yan ","Hui ","Guang ","Zhe ","Hui ","Kao ","[?] ","Fan ","Shao ","Ye ","Hui ","[?] ","Tang ","Jin ","Re ","[?] ","Xi ","Fu ","Jiong ","Che ","Pu ","Jing ","Zhuo ","Ting ","Wan ","Hai ","Peng ","Lang ","Shan ","Hu ","Feng ","Chi ","Rong "]});var Oz=m((w6e,Az)=>{Az.exports=["Hu ","Xi ","Shu ","He ","Xun ","Ku ","Jue ","Xiao ","Xi ","Yan ","Han ","Zhuang ","Jun ","Di ","Xie ","Ji ","Wu ","[?] ","[?] ","Han ","Yan ","Huan ","Men ","Ju ","Chou ","Bei ","Fen ","Lin ","Kun ","Hun ","Tun ","Xi ","Cui ","Wu ","Hong ","Ju ","Fu ","Wo ","Jiao ","Cong ","Feng ","Ping ","Qiong ","Ruo ","Xi ","Qiong ","Xin ","Zhuo ","Yan ","Yan ","Yi ","Jue ","Yu ","Gang ","Ran ","Pi ","Gu ","[?] ","Sheng ","Chang ","Shao ","[?] ","[?] ","[?] ","[?] ","Chen ","He ","Kui ","Zhong ","Duan ","Xia ","Hui ","Feng ","Lian ","Xuan ","Xing ","Huang ","Jiao ","Jian ","Bi ","Ying ","Zhu ","Wei ","Tuan ","Tian ","Xi ","Nuan ","Nuan ","Chan ","Yan ","Jiong ","Jiong ","Yu ","Mei ","Sha ","Wei ","Ye ","Xin ","Qiong ","Rou ","Mei ","Huan ","Xu ","Zhao ","Wei ","Fan ","Qiu ","Sui ","Yang ","Lie ","Zhu ","Jie ","Gao ","Gua ","Bao ","Hu ","Yun ","Xia ","[?] ","[?] ","Bian ","Gou ","Tui ","Tang ","Chao ","Shan ","N ","Bo ","Huang ","Xie ","Xi ","Wu ","Xi ","Yun ","He ","He ","Xi ","Yun ","Xiong ","Nai ","Shan ","Qiong ","Yao ","Xun ","Mi ","Lian ","Ying ","Wen ","Rong ","Oozutsu ","[?] ","Qiang ","Liu ","Xi ","Bi ","Biao ","Zong ","Lu ","Jian ","Shou ","Yi ","Lou ","Feng ","Sui ","Yi ","Tong ","Jue ","Zong ","Yun ","Hu ","Yi ","Zhi ","Ao ","Wei ","Liao ","Han ","Ou ","Re ","Jiong ","Man ","[?] ","Shang ","Cuan ","Zeng ","Jian ","Xi ","Xi ","Xi ","Yi ","Xiao ","Chi ","Huang ","Chan ","Ye ","Qian ","Ran ","Yan ","Xian ","Qiao ","Zun ","Deng ","Dun ","Shen ","Jiao ","Fen ","Si ","Liao ","Yu ","Lin ","Tong ","Shao ","Fen ","Fan ","Yan ","Xun ","Lan ","Mei ","Tang ","Yi ","Jing ","Men ","[?] ","[?] ","Ying ","Yu ","Yi ","Xue ","Lan ","Tai ","Zao ","Can ","Sui ","Xi ","Que ","Cong ","Lian ","Hui ","Zhu ","Xie ","Ling ","Wei ","Yi ","Xie ","Zhao ","Hui ","Tatsu ","Nung ","Lan ","Ru ","Xian ","Kao ","Xun ","Jin ","Chou ","Chou ","Yao "]});var Nz=m((D6e,Mz)=>{Mz.exports=["He ","Lan ","Biao ","Rong ","Li ","Mo ","Bao ","Ruo ","Lu ","La ","Ao ","Xun ","Kuang ","Shuo ","[?] ","Li ","Lu ","Jue ","Liao ","Yan ","Xi ","Xie ","Long ","Ye ","[?] ","Rang ","Yue ","Lan ","Cong ","Jue ","Tong ","Guan ","[?] ","Che ","Mi ","Tang ","Lan ","Zhu ","[?] ","Ling ","Cuan ","Yu ","Zhua ","Tsumekanmuri ","Pa ","Zheng ","Pao ","Cheng ","Yuan ","Ai ","Wei ","[?] ","Jue ","Jue ","Fu ","Ye ","Ba ","Die ","Ye ","Yao ","Zu ","Shuang ","Er ","Qiang ","Chuang ","Ge ","Zang ","Die ","Qiang ","Yong ","Qiang ","Pian ","Ban ","Pan ","Shao ","Jian ","Pai ","Du ","Chuang ","Tou ","Zha ","Bian ","Die ","Bang ","Bo ","Chuang ","You ","[?] ","Du ","Ya ","Cheng ","Niu ","Ushihen ","Pin ","Jiu ","Mou ","Tuo ","Mu ","Lao ","Ren ","Mang ","Fang ","Mao ","Mu ","Gang ","Wu ","Yan ","Ge ","Bei ","Si ","Jian ","Gu ","You ","Ge ","Sheng ","Mu ","Di ","Qian ","Quan ","Quan ","Zi ","Te ","Xi ","Mang ","Keng ","Qian ","Wu ","Gu ","Xi ","Li ","Li ","Pou ","Ji ","Gang ","Zhi ","Ben ","Quan ","Run ","Du ","Ju ","Jia ","Jian ","Feng ","Pian ","Ke ","Ju ","Kao ","Chu ","Xi ","Bei ","Luo ","Jie ","Ma ","San ","Wei ","Li ","Dun ","Tong ","[?] ","Jiang ","Ikenie ","Li ","Du ","Lie ","Pi ","Piao ","Bao ","Xi ","Chou ","Wei ","Kui ","Chou ","Quan ","Fan ","Ba ","Fan ","Qiu ","Ji ","Cai ","Chuo ","An ","Jie ","Zhuang ","Guang ","Ma ","You ","Kang ","Bo ","Hou ","Ya ","Yin ","Huan ","Zhuang ","Yun ","Kuang ","Niu ","Di ","Qing ","Zhong ","Mu ","Bei ","Pi ","Ju ","Ni ","Sheng ","Pao ","Xia ","Tuo ","Hu ","Ling ","Fei ","Pi ","Ni ","Ao ","You ","Gou ","Yue ","Ju ","Dan ","Po ","Gu ","Xian ","Ning ","Huan ","Hen ","Jiao ","He ","Zhao ","Ji ","Xun ","Shan ","Ta ","Rong ","Shou ","Tong ","Lao ","Du ","Xia ","Shi ","Hua ","Zheng ","Yu ","Sun ","Yu ","Bi ","Mang ","Xi ","Juan ","Li ","Xia ","Yin ","Suan ","Lang ","Bei ","Zhi ","Yan "]});var Hz=m((x6e,Bz)=>{Bz.exports=["Sha ","Li ","Han ","Xian ","Jing ","Pai ","Fei ","Yao ","Ba ","Qi ","Ni ","Biao ","Yin ","Lai ","Xi ","Jian ","Qiang ","Kun ","Yan ","Guo ","Zong ","Mi ","Chang ","Yi ","Zhi ","Zheng ","Ya ","Meng ","Cai ","Cu ","She ","Kari ","Cen ","Luo ","Hu ","Zong ","Ji ","Wei ","Feng ","Wo ","Yuan ","Xing ","Zhu ","Mao ","Wei ","Yuan ","Xian ","Tuan ","Ya ","Nao ","Xie ","Jia ","Hou ","Bian ","You ","You ","Mei ","Zha ","Yao ","Sun ","Bo ","Ming ","Hua ","Yuan ","Sou ","Ma ","Yuan ","Dai ","Yu ","Shi ","Hao ","[?] ","Yi ","Zhen ","Chuang ","Hao ","Man ","Jing ","Jiang ","Mu ","Zhang ","Chan ","Ao ","Ao ","Hao ","Cui ","Fen ","Jue ","Bi ","Bi ","Huang ","Pu ","Lin ","Yu ","Tong ","Yao ","Liao ","Shuo ","Xiao ","Swu ","Ton ","Xi ","Ge ","Juan ","Du ","Hui ","Kuai ","Xian ","Xie ","Ta ","Xian ","Xun ","Ning ","Pin ","Huo ","Nou ","Meng ","Lie ","Nao ","Guang ","Shou ","Lu ","Ta ","Xian ","Mi ","Rang ","Huan ","Nao ","Luo ","Xian ","Qi ","Jue ","Xuan ","Miao ","Zi ","Lu ","Lu ","Yu ","Su ","Wang ","Qiu ","Ga ","Ding ","Le ","Ba ","Ji ","Hong ","Di ","Quan ","Gan ","Jiu ","Yu ","Ji ","Yu ","Yang ","Ma ","Gong ","Wu ","Fu ","Wen ","Jie ","Ya ","Fen ","Bian ","Beng ","Yue ","Jue ","Yun ","Jue ","Wan ","Jian ","Mei ","Dan ","Pi ","Wei ","Huan ","Xian ","Qiang ","Ling ","Dai ","Yi ","An ","Ping ","Dian ","Fu ","Xuan ","Xi ","Bo ","Ci ","Gou ","Jia ","Shao ","Po ","Ci ","Ke ","Ran ","Sheng ","Shen ","Yi ","Zu ","Jia ","Min ","Shan ","Liu ","Bi ","Zhen ","Zhen ","Jue ","Fa ","Long ","Jin ","Jiao ","Jian ","Li ","Guang ","Xian ","Zhou ","Gong ","Yan ","Xiu ","Yang ","Xu ","Luo ","Su ","Zhu ","Qin ","Ken ","Xun ","Bao ","Er ","Xiang ","Yao ","Xia ","Heng ","Gui ","Chong ","Xu ","Ban ","Pei ","[?] ","Dang ","Ei ","Hun ","Wen ","E ","Cheng ","Ti ","Wu ","Wu ","Cheng ","Jun ","Mei ","Bei ","Ting ","Xian ","Chuo "]});var Yz=m((C6e,qz)=>{qz.exports=["Han ","Xuan ","Yan ","Qiu ","Quan ","Lang ","Li ","Xiu ","Fu ","Liu ","Ye ","Xi ","Ling ","Li ","Jin ","Lian ","Suo ","Chiisai ","[?] ","Wan ","Dian ","Pin ","Zhan ","Cui ","Min ","Yu ","Ju ","Chen ","Lai ","Wen ","Sheng ","Wei ","Dian ","Chu ","Zhuo ","Pei ","Cheng ","Hu ","Qi ","E ","Kun ","Chang ","Qi ","Beng ","Wan ","Lu ","Cong ","Guan ","Yan ","Diao ","Bei ","Lin ","Qin ","Pi ","Pa ","Que ","Zhuo ","Qin ","Fa ","[?] ","Qiong ","Du ","Jie ","Hun ","Yu ","Mao ","Mei ","Chun ","Xuan ","Ti ","Xing ","Dai ","Rou ","Min ","Zhen ","Wei ","Ruan ","Huan ","Jie ","Chuan ","Jian ","Zhuan ","Yang ","Lian ","Quan ","Xia ","Duan ","Yuan ","Ye ","Nao ","Hu ","Ying ","Yu ","Huang ","Rui ","Se ","Liu ","Shi ","Rong ","Suo ","Yao ","Wen ","Wu ","Jin ","Jin ","Ying ","Ma ","Tao ","Liu ","Tang ","Li ","Lang ","Gui ","Zhen ","Qiang ","Cuo ","Jue ","Zhao ","Yao ","Ai ","Bin ","Tu ","Chang ","Kun ","Zhuan ","Cong ","Jin ","Yi ","Cui ","Cong ","Qi ","Li ","Ying ","Suo ","Qiu ","Xuan ","Ao ","Lian ","Man ","Zhang ","Yin ","[?] ","Ying ","Zhi ","Lu ","Wu ","Deng ","Xiou ","Zeng ","Xun ","Qu ","Dang ","Lin ","Liao ","Qiong ","Su ","Huang ","Gui ","Pu ","Jing ","Fan ","Jin ","Liu ","Ji ","[?] ","Jing ","Ai ","Bi ","Can ","Qu ","Zao ","Dang ","Jiao ","Gun ","Tan ","Hui ","Huan ","Se ","Sui ","Tian ","[?] ","Yu ","Jin ","Lu ","Bin ","Shou ","Wen ","Zui ","Lan ","Xi ","Ji ","Xuan ","Ruan ","Huo ","Gai ","Lei ","Du ","Li ","Zhi ","Rou ","Li ","Zan ","Qiong ","Zhe ","Gui ","Sui ","La ","Long ","Lu ","Li ","Zan ","Lan ","Ying ","Mi ","Xiang ","Xi ","Guan ","Dao ","Zan ","Huan ","Gua ","Bo ","Die ","Bao ","Hu ","Zhi ","Piao ","Ban ","Rang ","Li ","Wa ","Dekaguramu ","Jiang ","Qian ","Fan ","Pen ","Fang ","Dan ","Weng ","Ou ","Deshiguramu ","Miriguramu ","Thon ","Hu ","Ling ","Yi ","Ping ","Ci ","Hekutogura ","Juan ","Chang ","Chi ","Sarake ","Dang ","Meng ","Pou "]});var Zz=m((S6e,Wz)=>{Wz.exports=["Zhui ","Ping ","Bian ","Zhou ","Zhen ","Senchigura ","Ci ","Ying ","Qi ","Xian ","Lou ","Di ","Ou ","Meng ","Zhuan ","Peng ","Lin ","Zeng ","Wu ","Pi ","Dan ","Weng ","Ying ","Yan ","Gan ","Dai ","Shen ","Tian ","Tian ","Han ","Chang ","Sheng ","Qing ","Sheng ","Chan ","Chan ","Rui ","Sheng ","Su ","Sen ","Yong ","Shuai ","Lu ","Fu ","Yong ","Beng ","Feng ","Ning ","Tian ","You ","Jia ","Shen ","Zha ","Dian ","Fu ","Nan ","Dian ","Ping ","Ting ","Hua ","Ting ","Quan ","Zi ","Meng ","Bi ","Qi ","Liu ","Xun ","Liu ","Chang ","Mu ","Yun ","Fan ","Fu ","Geng ","Tian ","Jie ","Jie ","Quan ","Wei ","Fu ","Tian ","Mu ","Tap ","Pan ","Jiang ","Wa ","Da ","Nan ","Liu ","Ben ","Zhen ","Chu ","Mu ","Mu ","Ce ","Cen ","Gai ","Bi ","Da ","Zhi ","Lue ","Qi ","Lue ","Pan ","Kesa ","Fan ","Hua ","Yu ","Yu ","Mu ","Jun ","Yi ","Liu ","Yu ","Die ","Chou ","Hua ","Dang ","Chuo ","Ji ","Wan ","Jiang ","Sheng ","Chang ","Tuan ","Lei ","Ji ","Cha ","Liu ","Tatamu ","Tuan ","Lin ","Jiang ","Jiang ","Chou ","Bo ","Die ","Die ","Pi ","Nie ","Dan ","Shu ","Shu ","Zhi ","Yi ","Chuang ","Nai ","Ding ","Bi ","Jie ","Liao ","Gong ","Ge ","Jiu ","Zhou ","Xia ","Shan ","Xu ","Nue ","Li ","Yang ","Chen ","You ","Ba ","Jie ","Jue ","Zhi ","Xia ","Cui ","Bi ","Yi ","Li ","Zong ","Chuang ","Feng ","Zhu ","Pao ","Pi ","Gan ","Ke ","Ci ","Xie ","Qi ","Dan ","Zhen ","Fa ","Zhi ","Teng ","Ju ","Ji ","Fei ","Qu ","Dian ","Jia ","Xian ","Cha ","Bing ","Ni ","Zheng ","Yong ","Jing ","Quan ","Chong ","Tong ","Yi ","Kai ","Wei ","Hui ","Duo ","Yang ","Chi ","Zhi ","Hen ","Ya ","Mei ","Dou ","Jing ","Xiao ","Tong ","Tu ","Mang ","Pi ","Xiao ","Suan ","Pu ","Li ","Zhi ","Cuo ","Duo ","Wu ","Sha ","Lao ","Shou ","Huan ","Xian ","Yi ","Peng ","Zhang ","Guan ","Tan ","Fei ","Ma ","Lin ","Chi ","Ji ","Dian ","An ","Chi ","Bi ","Bei ","Min ","Gu ","Dui ","E ","Wei "]});var $z=m((T6e,Jz)=>{Jz.exports=["Yu ","Cui ","Ya ","Zhu ","Cu ","Dan ","Shen ","Zhung ","Ji ","Yu ","Hou ","Feng ","La ","Yang ","Shen ","Tu ","Yu ","Gua ","Wen ","Huan ","Ku ","Jia ","Yin ","Yi ","Lu ","Sao ","Jue ","Chi ","Xi ","Guan ","Yi ","Wen ","Ji ","Chuang ","Ban ","Lei ","Liu ","Chai ","Shou ","Nue ","Dian ","Da ","Pie ","Tan ","Zhang ","Biao ","Shen ","Cu ","Luo ","Yi ","Zong ","Chou ","Zhang ","Zhai ","Sou ","Suo ","Que ","Diao ","Lou ","Lu ","Mo ","Jin ","Yin ","Ying ","Huang ","Fu ","Liao ","Long ","Qiao ","Liu ","Lao ","Xian ","Fei ","Dan ","Yin ","He ","Yan ","Ban ","Xian ","Guan ","Guai ","Nong ","Yu ","Wei ","Yi ","Yong ","Pi ","Lei ","Li ","Shu ","Dan ","Lin ","Dian ","Lin ","Lai ","Pie ","Ji ","Chi ","Yang ","Xian ","Jie ","Zheng ","[?] ","Li ","Huo ","Lai ","Shaku ","Dian ","Xian ","Ying ","Yin ","Qu ","Yong ","Tan ","Dian ","Luo ","Luan ","Luan ","Bo ","[?] ","Gui ","Po ","Fa ","Deng ","Fa ","Bai ","Bai ","Qie ","Bi ","Zao ","Zao ","Mao ","De ","Pa ","Jie ","Huang ","Gui ","Ci ","Ling ","Gao ","Mo ","Ji ","Jiao ","Peng ","Gao ","Ai ","E ","Hao ","Han ","Bi ","Wan ","Chou ","Qian ","Xi ","Ai ","Jiong ","Hao ","Huang ","Hao ","Ze ","Cui ","Hao ","Xiao ","Ye ","Po ","Hao ","Jiao ","Ai ","Xing ","Huang ","Li ","Piao ","He ","Jiao ","Pi ","Gan ","Pao ","Zhou ","Jun ","Qiu ","Cun ","Que ","Zha ","Gu ","Jun ","Jun ","Zhou ","Zha ","Gu ","Zhan ","Du ","Min ","Qi ","Ying ","Yu ","Bei ","Zhao ","Zhong ","Pen ","He ","Ying ","He ","Yi ","Bo ","Wan ","He ","Ang ","Zhan ","Yan ","Jian ","He ","Yu ","Kui ","Fan ","Gai ","Dao ","Pan ","Fu ","Qiu ","Sheng ","Dao ","Lu ","Zhan ","Meng ","Li ","Jin ","Xu ","Jian ","Pan ","Guan ","An ","Lu ","Shu ","Zhou ","Dang ","An ","Gu ","Li ","Mu ","Cheng ","Gan ","Xu ","Mang ","Mang ","Zhi ","Qi ","Ruan ","Tian ","Xiang ","Dun ","Xin ","Xi ","Pan ","Feng ","Dun ","Min "]});var Uz=m((k6e,Xz)=>{Xz.exports=["Ming ","Sheng ","Shi ","Yun ","Mian ","Pan ","Fang ","Miao ","Dan ","Mei ","Mao ","Kan ","Xian ","Ou ","Shi ","Yang ","Zheng ","Yao ","Shen ","Huo ","Da ","Zhen ","Kuang ","Ju ","Shen ","Chi ","Sheng ","Mei ","Mo ","Zhu ","Zhen ","Zhen ","Mian ","Di ","Yuan ","Die ","Yi ","Zi ","Zi ","Chao ","Zha ","Xuan ","Bing ","Mi ","Long ","Sui ","Dong ","Mi ","Die ","Yi ","Er ","Ming ","Xuan ","Chi ","Kuang ","Juan ","Mou ","Zhen ","Tiao ","Yang ","Yan ","Mo ","Zhong ","Mai ","Zhao ","Zheng ","Mei ","Jun ","Shao ","Han ","Huan ","Di ","Cheng ","Cuo ","Juan ","E ","Wan ","Xian ","Xi ","Kun ","Lai ","Jian ","Shan ","Tian ","Hun ","Wan ","Ling ","Shi ","Qiong ","Lie ","Yai ","Jing ","Zheng ","Li ","Lai ","Sui ","Juan ","Shui ","Sui ","Du ","Bi ","Bi ","Mu ","Hun ","Ni ","Lu ","Yi ","Jie ","Cai ","Zhou ","Yu ","Hun ","Ma ","Xia ","Xing ","Xi ","Gun ","Cai ","Chun ","Jian ","Mei ","Du ","Hou ","Xuan ","Ti ","Kui ","Gao ","Rui ","Mou ","Xu ","Fa ","Wen ","Miao ","Chou ","Kui ","Mi ","Weng ","Kou ","Dang ","Chen ","Ke ","Sou ","Xia ","Qiong ","Mao ","Ming ","Man ","Shui ","Ze ","Zhang ","Yi ","Diao ","Ou ","Mo ","Shun ","Cong ","Lou ","Chi ","Man ","Piao ","Cheng ","Ji ","Meng ","[?] ","Run ","Pie ","Xi ","Qiao ","Pu ","Zhu ","Deng ","Shen ","Shun ","Liao ","Che ","Xian ","Kan ","Ye ","Xu ","Tong ","Mou ","Lin ","Kui ","Xian ","Ye ","Ai ","Hui ","Zhan ","Jian ","Gu ","Zhao ","Qu ","Wei ","Chou ","Sao ","Ning ","Xun ","Yao ","Huo ","Meng ","Mian ","Bin ","Mian ","Li ","Kuang ","Jue ","Xuan ","Mian ","Huo ","Lu ","Meng ","Long ","Guan ","Man ","Xi ","Chu ","Tang ","Kan ","Zhu ","Mao ","Jin ","Lin ","Yu ","Shuo ","Ce ","Jue ","Shi ","Yi ","Shen ","Zhi ","Hou ","Shen ","Ying ","Ju ","Zhou ","Jiao ","Cuo ","Duan ","Ai ","Jiao ","Zeng ","Huo ","Bai ","Shi ","Ding ","Qi ","Ji ","Zi ","Gan ","Wu ","Tuo ","Ku ","Qiang ","Xi ","Fan ","Kuang "]});var Qz=m((E6e,Gz)=>{Gz.exports=["Dang ","Ma ","Sha ","Dan ","Jue ","Li ","Fu ","Min ","Nuo ","Huo ","Kang ","Zhi ","Qi ","Kan ","Jie ","Fen ","E ","Ya ","Pi ","Zhe ","Yan ","Sui ","Zhuan ","Che ","Dun ","Pan ","Yan ","[?] ","Feng ","Fa ","Mo ","Zha ","Qu ","Yu ","Luo ","Tuo ","Tuo ","Di ","Zhai ","Zhen ","Ai ","Fei ","Mu ","Zhu ","Li ","Bian ","Nu ","Ping ","Peng ","Ling ","Pao ","Le ","Po ","Bo ","Po ","Shen ","Za ","Nuo ","Li ","Long ","Tong ","[?] ","Li ","Aragane ","Chu ","Keng ","Quan ","Zhu ","Kuang ","Huo ","E ","Nao ","Jia ","Lu ","Wei ","Ai ","Luo ","Ken ","Xing ","Yan ","Tong ","Peng ","Xi ","[?] ","Hong ","Shuo ","Xia ","Qiao ","[?] ","Wei ","Qiao ","[?] ","Keng ","Xiao ","Que ","Chan ","Lang ","Hong ","Yu ","Xiao ","Xia ","Mang ","Long ","Iong ","Che ","Che ","E ","Liu ","Ying ","Mang ","Que ","Yan ","Sha ","Kun ","Yu ","[?] ","Kaki ","Lu ","Chen ","Jian ","Nue ","Song ","Zhuo ","Keng ","Peng ","Yan ","Zhui ","Kong ","Ceng ","Qi ","Zong ","Qing ","Lin ","Jun ","Bo ","Ding ","Min ","Diao ","Jian ","He ","Lu ","Ai ","Sui ","Que ","Ling ","Bei ","Yin ","Dui ","Wu ","Qi ","Lun ","Wan ","Dian ","Gang ","Pei ","Qi ","Chen ","Ruan ","Yan ","Die ","Ding ","Du ","Tuo ","Jie ","Ying ","Bian ","Ke ","Bi ","Wei ","Shuo ","Zhen ","Duan ","Xia ","Dang ","Ti ","Nao ","Peng ","Jian ","Di ","Tan ","Cha ","Seki ","Qi ","[?] ","Feng ","Xuan ","Que ","Que ","Ma ","Gong ","Nian ","Su ","E ","Ci ","Liu ","Si ","Tang ","Bang ","Hua ","Pi ","Wei ","Sang ","Lei ","Cuo ","Zhen ","Xia ","Qi ","Lian ","Pan ","Wei ","Yun ","Dui ","Zhe ","Ke ","La ","[?] ","Qing ","Gun ","Zhuan ","Chan ","Qi ","Ao ","Peng ","Lu ","Lu ","Kan ","Qiang ","Chen ","Yin ","Lei ","Biao ","Qi ","Mo ","Qi ","Cui ","Zong ","Qing ","Chuo ","[?] ","Ji ","Shan ","Lao ","Qu ","Zeng ","Deng ","Jian ","Xi ","Lin ","Ding ","Dian ","Huang ","Pan ","Za ","Qiao ","Di ","Li "]});var zz=m((P6e,Kz)=>{Kz.exports=["Tani ","Jiao ","[?] ","Zhang ","Qiao ","Dun ","Xian ","Yu ","Zhui ","He ","Huo ","Zhai ","Lei ","Ke ","Chu ","Ji ","Que ","Dang ","Yi ","Jiang ","Pi ","Pi ","Yu ","Pin ","Qi ","Ai ","Kai ","Jian ","Yu ","Ruan ","Meng ","Pao ","Ci ","[?] ","[?] ","Mie ","Ca ","Xian ","Kuang ","Lei ","Lei ","Zhi ","Li ","Li ","Fan ","Que ","Pao ","Ying ","Li ","Long ","Long ","Mo ","Bo ","Shuang ","Guan ","Lan ","Zan ","Yan ","Shi ","Shi ","Li ","Reng ","She ","Yue ","Si ","Qi ","Ta ","Ma ","Xie ","Xian ","Xian ","Zhi ","Qi ","Zhi ","Beng ","Dui ","Zhong ","[?] ","Yi ","Shi ","You ","Zhi ","Tiao ","Fu ","Fu ","Mi ","Zu ","Zhi ","Suan ","Mei ","Zuo ","Qu ","Hu ","Zhu ","Shen ","Sui ","Ci ","Chai ","Mi ","Lu ","Yu ","Xiang ","Wu ","Tiao ","Piao ","Zhu ","Gui ","Xia ","Zhi ","Ji ","Gao ","Zhen ","Gao ","Shui ","Jin ","Chen ","Gai ","Kun ","Di ","Dao ","Huo ","Tao ","Qi ","Gu ","Guan ","Zui ","Ling ","Lu ","Bing ","Jin ","Dao ","Zhi ","Lu ","Shan ","Bei ","Zhe ","Hui ","You ","Xi ","Yin ","Zi ","Huo ","Zhen ","Fu ","Yuan ","Wu ","Xian ","Yang ","Ti ","Yi ","Mei ","Si ","Di ","[?] ","Zhuo ","Zhen ","Yong ","Ji ","Gao ","Tang ","Si ","Ma ","Ta ","[?] ","Xuan ","Qi ","Yu ","Xi ","Ji ","Si ","Chan ","Tan ","Kuai ","Sui ","Li ","Nong ","Ni ","Dao ","Li ","Rang ","Yue ","Ti ","Zan ","Lei ","Rou ","Yu ","Yu ","Chi ","Xie ","Qin ","He ","Tu ","Xiu ","Si ","Ren ","Tu ","Zi ","Cha ","Gan ","Yi ","Xian ","Bing ","Nian ","Qiu ","Qiu ","Chong ","Fen ","Hao ","Yun ","Ke ","Miao ","Zhi ","Geng ","Bi ","Zhi ","Yu ","Mi ","Ku ","Ban ","Pi ","Ni ","Li ","You ","Zu ","Pi ","Ba ","Ling ","Mo ","Cheng ","Nian ","Qin ","Yang ","Zuo ","Zhi ","Zhi ","Shu ","Ju ","Zi ","Huo ","Ji ","Cheng ","Tong ","Zhi ","Huo ","He ","Yin ","Zi ","Zhi ","Jie ","Ren ","Du ","Yi ","Zhu ","Hui ","Nong ","Fu "]});var e5=m((_6e,Vz)=>{Vz.exports=["Xi ","Kao ","Lang ","Fu ","Ze ","Shui ","Lu ","Kun ","Gan ","Geng ","Ti ","Cheng ","Tu ","Shao ","Shui ","Ya ","Lun ","Lu ","Gu ","Zuo ","Ren ","Zhun ","Bang ","Bai ","Ji ","Zhi ","Zhi ","Kun ","Leng ","Peng ","Ke ","Bing ","Chou ","Zu ","Yu ","Su ","Lue ","[?] ","Yi ","Xi ","Bian ","Ji ","Fu ","Bi ","Nuo ","Jie ","Zhong ","Zong ","Xu ","Cheng ","Dao ","Wen ","Lian ","Zi ","Yu ","Ji ","Xu ","Zhen ","Zhi ","Dao ","Jia ","Ji ","Gao ","Gao ","Gu ","Rong ","Sui ","You ","Ji ","Kang ","Mu ","Shan ","Men ","Zhi ","Ji ","Lu ","Su ","Ji ","Ying ","Wen ","Qiu ","Se ","[?] ","Yi ","Huang ","Qie ","Ji ","Sui ","Xiao ","Pu ","Jiao ","Zhuo ","Tong ","Sai ","Lu ","Sui ","Nong ","Se ","Hui ","Rang ","Nuo ","Yu ","Bin ","Ji ","Tui ","Wen ","Cheng ","Huo ","Gong ","Lu ","Biao ","[?] ","Rang ","Zhuo ","Li ","Zan ","Xue ","Wa ","Jiu ","Qiong ","Xi ","Qiong ","Kong ","Yu ","Sen ","Jing ","Yao ","Chuan ","Zhun ","Tu ","Lao ","Qie ","Zhai ","Yao ","Bian ","Bao ","Yao ","Bing ","Wa ","Zhu ","Jiao ","Qiao ","Diao ","Wu ","Gui ","Yao ","Zhi ","Chuang ","Yao ","Tiao ","Jiao ","Chuang ","Jiong ","Xiao ","Cheng ","Kou ","Cuan ","Wo ","Dan ","Ku ","Ke ","Zhui ","Xu ","Su ","Guan ","Kui ","Dou ","[?] ","Yin ","Wo ","Wa ","Ya ","Yu ","Ju ","Qiong ","Yao ","Yao ","Tiao ","Chao ","Yu ","Tian ","Diao ","Ju ","Liao ","Xi ","Wu ","Kui ","Chuang ","Zhao ","[?] ","Kuan ","Long ","Cheng ","Cui ","Piao ","Zao ","Cuan ","Qiao ","Qiong ","Dou ","Zao ","Long ","Qie ","Li ","Chu ","Shi ","Fou ","Qian ","Chu ","Hong ","Qi ","Qian ","Gong ","Shi ","Shu ","Miao ","Ju ","Zhan ","Zhu ","Ling ","Long ","Bing ","Jing ","Jing ","Zhang ","Yi ","Si ","Jun ","Hong ","Tong ","Song ","Jing ","Diao ","Yi ","Shu ","Jing ","Qu ","Jie ","Ping ","Duan ","Shao ","Zhuan ","Ceng ","Deng ","Cui ","Huai ","Jing ","Kan ","Jing ","Zhu ","Zhu ","Le ","Peng ","Yu ","Chi ","Gan "]});var i5=m((R6e,t5)=>{t5.exports=["Mang ","Zhu ","Utsubo ","Du ","Ji ","Xiao ","Ba ","Suan ","Ji ","Zhen ","Zhao ","Sun ","Ya ","Zhui ","Yuan ","Hu ","Gang ","Xiao ","Cen ","Pi ","Bi ","Jian ","Yi ","Dong ","Shan ","Sheng ","Xia ","Di ","Zhu ","Na ","Chi ","Gu ","Li ","Qie ","Min ","Bao ","Tiao ","Si ","Fu ","Ce ","Ben ","Pei ","Da ","Zi ","Di ","Ling ","Ze ","Nu ","Fu ","Gou ","Fan ","Jia ","Ge ","Fan ","Shi ","Mao ","Po ","Sey ","Jian ","Qiong ","Long ","Souke ","Bian ","Luo ","Gui ","Qu ","Chi ","Yin ","Yao ","Xian ","Bi ","Qiong ","Gua ","Deng ","Jiao ","Jin ","Quan ","Sun ","Ru ","Fa ","Kuang ","Zhu ","Tong ","Ji ","Da ","Xing ","Ce ","Zhong ","Kou ","Lai ","Bi ","Shai ","Dang ","Zheng ","Ce ","Fu ","Yun ","Tu ","Pa ","Li ","Lang ","Ju ","Guan ","Jian ","Han ","Tong ","Xia ","Zhi ","Cheng ","Suan ","Shi ","Zhu ","Zuo ","Xiao ","Shao ","Ting ","Ce ","Yan ","Gao ","Kuai ","Gan ","Chou ","Kago ","Gang ","Yun ","O ","Qian ","Xiao ","Jian ","Pu ","Lai ","Zou ","Bi ","Bi ","Bi ","Ge ","Chi ","Guai ","Yu ","Jian ","Zhao ","Gu ","Chi ","Zheng ","Jing ","Sha ","Zhou ","Lu ","Bo ","Ji ","Lin ","Suan ","Jun ","Fu ","Zha ","Gu ","Kong ","Qian ","Quan ","Jun ","Chui ","Guan ","Yuan ","Ce ","Ju ","Bo ","Ze ","Qie ","Tuo ","Luo ","Dan ","Xiao ","Ruo ","Jian ","Xuan ","Bian ","Sun ","Xiang ","Xian ","Ping ","Zhen ","Sheng ","Hu ","Shi ","Zhu ","Yue ","Chun ","Lu ","Wu ","Dong ","Xiao ","Ji ","Jie ","Huang ","Xing ","Mei ","Fan ","Chui ","Zhuan ","Pian ","Feng ","Zhu ","Hong ","Qie ","Hou ","Qiu ","Miao ","Qian ","[?] ","Kui ","Sik ","Lou ","Yun ","He ","Tang ","Yue ","Chou ","Gao ","Fei ","Ruo ","Zheng ","Gou ","Nie ","Qian ","Xiao ","Cuan ","Gong ","Pang ","Du ","Li ","Bi ","Zhuo ","Chu ","Shai ","Chi ","Zhu ","Qiang ","Long ","Lan ","Jian ","Bu ","Li ","Hui ","Bi ","Di ","Cong ","Yan ","Peng ","Sen ","Zhuan ","Pai ","Piao ","Dou ","Yu ","Mie ","Zhuan "]});var r5=m((L6e,n5)=>{n5.exports=["Ze ","Xi ","Guo ","Yi ","Hu ","Chan ","Kou ","Cu ","Ping ","Chou ","Ji ","Gui ","Su ","Lou ","Zha ","Lu ","Nian ","Suo ","Cuan ","Sasara ","Suo ","Le ","Duan ","Yana ","Xiao ","Bo ","Mi ","Si ","Dang ","Liao ","Dan ","Dian ","Fu ","Jian ","Min ","Kui ","Dai ","Qiao ","Deng ","Huang ","Sun ","Lao ","Zan ","Xiao ","Du ","Shi ","Zan ","[?] ","Pai ","Hata ","Pai ","Gan ","Ju ","Du ","Lu ","Yan ","Bo ","Dang ","Sai ","Ke ","Long ","Qian ","Lian ","Bo ","Zhou ","Lai ","[?] ","Lan ","Kui ","Yu ","Yue ","Hao ","Zhen ","Tai ","Ti ","Mi ","Chou ","Ji ","[?] ","Hata ","Teng ","Zhuan ","Zhou ","Fan ","Sou ","Zhou ","Kuji ","Zhuo ","Teng ","Lu ","Lu ","Jian ","Tuo ","Ying ","Yu ","Lai ","Long ","Shinshi ","Lian ","Lan ","Qian ","Yue ","Zhong ","Qu ","Lian ","Bian ","Duan ","Zuan ","Li ","Si ","Luo ","Ying ","Yue ","Zhuo ","Xu ","Mi ","Di ","Fan ","Shen ","Zhe ","Shen ","Nu ","Xie ","Lei ","Xian ","Zi ","Ni ","Cun ","[?] ","Qian ","Kume ","Bi ","Ban ","Wu ","Sha ","Kang ","Rou ","Fen ","Bi ","Cui ","[?] ","Li ","Chi ","Nukamiso ","Ro ","Ba ","Li ","Gan ","Ju ","Po ","Mo ","Cu ","Nian ","Zhou ","Li ","Su ","Tiao ","Li ","Qi ","Su ","Hong ","Tong ","Zi ","Ce ","Yue ","Zhou ","Lin ","Zhuang ","Bai ","[?] ","Fen ","Ji ","[?] ","Sukumo ","Liang ","Xian ","Fu ","Liang ","Can ","Geng ","Li ","Yue ","Lu ","Ju ","Qi ","Cui ","Bai ","Zhang ","Lin ","Zong ","Jing ","Guo ","Kouji ","San ","San ","Tang ","Bian ","Rou ","Mian ","Hou ","Xu ","Zong ","Hu ","Jian ","Zan ","Ci ","Li ","Xie ","Fu ","Ni ","Bei ","Gu ","Xiu ","Gao ","Tang ","Qiu ","Sukumo ","Cao ","Zhuang ","Tang ","Mi ","San ","Fen ","Zao ","Kang ","Jiang ","Mo ","San ","San ","Nuo ","Xi ","Liang ","Jiang ","Kuai ","Bo ","Huan ","[?] ","Zong ","Xian ","Nuo ","Tuan ","Nie ","Li ","Zuo ","Di ","Nie ","Tiao ","Lan ","Mi ","Jiao ","Jiu ","Xi ","Gong ","Zheng ","Jiu ","You "]});var s5=m((F6e,o5)=>{o5.exports=["Ji ","Cha ","Zhou ","Xun ","Yue ","Hong ","Yu ","He ","Wan ","Ren ","Wen ","Wen ","Qiu ","Na ","Zi ","Tou ","Niu ","Fou ","Jie ","Shu ","Chun ","Pi ","Yin ","Sha ","Hong ","Zhi ","Ji ","Fen ","Yun ","Ren ","Dan ","Jin ","Su ","Fang ","Suo ","Cui ","Jiu ","Zha ","Kinu ","Jin ","Fu ","Zhi ","Ci ","Zi ","Chou ","Hong ","Zha ","Lei ","Xi ","Fu ","Xie ","Shen ","Bei ","Zhu ","Qu ","Ling ","Zhu ","Shao ","Gan ","Yang ","Fu ","Tuo ","Zhen ","Dai ","Zhuo ","Shi ","Zhong ","Xian ","Zu ","Jiong ","Ban ","Ju ","Mo ","Shu ","Zui ","Wata ","Jing ","Ren ","Heng ","Xie ","Jie ","Zhu ","Chou ","Gua ","Bai ","Jue ","Kuang ","Hu ","Ci ","Geng ","Geng ","Tao ","Xie ","Ku ","Jiao ","Quan ","Gai ","Luo ","Xuan ","Bing ","Xian ","Fu ","Gei ","Tong ","Rong ","Tiao ","Yin ","Lei ","Xie ","Quan ","Xu ","Lun ","Die ","Tong ","Si ","Jiang ","Xiang ","Hui ","Jue ","Zhi ","Jian ","Juan ","Chi ","Mian ","Zhen ","Lu ","Cheng ","Qiu ","Shu ","Bang ","Tong ","Xiao ","Wan ","Qin ","Geng ","Xiu ","Ti ","Xiu ","Xie ","Hong ","Xi ","Fu ","Ting ","Sui ","Dui ","Kun ","Fu ","Jing ","Hu ","Zhi ","Yan ","Jiong ","Feng ","Ji ","Sok ","Kase ","Zong ","Lin ","Duo ","Li ","Lu ","Liang ","Chou ","Quan ","Shao ","Qi ","Qi ","Zhun ","Qi ","Wan ","Qian ","Xian ","Shou ","Wei ","Qi ","Tao ","Wan ","Gang ","Wang ","Beng ","Zhui ","Cai ","Guo ","Cui ","Lun ","Liu ","Qi ","Zhan ","Bei ","Chuo ","Ling ","Mian ","Qi ","Qie ","Tan ","Zong ","Gun ","Zou ","Yi ","Zi ","Xing ","Liang ","Jin ","Fei ","Rui ","Min ","Yu ","Zong ","Fan ","Lu ","Xu ","Yingl ","Zhang ","Kasuri ","Xu ","Xiang ","Jian ","Ke ","Xian ","Ruan ","Mian ","Qi ","Duan ","Zhong ","Di ","Min ","Miao ","Yuan ","Xie ","Bao ","Si ","Qiu ","Bian ","Huan ","Geng ","Cong ","Mian ","Wei ","Fu ","Wei ","Yu ","Gou ","Miao ","Xie ","Lian ","Zong ","Bian ","Yun ","Yin ","Ti ","Gua ","Zhi ","Yun ","Cheng ","Chan ","Dai "]});var l5=m((I6e,a5)=>{a5.exports=["Xia ","Yuan ","Zong ","Xu ","Nawa ","Odoshi ","Geng ","Sen ","Ying ","Jin ","Yi ","Zhui ","Ni ","Bang ","Gu ","Pan ","Zhou ","Jian ","Cuo ","Quan ","Shuang ","Yun ","Xia ","Shuai ","Xi ","Rong ","Tao ","Fu ","Yun ","Zhen ","Gao ","Ru ","Hu ","Zai ","Teng ","Xian ","Su ","Zhen ","Zong ","Tao ","Horo ","Cai ","Bi ","Feng ","Cu ","Li ","Suo ","Yin ","Xi ","Zong ","Lei ","Zhuan ","Qian ","Man ","Zhi ","Lu ","Mo ","Piao ","Lian ","Mi ","Xuan ","Zong ","Ji ","Shan ","Sui ","Fan ","Shuai ","Beng ","Yi ","Sao ","Mou ","Zhou ","Qiang ","Hun ","Sem ","Xi ","Jung ","Xiu ","Ran ","Xuan ","Hui ","Qiao ","Zeng ","Zuo ","Zhi ","Shan ","San ","Lin ","Yu ","Fan ","Liao ","Chuo ","Zun ","Jian ","Rao ","Chan ","Rui ","Xiu ","Hui ","Hua ","Zuan ","Xi ","Qiang ","Un ","Da ","Sheng ","Hui ","Xi ","Se ","Jian ","Jiang ","Huan ","Zao ","Cong ","Jie ","Jiao ","Bo ","Chan ","Yi ","Nao ","Sui ","Yi ","Shai ","Xu ","Ji ","Bin ","Qian ","Lan ","Pu ","Xun ","Zuan ","Qi ","Peng ","Li ","Mo ","Lei ","Xie ","Zuan ","Kuang ","You ","Xu ","Lei ","Xian ","Chan ","Kou ","Lu ","Chan ","Ying ","Cai ","Xiang ","Xian ","Zui ","Zuan ","Luo ","Xi ","Dao ","Lan ","Lei ","Lian ","Si ","Jiu ","Yu ","Hong ","Zhou ","Xian ","He ","Yue ","Ji ","Wan ","Kuang ","Ji ","Ren ","Wei ","Yun ","Hong ","Chun ","Pi ","Sha ","Gang ","Na ","Ren ","Zong ","Lun ","Fen ","Zhi ","Wen ","Fang ","Zhu ","Yin ","Niu ","Shu ","Xian ","Gan ","Xie ","Fu ","Lian ","Zu ","Shen ","Xi ","Zhi ","Zhong ","Zhou ","Ban ","Fu ","Zhuo ","Shao ","Yi ","Jing ","Dai ","Bang ","Rong ","Jie ","Ku ","Rao ","Die ","Heng ","Hui ","Gei ","Xuan ","Jiang ","Luo ","Jue ","Jiao ","Tong ","Geng ","Xiao ","Juan ","Xiu ","Xi ","Sui ","Tao ","Ji ","Ti ","Ji ","Xu ","Ling ","[?] ","Xu ","Qi ","Fei ","Chuo ","Zhang ","Gun ","Sheng ","Wei ","Mian ","Shou ","Beng ","Chou ","Tao ","Liu ","Quan ","Zong ","Zhan ","Wan ","Lu "]});var c5=m((j6e,u5)=>{u5.exports=["Zhui ","Zi ","Ke ","Xiang ","Jian ","Mian ","Lan ","Ti ","Miao ","Qi ","Yun ","Hui ","Si ","Duo ","Duan ","Bian ","Xian ","Gou ","Zhui ","Huan ","Di ","Lu ","Bian ","Min ","Yuan ","Jin ","Fu ","Ru ","Zhen ","Feng ","Shuai ","Gao ","Chan ","Li ","Yi ","Jian ","Bin ","Piao ","Man ","Lei ","Ying ","Suo ","Mou ","Sao ","Xie ","Liao ","Shan ","Zeng ","Jiang ","Qian ","Zao ","Huan ","Jiao ","Zuan ","Fou ","Xie ","Gang ","Fou ","Que ","Fou ","Kaakeru ","Bo ","Ping ","Hou ","[?] ","Gang ","Ying ","Ying ","Qing ","Xia ","Guan ","Zun ","Tan ","Chang ","Qi ","Weng ","Ying ","Lei ","Tan ","Lu ","Guan ","Wang ","Wang ","Gang ","Wang ","Han ","[?] ","Luo ","Fu ","Mi ","Fa ","Gu ","Zhu ","Ju ","Mao ","Gu ","Min ","Gang ","Ba ","Gua ","Ti ","Juan ","Fu ","Lin ","Yan ","Zhao ","Zui ","Gua ","Zhuo ","Yu ","Zhi ","An ","Fa ","Nan ","Shu ","Si ","Pi ","Ma ","Liu ","Ba ","Fa ","Li ","Chao ","Wei ","Bi ","Ji ","Zeng ","Tong ","Liu ","Ji ","Juan ","Mi ","Zhao ","Luo ","Pi ","Ji ","Ji ","Luan ","Yang ","Mie ","Qiang ","Ta ","Mei ","Yang ","You ","You ","Fen ","Ba ","Gao ","Yang ","Gu ","Qiang ","Zang ","Gao ","Ling ","Yi ","Zhu ","Di ","Xiu ","Qian ","Yi ","Xian ","Rong ","Qun ","Qun ","Qian ","Huan ","Zui ","Xian ","Yi ","Yashinau ","Qiang ","Xian ","Yu ","Geng ","Jie ","Tang ","Yuan ","Xi ","Fan ","Shan ","Fen ","Shan ","Lian ","Lei ","Geng ","Nou ","Qiang ","Chan ","Yu ","Gong ","Yi ","Chong ","Weng ","Fen ","Hong ","Chi ","Chi ","Cui ","Fu ","Xia ","Pen ","Yi ","La ","Yi ","Pi ","Ling ","Liu ","Zhi ","Qu ","Xi ","Xie ","Xiang ","Xi ","Xi ","Qi ","Qiao ","Hui ","Hui ","Xiao ","Se ","Hong ","Jiang ","Di ","Cui ","Fei ","Tao ","Sha ","Chi ","Zhu ","Jian ","Xuan ","Shi ","Pian ","Zong ","Wan ","Hui ","Hou ","He ","He ","Han ","Ao ","Piao ","Yi ","Lian ","Qu ","[?] ","Lin ","Pen ","Qiao ","Ao ","Fan ","Yi ","Hui ","Xuan ","Dao "]});var d5=m((A6e,h5)=>{h5.exports=["Yao ","Lao ","[?] ","Kao ","Mao ","Zhe ","Qi ","Gou ","Gou ","Gou ","Die ","Die ","Er ","Shua ","Ruan ","Er ","Nai ","Zhuan ","Lei ","Ting ","Zi ","Geng ","Chao ","Hao ","Yun ","Pa ","Pi ","Chi ","Si ","Chu ","Jia ","Ju ","He ","Chu ","Lao ","Lun ","Ji ","Tang ","Ou ","Lou ","Nou ","Gou ","Pang ","Ze ","Lou ","Ji ","Lao ","Huo ","You ","Mo ","Huai ","Er ","Zhe ","Ting ","Ye ","Da ","Song ","Qin ","Yun ","Chi ","Dan ","Dan ","Hong ","Geng ","Zhi ","[?] ","Nie ","Dan ","Zhen ","Che ","Ling ","Zheng ","You ","Wa ","Liao ","Long ","Zhi ","Ning ","Tiao ","Er ","Ya ","Die ","Gua ","[?] ","Lian ","Hao ","Sheng ","Lie ","Pin ","Jing ","Ju ","Bi ","Di ","Guo ","Wen ","Xu ","Ping ","Cong ","Shikato ","[?] ","Ting ","Yu ","Cong ","Kui ","Tsuraneru ","Kui ","Cong ","Lian ","Weng ","Kui ","Lian ","Lian ","Cong ","Ao ","Sheng ","Song ","Ting ","Kui ","Nie ","Zhi ","Dan ","Ning ","Qie ","Ji ","Ting ","Ting ","Long ","Yu ","Yu ","Zhao ","Si ","Su ","Yi ","Su ","Si ","Zhao ","Zhao ","Rou ","Yi ","Le ","Ji ","Qiu ","Ken ","Cao ","Ge ","Di ","Huan ","Huang ","Yi ","Ren ","Xiao ","Ru ","Zhou ","Yuan ","Du ","Gang ","Rong ","Gan ","Cha ","Wo ","Chang ","Gu ","Zhi ","Han ","Fu ","Fei ","Fen ","Pei ","Pang ","Jian ","Fang ","Zhun ","You ","Na ","Hang ","Ken ","Ran ","Gong ","Yu ","Wen ","Yao ","Jin ","Pi ","Qian ","Xi ","Xi ","Fei ","Ken ","Jing ","Tai ","Shen ","Zhong ","Zhang ","Xie ","Shen ","Wei ","Zhou ","Die ","Dan ","Fei ","Ba ","Bo ","Qu ","Tian ","Bei ","Gua ","Tai ","Zi ","Ku ","Zhi ","Ni ","Ping ","Zi ","Fu ","Pang ","Zhen ","Xian ","Zuo ","Pei ","Jia ","Sheng ","Zhi ","Bao ","Mu ","Qu ","Hu ","Ke ","Yi ","Yin ","Xu ","Yang ","Long ","Dong ","Ka ","Lu ","Jing ","Nu ","Yan ","Pang ","Kua ","Yi ","Guang ","Gai ","Ge ","Dong ","Zhi ","Xiao ","Xiong ","Xiong ","Er ","E ","Xing ","Pian ","Neng ","Zi ","Gui "]});var f5=m((O6e,g5)=>{g5.exports=["Cheng ","Tiao ","Zhi ","Cui ","Mei ","Xie ","Cui ","Xie ","Mo ","Mai ","Ji ","Obiyaakasu ","[?] ","Kuai ","Sa ","Zang ","Qi ","Nao ","Mi ","Nong ","Luan ","Wan ","Bo ","Wen ","Guan ","Qiu ","Jiao ","Jing ","Rou ","Heng ","Cuo ","Lie ","Shan ","Ting ","Mei ","Chun ","Shen ","Xie ","De ","Zui ","Cu ","Xiu ","Xin ","Tuo ","Pao ","Cheng ","Nei ","Fu ","Dou ","Tuo ","Niao ","Noy ","Pi ","Gu ","Gua ","Li ","Lian ","Zhang ","Cui ","Jie ","Liang ","Zhou ","Pi ","Biao ","Lun ","Pian ","Guo ","Kui ","Chui ","Dan ","Tian ","Nei ","Jing ","Jie ","La ","Yi ","An ","Ren ","Shen ","Chuo ","Fu ","Fu ","Ju ","Fei ","Qiang ","Wan ","Dong ","Pi ","Guo ","Zong ","Ding ","Wu ","Mei ","Ruan ","Zhuan ","Zhi ","Cou ","Gua ","Ou ","Di ","An ","Xing ","Nao ","Yu ","Chuan ","Nan ","Yun ","Zhong ","Rou ","E ","Sai ","Tu ","Yao ","Jian ","Wei ","Jiao ","Yu ","Jia ","Duan ","Bi ","Chang ","Fu ","Xian ","Ni ","Mian ","Wa ","Teng ","Tui ","Bang ","Qian ","Lu ","Wa ","Sou ","Tang ","Su ","Zhui ","Ge ","Yi ","Bo ","Liao ","Ji ","Pi ","Xie ","Gao ","Lu ","Bin ","Ou ","Chang ","Lu ","Guo ","Pang ","Chuai ","Piao ","Jiang ","Fu ","Tang ","Mo ","Xi ","Zhuan ","Lu ","Jiao ","Ying ","Lu ","Zhi ","Tara ","Chun ","Lian ","Tong ","Peng ","Ni ","Zha ","Liao ","Cui ","Gui ","Xiao ","Teng ","Fan ","Zhi ","Jiao ","Shan ","Wu ","Cui ","Run ","Xiang ","Sui ","Fen ","Ying ","Tan ","Zhua ","Dan ","Kuai ","Nong ","Tun ","Lian ","Bi ","Yong ","Jue ","Chu ","Yi ","Juan ","La ","Lian ","Sao ","Tun ","Gu ","Qi ","Cui ","Bin ","Xun ","Ru ","Huo ","Zang ","Xian ","Biao ","Xing ","Kuan ","La ","Yan ","Lu ","Huo ","Zang ","Luo ","Qu ","Zang ","Luan ","Ni ","Zang ","Chen ","Qian ","Wo ","Guang ","Zang ","Lin ","Guang ","Zi ","Jiao ","Nie ","Chou ","Ji ","Gao ","Chou ","Mian ","Nie ","Zhi ","Zhi ","Ge ","Jian ","Die ","Zhi ","Xiu ","Tai ","Zhen ","Jiu ","Xian ","Yu ","Cha "]});var m5=m((M6e,p5)=>{p5.exports=["Yao ","Yu ","Chong ","Xi ","Xi ","Jiu ","Yu ","Yu ","Xing ","Ju ","Jiu ","Xin ","She ","She ","Yadoru ","Jiu ","Shi ","Tan ","Shu ","Shi ","Tian ","Dan ","Pu ","Pu ","Guan ","Hua ","Tan ","Chuan ","Shun ","Xia ","Wu ","Zhou ","Dao ","Gang ","Shan ","Yi ","[?] ","Pa ","Tai ","Fan ","Ban ","Chuan ","Hang ","Fang ","Ban ","Que ","Hesaki ","Zhong ","Jian ","Cang ","Ling ","Zhu ","Ze ","Duo ","Bo ","Xian ","Ge ","Chuan ","Jia ","Lu ","Hong ","Pang ","Xi ","[?] ","Fu ","Zao ","Feng ","Li ","Shao ","Yu ","Lang ","Ting ","[?] ","Wei ","Bo ","Meng ","Nian ","Ju ","Huang ","Shou ","Zong ","Bian ","Mao ","Die ","[?] ","Bang ","Cha ","Yi ","Sao ","Cang ","Cao ","Lou ","Dai ","Sori ","Yao ","Tong ","Yofune ","Dang ","Tan ","Lu ","Yi ","Jie ","Jian ","Huo ","Meng ","Qi ","Lu ","Lu ","Chan ","Shuang ","Gen ","Liang ","Jian ","Jian ","Se ","Yan ","Fu ","Ping ","Yan ","Yan ","Cao ","Cao ","Yi ","Le ","Ting ","Qiu ","Ai ","Nai ","Tiao ","Jiao ","Jie ","Peng ","Wan ","Yi ","Chai ","Mian ","Mie ","Gan ","Qian ","Yu ","Yu ","Shuo ","Qiong ","Tu ","Xia ","Qi ","Mang ","Zi ","Hui ","Sui ","Zhi ","Xiang ","Bi ","Fu ","Tun ","Wei ","Wu ","Zhi ","Qi ","Shan ","Wen ","Qian ","Ren ","Fou ","Kou ","Jie ","Lu ","Xu ","Ji ","Qin ","Qi ","Yuan ","Fen ","Ba ","Rui ","Xin ","Ji ","Hua ","Hua ","Fang ","Wu ","Jue ","Gou ","Zhi ","Yun ","Qin ","Ao ","Chu ","Mao ","Ya ","Fei ","Reng ","Hang ","Cong ","Yin ","You ","Bian ","Yi ","Susa ","Wei ","Li ","Pi ","E ","Xian ","Chang ","Cang ","Meng ","Su ","Yi ","Yuan ","Ran ","Ling ","Tai ","Tiao ","Di ","Miao ","Qiong ","Li ","Yong ","Ke ","Mu ","Pei ","Bao ","Gou ","Min ","Yi ","Yi ","Ju ","Pi ","Ruo ","Ku ","Zhu ","Ni ","Bo ","Bing ","Shan ","Qiu ","Yao ","Xian ","Ben ","Hong ","Ying ","Zha ","Dong ","Ju ","Die ","Nie ","Gan ","Hu ","Ping ","Mei ","Fu ","Sheng ","Gu ","Bi ","Wei "]});var y5=m((N6e,b5)=>{b5.exports=["Fu ","Zhuo ","Mao ","Fan ","Qie ","Mao ","Mao ","Ba ","Zi ","Mo ","Zi ","Di ","Chi ","Ji ","Jing ","Long ","[?] ","Niao ","[?] ","Xue ","Ying ","Qiong ","Ge ","Ming ","Li ","Rong ","Yin ","Gen ","Qian ","Chai ","Chen ","Yu ","Xiu ","Zi ","Lie ","Wu ","Ji ","Kui ","Ce ","Chong ","Ci ","Gou ","Guang ","Mang ","Chi ","Jiao ","Jiao ","Fu ","Yu ","Zhu ","Zi ","Jiang ","Hui ","Yin ","Cha ","Fa ","Rong ","Ru ","Chong ","Mang ","Tong ","Zhong ","[?] ","Zhu ","Xun ","Huan ","Kua ","Quan ","Gai ","Da ","Jing ","Xing ","Quan ","Cao ","Jing ","Er ","An ","Shou ","Chi ","Ren ","Jian ","Ti ","Huang ","Ping ","Li ","Jin ","Lao ","Shu ","Zhuang ","Da ","Jia ","Rao ","Bi ","Ze ","Qiao ","Hui ","Qi ","Dang ","[?] ","Rong ","Hun ","Ying ","Luo ","Ying ","Xun ","Jin ","Sun ","Yin ","Mai ","Hong ","Zhou ","Yao ","Du ","Wei ","Chu ","Dou ","Fu ","Ren ","Yin ","He ","Bi ","Bu ","Yun ","Di ","Tu ","Sui ","Sui ","Cheng ","Chen ","Wu ","Bie ","Xi ","Geng ","Li ","Fu ","Zhu ","Mo ","Li ","Zhuang ","Ji ","Duo ","Qiu ","Sha ","Suo ","Chen ","Feng ","Ju ","Mei ","Meng ","Xing ","Jing ","Che ","Xin ","Jun ","Yan ","Ting ","Diao ","Cuo ","Wan ","Han ","You ","Cuo ","Jia ","Wang ","You ","Niu ","Shao ","Xian ","Lang ","Fu ","E ","Mo ","Wen ","Jie ","Nan ","Mu ","Kan ","Lai ","Lian ","Shi ","Wo ","Usagi ","Lian ","Huo ","You ","Ying ","Ying ","Nuc ","Chun ","Mang ","Mang ","Ci ","Wan ","Jing ","Di ","Qu ","Dong ","Jian ","Zou ","Gu ","La ","Lu ","Ju ","Wei ","Jun ","Nie ","Kun ","He ","Pu ","Zi ","Gao ","Guo ","Fu ","Lun ","Chang ","Chou ","Song ","Chui ","Zhan ","Men ","Cai ","Ba ","Li ","Tu ","Bo ","Han ","Bao ","Qin ","Juan ","Xi ","Qin ","Di ","Jie ","Pu ","Dang ","Jin ","Zhao ","Tai ","Geng ","Hua ","Gu ","Ling ","Fei ","Jin ","An ","Wang ","Beng ","Zhou ","Yan ","Ju ","Jian ","Lin ","Tan ","Shu ","Tian ","Dao "]});var w5=m((B6e,v5)=>{v5.exports=["Hu ","Qi ","He ","Cui ","Tao ","Chun ","Bei ","Chang ","Huan ","Fei ","Lai ","Qi ","Meng ","Ping ","Wei ","Dan ","Sha ","Huan ","Yan ","Yi ","Tiao ","Qi ","Wan ","Ce ","Nai ","Kutabireru ","Tuo ","Jiu ","Tie ","Luo ","[?] ","[?] ","Meng ","[?] ","Yaji ","[?] ","Ying ","Ying ","Ying ","Xiao ","Sa ","Qiu ","Ke ","Xiang ","Wan ","Yu ","Yu ","Fu ","Lian ","Xuan ","Yuan ","Nan ","Ze ","Wo ","Chun ","Xiao ","Yu ","Pian ","Mao ","An ","E ","Luo ","Ying ","Huo ","Gua ","Jiang ","Mian ","Zuo ","Zuo ","Ju ","Bao ","Rou ","Xi ","Xie ","An ","Qu ","Jian ","Fu ","Lu ","Jing ","Pen ","Feng ","Hong ","Hong ","Hou ","Yan ","Tu ","Zhu ","Zi ","Xiang ","Shen ","Ge ","Jie ","Jing ","Mi ","Huang ","Shen ","Pu ","Gai ","Dong ","Zhou ","Qian ","Wei ","Bo ","Wei ","Pa ","Ji ","Hu ","Zang ","Jia ","Duan ","Yao ","Jun ","Cong ","Quan ","Wei ","Xian ","Kui ","Ting ","Hun ","Xi ","Shi ","Qi ","Lan ","Zong ","Yao ","Yuan ","Mei ","Yun ","Shu ","Di ","Zhuan ","Guan ","Sukumo ","Xue ","Chan ","Kai ","Kui ","[?] ","Jiang ","Lou ","Wei ","Pai ","[?] ","Sou ","Yin ","Shi ","Chun ","Shi ","Yun ","Zhen ","Lang ","Nu ","Meng ","He ","Que ","Suan ","Yuan ","Li ","Ju ","Xi ","Pang ","Chu ","Xu ","Tu ","Liu ","Wo ","Zhen ","Qian ","Zu ","Po ","Cuo ","Yuan ","Chu ","Yu ","Kuai ","Pan ","Pu ","Pu ","Na ","Shuo ","Xi ","Fen ","Yun ","Zheng ","Jian ","Ji ","Ruo ","Cang ","En ","Mi ","Hao ","Sun ","Zhen ","Ming ","Sou ","Xu ","Liu ","Xi ","Gu ","Lang ","Rong ","Weng ","Gai ","Cuo ","Shi ","Tang ","Luo ","Ru ","Suo ","Xian ","Bei ","Yao ","Gui ","Bi ","Zong ","Gun ","Za ","Xiu ","Ce ","Hai ","Lan ","[?] ","Ji ","Li ","Can ","Lang ","Yu ","[?] ","Ying ","Mo ","Diao ","Tiao ","Mao ","Tong ","Zhu ","Peng ","An ","Lian ","Cong ","Xi ","Ping ","Qiu ","Jin ","Chun ","Jie ","Wei ","Tui ","Cao ","Yu ","Yi ","Ji ","Liao ","Bi ","Lu ","Su "]});var x5=m((H6e,D5)=>{D5.exports=["Bu ","Zhang ","Luo ","Jiang ","Man ","Yan ","Ling ","Ji ","Piao ","Gun ","Han ","Di ","Su ","Lu ","She ","Shang ","Di ","Mie ","Xun ","Man ","Bo ","Di ","Cuo ","Zhe ","Sen ","Xuan ","Wei ","Hu ","Ao ","Mi ","Lou ","Cu ","Zhong ","Cai ","Po ","Jiang ","Mi ","Cong ","Niao ","Hui ","Jun ","Yin ","Jian ","Yan ","Shu ","Yin ","Kui ","Chen ","Hu ","Sha ","Kou ","Qian ","Ma ","Zang ","Sonoko ","Qiang ","Dou ","Lian ","Lin ","Kou ","Ai ","Bi ","Li ","Wei ","Ji ","Xun ","Sheng ","Fan ","Meng ","Ou ","Chan ","Dian ","Xun ","Jiao ","Rui ","Rui ","Lei ","Yu ","Qiao ","Chu ","Hua ","Jian ","Mai ","Yun ","Bao ","You ","Qu ","Lu ","Rao ","Hui ","E ","Teng ","Fei ","Jue ","Zui ","Fa ","Ru ","Fen ","Kui ","Shun ","Rui ","Ya ","Xu ","Fu ","Jue ","Dang ","Wu ","Tong ","Si ","Xiao ","Xi ","Long ","Yun ","[?] ","Qi ","Jian ","Yun ","Sun ","Ling ","Yu ","Xia ","Yong ","Ji ","Hong ","Si ","Nong ","Lei ","Xuan ","Yun ","Yu ","Xi ","Hao ","Bo ","Hao ","Ai ","Wei ","Hui ","Wei ","Ji ","Ci ","Xiang ","Luan ","Mie ","Yi ","Leng ","Jiang ","Can ","Shen ","Qiang ","Lian ","Ke ","Yuan ","Da ","Ti ","Tang ","Xie ","Bi ","Zhan ","Sun ","Lian ","Fan ","Ding ","Jie ","Gu ","Xie ","Shu ","Jian ","Kao ","Hong ","Sa ","Xin ","Xun ","Yao ","Hie ","Sou ","Shu ","Xun ","Dui ","Pin ","Wei ","Neng ","Chou ","Mai ","Ru ","Piao ","Tai ","Qi ","Zao ","Chen ","Zhen ","Er ","Ni ","Ying ","Gao ","Cong ","Xiao ","Qi ","Fa ","Jian ","Xu ","Kui ","Jie ","Bian ","Diao ","Mi ","Lan ","Jin ","Cang ","Miao ","Qiong ","Qie ","Xian ","[?] ","Ou ","Xian ","Su ","Lu ","Yi ","Xu ","Xie ","Li ","Yi ","La ","Lei ","Xiao ","Di ","Zhi ","Bei ","Teng ","Yao ","Mo ","Huan ","Piao ","Fan ","Sou ","Tan ","Tui ","Qiong ","Qiao ","Wei ","Liu ","Hui ","[?] ","Gao ","Yun ","[?] ","Li ","Shu ","Chu ","Ai ","Lin ","Zao ","Xuan ","Chen ","Lai ","Huo "]});var S5=m((q6e,C5)=>{C5.exports=["Tuo ","Wu ","Rui ","Rui ","Qi ","Heng ","Lu ","Su ","Tui ","Mang ","Yun ","Pin ","Yu ","Xun ","Ji ","Jiong ","Xian ","Mo ","Hagi ","Su ","Jiong ","[?] ","Nie ","Bo ","Rang ","Yi ","Xian ","Yu ","Ju ","Lian ","Lian ","Yin ","Qiang ","Ying ","Long ","Tong ","Wei ","Yue ","Ling ","Qu ","Yao ","Fan ","Mi ","Lan ","Kui ","Lan ","Ji ","Dang ","Katsura ","Lei ","Lei ","Hua ","Feng ","Zhi ","Wei ","Kui ","Zhan ","Huai ","Li ","Ji ","Mi ","Lei ","Huai ","Luo ","Ji ","Kui ","Lu ","Jian ","San ","[?] ","Lei ","Quan ","Xiao ","Yi ","Luan ","Men ","Bie ","Hu ","Hu ","Lu ","Nue ","Lu ","Si ","Xiao ","Qian ","Chu ","Hu ","Xu ","Cuo ","Fu ","Xu ","Xu ","Lu ","Hu ","Yu ","Hao ","Jiao ","Ju ","Guo ","Bao ","Yan ","Zhan ","Zhan ","Kui ","Ban ","Xi ","Shu ","Chong ","Qiu ","Diao ","Ji ","Qiu ","Cheng ","Shi ","[?] ","Di ","Zhe ","She ","Yu ","Gan ","Zi ","Hong ","Hui ","Meng ","Ge ","Sui ","Xia ","Chai ","Shi ","Yi ","Ma ","Xiang ","Fang ","E ","Pa ","Chi ","Qian ","Wen ","Wen ","Rui ","Bang ","Bi ","Yue ","Yue ","Jun ","Qi ","Ran ","Yin ","Qi ","Tian ","Yuan ","Jue ","Hui ","Qin ","Qi ","Zhong ","Ya ","Ci ","Mu ","Wang ","Fen ","Fen ","Hang ","Gong ","Zao ","Fu ","Ran ","Jie ","Fu ","Chi ","Dou ","Piao ","Xian ","Ni ","Te ","Qiu ","You ","Zha ","Ping ","Chi ","You ","He ","Han ","Ju ","Li ","Fu ","Ran ","Zha ","Gou ","Pi ","Bo ","Xian ","Zhu ","Diao ","Bie ","Bing ","Gu ","Ran ","Qu ","She ","Tie ","Ling ","Gu ","Dan ","Gu ","Ying ","Li ","Cheng ","Qu ","Mou ","Ge ","Ci ","Hui ","Hui ","Mang ","Fu ","Yang ","Wa ","Lie ","Zhu ","Yi ","Xian ","Kuo ","Jiao ","Li ","Yi ","Ping ","Ji ","Ha ","She ","Yi ","Wang ","Mo ","Qiong ","Qie ","Gui ","Gong ","Zhi ","Man ","Ebi ","Zhi ","Jia ","Rao ","Si ","Qi ","Xing ","Lie ","Qiu ","Shao ","Yong ","Jia ","Shui ","Che ","Bai ","E ","Han "]});var k5=m((Y6e,T5)=>{T5.exports=["Shu ","Xuan ","Feng ","Shen ","Zhen ","Fu ","Xian ","Zhe ","Wu ","Fu ","Li ","Lang ","Bi ","Chu ","Yuan ","You ","Jie ","Dan ","Yan ","Ting ","Dian ","Shui ","Hui ","Gua ","Zhi ","Song ","Fei ","Ju ","Mi ","Qi ","Qi ","Yu ","Jun ","Zha ","Meng ","Qiang ","Si ","Xi ","Lun ","Li ","Die ","Tiao ","Tao ","Kun ","Gan ","Han ","Yu ","Bang ","Fei ","Pi ","Wei ","Dun ","Yi ","Yuan ","Su ","Quan ","Qian ","Rui ","Ni ","Qing ","Wei ","Liang ","Guo ","Wan ","Dong ","E ","Ban ","Di ","Wang ","Can ","Yang ","Ying ","Guo ","Chan ","[?] ","La ","Ke ","Ji ","He ","Ting ","Mai ","Xu ","Mian ","Yu ","Jie ","Shi ","Xuan ","Huang ","Yan ","Bian ","Rou ","Wei ","Fu ","Yuan ","Mei ","Wei ","Fu ","Ruan ","Xie ","You ","Qiu ","Mao ","Xia ","Ying ","Shi ","Chong ","Tang ","Zhu ","Zong ","Ti ","Fu ","Yuan ","Hui ","Meng ","La ","Du ","Hu ","Qiu ","Die ","Li ","Gua ","Yun ","Ju ","Nan ","Lou ","Qun ","Rong ","Ying ","Jiang ","[?] ","Lang ","Pang ","Si ","Xi ","Ci ","Xi ","Yuan ","Weng ","Lian ","Sou ","Ban ","Rong ","Rong ","Ji ","Wu ","Qiu ","Han ","Qin ","Yi ","Bi ","Hua ","Tang ","Yi ","Du ","Nai ","He ","Hu ","Hui ","Ma ","Ming ","Yi ","Wen ","Ying ","Teng ","Yu ","Cang ","So ","Ebi ","Man ","[?] ","Shang ","Zhe ","Cao ","Chi ","Di ","Ao ","Lu ","Wei ","Zhi ","Tang ","Chen ","Piao ","Qu ","Pi ","Yu ","Jian ","Luo ","Lou ","Qin ","Zhong ","Yin ","Jiang ","Shuai ","Wen ","Jiao ","Wan ","Zhi ","Zhe ","Ma ","Ma ","Guo ","Liu ","Mao ","Xi ","Cong ","Li ","Man ","Xiao ","Kamakiri ","Zhang ","Mang ","Xiang ","Mo ","Zui ","Si ","Qiu ","Te ","Zhi ","Peng ","Peng ","Jiao ","Qu ","Bie ","Liao ","Pan ","Gui ","Xi ","Ji ","Zhuan ","Huang ","Fei ","Lao ","Jue ","Jue ","Hui ","Yin ","Chan ","Jiao ","Shan ","Rao ","Xiao ","Mou ","Chong ","Xun ","Si ","[?] ","Cheng ","Dang ","Li ","Xie ","Shan ","Yi ","Jing ","Da ","Chan ","Qi "]});var P5=m((W6e,E5)=>{E5.exports=["Ci ","Xiang ","She ","Luo ","Qin ","Ying ","Chai ","Li ","Ze ","Xuan ","Lian ","Zhu ","Ze ","Xie ","Mang ","Xie ","Qi ","Rong ","Jian ","Meng ","Hao ","Ruan ","Huo ","Zhuo ","Jie ","Bin ","He ","Mie ","Fan ","Lei ","Jie ","La ","Mi ","Li ","Chun ","Li ","Qiu ","Nie ","Lu ","Du ","Xiao ","Zhu ","Long ","Li ","Long ","Feng ","Ye ","Beng ","Shang ","Gu ","Juan ","Ying ","[?] ","Xi ","Can ","Qu ","Quan ","Du ","Can ","Man ","Jue ","Jie ","Zhu ","Zha ","Xie ","Huang ","Niu ","Pei ","Nu ","Xin ","Zhong ","Mo ","Er ","Ke ","Mie ","Xi ","Xing ","Yan ","Kan ","Yuan ","[?] ","Ling ","Xuan ","Shu ","Xian ","Tong ","Long ","Jie ","Xian ","Ya ","Hu ","Wei ","Dao ","Chong ","Wei ","Dao ","Zhun ","Heng ","Qu ","Yi ","Yi ","Bu ","Gan ","Yu ","Biao ","Cha ","Yi ","Shan ","Chen ","Fu ","Gun ","Fen ","Shuai ","Jie ","Na ","Zhong ","Dan ","Ri ","Zhong ","Zhong ","Xie ","Qi ","Xie ","Ran ","Zhi ","Ren ","Qin ","Jin ","Jun ","Yuan ","Mei ","Chai ","Ao ","Niao ","Hui ","Ran ","Jia ","Tuo ","Ling ","Dai ","Bao ","Pao ","Yao ","Zuo ","Bi ","Shao ","Tan ","Ju ","He ","Shu ","Xiu ","Zhen ","Yi ","Pa ","Bo ","Di ","Wa ","Fu ","Gun ","Zhi ","Zhi ","Ran ","Pan ","Yi ","Mao ","Tuo ","Na ","Kou ","Xian ","Chan ","Qu ","Bei ","Gun ","Xi ","Ne ","Bo ","Horo ","Fu ","Yi ","Chi ","Ku ","Ren ","Jiang ","Jia ","Cun ","Mo ","Jie ","Er ","Luo ","Ru ","Zhu ","Gui ","Yin ","Cai ","Lie ","Kamishimo ","Yuki ","Zhuang ","Dang ","[?] ","Kun ","Ken ","Niao ","Shu ","Jia ","Kun ","Cheng ","Li ","Juan ","Shen ","Pou ","Ge ","Yi ","Yu ","Zhen ","Liu ","Qiu ","Qun ","Ji ","Yi ","Bu ","Zhuang ","Shui ","Sha ","Qun ","Li ","Lian ","Lian ","Ku ","Jian ","Fou ","Chan ","Bi ","Gun ","Tao ","Yuan ","Ling ","Chi ","Chang ","Chou ","Duo ","Biao ","Liang ","Chang ","Pei ","Pei ","Fei ","Yuan ","Luo ","Guo ","Yan ","Du ","Xi ","Zhi ","Ju ","Qi "]});var R5=m((Z6e,_5)=>{_5.exports=["Ji ","Zhi ","Gua ","Ken ","Che ","Ti ","Ti ","Fu ","Chong ","Xie ","Bian ","Die ","Kun ","Duan ","Xiu ","Xiu ","He ","Yuan ","Bao ","Bao ","Fu ","Yu ","Tuan ","Yan ","Hui ","Bei ","Chu ","Lu ","Ena ","Hitoe ","Yun ","Da ","Gou ","Da ","Huai ","Rong ","Yuan ","Ru ","Nai ","Jiong ","Suo ","Ban ","Tun ","Chi ","Sang ","Niao ","Ying ","Jie ","Qian ","Huai ","Ku ","Lian ","Bao ","Li ","Zhe ","Shi ","Lu ","Yi ","Die ","Xie ","Xian ","Wei ","Biao ","Cao ","Ji ","Jiang ","Sen ","Bao ","Xiang ","Chihaya ","Pu ","Jian ","Zhuan ","Jian ","Zui ","Ji ","Dan ","Za ","Fan ","Bo ","Xiang ","Xin ","Bie ","Rao ","Man ","Lan ","Ao ","Duo ","Gui ","Cao ","Sui ","Nong ","Chan ","Lian ","Bi ","Jin ","Dang ","Shu ","Tan ","Bi ","Lan ","Pu ","Ru ","Zhi ","[?] ","Shu ","Wa ","Shi ","Bai ","Xie ","Bo ","Chen ","Lai ","Long ","Xi ","Xian ","Lan ","Zhe ","Dai ","Tasuki ","Zan ","Shi ","Jian ","Pan ","Yi ","Ran ","Ya ","Xi ","Xi ","Yao ","Feng ","Tan ","[?] ","Biao ","Fu ","Ba ","He ","Ji ","Ji ","Jian ","Guan ","Bian ","Yan ","Gui ","Jue ","Pian ","Mao ","Mi ","Mi ","Mie ","Shi ","Si ","Zhan ","Luo ","Jue ","Mi ","Tiao ","Lian ","Yao ","Zhi ","Jun ","Xi ","Shan ","Wei ","Xi ","Tian ","Yu ","Lan ","E ","Du ","Qin ","Pang ","Ji ","Ming ","Ying ","Gou ","Qu ","Zhan ","Jin ","Guan ","Deng ","Jian ","Luo ","Qu ","Jian ","Wei ","Jue ","Qu ","Luo ","Lan ","Shen ","Di ","Guan ","Jian ","Guan ","Yan ","Gui ","Mi ","Shi ","Zhan ","Lan ","Jue ","Ji ","Xi ","Di ","Tian ","Yu ","Gou ","Jin ","Qu ","Jiao ","Jiu ","Jin ","Cu ","Jue ","Zhi ","Chao ","Ji ","Gu ","Dan ","Zui ","Di ","Shang ","Hua ","Quan ","Ge ","Chi ","Jie ","Gui ","Gong ","Hong ","Jie ","Hun ","Qiu ","Xing ","Su ","Ni ","Ji ","Lu ","Zhi ","Zha ","Bi ","Xing ","Hu ","Shang ","Gong ","Zhi ","Xue ","Chu ","Xi ","Yi ","Lu ","Jue ","Xi ","Yan ","Xi "]});var F5=m((J6e,L5)=>{L5.exports=["Yan ","Yan ","Ding ","Fu ","Qiu ","Qiu ","Jiao ","Hong ","Ji ","Fan ","Xun ","Diao ","Hong ","Cha ","Tao ","Xu ","Jie ","Yi ","Ren ","Xun ","Yin ","Shan ","Qi ","Tuo ","Ji ","Xun ","Yin ","E ","Fen ","Ya ","Yao ","Song ","Shen ","Yin ","Xin ","Jue ","Xiao ","Ne ","Chen ","You ","Zhi ","Xiong ","Fang ","Xin ","Chao ","She ","Xian ","Sha ","Tun ","Xu ","Yi ","Yi ","Su ","Chi ","He ","Shen ","He ","Xu ","Zhen ","Zhu ","Zheng ","Gou ","Zi ","Zi ","Zhan ","Gu ","Fu ","Quan ","Die ","Ling ","Di ","Yang ","Li ","Nao ","Pan ","Zhou ","Gan ","Yi ","Ju ","Ao ","Zha ","Tuo ","Yi ","Qu ","Zhao ","Ping ","Bi ","Xiong ","Qu ","Ba ","Da ","Zu ","Tao ","Zhu ","Ci ","Zhe ","Yong ","Xu ","Xun ","Yi ","Huang ","He ","Shi ","Cha ","Jiao ","Shi ","Hen ","Cha ","Gou ","Gui ","Quan ","Hui ","Jie ","Hua ","Gai ","Xiang ","Wei ","Shen ","Chou ","Tong ","Mi ","Zhan ","Ming ","E ","Hui ","Yan ","Xiong ","Gua ","Er ","Beng ","Tiao ","Chi ","Lei ","Zhu ","Kuang ","Kua ","Wu ","Yu ","Teng ","Ji ","Zhi ","Ren ","Su ","Lang ","E ","Kuang ","E ","Shi ","Ting ","Dan ","Bo ","Chan ","You ","Heng ","Qiao ","Qin ","Shua ","An ","Yu ","Xiao ","Cheng ","Jie ","Xian ","Wu ","Wu ","Gao ","Song ","Pu ","Hui ","Jing ","Shuo ","Zhen ","Shuo ","Du ","Yasashi ","Chang ","Shui ","Jie ","Ke ","Qu ","Cong ","Xiao ","Sui ","Wang ","Xuan ","Fei ","Chi ","Ta ","Yi ","Na ","Yin ","Diao ","Pi ","Chuo ","Chan ","Chen ","Zhun ","Ji ","Qi ","Tan ","Zhui ","Wei ","Ju ","Qing ","Jian ","Zheng ","Ze ","Zou ","Qian ","Zhuo ","Liang ","Jian ","Zhu ","Hao ","Lun ","Shen ","Biao ","Huai ","Pian ","Yu ","Die ","Xu ","Pian ","Shi ","Xuan ","Shi ","Hun ","Hua ","E ","Zhong ","Di ","Xie ","Fu ","Pu ","Ting ","Jian ","Qi ","Yu ","Zi ","Chuan ","Xi ","Hui ","Yin ","An ","Xian ","Nan ","Chen ","Feng ","Zhu ","Yang ","Yan ","Heng ","Xuan ","Ge ","Nuo ","Qi "]});var j5=m(($6e,I5)=>{I5.exports=["Mou ","Ye ","Wei ","[?] ","Teng ","Zou ","Shan ","Jian ","Bo ","Ku ","Huang ","Huo ","Ge ","Ying ","Mi ","Xiao ","Mi ","Xi ","Qiang ","Chen ","Nue ","Ti ","Su ","Bang ","Chi ","Qian ","Shi ","Jiang ","Yuan ","Xie ","Xue ","Tao ","Yao ","Yao ","[?] ","Yu ","Biao ","Cong ","Qing ","Li ","Mo ","Mo ","Shang ","Zhe ","Miu ","Jian ","Ze ","Jie ","Lian ","Lou ","Can ","Ou ","Guan ","Xi ","Zhuo ","Ao ","Ao ","Jin ","Zhe ","Yi ","Hu ","Jiang ","Man ","Chao ","Han ","Hua ","Chan ","Xu ","Zeng ","Se ","Xi ","She ","Dui ","Zheng ","Nao ","Lan ","E ","Ying ","Jue ","Ji ","Zun ","Jiao ","Bo ","Hui ","Zhuan ","Mu ","Zen ","Zha ","Shi ","Qiao ","Tan ","Zen ","Pu ","Sheng ","Xuan ","Zao ","Tan ","Dang ","Sui ","Qian ","Ji ","Jiao ","Jing ","Lian ","Nou ","Yi ","Ai ","Zhan ","Pi ","Hui ","Hua ","Yi ","Yi ","Shan ","Rang ","Nou ","Qian ","Zhui ","Ta ","Hu ","Zhou ","Hao ","Ye ","Ying ","Jian ","Yu ","Jian ","Hui ","Du ","Zhe ","Xuan ","Zan ","Lei ","Shen ","Wei ","Chan ","Li ","Yi ","Bian ","Zhe ","Yan ","E ","Chou ","Wei ","Chou ","Yao ","Chan ","Rang ","Yin ","Lan ","Chen ","Huo ","Zhe ","Huan ","Zan ","Yi ","Dang ","Zhan ","Yan ","Du ","Yan ","Ji ","Ding ","Fu ","Ren ","Ji ","Jie ","Hong ","Tao ","Rang ","Shan ","Qi ","Tuo ","Xun ","Yi ","Xun ","Ji ","Ren ","Jiang ","Hui ","Ou ","Ju ","Ya ","Ne ","Xu ","E ","Lun ","Xiong ","Song ","Feng ","She ","Fang ","Jue ","Zheng ","Gu ","He ","Ping ","Zu ","Shi ","Xiong ","Zha ","Su ","Zhen ","Di ","Zou ","Ci ","Qu ","Zhao ","Bi ","Yi ","Yi ","Kuang ","Lei ","Shi ","Gua ","Shi ","Jie ","Hui ","Cheng ","Zhu ","Shen ","Hua ","Dan ","Gou ","Quan ","Gui ","Xun ","Yi ","Zheng ","Gai ","Xiang ","Cha ","Hun ","Xu ","Zhou ","Jie ","Wu ","Yu ","Qiao ","Wu ","Gao ","You ","Hui ","Kuang ","Shuo ","Song ","Ai ","Qing ","Zhu ","Zou ","Nuo ","Du ","Zhuo ","Fei ","Ke ","Wei "]});var O5=m((X6e,A5)=>{A5.exports=["Yu ","Shui ","Shen ","Diao ","Chan ","Liang ","Zhun ","Sui ","Tan ","Shen ","Yi ","Mou ","Chen ","Die ","Huang ","Jian ","Xie ","Nue ","Ye ","Wei ","E ","Yu ","Xuan ","Chan ","Zi ","An ","Yan ","Di ","Mi ","Pian ","Xu ","Mo ","Dang ","Su ","Xie ","Yao ","Bang ","Shi ","Qian ","Mi ","Jin ","Man ","Zhe ","Jian ","Miu ","Tan ","Zen ","Qiao ","Lan ","Pu ","Jue ","Yan ","Qian ","Zhan ","Chen ","Gu ","Qian ","Hong ","Xia ","Jue ","Hong ","Han ","Hong ","Xi ","Xi ","Huo ","Liao ","Han ","Du ","Long ","Dou ","Jiang ","Qi ","Shi ","Li ","Deng ","Wan ","Bi ","Shu ","Xian ","Feng ","Zhi ","Zhi ","Yan ","Yan ","Shi ","Chu ","Hui ","Tun ","Yi ","Tun ","Yi ","Jian ","Ba ","Hou ","E ","Cu ","Xiang ","Huan ","Jian ","Ken ","Gai ","Qu ","Fu ","Xi ","Bin ","Hao ","Yu ","Zhu ","Jia ","[?] ","Xi ","Bo ","Wen ","Huan ","Bin ","Di ","Zong ","Fen ","Yi ","Zhi ","Bao ","Chai ","Han ","Pi ","Na ","Pi ","Gou ","Na ","You ","Diao ","Mo ","Si ","Xiu ","Huan ","Kun ","He ","He ","Mo ","Han ","Mao ","Li ","Ni ","Bi ","Yu ","Jia ","Tuan ","Mao ","Pi ","Xi ","E ","Ju ","Mo ","Chu ","Tan ","Huan ","Jue ","Bei ","Zhen ","Yuan ","Fu ","Cai ","Gong ","Te ","Yi ","Hang ","Wan ","Pin ","Huo ","Fan ","Tan ","Guan ","Ze ","Zhi ","Er ","Zhu ","Shi ","Bi ","Zi ","Er ","Gui ","Pian ","Bian ","Mai ","Dai ","Sheng ","Kuang ","Fei ","Tie ","Yi ","Chi ","Mao ","He ","Bi ","Lu ","Ren ","Hui ","Gai ","Pian ","Zi ","Jia ","Xu ","Zei ","Jiao ","Gai ","Zang ","Jian ","Ying ","Xun ","Zhen ","She ","Bin ","Bin ","Qiu ","She ","Chuan ","Zang ","Zhou ","Lai ","Zan ","Si ","Chen ","Shang ","Tian ","Pei ","Geng ","Xian ","Mai ","Jian ","Sui ","Fu ","Tan ","Cong ","Cong ","Zhi ","Ji ","Zhang ","Du ","Jin ","Xiong ","Shun ","Yun ","Bao ","Zai ","Lai ","Feng ","Cang ","Ji ","Sheng ","Ai ","Zhuan ","Fu ","Gou ","Sai ","Ze ","Liao "]});var N5=m((U6e,M5)=>{M5.exports=["Wei ","Bai ","Chen ","Zhuan ","Zhi ","Zhui ","Biao ","Yun ","Zeng ","Tan ","Zan ","Yan ","[?] ","Shan ","Wan ","Ying ","Jin ","Gan ","Xian ","Zang ","Bi ","Du ","Shu ","Yan ","[?] ","Xuan ","Long ","Gan ","Zang ","Bei ","Zhen ","Fu ","Yuan ","Gong ","Cai ","Ze ","Xian ","Bai ","Zhang ","Huo ","Zhi ","Fan ","Tan ","Pin ","Bian ","Gou ","Zhu ","Guan ","Er ","Jian ","Bi ","Shi ","Tie ","Gui ","Kuang ","Dai ","Mao ","Fei ","He ","Yi ","Zei ","Zhi ","Jia ","Hui ","Zi ","Ren ","Lu ","Zang ","Zi ","Gai ","Jin ","Qiu ","Zhen ","Lai ","She ","Fu ","Du ","Ji ","Shu ","Shang ","Si ","Bi ","Zhou ","Geng ","Pei ","Tan ","Lai ","Feng ","Zhui ","Fu ","Zhuan ","Sai ","Ze ","Yan ","Zan ","Yun ","Zeng ","Shan ","Ying ","Gan ","Chi ","Xi ","She ","Nan ","Xiong ","Xi ","Cheng ","He ","Cheng ","Zhe ","Xia ","Tang ","Zou ","Zou ","Li ","Jiu ","Fu ","Zhao ","Gan ","Qi ","Shan ","Qiong ","Qin ","Xian ","Ci ","Jue ","Qin ","Chi ","Ci ","Chen ","Chen ","Die ","Ju ","Chao ","Di ","Se ","Zhan ","Zhu ","Yue ","Qu ","Jie ","Chi ","Chu ","Gua ","Xue ","Ci ","Tiao ","Duo ","Lie ","Gan ","Suo ","Cu ","Xi ","Zhao ","Su ","Yin ","Ju ","Jian ","Que ","Tang ","Chuo ","Cui ","Lu ","Qu ","Dang ","Qiu ","Zi ","Ti ","Qu ","Chi ","Huang ","Qiao ","Qiao ","Yao ","Zao ","Ti ","[?] ","Zan ","Zan ","Zu ","Pa ","Bao ","Ku ","Ke ","Dun ","Jue ","Fu ","Chen ","Jian ","Fang ","Zhi ","Sa ","Yue ","Pa ","Qi ","Yue ","Qiang ","Tuo ","Tai ","Yi ","Nian ","Ling ","Mei ","Ba ","Die ","Ku ","Tuo ","Jia ","Ci ","Pao ","Qia ","Zhu ","Ju ","Die ","Zhi ","Fu ","Pan ","Ju ","Shan ","Bo ","Ni ","Ju ","Li ","Gen ","Yi ","Ji ","Dai ","Xian ","Jiao ","Duo ","Zhu ","Zhuan ","Kua ","Zhuai ","Gui ","Qiong ","Kui ","Xiang ","Chi ","Lu ","Beng ","Zhi ","Jia ","Tiao ","Cai ","Jian ","Ta ","Qiao ","Bi ","Xian ","Duo ","Ji ","Ju ","Ji ","Shu ","Tu "]});var H5=m((G6e,B5)=>{B5.exports=["Chu ","Jing ","Nie ","Xiao ","Bo ","Chi ","Qun ","Mou ","Shu ","Lang ","Yong ","Jiao ","Chou ","Qiao ","[?] ","Ta ","Jian ","Qi ","Wo ","Wei ","Zhuo ","Jie ","Ji ","Nie ","Ju ","Ju ","Lun ","Lu ","Leng ","Huai ","Ju ","Chi ","Wan ","Quan ","Ti ","Bo ","Zu ","Qie ","Ji ","Cu ","Zong ","Cai ","Zong ","Peng ","Zhi ","Zheng ","Dian ","Zhi ","Yu ","Duo ","Dun ","Chun ","Yong ","Zhong ","Di ","Zhe ","Chen ","Chuai ","Jian ","Gua ","Tang ","Ju ","Fu ","Zu ","Die ","Pian ","Rou ","Nuo ","Ti ","Cha ","Tui ","Jian ","Dao ","Cuo ","Xi ","Ta ","Qiang ","Zhan ","Dian ","Ti ","Ji ","Nie ","Man ","Liu ","Zhan ","Bi ","Chong ","Lu ","Liao ","Cu ","Tang ","Dai ","Suo ","Xi ","Kui ","Ji ","Zhi ","Qiang ","Di ","Man ","Zong ","Lian ","Beng ","Zao ","Nian ","Bie ","Tui ","Ju ","Deng ","Ceng ","Xian ","Fan ","Chu ","Zhong ","Dun ","Bo ","Cu ","Zu ","Jue ","Jue ","Lin ","Ta ","Qiao ","Qiao ","Pu ","Liao ","Dun ","Cuan ","Kuang ","Zao ","Ta ","Bi ","Bi ","Zhu ","Ju ","Chu ","Qiao ","Dun ","Chou ","Ji ","Wu ","Yue ","Nian ","Lin ","Lie ","Zhi ","Li ","Zhi ","Chan ","Chu ","Duan ","Wei ","Long ","Lin ","Xian ","Wei ","Zuan ","Lan ","Xie ","Rang ","Xie ","Nie ","Ta ","Qu ","Jie ","Cuan ","Zuan ","Xi ","Kui ","Jue ","Lin ","Shen ","Gong ","Dan ","Segare ","Qu ","Ti ","Duo ","Duo ","Gong ","Lang ","Nerau ","Luo ","Ai ","Ji ","Ju ","Tang ","Utsuke ","[?] ","Yan ","Shitsuke ","Kang ","Qu ","Lou ","Lao ","Tuo ","Zhi ","Yagate ","Ti ","Dao ","Yagate ","Yu ","Che ","Ya ","Gui ","Jun ","Wei ","Yue ","Xin ","Di ","Xuan ","Fan ","Ren ","Shan ","Qiang ","Shu ","Tun ","Chen ","Dai ","E ","Na ","Qi ","Mao ","Ruan ","Ren ","Fan ","Zhuan ","Hong ","Hu ","Qu ","Huang ","Di ","Ling ","Dai ","Ao ","Zhen ","Fan ","Kuang ","Ang ","Peng ","Bei ","Gu ","Ku ","Pao ","Zhu ","Rong ","E ","Ba ","Zhou ","Zhi ","Yao ","Ke ","Yi ","Qing ","Shi ","Ping "]});var Y5=m((Q6e,q5)=>{q5.exports=["Er ","Qiong ","Ju ","Jiao ","Guang ","Lu ","Kai ","Quan ","Zhou ","Zai ","Zhi ","She ","Liang ","Yu ","Shao ","You ","Huan ","Yun ","Zhe ","Wan ","Fu ","Qing ","Zhou ","Ni ","Ling ","Zhe ","Zhan ","Liang ","Zi ","Hui ","Wang ","Chuo ","Guo ","Kan ","Yi ","Peng ","Qian ","Gun ","Nian ","Pian ","Guan ","Bei ","Lun ","Pai ","Liang ","Ruan ","Rou ","Ji ","Yang ","Xian ","Chuan ","Cou ","Qun ","Ge ","You ","Hong ","Shu ","Fu ","Zi ","Fu ","Wen ","Ben ","Zhan ","Yu ","Wen ","Tao ","Gu ","Zhen ","Xia ","Yuan ","Lu ","Jiu ","Chao ","Zhuan ","Wei ","Hun ","Sori ","Che ","Jiao ","Zhan ","Pu ","Lao ","Fen ","Fan ","Lin ","Ge ","Se ","Kan ","Huan ","Yi ","Ji ","Dui ","Er ","Yu ","Xian ","Hong ","Lei ","Pei ","Li ","Li ","Lu ","Lin ","Che ","Ya ","Gui ","Xuan ","Di ","Ren ","Zhuan ","E ","Lun ","Ruan ","Hong ","Ku ","Ke ","Lu ","Zhou ","Zhi ","Yi ","Hu ","Zhen ","Li ","Yao ","Qing ","Shi ","Zai ","Zhi ","Jiao ","Zhou ","Quan ","Lu ","Jiao ","Zhe ","Fu ","Liang ","Nian ","Bei ","Hui ","Gun ","Wang ","Liang ","Chuo ","Zi ","Cou ","Fu ","Ji ","Wen ","Shu ","Pei ","Yuan ","Xia ","Zhan ","Lu ","Che ","Lin ","Xin ","Gu ","Ci ","Ci ","Pi ","Zui ","Bian ","La ","La ","Ci ","Xue ","Ban ","Bian ","Bian ","Bian ","[?] ","Bian ","Ban ","Ci ","Bian ","Bian ","Chen ","Ru ","Nong ","Nong ","Zhen ","Chuo ","Chuo ","Suberu ","Reng ","Bian ","Bian ","Sip ","Ip ","Liao ","Da ","Chan ","Gan ","Qian ","Yu ","Yu ","Qi ","Xun ","Yi ","Guo ","Mai ","Qi ","Za ","Wang ","Jia ","Zhun ","Ying ","Ti ","Yun ","Jin ","Hang ","Ya ","Fan ","Wu ","Da ","E ","Huan ","Zhe ","Totemo ","Jin ","Yuan ","Wei ","Lian ","Chi ","Che ","Ni ","Tiao ","Zhi ","Yi ","Jiong ","Jia ","Chen ","Dai ","Er ","Di ","Po ","Wang ","Die ","Ze ","Tao ","Shu ","Tuo ","Kep ","Jing ","Hui ","Tong ","You ","Mi ","Beng ","Ji ","Nai ","Yi ","Jie ","Zhui ","Lie ","Xun "]});var Z5=m((K6e,W5)=>{W5.exports=["Tui ","Song ","Gua ","Tao ","Pang ","Hou ","Ni ","Dun ","Jiong ","Xuan ","Xun ","Bu ","You ","Xiao ","Qiu ","Tou ","Zhu ","Qiu ","Di ","Di ","Tu ","Jing ","Ti ","Dou ","Yi ","Zhe ","Tong ","Guang ","Wu ","Shi ","Cheng ","Su ","Zao ","Qun ","Feng ","Lian ","Suo ","Hui ","Li ","Sako ","Lai ","Ben ","Cuo ","Jue ","Beng ","Huan ","Dai ","Lu ","You ","Zhou ","Jin ","Yu ","Chuo ","Kui ","Wei ","Ti ","Yi ","Da ","Yuan ","Luo ","Bi ","Nuo ","Yu ","Dang ","Sui ","Dun ","Sui ","Yan ","Chuan ","Chi ","Ti ","Yu ","Shi ","Zhen ","You ","Yun ","E ","Bian ","Guo ","E ","Xia ","Huang ","Qiu ","Dao ","Da ","Wei ","Appare ","Yi ","Gou ","Yao ","Chu ","Liu ","Xun ","Ta ","Di ","Chi ","Yuan ","Su ","Ta ","Qian ","[?] ","Yao ","Guan ","Zhang ","Ao ","Shi ","Ce ","Chi ","Su ","Zao ","Zhe ","Dun ","Di ","Lou ","Chi ","Cuo ","Lin ","Zun ","Rao ","Qian ","Xuan ","Yu ","Yi ","Wu ","Liao ","Ju ","Shi ","Bi ","Yao ","Mai ","Xie ","Sui ","Huan ","Zhan ","Teng ","Er ","Miao ","Bian ","Bian ","La ","Li ","Yuan ","Yao ","Luo ","Li ","Yi ","Ting ","Deng ","Qi ","Yong ","Shan ","Han ","Yu ","Mang ","Ru ","Qiong ","[?] ","Kuang ","Fu ","Kang ","Bin ","Fang ","Xing ","Na ","Xin ","Shen ","Bang ","Yuan ","Cun ","Huo ","Xie ","Bang ","Wu ","Ju ","You ","Han ","Tai ","Qiu ","Bi ","Pei ","Bing ","Shao ","Bei ","Wa ","Di ","Zou ","Ye ","Lin ","Kuang ","Gui ","Zhu ","Shi ","Ku ","Yu ","Gai ","Ge ","Xi ","Zhi ","Ji ","Xun ","Hou ","Xing ","Jiao ","Xi ","Gui ","Nuo ","Lang ","Jia ","Kuai ","Zheng ","Otoko ","Yun ","Yan ","Cheng ","Dou ","Chi ","Lu ","Fu ","Wu ","Fu ","Gao ","Hao ","Lang ","Jia ","Geng ","Jun ","Ying ","Bo ","Xi ","Bei ","Li ","Yun ","Bu ","Xiao ","Qi ","Pi ","Qing ","Guo ","Zhou ","Tan ","Zou ","Ping ","Lai ","Ni ","Chen ","You ","Bu ","Xiang ","Dan ","Ju ","Yong ","Qiao ","Yi ","Du ","Yan ","Mei "]});var $5=m((z6e,J5)=>{J5.exports=["Ruo ","Bei ","E ","Yu ","Juan ","Yu ","Yun ","Hou ","Kui ","Xiang ","Xiang ","Sou ","Tang ","Ming ","Xi ","Ru ","Chu ","Zi ","Zou ","Ju ","Wu ","Xiang ","Yun ","Hao ","Yong ","Bi ","Mo ","Chao ","Fu ","Liao ","Yin ","Zhuan ","Hu ","Qiao ","Yan ","Zhang ","Fan ","Qiao ","Xu ","Deng ","Bi ","Xin ","Bi ","Ceng ","Wei ","Zheng ","Mao ","Shan ","Lin ","Po ","Dan ","Meng ","Ye ","Cao ","Kuai ","Feng ","Meng ","Zou ","Kuang ","Lian ","Zan ","Chan ","You ","Qi ","Yan ","Chan ","Zan ","Ling ","Huan ","Xi ","Feng ","Zan ","Li ","You ","Ding ","Qiu ","Zhuo ","Pei ","Zhou ","Yi ","Hang ","Yu ","Jiu ","Yan ","Zui ","Mao ","Dan ","Xu ","Tou ","Zhen ","Fen ","Sakenomoto ","[?] ","Yun ","Tai ","Tian ","Qia ","Tuo ","Zuo ","Han ","Gu ","Su ","Po ","Chou ","Zai ","Ming ","Luo ","Chuo ","Chou ","You ","Tong ","Zhi ","Xian ","Jiang ","Cheng ","Yin ","Tu ","Xiao ","Mei ","Ku ","Suan ","Lei ","Pu ","Zui ","Hai ","Yan ","Xi ","Niang ","Wei ","Lu ","Lan ","Yan ","Tao ","Pei ","Zhan ","Chun ","Tan ","Zui ","Chuo ","Cu ","Kun ","Ti ","Mian ","Du ","Hu ","Xu ","Xing ","Tan ","Jiu ","Chun ","Yun ","Po ","Ke ","Sou ","Mi ","Quan ","Chou ","Cuo ","Yun ","Yong ","Ang ","Zha ","Hai ","Tang ","Jiang ","Piao ","Shan ","Yu ","Li ","Zao ","Lao ","Yi ","Jiang ","Pu ","Jiao ","Xi ","Tan ","Po ","Nong ","Yi ","Li ","Ju ","Jiao ","Yi ","Niang ","Ru ","Xun ","Chou ","Yan ","Ling ","Mi ","Mi ","Niang ","Xin ","Jiao ","Xi ","Mi ","Yan ","Bian ","Cai ","Shi ","You ","Shi ","Shi ","Li ","Zhong ","Ye ","Liang ","Li ","Jin ","Jin ","Qiu ","Yi ","Diao ","Dao ","Zhao ","Ding ","Po ","Qiu ","He ","Fu ","Zhen ","Zhi ","Ba ","Luan ","Fu ","Nai ","Diao ","Shan ","Qiao ","Kou ","Chuan ","Zi ","Fan ","Yu ","Hua ","Han ","Gong ","Qi ","Mang ","Ri ","Di ","Si ","Xi ","Yi ","Chai ","Shi ","Tu ","Xi ","Nu ","Qian ","Ishiyumi ","Jian ","Pi ","Ye ","Yin "]});var U5=m((V6e,X5)=>{X5.exports=["Ba ","Fang ","Chen ","Xing ","Tou ","Yue ","Yan ","Fu ","Pi ","Na ","Xin ","E ","Jue ","Dun ","Gou ","Yin ","Qian ","Ban ","Ji ","Ren ","Chao ","Niu ","Fen ","Yun ","Ji ","Qin ","Pi ","Guo ","Hong ","Yin ","Jun ","Shi ","Yi ","Zhong ","Nie ","Gai ","Ri ","Huo ","Tai ","Kang ","Habaki ","Irori ","Ngaak ","[?] ","Duo ","Zi ","Ni ","Tu ","Shi ","Min ","Gu ","E ","Ling ","Bing ","Yi ","Gu ","Ba ","Pi ","Yu ","Si ","Zuo ","Bu ","You ","Dian ","Jia ","Zhen ","Shi ","Shi ","Tie ","Ju ","Zhan ","Shi ","She ","Xuan ","Zhao ","Bao ","He ","Bi ","Sheng ","Chu ","Shi ","Bo ","Zhu ","Chi ","Za ","Po ","Tong ","Qian ","Fu ","Zhai ","Liu ","Qian ","Fu ","Li ","Yue ","Pi ","Yang ","Ban ","Bo ","Jie ","Gou ","Shu ","Zheng ","Mu ","Ni ","Nie ","Di ","Jia ","Mu ","Dan ","Shen ","Yi ","Si ","Kuang ","Ka ","Bei ","Jian ","Tong ","Xing ","Hong ","Jiao ","Chi ","Er ","Ge ","Bing ","Shi ","Mou ","Jia ","Yin ","Jun ","Zhou ","Chong ","Shang ","Tong ","Mo ","Lei ","Ji ","Yu ","Xu ","Ren ","Zun ","Zhi ","Qiong ","Shan ","Chi ","Xian ","Xing ","Quan ","Pi ","Tie ","Zhu ","Hou ","Ming ","Kua ","Yao ","Xian ","Xian ","Xiu ","Jun ","Cha ","Lao ","Ji ","Pi ","Ru ","Mi ","Yi ","Yin ","Guang ","An ","Diou ","You ","Se ","Kao ","Qian ","Luan ","Kasugai ","Ai ","Diao ","Han ","Rui ","Shi ","Keng ","Qiu ","Xiao ","Zhe ","Xiu ","Zang ","Ti ","Cuo ","Gua ","Gong ","Zhong ","Dou ","Lu ","Mei ","Lang ","Wan ","Xin ","Yun ","Bei ","Wu ","Su ","Yu ","Chan ","Ting ","Bo ","Han ","Jia ","Hong ","Cuan ","Feng ","Chan ","Wan ","Zhi ","Si ","Xuan ","Wu ","Wu ","Tiao ","Gong ","Zhuo ","Lue ","Xing ","Qian ","Shen ","Han ","Lue ","Xie ","Chu ","Zheng ","Ju ","Xian ","Tie ","Mang ","Pu ","Li ","Pan ","Rui ","Cheng ","Gao ","Li ","Te ","Pyeng ","Zhu ","[?] ","Tu ","Liu ","Zui ","Ju ","Chang ","Yuan ","Jian ","Gang ","Diao ","Tao ","Chang "]});var Q5=m((e4e,G5)=>{G5.exports=["Lun ","Kua ","Ling ","Bei ","Lu ","Li ","Qiang ","Pou ","Juan ","Min ","Zui ","Peng ","An ","Pi ","Xian ","Ya ","Zhui ","Lei ","A ","Kong ","Ta ","Kun ","Du ","Wei ","Chui ","Zi ","Zheng ","Ben ","Nie ","Cong ","Qun ","Tan ","Ding ","Qi ","Qian ","Zhuo ","Qi ","Yu ","Jin ","Guan ","Mao ","Chang ","Tian ","Xi ","Lian ","Tao ","Gu ","Cuo ","Shu ","Zhen ","Lu ","Meng ","Lu ","Hua ","Biao ","Ga ","Lai ","Ken ","Kazari ","Bu ","Nai ","Wan ","Zan ","[?] ","De ","Xian ","[?] ","Huo ","Liang ","[?] ","Men ","Kai ","Ying ","Di ","Lian ","Guo ","Xian ","Du ","Tu ","Wei ","Cong ","Fu ","Rou ","Ji ","E ","Rou ","Chen ","Ti ","Zha ","Hong ","Yang ","Duan ","Xia ","Yu ","Keng ","Xing ","Huang ","Wei ","Fu ","Zhao ","Cha ","Qie ","She ","Hong ","Kui ","Tian ","Mou ","Qiao ","Qiao ","Hou ","Tou ","Cong ","Huan ","Ye ","Min ","Jian ","Duan ","Jian ","Song ","Kui ","Hu ","Xuan ","Duo ","Jie ","Zhen ","Bian ","Zhong ","Zi ","Xiu ","Ye ","Mei ","Pai ","Ai ","Jie ","[?] ","Mei ","Chuo ","Ta ","Bang ","Xia ","Lian ","Suo ","Xi ","Liu ","Zu ","Ye ","Nou ","Weng ","Rong ","Tang ","Suo ","Qiang ","Ge ","Shuo ","Chui ","Bo ","Pan ","Sa ","Bi ","Sang ","Gang ","Zi ","Wu ","Ying ","Huang ","Tiao ","Liu ","Kai ","Sun ","Sha ","Sou ","Wan ","Hao ","Zhen ","Zhen ","Luo ","Yi ","Yuan ","Tang ","Nie ","Xi ","Jia ","Ge ","Ma ","Juan ","Kasugai ","Habaki ","Suo ","[?] ","[?] ","[?] ","Na ","Lu ","Suo ","Ou ","Zu ","Tuan ","Xiu ","Guan ","Xuan ","Lian ","Shou ","Ao ","Man ","Mo ","Luo ","Bi ","Wei ","Liu ","Di ","Qiao ","Cong ","Yi ","Lu ","Ao ","Keng ","Qiang ","Cui ","Qi ","Chang ","Tang ","Man ","Yong ","Chan ","Feng ","Jing ","Biao ","Shu ","Lou ","Xiu ","Cong ","Long ","Zan ","Jian ","Cao ","Li ","Xia ","Xi ","Kang ","[?] ","Beng ","[?] ","[?] ","Zheng ","Lu ","Hua ","Ji ","Pu ","Hui ","Qiang ","Po ","Lin ","Suo ","Xiu ","San ","Cheng "]});var z5=m((t4e,K5)=>{K5.exports=["Kui ","Si ","Liu ","Nao ","Heng ","Pie ","Sui ","Fan ","Qiao ","Quan ","Yang ","Tang ","Xiang ","Jue ","Jiao ","Zun ","Liao ","Jie ","Lao ","Dui ","Tan ","Zan ","Ji ","Jian ","Zhong ","Deng ","Ya ","Ying ","Dui ","Jue ","Nou ","Ti ","Pu ","Tie ","[?] ","[?] ","Ding ","Shan ","Kai ","Jian ","Fei ","Sui ","Lu ","Juan ","Hui ","Yu ","Lian ","Zhuo ","Qiao ","Qian ","Zhuo ","Lei ","Bi ","Tie ","Huan ","Ye ","Duo ","Guo ","Dang ","Ju ","Fen ","Da ","Bei ","Yi ","Ai ","Zong ","Xun ","Diao ","Zhu ","Heng ","Zhui ","Ji ","Nie ","Ta ","Huo ","Qing ","Bin ","Ying ","Kui ","Ning ","Xu ","Jian ","Jian ","Yari ","Cha ","Zhi ","Mie ","Li ","Lei ","Ji ","Zuan ","Kuang ","Shang ","Peng ","La ","Du ","Shuo ","Chuo ","Lu ","Biao ","Bao ","Lu ","[?] ","[?] ","Long ","E ","Lu ","Xin ","Jian ","Lan ","Bo ","Jian ","Yao ","Chan ","Xiang ","Jian ","Xi ","Guan ","Cang ","Nie ","Lei ","Cuan ","Qu ","Pan ","Luo ","Zuan ","Luan ","Zao ","Nie ","Jue ","Tang ","Shu ","Lan ","Jin ","Qiu ","Yi ","Zhen ","Ding ","Zhao ","Po ","Diao ","Tu ","Qian ","Chuan ","Shan ","Ji ","Fan ","Diao ","Men ","Nu ","Xi ","Chai ","Xing ","Gai ","Bu ","Tai ","Ju ","Dun ","Chao ","Zhong ","Na ","Bei ","Gang ","Ban ","Qian ","Yao ","Qin ","Jun ","Wu ","Gou ","Kang ","Fang ","Huo ","Tou ","Niu ","Ba ","Yu ","Qian ","Zheng ","Qian ","Gu ","Bo ","E ","Po ","Bu ","Ba ","Yue ","Zuan ","Mu ","Dan ","Jia ","Dian ","You ","Tie ","Bo ","Ling ","Shuo ","Qian ","Liu ","Bao ","Shi ","Xuan ","She ","Bi ","Ni ","Pi ","Duo ","Xing ","Kao ","Lao ","Er ","Mang ","Ya ","You ","Cheng ","Jia ","Ye ","Nao ","Zhi ","Dang ","Tong ","Lu ","Diao ","Yin ","Kai ","Zha ","Zhu ","Xian ","Ting ","Diu ","Xian ","Hua ","Quan ","Sha ","Jia ","Yao ","Ge ","Ming ","Zheng ","Se ","Jiao ","Yi ","Chan ","Chong ","Tang ","An ","Yin ","Ru ","Zhu ","Lao ","Pu ","Wu ","Lai ","Te ","Lian ","Keng "]});var e7=m((i4e,V5)=>{V5.exports=["Xiao ","Suo ","Li ","Zheng ","Chu ","Guo ","Gao ","Tie ","Xiu ","Cuo ","Lue ","Feng ","Xin ","Liu ","Kai ","Jian ","Rui ","Ti ","Lang ","Qian ","Ju ","A ","Qiang ","Duo ","Tian ","Cuo ","Mao ","Ben ","Qi ","De ","Kua ","Kun ","Chang ","Xi ","Gu ","Luo ","Chui ","Zhui ","Jin ","Zhi ","Xian ","Juan ","Huo ","Pou ","Tan ","Ding ","Jian ","Ju ","Meng ","Zi ","Qie ","Ying ","Kai ","Qiang ","Song ","E ","Cha ","Qiao ","Zhong ","Duan ","Sou ","Huang ","Huan ","Ai ","Du ","Mei ","Lou ","Zi ","Fei ","Mei ","Mo ","Zhen ","Bo ","Ge ","Nie ","Tang ","Juan ","Nie ","Na ","Liu ","Hao ","Bang ","Yi ","Jia ","Bin ","Rong ","Biao ","Tang ","Man ","Luo ","Beng ","Yong ","Jing ","Di ","Zu ","Xuan ","Liu ","Tan ","Jue ","Liao ","Pu ","Lu ","Dui ","Lan ","Pu ","Cuan ","Qiang ","Deng ","Huo ","Lei ","Huan ","Zhuo ","Lian ","Yi ","Cha ","Biao ","La ","Chan ","Xiang ","Chang ","Chang ","Jiu ","Ao ","Die ","Qu ","Liao ","Mi ","Chang ","Men ","Ma ","Shuan ","Shan ","Huo ","Men ","Yan ","Bi ","Han ","Bi ","San ","Kai ","Kang ","Beng ","Hong ","Run ","San ","Xian ","Xian ","Jian ","Min ","Xia ","Yuru ","Dou ","Zha ","Nao ","Jian ","Peng ","Xia ","Ling ","Bian ","Bi ","Run ","He ","Guan ","Ge ","Ge ","Fa ","Chu ","Hong ","Gui ","Min ","Se ","Kun ","Lang ","Lu ","Ting ","Sha ","Ju ","Yue ","Yue ","Chan ","Qu ","Lin ","Chang ","Shai ","Kun ","Yan ","Min ","Yan ","E ","Hun ","Yu ","Wen ","Xiang ","Bao ","Xiang ","Qu ","Yao ","Wen ","Ban ","An ","Wei ","Yin ","Kuo ","Que ","Lan ","Du ","[?] ","Phwung ","Tian ","Nie ","Ta ","Kai ","He ","Que ","Chuang ","Guan ","Dou ","Qi ","Kui ","Tang ","Guan ","Piao ","Kan ","Xi ","Hui ","Chan ","Pi ","Dang ","Huan ","Ta ","Wen ","[?] ","Men ","Shuan ","Shan ","Yan ","Han ","Bi ","Wen ","Chuang ","Run ","Wei ","Xian ","Hong ","Jian ","Min ","Kang ","Men ","Zha ","Nao ","Gui ","Wen ","Ta ","Min ","Lu ","Kai "]});var i7=m((n4e,t7)=>{t7.exports=["Fa ","Ge ","He ","Kun ","Jiu ","Yue ","Lang ","Du ","Yu ","Yan ","Chang ","Xi ","Wen ","Hun ","Yan ","E ","Chan ","Lan ","Qu ","Hui ","Kuo ","Que ","Ge ","Tian ","Ta ","Que ","Kan ","Huan ","Fu ","Fu ","Le ","Dui ","Xin ","Qian ","Wu ","Yi ","Tuo ","Yin ","Yang ","Dou ","E ","Sheng ","Ban ","Pei ","Keng ","Yun ","Ruan ","Zhi ","Pi ","Jing ","Fang ","Yang ","Yin ","Zhen ","Jie ","Cheng ","E ","Qu ","Di ","Zu ","Zuo ","Dian ","Ling ","A ","Tuo ","Tuo ","Po ","Bing ","Fu ","Ji ","Lu ","Long ","Chen ","Xing ","Duo ","Lou ","Mo ","Jiang ","Shu ","Duo ","Xian ","Er ","Gui ","Yu ","Gai ","Shan ","Xun ","Qiao ","Xing ","Chun ","Fu ","Bi ","Xia ","Shan ","Sheng ","Zhi ","Pu ","Dou ","Yuan ","Zhen ","Chu ","Xian ","Tou ","Nie ","Yun ","Xian ","Pei ","Pei ","Zou ","Yi ","Dui ","Lun ","Yin ","Ju ","Chui ","Chen ","Pi ","Ling ","Tao ","Xian ","Lu ","Sheng ","Xian ","Yin ","Zhu ","Yang ","Reng ","Shan ","Chong ","Yan ","Yin ","Yu ","Ti ","Yu ","Long ","Wei ","Wei ","Nie ","Dui ","Sui ","An ","Huang ","Jie ","Sui ","Yin ","Gai ","Yan ","Hui ","Ge ","Yun ","Wu ","Wei ","Ai ","Xi ","Tang ","Ji ","Zhang ","Dao ","Ao ","Xi ","Yin ","[?] ","Rao ","Lin ","Tui ","Deng ","Pi ","Sui ","Sui ","Yu ","Xian ","Fen ","Ni ","Er ","Ji ","Dao ","Xi ","Yin ","E ","Hui ","Long ","Xi ","Li ","Li ","Li ","Zhui ","He ","Zhi ","Zhun ","Jun ","Nan ","Yi ","Que ","Yan ","Qian ","Ya ","Xiong ","Ya ","Ji ","Gu ","Huan ","Zhi ","Gou ","Jun ","Ci ","Yong ","Ju ","Chu ","Hu ","Za ","Luo ","Yu ","Chou ","Diao ","Sui ","Han ","Huo ","Shuang ","Guan ","Chu ","Za ","Yong ","Ji ","Xi ","Chou ","Liu ","Li ","Nan ","Xue ","Za ","Ji ","Ji ","Yu ","Yu ","Xue ","Na ","Fou ","Se ","Mu ","Wen ","Fen ","Pang ","Yun ","Li ","Li ","Ang ","Ling ","Lei ","An ","Bao ","Meng ","Dian ","Dang ","Xing ","Wu ","Zhao "]});var r7=m((r4e,n7)=>{n7.exports=["Xu ","Ji ","Mu ","Chen ","Xiao ","Zha ","Ting ","Zhen ","Pei ","Mei ","Ling ","Qi ","Chou ","Huo ","Sha ","Fei ","Weng ","Zhan ","Yin ","Ni ","Chou ","Tun ","Lin ","[?] ","Dong ","Ying ","Wu ","Ling ","Shuang ","Ling ","Xia ","Hong ","Yin ","Mo ","Mai ","Yun ","Liu ","Meng ","Bin ","Wu ","Wei ","Huo ","Yin ","Xi ","Yi ","Ai ","Dan ","Deng ","Xian ","Yu ","Lu ","Long ","Dai ","Ji ","Pang ","Yang ","Ba ","Pi ","Wei ","[?] ","Xi ","Ji ","Mai ","Meng ","Meng ","Lei ","Li ","Huo ","Ai ","Fei ","Dai ","Long ","Ling ","Ai ","Feng ","Li ","Bao ","[?] ","He ","He ","Bing ","Qing ","Qing ","Jing ","Tian ","Zhen ","Jing ","Cheng ","Qing ","Jing ","Jing ","Dian ","Jing ","Tian ","Fei ","Fei ","Kao ","Mi ","Mian ","Mian ","Pao ","Ye ","Tian ","Hui ","Ye ","Ge ","Ding ","Cha ","Jian ","Ren ","Di ","Du ","Wu ","Ren ","Qin ","Jin ","Xue ","Niu ","Ba ","Yin ","Sa ","Na ","Mo ","Zu ","Da ","Ban ","Yi ","Yao ","Tao ","Tuo ","Jia ","Hong ","Pao ","Yang ","Tomo ","Yin ","Jia ","Tao ","Ji ","Xie ","An ","An ","Hen ","Gong ","Kohaze ","Da ","Qiao ","Ting ","Wan ","Ying ","Sui ","Tiao ","Qiao ","Xuan ","Kong ","Beng ","Ta ","Zhang ","Bing ","Kuo ","Ju ","La ","Xie ","Rou ","Bang ","Yi ","Qiu ","Qiu ","He ","Xiao ","Mu ","Ju ","Jian ","Bian ","Di ","Jian ","On ","Tao ","Gou ","Ta ","Bei ","Xie ","Pan ","Ge ","Bi ","Kuo ","Tang ","Lou ","Gui ","Qiao ","Xue ","Ji ","Jian ","Jiang ","Chan ","Da ","Huo ","Xian ","Qian ","Du ","Wa ","Jian ","Lan ","Wei ","Ren ","Fu ","Mei ","Juan ","Ge ","Wei ","Qiao ","Han ","Chang ","[?] ","Rou ","Xun ","She ","Wei ","Ge ","Bei ","Tao ","Gou ","Yun ","[?] ","Bi ","Wei ","Hui ","Du ","Wa ","Du ","Wei ","Ren ","Fu ","Han ","Wei ","Yun ","Tao ","Jiu ","Jiu ","Xian ","Xie ","Xian ","Ji ","Yin ","Za ","Yun ","Shao ","Le ","Peng ","Heng ","Ying ","Yun ","Peng ","Yin ","Yin ","Xiang "]});var s7=m((o4e,o7)=>{o7.exports=["Hu ","Ye ","Ding ","Qing ","Pan ","Xiang ","Shun ","Han ","Xu ","Yi ","Xu ","Gu ","Song ","Kui ","Qi ","Hang ","Yu ","Wan ","Ban ","Dun ","Di ","Dan ","Pan ","Po ","Ling ","Ce ","Jing ","Lei ","He ","Qiao ","E ","E ","Wei ","Jie ","Gua ","Shen ","Yi ","Shen ","Hai ","Dui ","Pian ","Ping ","Lei ","Fu ","Jia ","Tou ","Hui ","Kui ","Jia ","Le ","Tian ","Cheng ","Ying ","Jun ","Hu ","Han ","Jing ","Tui ","Tui ","Pin ","Lai ","Tui ","Zi ","Zi ","Chui ","Ding ","Lai ","Yan ","Han ","Jian ","Ke ","Cui ","Jiong ","Qin ","Yi ","Sai ","Ti ","E ","E ","Yan ","Hun ","Kan ","Yong ","Zhuan ","Yan ","Xian ","Xin ","Yi ","Yuan ","Sang ","Dian ","Dian ","Jiang ","Ku ","Lei ","Liao ","Piao ","Yi ","Man ","Qi ","Rao ","Hao ","Qiao ","Gu ","Xun ","Qian ","Hui ","Zhan ","Ru ","Hong ","Bin ","Xian ","Pin ","Lu ","Lan ","Nie ","Quan ","Ye ","Ding ","Qing ","Han ","Xiang ","Shun ","Xu ","Xu ","Wan ","Gu ","Dun ","Qi ","Ban ","Song ","Hang ","Yu ","Lu ","Ling ","Po ","Jing ","Jie ","Jia ","Tian ","Han ","Ying ","Jiong ","Hai ","Yi ","Pin ","Hui ","Tui ","Han ","Ying ","Ying ","Ke ","Ti ","Yong ","E ","Zhuan ","Yan ","E ","Nie ","Man ","Dian ","Sang ","Hao ","Lei ","Zhan ","Ru ","Pin ","Quan ","Feng ","Biao ","Oroshi ","Fu ","Xia ","Zhan ","Biao ","Sa ","Ba ","Tai ","Lie ","Gua ","Xuan ","Shao ","Ju ","Bi ","Si ","Wei ","Yang ","Yao ","Sou ","Kai ","Sao ","Fan ","Liu ","Xi ","Liao ","Piao ","Piao ","Liu ","Biao ","Biao ","Biao ","Liao ","[?] ","Se ","Feng ","Biao ","Feng ","Yang ","Zhan ","Biao ","Sa ","Ju ","Si ","Sou ","Yao ","Liu ","Piao ","Biao ","Biao ","Fei ","Fan ","Fei ","Fei ","Shi ","Shi ","Can ","Ji ","Ding ","Si ","Tuo ","Zhan ","Sun ","Xiang ","Tun ","Ren ","Yu ","Juan ","Chi ","Yin ","Fan ","Fan ","Sun ","Yin ","Zhu ","Yi ","Zhai ","Bi ","Jie ","Tao ","Liu ","Ci ","Tie ","Si ","Bao ","Shi ","Duo "]});var l7=m((s4e,a7)=>{a7.exports=["Hai ","Ren ","Tian ","Jiao ","Jia ","Bing ","Yao ","Tong ","Ci ","Xiang ","Yang ","Yang ","Er ","Yan ","Le ","Yi ","Can ","Bo ","Nei ","E ","Bu ","Jun ","Dou ","Su ","Yu ","Shi ","Yao ","Hun ","Guo ","Shi ","Jian ","Zhui ","Bing ","Xian ","Bu ","Ye ","Tan ","Fei ","Zhang ","Wei ","Guan ","E ","Nuan ","Hun ","Hu ","Huang ","Tie ","Hui ","Jian ","Hou ","He ","Xing ","Fen ","Wei ","Gu ","Cha ","Song ","Tang ","Bo ","Gao ","Xi ","Kui ","Liu ","Sou ","Tao ","Ye ","Yun ","Mo ","Tang ","Man ","Bi ","Yu ","Xiu ","Jin ","San ","Kui ","Zhuan ","Shan ","Chi ","Dan ","Yi ","Ji ","Rao ","Cheng ","Yong ","Tao ","Hui ","Xiang ","Zhan ","Fen ","Hai ","Meng ","Yan ","Mo ","Chan ","Xiang ","Luo ","Zuan ","Nang ","Shi ","Ding ","Ji ","Tuo ","Xing ","Tun ","Xi ","Ren ","Yu ","Chi ","Fan ","Yin ","Jian ","Shi ","Bao ","Si ","Duo ","Yi ","Er ","Rao ","Xiang ","Jia ","Le ","Jiao ","Yi ","Bing ","Bo ","Dou ","E ","Yu ","Nei ","Jun ","Guo ","Hun ","Xian ","Guan ","Cha ","Kui ","Gu ","Sou ","Chan ","Ye ","Mo ","Bo ","Liu ","Xiu ","Jin ","Man ","San ","Zhuan ","Nang ","Shou ","Kui ","Guo ","Xiang ","Fen ","Ba ","Ni ","Bi ","Bo ","Tu ","Han ","Fei ","Jian ","An ","Ai ","Fu ","Xian ","Wen ","Xin ","Fen ","Bin ","Xing ","Ma ","Yu ","Feng ","Han ","Di ","Tuo ","Tuo ","Chi ","Xun ","Zhu ","Zhi ","Pei ","Xin ","Ri ","Sa ","Yin ","Wen ","Zhi ","Dan ","Lu ","You ","Bo ","Bao ","Kuai ","Tuo ","Yi ","Qu ","[?] ","Qu ","Jiong ","Bo ","Zhao ","Yuan ","Peng ","Zhou ","Ju ","Zhu ","Nu ","Ju ","Pi ","Zang ","Jia ","Ling ","Zhen ","Tai ","Fu ","Yang ","Shi ","Bi ","Tuo ","Tuo ","Si ","Liu ","Ma ","Pian ","Tao ","Zhi ","Rong ","Teng ","Dong ","Xun ","Quan ","Shen ","Jiong ","Er ","Hai ","Bo ","Zhu ","Yin ","Luo ","Shuu ","Dan ","Xie ","Liu ","Ju ","Song ","Qin ","Mang ","Liang ","Han ","Tu ","Xuan ","Tui ","Jun "]});var c7=m((a4e,u7)=>{u7.exports=["E ","Cheng ","Xin ","Ai ","Lu ","Zhui ","Zhou ","She ","Pian ","Kun ","Tao ","Lai ","Zong ","Ke ","Qi ","Qi ","Yan ","Fei ","Sao ","Yan ","Jie ","Yao ","Wu ","Pian ","Cong ","Pian ","Qian ","Fei ","Huang ","Jian ","Huo ","Yu ","Ti ","Quan ","Xia ","Zong ","Kui ","Rou ","Si ","Gua ","Tuo ","Kui ","Sou ","Qian ","Cheng ","Zhi ","Liu ","Pang ","Teng ","Xi ","Cao ","Du ","Yan ","Yuan ","Zou ","Sao ","Shan ","Li ","Zhi ","Shuang ","Lu ","Xi ","Luo ","Zhang ","Mo ","Ao ","Can ","Piao ","Cong ","Qu ","Bi ","Zhi ","Yu ","Xu ","Hua ","Bo ","Su ","Xiao ","Lin ","Chan ","Dun ","Liu ","Tuo ","Zeng ","Tan ","Jiao ","Tie ","Yan ","Luo ","Zhan ","Jing ","Yi ","Ye ","Tuo ","Bin ","Zou ","Yan ","Peng ","Lu ","Teng ","Xiang ","Ji ","Shuang ","Ju ","Xi ","Huan ","Li ","Biao ","Ma ","Yu ","Tuo ","Xun ","Chi ","Qu ","Ri ","Bo ","Lu ","Zang ","Shi ","Si ","Fu ","Ju ","Zou ","Zhu ","Tuo ","Nu ","Jia ","Yi ","Tai ","Xiao ","Ma ","Yin ","Jiao ","Hua ","Luo ","Hai ","Pian ","Biao ","Li ","Cheng ","Yan ","Xin ","Qin ","Jun ","Qi ","Qi ","Ke ","Zhui ","Zong ","Su ","Can ","Pian ","Zhi ","Kui ","Sao ","Wu ","Ao ","Liu ","Qian ","Shan ","Piao ","Luo ","Cong ","Chan ","Zou ","Ji ","Shuang ","Xiang ","Gu ","Wei ","Wei ","Wei ","Yu ","Gan ","Yi ","Ang ","Tou ","Xie ","Bao ","Bi ","Chi ","Ti ","Di ","Ku ","Hai ","Qiao ","Gou ","Kua ","Ge ","Tui ","Geng ","Pian ","Bi ","Ke ","Ka ","Yu ","Sui ","Lou ","Bo ","Xiao ","Pang ","Bo ","Ci ","Kuan ","Bin ","Mo ","Liao ","Lou ","Nao ","Du ","Zang ","Sui ","Ti ","Bin ","Kuan ","Lu ","Gao ","Gao ","Qiao ","Kao ","Qiao ","Lao ","Zao ","Biao ","Kun ","Kun ","Ti ","Fang ","Xiu ","Ran ","Mao ","Dan ","Kun ","Bin ","Fa ","Tiao ","Peng ","Zi ","Fa ","Ran ","Ti ","Pao ","Pi ","Mao ","Fu ","Er ","Rong ","Qu ","Gong ","Xiu ","Gua ","Ji ","Peng ","Zhua ","Shao ","Sha "]});var d7=m((l4e,h7)=>{h7.exports=["Ti ","Li ","Bin ","Zong ","Ti ","Peng ","Song ","Zheng ","Quan ","Zong ","Shun ","Jian ","Duo ","Hu ","La ","Jiu ","Qi ","Lian ","Zhen ","Bin ","Peng ","Mo ","San ","Man ","Man ","Seng ","Xu ","Lie ","Qian ","Qian ","Nong ","Huan ","Kuai ","Ning ","Bin ","Lie ","Rang ","Dou ","Dou ","Nao ","Hong ","Xi ","Dou ","Han ","Dou ","Dou ","Jiu ","Chang ","Yu ","Yu ","Li ","Juan ","Fu ","Qian ","Gui ","Zong ","Liu ","Gui ","Shang ","Yu ","Gui ","Mei ","Ji ","Qi ","Jie ","Kui ","Hun ","Ba ","Po ","Mei ","Xu ","Yan ","Xiao ","Liang ","Yu ","Tui ","Qi ","Wang ","Liang ","Wei ","Jian ","Chi ","Piao ","Bi ","Mo ","Ji ","Xu ","Chou ","Yan ","Zhan ","Yu ","Dao ","Ren ","Ji ","Eri ","Gong ","Tuo ","Diao ","Ji ","Xu ","E ","E ","Sha ","Hang ","Tun ","Mo ","Jie ","Shen ","Fan ","Yuan ","Bi ","Lu ","Wen ","Hu ","Lu ","Za ","Fang ","Fen ","Na ","You ","Namazu ","Todo ","He ","Xia ","Qu ","Han ","Pi ","Ling ","Tuo ","Bo ","Qiu ","Ping ","Fu ","Bi ","Ji ","Wei ","Ju ","Diao ","Bo ","You ","Gun ","Pi ","Nian ","Xing ","Tai ","Bao ","Fu ","Zha ","Ju ","Gu ","Kajika ","Tong ","[?] ","Ta ","Jie ","Shu ","Hou ","Xiang ","Er ","An ","Wei ","Tiao ","Zhu ","Yin ","Lie ","Luo ","Tong ","Yi ","Qi ","Bing ","Wei ","Jiao ","Bu ","Gui ","Xian ","Ge ","Hui ","Bora ","Mate ","Kao ","Gori ","Duo ","Jun ","Ti ","Man ","Xiao ","Za ","Sha ","Qin ","Yu ","Nei ","Zhe ","Gun ","Geng ","Su ","Wu ","Qiu ","Ting ","Fu ","Wan ","You ","Li ","Sha ","Sha ","Gao ","Meng ","Ugui ","Asari ","Subashiri ","Kazunoko ","Yong ","Ni ","Zi ","Qi ","Qing ","Xiang ","Nei ","Chun ","Ji ","Diao ","Qie ","Gu ","Zhou ","Dong ","Lai ","Fei ","Ni ","Yi ","Kun ","Lu ","Jiu ","Chang ","Jing ","Lun ","Ling ","Zou ","Li ","Meng ","Zong ","Zhi ","Nian ","Shachi ","Dojou ","Sukesou ","Shi ","Shen ","Hun ","Shi ","Hou ","Xing ","Zhu ","La ","Zong ","Ji ","Bian ","Bian "]});var f7=m((u4e,g7)=>{g7.exports=["Huan ","Quan ","Ze ","Wei ","Wei ","Yu ","Qun ","Rou ","Die ","Huang ","Lian ","Yan ","Qiu ","Qiu ","Jian ","Bi ","E ","Yang ","Fu ","Sai ","Jian ","Xia ","Tuo ","Hu ","Muroaji ","Ruo ","Haraka ","Wen ","Jian ","Hao ","Wu ","Fang ","Sao ","Liu ","Ma ","Shi ","Shi ","Yin ","Z ","Teng ","Ta ","Yao ","Ge ","Rong ","Qian ","Qi ","Wen ","Ruo ","Hatahata ","Lian ","Ao ","Le ","Hui ","Min ","Ji ","Tiao ","Qu ","Jian ","Sao ","Man ","Xi ","Qiu ","Biao ","Ji ","Ji ","Zhu ","Jiang ","Qiu ","Zhuan ","Yong ","Zhang ","Kang ","Xue ","Bie ","Jue ","Qu ","Xiang ","Bo ","Jiao ","Xun ","Su ","Huang ","Zun ","Shan ","Shan ","Fan ","Jue ","Lin ","Xun ","Miao ","Xi ","Eso ","Kyou ","Fen ","Guan ","Hou ","Kuai ","Zei ","Sao ","Zhan ","Gan ","Gui ","Sheng ","Li ","Chang ","Hatahata ","Shiira ","Mutsu ","Ru ","Ji ","Xu ","Huo ","Shiira ","Li ","Lie ","Li ","Mie ","Zhen ","Xiang ","E ","Lu ","Guan ","Li ","Xian ","Yu ","Dao ","Ji ","You ","Tun ","Lu ","Fang ","Ba ","He ","Bo ","Ping ","Nian ","Lu ","You ","Zha ","Fu ","Bo ","Bao ","Hou ","Pi ","Tai ","Gui ","Jie ","Kao ","Wei ","Er ","Tong ","Ze ","Hou ","Kuai ","Ji ","Jiao ","Xian ","Za ","Xiang ","Xun ","Geng ","Li ","Lian ","Jian ","Li ","Shi ","Tiao ","Gun ","Sha ","Wan ","Jun ","Ji ","Yong ","Qing ","Ling ","Qi ","Zou ","Fei ","Kun ","Chang ","Gu ","Ni ","Nian ","Diao ","Jing ","Shen ","Shi ","Zi ","Fen ","Die ","Bi ","Chang ","Shi ","Wen ","Wei ","Sai ","E ","Qiu ","Fu ","Huang ","Quan ","Jiang ","Bian ","Sao ","Ao ","Qi ","Ta ","Yin ","Yao ","Fang ","Jian ","Le ","Biao ","Xue ","Bie ","Man ","Min ","Yong ","Wei ","Xi ","Jue ","Shan ","Lin ","Zun ","Huo ","Gan ","Li ","Zhan ","Guan ","Niao ","Yi ","Fu ","Li ","Jiu ","Bu ","Yan ","Fu ","Diao ","Ji ","Feng ","Nio ","Gan ","Shi ","Feng ","Ming ","Bao ","Yuan ","Zhi ","Hu ","Qin ","Fu ","Fen ","Wen ","Jian ","Shi ","Yu "]});var m7=m((c4e,p7)=>{p7.exports=["Fou ","Yiao ","Jue ","Jue ","Pi ","Huan ","Zhen ","Bao ","Yan ","Ya ","Zheng ","Fang ","Feng ","Wen ","Ou ","Te ","Jia ","Nu ","Ling ","Mie ","Fu ","Tuo ","Wen ","Li ","Bian ","Zhi ","Ge ","Yuan ","Zi ","Qu ","Xiao ","Zhi ","Dan ","Ju ","You ","Gu ","Zhong ","Yu ","Yang ","Rong ","Ya ","Tie ","Yu ","Shigi ","Ying ","Zhui ","Wu ","Er ","Gua ","Ai ","Zhi ","Yan ","Heng ","Jiao ","Ji ","Lie ","Zhu ","Ren ","Yi ","Hong ","Luo ","Ru ","Mou ","Ge ","Ren ","Jiao ","Xiu ","Zhou ","Zhi ","Luo ","Chidori ","Toki ","Ten ","Luan ","Jia ","Ji ","Yu ","Huan ","Tuo ","Bu ","Wu ","Juan ","Yu ","Bo ","Xun ","Xun ","Bi ","Xi ","Jun ","Ju ","Tu ","Jing ","Ti ","E ","E ","Kuang ","Hu ","Wu ","Shen ","Lai ","Ikaruga ","Kakesu ","Lu ","Ping ","Shu ","Fu ","An ","Zhao ","Peng ","Qin ","Qian ","Bei ","Diao ","Lu ","Que ","Jian ","Ju ","Tu ","Ya ","Yuan ","Qi ","Li ","Ye ","Zhui ","Kong ","Zhui ","Kun ","Sheng ","Qi ","Jing ","Yi ","Yi ","Jing ","Zi ","Lai ","Dong ","Qi ","Chun ","Geng ","Ju ","Qu ","Isuka ","Kikuitadaki ","Ji ","Shu ","[?] ","Chi ","Miao ","Rou ","An ","Qiu ","Ti ","Hu ","Ti ","E ","Jie ","Mao ","Fu ","Chun ","Tu ","Yan ","He ","Yuan ","Pian ","Yun ","Mei ","Hu ","Ying ","Dun ","Mu ","Ju ","Tsugumi ","Cang ","Fang ","Gu ","Ying ","Yuan ","Xuan ","Weng ","Shi ","He ","Chu ","Tang ","Xia ","Ruo ","Liu ","Ji ","Gu ","Jian ","Zhun ","Han ","Zi ","Zi ","Ni ","Yao ","Yan ","Ji ","Li ","Tian ","Kou ","Ti ","Ti ","Ni ","Tu ","Ma ","Jiao ","Gao ","Tian ","Chen ","Li ","Zhuan ","Zhe ","Ao ","Yao ","Yi ","Ou ","Chi ","Zhi ","Liao ","Rong ","Lou ","Bi ","Shuang ","Zhuo ","Yu ","Wu ","Jue ","Yin ","Quan ","Si ","Jiao ","Yi ","Hua ","Bi ","Ying ","Su ","Huang ","Fan ","Jiao ","Liao ","Yan ","Kao ","Jiu ","Xian ","Xian ","Tu ","Mai ","Zun ","Yu ","Ying ","Lu ","Tuan ","Xian ","Xue ","Yi ","Pi "]});var y7=m((h4e,b7)=>{b7.exports=["Shu ","Luo ","Qi ","Yi ","Ji ","Zhe ","Yu ","Zhan ","Ye ","Yang ","Pi ","Ning ","Huo ","Mi ","Ying ","Meng ","Di ","Yue ","Yu ","Lei ","Bao ","Lu ","He ","Long ","Shuang ","Yue ","Ying ","Guan ","Qu ","Li ","Luan ","Niao ","Jiu ","Ji ","Yuan ","Ming ","Shi ","Ou ","Ya ","Cang ","Bao ","Zhen ","Gu ","Dong ","Lu ","Ya ","Xiao ","Yang ","Ling ","Zhi ","Qu ","Yuan ","Xue ","Tuo ","Si ","Zhi ","Er ","Gua ","Xiu ","Heng ","Zhou ","Ge ","Luan ","Hong ","Wu ","Bo ","Li ","Juan ","Hu ","E ","Yu ","Xian ","Ti ","Wu ","Que ","Miao ","An ","Kun ","Bei ","Peng ","Qian ","Chun ","Geng ","Yuan ","Su ","Hu ","He ","E ","Gu ","Qiu ","Zi ","Mei ","Mu ","Ni ","Yao ","Weng ","Liu ","Ji ","Ni ","Jian ","He ","Yi ","Ying ","Zhe ","Liao ","Liao ","Jiao ","Jiu ","Yu ","Lu ","Xuan ","Zhan ","Ying ","Huo ","Meng ","Guan ","Shuang ","Lu ","Jin ","Ling ","Jian ","Xian ","Cuo ","Jian ","Jian ","Yan ","Cuo ","Lu ","You ","Cu ","Ji ","Biao ","Cu ","Biao ","Zhu ","Jun ","Zhu ","Jian ","Mi ","Mi ","Wu ","Liu ","Chen ","Jun ","Lin ","Ni ","Qi ","Lu ","Jiu ","Jun ","Jing ","Li ","Xiang ","Yan ","Jia ","Mi ","Li ","She ","Zhang ","Lin ","Jing ","Ji ","Ling ","Yan ","Cu ","Mai ","Mai ","Ge ","Chao ","Fu ","Mian ","Mian ","Fu ","Pao ","Qu ","Qu ","Mou ","Fu ","Xian ","Lai ","Qu ","Mian ","[?] ","Feng ","Fu ","Qu ","Mian ","Ma ","Mo ","Mo ","Hui ","Ma ","Zou ","Nen ","Fen ","Huang ","Huang ","Jin ","Guang ","Tian ","Tou ","Heng ","Xi ","Kuang ","Heng ","Shu ","Li ","Nian ","Chi ","Hei ","Hei ","Yi ","Qian ","Dan ","Xi ","Tuan ","Mo ","Mo ","Qian ","Dai ","Chu ","You ","Dian ","Yi ","Xia ","Yan ","Qu ","Mei ","Yan ","Jing ","Yu ","Li ","Dang ","Du ","Can ","Yin ","An ","Yan ","Tan ","An ","Zhen ","Dai ","Can ","Yi ","Mei ","Dan ","Yan ","Du ","Lu ","Zhi ","Fen ","Fu ","Fu ","Min ","Min ","Yuan "]});var w7=m((d4e,v7)=>{v7.exports=["Cu ","Qu ","Chao ","Wa ","Zhu ","Zhi ","Mang ","Ao ","Bie ","Tuo ","Bi ","Yuan ","Chao ","Tuo ","Ding ","Mi ","Nai ","Ding ","Zi ","Gu ","Gu ","Dong ","Fen ","Tao ","Yuan ","Pi ","Chang ","Gao ","Qi ","Yuan ","Tang ","Teng ","Shu ","Shu ","Fen ","Fei ","Wen ","Ba ","Diao ","Tuo ","Tong ","Qu ","Sheng ","Shi ","You ","Shi ","Ting ","Wu ","Nian ","Jing ","Hun ","Ju ","Yan ","Tu ","Ti ","Xi ","Xian ","Yan ","Lei ","Bi ","Yao ","Qiu ","Han ","Wu ","Wu ","Hou ","Xi ","Ge ","Zha ","Xiu ","Weng ","Zha ","Nong ","Nang ","Qi ","Zhai ","Ji ","Zi ","Ji ","Ji ","Qi ","Ji ","Chi ","Chen ","Chen ","He ","Ya ","Ken ","Xie ","Pao ","Cuo ","Shi ","Zi ","Chi ","Nian ","Ju ","Tiao ","Ling ","Ling ","Chu ","Quan ","Xie ","Ken ","Nie ","Jiu ","Yao ","Chuo ","Kun ","Yu ","Chu ","Yi ","Ni ","Cuo ","Zou ","Qu ","Nen ","Xian ","Ou ","E ","Wo ","Yi ","Chuo ","Zou ","Dian ","Chu ","Jin ","Ya ","Chi ","Chen ","He ","Ken ","Ju ","Ling ","Pao ","Tiao ","Zi ","Ken ","Yu ","Chuo ","Qu ","Wo ","Long ","Pang ","Gong ","Pang ","Yan ","Long ","Long ","Gong ","Kan ","Ta ","Ling ","Ta ","Long ","Gong ","Kan ","Gui ","Qiu ","Bie ","Gui ","Yue ","Chui ","He ","Jue ","Xie ","Yu ","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var x7=m((g4e,D7)=>{D7.exports=["it","ix","i","ip","iet","iex","ie","iep","at","ax","a","ap","uox","uo","uop","ot","ox","o","op","ex","e","wu","bit","bix","bi","bip","biet","biex","bie","biep","bat","bax","ba","bap","buox","buo","buop","bot","box","bo","bop","bex","be","bep","but","bux","bu","bup","burx","bur","byt","byx","by","byp","byrx","byr","pit","pix","pi","pip","piex","pie","piep","pat","pax","pa","pap","puox","puo","puop","pot","pox","po","pop","put","pux","pu","pup","purx","pur","pyt","pyx","py","pyp","pyrx","pyr","bbit","bbix","bbi","bbip","bbiet","bbiex","bbie","bbiep","bbat","bbax","bba","bbap","bbuox","bbuo","bbuop","bbot","bbox","bbo","bbop","bbex","bbe","bbep","bbut","bbux","bbu","bbup","bburx","bbur","bbyt","bbyx","bby","bbyp","nbit","nbix","nbi","nbip","nbiex","nbie","nbiep","nbat","nbax","nba","nbap","nbot","nbox","nbo","nbop","nbut","nbux","nbu","nbup","nburx","nbur","nbyt","nbyx","nby","nbyp","nbyrx","nbyr","hmit","hmix","hmi","hmip","hmiex","hmie","hmiep","hmat","hmax","hma","hmap","hmuox","hmuo","hmuop","hmot","hmox","hmo","hmop","hmut","hmux","hmu","hmup","hmurx","hmur","hmyx","hmy","hmyp","hmyrx","hmyr","mit","mix","mi","mip","miex","mie","miep","mat","max","ma","map","muot","muox","muo","muop","mot","mox","mo","mop","mex","me","mut","mux","mu","mup","murx","mur","myt","myx","my","myp","fit","fix","fi","fip","fat","fax","fa","fap","fox","fo","fop","fut","fux","fu","fup","furx","fur","fyt","fyx","fy","fyp","vit","vix","vi","vip","viet","viex","vie","viep","vat","vax","va","vap","vot","vox","vo","vop","vex","vep","vut","vux","vu","vup","vurx","vur","vyt","vyx","vy","vyp","vyrx","vyr"]});var S7=m((f4e,C7)=>{C7.exports=["dit","dix","di","dip","diex","die","diep","dat","dax","da","dap","duox","duo","dot","dox","do","dop","dex","de","dep","dut","dux","du","dup","durx","dur","tit","tix","ti","tip","tiex","tie","tiep","tat","tax","ta","tap","tuot","tuox","tuo","tuop","tot","tox","to","top","tex","te","tep","tut","tux","tu","tup","turx","tur","ddit","ddix","ddi","ddip","ddiex","ddie","ddiep","ddat","ddax","dda","ddap","dduox","dduo","dduop","ddot","ddox","ddo","ddop","ddex","dde","ddep","ddut","ddux","ddu","ddup","ddurx","ddur","ndit","ndix","ndi","ndip","ndiex","ndie","ndat","ndax","nda","ndap","ndot","ndox","ndo","ndop","ndex","nde","ndep","ndut","ndux","ndu","ndup","ndurx","ndur","hnit","hnix","hni","hnip","hniet","hniex","hnie","hniep","hnat","hnax","hna","hnap","hnuox","hnuo","hnot","hnox","hnop","hnex","hne","hnep","hnut","nit","nix","ni","nip","niex","nie","niep","nax","na","nap","nuox","nuo","nuop","not","nox","no","nop","nex","ne","nep","nut","nux","nu","nup","nurx","nur","hlit","hlix","hli","hlip","hliex","hlie","hliep","hlat","hlax","hla","hlap","hluox","hluo","hluop","hlox","hlo","hlop","hlex","hle","hlep","hlut","hlux","hlu","hlup","hlurx","hlur","hlyt","hlyx","hly","hlyp","hlyrx","hlyr","lit","lix","li","lip","liet","liex","lie","liep","lat","lax","la","lap","luot","luox","luo","luop","lot","lox","lo","lop","lex","le","lep","lut","lux","lu","lup","lurx","lur","lyt","lyx","ly","lyp","lyrx","lyr","git","gix","gi","gip","giet","giex","gie","giep","gat","gax","ga","gap","guot","guox","guo","guop","got","gox","go","gop","get","gex","ge","gep","gut","gux","gu","gup","gurx","gur","kit","kix","ki","kip","kiex","kie","kiep","kat"]});var k7=m((p4e,T7)=>{T7.exports=["kax","ka","kap","kuox","kuo","kuop","kot","kox","ko","kop","ket","kex","ke","kep","kut","kux","ku","kup","kurx","kur","ggit","ggix","ggi","ggiex","ggie","ggiep","ggat","ggax","gga","ggap","gguot","gguox","gguo","gguop","ggot","ggox","ggo","ggop","gget","ggex","gge","ggep","ggut","ggux","ggu","ggup","ggurx","ggur","mgiex","mgie","mgat","mgax","mga","mgap","mguox","mguo","mguop","mgot","mgox","mgo","mgop","mgex","mge","mgep","mgut","mgux","mgu","mgup","mgurx","mgur","hxit","hxix","hxi","hxip","hxiet","hxiex","hxie","hxiep","hxat","hxax","hxa","hxap","hxuot","hxuox","hxuo","hxuop","hxot","hxox","hxo","hxop","hxex","hxe","hxep","ngiex","ngie","ngiep","ngat","ngax","nga","ngap","nguot","nguox","nguo","ngot","ngox","ngo","ngop","ngex","nge","ngep","hit","hiex","hie","hat","hax","ha","hap","huot","huox","huo","huop","hot","hox","ho","hop","hex","he","hep","wat","wax","wa","wap","wuox","wuo","wuop","wox","wo","wop","wex","we","wep","zit","zix","zi","zip","ziex","zie","ziep","zat","zax","za","zap","zuox","zuo","zuop","zot","zox","zo","zop","zex","ze","zep","zut","zux","zu","zup","zurx","zur","zyt","zyx","zy","zyp","zyrx","zyr","cit","cix","ci","cip","ciet","ciex","cie","ciep","cat","cax","ca","cap","cuox","cuo","cuop","cot","cox","co","cop","cex","ce","cep","cut","cux","cu","cup","curx","cur","cyt","cyx","cy","cyp","cyrx","cyr","zzit","zzix","zzi","zzip","zziet","zziex","zzie","zziep","zzat","zzax","zza","zzap","zzox","zzo","zzop","zzex","zze","zzep","zzux","zzu","zzup","zzurx","zzur","zzyt","zzyx","zzy","zzyp","zzyrx","zzyr","nzit","nzix","nzi","nzip","nziex","nzie","nziep","nzat","nzax","nza","nzap","nzuox","nzuo","nzox","nzop","nzex","nze","nzux","nzu"]});var P7=m((m4e,E7)=>{E7.exports=["nzup","nzurx","nzur","nzyt","nzyx","nzy","nzyp","nzyrx","nzyr","sit","six","si","sip","siex","sie","siep","sat","sax","sa","sap","suox","suo","suop","sot","sox","so","sop","sex","se","sep","sut","sux","su","sup","surx","sur","syt","syx","sy","syp","syrx","syr","ssit","ssix","ssi","ssip","ssiex","ssie","ssiep","ssat","ssax","ssa","ssap","ssot","ssox","sso","ssop","ssex","sse","ssep","ssut","ssux","ssu","ssup","ssyt","ssyx","ssy","ssyp","ssyrx","ssyr","zhat","zhax","zha","zhap","zhuox","zhuo","zhuop","zhot","zhox","zho","zhop","zhet","zhex","zhe","zhep","zhut","zhux","zhu","zhup","zhurx","zhur","zhyt","zhyx","zhy","zhyp","zhyrx","zhyr","chat","chax","cha","chap","chuot","chuox","chuo","chuop","chot","chox","cho","chop","chet","chex","che","chep","chux","chu","chup","churx","chur","chyt","chyx","chy","chyp","chyrx","chyr","rrax","rra","rruox","rruo","rrot","rrox","rro","rrop","rret","rrex","rre","rrep","rrut","rrux","rru","rrup","rrurx","rrur","rryt","rryx","rry","rryp","rryrx","rryr","nrat","nrax","nra","nrap","nrox","nro","nrop","nret","nrex","nre","nrep","nrut","nrux","nru","nrup","nrurx","nrur","nryt","nryx","nry","nryp","nryrx","nryr","shat","shax","sha","shap","shuox","shuo","shuop","shot","shox","sho","shop","shet","shex","she","shep","shut","shux","shu","shup","shurx","shur","shyt","shyx","shy","shyp","shyrx","shyr","rat","rax","ra","rap","ruox","ruo","ruop","rot","rox","ro","rop","rex","re","rep","rut","rux","ru","rup","rurx","rur","ryt","ryx","ry","ryp","ryrx","ryr","jit","jix","ji","jip","jiet","jiex","jie","jiep","juot","juox","juo","juop","jot","jox","jo","jop","jut","jux","ju","jup","jurx","jur","jyt","jyx","jy","jyp","jyrx","jyr","qit","qix","qi","qip"]});var R7=m((b4e,_7)=>{_7.exports=["qiet","qiex","qie","qiep","quot","quox","quo","quop","qot","qox","qo","qop","qut","qux","qu","qup","qurx","qur","qyt","qyx","qy","qyp","qyrx","qyr","jjit","jjix","jji","jjip","jjiet","jjiex","jjie","jjiep","jjuox","jjuo","jjuop","jjot","jjox","jjo","jjop","jjut","jjux","jju","jjup","jjurx","jjur","jjyt","jjyx","jjy","jjyp","njit","njix","nji","njip","njiet","njiex","njie","njiep","njuox","njuo","njot","njox","njo","njop","njux","nju","njup","njurx","njur","njyt","njyx","njy","njyp","njyrx","njyr","nyit","nyix","nyi","nyip","nyiet","nyiex","nyie","nyiep","nyuox","nyuo","nyuop","nyot","nyox","nyo","nyop","nyut","nyux","nyu","nyup","xit","xix","xi","xip","xiet","xiex","xie","xiep","xuox","xuo","xot","xox","xo","xop","xyt","xyx","xy","xyp","xyrx","xyr","yit","yix","yi","yip","yiet","yiex","yie","yiep","yuot","yuox","yuo","yuop","yot","yox","yo","yop","yut","yux","yu","yup","yurx","yur","yyt","yyx","yy","yyp","yyrx","yyr","[?]","[?]","[?]","Qot","Li","Kit","Nyip","Cyp","Ssi","Ggop","Gep","Mi","Hxit","Lyr","Bbut","Mop","Yo","Put","Hxuo","Tat","Ga","[?]","[?]","Ddur","Bur","Gguo","Nyop","Tu","Op","Jjut","Zot","Pyt","Hmo","Yit","Vur","Shy","Vep","Za","Jo","[?]","Jjy","Got","Jjie","Wo","Du","Shur","Lie","Cy","Cuop","Cip","Hxop","Shat","[?]","Shop","Che","Zziet","[?]","Ke","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var F7=m((y4e,L7)=>{L7.exports=["ga","gag","gagg","gags","gan","ganj","ganh","gad","gal","galg","galm","galb","gals","galt","galp","galh","gam","gab","gabs","gas","gass","gang","gaj","gac","gak","gat","gap","gah","gae","gaeg","gaegg","gaegs","gaen","gaenj","gaenh","gaed","gael","gaelg","gaelm","gaelb","gaels","gaelt","gaelp","gaelh","gaem","gaeb","gaebs","gaes","gaess","gaeng","gaej","gaec","gaek","gaet","gaep","gaeh","gya","gyag","gyagg","gyags","gyan","gyanj","gyanh","gyad","gyal","gyalg","gyalm","gyalb","gyals","gyalt","gyalp","gyalh","gyam","gyab","gyabs","gyas","gyass","gyang","gyaj","gyac","gyak","gyat","gyap","gyah","gyae","gyaeg","gyaegg","gyaegs","gyaen","gyaenj","gyaenh","gyaed","gyael","gyaelg","gyaelm","gyaelb","gyaels","gyaelt","gyaelp","gyaelh","gyaem","gyaeb","gyaebs","gyaes","gyaess","gyaeng","gyaej","gyaec","gyaek","gyaet","gyaep","gyaeh","geo","geog","geogg","geogs","geon","geonj","geonh","geod","geol","geolg","geolm","geolb","geols","geolt","geolp","geolh","geom","geob","geobs","geos","geoss","geong","geoj","geoc","geok","geot","geop","geoh","ge","geg","gegg","gegs","gen","genj","genh","ged","gel","gelg","gelm","gelb","gels","gelt","gelp","gelh","gem","geb","gebs","ges","gess","geng","gej","gec","gek","get","gep","geh","gyeo","gyeog","gyeogg","gyeogs","gyeon","gyeonj","gyeonh","gyeod","gyeol","gyeolg","gyeolm","gyeolb","gyeols","gyeolt","gyeolp","gyeolh","gyeom","gyeob","gyeobs","gyeos","gyeoss","gyeong","gyeoj","gyeoc","gyeok","gyeot","gyeop","gyeoh","gye","gyeg","gyegg","gyegs","gyen","gyenj","gyenh","gyed","gyel","gyelg","gyelm","gyelb","gyels","gyelt","gyelp","gyelh","gyem","gyeb","gyebs","gyes","gyess","gyeng","gyej","gyec","gyek","gyet","gyep","gyeh","go","gog","gogg","gogs","gon","gonj","gonh","god","gol","golg","golm","golb","gols","golt","golp","golh","gom","gob","gobs","gos","goss","gong","goj","goc","gok","got","gop","goh","gwa","gwag","gwagg","gwags"]});var j7=m((v4e,I7)=>{I7.exports=["gwan","gwanj","gwanh","gwad","gwal","gwalg","gwalm","gwalb","gwals","gwalt","gwalp","gwalh","gwam","gwab","gwabs","gwas","gwass","gwang","gwaj","gwac","gwak","gwat","gwap","gwah","gwae","gwaeg","gwaegg","gwaegs","gwaen","gwaenj","gwaenh","gwaed","gwael","gwaelg","gwaelm","gwaelb","gwaels","gwaelt","gwaelp","gwaelh","gwaem","gwaeb","gwaebs","gwaes","gwaess","gwaeng","gwaej","gwaec","gwaek","gwaet","gwaep","gwaeh","goe","goeg","goegg","goegs","goen","goenj","goenh","goed","goel","goelg","goelm","goelb","goels","goelt","goelp","goelh","goem","goeb","goebs","goes","goess","goeng","goej","goec","goek","goet","goep","goeh","gyo","gyog","gyogg","gyogs","gyon","gyonj","gyonh","gyod","gyol","gyolg","gyolm","gyolb","gyols","gyolt","gyolp","gyolh","gyom","gyob","gyobs","gyos","gyoss","gyong","gyoj","gyoc","gyok","gyot","gyop","gyoh","gu","gug","gugg","gugs","gun","gunj","gunh","gud","gul","gulg","gulm","gulb","guls","gult","gulp","gulh","gum","gub","gubs","gus","guss","gung","guj","guc","guk","gut","gup","guh","gweo","gweog","gweogg","gweogs","gweon","gweonj","gweonh","gweod","gweol","gweolg","gweolm","gweolb","gweols","gweolt","gweolp","gweolh","gweom","gweob","gweobs","gweos","gweoss","gweong","gweoj","gweoc","gweok","gweot","gweop","gweoh","gwe","gweg","gwegg","gwegs","gwen","gwenj","gwenh","gwed","gwel","gwelg","gwelm","gwelb","gwels","gwelt","gwelp","gwelh","gwem","gweb","gwebs","gwes","gwess","gweng","gwej","gwec","gwek","gwet","gwep","gweh","gwi","gwig","gwigg","gwigs","gwin","gwinj","gwinh","gwid","gwil","gwilg","gwilm","gwilb","gwils","gwilt","gwilp","gwilh","gwim","gwib","gwibs","gwis","gwiss","gwing","gwij","gwic","gwik","gwit","gwip","gwih","gyu","gyug","gyugg","gyugs","gyun","gyunj","gyunh","gyud","gyul","gyulg","gyulm","gyulb","gyuls","gyult","gyulp","gyulh","gyum","gyub","gyubs","gyus","gyuss","gyung","gyuj","gyuc","gyuk","gyut","gyup","gyuh","geu","geug","geugg","geugs","geun","geunj","geunh","geud"]});var O7=m((w4e,A7)=>{A7.exports=["geul","geulg","geulm","geulb","geuls","geult","geulp","geulh","geum","geub","geubs","geus","geuss","geung","geuj","geuc","geuk","geut","geup","geuh","gyi","gyig","gyigg","gyigs","gyin","gyinj","gyinh","gyid","gyil","gyilg","gyilm","gyilb","gyils","gyilt","gyilp","gyilh","gyim","gyib","gyibs","gyis","gyiss","gying","gyij","gyic","gyik","gyit","gyip","gyih","gi","gig","gigg","gigs","gin","ginj","ginh","gid","gil","gilg","gilm","gilb","gils","gilt","gilp","gilh","gim","gib","gibs","gis","giss","ging","gij","gic","gik","git","gip","gih","gga","ggag","ggagg","ggags","ggan","gganj","gganh","ggad","ggal","ggalg","ggalm","ggalb","ggals","ggalt","ggalp","ggalh","ggam","ggab","ggabs","ggas","ggass","ggang","ggaj","ggac","ggak","ggat","ggap","ggah","ggae","ggaeg","ggaegg","ggaegs","ggaen","ggaenj","ggaenh","ggaed","ggael","ggaelg","ggaelm","ggaelb","ggaels","ggaelt","ggaelp","ggaelh","ggaem","ggaeb","ggaebs","ggaes","ggaess","ggaeng","ggaej","ggaec","ggaek","ggaet","ggaep","ggaeh","ggya","ggyag","ggyagg","ggyags","ggyan","ggyanj","ggyanh","ggyad","ggyal","ggyalg","ggyalm","ggyalb","ggyals","ggyalt","ggyalp","ggyalh","ggyam","ggyab","ggyabs","ggyas","ggyass","ggyang","ggyaj","ggyac","ggyak","ggyat","ggyap","ggyah","ggyae","ggyaeg","ggyaegg","ggyaegs","ggyaen","ggyaenj","ggyaenh","ggyaed","ggyael","ggyaelg","ggyaelm","ggyaelb","ggyaels","ggyaelt","ggyaelp","ggyaelh","ggyaem","ggyaeb","ggyaebs","ggyaes","ggyaess","ggyaeng","ggyaej","ggyaec","ggyaek","ggyaet","ggyaep","ggyaeh","ggeo","ggeog","ggeogg","ggeogs","ggeon","ggeonj","ggeonh","ggeod","ggeol","ggeolg","ggeolm","ggeolb","ggeols","ggeolt","ggeolp","ggeolh","ggeom","ggeob","ggeobs","ggeos","ggeoss","ggeong","ggeoj","ggeoc","ggeok","ggeot","ggeop","ggeoh","gge","ggeg","ggegg","ggegs","ggen","ggenj","ggenh","gged","ggel","ggelg","ggelm","ggelb","ggels","ggelt","ggelp","ggelh","ggem","ggeb","ggebs","gges","ggess","ggeng","ggej","ggec","ggek","gget","ggep","ggeh","ggyeo","ggyeog","ggyeogg","ggyeogs","ggyeon","ggyeonj","ggyeonh","ggyeod","ggyeol","ggyeolg","ggyeolm","ggyeolb"]});var N7=m((D4e,M7)=>{M7.exports=["ggyeols","ggyeolt","ggyeolp","ggyeolh","ggyeom","ggyeob","ggyeobs","ggyeos","ggyeoss","ggyeong","ggyeoj","ggyeoc","ggyeok","ggyeot","ggyeop","ggyeoh","ggye","ggyeg","ggyegg","ggyegs","ggyen","ggyenj","ggyenh","ggyed","ggyel","ggyelg","ggyelm","ggyelb","ggyels","ggyelt","ggyelp","ggyelh","ggyem","ggyeb","ggyebs","ggyes","ggyess","ggyeng","ggyej","ggyec","ggyek","ggyet","ggyep","ggyeh","ggo","ggog","ggogg","ggogs","ggon","ggonj","ggonh","ggod","ggol","ggolg","ggolm","ggolb","ggols","ggolt","ggolp","ggolh","ggom","ggob","ggobs","ggos","ggoss","ggong","ggoj","ggoc","ggok","ggot","ggop","ggoh","ggwa","ggwag","ggwagg","ggwags","ggwan","ggwanj","ggwanh","ggwad","ggwal","ggwalg","ggwalm","ggwalb","ggwals","ggwalt","ggwalp","ggwalh","ggwam","ggwab","ggwabs","ggwas","ggwass","ggwang","ggwaj","ggwac","ggwak","ggwat","ggwap","ggwah","ggwae","ggwaeg","ggwaegg","ggwaegs","ggwaen","ggwaenj","ggwaenh","ggwaed","ggwael","ggwaelg","ggwaelm","ggwaelb","ggwaels","ggwaelt","ggwaelp","ggwaelh","ggwaem","ggwaeb","ggwaebs","ggwaes","ggwaess","ggwaeng","ggwaej","ggwaec","ggwaek","ggwaet","ggwaep","ggwaeh","ggoe","ggoeg","ggoegg","ggoegs","ggoen","ggoenj","ggoenh","ggoed","ggoel","ggoelg","ggoelm","ggoelb","ggoels","ggoelt","ggoelp","ggoelh","ggoem","ggoeb","ggoebs","ggoes","ggoess","ggoeng","ggoej","ggoec","ggoek","ggoet","ggoep","ggoeh","ggyo","ggyog","ggyogg","ggyogs","ggyon","ggyonj","ggyonh","ggyod","ggyol","ggyolg","ggyolm","ggyolb","ggyols","ggyolt","ggyolp","ggyolh","ggyom","ggyob","ggyobs","ggyos","ggyoss","ggyong","ggyoj","ggyoc","ggyok","ggyot","ggyop","ggyoh","ggu","ggug","ggugg","ggugs","ggun","ggunj","ggunh","ggud","ggul","ggulg","ggulm","ggulb","gguls","ggult","ggulp","ggulh","ggum","ggub","ggubs","ggus","gguss","ggung","gguj","gguc","gguk","ggut","ggup","gguh","ggweo","ggweog","ggweogg","ggweogs","ggweon","ggweonj","ggweonh","ggweod","ggweol","ggweolg","ggweolm","ggweolb","ggweols","ggweolt","ggweolp","ggweolh","ggweom","ggweob","ggweobs","ggweos","ggweoss","ggweong","ggweoj","ggweoc","ggweok","ggweot","ggweop","ggweoh","ggwe","ggweg","ggwegg","ggwegs","ggwen","ggwenj","ggwenh","ggwed","ggwel","ggwelg","ggwelm","ggwelb","ggwels","ggwelt","ggwelp","ggwelh"]});var H7=m((x4e,B7)=>{B7.exports=["ggwem","ggweb","ggwebs","ggwes","ggwess","ggweng","ggwej","ggwec","ggwek","ggwet","ggwep","ggweh","ggwi","ggwig","ggwigg","ggwigs","ggwin","ggwinj","ggwinh","ggwid","ggwil","ggwilg","ggwilm","ggwilb","ggwils","ggwilt","ggwilp","ggwilh","ggwim","ggwib","ggwibs","ggwis","ggwiss","ggwing","ggwij","ggwic","ggwik","ggwit","ggwip","ggwih","ggyu","ggyug","ggyugg","ggyugs","ggyun","ggyunj","ggyunh","ggyud","ggyul","ggyulg","ggyulm","ggyulb","ggyuls","ggyult","ggyulp","ggyulh","ggyum","ggyub","ggyubs","ggyus","ggyuss","ggyung","ggyuj","ggyuc","ggyuk","ggyut","ggyup","ggyuh","ggeu","ggeug","ggeugg","ggeugs","ggeun","ggeunj","ggeunh","ggeud","ggeul","ggeulg","ggeulm","ggeulb","ggeuls","ggeult","ggeulp","ggeulh","ggeum","ggeub","ggeubs","ggeus","ggeuss","ggeung","ggeuj","ggeuc","ggeuk","ggeut","ggeup","ggeuh","ggyi","ggyig","ggyigg","ggyigs","ggyin","ggyinj","ggyinh","ggyid","ggyil","ggyilg","ggyilm","ggyilb","ggyils","ggyilt","ggyilp","ggyilh","ggyim","ggyib","ggyibs","ggyis","ggyiss","ggying","ggyij","ggyic","ggyik","ggyit","ggyip","ggyih","ggi","ggig","ggigg","ggigs","ggin","gginj","gginh","ggid","ggil","ggilg","ggilm","ggilb","ggils","ggilt","ggilp","ggilh","ggim","ggib","ggibs","ggis","ggiss","gging","ggij","ggic","ggik","ggit","ggip","ggih","na","nag","nagg","nags","nan","nanj","nanh","nad","nal","nalg","nalm","nalb","nals","nalt","nalp","nalh","nam","nab","nabs","nas","nass","nang","naj","nac","nak","nat","nap","nah","nae","naeg","naegg","naegs","naen","naenj","naenh","naed","nael","naelg","naelm","naelb","naels","naelt","naelp","naelh","naem","naeb","naebs","naes","naess","naeng","naej","naec","naek","naet","naep","naeh","nya","nyag","nyagg","nyags","nyan","nyanj","nyanh","nyad","nyal","nyalg","nyalm","nyalb","nyals","nyalt","nyalp","nyalh","nyam","nyab","nyabs","nyas","nyass","nyang","nyaj","nyac","nyak","nyat","nyap","nyah","nyae","nyaeg","nyaegg","nyaegs","nyaen","nyaenj","nyaenh","nyaed","nyael","nyaelg","nyaelm","nyaelb","nyaels","nyaelt","nyaelp","nyaelh","nyaem","nyaeb","nyaebs","nyaes"]});var Y7=m((C4e,q7)=>{q7.exports=["nyaess","nyaeng","nyaej","nyaec","nyaek","nyaet","nyaep","nyaeh","neo","neog","neogg","neogs","neon","neonj","neonh","neod","neol","neolg","neolm","neolb","neols","neolt","neolp","neolh","neom","neob","neobs","neos","neoss","neong","neoj","neoc","neok","neot","neop","neoh","ne","neg","negg","negs","nen","nenj","nenh","ned","nel","nelg","nelm","nelb","nels","nelt","nelp","nelh","nem","neb","nebs","nes","ness","neng","nej","nec","nek","net","nep","neh","nyeo","nyeog","nyeogg","nyeogs","nyeon","nyeonj","nyeonh","nyeod","nyeol","nyeolg","nyeolm","nyeolb","nyeols","nyeolt","nyeolp","nyeolh","nyeom","nyeob","nyeobs","nyeos","nyeoss","nyeong","nyeoj","nyeoc","nyeok","nyeot","nyeop","nyeoh","nye","nyeg","nyegg","nyegs","nyen","nyenj","nyenh","nyed","nyel","nyelg","nyelm","nyelb","nyels","nyelt","nyelp","nyelh","nyem","nyeb","nyebs","nyes","nyess","nyeng","nyej","nyec","nyek","nyet","nyep","nyeh","no","nog","nogg","nogs","non","nonj","nonh","nod","nol","nolg","nolm","nolb","nols","nolt","nolp","nolh","nom","nob","nobs","nos","noss","nong","noj","noc","nok","not","nop","noh","nwa","nwag","nwagg","nwags","nwan","nwanj","nwanh","nwad","nwal","nwalg","nwalm","nwalb","nwals","nwalt","nwalp","nwalh","nwam","nwab","nwabs","nwas","nwass","nwang","nwaj","nwac","nwak","nwat","nwap","nwah","nwae","nwaeg","nwaegg","nwaegs","nwaen","nwaenj","nwaenh","nwaed","nwael","nwaelg","nwaelm","nwaelb","nwaels","nwaelt","nwaelp","nwaelh","nwaem","nwaeb","nwaebs","nwaes","nwaess","nwaeng","nwaej","nwaec","nwaek","nwaet","nwaep","nwaeh","noe","noeg","noegg","noegs","noen","noenj","noenh","noed","noel","noelg","noelm","noelb","noels","noelt","noelp","noelh","noem","noeb","noebs","noes","noess","noeng","noej","noec","noek","noet","noep","noeh","nyo","nyog","nyogg","nyogs","nyon","nyonj","nyonh","nyod","nyol","nyolg","nyolm","nyolb","nyols","nyolt","nyolp","nyolh","nyom","nyob","nyobs","nyos","nyoss","nyong","nyoj","nyoc"]});var Z7=m((S4e,W7)=>{W7.exports=["nyok","nyot","nyop","nyoh","nu","nug","nugg","nugs","nun","nunj","nunh","nud","nul","nulg","nulm","nulb","nuls","nult","nulp","nulh","num","nub","nubs","nus","nuss","nung","nuj","nuc","nuk","nut","nup","nuh","nweo","nweog","nweogg","nweogs","nweon","nweonj","nweonh","nweod","nweol","nweolg","nweolm","nweolb","nweols","nweolt","nweolp","nweolh","nweom","nweob","nweobs","nweos","nweoss","nweong","nweoj","nweoc","nweok","nweot","nweop","nweoh","nwe","nweg","nwegg","nwegs","nwen","nwenj","nwenh","nwed","nwel","nwelg","nwelm","nwelb","nwels","nwelt","nwelp","nwelh","nwem","nweb","nwebs","nwes","nwess","nweng","nwej","nwec","nwek","nwet","nwep","nweh","nwi","nwig","nwigg","nwigs","nwin","nwinj","nwinh","nwid","nwil","nwilg","nwilm","nwilb","nwils","nwilt","nwilp","nwilh","nwim","nwib","nwibs","nwis","nwiss","nwing","nwij","nwic","nwik","nwit","nwip","nwih","nyu","nyug","nyugg","nyugs","nyun","nyunj","nyunh","nyud","nyul","nyulg","nyulm","nyulb","nyuls","nyult","nyulp","nyulh","nyum","nyub","nyubs","nyus","nyuss","nyung","nyuj","nyuc","nyuk","nyut","nyup","nyuh","neu","neug","neugg","neugs","neun","neunj","neunh","neud","neul","neulg","neulm","neulb","neuls","neult","neulp","neulh","neum","neub","neubs","neus","neuss","neung","neuj","neuc","neuk","neut","neup","neuh","nyi","nyig","nyigg","nyigs","nyin","nyinj","nyinh","nyid","nyil","nyilg","nyilm","nyilb","nyils","nyilt","nyilp","nyilh","nyim","nyib","nyibs","nyis","nyiss","nying","nyij","nyic","nyik","nyit","nyip","nyih","ni","nig","nigg","nigs","nin","ninj","ninh","nid","nil","nilg","nilm","nilb","nils","nilt","nilp","nilh","nim","nib","nibs","nis","niss","ning","nij","nic","nik","nit","nip","nih","da","dag","dagg","dags","dan","danj","danh","dad","dal","dalg","dalm","dalb","dals","dalt","dalp","dalh","dam","dab","dabs","das","dass","dang","daj","dac","dak","dat","dap","dah"]});var $7=m((T4e,J7)=>{J7.exports=["dae","daeg","daegg","daegs","daen","daenj","daenh","daed","dael","daelg","daelm","daelb","daels","daelt","daelp","daelh","daem","daeb","daebs","daes","daess","daeng","daej","daec","daek","daet","daep","daeh","dya","dyag","dyagg","dyags","dyan","dyanj","dyanh","dyad","dyal","dyalg","dyalm","dyalb","dyals","dyalt","dyalp","dyalh","dyam","dyab","dyabs","dyas","dyass","dyang","dyaj","dyac","dyak","dyat","dyap","dyah","dyae","dyaeg","dyaegg","dyaegs","dyaen","dyaenj","dyaenh","dyaed","dyael","dyaelg","dyaelm","dyaelb","dyaels","dyaelt","dyaelp","dyaelh","dyaem","dyaeb","dyaebs","dyaes","dyaess","dyaeng","dyaej","dyaec","dyaek","dyaet","dyaep","dyaeh","deo","deog","deogg","deogs","deon","deonj","deonh","deod","deol","deolg","deolm","deolb","deols","deolt","deolp","deolh","deom","deob","deobs","deos","deoss","deong","deoj","deoc","deok","deot","deop","deoh","de","deg","degg","degs","den","denj","denh","ded","del","delg","delm","delb","dels","delt","delp","delh","dem","deb","debs","des","dess","deng","dej","dec","dek","det","dep","deh","dyeo","dyeog","dyeogg","dyeogs","dyeon","dyeonj","dyeonh","dyeod","dyeol","dyeolg","dyeolm","dyeolb","dyeols","dyeolt","dyeolp","dyeolh","dyeom","dyeob","dyeobs","dyeos","dyeoss","dyeong","dyeoj","dyeoc","dyeok","dyeot","dyeop","dyeoh","dye","dyeg","dyegg","dyegs","dyen","dyenj","dyenh","dyed","dyel","dyelg","dyelm","dyelb","dyels","dyelt","dyelp","dyelh","dyem","dyeb","dyebs","dyes","dyess","dyeng","dyej","dyec","dyek","dyet","dyep","dyeh","do","dog","dogg","dogs","don","donj","donh","dod","dol","dolg","dolm","dolb","dols","dolt","dolp","dolh","dom","dob","dobs","dos","doss","dong","doj","doc","dok","dot","dop","doh","dwa","dwag","dwagg","dwags","dwan","dwanj","dwanh","dwad","dwal","dwalg","dwalm","dwalb","dwals","dwalt","dwalp","dwalh","dwam","dwab","dwabs","dwas","dwass","dwang","dwaj","dwac","dwak","dwat","dwap","dwah","dwae","dwaeg","dwaegg","dwaegs"]});var U7=m((k4e,X7)=>{X7.exports=["dwaen","dwaenj","dwaenh","dwaed","dwael","dwaelg","dwaelm","dwaelb","dwaels","dwaelt","dwaelp","dwaelh","dwaem","dwaeb","dwaebs","dwaes","dwaess","dwaeng","dwaej","dwaec","dwaek","dwaet","dwaep","dwaeh","doe","doeg","doegg","doegs","doen","doenj","doenh","doed","doel","doelg","doelm","doelb","doels","doelt","doelp","doelh","doem","doeb","doebs","does","doess","doeng","doej","doec","doek","doet","doep","doeh","dyo","dyog","dyogg","dyogs","dyon","dyonj","dyonh","dyod","dyol","dyolg","dyolm","dyolb","dyols","dyolt","dyolp","dyolh","dyom","dyob","dyobs","dyos","dyoss","dyong","dyoj","dyoc","dyok","dyot","dyop","dyoh","du","dug","dugg","dugs","dun","dunj","dunh","dud","dul","dulg","dulm","dulb","duls","dult","dulp","dulh","dum","dub","dubs","dus","duss","dung","duj","duc","duk","dut","dup","duh","dweo","dweog","dweogg","dweogs","dweon","dweonj","dweonh","dweod","dweol","dweolg","dweolm","dweolb","dweols","dweolt","dweolp","dweolh","dweom","dweob","dweobs","dweos","dweoss","dweong","dweoj","dweoc","dweok","dweot","dweop","dweoh","dwe","dweg","dwegg","dwegs","dwen","dwenj","dwenh","dwed","dwel","dwelg","dwelm","dwelb","dwels","dwelt","dwelp","dwelh","dwem","dweb","dwebs","dwes","dwess","dweng","dwej","dwec","dwek","dwet","dwep","dweh","dwi","dwig","dwigg","dwigs","dwin","dwinj","dwinh","dwid","dwil","dwilg","dwilm","dwilb","dwils","dwilt","dwilp","dwilh","dwim","dwib","dwibs","dwis","dwiss","dwing","dwij","dwic","dwik","dwit","dwip","dwih","dyu","dyug","dyugg","dyugs","dyun","dyunj","dyunh","dyud","dyul","dyulg","dyulm","dyulb","dyuls","dyult","dyulp","dyulh","dyum","dyub","dyubs","dyus","dyuss","dyung","dyuj","dyuc","dyuk","dyut","dyup","dyuh","deu","deug","deugg","deugs","deun","deunj","deunh","deud","deul","deulg","deulm","deulb","deuls","deult","deulp","deulh","deum","deub","deubs","deus","deuss","deung","deuj","deuc","deuk","deut","deup","deuh","dyi","dyig","dyigg","dyigs","dyin","dyinj","dyinh","dyid"]});var Q7=m((E4e,G7)=>{G7.exports=["dyil","dyilg","dyilm","dyilb","dyils","dyilt","dyilp","dyilh","dyim","dyib","dyibs","dyis","dyiss","dying","dyij","dyic","dyik","dyit","dyip","dyih","di","dig","digg","digs","din","dinj","dinh","did","dil","dilg","dilm","dilb","dils","dilt","dilp","dilh","dim","dib","dibs","dis","diss","ding","dij","dic","dik","dit","dip","dih","dda","ddag","ddagg","ddags","ddan","ddanj","ddanh","ddad","ddal","ddalg","ddalm","ddalb","ddals","ddalt","ddalp","ddalh","ddam","ddab","ddabs","ddas","ddass","ddang","ddaj","ddac","ddak","ddat","ddap","ddah","ddae","ddaeg","ddaegg","ddaegs","ddaen","ddaenj","ddaenh","ddaed","ddael","ddaelg","ddaelm","ddaelb","ddaels","ddaelt","ddaelp","ddaelh","ddaem","ddaeb","ddaebs","ddaes","ddaess","ddaeng","ddaej","ddaec","ddaek","ddaet","ddaep","ddaeh","ddya","ddyag","ddyagg","ddyags","ddyan","ddyanj","ddyanh","ddyad","ddyal","ddyalg","ddyalm","ddyalb","ddyals","ddyalt","ddyalp","ddyalh","ddyam","ddyab","ddyabs","ddyas","ddyass","ddyang","ddyaj","ddyac","ddyak","ddyat","ddyap","ddyah","ddyae","ddyaeg","ddyaegg","ddyaegs","ddyaen","ddyaenj","ddyaenh","ddyaed","ddyael","ddyaelg","ddyaelm","ddyaelb","ddyaels","ddyaelt","ddyaelp","ddyaelh","ddyaem","ddyaeb","ddyaebs","ddyaes","ddyaess","ddyaeng","ddyaej","ddyaec","ddyaek","ddyaet","ddyaep","ddyaeh","ddeo","ddeog","ddeogg","ddeogs","ddeon","ddeonj","ddeonh","ddeod","ddeol","ddeolg","ddeolm","ddeolb","ddeols","ddeolt","ddeolp","ddeolh","ddeom","ddeob","ddeobs","ddeos","ddeoss","ddeong","ddeoj","ddeoc","ddeok","ddeot","ddeop","ddeoh","dde","ddeg","ddegg","ddegs","dden","ddenj","ddenh","dded","ddel","ddelg","ddelm","ddelb","ddels","ddelt","ddelp","ddelh","ddem","ddeb","ddebs","ddes","ddess","ddeng","ddej","ddec","ddek","ddet","ddep","ddeh","ddyeo","ddyeog","ddyeogg","ddyeogs","ddyeon","ddyeonj","ddyeonh","ddyeod","ddyeol","ddyeolg","ddyeolm","ddyeolb","ddyeols","ddyeolt","ddyeolp","ddyeolh","ddyeom","ddyeob","ddyeobs","ddyeos","ddyeoss","ddyeong","ddyeoj","ddyeoc","ddyeok","ddyeot","ddyeop","ddyeoh","ddye","ddyeg","ddyegg","ddyegs","ddyen","ddyenj","ddyenh","ddyed","ddyel","ddyelg","ddyelm","ddyelb"]});var z7=m((P4e,K7)=>{K7.exports=["ddyels","ddyelt","ddyelp","ddyelh","ddyem","ddyeb","ddyebs","ddyes","ddyess","ddyeng","ddyej","ddyec","ddyek","ddyet","ddyep","ddyeh","ddo","ddog","ddogg","ddogs","ddon","ddonj","ddonh","ddod","ddol","ddolg","ddolm","ddolb","ddols","ddolt","ddolp","ddolh","ddom","ddob","ddobs","ddos","ddoss","ddong","ddoj","ddoc","ddok","ddot","ddop","ddoh","ddwa","ddwag","ddwagg","ddwags","ddwan","ddwanj","ddwanh","ddwad","ddwal","ddwalg","ddwalm","ddwalb","ddwals","ddwalt","ddwalp","ddwalh","ddwam","ddwab","ddwabs","ddwas","ddwass","ddwang","ddwaj","ddwac","ddwak","ddwat","ddwap","ddwah","ddwae","ddwaeg","ddwaegg","ddwaegs","ddwaen","ddwaenj","ddwaenh","ddwaed","ddwael","ddwaelg","ddwaelm","ddwaelb","ddwaels","ddwaelt","ddwaelp","ddwaelh","ddwaem","ddwaeb","ddwaebs","ddwaes","ddwaess","ddwaeng","ddwaej","ddwaec","ddwaek","ddwaet","ddwaep","ddwaeh","ddoe","ddoeg","ddoegg","ddoegs","ddoen","ddoenj","ddoenh","ddoed","ddoel","ddoelg","ddoelm","ddoelb","ddoels","ddoelt","ddoelp","ddoelh","ddoem","ddoeb","ddoebs","ddoes","ddoess","ddoeng","ddoej","ddoec","ddoek","ddoet","ddoep","ddoeh","ddyo","ddyog","ddyogg","ddyogs","ddyon","ddyonj","ddyonh","ddyod","ddyol","ddyolg","ddyolm","ddyolb","ddyols","ddyolt","ddyolp","ddyolh","ddyom","ddyob","ddyobs","ddyos","ddyoss","ddyong","ddyoj","ddyoc","ddyok","ddyot","ddyop","ddyoh","ddu","ddug","ddugg","ddugs","ddun","ddunj","ddunh","ddud","ddul","ddulg","ddulm","ddulb","dduls","ddult","ddulp","ddulh","ddum","ddub","ddubs","ddus","dduss","ddung","dduj","dduc","dduk","ddut","ddup","dduh","ddweo","ddweog","ddweogg","ddweogs","ddweon","ddweonj","ddweonh","ddweod","ddweol","ddweolg","ddweolm","ddweolb","ddweols","ddweolt","ddweolp","ddweolh","ddweom","ddweob","ddweobs","ddweos","ddweoss","ddweong","ddweoj","ddweoc","ddweok","ddweot","ddweop","ddweoh","ddwe","ddweg","ddwegg","ddwegs","ddwen","ddwenj","ddwenh","ddwed","ddwel","ddwelg","ddwelm","ddwelb","ddwels","ddwelt","ddwelp","ddwelh","ddwem","ddweb","ddwebs","ddwes","ddwess","ddweng","ddwej","ddwec","ddwek","ddwet","ddwep","ddweh","ddwi","ddwig","ddwigg","ddwigs","ddwin","ddwinj","ddwinh","ddwid","ddwil","ddwilg","ddwilm","ddwilb","ddwils","ddwilt","ddwilp","ddwilh"]});var e9=m((_4e,V7)=>{V7.exports=["ddwim","ddwib","ddwibs","ddwis","ddwiss","ddwing","ddwij","ddwic","ddwik","ddwit","ddwip","ddwih","ddyu","ddyug","ddyugg","ddyugs","ddyun","ddyunj","ddyunh","ddyud","ddyul","ddyulg","ddyulm","ddyulb","ddyuls","ddyult","ddyulp","ddyulh","ddyum","ddyub","ddyubs","ddyus","ddyuss","ddyung","ddyuj","ddyuc","ddyuk","ddyut","ddyup","ddyuh","ddeu","ddeug","ddeugg","ddeugs","ddeun","ddeunj","ddeunh","ddeud","ddeul","ddeulg","ddeulm","ddeulb","ddeuls","ddeult","ddeulp","ddeulh","ddeum","ddeub","ddeubs","ddeus","ddeuss","ddeung","ddeuj","ddeuc","ddeuk","ddeut","ddeup","ddeuh","ddyi","ddyig","ddyigg","ddyigs","ddyin","ddyinj","ddyinh","ddyid","ddyil","ddyilg","ddyilm","ddyilb","ddyils","ddyilt","ddyilp","ddyilh","ddyim","ddyib","ddyibs","ddyis","ddyiss","ddying","ddyij","ddyic","ddyik","ddyit","ddyip","ddyih","ddi","ddig","ddigg","ddigs","ddin","ddinj","ddinh","ddid","ddil","ddilg","ddilm","ddilb","ddils","ddilt","ddilp","ddilh","ddim","ddib","ddibs","ddis","ddiss","dding","ddij","ddic","ddik","ddit","ddip","ddih","ra","rag","ragg","rags","ran","ranj","ranh","rad","ral","ralg","ralm","ralb","rals","ralt","ralp","ralh","ram","rab","rabs","ras","rass","rang","raj","rac","rak","rat","rap","rah","rae","raeg","raegg","raegs","raen","raenj","raenh","raed","rael","raelg","raelm","raelb","raels","raelt","raelp","raelh","raem","raeb","raebs","raes","raess","raeng","raej","raec","raek","raet","raep","raeh","rya","ryag","ryagg","ryags","ryan","ryanj","ryanh","ryad","ryal","ryalg","ryalm","ryalb","ryals","ryalt","ryalp","ryalh","ryam","ryab","ryabs","ryas","ryass","ryang","ryaj","ryac","ryak","ryat","ryap","ryah","ryae","ryaeg","ryaegg","ryaegs","ryaen","ryaenj","ryaenh","ryaed","ryael","ryaelg","ryaelm","ryaelb","ryaels","ryaelt","ryaelp","ryaelh","ryaem","ryaeb","ryaebs","ryaes","ryaess","ryaeng","ryaej","ryaec","ryaek","ryaet","ryaep","ryaeh","reo","reog","reogg","reogs","reon","reonj","reonh","reod","reol","reolg","reolm","reolb","reols","reolt","reolp","reolh","reom","reob","reobs","reos"]});var i9=m((R4e,t9)=>{t9.exports=["reoss","reong","reoj","reoc","reok","reot","reop","reoh","re","reg","regg","regs","ren","renj","renh","red","rel","relg","relm","relb","rels","relt","relp","relh","rem","reb","rebs","res","ress","reng","rej","rec","rek","ret","rep","reh","ryeo","ryeog","ryeogg","ryeogs","ryeon","ryeonj","ryeonh","ryeod","ryeol","ryeolg","ryeolm","ryeolb","ryeols","ryeolt","ryeolp","ryeolh","ryeom","ryeob","ryeobs","ryeos","ryeoss","ryeong","ryeoj","ryeoc","ryeok","ryeot","ryeop","ryeoh","rye","ryeg","ryegg","ryegs","ryen","ryenj","ryenh","ryed","ryel","ryelg","ryelm","ryelb","ryels","ryelt","ryelp","ryelh","ryem","ryeb","ryebs","ryes","ryess","ryeng","ryej","ryec","ryek","ryet","ryep","ryeh","ro","rog","rogg","rogs","ron","ronj","ronh","rod","rol","rolg","rolm","rolb","rols","rolt","rolp","rolh","rom","rob","robs","ros","ross","rong","roj","roc","rok","rot","rop","roh","rwa","rwag","rwagg","rwags","rwan","rwanj","rwanh","rwad","rwal","rwalg","rwalm","rwalb","rwals","rwalt","rwalp","rwalh","rwam","rwab","rwabs","rwas","rwass","rwang","rwaj","rwac","rwak","rwat","rwap","rwah","rwae","rwaeg","rwaegg","rwaegs","rwaen","rwaenj","rwaenh","rwaed","rwael","rwaelg","rwaelm","rwaelb","rwaels","rwaelt","rwaelp","rwaelh","rwaem","rwaeb","rwaebs","rwaes","rwaess","rwaeng","rwaej","rwaec","rwaek","rwaet","rwaep","rwaeh","roe","roeg","roegg","roegs","roen","roenj","roenh","roed","roel","roelg","roelm","roelb","roels","roelt","roelp","roelh","roem","roeb","roebs","roes","roess","roeng","roej","roec","roek","roet","roep","roeh","ryo","ryog","ryogg","ryogs","ryon","ryonj","ryonh","ryod","ryol","ryolg","ryolm","ryolb","ryols","ryolt","ryolp","ryolh","ryom","ryob","ryobs","ryos","ryoss","ryong","ryoj","ryoc","ryok","ryot","ryop","ryoh","ru","rug","rugg","rugs","run","runj","runh","rud","rul","rulg","rulm","rulb","ruls","rult","rulp","rulh","rum","rub","rubs","rus","russ","rung","ruj","ruc"]});var r9=m((L4e,n9)=>{n9.exports=["ruk","rut","rup","ruh","rweo","rweog","rweogg","rweogs","rweon","rweonj","rweonh","rweod","rweol","rweolg","rweolm","rweolb","rweols","rweolt","rweolp","rweolh","rweom","rweob","rweobs","rweos","rweoss","rweong","rweoj","rweoc","rweok","rweot","rweop","rweoh","rwe","rweg","rwegg","rwegs","rwen","rwenj","rwenh","rwed","rwel","rwelg","rwelm","rwelb","rwels","rwelt","rwelp","rwelh","rwem","rweb","rwebs","rwes","rwess","rweng","rwej","rwec","rwek","rwet","rwep","rweh","rwi","rwig","rwigg","rwigs","rwin","rwinj","rwinh","rwid","rwil","rwilg","rwilm","rwilb","rwils","rwilt","rwilp","rwilh","rwim","rwib","rwibs","rwis","rwiss","rwing","rwij","rwic","rwik","rwit","rwip","rwih","ryu","ryug","ryugg","ryugs","ryun","ryunj","ryunh","ryud","ryul","ryulg","ryulm","ryulb","ryuls","ryult","ryulp","ryulh","ryum","ryub","ryubs","ryus","ryuss","ryung","ryuj","ryuc","ryuk","ryut","ryup","ryuh","reu","reug","reugg","reugs","reun","reunj","reunh","reud","reul","reulg","reulm","reulb","reuls","reult","reulp","reulh","reum","reub","reubs","reus","reuss","reung","reuj","reuc","reuk","reut","reup","reuh","ryi","ryig","ryigg","ryigs","ryin","ryinj","ryinh","ryid","ryil","ryilg","ryilm","ryilb","ryils","ryilt","ryilp","ryilh","ryim","ryib","ryibs","ryis","ryiss","rying","ryij","ryic","ryik","ryit","ryip","ryih","ri","rig","rigg","rigs","rin","rinj","rinh","rid","ril","rilg","rilm","rilb","rils","rilt","rilp","rilh","rim","rib","ribs","ris","riss","ring","rij","ric","rik","rit","rip","rih","ma","mag","magg","mags","man","manj","manh","mad","mal","malg","malm","malb","mals","malt","malp","malh","mam","mab","mabs","mas","mass","mang","maj","mac","mak","mat","map","mah","mae","maeg","maegg","maegs","maen","maenj","maenh","maed","mael","maelg","maelm","maelb","maels","maelt","maelp","maelh","maem","maeb","maebs","maes","maess","maeng","maej","maec","maek","maet","maep","maeh"]});var s9=m((F4e,o9)=>{o9.exports=["mya","myag","myagg","myags","myan","myanj","myanh","myad","myal","myalg","myalm","myalb","myals","myalt","myalp","myalh","myam","myab","myabs","myas","myass","myang","myaj","myac","myak","myat","myap","myah","myae","myaeg","myaegg","myaegs","myaen","myaenj","myaenh","myaed","myael","myaelg","myaelm","myaelb","myaels","myaelt","myaelp","myaelh","myaem","myaeb","myaebs","myaes","myaess","myaeng","myaej","myaec","myaek","myaet","myaep","myaeh","meo","meog","meogg","meogs","meon","meonj","meonh","meod","meol","meolg","meolm","meolb","meols","meolt","meolp","meolh","meom","meob","meobs","meos","meoss","meong","meoj","meoc","meok","meot","meop","meoh","me","meg","megg","megs","men","menj","menh","med","mel","melg","melm","melb","mels","melt","melp","melh","mem","meb","mebs","mes","mess","meng","mej","mec","mek","met","mep","meh","myeo","myeog","myeogg","myeogs","myeon","myeonj","myeonh","myeod","myeol","myeolg","myeolm","myeolb","myeols","myeolt","myeolp","myeolh","myeom","myeob","myeobs","myeos","myeoss","myeong","myeoj","myeoc","myeok","myeot","myeop","myeoh","mye","myeg","myegg","myegs","myen","myenj","myenh","myed","myel","myelg","myelm","myelb","myels","myelt","myelp","myelh","myem","myeb","myebs","myes","myess","myeng","myej","myec","myek","myet","myep","myeh","mo","mog","mogg","mogs","mon","monj","monh","mod","mol","molg","molm","molb","mols","molt","molp","molh","mom","mob","mobs","mos","moss","mong","moj","moc","mok","mot","mop","moh","mwa","mwag","mwagg","mwags","mwan","mwanj","mwanh","mwad","mwal","mwalg","mwalm","mwalb","mwals","mwalt","mwalp","mwalh","mwam","mwab","mwabs","mwas","mwass","mwang","mwaj","mwac","mwak","mwat","mwap","mwah","mwae","mwaeg","mwaegg","mwaegs","mwaen","mwaenj","mwaenh","mwaed","mwael","mwaelg","mwaelm","mwaelb","mwaels","mwaelt","mwaelp","mwaelh","mwaem","mwaeb","mwaebs","mwaes","mwaess","mwaeng","mwaej","mwaec","mwaek","mwaet","mwaep","mwaeh","moe","moeg","moegg","moegs"]});var l9=m((I4e,a9)=>{a9.exports=["moen","moenj","moenh","moed","moel","moelg","moelm","moelb","moels","moelt","moelp","moelh","moem","moeb","moebs","moes","moess","moeng","moej","moec","moek","moet","moep","moeh","myo","myog","myogg","myogs","myon","myonj","myonh","myod","myol","myolg","myolm","myolb","myols","myolt","myolp","myolh","myom","myob","myobs","myos","myoss","myong","myoj","myoc","myok","myot","myop","myoh","mu","mug","mugg","mugs","mun","munj","munh","mud","mul","mulg","mulm","mulb","muls","mult","mulp","mulh","mum","mub","mubs","mus","muss","mung","muj","muc","muk","mut","mup","muh","mweo","mweog","mweogg","mweogs","mweon","mweonj","mweonh","mweod","mweol","mweolg","mweolm","mweolb","mweols","mweolt","mweolp","mweolh","mweom","mweob","mweobs","mweos","mweoss","mweong","mweoj","mweoc","mweok","mweot","mweop","mweoh","mwe","mweg","mwegg","mwegs","mwen","mwenj","mwenh","mwed","mwel","mwelg","mwelm","mwelb","mwels","mwelt","mwelp","mwelh","mwem","mweb","mwebs","mwes","mwess","mweng","mwej","mwec","mwek","mwet","mwep","mweh","mwi","mwig","mwigg","mwigs","mwin","mwinj","mwinh","mwid","mwil","mwilg","mwilm","mwilb","mwils","mwilt","mwilp","mwilh","mwim","mwib","mwibs","mwis","mwiss","mwing","mwij","mwic","mwik","mwit","mwip","mwih","myu","myug","myugg","myugs","myun","myunj","myunh","myud","myul","myulg","myulm","myulb","myuls","myult","myulp","myulh","myum","myub","myubs","myus","myuss","myung","myuj","myuc","myuk","myut","myup","myuh","meu","meug","meugg","meugs","meun","meunj","meunh","meud","meul","meulg","meulm","meulb","meuls","meult","meulp","meulh","meum","meub","meubs","meus","meuss","meung","meuj","meuc","meuk","meut","meup","meuh","myi","myig","myigg","myigs","myin","myinj","myinh","myid","myil","myilg","myilm","myilb","myils","myilt","myilp","myilh","myim","myib","myibs","myis","myiss","mying","myij","myic","myik","myit","myip","myih","mi","mig","migg","migs","min","minj","minh","mid"]});var c9=m((j4e,u9)=>{u9.exports=["mil","milg","milm","milb","mils","milt","milp","milh","mim","mib","mibs","mis","miss","ming","mij","mic","mik","mit","mip","mih","ba","bag","bagg","bags","ban","banj","banh","bad","bal","balg","balm","balb","bals","balt","balp","balh","bam","bab","babs","bas","bass","bang","baj","bac","bak","bat","bap","bah","bae","baeg","baegg","baegs","baen","baenj","baenh","baed","bael","baelg","baelm","baelb","baels","baelt","baelp","baelh","baem","baeb","baebs","baes","baess","baeng","baej","baec","baek","baet","baep","baeh","bya","byag","byagg","byags","byan","byanj","byanh","byad","byal","byalg","byalm","byalb","byals","byalt","byalp","byalh","byam","byab","byabs","byas","byass","byang","byaj","byac","byak","byat","byap","byah","byae","byaeg","byaegg","byaegs","byaen","byaenj","byaenh","byaed","byael","byaelg","byaelm","byaelb","byaels","byaelt","byaelp","byaelh","byaem","byaeb","byaebs","byaes","byaess","byaeng","byaej","byaec","byaek","byaet","byaep","byaeh","beo","beog","beogg","beogs","beon","beonj","beonh","beod","beol","beolg","beolm","beolb","beols","beolt","beolp","beolh","beom","beob","beobs","beos","beoss","beong","beoj","beoc","beok","beot","beop","beoh","be","beg","begg","begs","ben","benj","benh","bed","bel","belg","belm","belb","bels","belt","belp","belh","bem","beb","bebs","bes","bess","beng","bej","bec","bek","bet","bep","beh","byeo","byeog","byeogg","byeogs","byeon","byeonj","byeonh","byeod","byeol","byeolg","byeolm","byeolb","byeols","byeolt","byeolp","byeolh","byeom","byeob","byeobs","byeos","byeoss","byeong","byeoj","byeoc","byeok","byeot","byeop","byeoh","bye","byeg","byegg","byegs","byen","byenj","byenh","byed","byel","byelg","byelm","byelb","byels","byelt","byelp","byelh","byem","byeb","byebs","byes","byess","byeng","byej","byec","byek","byet","byep","byeh","bo","bog","bogg","bogs","bon","bonj","bonh","bod","bol","bolg","bolm","bolb"]});var d9=m((A4e,h9)=>{h9.exports=["bols","bolt","bolp","bolh","bom","bob","bobs","bos","boss","bong","boj","boc","bok","bot","bop","boh","bwa","bwag","bwagg","bwags","bwan","bwanj","bwanh","bwad","bwal","bwalg","bwalm","bwalb","bwals","bwalt","bwalp","bwalh","bwam","bwab","bwabs","bwas","bwass","bwang","bwaj","bwac","bwak","bwat","bwap","bwah","bwae","bwaeg","bwaegg","bwaegs","bwaen","bwaenj","bwaenh","bwaed","bwael","bwaelg","bwaelm","bwaelb","bwaels","bwaelt","bwaelp","bwaelh","bwaem","bwaeb","bwaebs","bwaes","bwaess","bwaeng","bwaej","bwaec","bwaek","bwaet","bwaep","bwaeh","boe","boeg","boegg","boegs","boen","boenj","boenh","boed","boel","boelg","boelm","boelb","boels","boelt","boelp","boelh","boem","boeb","boebs","boes","boess","boeng","boej","boec","boek","boet","boep","boeh","byo","byog","byogg","byogs","byon","byonj","byonh","byod","byol","byolg","byolm","byolb","byols","byolt","byolp","byolh","byom","byob","byobs","byos","byoss","byong","byoj","byoc","byok","byot","byop","byoh","bu","bug","bugg","bugs","bun","bunj","bunh","bud","bul","bulg","bulm","bulb","buls","bult","bulp","bulh","bum","bub","bubs","bus","buss","bung","buj","buc","buk","but","bup","buh","bweo","bweog","bweogg","bweogs","bweon","bweonj","bweonh","bweod","bweol","bweolg","bweolm","bweolb","bweols","bweolt","bweolp","bweolh","bweom","bweob","bweobs","bweos","bweoss","bweong","bweoj","bweoc","bweok","bweot","bweop","bweoh","bwe","bweg","bwegg","bwegs","bwen","bwenj","bwenh","bwed","bwel","bwelg","bwelm","bwelb","bwels","bwelt","bwelp","bwelh","bwem","bweb","bwebs","bwes","bwess","bweng","bwej","bwec","bwek","bwet","bwep","bweh","bwi","bwig","bwigg","bwigs","bwin","bwinj","bwinh","bwid","bwil","bwilg","bwilm","bwilb","bwils","bwilt","bwilp","bwilh","bwim","bwib","bwibs","bwis","bwiss","bwing","bwij","bwic","bwik","bwit","bwip","bwih","byu","byug","byugg","byugs","byun","byunj","byunh","byud","byul","byulg","byulm","byulb","byuls","byult","byulp","byulh"]});var f9=m((O4e,g9)=>{g9.exports=["byum","byub","byubs","byus","byuss","byung","byuj","byuc","byuk","byut","byup","byuh","beu","beug","beugg","beugs","beun","beunj","beunh","beud","beul","beulg","beulm","beulb","beuls","beult","beulp","beulh","beum","beub","beubs","beus","beuss","beung","beuj","beuc","beuk","beut","beup","beuh","byi","byig","byigg","byigs","byin","byinj","byinh","byid","byil","byilg","byilm","byilb","byils","byilt","byilp","byilh","byim","byib","byibs","byis","byiss","bying","byij","byic","byik","byit","byip","byih","bi","big","bigg","bigs","bin","binj","binh","bid","bil","bilg","bilm","bilb","bils","bilt","bilp","bilh","bim","bib","bibs","bis","biss","bing","bij","bic","bik","bit","bip","bih","bba","bbag","bbagg","bbags","bban","bbanj","bbanh","bbad","bbal","bbalg","bbalm","bbalb","bbals","bbalt","bbalp","bbalh","bbam","bbab","bbabs","bbas","bbass","bbang","bbaj","bbac","bbak","bbat","bbap","bbah","bbae","bbaeg","bbaegg","bbaegs","bbaen","bbaenj","bbaenh","bbaed","bbael","bbaelg","bbaelm","bbaelb","bbaels","bbaelt","bbaelp","bbaelh","bbaem","bbaeb","bbaebs","bbaes","bbaess","bbaeng","bbaej","bbaec","bbaek","bbaet","bbaep","bbaeh","bbya","bbyag","bbyagg","bbyags","bbyan","bbyanj","bbyanh","bbyad","bbyal","bbyalg","bbyalm","bbyalb","bbyals","bbyalt","bbyalp","bbyalh","bbyam","bbyab","bbyabs","bbyas","bbyass","bbyang","bbyaj","bbyac","bbyak","bbyat","bbyap","bbyah","bbyae","bbyaeg","bbyaegg","bbyaegs","bbyaen","bbyaenj","bbyaenh","bbyaed","bbyael","bbyaelg","bbyaelm","bbyaelb","bbyaels","bbyaelt","bbyaelp","bbyaelh","bbyaem","bbyaeb","bbyaebs","bbyaes","bbyaess","bbyaeng","bbyaej","bbyaec","bbyaek","bbyaet","bbyaep","bbyaeh","bbeo","bbeog","bbeogg","bbeogs","bbeon","bbeonj","bbeonh","bbeod","bbeol","bbeolg","bbeolm","bbeolb","bbeols","bbeolt","bbeolp","bbeolh","bbeom","bbeob","bbeobs","bbeos","bbeoss","bbeong","bbeoj","bbeoc","bbeok","bbeot","bbeop","bbeoh","bbe","bbeg","bbegg","bbegs","bben","bbenj","bbenh","bbed","bbel","bbelg","bbelm","bbelb","bbels","bbelt","bbelp","bbelh","bbem","bbeb","bbebs","bbes"]});var m9=m((M4e,p9)=>{p9.exports=["bbess","bbeng","bbej","bbec","bbek","bbet","bbep","bbeh","bbyeo","bbyeog","bbyeogg","bbyeogs","bbyeon","bbyeonj","bbyeonh","bbyeod","bbyeol","bbyeolg","bbyeolm","bbyeolb","bbyeols","bbyeolt","bbyeolp","bbyeolh","bbyeom","bbyeob","bbyeobs","bbyeos","bbyeoss","bbyeong","bbyeoj","bbyeoc","bbyeok","bbyeot","bbyeop","bbyeoh","bbye","bbyeg","bbyegg","bbyegs","bbyen","bbyenj","bbyenh","bbyed","bbyel","bbyelg","bbyelm","bbyelb","bbyels","bbyelt","bbyelp","bbyelh","bbyem","bbyeb","bbyebs","bbyes","bbyess","bbyeng","bbyej","bbyec","bbyek","bbyet","bbyep","bbyeh","bbo","bbog","bbogg","bbogs","bbon","bbonj","bbonh","bbod","bbol","bbolg","bbolm","bbolb","bbols","bbolt","bbolp","bbolh","bbom","bbob","bbobs","bbos","bboss","bbong","bboj","bboc","bbok","bbot","bbop","bboh","bbwa","bbwag","bbwagg","bbwags","bbwan","bbwanj","bbwanh","bbwad","bbwal","bbwalg","bbwalm","bbwalb","bbwals","bbwalt","bbwalp","bbwalh","bbwam","bbwab","bbwabs","bbwas","bbwass","bbwang","bbwaj","bbwac","bbwak","bbwat","bbwap","bbwah","bbwae","bbwaeg","bbwaegg","bbwaegs","bbwaen","bbwaenj","bbwaenh","bbwaed","bbwael","bbwaelg","bbwaelm","bbwaelb","bbwaels","bbwaelt","bbwaelp","bbwaelh","bbwaem","bbwaeb","bbwaebs","bbwaes","bbwaess","bbwaeng","bbwaej","bbwaec","bbwaek","bbwaet","bbwaep","bbwaeh","bboe","bboeg","bboegg","bboegs","bboen","bboenj","bboenh","bboed","bboel","bboelg","bboelm","bboelb","bboels","bboelt","bboelp","bboelh","bboem","bboeb","bboebs","bboes","bboess","bboeng","bboej","bboec","bboek","bboet","bboep","bboeh","bbyo","bbyog","bbyogg","bbyogs","bbyon","bbyonj","bbyonh","bbyod","bbyol","bbyolg","bbyolm","bbyolb","bbyols","bbyolt","bbyolp","bbyolh","bbyom","bbyob","bbyobs","bbyos","bbyoss","bbyong","bbyoj","bbyoc","bbyok","bbyot","bbyop","bbyoh","bbu","bbug","bbugg","bbugs","bbun","bbunj","bbunh","bbud","bbul","bbulg","bbulm","bbulb","bbuls","bbult","bbulp","bbulh","bbum","bbub","bbubs","bbus","bbuss","bbung","bbuj","bbuc","bbuk","bbut","bbup","bbuh","bbweo","bbweog","bbweogg","bbweogs","bbweon","bbweonj","bbweonh","bbweod","bbweol","bbweolg","bbweolm","bbweolb","bbweols","bbweolt","bbweolp","bbweolh","bbweom","bbweob","bbweobs","bbweos","bbweoss","bbweong","bbweoj","bbweoc"]});var y9=m((N4e,b9)=>{b9.exports=["bbweok","bbweot","bbweop","bbweoh","bbwe","bbweg","bbwegg","bbwegs","bbwen","bbwenj","bbwenh","bbwed","bbwel","bbwelg","bbwelm","bbwelb","bbwels","bbwelt","bbwelp","bbwelh","bbwem","bbweb","bbwebs","bbwes","bbwess","bbweng","bbwej","bbwec","bbwek","bbwet","bbwep","bbweh","bbwi","bbwig","bbwigg","bbwigs","bbwin","bbwinj","bbwinh","bbwid","bbwil","bbwilg","bbwilm","bbwilb","bbwils","bbwilt","bbwilp","bbwilh","bbwim","bbwib","bbwibs","bbwis","bbwiss","bbwing","bbwij","bbwic","bbwik","bbwit","bbwip","bbwih","bbyu","bbyug","bbyugg","bbyugs","bbyun","bbyunj","bbyunh","bbyud","bbyul","bbyulg","bbyulm","bbyulb","bbyuls","bbyult","bbyulp","bbyulh","bbyum","bbyub","bbyubs","bbyus","bbyuss","bbyung","bbyuj","bbyuc","bbyuk","bbyut","bbyup","bbyuh","bbeu","bbeug","bbeugg","bbeugs","bbeun","bbeunj","bbeunh","bbeud","bbeul","bbeulg","bbeulm","bbeulb","bbeuls","bbeult","bbeulp","bbeulh","bbeum","bbeub","bbeubs","bbeus","bbeuss","bbeung","bbeuj","bbeuc","bbeuk","bbeut","bbeup","bbeuh","bbyi","bbyig","bbyigg","bbyigs","bbyin","bbyinj","bbyinh","bbyid","bbyil","bbyilg","bbyilm","bbyilb","bbyils","bbyilt","bbyilp","bbyilh","bbyim","bbyib","bbyibs","bbyis","bbyiss","bbying","bbyij","bbyic","bbyik","bbyit","bbyip","bbyih","bbi","bbig","bbigg","bbigs","bbin","bbinj","bbinh","bbid","bbil","bbilg","bbilm","bbilb","bbils","bbilt","bbilp","bbilh","bbim","bbib","bbibs","bbis","bbiss","bbing","bbij","bbic","bbik","bbit","bbip","bbih","sa","sag","sagg","sags","san","sanj","sanh","sad","sal","salg","salm","salb","sals","salt","salp","salh","sam","sab","sabs","sas","sass","sang","saj","sac","sak","sat","sap","sah","sae","saeg","saegg","saegs","saen","saenj","saenh","saed","sael","saelg","saelm","saelb","saels","saelt","saelp","saelh","saem","saeb","saebs","saes","saess","saeng","saej","saec","saek","saet","saep","saeh","sya","syag","syagg","syags","syan","syanj","syanh","syad","syal","syalg","syalm","syalb","syals","syalt","syalp","syalh","syam","syab","syabs","syas","syass","syang","syaj","syac","syak","syat","syap","syah"]});var w9=m((B4e,v9)=>{v9.exports=["syae","syaeg","syaegg","syaegs","syaen","syaenj","syaenh","syaed","syael","syaelg","syaelm","syaelb","syaels","syaelt","syaelp","syaelh","syaem","syaeb","syaebs","syaes","syaess","syaeng","syaej","syaec","syaek","syaet","syaep","syaeh","seo","seog","seogg","seogs","seon","seonj","seonh","seod","seol","seolg","seolm","seolb","seols","seolt","seolp","seolh","seom","seob","seobs","seos","seoss","seong","seoj","seoc","seok","seot","seop","seoh","se","seg","segg","segs","sen","senj","senh","sed","sel","selg","selm","selb","sels","selt","selp","selh","sem","seb","sebs","ses","sess","seng","sej","sec","sek","set","sep","seh","syeo","syeog","syeogg","syeogs","syeon","syeonj","syeonh","syeod","syeol","syeolg","syeolm","syeolb","syeols","syeolt","syeolp","syeolh","syeom","syeob","syeobs","syeos","syeoss","syeong","syeoj","syeoc","syeok","syeot","syeop","syeoh","sye","syeg","syegg","syegs","syen","syenj","syenh","syed","syel","syelg","syelm","syelb","syels","syelt","syelp","syelh","syem","syeb","syebs","syes","syess","syeng","syej","syec","syek","syet","syep","syeh","so","sog","sogg","sogs","son","sonj","sonh","sod","sol","solg","solm","solb","sols","solt","solp","solh","som","sob","sobs","sos","soss","song","soj","soc","sok","sot","sop","soh","swa","swag","swagg","swags","swan","swanj","swanh","swad","swal","swalg","swalm","swalb","swals","swalt","swalp","swalh","swam","swab","swabs","swas","swass","swang","swaj","swac","swak","swat","swap","swah","swae","swaeg","swaegg","swaegs","swaen","swaenj","swaenh","swaed","swael","swaelg","swaelm","swaelb","swaels","swaelt","swaelp","swaelh","swaem","swaeb","swaebs","swaes","swaess","swaeng","swaej","swaec","swaek","swaet","swaep","swaeh","soe","soeg","soegg","soegs","soen","soenj","soenh","soed","soel","soelg","soelm","soelb","soels","soelt","soelp","soelh","soem","soeb","soebs","soes","soess","soeng","soej","soec","soek","soet","soep","soeh","syo","syog","syogg","syogs"]});var x9=m((H4e,D9)=>{D9.exports=["syon","syonj","syonh","syod","syol","syolg","syolm","syolb","syols","syolt","syolp","syolh","syom","syob","syobs","syos","syoss","syong","syoj","syoc","syok","syot","syop","syoh","su","sug","sugg","sugs","sun","sunj","sunh","sud","sul","sulg","sulm","sulb","suls","sult","sulp","sulh","sum","sub","subs","sus","suss","sung","suj","suc","suk","sut","sup","suh","sweo","sweog","sweogg","sweogs","sweon","sweonj","sweonh","sweod","sweol","sweolg","sweolm","sweolb","sweols","sweolt","sweolp","sweolh","sweom","sweob","sweobs","sweos","sweoss","sweong","sweoj","sweoc","sweok","sweot","sweop","sweoh","swe","sweg","swegg","swegs","swen","swenj","swenh","swed","swel","swelg","swelm","swelb","swels","swelt","swelp","swelh","swem","sweb","swebs","swes","swess","sweng","swej","swec","swek","swet","swep","sweh","swi","swig","swigg","swigs","swin","swinj","swinh","swid","swil","swilg","swilm","swilb","swils","swilt","swilp","swilh","swim","swib","swibs","swis","swiss","swing","swij","swic","swik","swit","swip","swih","syu","syug","syugg","syugs","syun","syunj","syunh","syud","syul","syulg","syulm","syulb","syuls","syult","syulp","syulh","syum","syub","syubs","syus","syuss","syung","syuj","syuc","syuk","syut","syup","syuh","seu","seug","seugg","seugs","seun","seunj","seunh","seud","seul","seulg","seulm","seulb","seuls","seult","seulp","seulh","seum","seub","seubs","seus","seuss","seung","seuj","seuc","seuk","seut","seup","seuh","syi","syig","syigg","syigs","syin","syinj","syinh","syid","syil","syilg","syilm","syilb","syils","syilt","syilp","syilh","syim","syib","syibs","syis","syiss","sying","syij","syic","syik","syit","syip","syih","si","sig","sigg","sigs","sin","sinj","sinh","sid","sil","silg","silm","silb","sils","silt","silp","silh","sim","sib","sibs","sis","siss","sing","sij","sic","sik","sit","sip","sih","ssa","ssag","ssagg","ssags","ssan","ssanj","ssanh","ssad"]});var S9=m((q4e,C9)=>{C9.exports=["ssal","ssalg","ssalm","ssalb","ssals","ssalt","ssalp","ssalh","ssam","ssab","ssabs","ssas","ssass","ssang","ssaj","ssac","ssak","ssat","ssap","ssah","ssae","ssaeg","ssaegg","ssaegs","ssaen","ssaenj","ssaenh","ssaed","ssael","ssaelg","ssaelm","ssaelb","ssaels","ssaelt","ssaelp","ssaelh","ssaem","ssaeb","ssaebs","ssaes","ssaess","ssaeng","ssaej","ssaec","ssaek","ssaet","ssaep","ssaeh","ssya","ssyag","ssyagg","ssyags","ssyan","ssyanj","ssyanh","ssyad","ssyal","ssyalg","ssyalm","ssyalb","ssyals","ssyalt","ssyalp","ssyalh","ssyam","ssyab","ssyabs","ssyas","ssyass","ssyang","ssyaj","ssyac","ssyak","ssyat","ssyap","ssyah","ssyae","ssyaeg","ssyaegg","ssyaegs","ssyaen","ssyaenj","ssyaenh","ssyaed","ssyael","ssyaelg","ssyaelm","ssyaelb","ssyaels","ssyaelt","ssyaelp","ssyaelh","ssyaem","ssyaeb","ssyaebs","ssyaes","ssyaess","ssyaeng","ssyaej","ssyaec","ssyaek","ssyaet","ssyaep","ssyaeh","sseo","sseog","sseogg","sseogs","sseon","sseonj","sseonh","sseod","sseol","sseolg","sseolm","sseolb","sseols","sseolt","sseolp","sseolh","sseom","sseob","sseobs","sseos","sseoss","sseong","sseoj","sseoc","sseok","sseot","sseop","sseoh","sse","sseg","ssegg","ssegs","ssen","ssenj","ssenh","ssed","ssel","sselg","sselm","sselb","ssels","sselt","sselp","sselh","ssem","sseb","ssebs","sses","ssess","sseng","ssej","ssec","ssek","sset","ssep","sseh","ssyeo","ssyeog","ssyeogg","ssyeogs","ssyeon","ssyeonj","ssyeonh","ssyeod","ssyeol","ssyeolg","ssyeolm","ssyeolb","ssyeols","ssyeolt","ssyeolp","ssyeolh","ssyeom","ssyeob","ssyeobs","ssyeos","ssyeoss","ssyeong","ssyeoj","ssyeoc","ssyeok","ssyeot","ssyeop","ssyeoh","ssye","ssyeg","ssyegg","ssyegs","ssyen","ssyenj","ssyenh","ssyed","ssyel","ssyelg","ssyelm","ssyelb","ssyels","ssyelt","ssyelp","ssyelh","ssyem","ssyeb","ssyebs","ssyes","ssyess","ssyeng","ssyej","ssyec","ssyek","ssyet","ssyep","ssyeh","sso","ssog","ssogg","ssogs","sson","ssonj","ssonh","ssod","ssol","ssolg","ssolm","ssolb","ssols","ssolt","ssolp","ssolh","ssom","ssob","ssobs","ssos","ssoss","ssong","ssoj","ssoc","ssok","ssot","ssop","ssoh","sswa","sswag","sswagg","sswags","sswan","sswanj","sswanh","sswad","sswal","sswalg","sswalm","sswalb"]});var k9=m((Y4e,T9)=>{T9.exports=["sswals","sswalt","sswalp","sswalh","sswam","sswab","sswabs","sswas","sswass","sswang","sswaj","sswac","sswak","sswat","sswap","sswah","sswae","sswaeg","sswaegg","sswaegs","sswaen","sswaenj","sswaenh","sswaed","sswael","sswaelg","sswaelm","sswaelb","sswaels","sswaelt","sswaelp","sswaelh","sswaem","sswaeb","sswaebs","sswaes","sswaess","sswaeng","sswaej","sswaec","sswaek","sswaet","sswaep","sswaeh","ssoe","ssoeg","ssoegg","ssoegs","ssoen","ssoenj","ssoenh","ssoed","ssoel","ssoelg","ssoelm","ssoelb","ssoels","ssoelt","ssoelp","ssoelh","ssoem","ssoeb","ssoebs","ssoes","ssoess","ssoeng","ssoej","ssoec","ssoek","ssoet","ssoep","ssoeh","ssyo","ssyog","ssyogg","ssyogs","ssyon","ssyonj","ssyonh","ssyod","ssyol","ssyolg","ssyolm","ssyolb","ssyols","ssyolt","ssyolp","ssyolh","ssyom","ssyob","ssyobs","ssyos","ssyoss","ssyong","ssyoj","ssyoc","ssyok","ssyot","ssyop","ssyoh","ssu","ssug","ssugg","ssugs","ssun","ssunj","ssunh","ssud","ssul","ssulg","ssulm","ssulb","ssuls","ssult","ssulp","ssulh","ssum","ssub","ssubs","ssus","ssuss","ssung","ssuj","ssuc","ssuk","ssut","ssup","ssuh","ssweo","ssweog","ssweogg","ssweogs","ssweon","ssweonj","ssweonh","ssweod","ssweol","ssweolg","ssweolm","ssweolb","ssweols","ssweolt","ssweolp","ssweolh","ssweom","ssweob","ssweobs","ssweos","ssweoss","ssweong","ssweoj","ssweoc","ssweok","ssweot","ssweop","ssweoh","sswe","ssweg","sswegg","sswegs","sswen","sswenj","sswenh","sswed","sswel","sswelg","sswelm","sswelb","sswels","sswelt","sswelp","sswelh","sswem","ssweb","sswebs","sswes","sswess","ssweng","sswej","sswec","sswek","sswet","sswep","ssweh","sswi","sswig","sswigg","sswigs","sswin","sswinj","sswinh","sswid","sswil","sswilg","sswilm","sswilb","sswils","sswilt","sswilp","sswilh","sswim","sswib","sswibs","sswis","sswiss","sswing","sswij","sswic","sswik","sswit","sswip","sswih","ssyu","ssyug","ssyugg","ssyugs","ssyun","ssyunj","ssyunh","ssyud","ssyul","ssyulg","ssyulm","ssyulb","ssyuls","ssyult","ssyulp","ssyulh","ssyum","ssyub","ssyubs","ssyus","ssyuss","ssyung","ssyuj","ssyuc","ssyuk","ssyut","ssyup","ssyuh","sseu","sseug","sseugg","sseugs","sseun","sseunj","sseunh","sseud","sseul","sseulg","sseulm","sseulb","sseuls","sseult","sseulp","sseulh"]});var P9=m((W4e,E9)=>{E9.exports=["sseum","sseub","sseubs","sseus","sseuss","sseung","sseuj","sseuc","sseuk","sseut","sseup","sseuh","ssyi","ssyig","ssyigg","ssyigs","ssyin","ssyinj","ssyinh","ssyid","ssyil","ssyilg","ssyilm","ssyilb","ssyils","ssyilt","ssyilp","ssyilh","ssyim","ssyib","ssyibs","ssyis","ssyiss","ssying","ssyij","ssyic","ssyik","ssyit","ssyip","ssyih","ssi","ssig","ssigg","ssigs","ssin","ssinj","ssinh","ssid","ssil","ssilg","ssilm","ssilb","ssils","ssilt","ssilp","ssilh","ssim","ssib","ssibs","ssis","ssiss","ssing","ssij","ssic","ssik","ssit","ssip","ssih","a","ag","agg","ags","an","anj","anh","ad","al","alg","alm","alb","als","alt","alp","alh","am","ab","abs","as","ass","ang","aj","ac","ak","at","ap","ah","ae","aeg","aegg","aegs","aen","aenj","aenh","aed","ael","aelg","aelm","aelb","aels","aelt","aelp","aelh","aem","aeb","aebs","aes","aess","aeng","aej","aec","aek","aet","aep","aeh","ya","yag","yagg","yags","yan","yanj","yanh","yad","yal","yalg","yalm","yalb","yals","yalt","yalp","yalh","yam","yab","yabs","yas","yass","yang","yaj","yac","yak","yat","yap","yah","yae","yaeg","yaegg","yaegs","yaen","yaenj","yaenh","yaed","yael","yaelg","yaelm","yaelb","yaels","yaelt","yaelp","yaelh","yaem","yaeb","yaebs","yaes","yaess","yaeng","yaej","yaec","yaek","yaet","yaep","yaeh","eo","eog","eogg","eogs","eon","eonj","eonh","eod","eol","eolg","eolm","eolb","eols","eolt","eolp","eolh","eom","eob","eobs","eos","eoss","eong","eoj","eoc","eok","eot","eop","eoh","e","eg","egg","egs","en","enj","enh","ed","el","elg","elm","elb","els","elt","elp","elh","em","eb","ebs","es","ess","eng","ej","ec","ek","et","ep","eh","yeo","yeog","yeogg","yeogs","yeon","yeonj","yeonh","yeod","yeol","yeolg","yeolm","yeolb","yeols","yeolt","yeolp","yeolh","yeom","yeob","yeobs","yeos"]});var R9=m((Z4e,_9)=>{_9.exports=["yeoss","yeong","yeoj","yeoc","yeok","yeot","yeop","yeoh","ye","yeg","yegg","yegs","yen","yenj","yenh","yed","yel","yelg","yelm","yelb","yels","yelt","yelp","yelh","yem","yeb","yebs","yes","yess","yeng","yej","yec","yek","yet","yep","yeh","o","og","ogg","ogs","on","onj","onh","od","ol","olg","olm","olb","ols","olt","olp","olh","om","ob","obs","os","oss","ong","oj","oc","ok","ot","op","oh","wa","wag","wagg","wags","wan","wanj","wanh","wad","wal","walg","walm","walb","wals","walt","walp","walh","wam","wab","wabs","was","wass","wang","waj","wac","wak","wat","wap","wah","wae","waeg","waegg","waegs","waen","waenj","waenh","waed","wael","waelg","waelm","waelb","waels","waelt","waelp","waelh","waem","waeb","waebs","waes","waess","waeng","waej","waec","waek","waet","waep","waeh","oe","oeg","oegg","oegs","oen","oenj","oenh","oed","oel","oelg","oelm","oelb","oels","oelt","oelp","oelh","oem","oeb","oebs","oes","oess","oeng","oej","oec","oek","oet","oep","oeh","yo","yog","yogg","yogs","yon","yonj","yonh","yod","yol","yolg","yolm","yolb","yols","yolt","yolp","yolh","yom","yob","yobs","yos","yoss","yong","yoj","yoc","yok","yot","yop","yoh","u","ug","ugg","ugs","un","unj","unh","ud","ul","ulg","ulm","ulb","uls","ult","ulp","ulh","um","ub","ubs","us","uss","ung","uj","uc","uk","ut","up","uh","weo","weog","weogg","weogs","weon","weonj","weonh","weod","weol","weolg","weolm","weolb","weols","weolt","weolp","weolh","weom","weob","weobs","weos","weoss","weong","weoj","weoc","weok","weot","weop","weoh","we","weg","wegg","wegs","wen","wenj","wenh","wed","wel","welg","welm","welb","wels","welt","welp","welh","wem","web","webs","wes","wess","weng","wej","wec"]});var F9=m((J4e,L9)=>{L9.exports=["wek","wet","wep","weh","wi","wig","wigg","wigs","win","winj","winh","wid","wil","wilg","wilm","wilb","wils","wilt","wilp","wilh","wim","wib","wibs","wis","wiss","wing","wij","wic","wik","wit","wip","wih","yu","yug","yugg","yugs","yun","yunj","yunh","yud","yul","yulg","yulm","yulb","yuls","yult","yulp","yulh","yum","yub","yubs","yus","yuss","yung","yuj","yuc","yuk","yut","yup","yuh","eu","eug","eugg","eugs","eun","eunj","eunh","eud","eul","eulg","eulm","eulb","euls","eult","eulp","eulh","eum","eub","eubs","eus","euss","eung","euj","euc","euk","eut","eup","euh","yi","yig","yigg","yigs","yin","yinj","yinh","yid","yil","yilg","yilm","yilb","yils","yilt","yilp","yilh","yim","yib","yibs","yis","yiss","ying","yij","yic","yik","yit","yip","yih","i","ig","igg","igs","in","inj","inh","id","il","ilg","ilm","ilb","ils","ilt","ilp","ilh","im","ib","ibs","is","iss","ing","ij","ic","ik","it","ip","ih","ja","jag","jagg","jags","jan","janj","janh","jad","jal","jalg","jalm","jalb","jals","jalt","jalp","jalh","jam","jab","jabs","jas","jass","jang","jaj","jac","jak","jat","jap","jah","jae","jaeg","jaegg","jaegs","jaen","jaenj","jaenh","jaed","jael","jaelg","jaelm","jaelb","jaels","jaelt","jaelp","jaelh","jaem","jaeb","jaebs","jaes","jaess","jaeng","jaej","jaec","jaek","jaet","jaep","jaeh","jya","jyag","jyagg","jyags","jyan","jyanj","jyanh","jyad","jyal","jyalg","jyalm","jyalb","jyals","jyalt","jyalp","jyalh","jyam","jyab","jyabs","jyas","jyass","jyang","jyaj","jyac","jyak","jyat","jyap","jyah","jyae","jyaeg","jyaegg","jyaegs","jyaen","jyaenj","jyaenh","jyaed","jyael","jyaelg","jyaelm","jyaelb","jyaels","jyaelt","jyaelp","jyaelh","jyaem","jyaeb","jyaebs","jyaes","jyaess","jyaeng","jyaej","jyaec","jyaek","jyaet","jyaep","jyaeh"]});var j9=m(($4e,I9)=>{I9.exports=["jeo","jeog","jeogg","jeogs","jeon","jeonj","jeonh","jeod","jeol","jeolg","jeolm","jeolb","jeols","jeolt","jeolp","jeolh","jeom","jeob","jeobs","jeos","jeoss","jeong","jeoj","jeoc","jeok","jeot","jeop","jeoh","je","jeg","jegg","jegs","jen","jenj","jenh","jed","jel","jelg","jelm","jelb","jels","jelt","jelp","jelh","jem","jeb","jebs","jes","jess","jeng","jej","jec","jek","jet","jep","jeh","jyeo","jyeog","jyeogg","jyeogs","jyeon","jyeonj","jyeonh","jyeod","jyeol","jyeolg","jyeolm","jyeolb","jyeols","jyeolt","jyeolp","jyeolh","jyeom","jyeob","jyeobs","jyeos","jyeoss","jyeong","jyeoj","jyeoc","jyeok","jyeot","jyeop","jyeoh","jye","jyeg","jyegg","jyegs","jyen","jyenj","jyenh","jyed","jyel","jyelg","jyelm","jyelb","jyels","jyelt","jyelp","jyelh","jyem","jyeb","jyebs","jyes","jyess","jyeng","jyej","jyec","jyek","jyet","jyep","jyeh","jo","jog","jogg","jogs","jon","jonj","jonh","jod","jol","jolg","jolm","jolb","jols","jolt","jolp","jolh","jom","job","jobs","jos","joss","jong","joj","joc","jok","jot","jop","joh","jwa","jwag","jwagg","jwags","jwan","jwanj","jwanh","jwad","jwal","jwalg","jwalm","jwalb","jwals","jwalt","jwalp","jwalh","jwam","jwab","jwabs","jwas","jwass","jwang","jwaj","jwac","jwak","jwat","jwap","jwah","jwae","jwaeg","jwaegg","jwaegs","jwaen","jwaenj","jwaenh","jwaed","jwael","jwaelg","jwaelm","jwaelb","jwaels","jwaelt","jwaelp","jwaelh","jwaem","jwaeb","jwaebs","jwaes","jwaess","jwaeng","jwaej","jwaec","jwaek","jwaet","jwaep","jwaeh","joe","joeg","joegg","joegs","joen","joenj","joenh","joed","joel","joelg","joelm","joelb","joels","joelt","joelp","joelh","joem","joeb","joebs","joes","joess","joeng","joej","joec","joek","joet","joep","joeh","jyo","jyog","jyogg","jyogs","jyon","jyonj","jyonh","jyod","jyol","jyolg","jyolm","jyolb","jyols","jyolt","jyolp","jyolh","jyom","jyob","jyobs","jyos","jyoss","jyong","jyoj","jyoc","jyok","jyot","jyop","jyoh","ju","jug","jugg","jugs"]});var O9=m((X4e,A9)=>{A9.exports=["jun","junj","junh","jud","jul","julg","julm","julb","juls","jult","julp","julh","jum","jub","jubs","jus","juss","jung","juj","juc","juk","jut","jup","juh","jweo","jweog","jweogg","jweogs","jweon","jweonj","jweonh","jweod","jweol","jweolg","jweolm","jweolb","jweols","jweolt","jweolp","jweolh","jweom","jweob","jweobs","jweos","jweoss","jweong","jweoj","jweoc","jweok","jweot","jweop","jweoh","jwe","jweg","jwegg","jwegs","jwen","jwenj","jwenh","jwed","jwel","jwelg","jwelm","jwelb","jwels","jwelt","jwelp","jwelh","jwem","jweb","jwebs","jwes","jwess","jweng","jwej","jwec","jwek","jwet","jwep","jweh","jwi","jwig","jwigg","jwigs","jwin","jwinj","jwinh","jwid","jwil","jwilg","jwilm","jwilb","jwils","jwilt","jwilp","jwilh","jwim","jwib","jwibs","jwis","jwiss","jwing","jwij","jwic","jwik","jwit","jwip","jwih","jyu","jyug","jyugg","jyugs","jyun","jyunj","jyunh","jyud","jyul","jyulg","jyulm","jyulb","jyuls","jyult","jyulp","jyulh","jyum","jyub","jyubs","jyus","jyuss","jyung","jyuj","jyuc","jyuk","jyut","jyup","jyuh","jeu","jeug","jeugg","jeugs","jeun","jeunj","jeunh","jeud","jeul","jeulg","jeulm","jeulb","jeuls","jeult","jeulp","jeulh","jeum","jeub","jeubs","jeus","jeuss","jeung","jeuj","jeuc","jeuk","jeut","jeup","jeuh","jyi","jyig","jyigg","jyigs","jyin","jyinj","jyinh","jyid","jyil","jyilg","jyilm","jyilb","jyils","jyilt","jyilp","jyilh","jyim","jyib","jyibs","jyis","jyiss","jying","jyij","jyic","jyik","jyit","jyip","jyih","ji","jig","jigg","jigs","jin","jinj","jinh","jid","jil","jilg","jilm","jilb","jils","jilt","jilp","jilh","jim","jib","jibs","jis","jiss","jing","jij","jic","jik","jit","jip","jih","jja","jjag","jjagg","jjags","jjan","jjanj","jjanh","jjad","jjal","jjalg","jjalm","jjalb","jjals","jjalt","jjalp","jjalh","jjam","jjab","jjabs","jjas","jjass","jjang","jjaj","jjac","jjak","jjat","jjap","jjah","jjae","jjaeg","jjaegg","jjaegs","jjaen","jjaenj","jjaenh","jjaed"]});var N9=m((U4e,M9)=>{M9.exports=["jjael","jjaelg","jjaelm","jjaelb","jjaels","jjaelt","jjaelp","jjaelh","jjaem","jjaeb","jjaebs","jjaes","jjaess","jjaeng","jjaej","jjaec","jjaek","jjaet","jjaep","jjaeh","jjya","jjyag","jjyagg","jjyags","jjyan","jjyanj","jjyanh","jjyad","jjyal","jjyalg","jjyalm","jjyalb","jjyals","jjyalt","jjyalp","jjyalh","jjyam","jjyab","jjyabs","jjyas","jjyass","jjyang","jjyaj","jjyac","jjyak","jjyat","jjyap","jjyah","jjyae","jjyaeg","jjyaegg","jjyaegs","jjyaen","jjyaenj","jjyaenh","jjyaed","jjyael","jjyaelg","jjyaelm","jjyaelb","jjyaels","jjyaelt","jjyaelp","jjyaelh","jjyaem","jjyaeb","jjyaebs","jjyaes","jjyaess","jjyaeng","jjyaej","jjyaec","jjyaek","jjyaet","jjyaep","jjyaeh","jjeo","jjeog","jjeogg","jjeogs","jjeon","jjeonj","jjeonh","jjeod","jjeol","jjeolg","jjeolm","jjeolb","jjeols","jjeolt","jjeolp","jjeolh","jjeom","jjeob","jjeobs","jjeos","jjeoss","jjeong","jjeoj","jjeoc","jjeok","jjeot","jjeop","jjeoh","jje","jjeg","jjegg","jjegs","jjen","jjenj","jjenh","jjed","jjel","jjelg","jjelm","jjelb","jjels","jjelt","jjelp","jjelh","jjem","jjeb","jjebs","jjes","jjess","jjeng","jjej","jjec","jjek","jjet","jjep","jjeh","jjyeo","jjyeog","jjyeogg","jjyeogs","jjyeon","jjyeonj","jjyeonh","jjyeod","jjyeol","jjyeolg","jjyeolm","jjyeolb","jjyeols","jjyeolt","jjyeolp","jjyeolh","jjyeom","jjyeob","jjyeobs","jjyeos","jjyeoss","jjyeong","jjyeoj","jjyeoc","jjyeok","jjyeot","jjyeop","jjyeoh","jjye","jjyeg","jjyegg","jjyegs","jjyen","jjyenj","jjyenh","jjyed","jjyel","jjyelg","jjyelm","jjyelb","jjyels","jjyelt","jjyelp","jjyelh","jjyem","jjyeb","jjyebs","jjyes","jjyess","jjyeng","jjyej","jjyec","jjyek","jjyet","jjyep","jjyeh","jjo","jjog","jjogg","jjogs","jjon","jjonj","jjonh","jjod","jjol","jjolg","jjolm","jjolb","jjols","jjolt","jjolp","jjolh","jjom","jjob","jjobs","jjos","jjoss","jjong","jjoj","jjoc","jjok","jjot","jjop","jjoh","jjwa","jjwag","jjwagg","jjwags","jjwan","jjwanj","jjwanh","jjwad","jjwal","jjwalg","jjwalm","jjwalb","jjwals","jjwalt","jjwalp","jjwalh","jjwam","jjwab","jjwabs","jjwas","jjwass","jjwang","jjwaj","jjwac","jjwak","jjwat","jjwap","jjwah","jjwae","jjwaeg","jjwaegg","jjwaegs","jjwaen","jjwaenj","jjwaenh","jjwaed","jjwael","jjwaelg","jjwaelm","jjwaelb"]});var H9=m((G4e,B9)=>{B9.exports=["jjwaels","jjwaelt","jjwaelp","jjwaelh","jjwaem","jjwaeb","jjwaebs","jjwaes","jjwaess","jjwaeng","jjwaej","jjwaec","jjwaek","jjwaet","jjwaep","jjwaeh","jjoe","jjoeg","jjoegg","jjoegs","jjoen","jjoenj","jjoenh","jjoed","jjoel","jjoelg","jjoelm","jjoelb","jjoels","jjoelt","jjoelp","jjoelh","jjoem","jjoeb","jjoebs","jjoes","jjoess","jjoeng","jjoej","jjoec","jjoek","jjoet","jjoep","jjoeh","jjyo","jjyog","jjyogg","jjyogs","jjyon","jjyonj","jjyonh","jjyod","jjyol","jjyolg","jjyolm","jjyolb","jjyols","jjyolt","jjyolp","jjyolh","jjyom","jjyob","jjyobs","jjyos","jjyoss","jjyong","jjyoj","jjyoc","jjyok","jjyot","jjyop","jjyoh","jju","jjug","jjugg","jjugs","jjun","jjunj","jjunh","jjud","jjul","jjulg","jjulm","jjulb","jjuls","jjult","jjulp","jjulh","jjum","jjub","jjubs","jjus","jjuss","jjung","jjuj","jjuc","jjuk","jjut","jjup","jjuh","jjweo","jjweog","jjweogg","jjweogs","jjweon","jjweonj","jjweonh","jjweod","jjweol","jjweolg","jjweolm","jjweolb","jjweols","jjweolt","jjweolp","jjweolh","jjweom","jjweob","jjweobs","jjweos","jjweoss","jjweong","jjweoj","jjweoc","jjweok","jjweot","jjweop","jjweoh","jjwe","jjweg","jjwegg","jjwegs","jjwen","jjwenj","jjwenh","jjwed","jjwel","jjwelg","jjwelm","jjwelb","jjwels","jjwelt","jjwelp","jjwelh","jjwem","jjweb","jjwebs","jjwes","jjwess","jjweng","jjwej","jjwec","jjwek","jjwet","jjwep","jjweh","jjwi","jjwig","jjwigg","jjwigs","jjwin","jjwinj","jjwinh","jjwid","jjwil","jjwilg","jjwilm","jjwilb","jjwils","jjwilt","jjwilp","jjwilh","jjwim","jjwib","jjwibs","jjwis","jjwiss","jjwing","jjwij","jjwic","jjwik","jjwit","jjwip","jjwih","jjyu","jjyug","jjyugg","jjyugs","jjyun","jjyunj","jjyunh","jjyud","jjyul","jjyulg","jjyulm","jjyulb","jjyuls","jjyult","jjyulp","jjyulh","jjyum","jjyub","jjyubs","jjyus","jjyuss","jjyung","jjyuj","jjyuc","jjyuk","jjyut","jjyup","jjyuh","jjeu","jjeug","jjeugg","jjeugs","jjeun","jjeunj","jjeunh","jjeud","jjeul","jjeulg","jjeulm","jjeulb","jjeuls","jjeult","jjeulp","jjeulh","jjeum","jjeub","jjeubs","jjeus","jjeuss","jjeung","jjeuj","jjeuc","jjeuk","jjeut","jjeup","jjeuh","jjyi","jjyig","jjyigg","jjyigs","jjyin","jjyinj","jjyinh","jjyid","jjyil","jjyilg","jjyilm","jjyilb","jjyils","jjyilt","jjyilp","jjyilh"]});var Y9=m((Q4e,q9)=>{q9.exports=["jjyim","jjyib","jjyibs","jjyis","jjyiss","jjying","jjyij","jjyic","jjyik","jjyit","jjyip","jjyih","jji","jjig","jjigg","jjigs","jjin","jjinj","jjinh","jjid","jjil","jjilg","jjilm","jjilb","jjils","jjilt","jjilp","jjilh","jjim","jjib","jjibs","jjis","jjiss","jjing","jjij","jjic","jjik","jjit","jjip","jjih","ca","cag","cagg","cags","can","canj","canh","cad","cal","calg","calm","calb","cals","calt","calp","calh","cam","cab","cabs","cas","cass","cang","caj","cac","cak","cat","cap","cah","cae","caeg","caegg","caegs","caen","caenj","caenh","caed","cael","caelg","caelm","caelb","caels","caelt","caelp","caelh","caem","caeb","caebs","caes","caess","caeng","caej","caec","caek","caet","caep","caeh","cya","cyag","cyagg","cyags","cyan","cyanj","cyanh","cyad","cyal","cyalg","cyalm","cyalb","cyals","cyalt","cyalp","cyalh","cyam","cyab","cyabs","cyas","cyass","cyang","cyaj","cyac","cyak","cyat","cyap","cyah","cyae","cyaeg","cyaegg","cyaegs","cyaen","cyaenj","cyaenh","cyaed","cyael","cyaelg","cyaelm","cyaelb","cyaels","cyaelt","cyaelp","cyaelh","cyaem","cyaeb","cyaebs","cyaes","cyaess","cyaeng","cyaej","cyaec","cyaek","cyaet","cyaep","cyaeh","ceo","ceog","ceogg","ceogs","ceon","ceonj","ceonh","ceod","ceol","ceolg","ceolm","ceolb","ceols","ceolt","ceolp","ceolh","ceom","ceob","ceobs","ceos","ceoss","ceong","ceoj","ceoc","ceok","ceot","ceop","ceoh","ce","ceg","cegg","cegs","cen","cenj","cenh","ced","cel","celg","celm","celb","cels","celt","celp","celh","cem","ceb","cebs","ces","cess","ceng","cej","cec","cek","cet","cep","ceh","cyeo","cyeog","cyeogg","cyeogs","cyeon","cyeonj","cyeonh","cyeod","cyeol","cyeolg","cyeolm","cyeolb","cyeols","cyeolt","cyeolp","cyeolh","cyeom","cyeob","cyeobs","cyeos","cyeoss","cyeong","cyeoj","cyeoc","cyeok","cyeot","cyeop","cyeoh","cye","cyeg","cyegg","cyegs","cyen","cyenj","cyenh","cyed","cyel","cyelg","cyelm","cyelb","cyels","cyelt","cyelp","cyelh","cyem","cyeb","cyebs","cyes"]});var Z9=m((K4e,W9)=>{W9.exports=["cyess","cyeng","cyej","cyec","cyek","cyet","cyep","cyeh","co","cog","cogg","cogs","con","conj","conh","cod","col","colg","colm","colb","cols","colt","colp","colh","com","cob","cobs","cos","coss","cong","coj","coc","cok","cot","cop","coh","cwa","cwag","cwagg","cwags","cwan","cwanj","cwanh","cwad","cwal","cwalg","cwalm","cwalb","cwals","cwalt","cwalp","cwalh","cwam","cwab","cwabs","cwas","cwass","cwang","cwaj","cwac","cwak","cwat","cwap","cwah","cwae","cwaeg","cwaegg","cwaegs","cwaen","cwaenj","cwaenh","cwaed","cwael","cwaelg","cwaelm","cwaelb","cwaels","cwaelt","cwaelp","cwaelh","cwaem","cwaeb","cwaebs","cwaes","cwaess","cwaeng","cwaej","cwaec","cwaek","cwaet","cwaep","cwaeh","coe","coeg","coegg","coegs","coen","coenj","coenh","coed","coel","coelg","coelm","coelb","coels","coelt","coelp","coelh","coem","coeb","coebs","coes","coess","coeng","coej","coec","coek","coet","coep","coeh","cyo","cyog","cyogg","cyogs","cyon","cyonj","cyonh","cyod","cyol","cyolg","cyolm","cyolb","cyols","cyolt","cyolp","cyolh","cyom","cyob","cyobs","cyos","cyoss","cyong","cyoj","cyoc","cyok","cyot","cyop","cyoh","cu","cug","cugg","cugs","cun","cunj","cunh","cud","cul","culg","culm","culb","culs","cult","culp","culh","cum","cub","cubs","cus","cuss","cung","cuj","cuc","cuk","cut","cup","cuh","cweo","cweog","cweogg","cweogs","cweon","cweonj","cweonh","cweod","cweol","cweolg","cweolm","cweolb","cweols","cweolt","cweolp","cweolh","cweom","cweob","cweobs","cweos","cweoss","cweong","cweoj","cweoc","cweok","cweot","cweop","cweoh","cwe","cweg","cwegg","cwegs","cwen","cwenj","cwenh","cwed","cwel","cwelg","cwelm","cwelb","cwels","cwelt","cwelp","cwelh","cwem","cweb","cwebs","cwes","cwess","cweng","cwej","cwec","cwek","cwet","cwep","cweh","cwi","cwig","cwigg","cwigs","cwin","cwinj","cwinh","cwid","cwil","cwilg","cwilm","cwilb","cwils","cwilt","cwilp","cwilh","cwim","cwib","cwibs","cwis","cwiss","cwing","cwij","cwic"]});var $9=m((z4e,J9)=>{J9.exports=["cwik","cwit","cwip","cwih","cyu","cyug","cyugg","cyugs","cyun","cyunj","cyunh","cyud","cyul","cyulg","cyulm","cyulb","cyuls","cyult","cyulp","cyulh","cyum","cyub","cyubs","cyus","cyuss","cyung","cyuj","cyuc","cyuk","cyut","cyup","cyuh","ceu","ceug","ceugg","ceugs","ceun","ceunj","ceunh","ceud","ceul","ceulg","ceulm","ceulb","ceuls","ceult","ceulp","ceulh","ceum","ceub","ceubs","ceus","ceuss","ceung","ceuj","ceuc","ceuk","ceut","ceup","ceuh","cyi","cyig","cyigg","cyigs","cyin","cyinj","cyinh","cyid","cyil","cyilg","cyilm","cyilb","cyils","cyilt","cyilp","cyilh","cyim","cyib","cyibs","cyis","cyiss","cying","cyij","cyic","cyik","cyit","cyip","cyih","ci","cig","cigg","cigs","cin","cinj","cinh","cid","cil","cilg","cilm","cilb","cils","cilt","cilp","cilh","cim","cib","cibs","cis","ciss","cing","cij","cic","cik","cit","cip","cih","ka","kag","kagg","kags","kan","kanj","kanh","kad","kal","kalg","kalm","kalb","kals","kalt","kalp","kalh","kam","kab","kabs","kas","kass","kang","kaj","kac","kak","kat","kap","kah","kae","kaeg","kaegg","kaegs","kaen","kaenj","kaenh","kaed","kael","kaelg","kaelm","kaelb","kaels","kaelt","kaelp","kaelh","kaem","kaeb","kaebs","kaes","kaess","kaeng","kaej","kaec","kaek","kaet","kaep","kaeh","kya","kyag","kyagg","kyags","kyan","kyanj","kyanh","kyad","kyal","kyalg","kyalm","kyalb","kyals","kyalt","kyalp","kyalh","kyam","kyab","kyabs","kyas","kyass","kyang","kyaj","kyac","kyak","kyat","kyap","kyah","kyae","kyaeg","kyaegg","kyaegs","kyaen","kyaenj","kyaenh","kyaed","kyael","kyaelg","kyaelm","kyaelb","kyaels","kyaelt","kyaelp","kyaelh","kyaem","kyaeb","kyaebs","kyaes","kyaess","kyaeng","kyaej","kyaec","kyaek","kyaet","kyaep","kyaeh","keo","keog","keogg","keogs","keon","keonj","keonh","keod","keol","keolg","keolm","keolb","keols","keolt","keolp","keolh","keom","keob","keobs","keos","keoss","keong","keoj","keoc","keok","keot","keop","keoh"]});var U9=m((V4e,X9)=>{X9.exports=["ke","keg","kegg","kegs","ken","kenj","kenh","ked","kel","kelg","kelm","kelb","kels","kelt","kelp","kelh","kem","keb","kebs","kes","kess","keng","kej","kec","kek","ket","kep","keh","kyeo","kyeog","kyeogg","kyeogs","kyeon","kyeonj","kyeonh","kyeod","kyeol","kyeolg","kyeolm","kyeolb","kyeols","kyeolt","kyeolp","kyeolh","kyeom","kyeob","kyeobs","kyeos","kyeoss","kyeong","kyeoj","kyeoc","kyeok","kyeot","kyeop","kyeoh","kye","kyeg","kyegg","kyegs","kyen","kyenj","kyenh","kyed","kyel","kyelg","kyelm","kyelb","kyels","kyelt","kyelp","kyelh","kyem","kyeb","kyebs","kyes","kyess","kyeng","kyej","kyec","kyek","kyet","kyep","kyeh","ko","kog","kogg","kogs","kon","konj","konh","kod","kol","kolg","kolm","kolb","kols","kolt","kolp","kolh","kom","kob","kobs","kos","koss","kong","koj","koc","kok","kot","kop","koh","kwa","kwag","kwagg","kwags","kwan","kwanj","kwanh","kwad","kwal","kwalg","kwalm","kwalb","kwals","kwalt","kwalp","kwalh","kwam","kwab","kwabs","kwas","kwass","kwang","kwaj","kwac","kwak","kwat","kwap","kwah","kwae","kwaeg","kwaegg","kwaegs","kwaen","kwaenj","kwaenh","kwaed","kwael","kwaelg","kwaelm","kwaelb","kwaels","kwaelt","kwaelp","kwaelh","kwaem","kwaeb","kwaebs","kwaes","kwaess","kwaeng","kwaej","kwaec","kwaek","kwaet","kwaep","kwaeh","koe","koeg","koegg","koegs","koen","koenj","koenh","koed","koel","koelg","koelm","koelb","koels","koelt","koelp","koelh","koem","koeb","koebs","koes","koess","koeng","koej","koec","koek","koet","koep","koeh","kyo","kyog","kyogg","kyogs","kyon","kyonj","kyonh","kyod","kyol","kyolg","kyolm","kyolb","kyols","kyolt","kyolp","kyolh","kyom","kyob","kyobs","kyos","kyoss","kyong","kyoj","kyoc","kyok","kyot","kyop","kyoh","ku","kug","kugg","kugs","kun","kunj","kunh","kud","kul","kulg","kulm","kulb","kuls","kult","kulp","kulh","kum","kub","kubs","kus","kuss","kung","kuj","kuc","kuk","kut","kup","kuh","kweo","kweog","kweogg","kweogs"]});var Q9=m((eQe,G9)=>{G9.exports=["kweon","kweonj","kweonh","kweod","kweol","kweolg","kweolm","kweolb","kweols","kweolt","kweolp","kweolh","kweom","kweob","kweobs","kweos","kweoss","kweong","kweoj","kweoc","kweok","kweot","kweop","kweoh","kwe","kweg","kwegg","kwegs","kwen","kwenj","kwenh","kwed","kwel","kwelg","kwelm","kwelb","kwels","kwelt","kwelp","kwelh","kwem","kweb","kwebs","kwes","kwess","kweng","kwej","kwec","kwek","kwet","kwep","kweh","kwi","kwig","kwigg","kwigs","kwin","kwinj","kwinh","kwid","kwil","kwilg","kwilm","kwilb","kwils","kwilt","kwilp","kwilh","kwim","kwib","kwibs","kwis","kwiss","kwing","kwij","kwic","kwik","kwit","kwip","kwih","kyu","kyug","kyugg","kyugs","kyun","kyunj","kyunh","kyud","kyul","kyulg","kyulm","kyulb","kyuls","kyult","kyulp","kyulh","kyum","kyub","kyubs","kyus","kyuss","kyung","kyuj","kyuc","kyuk","kyut","kyup","kyuh","keu","keug","keugg","keugs","keun","keunj","keunh","keud","keul","keulg","keulm","keulb","keuls","keult","keulp","keulh","keum","keub","keubs","keus","keuss","keung","keuj","keuc","keuk","keut","keup","keuh","kyi","kyig","kyigg","kyigs","kyin","kyinj","kyinh","kyid","kyil","kyilg","kyilm","kyilb","kyils","kyilt","kyilp","kyilh","kyim","kyib","kyibs","kyis","kyiss","kying","kyij","kyic","kyik","kyit","kyip","kyih","ki","kig","kigg","kigs","kin","kinj","kinh","kid","kil","kilg","kilm","kilb","kils","kilt","kilp","kilh","kim","kib","kibs","kis","kiss","king","kij","kic","kik","kit","kip","kih","ta","tag","tagg","tags","tan","tanj","tanh","tad","tal","talg","talm","talb","tals","talt","talp","talh","tam","tab","tabs","tas","tass","tang","taj","tac","tak","tat","tap","tah","tae","taeg","taegg","taegs","taen","taenj","taenh","taed","tael","taelg","taelm","taelb","taels","taelt","taelp","taelh","taem","taeb","taebs","taes","taess","taeng","taej","taec","taek","taet","taep","taeh","tya","tyag","tyagg","tyags","tyan","tyanj","tyanh","tyad"]});var z9=m((tQe,K9)=>{K9.exports=["tyal","tyalg","tyalm","tyalb","tyals","tyalt","tyalp","tyalh","tyam","tyab","tyabs","tyas","tyass","tyang","tyaj","tyac","tyak","tyat","tyap","tyah","tyae","tyaeg","tyaegg","tyaegs","tyaen","tyaenj","tyaenh","tyaed","tyael","tyaelg","tyaelm","tyaelb","tyaels","tyaelt","tyaelp","tyaelh","tyaem","tyaeb","tyaebs","tyaes","tyaess","tyaeng","tyaej","tyaec","tyaek","tyaet","tyaep","tyaeh","teo","teog","teogg","teogs","teon","teonj","teonh","teod","teol","teolg","teolm","teolb","teols","teolt","teolp","teolh","teom","teob","teobs","teos","teoss","teong","teoj","teoc","teok","teot","teop","teoh","te","teg","tegg","tegs","ten","tenj","tenh","ted","tel","telg","telm","telb","tels","telt","telp","telh","tem","teb","tebs","tes","tess","teng","tej","tec","tek","tet","tep","teh","tyeo","tyeog","tyeogg","tyeogs","tyeon","tyeonj","tyeonh","tyeod","tyeol","tyeolg","tyeolm","tyeolb","tyeols","tyeolt","tyeolp","tyeolh","tyeom","tyeob","tyeobs","tyeos","tyeoss","tyeong","tyeoj","tyeoc","tyeok","tyeot","tyeop","tyeoh","tye","tyeg","tyegg","tyegs","tyen","tyenj","tyenh","tyed","tyel","tyelg","tyelm","tyelb","tyels","tyelt","tyelp","tyelh","tyem","tyeb","tyebs","tyes","tyess","tyeng","tyej","tyec","tyek","tyet","tyep","tyeh","to","tog","togg","togs","ton","tonj","tonh","tod","tol","tolg","tolm","tolb","tols","tolt","tolp","tolh","tom","tob","tobs","tos","toss","tong","toj","toc","tok","tot","top","toh","twa","twag","twagg","twags","twan","twanj","twanh","twad","twal","twalg","twalm","twalb","twals","twalt","twalp","twalh","twam","twab","twabs","twas","twass","twang","twaj","twac","twak","twat","twap","twah","twae","twaeg","twaegg","twaegs","twaen","twaenj","twaenh","twaed","twael","twaelg","twaelm","twaelb","twaels","twaelt","twaelp","twaelh","twaem","twaeb","twaebs","twaes","twaess","twaeng","twaej","twaec","twaek","twaet","twaep","twaeh","toe","toeg","toegg","toegs","toen","toenj","toenh","toed","toel","toelg","toelm","toelb"]});var eV=m((iQe,V9)=>{V9.exports=["toels","toelt","toelp","toelh","toem","toeb","toebs","toes","toess","toeng","toej","toec","toek","toet","toep","toeh","tyo","tyog","tyogg","tyogs","tyon","tyonj","tyonh","tyod","tyol","tyolg","tyolm","tyolb","tyols","tyolt","tyolp","tyolh","tyom","tyob","tyobs","tyos","tyoss","tyong","tyoj","tyoc","tyok","tyot","tyop","tyoh","tu","tug","tugg","tugs","tun","tunj","tunh","tud","tul","tulg","tulm","tulb","tuls","tult","tulp","tulh","tum","tub","tubs","tus","tuss","tung","tuj","tuc","tuk","tut","tup","tuh","tweo","tweog","tweogg","tweogs","tweon","tweonj","tweonh","tweod","tweol","tweolg","tweolm","tweolb","tweols","tweolt","tweolp","tweolh","tweom","tweob","tweobs","tweos","tweoss","tweong","tweoj","tweoc","tweok","tweot","tweop","tweoh","twe","tweg","twegg","twegs","twen","twenj","twenh","twed","twel","twelg","twelm","twelb","twels","twelt","twelp","twelh","twem","tweb","twebs","twes","twess","tweng","twej","twec","twek","twet","twep","tweh","twi","twig","twigg","twigs","twin","twinj","twinh","twid","twil","twilg","twilm","twilb","twils","twilt","twilp","twilh","twim","twib","twibs","twis","twiss","twing","twij","twic","twik","twit","twip","twih","tyu","tyug","tyugg","tyugs","tyun","tyunj","tyunh","tyud","tyul","tyulg","tyulm","tyulb","tyuls","tyult","tyulp","tyulh","tyum","tyub","tyubs","tyus","tyuss","tyung","tyuj","tyuc","tyuk","tyut","tyup","tyuh","teu","teug","teugg","teugs","teun","teunj","teunh","teud","teul","teulg","teulm","teulb","teuls","teult","teulp","teulh","teum","teub","teubs","teus","teuss","teung","teuj","teuc","teuk","teut","teup","teuh","tyi","tyig","tyigg","tyigs","tyin","tyinj","tyinh","tyid","tyil","tyilg","tyilm","tyilb","tyils","tyilt","tyilp","tyilh","tyim","tyib","tyibs","tyis","tyiss","tying","tyij","tyic","tyik","tyit","tyip","tyih","ti","tig","tigg","tigs","tin","tinj","tinh","tid","til","tilg","tilm","tilb","tils","tilt","tilp","tilh"]});var iV=m((nQe,tV)=>{tV.exports=["tim","tib","tibs","tis","tiss","ting","tij","tic","tik","tit","tip","tih","pa","pag","pagg","pags","pan","panj","panh","pad","pal","palg","palm","palb","pals","palt","palp","palh","pam","pab","pabs","pas","pass","pang","paj","pac","pak","pat","pap","pah","pae","paeg","paegg","paegs","paen","paenj","paenh","paed","pael","paelg","paelm","paelb","paels","paelt","paelp","paelh","paem","paeb","paebs","paes","paess","paeng","paej","paec","paek","paet","paep","paeh","pya","pyag","pyagg","pyags","pyan","pyanj","pyanh","pyad","pyal","pyalg","pyalm","pyalb","pyals","pyalt","pyalp","pyalh","pyam","pyab","pyabs","pyas","pyass","pyang","pyaj","pyac","pyak","pyat","pyap","pyah","pyae","pyaeg","pyaegg","pyaegs","pyaen","pyaenj","pyaenh","pyaed","pyael","pyaelg","pyaelm","pyaelb","pyaels","pyaelt","pyaelp","pyaelh","pyaem","pyaeb","pyaebs","pyaes","pyaess","pyaeng","pyaej","pyaec","pyaek","pyaet","pyaep","pyaeh","peo","peog","peogg","peogs","peon","peonj","peonh","peod","peol","peolg","peolm","peolb","peols","peolt","peolp","peolh","peom","peob","peobs","peos","peoss","peong","peoj","peoc","peok","peot","peop","peoh","pe","peg","pegg","pegs","pen","penj","penh","ped","pel","pelg","pelm","pelb","pels","pelt","pelp","pelh","pem","peb","pebs","pes","pess","peng","pej","pec","pek","pet","pep","peh","pyeo","pyeog","pyeogg","pyeogs","pyeon","pyeonj","pyeonh","pyeod","pyeol","pyeolg","pyeolm","pyeolb","pyeols","pyeolt","pyeolp","pyeolh","pyeom","pyeob","pyeobs","pyeos","pyeoss","pyeong","pyeoj","pyeoc","pyeok","pyeot","pyeop","pyeoh","pye","pyeg","pyegg","pyegs","pyen","pyenj","pyenh","pyed","pyel","pyelg","pyelm","pyelb","pyels","pyelt","pyelp","pyelh","pyem","pyeb","pyebs","pyes","pyess","pyeng","pyej","pyec","pyek","pyet","pyep","pyeh","po","pog","pogg","pogs","pon","ponj","ponh","pod","pol","polg","polm","polb","pols","polt","polp","polh","pom","pob","pobs","pos"]});var rV=m((rQe,nV)=>{nV.exports=["poss","pong","poj","poc","pok","pot","pop","poh","pwa","pwag","pwagg","pwags","pwan","pwanj","pwanh","pwad","pwal","pwalg","pwalm","pwalb","pwals","pwalt","pwalp","pwalh","pwam","pwab","pwabs","pwas","pwass","pwang","pwaj","pwac","pwak","pwat","pwap","pwah","pwae","pwaeg","pwaegg","pwaegs","pwaen","pwaenj","pwaenh","pwaed","pwael","pwaelg","pwaelm","pwaelb","pwaels","pwaelt","pwaelp","pwaelh","pwaem","pwaeb","pwaebs","pwaes","pwaess","pwaeng","pwaej","pwaec","pwaek","pwaet","pwaep","pwaeh","poe","poeg","poegg","poegs","poen","poenj","poenh","poed","poel","poelg","poelm","poelb","poels","poelt","poelp","poelh","poem","poeb","poebs","poes","poess","poeng","poej","poec","poek","poet","poep","poeh","pyo","pyog","pyogg","pyogs","pyon","pyonj","pyonh","pyod","pyol","pyolg","pyolm","pyolb","pyols","pyolt","pyolp","pyolh","pyom","pyob","pyobs","pyos","pyoss","pyong","pyoj","pyoc","pyok","pyot","pyop","pyoh","pu","pug","pugg","pugs","pun","punj","punh","pud","pul","pulg","pulm","pulb","puls","pult","pulp","pulh","pum","pub","pubs","pus","puss","pung","puj","puc","puk","put","pup","puh","pweo","pweog","pweogg","pweogs","pweon","pweonj","pweonh","pweod","pweol","pweolg","pweolm","pweolb","pweols","pweolt","pweolp","pweolh","pweom","pweob","pweobs","pweos","pweoss","pweong","pweoj","pweoc","pweok","pweot","pweop","pweoh","pwe","pweg","pwegg","pwegs","pwen","pwenj","pwenh","pwed","pwel","pwelg","pwelm","pwelb","pwels","pwelt","pwelp","pwelh","pwem","pweb","pwebs","pwes","pwess","pweng","pwej","pwec","pwek","pwet","pwep","pweh","pwi","pwig","pwigg","pwigs","pwin","pwinj","pwinh","pwid","pwil","pwilg","pwilm","pwilb","pwils","pwilt","pwilp","pwilh","pwim","pwib","pwibs","pwis","pwiss","pwing","pwij","pwic","pwik","pwit","pwip","pwih","pyu","pyug","pyugg","pyugs","pyun","pyunj","pyunh","pyud","pyul","pyulg","pyulm","pyulb","pyuls","pyult","pyulp","pyulh","pyum","pyub","pyubs","pyus","pyuss","pyung","pyuj","pyuc"]});var sV=m((oQe,oV)=>{oV.exports=["pyuk","pyut","pyup","pyuh","peu","peug","peugg","peugs","peun","peunj","peunh","peud","peul","peulg","peulm","peulb","peuls","peult","peulp","peulh","peum","peub","peubs","peus","peuss","peung","peuj","peuc","peuk","peut","peup","peuh","pyi","pyig","pyigg","pyigs","pyin","pyinj","pyinh","pyid","pyil","pyilg","pyilm","pyilb","pyils","pyilt","pyilp","pyilh","pyim","pyib","pyibs","pyis","pyiss","pying","pyij","pyic","pyik","pyit","pyip","pyih","pi","pig","pigg","pigs","pin","pinj","pinh","pid","pil","pilg","pilm","pilb","pils","pilt","pilp","pilh","pim","pib","pibs","pis","piss","ping","pij","pic","pik","pit","pip","pih","ha","hag","hagg","hags","han","hanj","hanh","had","hal","halg","halm","halb","hals","halt","halp","halh","ham","hab","habs","has","hass","hang","haj","hac","hak","hat","hap","hah","hae","haeg","haegg","haegs","haen","haenj","haenh","haed","hael","haelg","haelm","haelb","haels","haelt","haelp","haelh","haem","haeb","haebs","haes","haess","haeng","haej","haec","haek","haet","haep","haeh","hya","hyag","hyagg","hyags","hyan","hyanj","hyanh","hyad","hyal","hyalg","hyalm","hyalb","hyals","hyalt","hyalp","hyalh","hyam","hyab","hyabs","hyas","hyass","hyang","hyaj","hyac","hyak","hyat","hyap","hyah","hyae","hyaeg","hyaegg","hyaegs","hyaen","hyaenj","hyaenh","hyaed","hyael","hyaelg","hyaelm","hyaelb","hyaels","hyaelt","hyaelp","hyaelh","hyaem","hyaeb","hyaebs","hyaes","hyaess","hyaeng","hyaej","hyaec","hyaek","hyaet","hyaep","hyaeh","heo","heog","heogg","heogs","heon","heonj","heonh","heod","heol","heolg","heolm","heolb","heols","heolt","heolp","heolh","heom","heob","heobs","heos","heoss","heong","heoj","heoc","heok","heot","heop","heoh","he","heg","hegg","hegs","hen","henj","henh","hed","hel","helg","helm","helb","hels","helt","help","helh","hem","heb","hebs","hes","hess","heng","hej","hec","hek","het","hep","heh"]});var lV=m((sQe,aV)=>{aV.exports=["hyeo","hyeog","hyeogg","hyeogs","hyeon","hyeonj","hyeonh","hyeod","hyeol","hyeolg","hyeolm","hyeolb","hyeols","hyeolt","hyeolp","hyeolh","hyeom","hyeob","hyeobs","hyeos","hyeoss","hyeong","hyeoj","hyeoc","hyeok","hyeot","hyeop","hyeoh","hye","hyeg","hyegg","hyegs","hyen","hyenj","hyenh","hyed","hyel","hyelg","hyelm","hyelb","hyels","hyelt","hyelp","hyelh","hyem","hyeb","hyebs","hyes","hyess","hyeng","hyej","hyec","hyek","hyet","hyep","hyeh","ho","hog","hogg","hogs","hon","honj","honh","hod","hol","holg","holm","holb","hols","holt","holp","holh","hom","hob","hobs","hos","hoss","hong","hoj","hoc","hok","hot","hop","hoh","hwa","hwag","hwagg","hwags","hwan","hwanj","hwanh","hwad","hwal","hwalg","hwalm","hwalb","hwals","hwalt","hwalp","hwalh","hwam","hwab","hwabs","hwas","hwass","hwang","hwaj","hwac","hwak","hwat","hwap","hwah","hwae","hwaeg","hwaegg","hwaegs","hwaen","hwaenj","hwaenh","hwaed","hwael","hwaelg","hwaelm","hwaelb","hwaels","hwaelt","hwaelp","hwaelh","hwaem","hwaeb","hwaebs","hwaes","hwaess","hwaeng","hwaej","hwaec","hwaek","hwaet","hwaep","hwaeh","hoe","hoeg","hoegg","hoegs","hoen","hoenj","hoenh","hoed","hoel","hoelg","hoelm","hoelb","hoels","hoelt","hoelp","hoelh","hoem","hoeb","hoebs","hoes","hoess","hoeng","hoej","hoec","hoek","hoet","hoep","hoeh","hyo","hyog","hyogg","hyogs","hyon","hyonj","hyonh","hyod","hyol","hyolg","hyolm","hyolb","hyols","hyolt","hyolp","hyolh","hyom","hyob","hyobs","hyos","hyoss","hyong","hyoj","hyoc","hyok","hyot","hyop","hyoh","hu","hug","hugg","hugs","hun","hunj","hunh","hud","hul","hulg","hulm","hulb","huls","hult","hulp","hulh","hum","hub","hubs","hus","huss","hung","huj","huc","huk","hut","hup","huh","hweo","hweog","hweogg","hweogs","hweon","hweonj","hweonh","hweod","hweol","hweolg","hweolm","hweolb","hweols","hweolt","hweolp","hweolh","hweom","hweob","hweobs","hweos","hweoss","hweong","hweoj","hweoc","hweok","hweot","hweop","hweoh","hwe","hweg","hwegg","hwegs"]});var cV=m((aQe,uV)=>{uV.exports=["hwen","hwenj","hwenh","hwed","hwel","hwelg","hwelm","hwelb","hwels","hwelt","hwelp","hwelh","hwem","hweb","hwebs","hwes","hwess","hweng","hwej","hwec","hwek","hwet","hwep","hweh","hwi","hwig","hwigg","hwigs","hwin","hwinj","hwinh","hwid","hwil","hwilg","hwilm","hwilb","hwils","hwilt","hwilp","hwilh","hwim","hwib","hwibs","hwis","hwiss","hwing","hwij","hwic","hwik","hwit","hwip","hwih","hyu","hyug","hyugg","hyugs","hyun","hyunj","hyunh","hyud","hyul","hyulg","hyulm","hyulb","hyuls","hyult","hyulp","hyulh","hyum","hyub","hyubs","hyus","hyuss","hyung","hyuj","hyuc","hyuk","hyut","hyup","hyuh","heu","heug","heugg","heugs","heun","heunj","heunh","heud","heul","heulg","heulm","heulb","heuls","heult","heulp","heulh","heum","heub","heubs","heus","heuss","heung","heuj","heuc","heuk","heut","heup","heuh","hyi","hyig","hyigg","hyigs","hyin","hyinj","hyinh","hyid","hyil","hyilg","hyilm","hyilb","hyils","hyilt","hyilp","hyilh","hyim","hyib","hyibs","hyis","hyiss","hying","hyij","hyic","hyik","hyit","hyip","hyih","hi","hig","higg","higs","hin","hinj","hinh","hid","hil","hilg","hilm","hilb","hils","hilt","hilp","hilh","him","hib","hibs","his","hiss","hing","hij","hic","hik","hit","hip","hih","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var dV=m((lQe,hV)=>{hV.exports=["Kay ","Kayng ","Ke ","Ko ","Kol ","Koc ","Kwi ","Kwi ","Kyun ","Kul ","Kum ","Na ","Na ","Na ","La ","Na ","Na ","Na ","Na ","Na ","Nak ","Nak ","Nak ","Nak ","Nak ","Nak ","Nak ","Nan ","Nan ","Nan ","Nan ","Nan ","Nan ","Nam ","Nam ","Nam ","Nam ","Nap ","Nap ","Nap ","Nang ","Nang ","Nang ","Nang ","Nang ","Nay ","Nayng ","No ","No ","No ","No ","No ","No ","No ","No ","No ","No ","No ","No ","Nok ","Nok ","Nok ","Nok ","Nok ","Nok ","Non ","Nong ","Nong ","Nong ","Nong ","Noy ","Noy ","Noy ","Noy ","Nwu ","Nwu ","Nwu ","Nwu ","Nwu ","Nwu ","Nwu ","Nwu ","Nuk ","Nuk ","Num ","Nung ","Nung ","Nung ","Nung ","Nung ","Twu ","La ","Lak ","Lak ","Lan ","Lyeng ","Lo ","Lyul ","Li ","Pey ","Pen ","Pyen ","Pwu ","Pwul ","Pi ","Sak ","Sak ","Sam ","Sayk ","Sayng ","Sep ","Sey ","Sway ","Sin ","Sim ","Sip ","Ya ","Yak ","Yak ","Yang ","Yang ","Yang ","Yang ","Yang ","Yang ","Yang ","Yang ","Ye ","Ye ","Ye ","Ye ","Ye ","Ye ","Ye ","Ye ","Ye ","Ye ","Ye ","Yek ","Yek ","Yek ","Yek ","Yen ","Yen ","Yen ","Yen ","Yen ","Yen ","Yen ","Yen ","Yen ","Yen ","Yen ","Yen ","Yen ","Yen ","Yel ","Yel ","Yel ","Yel ","Yel ","Yel ","Yem ","Yem ","Yem ","Yem ","Yem ","Yep ","Yeng ","Yeng ","Yeng ","Yeng ","Yeng ","Yeng ","Yeng ","Yeng ","Yeng ","Yeng ","Yeng ","Yeng ","Yeng ","Yey ","Yey ","Yey ","Yey ","O ","Yo ","Yo ","Yo ","Yo ","Yo ","Yo ","Yo ","Yo ","Yo ","Yo ","Yong ","Wun ","Wen ","Yu ","Yu ","Yu ","Yu ","Yu ","Yu ","Yu ","Yu ","Yu ","Yu ","Yuk ","Yuk ","Yuk ","Yun ","Yun ","Yun ","Yun ","Yul ","Yul ","Yul ","Yul ","Yung ","I ","I ","I ","I ","I ","I ","I ","I ","I ","I ","I ","I ","I ","I ","Ik ","Ik ","In ","In ","In ","In ","In ","In ","In ","Im ","Im ","Im ","Ip ","Ip ","Ip ","Cang ","Cek ","Ci ","Cip ","Cha ","Chek "]});var fV=m((uQe,gV)=>{gV.exports=["Chey ","Thak ","Thak ","Thang ","Thayk ","Thong ","Pho ","Phok ","Hang ","Hang ","Hyen ","Hwak ","Wu ","Huo ","[?] ","[?] ","Zhong ","[?] ","Qing ","[?] ","[?] ","Xi ","Zhu ","Yi ","Li ","Shen ","Xiang ","Fu ","Jing ","Jing ","Yu ","[?] ","Hagi ","[?] ","Zhu ","[?] ","[?] ","Yi ","Du ","[?] ","[?] ","[?] ","Fan ","Si ","Guan ","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var mV=m((cQe,pV)=>{pV.exports=["ff","fi","fl","ffi","ffl","st","st","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","mn","me","mi","vn","mkh","[?]","[?]","[?]","[?]","[?]","yi","","ay","`","","d","h","k","l","m","m","t","+","sh","s","sh","s","a","a","","b","g","d","h","v","z","[?]","t","y","k","k","l","[?]","l","[?]","n","n","[?]","p","p","[?]","ts","ts","r","sh","t","vo","b","k","p","l","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""]});var yV=m((hQe,bV)=>{bV.exports=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""]});var wV=m((dQe,vV)=>{vV.exports=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","[?]","[?]","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","","","","","","","","","","","","","[?]","[?]","[?]"]});var xV=m((gQe,DV)=>{DV.exports=["[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","","","","~","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","..","--","-","_","_","(",") ","{","} ","[","] ","[(",")] ","<<",">> ","<","> ","[","] ","{","}","[?]","[?]","[?]","[?]","","","","","","","",",",",",".","",";",":","?","!","-","(",")","{","}","{","}","#","&","*","+","-","<",">","=","","\\","$","%","@","[?]","[?]","[?]","[?]","","","","[?]","","[?]","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","[?]","[?]",""]});var SV=m((fQe,CV)=>{CV.exports=["[?]","!",'"',"#","$","%","&","'","(",")","*","+",",","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";","<","=",">","?","@","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","[","\\","]","^","_","`","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","{","|","}","~","[?]","[?]",".","[","]",",","*","wo","a","i","u","e","o","ya","yu","yo","tu","+","a","i","u","e","o","ka","ki","ku","ke","ko","sa","si","su","se","so","ta","ti","tu","te","to","na","ni","nu","ne","no","ha","hi","hu","he","ho","ma","mi","mu","me","mo","ya","yu","yo","ra","ri","ru","re","ro","wa","n",":",";","","g","gg","gs","n","nj","nh","d","dd","r","lg","lm","lb","ls","lt","lp","rh","m","b","bb","bs","s","ss","","j","jj","c","k","t","p","h","[?]","[?]","[?]","a","ae","ya","yae","eo","e","[?]","[?]","yeo","ye","o","wa","wae","oe","[?]","[?]","yo","u","weo","we","wi","yu","[?]","[?]","eu","yi","i","[?]","[?]","[?]","/C","PS","!","-","|","Y=","W=","[?]","|","-","|","-","|","#","O","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","{","|","}","","","",""]});var kV=m((pQe,TV)=>{"use strict";var R={},C0e=/(?![\x00-\x7F]|[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3})./g;TV.exports=function(n){return n.replace(C0e,S0e)};function S0e(n){var e=k0e(n);if(e>65535)return"_";var t=e>>8,i=e&255;if(t>24&&t<30||t>215&&t<249)return"";if(!R[t])switch(T0e(t)){case"00":R[t]=Z4();break;case"01":R[t]=$4();break;case"02":R[t]=U4();break;case"03":R[t]=Q4();break;case"04":R[t]=z4();break;case"05":R[t]=eQ();break;case"06":R[t]=iQ();break;case"07":R[t]=rQ();break;case"09":R[t]=sQ();break;case"0a":R[t]=lQ();break;case"0b":R[t]=cQ();break;case"0c":R[t]=dQ();break;case"0d":R[t]=fQ();break;case"0e":R[t]=mQ();break;case"0f":R[t]=yQ();break;case"10":R[t]=wQ();break;case"11":R[t]=xQ();break;case"12":R[t]=SQ();break;case"13":R[t]=kQ();break;case"14":R[t]=PQ();break;case"15":R[t]=RQ();break;case"16":R[t]=FQ();break;case"17":R[t]=jQ();break;case"18":R[t]=OQ();break;case"1e":R[t]=NQ();break;case"1f":R[t]=HQ();break;case"20":R[t]=YQ();break;case"21":R[t]=ZQ();break;case"22":R[t]=$Q();break;case"23":R[t]=UQ();break;case"24":R[t]=QQ();break;case"25":R[t]=zQ();break;case"26":R[t]=eK();break;case"27":R[t]=iK();break;case"28":R[t]=rK();break;case"2e":R[t]=sK();break;case"2f":R[t]=lK();break;case"30":R[t]=cK();break;case"31":R[t]=dK();break;case"32":R[t]=fK();break;case"33":R[t]=mK();break;case"4d":R[t]=yK();break;case"4e":R[t]=wK();break;case"4f":R[t]=xK();break;case"50":R[t]=SK();break;case"51":R[t]=kK();break;case"52":R[t]=PK();break;case"53":R[t]=RK();break;case"54":R[t]=FK();break;case"55":R[t]=jK();break;case"56":R[t]=OK();break;case"57":R[t]=NK();break;case"58":R[t]=HK();break;case"59":R[t]=YK();break;case"5a":R[t]=ZK();break;case"5b":R[t]=$K();break;case"5c":R[t]=UK();break;case"5d":R[t]=QK();break;case"5e":R[t]=zK();break;case"5f":R[t]=ez();break;case"60":R[t]=iz();break;case"61":R[t]=rz();break;case"62":R[t]=sz();break;case"63":R[t]=lz();break;case"64":R[t]=cz();break;case"65":R[t]=dz();break;case"66":R[t]=fz();break;case"67":R[t]=mz();break;case"68":R[t]=yz();break;case"69":R[t]=wz();break;case"6a":R[t]=xz();break;case"6b":R[t]=Sz();break;case"6c":R[t]=kz();break;case"6d":R[t]=Pz();break;case"6e":R[t]=Rz();break;case"6f":R[t]=Fz();break;case"70":R[t]=jz();break;case"71":R[t]=Oz();break;case"72":R[t]=Nz();break;case"73":R[t]=Hz();break;case"74":R[t]=Yz();break;case"75":R[t]=Zz();break;case"76":R[t]=$z();break;case"77":R[t]=Uz();break;case"78":R[t]=Qz();break;case"79":R[t]=zz();break;case"7a":R[t]=e5();break;case"7b":R[t]=i5();break;case"7c":R[t]=r5();break;case"7d":R[t]=s5();break;case"7e":R[t]=l5();break;case"7f":R[t]=c5();break;case"80":R[t]=d5();break;case"81":R[t]=f5();break;case"82":R[t]=m5();break;case"83":R[t]=y5();break;case"84":R[t]=w5();break;case"85":R[t]=x5();break;case"86":R[t]=S5();break;case"87":R[t]=k5();break;case"88":R[t]=P5();break;case"89":R[t]=R5();break;case"8a":R[t]=F5();break;case"8b":R[t]=j5();break;case"8c":R[t]=O5();break;case"8d":R[t]=N5();break;case"8e":R[t]=H5();break;case"8f":R[t]=Y5();break;case"90":R[t]=Z5();break;case"91":R[t]=$5();break;case"92":R[t]=U5();break;case"93":R[t]=Q5();break;case"94":R[t]=z5();break;case"95":R[t]=e7();break;case"96":R[t]=i7();break;case"97":R[t]=r7();break;case"98":R[t]=s7();break;case"99":R[t]=l7();break;case"9a":R[t]=c7();break;case"9b":R[t]=d7();break;case"9c":R[t]=f7();break;case"9d":R[t]=m7();break;case"9e":R[t]=y7();break;case"9f":R[t]=w7();break;case"a0":R[t]=x7();break;case"a1":R[t]=S7();break;case"a2":R[t]=k7();break;case"a3":R[t]=P7();break;case"a4":R[t]=R7();break;case"ac":R[t]=F7();break;case"ad":R[t]=j7();break;case"ae":R[t]=O7();break;case"af":R[t]=N7();break;case"b0":R[t]=H7();break;case"b1":R[t]=Y7();break;case"b2":R[t]=Z7();break;case"b3":R[t]=$7();break;case"b4":R[t]=U7();break;case"b5":R[t]=Q7();break;case"b6":R[t]=z7();break;case"b7":R[t]=e9();break;case"b8":R[t]=i9();break;case"b9":R[t]=r9();break;case"ba":R[t]=s9();break;case"bb":R[t]=l9();break;case"bc":R[t]=c9();break;case"bd":R[t]=d9();break;case"be":R[t]=f9();break;case"bf":R[t]=m9();break;case"c0":R[t]=y9();break;case"c1":R[t]=w9();break;case"c2":R[t]=x9();break;case"c3":R[t]=S9();break;case"c4":R[t]=k9();break;case"c5":R[t]=P9();break;case"c6":R[t]=R9();break;case"c7":R[t]=F9();break;case"c8":R[t]=j9();break;case"c9":R[t]=O9();break;case"ca":R[t]=N9();break;case"cb":R[t]=H9();break;case"cc":R[t]=Y9();break;case"cd":R[t]=Z9();break;case"ce":R[t]=$9();break;case"cf":R[t]=U9();break;case"d0":R[t]=Q9();break;case"d1":R[t]=z9();break;case"d2":R[t]=eV();break;case"d3":R[t]=iV();break;case"d4":R[t]=rV();break;case"d5":R[t]=sV();break;case"d6":R[t]=lV();break;case"d7":R[t]=cV();break;case"f9":R[t]=dV();break;case"fa":R[t]=fV();break;case"fb":R[t]=mV();break;case"fc":R[t]=yV();break;case"fd":R[t]=wV();break;case"fe":R[t]=xV();break;case"ff":R[t]=SV();break;default:return""}return R[t][i]}function T0e(n){return(n+256).toString(16).substr(-2)}function k0e(n){for(var e,t,i,r,o,s,a;Array.isArray(n);)n=n[0];switch(n.length){case 1:return xo(n);case 2:return e=xo(n.substr(0,1)),t=xo(n.substr(1,1)),o=(e&3)<<6|t&63,s=(e&28)>>2,s<<8|o;case 3:return e=xo(n.substr(0,1)),t=xo(n.substr(1,1)),i=xo(n.substr(2,1)),o=(t&3)<<6|i&63,s=(e&15)<<4|(t&60)>>2,s<<8|o;default:return e=xo(n.substr(0,1)),t=xo(n.substr(1,1)),i=xo(n.substr(2,1)),r=xo(n.substr(3,1)),o=(i&3)<<6|r&63,s=(t&15)<<4|(i&60)>>2,a=(e&7)<<5|(t&48)>>4,a<<16|s<<8|o}}function xo(n){var e=n+"",t=e.charCodeAt(0);if(55296<=t&&t<=56319){var i=t;if(e.length===1)return t;var r=e.charCodeAt(1);return(i-55296)*1024+(r-56320)+65536}return 56320<=t&&t<=57343,t}});var EV=_(()=>{"use strict"});async function RV(n,e,t,i=""){if(e=="vim")return(await n.eval(t)).toString();if(e=="shell"){let o=await(0,_V.promisify)(PV.exec)(t);return o.stdout.replace(/\s*$/,"")||o.stderr}let r=[`snip._reset("${zf(i)}")`];return r.push(...t.split(/\r?\n/).map(o=>o.replace(/\t/g," "))),await kh(n,r),await n.call("pyxeval","str(snip.rv)")}function sD(n){let{range:e,regex:t,line:i}=n,r=[];if(t&&e!=null){let o=i.slice(e.start.character,e.end.character);r.push(`pattern = re.compile("${zf(t)}")`),r.push(`match = pattern.search("${zf(o)}")`)}else r.push("match = None");return r.join(` -`)}function LV(n){let{range:e,context:t,line:i}=n,r=["import re, os, vim, string, random",`path = vim.eval('expand("%:p")') or ""`,"fn = os.path.basename(path)"];t?(r.push("snip = ContextSnippet()"),r.push(`context = ${t}`)):r.push("context = True");let o=`(${e.start.line},${Buffer.byteLength(i.slice(0,e.start.character))})`,s=`(${e.start.line},${Buffer.byteLength(i.slice(0,e.end.character))})`,a=i.match(/^\s*/)[0];return r.push(`snip = SnippetUtil("${zf(a)}", ${o}, ${s}, context)`),r}async function kh(n,e){try{await n.command(`pyx ${P0e(e.join(` +`,"","","","",""," ","%0","%00","'","''","'''","`","``","```","^","<",">","*","!!","!?","-","_","-","^","***","--","/","-[","]-","[?]","?!","!?","7","PP","(]","[)","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","","","","","","","0","","","","4","5","6","7","8","9","+","-","=","(",")","n","0","1","2","3","4","5","6","7","8","9","+","-","=","(",")","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","ECU","CL","Cr","FF","L","mil","N","Pts","Rs","W","NS","D","EU","K","T","Dr","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","","","","","","","","","","","","","","","","","","","","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var bz=y((OQe,yz)=>{yz.exports=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"," 1/3 "," 2/3 "," 1/5 "," 2/5 "," 3/5 "," 4/5 "," 1/6 "," 5/6 "," 1/8 "," 3/8 "," 5/8 "," 7/8 "," 1/","I","II","III","IV","V","VI","VII","VIII","IX","X","XI","XII","L","C","D","M","i","ii","iii","iv","v","vi","vii","viii","ix","x","xi","xii","l","c","d","m","(D","D)","((|))",")","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","-","|","-","|","-","|","\\","/","\\","/","-","-","~","~","-","|","-","|","-","-","-","|","-","|","|","-","-","-","-","-","-","|","|","|","|","|","|","|","^","V","\\","=","V","^","-","-","|","|","-","-","|","|","=","|","=","=","|","=","|","=","=","=","=","=","=","|","=","|","=","|","\\","/","\\","/","=","=","~","~","|","|","-","|","-","|","-","-","-","|","-","|","|","|","|","|","|","|","-","\\","\\","|","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var wz=y((NQe,vz)=>{vz.exports=["[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var Cz=y((BQe,Dz)=>{Dz.exports=["[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var Sz=y((HQe,xz)=>{xz.exports=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","","","","","","","","","","","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var kz=y((qQe,Tz)=>{Tz.exports=["-","-","|","|","-","-","|","|","-","-","|","|","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","-","-","|","|","-","|","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","/","\\","X","-","|","-","|","-","|","-","|","-","|","-","|","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","-","|","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","^","^","^","^",">",">",">",">",">",">","V","V","V","V","<","<","<","<","<","<","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","#","#","#","#","#","^","^","^","O","#","#","#","#","#","#","#","#","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var Pz=y((YQe,Ez)=>{Ez.exports=["","","","","","","","","","","","","","","","","","","","","[?]","[?]","[?]","[?]","[?]","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var Rz=y((WQe,_z)=>{_z.exports=["[?]","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","[?]","[?]","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","[?]","","","","","","","","","","","","","","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var Fz=y((ZQe,Lz)=>{Lz.exports=[" ","a","1","b","'","k","2","l","@","c","i","f","/","m","s","p",'"',"e","3","h","9","o","6","r","^","d","j","g",">","n","t","q",",","*","5","<","-","u","8","v",".","%","[","$","+","x","!","&",";",":","4","\\","0","z","7","(","_","?","w","]","#","y",")","=","[d7]","[d17]","[d27]","[d127]","[d37]","[d137]","[d237]","[d1237]","[d47]","[d147]","[d247]","[d1247]","[d347]","[d1347]","[d2347]","[d12347]","[d57]","[d157]","[d257]","[d1257]","[d357]","[d1357]","[d2357]","[d12357]","[d457]","[d1457]","[d2457]","[d12457]","[d3457]","[d13457]","[d23457]","[d123457]","[d67]","[d167]","[d267]","[d1267]","[d367]","[d1367]","[d2367]","[d12367]","[d467]","[d1467]","[d2467]","[d12467]","[d3467]","[d13467]","[d23467]","[d123467]","[d567]","[d1567]","[d2567]","[d12567]","[d3567]","[d13567]","[d23567]","[d123567]","[d4567]","[d14567]","[d24567]","[d124567]","[d34567]","[d134567]","[d234567]","[d1234567]","[d8]","[d18]","[d28]","[d128]","[d38]","[d138]","[d238]","[d1238]","[d48]","[d148]","[d248]","[d1248]","[d348]","[d1348]","[d2348]","[d12348]","[d58]","[d158]","[d258]","[d1258]","[d358]","[d1358]","[d2358]","[d12358]","[d458]","[d1458]","[d2458]","[d12458]","[d3458]","[d13458]","[d23458]","[d123458]","[d68]","[d168]","[d268]","[d1268]","[d368]","[d1368]","[d2368]","[d12368]","[d468]","[d1468]","[d2468]","[d12468]","[d3468]","[d13468]","[d23468]","[d123468]","[d568]","[d1568]","[d2568]","[d12568]","[d3568]","[d13568]","[d23568]","[d123568]","[d4568]","[d14568]","[d24568]","[d124568]","[d34568]","[d134568]","[d234568]","[d1234568]","[d78]","[d178]","[d278]","[d1278]","[d378]","[d1378]","[d2378]","[d12378]","[d478]","[d1478]","[d2478]","[d12478]","[d3478]","[d13478]","[d23478]","[d123478]","[d578]","[d1578]","[d2578]","[d12578]","[d3578]","[d13578]","[d23578]","[d123578]","[d4578]","[d14578]","[d24578]","[d124578]","[d34578]","[d134578]","[d234578]","[d1234578]","[d678]","[d1678]","[d2678]","[d12678]","[d3678]","[d13678]","[d23678]","[d123678]","[d4678]","[d14678]","[d24678]","[d124678]","[d34678]","[d134678]","[d234678]","[d1234678]","[d5678]","[d15678]","[d25678]","[d125678]","[d35678]","[d135678]","[d235678]","[d1235678]","[d45678]","[d145678]","[d245678]","[d1245678]","[d345678]","[d1345678]","[d2345678]","[d12345678]"]});var jz=y((JQe,Iz)=>{Iz.exports=["[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?]","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var Mz=y(($Qe,Az)=>{Az.exports=["[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?]","[?]","[?]"]});var Nz=y((XQe,Oz)=>{Oz.exports=[" ",", ",". ",'"',"[JIS]",'"',"/","0","<","> ","<<",">> ","[","] ","{","} ","[(",")] ","@","X ","[","] ","[[","]] ","((",")) ","[[","]] ","~ ","``","''",",,","@","1","2","3","4","5","6","7","8","9","","","","","","","~","+","+","+","+","","@"," // ","+10+","+20+","+30+","[?]","[?]","[?]","","","[?]","a","a","i","i","u","u","e","e","o","o","ka","ga","ki","gi","ku","gu","ke","ge","ko","go","sa","za","si","zi","su","zu","se","ze","so","zo","ta","da","ti","di","tu","tu","du","te","de","to","do","na","ni","nu","ne","no","ha","ba","pa","hi","bi","pi","hu","bu","pu","he","be","pe","ho","bo","po","ma","mi","mu","me","mo","ya","ya","yu","yu","yo","yo","ra","ri","ru","re","ro","wa","wa","wi","we","wo","n","vu","[?]","[?]","[?]","[?]","","","","",'"','"',"[?]","[?]","a","a","i","i","u","u","e","e","o","o","ka","ga","ki","gi","ku","gu","ke","ge","ko","go","sa","za","si","zi","su","zu","se","ze","so","zo","ta","da","ti","di","tu","tu","du","te","de","to","do","na","ni","nu","ne","no","ha","ba","pa","hi","bi","pi","hu","bu","pu","he","be","pe","ho","bo","po","ma","mi","mu","me","mo","ya","ya","yu","yu","yo","yo","ra","ri","ru","re","ro","wa","wa","wi","we","wo","n","vu","ka","ke","va","vi","ve","vo","","",'"','"']});var Hz=y((UQe,Bz)=>{Bz.exports=["[?]","[?]","[?]","[?]","[?]","B","P","M","F","D","T","N","L","G","K","H","J","Q","X","ZH","CH","SH","R","Z","C","S","A","O","E","EH","AI","EI","AU","OU","AN","EN","ANG","ENG","ER","I","U","IU","V","NG","GN","[?]","[?]","[?]","[?]","g","gg","gs","n","nj","nh","d","dd","r","lg","lm","lb","ls","lt","lp","rh","m","b","bb","bs","s","ss","","j","jj","c","k","t","p","h","a","ae","ya","yae","eo","e","yeo","ye","o","wa","wae","oe","yo","u","weo","we","wi","yu","eu","yi","i","","nn","nd","ns","nZ","lgs","ld","lbs","lZ","lQ","mb","ms","mZ","mN","bg","","bsg","bst","bj","bt","bN","bbN","sg","sn","sd","sb","sj","Z","","N","Ns","NZ","pN","hh","Q","yo-ya","yo-yae","yo-i","yu-yeo","yu-ye","yu-i","U","U-i","[?]","","","","","","","","","","","","","","","","","BU","ZI","JI","GU","EE","ENN","OO","ONN","IR","ANN","INN","UNN","IM","NGG","AINN","AUNN","AM","OM","ONG","INNN","P","T","K","H","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var Yz=y((GQe,qz)=>{qz.exports=["(g)","(n)","(d)","(r)","(m)","(b)","(s)","()","(j)","(c)","(k)","(t)","(p)","(h)","(ga)","(na)","(da)","(ra)","(ma)","(ba)","(sa)","(a)","(ja)","(ca)","(ka)","(ta)","(pa)","(ha)","(ju)","[?]","[?]","[?]","(1) ","(2) ","(3) ","(4) ","(5) ","(6) ","(7) ","(8) ","(9) ","(10) ","(Yue) ","(Huo) ","(Shui) ","(Mu) ","(Jin) ","(Tu) ","(Ri) ","(Zhu) ","(You) ","(She) ","(Ming) ","(Te) ","(Cai) ","(Zhu) ","(Lao) ","(Dai) ","(Hu) ","(Xue) ","(Jian) ","(Qi) ","(Zi) ","(Xie) ","(Ji) ","(Xiu) ","<<",">>","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","(g)","(n)","(d)","(r)","(m)","(b)","(s)","()","(j)","(c)","(k)","(t)","(p)","(h)","(ga)","(na)","(da)","(ra)","(ma)","(ba)","(sa)","(a)","(ja)","(ca)","(ka)","(ta)","(pa)","(ha)","[?]","[?]","[?]","KIS ","(1) ","(2) ","(3) ","(4) ","(5) ","(6) ","(7) ","(8) ","(9) ","(10) ","(Yue) ","(Huo) ","(Shui) ","(Mu) ","(Jin) ","(Tu) ","(Ri) ","(Zhu) ","(You) ","(She) ","(Ming) ","(Te) ","(Cai) ","(Zhu) ","(Lao) ","(Mi) ","(Nan) ","(Nu) ","(Shi) ","(You) ","(Yin) ","(Zhu) ","(Xiang) ","(Xiu) ","(Xie) ","(Zheng) ","(Shang) ","(Zhong) ","(Xia) ","(Zuo) ","(You) ","(Yi) ","(Zong) ","(Xue) ","(Jian) ","(Qi) ","(Zi) ","(Xie) ","(Ye) ","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","1M","2M","3M","4M","5M","6M","7M","8M","9M","10M","11M","12M","[?]","[?]","[?]","[?]","a","i","u","u","o","ka","ki","ku","ke","ko","sa","si","su","se","so","ta","ti","tu","te","to","na","ni","nu","ne","no","ha","hi","hu","he","ho","ma","mi","mu","me","mo","ya","yu","yo","ra","ri","ru","re","ro","wa","wi","we","wo"]});var Zz=y((KQe,Wz)=>{Wz.exports=["apartment","alpha","ampere","are","inning","inch","won","escudo","acre","ounce","ohm","kai-ri","carat","calorie","gallon","gamma","giga","guinea","curie","guilder","kilo","kilogram","kilometer","kilowatt","gram","gram ton","cruzeiro","krone","case","koruna","co-op","cycle","centime","shilling","centi","cent","dozen","desi","dollar","ton","nano","knot","heights","percent","parts","barrel","piaster","picul","pico","building","farad","feet","bushel","franc","hectare","peso","pfennig","hertz","pence","page","beta","point","volt","hon","pound","hall","horn","micro","mile","mach","mark","mansion","micron","milli","millibar","mega","megaton","meter","yard","yard","yuan","liter","lira","rupee","ruble","rem","roentgen","watt","0h","1h","2h","3h","4h","5h","6h","7h","8h","9h","10h","11h","12h","13h","14h","15h","16h","17h","18h","19h","20h","21h","22h","23h","24h","HPA","da","AU","bar","oV","pc","[?]","[?]","[?]","[?]","Heisei","Syouwa","Taisyou","Meiji","Inc.","pA","nA","microamp","mA","kA","kB","MB","GB","cal","kcal","pF","nF","microFarad","microgram","mg","kg","Hz","kHz","MHz","GHz","THz","microliter","ml","dl","kl","fm","nm","micrometer","mm","cm","km","mm^2","cm^2","m^2","km^2","mm^4","cm^3","m^3","km^3","m/s","m/s^2","Pa","kPa","MPa","GPa","rad","rad/s","rad/s^2","ps","ns","microsecond","ms","pV","nV","microvolt","mV","kV","MV","pW","nW","microwatt","mW","kW","MW","kOhm","MOhm","a.m.","Bq","cc","cd","C/kg","Co.","dB","Gy","ha","HP","in","K.K.","KM","kt","lm","ln","log","lx","mb","mil","mol","pH","p.m.","PPM","PR","sr","Sv","Wb","[?]","[?]","1d","2d","3d","4d","5d","6d","7d","8d","9d","10d","11d","12d","13d","14d","15d","16d","17d","18d","19d","20d","21d","22d","23d","24d","25d","26d","27d","28d","29d","30d","31d"]});var $z=y((QQe,Jz)=>{Jz.exports=["[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var Uz=y((zQe,Xz)=>{Xz.exports=["Yi ","Ding ","Kao ","Qi ","Shang ","Xia ","[?] ","Mo ","Zhang ","San ","Shang ","Xia ","Ji ","Bu ","Yu ","Mian ","Gai ","Chou ","Chou ","Zhuan ","Qie ","Pi ","Shi ","Shi ","Qiu ","Bing ","Ye ","Cong ","Dong ","Si ","Cheng ","Diu ","Qiu ","Liang ","Diu ","You ","Liang ","Yan ","Bing ","Sang ","Gun ","Jiu ","Ge ","Ya ","Qiang ","Zhong ","Ji ","Jie ","Feng ","Guan ","Chuan ","Chan ","Lin ","Zhuo ","Zhu ","Ha ","Wan ","Dan ","Wei ","Zhu ","Jing ","Li ","Ju ","Pie ","Fu ","Yi ","Yi ","Nai ","Shime ","Jiu ","Jiu ","Zhe ","Yao ","Yi ","[?] ","Zhi ","Wu ","Zha ","Hu ","Fa ","Le ","Zhong ","Ping ","Pang ","Qiao ","Hu ","Guai ","Cheng ","Cheng ","Yi ","Yin ","[?] ","Mie ","Jiu ","Qi ","Ye ","Xi ","Xiang ","Gai ","Diu ","Hal ","[?] ","Shu ","Twul ","Shi ","Ji ","Nang ","Jia ","Kel ","Shi ","[?] ","Ol ","Mai ","Luan ","Cal ","Ru ","Xue ","Yan ","Fu ","Sha ","Na ","Gan ","Sol ","El ","Cwul ","[?] ","Gan ","Chi ","Gui ","Gan ","Luan ","Lin ","Yi ","Jue ","Liao ","Ma ","Yu ","Zheng ","Shi ","Shi ","Er ","Chu ","Yu ","Yu ","Yu ","Yun ","Hu ","Qi ","Wu ","Jing ","Si ","Sui ","Gen ","Gen ","Ya ","Xie ","Ya ","Qi ","Ya ","Ji ","Tou ","Wang ","Kang ","Ta ","Jiao ","Hai ","Yi ","Chan ","Heng ","Mu ","[?] ","Xiang ","Jing ","Ting ","Liang ","Xiang ","Jing ","Ye ","Qin ","Bo ","You ","Xie ","Dan ","Lian ","Duo ","Wei ","Ren ","Ren ","Ji ","La ","Wang ","Yi ","Shi ","Ren ","Le ","Ding ","Ze ","Jin ","Pu ","Chou ","Ba ","Zhang ","Jin ","Jie ","Bing ","Reng ","Cong ","Fo ","San ","Lun ","Sya ","Cang ","Zi ","Shi ","Ta ","Zhang ","Fu ","Xian ","Xian ","Tuo ","Hong ","Tong ","Ren ","Qian ","Gan ","Yi ","Di ","Dai ","Ling ","Yi ","Chao ","Chang ","Sa ","[?] ","Yi ","Mu ","Men ","Ren ","Jia ","Chao ","Yang ","Qian ","Zhong ","Pi ","Wan ","Wu ","Jian ","Jie ","Yao ","Feng ","Cang ","Ren ","Wang ","Fen ","Di ","Fang "]});var Kz=y((VQe,Gz)=>{Gz.exports=["Zhong ","Qi ","Pei ","Yu ","Diao ","Dun ","Wen ","Yi ","Xin ","Kang ","Yi ","Ji ","Ai ","Wu ","Ji ","Fu ","Fa ","Xiu ","Jin ","Bei ","Dan ","Fu ","Tang ","Zhong ","You ","Huo ","Hui ","Yu ","Cui ","Chuan ","San ","Wei ","Chuan ","Che ","Ya ","Xian ","Shang ","Chang ","Lun ","Cang ","Xun ","Xin ","Wei ","Zhu ","[?] ","Xuan ","Nu ","Bo ","Gu ","Ni ","Ni ","Xie ","Ban ","Xu ","Ling ","Zhou ","Shen ","Qu ","Si ","Beng ","Si ","Jia ","Pi ","Yi ","Si ","Ai ","Zheng ","Dian ","Han ","Mai ","Dan ","Zhu ","Bu ","Qu ","Bi ","Shao ","Ci ","Wei ","Di ","Zhu ","Zuo ","You ","Yang ","Ti ","Zhan ","He ","Bi ","Tuo ","She ","Yu ","Yi ","Fo ","Zuo ","Kou ","Ning ","Tong ","Ni ","Xuan ","Qu ","Yong ","Wa ","Qian ","[?] ","Ka ","[?] ","Pei ","Huai ","He ","Lao ","Xiang ","Ge ","Yang ","Bai ","Fa ","Ming ","Jia ","Er ","Bing ","Ji ","Hen ","Huo ","Gui ","Quan ","Tiao ","Jiao ","Ci ","Yi ","Shi ","Xing ","Shen ","Tuo ","Kan ","Zhi ","Gai ","Lai ","Yi ","Chi ","Kua ","Guang ","Li ","Yin ","Shi ","Mi ","Zhu ","Xu ","You ","An ","Lu ","Mou ","Er ","Lun ","Tong ","Cha ","Chi ","Xun ","Gong ","Zhou ","Yi ","Ru ","Jian ","Xia ","Jia ","Zai ","Lu ","Ko ","Jiao ","Zhen ","Ce ","Qiao ","Kuai ","Chai ","Ning ","Nong ","Jin ","Wu ","Hou ","Jiong ","Cheng ","Zhen ","Zuo ","Chou ","Qin ","Lu ","Ju ","Shu ","Ting ","Shen ","Tuo ","Bo ","Nan ","Hao ","Bian ","Tui ","Yu ","Xi ","Cu ","E ","Qiu ","Xu ","Kuang ","Ku ","Wu ","Jun ","Yi ","Fu ","Lang ","Zu ","Qiao ","Li ","Yong ","Hun ","Jing ","Xian ","San ","Pai ","Su ","Fu ","Xi ","Li ","Fu ","Ping ","Bao ","Yu ","Si ","Xia ","Xin ","Xiu ","Yu ","Ti ","Che ","Chou ","[?] ","Yan ","Lia ","Li ","Lai ","[?] ","Jian ","Xiu ","Fu ","He ","Ju ","Xiao ","Pai ","Jian ","Biao ","Chu ","Fei ","Feng ","Ya ","An ","Bei ","Yu ","Xin ","Bi ","Jian "]});var zz=y((eze,Qz)=>{Qz.exports=["Chang ","Chi ","Bing ","Zan ","Yao ","Cui ","Lia ","Wan ","Lai ","Cang ","Zong ","Ge ","Guan ","Bei ","Tian ","Shu ","Shu ","Men ","Dao ","Tan ","Jue ","Chui ","Xing ","Peng ","Tang ","Hou ","Yi ","Qi ","Ti ","Gan ","Jing ","Jie ","Sui ","Chang ","Jie ","Fang ","Zhi ","Kong ","Juan ","Zong ","Ju ","Qian ","Ni ","Lun ","Zhuo ","Wei ","Luo ","Song ","Leng ","Hun ","Dong ","Zi ","Ben ","Wu ","Ju ","Nai ","Cai ","Jian ","Zhai ","Ye ","Zhi ","Sha ","Qing ","[?] ","Ying ","Cheng ","Jian ","Yan ","Nuan ","Zhong ","Chun ","Jia ","Jie ","Wei ","Yu ","Bing ","Ruo ","Ti ","Wei ","Pian ","Yan ","Feng ","Tang ","Wo ","E ","Xie ","Che ","Sheng ","Kan ","Di ","Zuo ","Cha ","Ting ","Bei ","Ye ","Huang ","Yao ","Zhan ","Chou ","Yan ","You ","Jian ","Xu ","Zha ","Ci ","Fu ","Bi ","Zhi ","Zong ","Mian ","Ji ","Yi ","Xie ","Xun ","Si ","Duan ","Ce ","Zhen ","Ou ","Tou ","Tou ","Bei ","Za ","Lu ","Jie ","Wei ","Fen ","Chang ","Gui ","Sou ","Zhi ","Su ","Xia ","Fu ","Yuan ","Rong ","Li ","Ru ","Yun ","Gou ","Ma ","Bang ","Dian ","Tang ","Hao ","Jie ","Xi ","Shan ","Qian ","Jue ","Cang ","Chu ","San ","Bei ","Xiao ","Yong ","Yao ","Tan ","Suo ","Yang ","Fa ","Bing ","Jia ","Dai ","Zai ","Tang ","[?] ","Bin ","Chu ","Nuo ","Can ","Lei ","Cui ","Yong ","Zao ","Zong ","Peng ","Song ","Ao ","Chuan ","Yu ","Zhai ","Cou ","Shang ","Qiang ","Jing ","Chi ","Sha ","Han ","Zhang ","Qing ","Yan ","Di ","Xi ","Lu ","Bei ","Piao ","Jin ","Lian ","Lu ","Man ","Qian ","Xian ","Tan ","Ying ","Dong ","Zhuan ","Xiang ","Shan ","Qiao ","Jiong ","Tui ","Zun ","Pu ","Xi ","Lao ","Chang ","Guang ","Liao ","Qi ","Deng ","Chan ","Wei ","Ji ","Fan ","Hui ","Chuan ","Jian ","Dan ","Jiao ","Jiu ","Seng ","Fen ","Xian ","Jue ","E ","Jiao ","Jian ","Tong ","Lin ","Bo ","Gu ","[?] ","Su ","Xian ","Jiang ","Min ","Ye ","Jin ","Jia ","Qiao ","Pi ","Feng ","Zhou ","Ai ","Sai "]});var e7=y((tze,Vz)=>{Vz.exports=["Yi ","Jun ","Nong ","Chan ","Yi ","Dang ","Jing ","Xuan ","Kuai ","Jian ","Chu ","Dan ","Jiao ","Sha ","Zai ","[?] ","Bin ","An ","Ru ","Tai ","Chou ","Chai ","Lan ","Ni ","Jin ","Qian ","Meng ","Wu ","Ning ","Qiong ","Ni ","Chang ","Lie ","Lei ","Lu ","Kuang ","Bao ","Du ","Biao ","Zan ","Zhi ","Si ","You ","Hao ","Chen ","Chen ","Li ","Teng ","Wei ","Long ","Chu ","Chan ","Rang ","Shu ","Hui ","Li ","Luo ","Zan ","Nuo ","Tang ","Yan ","Lei ","Nang ","Er ","Wu ","Yun ","Zan ","Yuan ","Xiong ","Chong ","Zhao ","Xiong ","Xian ","Guang ","Dui ","Ke ","Dui ","Mian ","Tu ","Chang ","Er ","Dui ","Er ","Xin ","Tu ","Si ","Yan ","Yan ","Shi ","Shi ","Dang ","Qian ","Dou ","Fen ","Mao ","Shen ","Dou ","Bai ","Jing ","Li ","Huang ","Ru ","Wang ","Nei ","Quan ","Liang ","Yu ","Ba ","Gong ","Liu ","Xi ","[?] ","Lan ","Gong ","Tian ","Guan ","Xing ","Bing ","Qi ","Ju ","Dian ","Zi ","Ppwun ","Yang ","Jian ","Shou ","Ji ","Yi ","Ji ","Chan ","Jiong ","Mao ","Ran ","Nei ","Yuan ","Mao ","Gang ","Ran ","Ce ","Jiong ","Ce ","Zai ","Gua ","Jiong ","Mao ","Zhou ","Mou ","Gou ","Xu ","Mian ","Mi ","Rong ","Yin ","Xie ","Kan ","Jun ","Nong ","Yi ","Mi ","Shi ","Guan ","Meng ","Zhong ","Ju ","Yuan ","Ming ","Kou ","Lam ","Fu ","Xie ","Mi ","Bing ","Dong ","Tai ","Gang ","Feng ","Bing ","Hu ","Chong ","Jue ","Hu ","Kuang ","Ye ","Leng ","Pan ","Fu ","Min ","Dong ","Xian ","Lie ","Xia ","Jian ","Jing ","Shu ","Mei ","Tu ","Qi ","Gu ","Zhun ","Song ","Jing ","Liang ","Qing ","Diao ","Ling ","Dong ","Gan ","Jian ","Yin ","Cou ","Yi ","Li ","Cang ","Ming ","Zhuen ","Cui ","Si ","Duo ","Jin ","Lin ","Lin ","Ning ","Xi ","Du ","Ji ","Fan ","Fan ","Fan ","Feng ","Ju ","Chu ","Tako ","Feng ","Mok ","Ci ","Fu ","Feng ","Ping ","Feng ","Kai ","Huang ","Kai ","Gan ","Deng ","Ping ","Qu ","Xiong ","Kuai ","Tu ","Ao ","Chu ","Ji ","Dang ","Han ","Han ","Zao "]});var i7=y((ize,t7)=>{t7.exports=["Dao ","Diao ","Dao ","Ren ","Ren ","Chuang ","Fen ","Qie ","Yi ","Ji ","Kan ","Qian ","Cun ","Chu ","Wen ","Ji ","Dan ","Xing ","Hua ","Wan ","Jue ","Li ","Yue ","Lie ","Liu ","Ze ","Gang ","Chuang ","Fu ","Chu ","Qu ","Ju ","Shan ","Min ","Ling ","Zhong ","Pan ","Bie ","Jie ","Jie ","Bao ","Li ","Shan ","Bie ","Chan ","Jing ","Gua ","Gen ","Dao ","Chuang ","Kui ","Ku ","Duo ","Er ","Zhi ","Shua ","Quan ","Cha ","Ci ","Ke ","Jie ","Gui ","Ci ","Gui ","Kai ","Duo ","Ji ","Ti ","Jing ","Lou ","Gen ","Ze ","Yuan ","Cuo ","Xue ","Ke ","La ","Qian ","Cha ","Chuang ","Gua ","Jian ","Cuo ","Li ","Ti ","Fei ","Pou ","Chan ","Qi ","Chuang ","Zi ","Gang ","Wan ","Bo ","Ji ","Duo ","Qing ","Yan ","Zhuo ","Jian ","Ji ","Bo ","Yan ","Ju ","Huo ","Sheng ","Jian ","Duo ","Duan ","Wu ","Gua ","Fu ","Sheng ","Jian ","Ge ","Zha ","Kai ","Chuang ","Juan ","Chan ","Tuan ","Lu ","Li ","Fou ","Shan ","Piao ","Kou ","Jiao ","Gua ","Qiao ","Jue ","Hua ","Zha ","Zhuo ","Lian ","Ju ","Pi ","Liu ","Gui ","Jiao ","Gui ","Jian ","Jian ","Tang ","Huo ","Ji ","Jian ","Yi ","Jian ","Zhi ","Chan ","Cuan ","Mo ","Li ","Zhu ","Li ","Ya ","Quan ","Ban ","Gong ","Jia ","Wu ","Mai ","Lie ","Jin ","Keng ","Xie ","Zhi ","Dong ","Zhu ","Nu ","Jie ","Qu ","Shao ","Yi ","Zhu ","Miao ","Li ","Jing ","Lao ","Lao ","Juan ","Kou ","Yang ","Wa ","Xiao ","Mou ","Kuang ","Jie ","Lie ","He ","Shi ","Ke ","Jing ","Hao ","Bo ","Min ","Chi ","Lang ","Yong ","Yong ","Mian ","Ke ","Xun ","Juan ","Qing ","Lu ","Pou ","Meng ","Lai ","Le ","Kai ","Mian ","Dong ","Xu ","Xu ","Kan ","Wu ","Yi ","Xun ","Weng ","Sheng ","Lao ","Mu ","Lu ","Piao ","Shi ","Ji ","Qin ","Qiang ","Jiao ","Quan ","Yang ","Yi ","Jue ","Fan ","Juan ","Tong ","Ju ","Dan ","Xie ","Mai ","Xun ","Xun ","Lu ","Li ","Che ","Rang ","Quan ","Bao ","Shao ","Yun ","Jiu ","Bao ","Gou ","Wu "]});var r7=y((nze,n7)=>{n7.exports=["Yun ","Mwun ","Nay ","Gai ","Gai ","Bao ","Cong ","[?] ","Xiong ","Peng ","Ju ","Tao ","Ge ","Pu ","An ","Pao ","Fu ","Gong ","Da ","Jiu ","Qiong ","Bi ","Hua ","Bei ","Nao ","Chi ","Fang ","Jiu ","Yi ","Za ","Jiang ","Kang ","Jiang ","Kuang ","Hu ","Xia ","Qu ","Bian ","Gui ","Qie ","Zang ","Kuang ","Fei ","Hu ","Tou ","Gui ","Gui ","Hui ","Dan ","Gui ","Lian ","Lian ","Suan ","Du ","Jiu ","Qu ","Xi ","Pi ","Qu ","Yi ","Qia ","Yan ","Bian ","Ni ","Qu ","Shi ","Xin ","Qian ","Nian ","Sa ","Zu ","Sheng ","Wu ","Hui ","Ban ","Shi ","Xi ","Wan ","Hua ","Xie ","Wan ","Bei ","Zu ","Zhuo ","Xie ","Dan ","Mai ","Nan ","Dan ","Ji ","Bo ","Shuai ","Bu ","Kuang ","Bian ","Bu ","Zhan ","Qia ","Lu ","You ","Lu ","Xi ","Gua ","Wo ","Xie ","Jie ","Jie ","Wei ","Ang ","Qiong ","Zhi ","Mao ","Yin ","Wei ","Shao ","Ji ","Que ","Luan ","Shi ","Juan ","Xie ","Xu ","Jin ","Que ","Wu ","Ji ","E ","Qing ","Xi ","[?] ","Han ","Zhan ","E ","Ting ","Li ","Zhe ","Han ","Li ","Ya ","Ya ","Yan ","She ","Zhi ","Zha ","Pang ","[?] ","He ","Ya ","Zhi ","Ce ","Pang ","Ti ","Li ","She ","Hou ","Ting ","Zui ","Cuo ","Fei ","Yuan ","Ce ","Yuan ","Xiang ","Yan ","Li ","Jue ","Sha ","Dian ","Chu ","Jiu ","Qin ","Ao ","Gui ","Yan ","Si ","Li ","Chang ","Lan ","Li ","Yan ","Yan ","Yuan ","Si ","Gong ","Lin ","Qiu ","Qu ","Qu ","Uk ","Lei ","Du ","Xian ","Zhuan ","San ","Can ","Can ","Can ","Can ","Ai ","Dai ","You ","Cha ","Ji ","You ","Shuang ","Fan ","Shou ","Guai ","Ba ","Fa ","Ruo ","Shi ","Shu ","Zhuo ","Qu ","Shou ","Bian ","Xu ","Jia ","Pan ","Sou ","Gao ","Wei ","Sou ","Die ","Rui ","Cong ","Kou ","Gu ","Ju ","Ling ","Gua ","Tao ","Kou ","Zhi ","Jiao ","Zhao ","Ba ","Ding ","Ke ","Tai ","Chi ","Shi ","You ","Qiu ","Po ","Xie ","Hao ","Si ","Tan ","Chi ","Le ","Diao ","Ji ","[?] ","Hong "]});var s7=y((rze,o7)=>{o7.exports=["Mie ","Xu ","Mang ","Chi ","Ge ","Xuan ","Yao ","Zi ","He ","Ji ","Diao ","Cun ","Tong ","Ming ","Hou ","Li ","Tu ","Xiang ","Zha ","Xia ","Ye ","Lu ","A ","Ma ","Ou ","Xue ","Yi ","Jun ","Chou ","Lin ","Tun ","Yin ","Fei ","Bi ","Qin ","Qin ","Jie ","Bu ","Fou ","Ba ","Dun ","Fen ","E ","Han ","Ting ","Hang ","Shun ","Qi ","Hong ","Zhi ","Shen ","Wu ","Wu ","Chao ","Ne ","Xue ","Xi ","Chui ","Dou ","Wen ","Hou ","Ou ","Wu ","Gao ","Ya ","Jun ","Lu ","E ","Ge ","Mei ","Ai ","Qi ","Cheng ","Wu ","Gao ","Fu ","Jiao ","Hong ","Chi ","Sheng ","Ne ","Tun ","Fu ","Yi ","Dai ","Ou ","Li ","Bai ","Yuan ","Kuai ","[?] ","Qiang ","Wu ","E ","Shi ","Quan ","Pen ","Wen ","Ni ","M ","Ling ","Ran ","You ","Di ","Zhou ","Shi ","Zhou ","Tie ","Xi ","Yi ","Qi ","Ping ","Zi ","Gu ","Zi ","Wei ","Xu ","He ","Nao ","Xia ","Pei ","Yi ","Xiao ","Shen ","Hu ","Ming ","Da ","Qu ","Ju ","Gem ","Za ","Tuo ","Duo ","Pou ","Pao ","Bi ","Fu ","Yang ","He ","Zha ","He ","Hai ","Jiu ","Yong ","Fu ","Que ","Zhou ","Wa ","Ka ","Gu ","Ka ","Zuo ","Bu ","Long ","Dong ","Ning ","Tha ","Si ","Xian ","Huo ","Qi ","Er ","E ","Guang ","Zha ","Xi ","Yi ","Lie ","Zi ","Mie ","Mi ","Zhi ","Yao ","Ji ","Zhou ","Ge ","Shuai ","Zan ","Xiao ","Ke ","Hui ","Kua ","Huai ","Tao ","Xian ","E ","Xuan ","Xiu ","Wai ","Yan ","Lao ","Yi ","Ai ","Pin ","Shen ","Tong ","Hong ","Xiong ","Chi ","Wa ","Ha ","Zai ","Yu ","Di ","Pai ","Xiang ","Ai ","Hen ","Kuang ","Ya ","Da ","Xiao ","Bi ","Yue ","[?] ","Hua ","Sasou ","Kuai ","Duo ","[?] ","Ji ","Nong ","Mou ","Yo ","Hao ","Yuan ","Long ","Pou ","Mang ","Ge ","E ","Chi ","Shao ","Li ","Na ","Zu ","He ","Ku ","Xiao ","Xian ","Lao ","Bo ","Zhe ","Zha ","Liang ","Ba ","Mie ","Le ","Sui ","Fou ","Bu ","Han ","Heng ","Geng ","Shuo ","Ge "]});var l7=y((oze,a7)=>{a7.exports=["You ","Yan ","Gu ","Gu ","Bai ","Han ","Suo ","Chun ","Yi ","Ai ","Jia ","Tu ","Xian ","Huan ","Li ","Xi ","Tang ","Zuo ","Qiu ","Che ","Wu ","Zao ","Ya ","Dou ","Qi ","Di ","Qin ","Ma ","Mal ","Hong ","Dou ","Kes ","Lao ","Liang ","Suo ","Zao ","Huan ","Lang ","Sha ","Ji ","Zuo ","Wo ","Feng ","Yin ","Hu ","Qi ","Shou ","Wei ","Shua ","Chang ","Er ","Li ","Qiang ","An ","Jie ","Yo ","Nian ","Yu ","Tian ","Lai ","Sha ","Xi ","Tuo ","Hu ","Ai ","Zhou ","Nou ","Ken ","Zhuo ","Zhuo ","Shang ","Di ","Heng ","Lan ","A ","Xiao ","Xiang ","Tun ","Wu ","Wen ","Cui ","Sha ","Hu ","Qi ","Qi ","Tao ","Dan ","Dan ","Ye ","Zi ","Bi ","Cui ","Chuo ","He ","Ya ","Qi ","Zhe ","Pei ","Liang ","Xian ","Pi ","Sha ","La ","Ze ","Qing ","Gua ","Pa ","Zhe ","Se ","Zhuan ","Nie ","Guo ","Luo ","Yan ","Di ","Quan ","Tan ","Bo ","Ding ","Lang ","Xiao ","[?] ","Tang ","Chi ","Ti ","An ","Jiu ","Dan ","Ke ","Yong ","Wei ","Nan ","Shan ","Yu ","Zhe ","La ","Jie ","Hou ","Han ","Die ","Zhou ","Chai ","Wai ","Re ","Yu ","Yin ","Zan ","Yao ","Wo ","Mian ","Hu ","Yun ","Chuan ","Hui ","Huan ","Huan ","Xi ","He ","Ji ","Kui ","Zhong ","Wei ","Sha ","Xu ","Huang ","Du ","Nie ","Xuan ","Liang ","Yu ","Sang ","Chi ","Qiao ","Yan ","Dan ","Pen ","Can ","Li ","Yo ","Zha ","Wei ","Miao ","Ying ","Pen ","Phos ","Kui ","Xi ","Yu ","Jie ","Lou ","Ku ","Sao ","Huo ","Ti ","Yao ","He ","A ","Xiu ","Qiang ","Se ","Yong ","Su ","Hong ","Xie ","Yi ","Suo ","Ma ","Cha ","Hai ","Ke ","Ta ","Sang ","Tian ","Ru ","Sou ","Wa ","Ji ","Pang ","Wu ","Xian ","Shi ","Ge ","Zi ","Jie ","Luo ","Weng ","Wa ","Si ","Chi ","Hao ","Suo ","Jia ","Hai ","Suo ","Qin ","Nie ","He ","Cis ","Sai ","Ng ","Ge ","Na ","Dia ","Ai ","[?] ","Tong ","Bi ","Ao ","Ao ","Lian ","Cui ","Zhe ","Mo ","Sou ","Sou ","Tan "]});var c7=y((sze,u7)=>{u7.exports=["Di ","Qi ","Jiao ","Chong ","Jiao ","Kai ","Tan ","San ","Cao ","Jia ","Ai ","Xiao ","Piao ","Lou ","Ga ","Gu ","Xiao ","Hu ","Hui ","Guo ","Ou ","Xian ","Ze ","Chang ","Xu ","Po ","De ","Ma ","Ma ","Hu ","Lei ","Du ","Ga ","Tang ","Ye ","Beng ","Ying ","Saai ","Jiao ","Mi ","Xiao ","Hua ","Mai ","Ran ","Zuo ","Peng ","Lao ","Xiao ","Ji ","Zhu ","Chao ","Kui ","Zui ","Xiao ","Si ","Hao ","Fu ","Liao ","Qiao ","Xi ","Xiu ","Tan ","Tan ","Mo ","Xun ","E ","Zun ","Fan ","Chi ","Hui ","Zan ","Chuang ","Cu ","Dan ","Yu ","Tun ","Cheng ","Jiao ","Ye ","Xi ","Qi ","Hao ","Lian ","Xu ","Deng ","Hui ","Yin ","Pu ","Jue ","Qin ","Xun ","Nie ","Lu ","Si ","Yan ","Ying ","Da ","Dan ","Yu ","Zhou ","Jin ","Nong ","Yue ","Hui ","Qi ","E ","Zao ","Yi ","Shi ","Jiao ","Yuan ","Ai ","Yong ","Jue ","Kuai ","Yu ","Pen ","Dao ","Ge ","Xin ","Dun ","Dang ","Sin ","Sai ","Pi ","Pi ","Yin ","Zui ","Ning ","Di ","Lan ","Ta ","Huo ","Ru ","Hao ","Xia ","Ya ","Duo ","Xi ","Chou ","Ji ","Jin ","Hao ","Ti ","Chang ","[?] ","[?] ","Ca ","Ti ","Lu ","Hui ","Bo ","You ","Nie ","Yin ","Hu ","Mo ","Huang ","Zhe ","Li ","Liu ","Haai ","Nang ","Xiao ","Mo ","Yan ","Li ","Lu ","Long ","Fu ","Dan ","Chen ","Pin ","Pi ","Xiang ","Huo ","Mo ","Xi ","Duo ","Ku ","Yan ","Chan ","Ying ","Rang ","Dian ","La ","Ta ","Xiao ","Jiao ","Chuo ","Huan ","Huo ","Zhuan ","Nie ","Xiao ","Ca ","Li ","Chan ","Chai ","Li ","Yi ","Luo ","Nang ","Zan ","Su ","Xi ","So ","Jian ","Za ","Zhu ","Lan ","Nie ","Nang ","[?] ","[?] ","Wei ","Hui ","Yin ","Qiu ","Si ","Nin ","Jian ","Hui ","Xin ","Yin ","Nan ","Tuan ","Tuan ","Dun ","Kang ","Yuan ","Jiong ","Pian ","Yun ","Cong ","Hu ","Hui ","Yuan ","You ","Guo ","Kun ","Cong ","Wei ","Tu ","Wei ","Lun ","Guo ","Qun ","Ri ","Ling ","Gu ","Guo ","Tai ","Guo ","Tu ","You "]});var d7=y((aze,h7)=>{h7.exports=["Guo ","Yin ","Hun ","Pu ","Yu ","Han ","Yuan ","Lun ","Quan ","Yu ","Qing ","Guo ","Chuan ","Wei ","Yuan ","Quan ","Ku ","Fu ","Yuan ","Yuan ","E ","Tu ","Tu ","Tu ","Tuan ","Lue ","Hui ","Yi ","Yuan ","Luan ","Luan ","Tu ","Ya ","Tu ","Ting ","Sheng ","Pu ","Lu ","Iri ","Ya ","Zai ","Wei ","Ge ","Yu ","Wu ","Gui ","Pi ","Yi ","Di ","Qian ","Qian ","Zhen ","Zhuo ","Dang ","Qia ","Akutsu ","Yama ","Kuang ","Chang ","Qi ","Nie ","Mo ","Ji ","Jia ","Zhi ","Zhi ","Ban ","Xun ","Tou ","Qin ","Fen ","Jun ","Keng ","Tun ","Fang ","Fen ","Ben ","Tan ","Kan ","Pi ","Zuo ","Keng ","Bi ","Xing ","Di ","Jing ","Ji ","Kuai ","Di ","Jing ","Jian ","Tan ","Li ","Ba ","Wu ","Fen ","Zhui ","Po ","Pan ","Tang ","Kun ","Qu ","Tan ","Zhi ","Tuo ","Gan ","Ping ","Dian ","Gua ","Ni ","Tai ","Pi ","Jiong ","Yang ","Fo ","Ao ","Liu ","Qiu ","Mu ","Ke ","Gou ","Xue ","Ba ","Chi ","Che ","Ling ","Zhu ","Fu ","Hu ","Zhi ","Chui ","La ","Long ","Long ","Lu ","Ao ","Tay ","Pao ","[?] ","Xing ","Dong ","Ji ","Ke ","Lu ","Ci ","Chi ","Lei ","Gai ","Yin ","Hou ","Dui ","Zhao ","Fu ","Guang ","Yao ","Duo ","Duo ","Gui ","Cha ","Yang ","Yin ","Fa ","Gou ","Yuan ","Die ","Xie ","Ken ","Jiong ","Shou ","E ","Ha ","Dian ","Hong ","Wu ","Kua ","[?] ","Tao ","Dang ","Kai ","Gake ","Nao ","An ","Xing ","Xian ","Huan ","Bang ","Pei ","Ba ","Yi ","Yin ","Han ","Xu ","Chui ","Cen ","Geng ","Ai ","Peng ","Fang ","Que ","Yong ","Xun ","Jia ","Di ","Mai ","Lang ","Xuan ","Cheng ","Yan ","Jin ","Zhe ","Lei ","Lie ","Bu ","Cheng ","Gomi ","Bu ","Shi ","Xun ","Guo ","Jiong ","Ye ","Nian ","Di ","Yu ","Bu ","Ya ","Juan ","Sui ","Pi ","Cheng ","Wan ","Ju ","Lun ","Zheng ","Kong ","Chong ","Dong ","Dai ","Tan ","An ","Cai ","Shu ","Beng ","Kan ","Zhi ","Duo ","Yi ","Zhi ","Yi ","Pei ","Ji ","Zhun ","Qi ","Sao ","Ju ","Ni "]});var p7=y((lze,g7)=>{g7.exports=["Ku ","Ke ","Tang ","Kun ","Ni ","Jian ","Dui ","Jin ","Gang ","Yu ","E ","Peng ","Gu ","Tu ","Leng ","[?] ","Ya ","Qian ","[?] ","An ","[?] ","Duo ","Nao ","Tu ","Cheng ","Yin ","Hun ","Bi ","Lian ","Guo ","Die ","Zhuan ","Hou ","Bao ","Bao ","Yu ","Di ","Mao ","Jie ","Ruan ","E ","Geng ","Kan ","Zong ","Yu ","Huang ","E ","Yao ","Yan ","Bao ","Ji ","Mei ","Chang ","Du ","Tuo ","Yin ","Feng ","Zhong ","Jie ","Zhen ","Feng ","Gang ","Chuan ","Jian ","Pyeng ","Toride ","Xiang ","Huang ","Leng ","Duan ","[?] ","Xuan ","Ji ","Ji ","Kuai ","Ying ","Ta ","Cheng ","Yong ","Kai ","Su ","Su ","Shi ","Mi ","Ta ","Weng ","Cheng ","Tu ","Tang ","Que ","Zhong ","Li ","Peng ","Bang ","Sai ","Zang ","Dui ","Tian ","Wu ","Cheng ","Xun ","Ge ","Zhen ","Ai ","Gong ","Yan ","Kan ","Tian ","Yuan ","Wen ","Xie ","Liu ","Ama ","Lang ","Chang ","Peng ","Beng ","Chen ","Cu ","Lu ","Ou ","Qian ","Mei ","Mo ","Zhuan ","Shuang ","Shu ","Lou ","Chi ","Man ","Biao ","Jing ","Qi ","Shu ","Di ","Zhang ","Kan ","Yong ","Dian ","Chen ","Zhi ","Xi ","Guo ","Qiang ","Jin ","Di ","Shang ","Mu ","Cui ","Yan ","Ta ","Zeng ","Qi ","Qiang ","Liang ","[?] ","Zhui ","Qiao ","Zeng ","Xu ","Shan ","Shan ","Ba ","Pu ","Kuai ","Dong ","Fan ","Que ","Mo ","Dun ","Dun ","Dun ","Di ","Sheng ","Duo ","Duo ","Tan ","Deng ","Wu ","Fen ","Huang ","Tan ","Da ","Ye ","Sho ","Mama ","Yu ","Qiang ","Ji ","Qiao ","Ken ","Yi ","Pi ","Bi ","Dian ","Jiang ","Ye ","Yong ","Bo ","Tan ","Lan ","Ju ","Huai ","Dang ","Rang ","Qian ","Xun ","Lan ","Xi ","He ","Ai ","Ya ","Dao ","Hao ","Ruan ","Mama ","Lei ","Kuang ","Lu ","Yan ","Tan ","Wei ","Huai ","Long ","Long ","Rui ","Li ","Lin ","Rang ","Ten ","Xun ","Yan ","Lei ","Ba ","[?] ","Shi ","Ren ","[?] ","Zhuang ","Zhuang ","Sheng ","Yi ","Mai ","Ke ","Zhu ","Zhuang ","Hu ","Hu ","Kun ","Yi ","Hu ","Xu ","Kun ","Shou ","Mang ","Zun "]});var m7=y((uze,f7)=>{f7.exports=["Shou ","Yi ","Zhi ","Gu ","Chu ","Jiang ","Feng ","Bei ","Cay ","Bian ","Sui ","Qun ","Ling ","Fu ","Zuo ","Xia ","Xiong ","[?] ","Nao ","Xia ","Kui ","Xi ","Wai ","Yuan ","Mao ","Su ","Duo ","Duo ","Ye ","Qing ","Uys ","Gou ","Gou ","Qi ","Meng ","Meng ","Yin ","Huo ","Chen ","Da ","Ze ","Tian ","Tai ","Fu ","Guai ","Yao ","Yang ","Hang ","Gao ","Shi ","Ben ","Tai ","Tou ","Yan ","Bi ","Yi ","Kua ","Jia ","Duo ","Kwu ","Kuang ","Yun ","Jia ","Pa ","En ","Lian ","Huan ","Di ","Yan ","Pao ","Quan ","Qi ","Nai ","Feng ","Xie ","Fen ","Dian ","[?] ","Kui ","Zou ","Huan ","Qi ","Kai ","Zha ","Ben ","Yi ","Jiang ","Tao ","Zang ","Ben ","Xi ","Xiang ","Fei ","Diao ","Xun ","Keng ","Dian ","Ao ","She ","Weng ","Pan ","Ao ","Wu ","Ao ","Jiang ","Lian ","Duo ","Yun ","Jiang ","Shi ","Fen ","Huo ","Bi ","Lian ","Duo ","Nu ","Nu ","Ding ","Nai ","Qian ","Jian ","Ta ","Jiu ","Nan ","Cha ","Hao ","Xian ","Fan ","Ji ","Shuo ","Ru ","Fei ","Wang ","Hong ","Zhuang ","Fu ","Ma ","Dan ","Ren ","Fu ","Jing ","Yan ","Xie ","Wen ","Zhong ","Pa ","Du ","Ji ","Keng ","Zhong ","Yao ","Jin ","Yun ","Miao ","Pei ","Shi ","Yue ","Zhuang ","Niu ","Yan ","Na ","Xin ","Fen ","Bi ","Yu ","Tuo ","Feng ","Yuan ","Fang ","Wu ","Yu ","Gui ","Du ","Ba ","Ni ","Zhou ","Zhuo ","Zhao ","Da ","Nai ","Yuan ","Tou ","Xuan ","Zhi ","E ","Mei ","Mo ","Qi ","Bi ","Shen ","Qie ","E ","He ","Xu ","Fa ","Zheng ","Min ","Ban ","Mu ","Fu ","Ling ","Zi ","Zi ","Shi ","Ran ","Shan ","Yang ","Man ","Jie ","Gu ","Si ","Xing ","Wei ","Zi ","Ju ","Shan ","Pin ","Ren ","Yao ","Tong ","Jiang ","Shu ","Ji ","Gai ","Shang ","Kuo ","Juan ","Jiao ","Gou ","Mu ","Jian ","Jian ","Yi ","Nian ","Zhi ","Ji ","Ji ","Xian ","Heng ","Guang ","Jun ","Kua ","Yan ","Ming ","Lie ","Pei ","Yan ","You ","Yan ","Cha ","Shen ","Yin ","Chi ","Gui ","Quan ","Zi "]});var b7=y((cze,y7)=>{y7.exports=["Song ","Wei ","Hong ","Wa ","Lou ","Ya ","Rao ","Jiao ","Luan ","Ping ","Xian ","Shao ","Li ","Cheng ","Xiao ","Mang ","Fu ","Suo ","Wu ","Wei ","Ke ","Lai ","Chuo ","Ding ","Niang ","Xing ","Nan ","Yu ","Nuo ","Pei ","Nei ","Juan ","Shen ","Zhi ","Han ","Di ","Zhuang ","E ","Pin ","Tui ","Han ","Mian ","Wu ","Yan ","Wu ","Xi ","Yan ","Yu ","Si ","Yu ","Wa ","[?] ","Xian ","Ju ","Qu ","Shui ","Qi ","Xian ","Zhui ","Dong ","Chang ","Lu ","Ai ","E ","E ","Lou ","Mian ","Cong ","Pou ","Ju ","Po ","Cai ","Ding ","Wan ","Biao ","Xiao ","Shu ","Qi ","Hui ","Fu ","E ","Wo ","Tan ","Fei ","Wei ","Jie ","Tian ","Ni ","Quan ","Jing ","Hun ","Jing ","Qian ","Dian ","Xing ","Hu ","Wa ","Lai ","Bi ","Yin ","Chou ","Chuo ","Fu ","Jing ","Lun ","Yan ","Lan ","Kun ","Yin ","Ya ","Ju ","Li ","Dian ","Xian ","Hwa ","Hua ","Ying ","Chan ","Shen ","Ting ","Dang ","Yao ","Wu ","Nan ","Ruo ","Jia ","Tou ","Xu ","Yu ","Wei ","Ti ","Rou ","Mei ","Dan ","Ruan ","Qin ","Hui ","Wu ","Qian ","Chun ","Mao ","Fu ","Jie ","Duan ","Xi ","Zhong ","Mei ","Huang ","Mian ","An ","Ying ","Xuan ","Jie ","Wei ","Mei ","Yuan ","Zhen ","Qiu ","Ti ","Xie ","Tuo ","Lian ","Mao ","Ran ","Si ","Pian ","Wei ","Wa ","Jiu ","Hu ","Ao ","[?] ","Bou ","Xu ","Tou ","Gui ","Zou ","Yao ","Pi ","Xi ","Yuan ","Ying ","Rong ","Ru ","Chi ","Liu ","Mei ","Pan ","Ao ","Ma ","Gou ","Kui ","Qin ","Jia ","Sao ","Zhen ","Yuan ","Cha ","Yong ","Ming ","Ying ","Ji ","Su ","Niao ","Xian ","Tao ","Pang ","Lang ","Nao ","Bao ","Ai ","Pi ","Pin ","Yi ","Piao ","Yu ","Lei ","Xuan ","Man ","Yi ","Zhang ","Kang ","Yong ","Ni ","Li ","Di ","Gui ","Yan ","Jin ","Zhuan ","Chang ","Ce ","Han ","Nen ","Lao ","Mo ","Zhe ","Hu ","Hu ","Ao ","Nen ","Qiang ","Ma ","Pie ","Gu ","Wu ","Jiao ","Tuo ","Zhan ","Mao ","Xian ","Xian ","Mo ","Liao ","Lian ","Hua "]});var w7=y((hze,v7)=>{v7.exports=["Gui ","Deng ","Zhi ","Xu ","Yi ","Hua ","Xi ","Hui ","Rao ","Xi ","Yan ","Chan ","Jiao ","Mei ","Fan ","Fan ","Xian ","Yi ","Wei ","Jiao ","Fu ","Shi ","Bi ","Shan ","Sui ","Qiang ","Lian ","Huan ","Xin ","Niao ","Dong ","Yi ","Can ","Ai ","Niang ","Neng ","Ma ","Tiao ","Chou ","Jin ","Ci ","Yu ","Pin ","Yong ","Xu ","Nai ","Yan ","Tai ","Ying ","Can ","Niao ","Wo ","Ying ","Mian ","Kaka ","Ma ","Shen ","Xing ","Ni ","Du ","Liu ","Yuan ","Lan ","Yan ","Shuang ","Ling ","Jiao ","Niang ","Lan ","Xian ","Ying ","Shuang ","Shuai ","Quan ","Mi ","Li ","Luan ","Yan ","Zhu ","Lan ","Zi ","Jie ","Jue ","Jue ","Kong ","Yun ","Zi ","Zi ","Cun ","Sun ","Fu ","Bei ","Zi ","Xiao ","Xin ","Meng ","Si ","Tai ","Bao ","Ji ","Gu ","Nu ","Xue ","[?] ","Zhuan ","Hai ","Luan ","Sun ","Huai ","Mie ","Cong ","Qian ","Shu ","Chan ","Ya ","Zi ","Ni ","Fu ","Zi ","Li ","Xue ","Bo ","Ru ","Lai ","Nie ","Nie ","Ying ","Luan ","Mian ","Zhu ","Rong ","Ta ","Gui ","Zhai ","Qiong ","Yu ","Shou ","An ","Tu ","Song ","Wan ","Rou ","Yao ","Hong ","Yi ","Jing ","Zhun ","Mi ","Zhu ","Dang ","Hong ","Zong ","Guan ","Zhou ","Ding ","Wan ","Yi ","Bao ","Shi ","Shi ","Chong ","Shen ","Ke ","Xuan ","Shi ","You ","Huan ","Yi ","Tiao ","Shi ","Xian ","Gong ","Cheng ","Qun ","Gong ","Xiao ","Zai ","Zha ","Bao ","Hai ","Yan ","Xiao ","Jia ","Shen ","Chen ","Rong ","Huang ","Mi ","Kou ","Kuan ","Bin ","Su ","Cai ","Zan ","Ji ","Yuan ","Ji ","Yin ","Mi ","Kou ","Qing ","Que ","Zhen ","Jian ","Fu ","Ning ","Bing ","Huan ","Mei ","Qin ","Han ","Yu ","Shi ","Ning ","Qin ","Ning ","Zhi ","Yu ","Bao ","Kuan ","Ning ","Qin ","Mo ","Cha ","Ju ","Gua ","Qin ","Hu ","Wu ","Liao ","Shi ","Zhu ","Zhai ","Shen ","Wei ","Xie ","Kuan ","Hui ","Liao ","Jun ","Huan ","Yi ","Yi ","Bao ","Qin ","Chong ","Bao ","Feng ","Cun ","Dui ","Si ","Xun ","Dao ","Lu ","Dui ","Shou "]});var C7=y((dze,D7)=>{D7.exports=["Po ","Feng ","Zhuan ","Fu ","She ","Ke ","Jiang ","Jiang ","Zhuan ","Wei ","Zun ","Xun ","Shu ","Dui ","Dao ","Xiao ","Ji ","Shao ","Er ","Er ","Er ","Ga ","Jian ","Shu ","Chen ","Shang ","Shang ","Mo ","Ga ","Chang ","Liao ","Xian ","Xian ","[?] ","Wang ","Wang ","You ","Liao ","Liao ","Yao ","Mang ","Wang ","Wang ","Wang ","Ga ","Yao ","Duo ","Kui ","Zhong ","Jiu ","Gan ","Gu ","Gan ","Tui ","Gan ","Gan ","Shi ","Yin ","Chi ","Kao ","Ni ","Jin ","Wei ","Niao ","Ju ","Pi ","Ceng ","Xi ","Bi ","Ju ","Jie ","Tian ","Qu ","Ti ","Jie ","Wu ","Diao ","Shi ","Shi ","Ping ","Ji ","Xie ","Chen ","Xi ","Ni ","Zhan ","Xi ","[?] ","Man ","E ","Lou ","Ping ","Ti ","Fei ","Shu ","Xie ","Tu ","Lu ","Lu ","Xi ","Ceng ","Lu ","Ju ","Xie ","Ju ","Jue ","Liao ","Jue ","Shu ","Xi ","Che ","Tun ","Ni ","Shan ","[?] ","Xian ","Li ","Xue ","Nata ","[?] ","Long ","Yi ","Qi ","Ren ","Wu ","Han ","Shen ","Yu ","Chu ","Sui ","Qi ","[?] ","Yue ","Ban ","Yao ","Ang ","Ya ","Wu ","Jie ","E ","Ji ","Qian ","Fen ","Yuan ","Qi ","Cen ","Qian ","Qi ","Cha ","Jie ","Qu ","Gang ","Xian ","Ao ","Lan ","Dao ","Ba ","Zuo ","Zuo ","Yang ","Ju ","Gang ","Ke ","Gou ","Xue ","Bei ","Li ","Tiao ","Ju ","Yan ","Fu ","Xiu ","Jia ","Ling ","Tuo ","Pei ","You ","Dai ","Kuang ","Yue ","Qu ","Hu ","Po ","Min ","An ","Tiao ","Ling ","Chi ","Yuri ","Dong ","Cem ","Kui ","Xiu ","Mao ","Tong ","Xue ","Yi ","Kura ","He ","Ke ","Luo ","E ","Fu ","Xun ","Die ","Lu ","An ","Er ","Gai ","Quan ","Tong ","Yi ","Mu ","Shi ","An ","Wei ","Hu ","Zhi ","Mi ","Li ","Ji ","Tong ","Wei ","You ","Sang ","Xia ","Li ","Yao ","Jiao ","Zheng ","Luan ","Jiao ","E ","E ","Yu ","Ye ","Bu ","Qiao ","Qun ","Feng ","Feng ","Nao ","Li ","You ","Xian ","Hong ","Dao ","Shen ","Cheng ","Tu ","Geng ","Jun ","Hao ","Xia ","Yin ","Yu "]});var S7=y((gze,x7)=>{x7.exports=["Lang ","Kan ","Lao ","Lai ","Xian ","Que ","Kong ","Chong ","Chong ","Ta ","Lin ","Hua ","Ju ","Lai ","Qi ","Min ","Kun ","Kun ","Zu ","Gu ","Cui ","Ya ","Ya ","Gang ","Lun ","Lun ","Leng ","Jue ","Duo ","Zheng ","Guo ","Yin ","Dong ","Han ","Zheng ","Wei ","Yao ","Pi ","Yan ","Song ","Jie ","Beng ","Zu ","Jue ","Dong ","Zhan ","Gu ","Yin ","[?] ","Ze ","Huang ","Yu ","Wei ","Yang ","Feng ","Qiu ","Dun ","Ti ","Yi ","Zhi ","Shi ","Zai ","Yao ","E ","Zhu ","Kan ","Lu ","Yan ","Mei ","Gan ","Ji ","Ji ","Huan ","Ting ","Sheng ","Mei ","Qian ","Wu ","Yu ","Zong ","Lan ","Jue ","Yan ","Yan ","Wei ","Zong ","Cha ","Sui ","Rong ","Yamashina ","Qin ","Yu ","Kewashii ","Lou ","Tu ","Dui ","Xi ","Weng ","Cang ","Dang ","Hong ","Jie ","Ai ","Liu ","Wu ","Song ","Qiao ","Zi ","Wei ","Beng ","Dian ","Cuo ","Qian ","Yong ","Nie ","Cuo ","Ji ","[?] ","Tao ","Song ","Zong ","Jiang ","Liao ","Kang ","Chan ","Die ","Cen ","Ding ","Tu ","Lou ","Zhang ","Zhan ","Zhan ","Ao ","Cao ","Qu ","Qiang ","Zui ","Zui ","Dao ","Dao ","Xi ","Yu ","Bo ","Long ","Xiang ","Ceng ","Bo ","Qin ","Jiao ","Yan ","Lao ","Zhan ","Lin ","Liao ","Liao ","Jin ","Deng ","Duo ","Zun ","Jiao ","Gui ","Yao ","Qiao ","Yao ","Jue ","Zhan ","Yi ","Xue ","Nao ","Ye ","Ye ","Yi ","E ","Xian ","Ji ","Xie ","Ke ","Xi ","Di ","Ao ","Zui ","[?] ","Ni ","Rong ","Dao ","Ling ","Za ","Yu ","Yue ","Yin ","[?] ","Jie ","Li ","Sui ","Long ","Long ","Dian ","Ying ","Xi ","Ju ","Chan ","Ying ","Kui ","Yan ","Wei ","Nao ","Quan ","Chao ","Cuan ","Luan ","Dian ","Dian ","[?] ","Yan ","Yan ","Yan ","Nao ","Yan ","Chuan ","Gui ","Chuan ","Zhou ","Huang ","Jing ","Xun ","Chao ","Chao ","Lie ","Gong ","Zuo ","Qiao ","Ju ","Gong ","Kek ","Wu ","Pwu ","Pwu ","Chai ","Qiu ","Qiu ","Ji ","Yi ","Si ","Ba ","Zhi ","Zhao ","Xiang ","Yi ","Jin ","Xun ","Juan ","Phas ","Xun ","Jin ","Fu "]});var k7=y((pze,T7)=>{T7.exports=["Za ","Bi ","Shi ","Bu ","Ding ","Shuai ","Fan ","Nie ","Shi ","Fen ","Pa ","Zhi ","Xi ","Hu ","Dan ","Wei ","Zhang ","Tang ","Dai ","Ma ","Pei ","Pa ","Tie ","Fu ","Lian ","Zhi ","Zhou ","Bo ","Zhi ","Di ","Mo ","Yi ","Yi ","Ping ","Qia ","Juan ","Ru ","Shuai ","Dai ","Zheng ","Shui ","Qiao ","Zhen ","Shi ","Qun ","Xi ","Bang ","Dai ","Gui ","Chou ","Ping ","Zhang ","Sha ","Wan ","Dai ","Wei ","Chang ","Sha ","Qi ","Ze ","Guo ","Mao ","Du ","Hou ","Zheng ","Xu ","Mi ","Wei ","Wo ","Fu ","Yi ","Bang ","Ping ","Tazuna ","Gong ","Pan ","Huang ","Dao ","Mi ","Jia ","Teng ","Hui ","Zhong ","Shan ","Man ","Mu ","Biao ","Guo ","Ze ","Mu ","Bang ","Zhang ","Jiong ","Chan ","Fu ","Zhi ","Hu ","Fan ","Chuang ","Bi ","Hei ","[?] ","Mi ","Qiao ","Chan ","Fen ","Meng ","Bang ","Chou ","Mie ","Chu ","Jie ","Xian ","Lan ","Gan ","Ping ","Nian ","Qian ","Bing ","Bing ","Xing ","Gan ","Yao ","Huan ","You ","You ","Ji ","Yan ","Pi ","Ting ","Ze ","Guang ","Zhuang ","Mo ","Qing ","Bi ","Qin ","Dun ","Chuang ","Gui ","Ya ","Bai ","Jie ","Xu ","Lu ","Wu ","[?] ","Ku ","Ying ","Di ","Pao ","Dian ","Ya ","Miao ","Geng ","Ci ","Fu ","Tong ","Pang ","Fei ","Xiang ","Yi ","Zhi ","Tiao ","Zhi ","Xiu ","Du ","Zuo ","Xiao ","Tu ","Gui ","Ku ","Pang ","Ting ","You ","Bu ","Ding ","Cheng ","Lai ","Bei ","Ji ","An ","Shu ","Kang ","Yong ","Tuo ","Song ","Shu ","Qing ","Yu ","Yu ","Miao ","Sou ","Ce ","Xiang ","Fei ","Jiu ","He ","Hui ","Liu ","Sha ","Lian ","Lang ","Sou ","Jian ","Pou ","Qing ","Jiu ","Jiu ","Qin ","Ao ","Kuo ","Lou ","Yin ","Liao ","Dai ","Lu ","Yi ","Chu ","Chan ","Tu ","Si ","Xin ","Miao ","Chang ","Wu ","Fei ","Guang ","Koc ","Kuai ","Bi ","Qiang ","Xie ","Lin ","Lin ","Liao ","Lu ","[?] ","Ying ","Xian ","Ting ","Yong ","Li ","Ting ","Yin ","Xun ","Yan ","Ting ","Di ","Po ","Jian ","Hui ","Nai ","Hui ","Gong ","Nian "]});var P7=y((fze,E7)=>{E7.exports=["Kai ","Bian ","Yi ","Qi ","Nong ","Fen ","Ju ","Yan ","Yi ","Zang ","Bi ","Yi ","Yi ","Er ","San ","Shi ","Er ","Shi ","Shi ","Gong ","Diao ","Yin ","Hu ","Fu ","Hong ","Wu ","Tui ","Chi ","Jiang ","Ba ","Shen ","Di ","Zhang ","Jue ","Tao ","Fu ","Di ","Mi ","Xian ","Hu ","Chao ","Nu ","Jing ","Zhen ","Yi ","Mi ","Quan ","Wan ","Shao ","Ruo ","Xuan ","Jing ","Dun ","Zhang ","Jiang ","Qiang ","Peng ","Dan ","Qiang ","Bi ","Bi ","She ","Dan ","Jian ","Gou ","Sei ","Fa ","Bi ","Kou ","Nagi ","Bie ","Xiao ","Dan ","Kuo ","Qiang ","Hong ","Mi ","Kuo ","Wan ","Jue ","Ji ","Ji ","Gui ","Dang ","Lu ","Lu ","Tuan ","Hui ","Zhi ","Hui ","Hui ","Yi ","Yi ","Yi ","Yi ","Huo ","Huo ","Shan ","Xing ","Wen ","Tong ","Yan ","Yan ","Yu ","Chi ","Cai ","Biao ","Diao ","Bin ","Peng ","Yong ","Piao ","Zhang ","Ying ","Chi ","Chi ","Zhuo ","Tuo ","Ji ","Pang ","Zhong ","Yi ","Wang ","Che ","Bi ","Chi ","Ling ","Fu ","Wang ","Zheng ","Cu ","Wang ","Jing ","Dai ","Xi ","Xun ","Hen ","Yang ","Huai ","Lu ","Hou ","Wa ","Cheng ","Zhi ","Xu ","Jing ","Tu ","Cong ","[?] ","Lai ","Cong ","De ","Pai ","Xi ","[?] ","Qi ","Chang ","Zhi ","Cong ","Zhou ","Lai ","Yu ","Xie ","Jie ","Jian ","Chi ","Jia ","Bian ","Huang ","Fu ","Xun ","Wei ","Pang ","Yao ","Wei ","Xi ","Zheng ","Piao ","Chi ","De ","Zheng ","Zheng ","Bie ","De ","Chong ","Che ","Jiao ","Wei ","Jiao ","Hui ","Mei ","Long ","Xiang ","Bao ","Qu ","Xin ","Shu ","Bi ","Yi ","Le ","Ren ","Dao ","Ding ","Gai ","Ji ","Ren ","Ren ","Chan ","Tan ","Te ","Te ","Gan ","Qi ","Shi ","Cun ","Zhi ","Wang ","Mang ","Xi ","Fan ","Ying ","Tian ","Min ","Min ","Zhong ","Chong ","Wu ","Ji ","Wu ","Xi ","Ye ","You ","Wan ","Cong ","Zhong ","Kuai ","Yu ","Bian ","Zhi ","Qi ","Cui ","Chen ","Tai ","Tun ","Qian ","Nian ","Hun ","Xiong ","Niu ","Wang ","Xian ","Xin ","Kang ","Hu ","Kai ","Fen "]});var R7=y((mze,_7)=>{_7.exports=["Huai ","Tai ","Song ","Wu ","Ou ","Chang ","Chuang ","Ju ","Yi ","Bao ","Chao ","Min ","Pei ","Zuo ","Zen ","Yang ","Kou ","Ban ","Nu ","Nao ","Zheng ","Pa ","Bu ","Tie ","Gu ","Hu ","Ju ","Da ","Lian ","Si ","Chou ","Di ","Dai ","Yi ","Tu ","You ","Fu ","Ji ","Peng ","Xing ","Yuan ","Ni ","Guai ","Fu ","Xi ","Bi ","You ","Qie ","Xuan ","Cong ","Bing ","Huang ","Xu ","Chu ","Pi ","Xi ","Xi ","Tan ","Koraeru ","Zong ","Dui ","[?] ","Ki ","Yi ","Chi ","Ren ","Xun ","Shi ","Xi ","Lao ","Heng ","Kuang ","Mu ","Zhi ","Xie ","Lian ","Tiao ","Huang ","Die ","Hao ","Kong ","Gui ","Heng ","Xi ","Xiao ","Shu ","S ","Kua ","Qiu ","Yang ","Hui ","Hui ","Chi ","Jia ","Yi ","Xiong ","Guai ","Lin ","Hui ","Zi ","Xu ","Chi ","Xiang ","Nu ","Hen ","En ","Ke ","Tong ","Tian ","Gong ","Quan ","Xi ","Qia ","Yue ","Peng ","Ken ","De ","Hui ","E ","Kyuu ","Tong ","Yan ","Kai ","Ce ","Nao ","Yun ","Mang ","Yong ","Yong ","Yuan ","Pi ","Kun ","Qiao ","Yue ","Yu ","Yu ","Jie ","Xi ","Zhe ","Lin ","Ti ","Han ","Hao ","Qie ","Ti ","Bu ","Yi ","Qian ","Hui ","Xi ","Bei ","Man ","Yi ","Heng ","Song ","Quan ","Cheng ","Hui ","Wu ","Wu ","You ","Li ","Liang ","Huan ","Cong ","Yi ","Yue ","Li ","Nin ","Nao ","E ","Que ","Xuan ","Qian ","Wu ","Min ","Cong ","Fei ","Bei ","Duo ","Cui ","Chang ","Men ","Li ","Ji ","Guan ","Guan ","Xing ","Dao ","Qi ","Kong ","Tian ","Lun ","Xi ","Kan ","Kun ","Ni ","Qing ","Chou ","Dun ","Guo ","Chan ","Liang ","Wan ","Yuan ","Jin ","Ji ","Lin ","Yu ","Huo ","He ","Quan ","Tan ","Ti ","Ti ","Nie ","Wang ","Chuo ","Bu ","Hun ","Xi ","Tang ","Xin ","Wei ","Hui ","E ","Rui ","Zong ","Jian ","Yong ","Dian ","Ju ","Can ","Cheng ","De ","Bei ","Qie ","Can ","Dan ","Guan ","Duo ","Nao ","Yun ","Xiang ","Zhui ","Die ","Huang ","Chun ","Qiong ","Re ","Xing ","Ce ","Bian ","Hun ","Zong ","Ti "]});var F7=y((yze,L7)=>{L7.exports=["Qiao ","Chou ","Bei ","Xuan ","Wei ","Ge ","Qian ","Wei ","Yu ","Yu ","Bi ","Xuan ","Huan ","Min ","Bi ","Yi ","Mian ","Yong ","Kai ","Dang ","Yin ","E ","Chen ","Mou ","Ke ","Ke ","Yu ","Ai ","Qie ","Yan ","Nuo ","Gan ","Yun ","Zong ","Sai ","Leng ","Fen ","[?] ","Kui ","Kui ","Que ","Gong ","Yun ","Su ","Su ","Qi ","Yao ","Song ","Huang ","Ji ","Gu ","Ju ","Chuang ","Ni ","Xie ","Kai ","Zheng ","Yong ","Cao ","Sun ","Shen ","Bo ","Kai ","Yuan ","Xie ","Hun ","Yong ","Yang ","Li ","Sao ","Tao ","Yin ","Ci ","Xu ","Qian ","Tai ","Huang ","Yun ","Shen ","Ming ","[?] ","She ","Cong ","Piao ","Mo ","Mu ","Guo ","Chi ","Can ","Can ","Can ","Cui ","Min ","Te ","Zhang ","Tong ","Ao ","Shuang ","Man ","Guan ","Que ","Zao ","Jiu ","Hui ","Kai ","Lian ","Ou ","Song ","Jin ","Yin ","Lu ","Shang ","Wei ","Tuan ","Man ","Qian ","She ","Yong ","Qing ","Kang ","Di ","Zhi ","Lou ","Juan ","Qi ","Qi ","Yu ","Ping ","Liao ","Cong ","You ","Chong ","Zhi ","Tong ","Cheng ","Qi ","Qu ","Peng ","Bei ","Bie ","Chun ","Jiao ","Zeng ","Chi ","Lian ","Ping ","Kui ","Hui ","Qiao ","Cheng ","Yin ","Yin ","Xi ","Xi ","Dan ","Tan ","Duo ","Dui ","Dui ","Su ","Jue ","Ce ","Xiao ","Fan ","Fen ","Lao ","Lao ","Chong ","Han ","Qi ","Xian ","Min ","Jing ","Liao ","Wu ","Can ","Jue ","Cu ","Xian ","Tan ","Sheng ","Pi ","Yi ","Chu ","Xian ","Nao ","Dan ","Tan ","Jing ","Song ","Han ","Jiao ","Wai ","Huan ","Dong ","Qin ","Qin ","Qu ","Cao ","Ken ","Xie ","Ying ","Ao ","Mao ","Yi ","Lin ","Se ","Jun ","Huai ","Men ","Lan ","Ai ","Lin ","Yan ","Gua ","Xia ","Chi ","Yu ","Yin ","Dai ","Meng ","Ai ","Meng ","Dui ","Qi ","Mo ","Lan ","Men ","Chou ","Zhi ","Nuo ","Nuo ","Yan ","Yang ","Bo ","Zhi ","Kuang ","Kuang ","You ","Fu ","Liu ","Mie ","Cheng ","[?] ","Chan ","Meng ","Lan ","Huai ","Xuan ","Rang ","Chan ","Ji ","Ju ","Huan ","She ","Yi "]});var j7=y((bze,I7)=>{I7.exports=["Lian ","Nan ","Mi ","Tang ","Jue ","Gang ","Gang ","Gang ","Ge ","Yue ","Wu ","Jian ","Xu ","Shu ","Rong ","Xi ","Cheng ","Wo ","Jie ","Ge ","Jian ","Qiang ","Huo ","Qiang ","Zhan ","Dong ","Qi ","Jia ","Die ","Zei ","Jia ","Ji ","Shi ","Kan ","Ji ","Kui ","Gai ","Deng ","Zhan ","Chuang ","Ge ","Jian ","Jie ","Yu ","Jian ","Yan ","Lu ","Xi ","Zhan ","Xi ","Xi ","Chuo ","Dai ","Qu ","Hu ","Hu ","Hu ","E ","Shi ","Li ","Mao ","Hu ","Li ","Fang ","Suo ","Bian ","Dian ","Jiong ","Shang ","Yi ","Yi ","Shan ","Hu ","Fei ","Yan ","Shou ","T ","Cai ","Zha ","Qiu ","Le ","Bu ","Ba ","Da ","Reng ","Fu ","Hameru ","Zai ","Tuo ","Zhang ","Diao ","Kang ","Yu ","Ku ","Han ","Shen ","Cha ","Yi ","Gu ","Kou ","Wu ","Tuo ","Qian ","Zhi ","Ren ","Kuo ","Men ","Sao ","Yang ","Niu ","Ban ","Che ","Rao ","Xi ","Qian ","Ban ","Jia ","Yu ","Fu ","Ao ","Xi ","Pi ","Zhi ","Zi ","E ","Dun ","Zhao ","Cheng ","Ji ","Yan ","Kuang ","Bian ","Chao ","Ju ","Wen ","Hu ","Yue ","Jue ","Ba ","Qin ","Zhen ","Zheng ","Yun ","Wan ","Nu ","Yi ","Shu ","Zhua ","Pou ","Tou ","Dou ","Kang ","Zhe ","Pou ","Fu ","Pao ","Ba ","Ao ","Ze ","Tuan ","Kou ","Lun ","Qiang ","[?] ","Hu ","Bao ","Bing ","Zhi ","Peng ","Tan ","Pu ","Pi ","Tai ","Yao ","Zhen ","Zha ","Yang ","Bao ","He ","Ni ","Yi ","Di ","Chi ","Pi ","Za ","Mo ","Mo ","Shen ","Ya ","Chou ","Qu ","Min ","Chu ","Jia ","Fu ","Zhan ","Zhu ","Dan ","Chai ","Mu ","Nian ","La ","Fu ","Pao ","Ban ","Pai ","Ling ","Na ","Guai ","Qian ","Ju ","Tuo ","Ba ","Tuo ","Tuo ","Ao ","Ju ","Zhuo ","Pan ","Zhao ","Bai ","Bai ","Di ","Ni ","Ju ","Kuo ","Long ","Jian ","[?] ","Yong ","Lan ","Ning ","Bo ","Ze ","Qian ","Hen ","Gua ","Shi ","Jie ","Zheng ","Nin ","Gong ","Gong ","Quan ","Shuan ","Cun ","Zan ","Kao ","Chi ","Xie ","Ce ","Hui ","Pin ","Zhuai ","Shi ","Na "]});var M7=y((vze,A7)=>{A7.exports=["Bo ","Chi ","Gua ","Zhi ","Kuo ","Duo ","Duo ","Zhi ","Qie ","An ","Nong ","Zhen ","Ge ","Jiao ","Ku ","Dong ","Ru ","Tiao ","Lie ","Zha ","Lu ","Die ","Wa ","Jue ","Mushiru ","Ju ","Zhi ","Luan ","Ya ","Zhua ","Ta ","Xie ","Nao ","Dang ","Jiao ","Zheng ","Ji ","Hui ","Xun ","Ku ","Ai ","Tuo ","Nuo ","Cuo ","Bo ","Geng ","Ti ","Zhen ","Cheng ","Suo ","Suo ","Keng ","Mei ","Long ","Ju ","Peng ","Jian ","Yi ","Ting ","Shan ","Nuo ","Wan ","Xie ","Cha ","Feng ","Jiao ","Wu ","Jun ","Jiu ","Tong ","Kun ","Huo ","Tu ","Zhuo ","Pou ","Le ","Ba ","Han ","Shao ","Nie ","Juan ","Ze ","Song ","Ye ","Jue ","Bu ","Huan ","Bu ","Zun ","Yi ","Zhai ","Lu ","Sou ","Tuo ","Lao ","Sun ","Bang ","Jian ","Huan ","Dao ","[?] ","Wan ","Qin ","Peng ","She ","Lie ","Min ","Men ","Fu ","Bai ","Ju ","Dao ","Wo ","Ai ","Juan ","Yue ","Zong ","Chen ","Chui ","Jie ","Tu ","Ben ","Na ","Nian ","Nuo ","Zu ","Wo ","Xi ","Xian ","Cheng ","Dian ","Sao ","Lun ","Qing ","Gang ","Duo ","Shou ","Diao ","Pou ","Di ","Zhang ","Gun ","Ji ","Tao ","Qia ","Qi ","Pai ","Shu ","Qian ","Ling ","Yi ","Ya ","Jue ","Zheng ","Liang ","Gua ","Yi ","Huo ","Shan ","Zheng ","Lue ","Cai ","Tan ","Che ","Bing ","Jie ","Ti ","Kong ","Tui ","Yan ","Cuo ","Zou ","Ju ","Tian ","Qian ","Ken ","Bai ","Shou ","Jie ","Lu ","Guo ","Haba ","[?] ","Zhi ","Dan ","Mang ","Xian ","Sao ","Guan ","Peng ","Yuan ","Nuo ","Jian ","Zhen ","Jiu ","Jian ","Yu ","Yan ","Kui ","Nan ","Hong ","Rou ","Pi ","Wei ","Sai ","Zou ","Xuan ","Miao ","Ti ","Nie ","Cha ","Shi ","Zong ","Zhen ","Yi ","Shun ","Heng ","Bian ","Yang ","Huan ","Yan ","Zuan ","An ","Xu ","Ya ","Wo ","Ke ","Chuai ","Ji ","Ti ","La ","La ","Cheng ","Kai ","Jiu ","Jiu ","Tu ","Jie ","Hui ","Geng ","Chong ","Shuo ","She ","Xie ","Yuan ","Qian ","Ye ","Cha ","Zha ","Bei ","Yao ","[?] ","[?] ","Lan ","Wen ","Qin "]});var N7=y((wze,O7)=>{O7.exports=["Chan ","Ge ","Lou ","Zong ","Geng ","Jiao ","Gou ","Qin ","Yong ","Que ","Chou ","Chi ","Zhan ","Sun ","Sun ","Bo ","Chu ","Rong ","Beng ","Cuo ","Sao ","Ke ","Yao ","Dao ","Zhi ","Nu ","Xie ","Jian ","Sou ","Qiu ","Gao ","Xian ","Shuo ","Sang ","Jin ","Mie ","E ","Chui ","Nuo ","Shan ","Ta ","Jie ","Tang ","Pan ","Ban ","Da ","Li ","Tao ","Hu ","Zhi ","Wa ","Xia ","Qian ","Wen ","Qiang ","Tian ","Zhen ","E ","Xi ","Nuo ","Quan ","Cha ","Zha ","Ge ","Wu ","En ","She ","Kang ","She ","Shu ","Bai ","Yao ","Bin ","Sou ","Tan ","Sa ","Chan ","Suo ","Liao ","Chong ","Chuang ","Guo ","Bing ","Feng ","Shuai ","Di ","Qi ","Sou ","Zhai ","Lian ","Tang ","Chi ","Guan ","Lu ","Luo ","Lou ","Zong ","Gai ","Hu ","Zha ","Chuang ","Tang ","Hua ","Cui ","Nai ","Mo ","Jiang ","Gui ","Ying ","Zhi ","Ao ","Zhi ","Nie ","Man ","Shan ","Kou ","Shu ","Suo ","Tuan ","Jiao ","Mo ","Mo ","Zhe ","Xian ","Keng ","Piao ","Jiang ","Yin ","Gou ","Qian ","Lue ","Ji ","Ying ","Jue ","Pie ","Pie ","Lao ","Dun ","Xian ","Ruan ","Kui ","Zan ","Yi ","Xun ","Cheng ","Cheng ","Sa ","Nao ","Heng ","Si ","Qian ","Huang ","Da ","Zun ","Nian ","Lin ","Zheng ","Hui ","Zhuang ","Jiao ","Ji ","Cao ","Dan ","Dan ","Che ","Bo ","Che ","Jue ","Xiao ","Liao ","Ben ","Fu ","Qiao ","Bo ","Cuo ","Zhuo ","Zhuan ","Tuo ","Pu ","Qin ","Dun ","Nian ","[?] ","Xie ","Lu ","Jiao ","Cuan ","Ta ","Han ","Qiao ","Zhua ","Jian ","Gan ","Yong ","Lei ","Kuo ","Lu ","Shan ","Zhuo ","Ze ","Pu ","Chuo ","Ji ","Dang ","Suo ","Cao ","Qing ","Jing ","Huan ","Jie ","Qin ","Kuai ","Dan ","Xi ","Ge ","Pi ","Bo ","Ao ","Ju ","Ye ","[?] ","Mang ","Sou ","Mi ","Ji ","Tai ","Zhuo ","Dao ","Xing ","Lan ","Ca ","Ju ","Ye ","Ru ","Ye ","Ye ","Ni ","Hu ","Ji ","Bin ","Ning ","Ge ","Zhi ","Jie ","Kuo ","Mo ","Jian ","Xie ","Lie ","Tan ","Bai ","Sou ","Lu ","Lue ","Rao ","Zhi "]});var H7=y((Dze,B7)=>{B7.exports=["Pan ","Yang ","Lei ","Sa ","Shu ","Zan ","Nian ","Xian ","Jun ","Huo ","Li ","La ","Han ","Ying ","Lu ","Long ","Qian ","Qian ","Zan ","Qian ","Lan ","San ","Ying ","Mei ","Rang ","Chan ","[?] ","Cuan ","Xi ","She ","Luo ","Jun ","Mi ","Li ","Zan ","Luan ","Tan ","Zuan ","Li ","Dian ","Wa ","Dang ","Jiao ","Jue ","Lan ","Li ","Nang ","Zhi ","Gui ","Gui ","Qi ","Xin ","Pu ","Sui ","Shou ","Kao ","You ","Gai ","Yi ","Gong ","Gan ","Ban ","Fang ","Zheng ","Bo ","Dian ","Kou ","Min ","Wu ","Gu ","He ","Ce ","Xiao ","Mi ","Chu ","Ge ","Di ","Xu ","Jiao ","Min ","Chen ","Jiu ","Zhen ","Duo ","Yu ","Chi ","Ao ","Bai ","Xu ","Jiao ","Duo ","Lian ","Nie ","Bi ","Chang ","Dian ","Duo ","Yi ","Gan ","San ","Ke ","Yan ","Dun ","Qi ","Dou ","Xiao ","Duo ","Jiao ","Jing ","Yang ","Xia ","Min ","Shu ","Ai ","Qiao ","Ai ","Zheng ","Di ","Zhen ","Fu ","Shu ","Liao ","Qu ","Xiong ","Xi ","Jiao ","Sen ","Jiao ","Zhuo ","Yi ","Lian ","Bi ","Li ","Xiao ","Xiao ","Wen ","Xue ","Qi ","Qi ","Zhai ","Bin ","Jue ","Zhai ","[?] ","Fei ","Ban ","Ban ","Lan ","Yu ","Lan ","Wei ","Dou ","Sheng ","Liao ","Jia ","Hu ","Xie ","Jia ","Yu ","Zhen ","Jiao ","Wo ","Tou ","Chu ","Jin ","Chi ","Yin ","Fu ","Qiang ","Zhan ","Qu ","Zhuo ","Zhan ","Duan ","Zhuo ","Si ","Xin ","Zhuo ","Zhuo ","Qin ","Lin ","Zhuo ","Chu ","Duan ","Zhu ","Fang ","Xie ","Hang ","Yu ","Shi ","Pei ","You ","Mye ","Pang ","Qi ","Zhan ","Mao ","Lu ","Pei ","Pi ","Liu ","Fu ","Fang ","Xuan ","Jing ","Jing ","Ni ","Zu ","Zhao ","Yi ","Liu ","Shao ","Jian ","Es ","Yi ","Qi ","Zhi ","Fan ","Piao ","Fan ","Zhan ","Guai ","Sui ","Yu ","Wu ","Ji ","Ji ","Ji ","Huo ","Ri ","Dan ","Jiu ","Zhi ","Zao ","Xie ","Tiao ","Xun ","Xu ","Xu ","Xu ","Gan ","Han ","Tai ","Di ","Xu ","Chan ","Shi ","Kuang ","Yang ","Shi ","Wang ","Min ","Min ","Tun ","Chun ","Wu "]});var Y7=y((Cze,q7)=>{q7.exports=["Yun ","Bei ","Ang ","Ze ","Ban ","Jie ","Kun ","Sheng ","Hu ","Fang ","Hao ","Gui ","Chang ","Xuan ","Ming ","Hun ","Fen ","Qin ","Hu ","Yi ","Xi ","Xin ","Yan ","Ze ","Fang ","Tan ","Shen ","Ju ","Yang ","Zan ","Bing ","Xing ","Ying ","Xuan ","Pei ","Zhen ","Ling ","Chun ","Hao ","Mei ","Zuo ","Mo ","Bian ","Xu ","Hun ","Zhao ","Zong ","Shi ","Shi ","Yu ","Fei ","Die ","Mao ","Ni ","Chang ","Wen ","Dong ","Ai ","Bing ","Ang ","Zhou ","Long ","Xian ","Kuang ","Tiao ","Chao ","Shi ","Huang ","Huang ","Xuan ","Kui ","Xu ","Jiao ","Jin ","Zhi ","Jin ","Shang ","Tong ","Hong ","Yan ","Gai ","Xiang ","Shai ","Xiao ","Ye ","Yun ","Hui ","Han ","Han ","Jun ","Wan ","Xian ","Kun ","Zhou ","Xi ","Cheng ","Sheng ","Bu ","Zhe ","Zhe ","Wu ","Han ","Hui ","Hao ","Chen ","Wan ","Tian ","Zhuo ","Zui ","Zhou ","Pu ","Jing ","Xi ","Shan ","Yi ","Xi ","Qing ","Qi ","Jing ","Gui ","Zhen ","Yi ","Zhi ","An ","Wan ","Lin ","Liang ","Chang ","Wang ","Xiao ","Zan ","Hi ","Xuan ","Xuan ","Yi ","Xia ","Yun ","Hui ","Fu ","Min ","Kui ","He ","Ying ","Du ","Wei ","Shu ","Qing ","Mao ","Nan ","Jian ","Nuan ","An ","Yang ","Chun ","Yao ","Suo ","Jin ","Ming ","Jiao ","Kai ","Gao ","Weng ","Chang ","Qi ","Hao ","Yan ","Li ","Ai ","Ji ","Gui ","Men ","Zan ","Xie ","Hao ","Mu ","Mo ","Cong ","Ni ","Zhang ","Hui ","Bao ","Han ","Xuan ","Chuan ","Liao ","Xian ","Dan ","Jing ","Pie ","Lin ","Tun ","Xi ","Yi ","Ji ","Huang ","Tai ","Ye ","Ye ","Li ","Tan ","Tong ","Xiao ","Fei ","Qin ","Zhao ","Hao ","Yi ","Xiang ","Xing ","Sen ","Jiao ","Bao ","Jing ","Yian ","Ai ","Ye ","Ru ","Shu ","Meng ","Xun ","Yao ","Pu ","Li ","Chen ","Kuang ","Die ","[?] ","Yan ","Huo ","Lu ","Xi ","Rong ","Long ","Nang ","Luo ","Luan ","Shai ","Tang ","Yan ","Chu ","Yue ","Yue ","Qu ","Yi ","Geng ","Ye ","Hu ","He ","Shu ","Cao ","Cao ","Noboru ","Man ","Ceng ","Ceng ","Ti "]});var Z7=y((xze,W7)=>{W7.exports=["Zui ","Can ","Xu ","Hui ","Yin ","Qie ","Fen ","Pi ","Yue ","You ","Ruan ","Peng ","Ban ","Fu ","Ling ","Fei ","Qu ","[?] ","Nu ","Tiao ","Shuo ","Zhen ","Lang ","Lang ","Juan ","Ming ","Huang ","Wang ","Tun ","Zhao ","Ji ","Qi ","Ying ","Zong ","Wang ","Tong ","Lang ","[?] ","Meng ","Long ","Mu ","Deng ","Wei ","Mo ","Ben ","Zha ","Zhu ","Zhu ","[?] ","Zhu ","Ren ","Ba ","Po ","Duo ","Duo ","Dao ","Li ","Qiu ","Ji ","Jiu ","Bi ","Xiu ","Ting ","Ci ","Sha ","Eburi ","Za ","Quan ","Qian ","Yu ","Gan ","Wu ","Cha ","Shan ","Xun ","Fan ","Wu ","Zi ","Li ","Xing ","Cai ","Cun ","Ren ","Shao ","Tuo ","Di ","Zhang ","Mang ","Chi ","Yi ","Gu ","Gong ","Du ","Yi ","Qi ","Shu ","Gang ","Tiao ","Moku ","Soma ","Tochi ","Lai ","Sugi ","Mang ","Yang ","Ma ","Miao ","Si ","Yuan ","Hang ","Fei ","Bei ","Jie ","Dong ","Gao ","Yao ","Xian ","Chu ","Qun ","Pa ","Shu ","Hua ","Xin ","Chou ","Zhu ","Chou ","Song ","Ban ","Song ","Ji ","Yue ","Jin ","Gou ","Ji ","Mao ","Pi ","Bi ","Wang ","Ang ","Fang ","Fen ","Yi ","Fu ","Nan ","Xi ","Hu ","Ya ","Dou ","Xun ","Zhen ","Yao ","Lin ","Rui ","E ","Mei ","Zhao ","Guo ","Zhi ","Cong ","Yun ","Waku ","Dou ","Shu ","Zao ","[?] ","Li ","Haze ","Jian ","Cheng ","Matsu ","Qiang ","Feng ","Nan ","Xiao ","Xian ","Ku ","Ping ","Yi ","Xi ","Zhi ","Guai ","Xiao ","Jia ","Jia ","Gou ","Fu ","Mo ","Yi ","Ye ","Ye ","Shi ","Nie ","Bi ","Duo ","Yi ","Ling ","Bing ","Ni ","La ","He ","Pan ","Fan ","Zhong ","Dai ","Ci ","Yang ","Fu ","Bo ","Mou ","Gan ","Qi ","Ran ","Rou ","Mao ","Zhao ","Song ","Zhe ","Xia ","You ","Shen ","Ju ","Tuo ","Zuo ","Nan ","Ning ","Yong ","Di ","Zhi ","Zha ","Cha ","Dan ","Gu ","Pu ","Jiu ","Ao ","Fu ","Jian ","Bo ","Duo ","Ke ","Nai ","Zhu ","Bi ","Liu ","Chai ","Zha ","Si ","Zhu ","Pei ","Shi ","Guai ","Cha ","Yao ","Jue ","Jiu ","Shi "]});var $7=y((Sze,J7)=>{J7.exports=["Zhi ","Liu ","Mei ","Hoy ","Rong ","Zha ","[?] ","Biao ","Zhan ","Jie ","Long ","Dong ","Lu ","Sayng ","Li ","Lan ","Yong ","Shu ","Xun ","Shuan ","Qi ","Zhen ","Qi ","Li ","Yi ","Xiang ","Zhen ","Li ","Su ","Gua ","Kan ","Bing ","Ren ","Xiao ","Bo ","Ren ","Bing ","Zi ","Chou ","Yi ","Jie ","Xu ","Zhu ","Jian ","Zui ","Er ","Er ","You ","Fa ","Gong ","Kao ","Lao ","Zhan ","Li ","Yin ","Yang ","He ","Gen ","Zhi ","Chi ","Ge ","Zai ","Luan ","Fu ","Jie ","Hang ","Gui ","Tao ","Guang ","Wei ","Kuang ","Ru ","An ","An ","Juan ","Yi ","Zhuo ","Ku ","Zhi ","Qiong ","Tong ","Sang ","Sang ","Huan ","Jie ","Jiu ","Xue ","Duo ","Zhui ","Yu ","Zan ","Kasei ","Ying ","Masu ","[?] ","Zhan ","Ya ","Nao ","Zhen ","Dang ","Qi ","Qiao ","Hua ","Kuai ","Jiang ","Zhuang ","Xun ","Suo ","Sha ","Zhen ","Bei ","Ting ","Gua ","Jing ","Bo ","Ben ","Fu ","Rui ","Tong ","Jue ","Xi ","Lang ","Liu ","Feng ","Qi ","Wen ","Jun ","Gan ","Cu ","Liang ","Qiu ","Ting ","You ","Mei ","Bang ","Long ","Peng ","Zhuang ","Di ","Xuan ","Tu ","Zao ","Ao ","Gu ","Bi ","Di ","Han ","Zi ","Zhi ","Ren ","Bei ","Geng ","Jian ","Huan ","Wan ","Nuo ","Jia ","Tiao ","Ji ","Xiao ","Lu ","Huan ","Shao ","Cen ","Fen ","Song ","Meng ","Wu ","Li ","Li ","Dou ","Cen ","Ying ","Suo ","Ju ","Ti ","Jie ","Kun ","Zhuo ","Shu ","Chan ","Fan ","Wei ","Jing ","Li ","Bing ","Fumoto ","Shikimi ","Tao ","Zhi ","Lai ","Lian ","Jian ","Zhuo ","Ling ","Li ","Qi ","Bing ","Zhun ","Cong ","Qian ","Mian ","Qi ","Qi ","Cai ","Gun ","Chan ","Te ","Fei ","Pai ","Bang ","Pou ","Hun ","Zong ","Cheng ","Zao ","Ji ","Li ","Peng ","Yu ","Yu ","Gu ","Hun ","Dong ","Tang ","Gang ","Wang ","Di ","Xi ","Fan ","Cheng ","Zhan ","Qi ","Yuan ","Yan ","Yu ","Quan ","Yi ","Sen ","Ren ","Chui ","Leng ","Qi ","Zhuo ","Fu ","Ke ","Lai ","Zou ","Zou ","Zhuo ","Guan ","Fen ","Fen ","Chen ","Qiong ","Nie "]});var U7=y((Tze,X7)=>{X7.exports=["Wan ","Guo ","Lu ","Hao ","Jie ","Yi ","Chou ","Ju ","Ju ","Cheng ","Zuo ","Liang ","Qiang ","Zhi ","Zhui ","Ya ","Ju ","Bei ","Jiao ","Zhuo ","Zi ","Bin ","Peng ","Ding ","Chu ","Chang ","Kunugi ","Momiji ","Jian ","Gui ","Xi ","Du ","Qian ","Kunugi ","Soko ","Shide ","Luo ","Zhi ","Ken ","Myeng ","Tafu ","[?] ","Peng ","Zhan ","[?] ","Tuo ","Sen ","Duo ","Ye ","Fou ","Wei ","Wei ","Duan ","Jia ","Zong ","Jian ","Yi ","Shen ","Xi ","Yan ","Yan ","Chuan ","Zhan ","Chun ","Yu ","He ","Zha ","Wo ","Pian ","Bi ","Yao ","Huo ","Xu ","Ruo ","Yang ","La ","Yan ","Ben ","Hun ","Kui ","Jie ","Kui ","Si ","Feng ","Xie ","Tuo ","Zhi ","Jian ","Mu ","Mao ","Chu ","Hu ","Hu ","Lian ","Leng ","Ting ","Nan ","Yu ","You ","Mei ","Song ","Xuan ","Xuan ","Ying ","Zhen ","Pian ","Ye ","Ji ","Jie ","Ye ","Chu ","Shun ","Yu ","Cou ","Wei ","Mei ","Di ","Ji ","Jie ","Kai ","Qiu ","Ying ","Rou ","Heng ","Lou ","Le ","Hazou ","Katsura ","Pin ","Muro ","Gai ","Tan ","Lan ","Yun ","Yu ","Chen ","Lu ","Ju ","Sakaki ","[?] ","Pi ","Xie ","Jia ","Yi ","Zhan ","Fu ","Nai ","Mi ","Lang ","Rong ","Gu ","Jian ","Ju ","Ta ","Yao ","Zhen ","Bang ","Sha ","Yuan ","Zi ","Ming ","Su ","Jia ","Yao ","Jie ","Huang ","Gan ","Fei ","Zha ","Qian ","Ma ","Sun ","Yuan ","Xie ","Rong ","Shi ","Zhi ","Cui ","Yun ","Ting ","Liu ","Rong ","Tang ","Que ","Zhai ","Si ","Sheng ","Ta ","Ke ","Xi ","Gu ","Qi ","Kao ","Gao ","Sun ","Pan ","Tao ","Ge ","Xun ","Dian ","Nou ","Ji ","Shuo ","Gou ","Chui ","Qiang ","Cha ","Qian ","Huai ","Mei ","Xu ","Gang ","Gao ","Zhuo ","Tuo ","Hashi ","Yang ","Dian ","Jia ","Jian ","Zui ","Kashi ","Ori ","Bin ","Zhu ","[?] ","Xi ","Qi ","Lian ","Hui ","Yong ","Qian ","Guo ","Gai ","Gai ","Tuan ","Hua ","Cu ","Sen ","Cui ","Beng ","You ","Hu ","Jiang ","Hu ","Huan ","Kui ","Yi ","Nie ","Gao ","Kang ","Gui ","Gui ","Cao ","Man ","Jin "]});var K7=y((kze,G7)=>{G7.exports=["Di ","Zhuang ","Le ","Lang ","Chen ","Cong ","Li ","Xiu ","Qing ","Shuang ","Fan ","Tong ","Guan ","Ji ","Suo ","Lei ","Lu ","Liang ","Mi ","Lou ","Chao ","Su ","Ke ","Shu ","Tang ","Biao ","Lu ","Jiu ","Shu ","Zha ","Shu ","Zhang ","Men ","Mo ","Niao ","Yang ","Tiao ","Peng ","Zhu ","Sha ","Xi ","Quan ","Heng ","Jian ","Cong ","[?] ","Hokuso ","Qiang ","Tara ","Ying ","Er ","Xin ","Zhi ","Qiao ","Zui ","Cong ","Pu ","Shu ","Hua ","Kui ","Zhen ","Zun ","Yue ","Zhan ","Xi ","Xun ","Dian ","Fa ","Gan ","Mo ","Wu ","Qiao ","Nao ","Lin ","Liu ","Qiao ","Xian ","Run ","Fan ","Zhan ","Tuo ","Lao ","Yun ","Shun ","Tui ","Cheng ","Tang ","Meng ","Ju ","Cheng ","Su ","Jue ","Jue ","Tan ","Hui ","Ji ","Nuo ","Xiang ","Tuo ","Ning ","Rui ","Zhu ","Chuang ","Zeng ","Fen ","Qiong ","Ran ","Heng ","Cen ","Gu ","Liu ","Lao ","Gao ","Chu ","Zusa ","Nude ","Ca ","San ","Ji ","Dou ","Shou ","Lu ","[?] ","[?] ","Yuan ","Ta ","Shu ","Jiang ","Tan ","Lin ","Nong ","Yin ","Xi ","Sui ","Shan ","Zui ","Xuan ","Cheng ","Gan ","Ju ","Zui ","Yi ","Qin ","Pu ","Yan ","Lei ","Feng ","Hui ","Dang ","Ji ","Sui ","Bo ","Bi ","Ding ","Chu ","Zhua ","Kuai ","Ji ","Jie ","Jia ","Qing ","Zhe ","Jian ","Qiang ","Dao ","Yi ","Biao ","Song ","She ","Lin ","Kunugi ","Cha ","Meng ","Yin ","Tao ","Tai ","Mian ","Qi ","Toan ","Bin ","Huo ","Ji ","Qian ","Mi ","Ning ","Yi ","Gao ","Jian ","Yin ","Er ","Qing ","Yan ","Qi ","Mi ","Zhao ","Gui ","Chun ","Ji ","Kui ","Po ","Deng ","Chu ","[?] ","Mian ","You ","Zhi ","Guang ","Qian ","Lei ","Lei ","Sa ","Lu ","Li ","Cuan ","Lu ","Mie ","Hui ","Ou ","Lu ","Jie ","Gao ","Du ","Yuan ","Li ","Fei ","Zhuo ","Sou ","Lian ","Tamo ","Chu ","[?] ","Zhu ","Lu ","Yan ","Li ","Zhu ","Chen ","Jie ","E ","Su ","Huai ","Nie ","Yu ","Long ","Lai ","[?] ","Xian ","Kwi ","Ju ","Xiao ","Ling ","Ying ","Jian ","Yin ","You ","Ying "]});var z7=y((Eze,Q7)=>{Q7.exports=["Xiang ","Nong ","Bo ","Chan ","Lan ","Ju ","Shuang ","She ","Wei ","Cong ","Quan ","Qu ","Cang ","[?] ","Yu ","Luo ","Li ","Zan ","Luan ","Dang ","Jue ","Em ","Lan ","Lan ","Zhu ","Lei ","Li ","Ba ","Nang ","Yu ","Ling ","Tsuki ","Qian ","Ci ","Huan ","Xin ","Yu ","Yu ","Qian ","Ou ","Xu ","Chao ","Chu ","Chi ","Kai ","Yi ","Jue ","Xi ","Xu ","Xia ","Yu ","Kuai ","Lang ","Kuan ","Shuo ","Xi ","Ai ","Yi ","Qi ","Hu ","Chi ","Qin ","Kuan ","Kan ","Kuan ","Kan ","Chuan ","Sha ","Gua ","Yin ","Xin ","Xie ","Yu ","Qian ","Xiao ","Yi ","Ge ","Wu ","Tan ","Jin ","Ou ","Hu ","Ti ","Huan ","Xu ","Pen ","Xi ","Xiao ","Xu ","Xi ","Sen ","Lian ","Chu ","Yi ","Kan ","Yu ","Chuo ","Huan ","Zhi ","Zheng ","Ci ","Bu ","Wu ","Qi ","Bu ","Bu ","Wai ","Ju ","Qian ","Chi ","Se ","Chi ","Se ","Zhong ","Sui ","Sui ","Li ","Cuo ","Yu ","Li ","Gui ","Dai ","Dai ","Si ","Jian ","Zhe ","Mo ","Mo ","Yao ","Mo ","Cu ","Yang ","Tian ","Sheng ","Dai ","Shang ","Xu ","Xun ","Shu ","Can ","Jue ","Piao ","Qia ","Qiu ","Su ","Qing ","Yun ","Lian ","Yi ","Fou ","Zhi ","Ye ","Can ","Hun ","Dan ","Ji ","Ye ","Zhen ","Yun ","Wen ","Chou ","Bin ","Ti ","Jin ","Shang ","Yin ","Diao ","Cu ","Hui ","Cuan ","Yi ","Dan ","Du ","Jiang ","Lian ","Bin ","Du ","Tsukusu ","Jian ","Shu ","Ou ","Duan ","Zhu ","Yin ","Qing ","Yi ","Sha ","Que ","Ke ","Yao ","Jun ","Dian ","Hui ","Hui ","Gu ","Que ","Ji ","Yi ","Ou ","Hui ","Duan ","Yi ","Xiao ","Wu ","Guan ","Mu ","Mei ","Mei ","Ai ","Zuo ","Du ","Yu ","Bi ","Bi ","Bi ","Pi ","Pi ","Bi ","Chan ","Mao ","[?] ","[?] ","Pu ","Mushiru ","Jia ","Zhan ","Sai ","Mu ","Tuo ","Xun ","Er ","Rong ","Xian ","Ju ","Mu ","Hao ","Qiu ","Dou ","Mushiru ","Tan ","Pei ","Ju ","Duo ","Cui ","Bi ","San ","[?] ","Mao ","Sui ","Yu ","Yu ","Tuo ","He ","Jian ","Ta ","San "]});var e5=y((Pze,V7)=>{V7.exports=["Lu ","Mu ","Li ","Tong ","Rong ","Chang ","Pu ","Luo ","Zhan ","Sao ","Zhan ","Meng ","Luo ","Qu ","Die ","Shi ","Di ","Min ","Jue ","Mang ","Qi ","Pie ","Nai ","Qi ","Dao ","Xian ","Chuan ","Fen ","Ri ","Nei ","[?] ","Fu ","Shen ","Dong ","Qing ","Qi ","Yin ","Xi ","Hai ","Yang ","An ","Ya ","Ke ","Qing ","Ya ","Dong ","Dan ","Lu ","Qing ","Yang ","Yun ","Yun ","Shui ","San ","Zheng ","Bing ","Yong ","Dang ","Shitamizu ","Le ","Ni ","Tun ","Fan ","Gui ","Ting ","Zhi ","Qiu ","Bin ","Ze ","Mian ","Cuan ","Hui ","Diao ","Yi ","Cha ","Zhuo ","Chuan ","Wan ","Fan ","Dai ","Xi ","Tuo ","Mang ","Qiu ","Qi ","Shan ","Pai ","Han ","Qian ","Wu ","Wu ","Xun ","Si ","Ru ","Gong ","Jiang ","Chi ","Wu ","Tsuchi ","[?] ","Tang ","Zhi ","Chi ","Qian ","Mi ","Yu ","Wang ","Qing ","Jing ","Rui ","Jun ","Hong ","Tai ","Quan ","Ji ","Bian ","Bian ","Gan ","Wen ","Zhong ","Fang ","Xiong ","Jue ","Hang ","Niou ","Qi ","Fen ","Xu ","Xu ","Qin ","Yi ","Wo ","Yun ","Yuan ","Hang ","Yan ","Chen ","Chen ","Dan ","You ","Dun ","Hu ","Huo ","Qie ","Mu ","Rou ","Mei ","Ta ","Mian ","Wu ","Chong ","Tian ","Bi ","Sha ","Zhi ","Pei ","Pan ","Zhui ","Za ","Gou ","Liu ","Mei ","Ze ","Feng ","Ou ","Li ","Lun ","Cang ","Feng ","Wei ","Hu ","Mo ","Mei ","Shu ","Ju ","Zan ","Tuo ","Tuo ","Tuo ","He ","Li ","Mi ","Yi ","Fa ","Fei ","You ","Tian ","Zhi ","Zhao ","Gu ","Zhan ","Yan ","Si ","Kuang ","Jiong ","Ju ","Xie ","Qiu ","Yi ","Jia ","Zhong ","Quan ","Bo ","Hui ","Mi ","Ben ","Zhuo ","Chu ","Le ","You ","Gu ","Hong ","Gan ","Fa ","Mao ","Si ","Hu ","Ping ","Ci ","Fan ","Chi ","Su ","Ning ","Cheng ","Ling ","Pao ","Bo ","Qi ","Si ","Ni ","Ju ","Yue ","Zhu ","Sheng ","Lei ","Xuan ","Xue ","Fu ","Pan ","Min ","Tai ","Yang ","Ji ","Yong ","Guan ","Beng ","Xue ","Long ","Lu ","[?] ","Bo ","Xie ","Po ","Ze ","Jing ","Yin "]});var i5=y((_ze,t5)=>{t5.exports=["Zhou ","Ji ","Yi ","Hui ","Hui ","Zui ","Cheng ","Yin ","Wei ","Hou ","Jian ","Yang ","Lie ","Si ","Ji ","Er ","Xing ","Fu ","Sa ","Suo ","Zhi ","Yin ","Wu ","Xi ","Kao ","Zhu ","Jiang ","Luo ","[?] ","An ","Dong ","Yi ","Mou ","Lei ","Yi ","Mi ","Quan ","Jin ","Mo ","Wei ","Xiao ","Xie ","Hong ","Xu ","Shuo ","Kuang ","Tao ","Qie ","Ju ","Er ","Zhou ","Ru ","Ping ","Xun ","Xiong ","Zhi ","Guang ","Huan ","Ming ","Huo ","Wa ","Qia ","Pai ","Wu ","Qu ","Liu ","Yi ","Jia ","Jing ","Qian ","Jiang ","Jiao ","Cheng ","Shi ","Zhuo ","Ce ","Pal ","Kuai ","Ji ","Liu ","Chan ","Hun ","Hu ","Nong ","Xun ","Jin ","Lie ","Qiu ","Wei ","Zhe ","Jun ","Han ","Bang ","Mang ","Zhuo ","You ","Xi ","Bo ","Dou ","Wan ","Hong ","Yi ","Pu ","Ying ","Lan ","Hao ","Lang ","Han ","Li ","Geng ","Fu ","Wu ","Lian ","Chun ","Feng ","Yi ","Yu ","Tong ","Lao ","Hai ","Jin ","Jia ","Chong ","Weng ","Mei ","Sui ","Cheng ","Pei ","Xian ","Shen ","Tu ","Kun ","Pin ","Nie ","Han ","Jing ","Xiao ","She ","Nian ","Tu ","Yong ","Xiao ","Xian ","Ting ","E ","Su ","Tun ","Juan ","Cen ","Ti ","Li ","Shui ","Si ","Lei ","Shui ","Tao ","Du ","Lao ","Lai ","Lian ","Wei ","Wo ","Yun ","Huan ","Di ","[?] ","Run ","Jian ","Zhang ","Se ","Fu ","Guan ","Xing ","Shou ","Shuan ","Ya ","Chuo ","Zhang ","Ye ","Kong ","Wo ","Han ","Tuo ","Dong ","He ","Wo ","Ju ","Gan ","Liang ","Hun ","Ta ","Zhuo ","Dian ","Qie ","De ","Juan ","Zi ","Xi ","Yao ","Qi ","Gu ","Guo ","Han ","Lin ","Tang ","Zhou ","Peng ","Hao ","Chang ","Shu ","Qi ","Fang ","Chi ","Lu ","Nao ","Ju ","Tao ","Cong ","Lei ","Zhi ","Peng ","Fei ","Song ","Tian ","Pi ","Dan ","Yu ","Ni ","Yu ","Lu ","Gan ","Mi ","Jing ","Ling ","Lun ","Yin ","Cui ","Qu ","Huai ","Yu ","Nian ","Shen ","Piao ","Chun ","Wa ","Yuan ","Lai ","Hun ","Qing ","Yan ","Qian ","Tian ","Miao ","Zhi ","Yin ","Mi "]});var r5=y((Rze,n5)=>{n5.exports=["Ben ","Yuan ","Wen ","Re ","Fei ","Qing ","Yuan ","Ke ","Ji ","She ","Yuan ","Shibui ","Lu ","Zi ","Du ","[?] ","Jian ","Min ","Pi ","Tani ","Yu ","Yuan ","Shen ","Shen ","Rou ","Huan ","Zhu ","Jian ","Nuan ","Yu ","Qiu ","Ting ","Qu ","Du ","Feng ","Zha ","Bo ","Wo ","Wo ","Di ","Wei ","Wen ","Ru ","Xie ","Ce ","Wei ","Ge ","Gang ","Yan ","Hong ","Xuan ","Mi ","Ke ","Mao ","Ying ","Yan ","You ","Hong ","Miao ","Xing ","Mei ","Zai ","Hun ","Nai ","Kui ","Shi ","E ","Pai ","Mei ","Lian ","Qi ","Qi ","Mei ","Tian ","Cou ","Wei ","Can ","Tuan ","Mian ","Hui ","Mo ","Xu ","Ji ","Pen ","Jian ","Jian ","Hu ","Feng ","Xiang ","Yi ","Yin ","Zhan ","Shi ","Jie ","Cheng ","Huang ","Tan ","Yu ","Bi ","Min ","Shi ","Tu ","Sheng ","Yong ","Qu ","Zhong ","Suei ","Jiu ","Jiao ","Qiou ","Yin ","Tang ","Long ","Huo ","Yuan ","Nan ","Ban ","You ","Quan ","Chui ","Liang ","Chan ","Yan ","Chun ","Nie ","Zi ","Wan ","Shi ","Man ","Ying ","Ratsu ","Kui ","[?] ","Jian ","Xu ","Lu ","Gui ","Gai ","[?] ","[?] ","Po ","Jin ","Gui ","Tang ","Yuan ","Suo ","Yuan ","Lian ","Yao ","Meng ","Zhun ","Sheng ","Ke ","Tai ","Da ","Wa ","Liu ","Gou ","Sao ","Ming ","Zha ","Shi ","Yi ","Lun ","Ma ","Pu ","Wei ","Li ","Cai ","Wu ","Xi ","Wen ","Qiang ","Ze ","Shi ","Su ","Yi ","Zhen ","Sou ","Yun ","Xiu ","Yin ","Rong ","Hun ","Su ","Su ","Ni ","Ta ","Shi ","Ru ","Wei ","Pan ","Chu ","Chu ","Pang ","Weng ","Cang ","Mie ","He ","Dian ","Hao ","Huang ","Xi ","Zi ","Di ","Zhi ","Ying ","Fu ","Jie ","Hua ","Ge ","Zi ","Tao ","Teng ","Sui ","Bi ","Jiao ","Hui ","Gun ","Yin ","Gao ","Long ","Zhi ","Yan ","She ","Man ","Ying ","Chun ","Lu ","Lan ","Luan ","[?] ","Bin ","Tan ","Yu ","Sou ","Hu ","Bi ","Biao ","Zhi ","Jiang ","Kou ","Shen ","Shang ","Di ","Mi ","Ao ","Lu ","Hu ","Hu ","You ","Chan ","Fan ","Yong ","Gun ","Man "]});var s5=y((Lze,o5)=>{o5.exports=["Qing ","Yu ","Piao ","Ji ","Ya ","Jiao ","Qi ","Xi ","Ji ","Lu ","Lu ","Long ","Jin ","Guo ","Cong ","Lou ","Zhi ","Gai ","Qiang ","Li ","Yan ","Cao ","Jiao ","Cong ","Qun ","Tuan ","Ou ","Teng ","Ye ","Xi ","Mi ","Tang ","Mo ","Shang ","Han ","Lian ","Lan ","Wa ","Li ","Qian ","Feng ","Xuan ","Yi ","Man ","Zi ","Mang ","Kang ","Lei ","Peng ","Shu ","Zhang ","Zhang ","Chong ","Xu ","Huan ","Kuo ","Jian ","Yan ","Chuang ","Liao ","Cui ","Ti ","Yang ","Jiang ","Cong ","Ying ","Hong ","Xun ","Shu ","Guan ","Ying ","Xiao ","[?] ","[?] ","Xu ","Lian ","Zhi ","Wei ","Pi ","Jue ","Jiao ","Po ","Dang ","Hui ","Jie ","Wu ","Pa ","Ji ","Pan ","Gui ","Xiao ","Qian ","Qian ","Xi ","Lu ","Xi ","Xuan ","Dun ","Huang ","Min ","Run ","Su ","Liao ","Zhen ","Zhong ","Yi ","Di ","Wan ","Dan ","Tan ","Chao ","Xun ","Kui ","Yie ","Shao ","Tu ","Zhu ","San ","Hei ","Bi ","Shan ","Chan ","Chan ","Shu ","Tong ","Pu ","Lin ","Wei ","Se ","Se ","Cheng ","Jiong ","Cheng ","Hua ","Jiao ","Lao ","Che ","Gan ","Cun ","Heng ","Si ","Shu ","Peng ","Han ","Yun ","Liu ","Hong ","Fu ","Hao ","He ","Xian ","Jian ","Shan ","Xi ","Oki ","[?] ","Lan ","[?] ","Yu ","Lin ","Min ","Zao ","Dang ","Wan ","Ze ","Xie ","Yu ","Li ","Shi ","Xue ","Ling ","Man ","Zi ","Yong ","Kuai ","Can ","Lian ","Dian ","Ye ","Ao ","Huan ","Zhen ","Chan ","Man ","Dan ","Dan ","Yi ","Sui ","Pi ","Ju ","Ta ","Qin ","Ji ","Zhuo ","Lian ","Nong ","Guo ","Jin ","Fen ","Se ","Ji ","Sui ","Hui ","Chu ","Ta ","Song ","Ding ","[?] ","Zhu ","Lai ","Bin ","Lian ","Mi ","Shi ","Shu ","Mi ","Ning ","Ying ","Ying ","Meng ","Jin ","Qi ","Pi ","Ji ","Hao ","Ru ","Zui ","Wo ","Tao ","Yin ","Yin ","Dui ","Ci ","Huo ","Jing ","Lan ","Jun ","Ai ","Pu ","Zhuo ","Wei ","Bin ","Gu ","Qian ","Xing ","Hama ","Kuo ","Fei ","[?] ","Boku ","Jian ","Wei ","Luo ","Zan ","Lu ","Li "]});var l5=y((Fze,a5)=>{a5.exports=["You ","Yang ","Lu ","Si ","Jie ","Ying ","Du ","Wang ","Hui ","Xie ","Pan ","Shen ","Biao ","Chan ","Mo ","Liu ","Jian ","Pu ","Se ","Cheng ","Gu ","Bin ","Huo ","Xian ","Lu ","Qin ","Han ","Ying ","Yong ","Li ","Jing ","Xiao ","Ying ","Sui ","Wei ","Xie ","Huai ","Hao ","Zhu ","Long ","Lai ","Dui ","Fan ","Hu ","Lai ","[?] ","[?] ","Ying ","Mi ","Ji ","Lian ","Jian ","Ying ","Fen ","Lin ","Yi ","Jian ","Yue ","Chan ","Dai ","Rang ","Jian ","Lan ","Fan ","Shuang ","Yuan ","Zhuo ","Feng ","She ","Lei ","Lan ","Cong ","Qu ","Yong ","Qian ","Fa ","Guan ","Que ","Yan ","Hao ","Hyeng ","Sa ","Zan ","Luan ","Yan ","Li ","Mi ","Shan ","Tan ","Dang ","Jiao ","Chan ","[?] ","Hao ","Ba ","Zhu ","Lan ","Lan ","Nang ","Wan ","Luan ","Xun ","Xian ","Yan ","Gan ","Yan ","Yu ","Huo ","Si ","Mie ","Guang ","Deng ","Hui ","Xiao ","Xiao ","Hu ","Hong ","Ling ","Zao ","Zhuan ","Jiu ","Zha ","Xie ","Chi ","Zhuo ","Zai ","Zai ","Can ","Yang ","Qi ","Zhong ","Fen ","Niu ","Jiong ","Wen ","Po ","Yi ","Lu ","Chui ","Pi ","Kai ","Pan ","Yan ","Kai ","Pang ","Mu ","Chao ","Liao ","Gui ","Kang ","Tun ","Guang ","Xin ","Zhi ","Guang ","Guang ","Wei ","Qiang ","[?] ","Da ","Xia ","Zheng ","Zhu ","Ke ","Zhao ","Fu ","Ba ","Duo ","Duo ","Ling ","Zhuo ","Xuan ","Ju ","Tan ","Pao ","Jiong ","Pao ","Tai ","Tai ","Bing ","Yang ","Tong ","Han ","Zhu ","Zha ","Dian ","Wei ","Shi ","Lian ","Chi ","Huang ","[?] ","Hu ","Shuo ","Lan ","Jing ","Jiao ","Xu ","Xing ","Quan ","Lie ","Huan ","Yang ","Xiao ","Xiu ","Xian ","Yin ","Wu ","Zhou ","Yao ","Shi ","Wei ","Tong ","Xue ","Zai ","Kai ","Hong ","Luo ","Xia ","Zhu ","Xuan ","Zheng ","Po ","Yan ","Hui ","Guang ","Zhe ","Hui ","Kao ","[?] ","Fan ","Shao ","Ye ","Hui ","[?] ","Tang ","Jin ","Re ","[?] ","Xi ","Fu ","Jiong ","Che ","Pu ","Jing ","Zhuo ","Ting ","Wan ","Hai ","Peng ","Lang ","Shan ","Hu ","Feng ","Chi ","Rong "]});var c5=y((Ize,u5)=>{u5.exports=["Hu ","Xi ","Shu ","He ","Xun ","Ku ","Jue ","Xiao ","Xi ","Yan ","Han ","Zhuang ","Jun ","Di ","Xie ","Ji ","Wu ","[?] ","[?] ","Han ","Yan ","Huan ","Men ","Ju ","Chou ","Bei ","Fen ","Lin ","Kun ","Hun ","Tun ","Xi ","Cui ","Wu ","Hong ","Ju ","Fu ","Wo ","Jiao ","Cong ","Feng ","Ping ","Qiong ","Ruo ","Xi ","Qiong ","Xin ","Zhuo ","Yan ","Yan ","Yi ","Jue ","Yu ","Gang ","Ran ","Pi ","Gu ","[?] ","Sheng ","Chang ","Shao ","[?] ","[?] ","[?] ","[?] ","Chen ","He ","Kui ","Zhong ","Duan ","Xia ","Hui ","Feng ","Lian ","Xuan ","Xing ","Huang ","Jiao ","Jian ","Bi ","Ying ","Zhu ","Wei ","Tuan ","Tian ","Xi ","Nuan ","Nuan ","Chan ","Yan ","Jiong ","Jiong ","Yu ","Mei ","Sha ","Wei ","Ye ","Xin ","Qiong ","Rou ","Mei ","Huan ","Xu ","Zhao ","Wei ","Fan ","Qiu ","Sui ","Yang ","Lie ","Zhu ","Jie ","Gao ","Gua ","Bao ","Hu ","Yun ","Xia ","[?] ","[?] ","Bian ","Gou ","Tui ","Tang ","Chao ","Shan ","N ","Bo ","Huang ","Xie ","Xi ","Wu ","Xi ","Yun ","He ","He ","Xi ","Yun ","Xiong ","Nai ","Shan ","Qiong ","Yao ","Xun ","Mi ","Lian ","Ying ","Wen ","Rong ","Oozutsu ","[?] ","Qiang ","Liu ","Xi ","Bi ","Biao ","Zong ","Lu ","Jian ","Shou ","Yi ","Lou ","Feng ","Sui ","Yi ","Tong ","Jue ","Zong ","Yun ","Hu ","Yi ","Zhi ","Ao ","Wei ","Liao ","Han ","Ou ","Re ","Jiong ","Man ","[?] ","Shang ","Cuan ","Zeng ","Jian ","Xi ","Xi ","Xi ","Yi ","Xiao ","Chi ","Huang ","Chan ","Ye ","Qian ","Ran ","Yan ","Xian ","Qiao ","Zun ","Deng ","Dun ","Shen ","Jiao ","Fen ","Si ","Liao ","Yu ","Lin ","Tong ","Shao ","Fen ","Fan ","Yan ","Xun ","Lan ","Mei ","Tang ","Yi ","Jing ","Men ","[?] ","[?] ","Ying ","Yu ","Yi ","Xue ","Lan ","Tai ","Zao ","Can ","Sui ","Xi ","Que ","Cong ","Lian ","Hui ","Zhu ","Xie ","Ling ","Wei ","Yi ","Xie ","Zhao ","Hui ","Tatsu ","Nung ","Lan ","Ru ","Xian ","Kao ","Xun ","Jin ","Chou ","Chou ","Yao "]});var d5=y((jze,h5)=>{h5.exports=["He ","Lan ","Biao ","Rong ","Li ","Mo ","Bao ","Ruo ","Lu ","La ","Ao ","Xun ","Kuang ","Shuo ","[?] ","Li ","Lu ","Jue ","Liao ","Yan ","Xi ","Xie ","Long ","Ye ","[?] ","Rang ","Yue ","Lan ","Cong ","Jue ","Tong ","Guan ","[?] ","Che ","Mi ","Tang ","Lan ","Zhu ","[?] ","Ling ","Cuan ","Yu ","Zhua ","Tsumekanmuri ","Pa ","Zheng ","Pao ","Cheng ","Yuan ","Ai ","Wei ","[?] ","Jue ","Jue ","Fu ","Ye ","Ba ","Die ","Ye ","Yao ","Zu ","Shuang ","Er ","Qiang ","Chuang ","Ge ","Zang ","Die ","Qiang ","Yong ","Qiang ","Pian ","Ban ","Pan ","Shao ","Jian ","Pai ","Du ","Chuang ","Tou ","Zha ","Bian ","Die ","Bang ","Bo ","Chuang ","You ","[?] ","Du ","Ya ","Cheng ","Niu ","Ushihen ","Pin ","Jiu ","Mou ","Tuo ","Mu ","Lao ","Ren ","Mang ","Fang ","Mao ","Mu ","Gang ","Wu ","Yan ","Ge ","Bei ","Si ","Jian ","Gu ","You ","Ge ","Sheng ","Mu ","Di ","Qian ","Quan ","Quan ","Zi ","Te ","Xi ","Mang ","Keng ","Qian ","Wu ","Gu ","Xi ","Li ","Li ","Pou ","Ji ","Gang ","Zhi ","Ben ","Quan ","Run ","Du ","Ju ","Jia ","Jian ","Feng ","Pian ","Ke ","Ju ","Kao ","Chu ","Xi ","Bei ","Luo ","Jie ","Ma ","San ","Wei ","Li ","Dun ","Tong ","[?] ","Jiang ","Ikenie ","Li ","Du ","Lie ","Pi ","Piao ","Bao ","Xi ","Chou ","Wei ","Kui ","Chou ","Quan ","Fan ","Ba ","Fan ","Qiu ","Ji ","Cai ","Chuo ","An ","Jie ","Zhuang ","Guang ","Ma ","You ","Kang ","Bo ","Hou ","Ya ","Yin ","Huan ","Zhuang ","Yun ","Kuang ","Niu ","Di ","Qing ","Zhong ","Mu ","Bei ","Pi ","Ju ","Ni ","Sheng ","Pao ","Xia ","Tuo ","Hu ","Ling ","Fei ","Pi ","Ni ","Ao ","You ","Gou ","Yue ","Ju ","Dan ","Po ","Gu ","Xian ","Ning ","Huan ","Hen ","Jiao ","He ","Zhao ","Ji ","Xun ","Shan ","Ta ","Rong ","Shou ","Tong ","Lao ","Du ","Xia ","Shi ","Hua ","Zheng ","Yu ","Sun ","Yu ","Bi ","Mang ","Xi ","Juan ","Li ","Xia ","Yin ","Suan ","Lang ","Bei ","Zhi ","Yan "]});var p5=y((Aze,g5)=>{g5.exports=["Sha ","Li ","Han ","Xian ","Jing ","Pai ","Fei ","Yao ","Ba ","Qi ","Ni ","Biao ","Yin ","Lai ","Xi ","Jian ","Qiang ","Kun ","Yan ","Guo ","Zong ","Mi ","Chang ","Yi ","Zhi ","Zheng ","Ya ","Meng ","Cai ","Cu ","She ","Kari ","Cen ","Luo ","Hu ","Zong ","Ji ","Wei ","Feng ","Wo ","Yuan ","Xing ","Zhu ","Mao ","Wei ","Yuan ","Xian ","Tuan ","Ya ","Nao ","Xie ","Jia ","Hou ","Bian ","You ","You ","Mei ","Zha ","Yao ","Sun ","Bo ","Ming ","Hua ","Yuan ","Sou ","Ma ","Yuan ","Dai ","Yu ","Shi ","Hao ","[?] ","Yi ","Zhen ","Chuang ","Hao ","Man ","Jing ","Jiang ","Mu ","Zhang ","Chan ","Ao ","Ao ","Hao ","Cui ","Fen ","Jue ","Bi ","Bi ","Huang ","Pu ","Lin ","Yu ","Tong ","Yao ","Liao ","Shuo ","Xiao ","Swu ","Ton ","Xi ","Ge ","Juan ","Du ","Hui ","Kuai ","Xian ","Xie ","Ta ","Xian ","Xun ","Ning ","Pin ","Huo ","Nou ","Meng ","Lie ","Nao ","Guang ","Shou ","Lu ","Ta ","Xian ","Mi ","Rang ","Huan ","Nao ","Luo ","Xian ","Qi ","Jue ","Xuan ","Miao ","Zi ","Lu ","Lu ","Yu ","Su ","Wang ","Qiu ","Ga ","Ding ","Le ","Ba ","Ji ","Hong ","Di ","Quan ","Gan ","Jiu ","Yu ","Ji ","Yu ","Yang ","Ma ","Gong ","Wu ","Fu ","Wen ","Jie ","Ya ","Fen ","Bian ","Beng ","Yue ","Jue ","Yun ","Jue ","Wan ","Jian ","Mei ","Dan ","Pi ","Wei ","Huan ","Xian ","Qiang ","Ling ","Dai ","Yi ","An ","Ping ","Dian ","Fu ","Xuan ","Xi ","Bo ","Ci ","Gou ","Jia ","Shao ","Po ","Ci ","Ke ","Ran ","Sheng ","Shen ","Yi ","Zu ","Jia ","Min ","Shan ","Liu ","Bi ","Zhen ","Zhen ","Jue ","Fa ","Long ","Jin ","Jiao ","Jian ","Li ","Guang ","Xian ","Zhou ","Gong ","Yan ","Xiu ","Yang ","Xu ","Luo ","Su ","Zhu ","Qin ","Ken ","Xun ","Bao ","Er ","Xiang ","Yao ","Xia ","Heng ","Gui ","Chong ","Xu ","Ban ","Pei ","[?] ","Dang ","Ei ","Hun ","Wen ","E ","Cheng ","Ti ","Wu ","Wu ","Cheng ","Jun ","Mei ","Bei ","Ting ","Xian ","Chuo "]});var m5=y((Mze,f5)=>{f5.exports=["Han ","Xuan ","Yan ","Qiu ","Quan ","Lang ","Li ","Xiu ","Fu ","Liu ","Ye ","Xi ","Ling ","Li ","Jin ","Lian ","Suo ","Chiisai ","[?] ","Wan ","Dian ","Pin ","Zhan ","Cui ","Min ","Yu ","Ju ","Chen ","Lai ","Wen ","Sheng ","Wei ","Dian ","Chu ","Zhuo ","Pei ","Cheng ","Hu ","Qi ","E ","Kun ","Chang ","Qi ","Beng ","Wan ","Lu ","Cong ","Guan ","Yan ","Diao ","Bei ","Lin ","Qin ","Pi ","Pa ","Que ","Zhuo ","Qin ","Fa ","[?] ","Qiong ","Du ","Jie ","Hun ","Yu ","Mao ","Mei ","Chun ","Xuan ","Ti ","Xing ","Dai ","Rou ","Min ","Zhen ","Wei ","Ruan ","Huan ","Jie ","Chuan ","Jian ","Zhuan ","Yang ","Lian ","Quan ","Xia ","Duan ","Yuan ","Ye ","Nao ","Hu ","Ying ","Yu ","Huang ","Rui ","Se ","Liu ","Shi ","Rong ","Suo ","Yao ","Wen ","Wu ","Jin ","Jin ","Ying ","Ma ","Tao ","Liu ","Tang ","Li ","Lang ","Gui ","Zhen ","Qiang ","Cuo ","Jue ","Zhao ","Yao ","Ai ","Bin ","Tu ","Chang ","Kun ","Zhuan ","Cong ","Jin ","Yi ","Cui ","Cong ","Qi ","Li ","Ying ","Suo ","Qiu ","Xuan ","Ao ","Lian ","Man ","Zhang ","Yin ","[?] ","Ying ","Zhi ","Lu ","Wu ","Deng ","Xiou ","Zeng ","Xun ","Qu ","Dang ","Lin ","Liao ","Qiong ","Su ","Huang ","Gui ","Pu ","Jing ","Fan ","Jin ","Liu ","Ji ","[?] ","Jing ","Ai ","Bi ","Can ","Qu ","Zao ","Dang ","Jiao ","Gun ","Tan ","Hui ","Huan ","Se ","Sui ","Tian ","[?] ","Yu ","Jin ","Lu ","Bin ","Shou ","Wen ","Zui ","Lan ","Xi ","Ji ","Xuan ","Ruan ","Huo ","Gai ","Lei ","Du ","Li ","Zhi ","Rou ","Li ","Zan ","Qiong ","Zhe ","Gui ","Sui ","La ","Long ","Lu ","Li ","Zan ","Lan ","Ying ","Mi ","Xiang ","Xi ","Guan ","Dao ","Zan ","Huan ","Gua ","Bo ","Die ","Bao ","Hu ","Zhi ","Piao ","Ban ","Rang ","Li ","Wa ","Dekaguramu ","Jiang ","Qian ","Fan ","Pen ","Fang ","Dan ","Weng ","Ou ","Deshiguramu ","Miriguramu ","Thon ","Hu ","Ling ","Yi ","Ping ","Ci ","Hekutogura ","Juan ","Chang ","Chi ","Sarake ","Dang ","Meng ","Pou "]});var b5=y((Oze,y5)=>{y5.exports=["Zhui ","Ping ","Bian ","Zhou ","Zhen ","Senchigura ","Ci ","Ying ","Qi ","Xian ","Lou ","Di ","Ou ","Meng ","Zhuan ","Peng ","Lin ","Zeng ","Wu ","Pi ","Dan ","Weng ","Ying ","Yan ","Gan ","Dai ","Shen ","Tian ","Tian ","Han ","Chang ","Sheng ","Qing ","Sheng ","Chan ","Chan ","Rui ","Sheng ","Su ","Sen ","Yong ","Shuai ","Lu ","Fu ","Yong ","Beng ","Feng ","Ning ","Tian ","You ","Jia ","Shen ","Zha ","Dian ","Fu ","Nan ","Dian ","Ping ","Ting ","Hua ","Ting ","Quan ","Zi ","Meng ","Bi ","Qi ","Liu ","Xun ","Liu ","Chang ","Mu ","Yun ","Fan ","Fu ","Geng ","Tian ","Jie ","Jie ","Quan ","Wei ","Fu ","Tian ","Mu ","Tap ","Pan ","Jiang ","Wa ","Da ","Nan ","Liu ","Ben ","Zhen ","Chu ","Mu ","Mu ","Ce ","Cen ","Gai ","Bi ","Da ","Zhi ","Lue ","Qi ","Lue ","Pan ","Kesa ","Fan ","Hua ","Yu ","Yu ","Mu ","Jun ","Yi ","Liu ","Yu ","Die ","Chou ","Hua ","Dang ","Chuo ","Ji ","Wan ","Jiang ","Sheng ","Chang ","Tuan ","Lei ","Ji ","Cha ","Liu ","Tatamu ","Tuan ","Lin ","Jiang ","Jiang ","Chou ","Bo ","Die ","Die ","Pi ","Nie ","Dan ","Shu ","Shu ","Zhi ","Yi ","Chuang ","Nai ","Ding ","Bi ","Jie ","Liao ","Gong ","Ge ","Jiu ","Zhou ","Xia ","Shan ","Xu ","Nue ","Li ","Yang ","Chen ","You ","Ba ","Jie ","Jue ","Zhi ","Xia ","Cui ","Bi ","Yi ","Li ","Zong ","Chuang ","Feng ","Zhu ","Pao ","Pi ","Gan ","Ke ","Ci ","Xie ","Qi ","Dan ","Zhen ","Fa ","Zhi ","Teng ","Ju ","Ji ","Fei ","Qu ","Dian ","Jia ","Xian ","Cha ","Bing ","Ni ","Zheng ","Yong ","Jing ","Quan ","Chong ","Tong ","Yi ","Kai ","Wei ","Hui ","Duo ","Yang ","Chi ","Zhi ","Hen ","Ya ","Mei ","Dou ","Jing ","Xiao ","Tong ","Tu ","Mang ","Pi ","Xiao ","Suan ","Pu ","Li ","Zhi ","Cuo ","Duo ","Wu ","Sha ","Lao ","Shou ","Huan ","Xian ","Yi ","Peng ","Zhang ","Guan ","Tan ","Fei ","Ma ","Lin ","Chi ","Ji ","Dian ","An ","Chi ","Bi ","Bei ","Min ","Gu ","Dui ","E ","Wei "]});var w5=y((Nze,v5)=>{v5.exports=["Yu ","Cui ","Ya ","Zhu ","Cu ","Dan ","Shen ","Zhung ","Ji ","Yu ","Hou ","Feng ","La ","Yang ","Shen ","Tu ","Yu ","Gua ","Wen ","Huan ","Ku ","Jia ","Yin ","Yi ","Lu ","Sao ","Jue ","Chi ","Xi ","Guan ","Yi ","Wen ","Ji ","Chuang ","Ban ","Lei ","Liu ","Chai ","Shou ","Nue ","Dian ","Da ","Pie ","Tan ","Zhang ","Biao ","Shen ","Cu ","Luo ","Yi ","Zong ","Chou ","Zhang ","Zhai ","Sou ","Suo ","Que ","Diao ","Lou ","Lu ","Mo ","Jin ","Yin ","Ying ","Huang ","Fu ","Liao ","Long ","Qiao ","Liu ","Lao ","Xian ","Fei ","Dan ","Yin ","He ","Yan ","Ban ","Xian ","Guan ","Guai ","Nong ","Yu ","Wei ","Yi ","Yong ","Pi ","Lei ","Li ","Shu ","Dan ","Lin ","Dian ","Lin ","Lai ","Pie ","Ji ","Chi ","Yang ","Xian ","Jie ","Zheng ","[?] ","Li ","Huo ","Lai ","Shaku ","Dian ","Xian ","Ying ","Yin ","Qu ","Yong ","Tan ","Dian ","Luo ","Luan ","Luan ","Bo ","[?] ","Gui ","Po ","Fa ","Deng ","Fa ","Bai ","Bai ","Qie ","Bi ","Zao ","Zao ","Mao ","De ","Pa ","Jie ","Huang ","Gui ","Ci ","Ling ","Gao ","Mo ","Ji ","Jiao ","Peng ","Gao ","Ai ","E ","Hao ","Han ","Bi ","Wan ","Chou ","Qian ","Xi ","Ai ","Jiong ","Hao ","Huang ","Hao ","Ze ","Cui ","Hao ","Xiao ","Ye ","Po ","Hao ","Jiao ","Ai ","Xing ","Huang ","Li ","Piao ","He ","Jiao ","Pi ","Gan ","Pao ","Zhou ","Jun ","Qiu ","Cun ","Que ","Zha ","Gu ","Jun ","Jun ","Zhou ","Zha ","Gu ","Zhan ","Du ","Min ","Qi ","Ying ","Yu ","Bei ","Zhao ","Zhong ","Pen ","He ","Ying ","He ","Yi ","Bo ","Wan ","He ","Ang ","Zhan ","Yan ","Jian ","He ","Yu ","Kui ","Fan ","Gai ","Dao ","Pan ","Fu ","Qiu ","Sheng ","Dao ","Lu ","Zhan ","Meng ","Li ","Jin ","Xu ","Jian ","Pan ","Guan ","An ","Lu ","Shu ","Zhou ","Dang ","An ","Gu ","Li ","Mu ","Cheng ","Gan ","Xu ","Mang ","Mang ","Zhi ","Qi ","Ruan ","Tian ","Xiang ","Dun ","Xin ","Xi ","Pan ","Feng ","Dun ","Min "]});var C5=y((Bze,D5)=>{D5.exports=["Ming ","Sheng ","Shi ","Yun ","Mian ","Pan ","Fang ","Miao ","Dan ","Mei ","Mao ","Kan ","Xian ","Ou ","Shi ","Yang ","Zheng ","Yao ","Shen ","Huo ","Da ","Zhen ","Kuang ","Ju ","Shen ","Chi ","Sheng ","Mei ","Mo ","Zhu ","Zhen ","Zhen ","Mian ","Di ","Yuan ","Die ","Yi ","Zi ","Zi ","Chao ","Zha ","Xuan ","Bing ","Mi ","Long ","Sui ","Dong ","Mi ","Die ","Yi ","Er ","Ming ","Xuan ","Chi ","Kuang ","Juan ","Mou ","Zhen ","Tiao ","Yang ","Yan ","Mo ","Zhong ","Mai ","Zhao ","Zheng ","Mei ","Jun ","Shao ","Han ","Huan ","Di ","Cheng ","Cuo ","Juan ","E ","Wan ","Xian ","Xi ","Kun ","Lai ","Jian ","Shan ","Tian ","Hun ","Wan ","Ling ","Shi ","Qiong ","Lie ","Yai ","Jing ","Zheng ","Li ","Lai ","Sui ","Juan ","Shui ","Sui ","Du ","Bi ","Bi ","Mu ","Hun ","Ni ","Lu ","Yi ","Jie ","Cai ","Zhou ","Yu ","Hun ","Ma ","Xia ","Xing ","Xi ","Gun ","Cai ","Chun ","Jian ","Mei ","Du ","Hou ","Xuan ","Ti ","Kui ","Gao ","Rui ","Mou ","Xu ","Fa ","Wen ","Miao ","Chou ","Kui ","Mi ","Weng ","Kou ","Dang ","Chen ","Ke ","Sou ","Xia ","Qiong ","Mao ","Ming ","Man ","Shui ","Ze ","Zhang ","Yi ","Diao ","Ou ","Mo ","Shun ","Cong ","Lou ","Chi ","Man ","Piao ","Cheng ","Ji ","Meng ","[?] ","Run ","Pie ","Xi ","Qiao ","Pu ","Zhu ","Deng ","Shen ","Shun ","Liao ","Che ","Xian ","Kan ","Ye ","Xu ","Tong ","Mou ","Lin ","Kui ","Xian ","Ye ","Ai ","Hui ","Zhan ","Jian ","Gu ","Zhao ","Qu ","Wei ","Chou ","Sao ","Ning ","Xun ","Yao ","Huo ","Meng ","Mian ","Bin ","Mian ","Li ","Kuang ","Jue ","Xuan ","Mian ","Huo ","Lu ","Meng ","Long ","Guan ","Man ","Xi ","Chu ","Tang ","Kan ","Zhu ","Mao ","Jin ","Lin ","Yu ","Shuo ","Ce ","Jue ","Shi ","Yi ","Shen ","Zhi ","Hou ","Shen ","Ying ","Ju ","Zhou ","Jiao ","Cuo ","Duan ","Ai ","Jiao ","Zeng ","Huo ","Bai ","Shi ","Ding ","Qi ","Ji ","Zi ","Gan ","Wu ","Tuo ","Ku ","Qiang ","Xi ","Fan ","Kuang "]});var S5=y((Hze,x5)=>{x5.exports=["Dang ","Ma ","Sha ","Dan ","Jue ","Li ","Fu ","Min ","Nuo ","Huo ","Kang ","Zhi ","Qi ","Kan ","Jie ","Fen ","E ","Ya ","Pi ","Zhe ","Yan ","Sui ","Zhuan ","Che ","Dun ","Pan ","Yan ","[?] ","Feng ","Fa ","Mo ","Zha ","Qu ","Yu ","Luo ","Tuo ","Tuo ","Di ","Zhai ","Zhen ","Ai ","Fei ","Mu ","Zhu ","Li ","Bian ","Nu ","Ping ","Peng ","Ling ","Pao ","Le ","Po ","Bo ","Po ","Shen ","Za ","Nuo ","Li ","Long ","Tong ","[?] ","Li ","Aragane ","Chu ","Keng ","Quan ","Zhu ","Kuang ","Huo ","E ","Nao ","Jia ","Lu ","Wei ","Ai ","Luo ","Ken ","Xing ","Yan ","Tong ","Peng ","Xi ","[?] ","Hong ","Shuo ","Xia ","Qiao ","[?] ","Wei ","Qiao ","[?] ","Keng ","Xiao ","Que ","Chan ","Lang ","Hong ","Yu ","Xiao ","Xia ","Mang ","Long ","Iong ","Che ","Che ","E ","Liu ","Ying ","Mang ","Que ","Yan ","Sha ","Kun ","Yu ","[?] ","Kaki ","Lu ","Chen ","Jian ","Nue ","Song ","Zhuo ","Keng ","Peng ","Yan ","Zhui ","Kong ","Ceng ","Qi ","Zong ","Qing ","Lin ","Jun ","Bo ","Ding ","Min ","Diao ","Jian ","He ","Lu ","Ai ","Sui ","Que ","Ling ","Bei ","Yin ","Dui ","Wu ","Qi ","Lun ","Wan ","Dian ","Gang ","Pei ","Qi ","Chen ","Ruan ","Yan ","Die ","Ding ","Du ","Tuo ","Jie ","Ying ","Bian ","Ke ","Bi ","Wei ","Shuo ","Zhen ","Duan ","Xia ","Dang ","Ti ","Nao ","Peng ","Jian ","Di ","Tan ","Cha ","Seki ","Qi ","[?] ","Feng ","Xuan ","Que ","Que ","Ma ","Gong ","Nian ","Su ","E ","Ci ","Liu ","Si ","Tang ","Bang ","Hua ","Pi ","Wei ","Sang ","Lei ","Cuo ","Zhen ","Xia ","Qi ","Lian ","Pan ","Wei ","Yun ","Dui ","Zhe ","Ke ","La ","[?] ","Qing ","Gun ","Zhuan ","Chan ","Qi ","Ao ","Peng ","Lu ","Lu ","Kan ","Qiang ","Chen ","Yin ","Lei ","Biao ","Qi ","Mo ","Qi ","Cui ","Zong ","Qing ","Chuo ","[?] ","Ji ","Shan ","Lao ","Qu ","Zeng ","Deng ","Jian ","Xi ","Lin ","Ding ","Dian ","Huang ","Pan ","Za ","Qiao ","Di ","Li "]});var k5=y((qze,T5)=>{T5.exports=["Tani ","Jiao ","[?] ","Zhang ","Qiao ","Dun ","Xian ","Yu ","Zhui ","He ","Huo ","Zhai ","Lei ","Ke ","Chu ","Ji ","Que ","Dang ","Yi ","Jiang ","Pi ","Pi ","Yu ","Pin ","Qi ","Ai ","Kai ","Jian ","Yu ","Ruan ","Meng ","Pao ","Ci ","[?] ","[?] ","Mie ","Ca ","Xian ","Kuang ","Lei ","Lei ","Zhi ","Li ","Li ","Fan ","Que ","Pao ","Ying ","Li ","Long ","Long ","Mo ","Bo ","Shuang ","Guan ","Lan ","Zan ","Yan ","Shi ","Shi ","Li ","Reng ","She ","Yue ","Si ","Qi ","Ta ","Ma ","Xie ","Xian ","Xian ","Zhi ","Qi ","Zhi ","Beng ","Dui ","Zhong ","[?] ","Yi ","Shi ","You ","Zhi ","Tiao ","Fu ","Fu ","Mi ","Zu ","Zhi ","Suan ","Mei ","Zuo ","Qu ","Hu ","Zhu ","Shen ","Sui ","Ci ","Chai ","Mi ","Lu ","Yu ","Xiang ","Wu ","Tiao ","Piao ","Zhu ","Gui ","Xia ","Zhi ","Ji ","Gao ","Zhen ","Gao ","Shui ","Jin ","Chen ","Gai ","Kun ","Di ","Dao ","Huo ","Tao ","Qi ","Gu ","Guan ","Zui ","Ling ","Lu ","Bing ","Jin ","Dao ","Zhi ","Lu ","Shan ","Bei ","Zhe ","Hui ","You ","Xi ","Yin ","Zi ","Huo ","Zhen ","Fu ","Yuan ","Wu ","Xian ","Yang ","Ti ","Yi ","Mei ","Si ","Di ","[?] ","Zhuo ","Zhen ","Yong ","Ji ","Gao ","Tang ","Si ","Ma ","Ta ","[?] ","Xuan ","Qi ","Yu ","Xi ","Ji ","Si ","Chan ","Tan ","Kuai ","Sui ","Li ","Nong ","Ni ","Dao ","Li ","Rang ","Yue ","Ti ","Zan ","Lei ","Rou ","Yu ","Yu ","Chi ","Xie ","Qin ","He ","Tu ","Xiu ","Si ","Ren ","Tu ","Zi ","Cha ","Gan ","Yi ","Xian ","Bing ","Nian ","Qiu ","Qiu ","Chong ","Fen ","Hao ","Yun ","Ke ","Miao ","Zhi ","Geng ","Bi ","Zhi ","Yu ","Mi ","Ku ","Ban ","Pi ","Ni ","Li ","You ","Zu ","Pi ","Ba ","Ling ","Mo ","Cheng ","Nian ","Qin ","Yang ","Zuo ","Zhi ","Zhi ","Shu ","Ju ","Zi ","Huo ","Ji ","Cheng ","Tong ","Zhi ","Huo ","He ","Yin ","Zi ","Zhi ","Jie ","Ren ","Du ","Yi ","Zhu ","Hui ","Nong ","Fu "]});var P5=y((Yze,E5)=>{E5.exports=["Xi ","Kao ","Lang ","Fu ","Ze ","Shui ","Lu ","Kun ","Gan ","Geng ","Ti ","Cheng ","Tu ","Shao ","Shui ","Ya ","Lun ","Lu ","Gu ","Zuo ","Ren ","Zhun ","Bang ","Bai ","Ji ","Zhi ","Zhi ","Kun ","Leng ","Peng ","Ke ","Bing ","Chou ","Zu ","Yu ","Su ","Lue ","[?] ","Yi ","Xi ","Bian ","Ji ","Fu ","Bi ","Nuo ","Jie ","Zhong ","Zong ","Xu ","Cheng ","Dao ","Wen ","Lian ","Zi ","Yu ","Ji ","Xu ","Zhen ","Zhi ","Dao ","Jia ","Ji ","Gao ","Gao ","Gu ","Rong ","Sui ","You ","Ji ","Kang ","Mu ","Shan ","Men ","Zhi ","Ji ","Lu ","Su ","Ji ","Ying ","Wen ","Qiu ","Se ","[?] ","Yi ","Huang ","Qie ","Ji ","Sui ","Xiao ","Pu ","Jiao ","Zhuo ","Tong ","Sai ","Lu ","Sui ","Nong ","Se ","Hui ","Rang ","Nuo ","Yu ","Bin ","Ji ","Tui ","Wen ","Cheng ","Huo ","Gong ","Lu ","Biao ","[?] ","Rang ","Zhuo ","Li ","Zan ","Xue ","Wa ","Jiu ","Qiong ","Xi ","Qiong ","Kong ","Yu ","Sen ","Jing ","Yao ","Chuan ","Zhun ","Tu ","Lao ","Qie ","Zhai ","Yao ","Bian ","Bao ","Yao ","Bing ","Wa ","Zhu ","Jiao ","Qiao ","Diao ","Wu ","Gui ","Yao ","Zhi ","Chuang ","Yao ","Tiao ","Jiao ","Chuang ","Jiong ","Xiao ","Cheng ","Kou ","Cuan ","Wo ","Dan ","Ku ","Ke ","Zhui ","Xu ","Su ","Guan ","Kui ","Dou ","[?] ","Yin ","Wo ","Wa ","Ya ","Yu ","Ju ","Qiong ","Yao ","Yao ","Tiao ","Chao ","Yu ","Tian ","Diao ","Ju ","Liao ","Xi ","Wu ","Kui ","Chuang ","Zhao ","[?] ","Kuan ","Long ","Cheng ","Cui ","Piao ","Zao ","Cuan ","Qiao ","Qiong ","Dou ","Zao ","Long ","Qie ","Li ","Chu ","Shi ","Fou ","Qian ","Chu ","Hong ","Qi ","Qian ","Gong ","Shi ","Shu ","Miao ","Ju ","Zhan ","Zhu ","Ling ","Long ","Bing ","Jing ","Jing ","Zhang ","Yi ","Si ","Jun ","Hong ","Tong ","Song ","Jing ","Diao ","Yi ","Shu ","Jing ","Qu ","Jie ","Ping ","Duan ","Shao ","Zhuan ","Ceng ","Deng ","Cui ","Huai ","Jing ","Kan ","Jing ","Zhu ","Zhu ","Le ","Peng ","Yu ","Chi ","Gan "]});var R5=y((Wze,_5)=>{_5.exports=["Mang ","Zhu ","Utsubo ","Du ","Ji ","Xiao ","Ba ","Suan ","Ji ","Zhen ","Zhao ","Sun ","Ya ","Zhui ","Yuan ","Hu ","Gang ","Xiao ","Cen ","Pi ","Bi ","Jian ","Yi ","Dong ","Shan ","Sheng ","Xia ","Di ","Zhu ","Na ","Chi ","Gu ","Li ","Qie ","Min ","Bao ","Tiao ","Si ","Fu ","Ce ","Ben ","Pei ","Da ","Zi ","Di ","Ling ","Ze ","Nu ","Fu ","Gou ","Fan ","Jia ","Ge ","Fan ","Shi ","Mao ","Po ","Sey ","Jian ","Qiong ","Long ","Souke ","Bian ","Luo ","Gui ","Qu ","Chi ","Yin ","Yao ","Xian ","Bi ","Qiong ","Gua ","Deng ","Jiao ","Jin ","Quan ","Sun ","Ru ","Fa ","Kuang ","Zhu ","Tong ","Ji ","Da ","Xing ","Ce ","Zhong ","Kou ","Lai ","Bi ","Shai ","Dang ","Zheng ","Ce ","Fu ","Yun ","Tu ","Pa ","Li ","Lang ","Ju ","Guan ","Jian ","Han ","Tong ","Xia ","Zhi ","Cheng ","Suan ","Shi ","Zhu ","Zuo ","Xiao ","Shao ","Ting ","Ce ","Yan ","Gao ","Kuai ","Gan ","Chou ","Kago ","Gang ","Yun ","O ","Qian ","Xiao ","Jian ","Pu ","Lai ","Zou ","Bi ","Bi ","Bi ","Ge ","Chi ","Guai ","Yu ","Jian ","Zhao ","Gu ","Chi ","Zheng ","Jing ","Sha ","Zhou ","Lu ","Bo ","Ji ","Lin ","Suan ","Jun ","Fu ","Zha ","Gu ","Kong ","Qian ","Quan ","Jun ","Chui ","Guan ","Yuan ","Ce ","Ju ","Bo ","Ze ","Qie ","Tuo ","Luo ","Dan ","Xiao ","Ruo ","Jian ","Xuan ","Bian ","Sun ","Xiang ","Xian ","Ping ","Zhen ","Sheng ","Hu ","Shi ","Zhu ","Yue ","Chun ","Lu ","Wu ","Dong ","Xiao ","Ji ","Jie ","Huang ","Xing ","Mei ","Fan ","Chui ","Zhuan ","Pian ","Feng ","Zhu ","Hong ","Qie ","Hou ","Qiu ","Miao ","Qian ","[?] ","Kui ","Sik ","Lou ","Yun ","He ","Tang ","Yue ","Chou ","Gao ","Fei ","Ruo ","Zheng ","Gou ","Nie ","Qian ","Xiao ","Cuan ","Gong ","Pang ","Du ","Li ","Bi ","Zhuo ","Chu ","Shai ","Chi ","Zhu ","Qiang ","Long ","Lan ","Jian ","Bu ","Li ","Hui ","Bi ","Di ","Cong ","Yan ","Peng ","Sen ","Zhuan ","Pai ","Piao ","Dou ","Yu ","Mie ","Zhuan "]});var F5=y((Zze,L5)=>{L5.exports=["Ze ","Xi ","Guo ","Yi ","Hu ","Chan ","Kou ","Cu ","Ping ","Chou ","Ji ","Gui ","Su ","Lou ","Zha ","Lu ","Nian ","Suo ","Cuan ","Sasara ","Suo ","Le ","Duan ","Yana ","Xiao ","Bo ","Mi ","Si ","Dang ","Liao ","Dan ","Dian ","Fu ","Jian ","Min ","Kui ","Dai ","Qiao ","Deng ","Huang ","Sun ","Lao ","Zan ","Xiao ","Du ","Shi ","Zan ","[?] ","Pai ","Hata ","Pai ","Gan ","Ju ","Du ","Lu ","Yan ","Bo ","Dang ","Sai ","Ke ","Long ","Qian ","Lian ","Bo ","Zhou ","Lai ","[?] ","Lan ","Kui ","Yu ","Yue ","Hao ","Zhen ","Tai ","Ti ","Mi ","Chou ","Ji ","[?] ","Hata ","Teng ","Zhuan ","Zhou ","Fan ","Sou ","Zhou ","Kuji ","Zhuo ","Teng ","Lu ","Lu ","Jian ","Tuo ","Ying ","Yu ","Lai ","Long ","Shinshi ","Lian ","Lan ","Qian ","Yue ","Zhong ","Qu ","Lian ","Bian ","Duan ","Zuan ","Li ","Si ","Luo ","Ying ","Yue ","Zhuo ","Xu ","Mi ","Di ","Fan ","Shen ","Zhe ","Shen ","Nu ","Xie ","Lei ","Xian ","Zi ","Ni ","Cun ","[?] ","Qian ","Kume ","Bi ","Ban ","Wu ","Sha ","Kang ","Rou ","Fen ","Bi ","Cui ","[?] ","Li ","Chi ","Nukamiso ","Ro ","Ba ","Li ","Gan ","Ju ","Po ","Mo ","Cu ","Nian ","Zhou ","Li ","Su ","Tiao ","Li ","Qi ","Su ","Hong ","Tong ","Zi ","Ce ","Yue ","Zhou ","Lin ","Zhuang ","Bai ","[?] ","Fen ","Ji ","[?] ","Sukumo ","Liang ","Xian ","Fu ","Liang ","Can ","Geng ","Li ","Yue ","Lu ","Ju ","Qi ","Cui ","Bai ","Zhang ","Lin ","Zong ","Jing ","Guo ","Kouji ","San ","San ","Tang ","Bian ","Rou ","Mian ","Hou ","Xu ","Zong ","Hu ","Jian ","Zan ","Ci ","Li ","Xie ","Fu ","Ni ","Bei ","Gu ","Xiu ","Gao ","Tang ","Qiu ","Sukumo ","Cao ","Zhuang ","Tang ","Mi ","San ","Fen ","Zao ","Kang ","Jiang ","Mo ","San ","San ","Nuo ","Xi ","Liang ","Jiang ","Kuai ","Bo ","Huan ","[?] ","Zong ","Xian ","Nuo ","Tuan ","Nie ","Li ","Zuo ","Di ","Nie ","Tiao ","Lan ","Mi ","Jiao ","Jiu ","Xi ","Gong ","Zheng ","Jiu ","You "]});var j5=y((Jze,I5)=>{I5.exports=["Ji ","Cha ","Zhou ","Xun ","Yue ","Hong ","Yu ","He ","Wan ","Ren ","Wen ","Wen ","Qiu ","Na ","Zi ","Tou ","Niu ","Fou ","Jie ","Shu ","Chun ","Pi ","Yin ","Sha ","Hong ","Zhi ","Ji ","Fen ","Yun ","Ren ","Dan ","Jin ","Su ","Fang ","Suo ","Cui ","Jiu ","Zha ","Kinu ","Jin ","Fu ","Zhi ","Ci ","Zi ","Chou ","Hong ","Zha ","Lei ","Xi ","Fu ","Xie ","Shen ","Bei ","Zhu ","Qu ","Ling ","Zhu ","Shao ","Gan ","Yang ","Fu ","Tuo ","Zhen ","Dai ","Zhuo ","Shi ","Zhong ","Xian ","Zu ","Jiong ","Ban ","Ju ","Mo ","Shu ","Zui ","Wata ","Jing ","Ren ","Heng ","Xie ","Jie ","Zhu ","Chou ","Gua ","Bai ","Jue ","Kuang ","Hu ","Ci ","Geng ","Geng ","Tao ","Xie ","Ku ","Jiao ","Quan ","Gai ","Luo ","Xuan ","Bing ","Xian ","Fu ","Gei ","Tong ","Rong ","Tiao ","Yin ","Lei ","Xie ","Quan ","Xu ","Lun ","Die ","Tong ","Si ","Jiang ","Xiang ","Hui ","Jue ","Zhi ","Jian ","Juan ","Chi ","Mian ","Zhen ","Lu ","Cheng ","Qiu ","Shu ","Bang ","Tong ","Xiao ","Wan ","Qin ","Geng ","Xiu ","Ti ","Xiu ","Xie ","Hong ","Xi ","Fu ","Ting ","Sui ","Dui ","Kun ","Fu ","Jing ","Hu ","Zhi ","Yan ","Jiong ","Feng ","Ji ","Sok ","Kase ","Zong ","Lin ","Duo ","Li ","Lu ","Liang ","Chou ","Quan ","Shao ","Qi ","Qi ","Zhun ","Qi ","Wan ","Qian ","Xian ","Shou ","Wei ","Qi ","Tao ","Wan ","Gang ","Wang ","Beng ","Zhui ","Cai ","Guo ","Cui ","Lun ","Liu ","Qi ","Zhan ","Bei ","Chuo ","Ling ","Mian ","Qi ","Qie ","Tan ","Zong ","Gun ","Zou ","Yi ","Zi ","Xing ","Liang ","Jin ","Fei ","Rui ","Min ","Yu ","Zong ","Fan ","Lu ","Xu ","Yingl ","Zhang ","Kasuri ","Xu ","Xiang ","Jian ","Ke ","Xian ","Ruan ","Mian ","Qi ","Duan ","Zhong ","Di ","Min ","Miao ","Yuan ","Xie ","Bao ","Si ","Qiu ","Bian ","Huan ","Geng ","Cong ","Mian ","Wei ","Fu ","Wei ","Yu ","Gou ","Miao ","Xie ","Lian ","Zong ","Bian ","Yun ","Yin ","Ti ","Gua ","Zhi ","Yun ","Cheng ","Chan ","Dai "]});var M5=y(($ze,A5)=>{A5.exports=["Xia ","Yuan ","Zong ","Xu ","Nawa ","Odoshi ","Geng ","Sen ","Ying ","Jin ","Yi ","Zhui ","Ni ","Bang ","Gu ","Pan ","Zhou ","Jian ","Cuo ","Quan ","Shuang ","Yun ","Xia ","Shuai ","Xi ","Rong ","Tao ","Fu ","Yun ","Zhen ","Gao ","Ru ","Hu ","Zai ","Teng ","Xian ","Su ","Zhen ","Zong ","Tao ","Horo ","Cai ","Bi ","Feng ","Cu ","Li ","Suo ","Yin ","Xi ","Zong ","Lei ","Zhuan ","Qian ","Man ","Zhi ","Lu ","Mo ","Piao ","Lian ","Mi ","Xuan ","Zong ","Ji ","Shan ","Sui ","Fan ","Shuai ","Beng ","Yi ","Sao ","Mou ","Zhou ","Qiang ","Hun ","Sem ","Xi ","Jung ","Xiu ","Ran ","Xuan ","Hui ","Qiao ","Zeng ","Zuo ","Zhi ","Shan ","San ","Lin ","Yu ","Fan ","Liao ","Chuo ","Zun ","Jian ","Rao ","Chan ","Rui ","Xiu ","Hui ","Hua ","Zuan ","Xi ","Qiang ","Un ","Da ","Sheng ","Hui ","Xi ","Se ","Jian ","Jiang ","Huan ","Zao ","Cong ","Jie ","Jiao ","Bo ","Chan ","Yi ","Nao ","Sui ","Yi ","Shai ","Xu ","Ji ","Bin ","Qian ","Lan ","Pu ","Xun ","Zuan ","Qi ","Peng ","Li ","Mo ","Lei ","Xie ","Zuan ","Kuang ","You ","Xu ","Lei ","Xian ","Chan ","Kou ","Lu ","Chan ","Ying ","Cai ","Xiang ","Xian ","Zui ","Zuan ","Luo ","Xi ","Dao ","Lan ","Lei ","Lian ","Si ","Jiu ","Yu ","Hong ","Zhou ","Xian ","He ","Yue ","Ji ","Wan ","Kuang ","Ji ","Ren ","Wei ","Yun ","Hong ","Chun ","Pi ","Sha ","Gang ","Na ","Ren ","Zong ","Lun ","Fen ","Zhi ","Wen ","Fang ","Zhu ","Yin ","Niu ","Shu ","Xian ","Gan ","Xie ","Fu ","Lian ","Zu ","Shen ","Xi ","Zhi ","Zhong ","Zhou ","Ban ","Fu ","Zhuo ","Shao ","Yi ","Jing ","Dai ","Bang ","Rong ","Jie ","Ku ","Rao ","Die ","Heng ","Hui ","Gei ","Xuan ","Jiang ","Luo ","Jue ","Jiao ","Tong ","Geng ","Xiao ","Juan ","Xiu ","Xi ","Sui ","Tao ","Ji ","Ti ","Ji ","Xu ","Ling ","[?] ","Xu ","Qi ","Fei ","Chuo ","Zhang ","Gun ","Sheng ","Wei ","Mian ","Shou ","Beng ","Chou ","Tao ","Liu ","Quan ","Zong ","Zhan ","Wan ","Lu "]});var N5=y((Xze,O5)=>{O5.exports=["Zhui ","Zi ","Ke ","Xiang ","Jian ","Mian ","Lan ","Ti ","Miao ","Qi ","Yun ","Hui ","Si ","Duo ","Duan ","Bian ","Xian ","Gou ","Zhui ","Huan ","Di ","Lu ","Bian ","Min ","Yuan ","Jin ","Fu ","Ru ","Zhen ","Feng ","Shuai ","Gao ","Chan ","Li ","Yi ","Jian ","Bin ","Piao ","Man ","Lei ","Ying ","Suo ","Mou ","Sao ","Xie ","Liao ","Shan ","Zeng ","Jiang ","Qian ","Zao ","Huan ","Jiao ","Zuan ","Fou ","Xie ","Gang ","Fou ","Que ","Fou ","Kaakeru ","Bo ","Ping ","Hou ","[?] ","Gang ","Ying ","Ying ","Qing ","Xia ","Guan ","Zun ","Tan ","Chang ","Qi ","Weng ","Ying ","Lei ","Tan ","Lu ","Guan ","Wang ","Wang ","Gang ","Wang ","Han ","[?] ","Luo ","Fu ","Mi ","Fa ","Gu ","Zhu ","Ju ","Mao ","Gu ","Min ","Gang ","Ba ","Gua ","Ti ","Juan ","Fu ","Lin ","Yan ","Zhao ","Zui ","Gua ","Zhuo ","Yu ","Zhi ","An ","Fa ","Nan ","Shu ","Si ","Pi ","Ma ","Liu ","Ba ","Fa ","Li ","Chao ","Wei ","Bi ","Ji ","Zeng ","Tong ","Liu ","Ji ","Juan ","Mi ","Zhao ","Luo ","Pi ","Ji ","Ji ","Luan ","Yang ","Mie ","Qiang ","Ta ","Mei ","Yang ","You ","You ","Fen ","Ba ","Gao ","Yang ","Gu ","Qiang ","Zang ","Gao ","Ling ","Yi ","Zhu ","Di ","Xiu ","Qian ","Yi ","Xian ","Rong ","Qun ","Qun ","Qian ","Huan ","Zui ","Xian ","Yi ","Yashinau ","Qiang ","Xian ","Yu ","Geng ","Jie ","Tang ","Yuan ","Xi ","Fan ","Shan ","Fen ","Shan ","Lian ","Lei ","Geng ","Nou ","Qiang ","Chan ","Yu ","Gong ","Yi ","Chong ","Weng ","Fen ","Hong ","Chi ","Chi ","Cui ","Fu ","Xia ","Pen ","Yi ","La ","Yi ","Pi ","Ling ","Liu ","Zhi ","Qu ","Xi ","Xie ","Xiang ","Xi ","Xi ","Qi ","Qiao ","Hui ","Hui ","Xiao ","Se ","Hong ","Jiang ","Di ","Cui ","Fei ","Tao ","Sha ","Chi ","Zhu ","Jian ","Xuan ","Shi ","Pian ","Zong ","Wan ","Hui ","Hou ","He ","He ","Han ","Ao ","Piao ","Yi ","Lian ","Qu ","[?] ","Lin ","Pen ","Qiao ","Ao ","Fan ","Yi ","Hui ","Xuan ","Dao "]});var H5=y((Uze,B5)=>{B5.exports=["Yao ","Lao ","[?] ","Kao ","Mao ","Zhe ","Qi ","Gou ","Gou ","Gou ","Die ","Die ","Er ","Shua ","Ruan ","Er ","Nai ","Zhuan ","Lei ","Ting ","Zi ","Geng ","Chao ","Hao ","Yun ","Pa ","Pi ","Chi ","Si ","Chu ","Jia ","Ju ","He ","Chu ","Lao ","Lun ","Ji ","Tang ","Ou ","Lou ","Nou ","Gou ","Pang ","Ze ","Lou ","Ji ","Lao ","Huo ","You ","Mo ","Huai ","Er ","Zhe ","Ting ","Ye ","Da ","Song ","Qin ","Yun ","Chi ","Dan ","Dan ","Hong ","Geng ","Zhi ","[?] ","Nie ","Dan ","Zhen ","Che ","Ling ","Zheng ","You ","Wa ","Liao ","Long ","Zhi ","Ning ","Tiao ","Er ","Ya ","Die ","Gua ","[?] ","Lian ","Hao ","Sheng ","Lie ","Pin ","Jing ","Ju ","Bi ","Di ","Guo ","Wen ","Xu ","Ping ","Cong ","Shikato ","[?] ","Ting ","Yu ","Cong ","Kui ","Tsuraneru ","Kui ","Cong ","Lian ","Weng ","Kui ","Lian ","Lian ","Cong ","Ao ","Sheng ","Song ","Ting ","Kui ","Nie ","Zhi ","Dan ","Ning ","Qie ","Ji ","Ting ","Ting ","Long ","Yu ","Yu ","Zhao ","Si ","Su ","Yi ","Su ","Si ","Zhao ","Zhao ","Rou ","Yi ","Le ","Ji ","Qiu ","Ken ","Cao ","Ge ","Di ","Huan ","Huang ","Yi ","Ren ","Xiao ","Ru ","Zhou ","Yuan ","Du ","Gang ","Rong ","Gan ","Cha ","Wo ","Chang ","Gu ","Zhi ","Han ","Fu ","Fei ","Fen ","Pei ","Pang ","Jian ","Fang ","Zhun ","You ","Na ","Hang ","Ken ","Ran ","Gong ","Yu ","Wen ","Yao ","Jin ","Pi ","Qian ","Xi ","Xi ","Fei ","Ken ","Jing ","Tai ","Shen ","Zhong ","Zhang ","Xie ","Shen ","Wei ","Zhou ","Die ","Dan ","Fei ","Ba ","Bo ","Qu ","Tian ","Bei ","Gua ","Tai ","Zi ","Ku ","Zhi ","Ni ","Ping ","Zi ","Fu ","Pang ","Zhen ","Xian ","Zuo ","Pei ","Jia ","Sheng ","Zhi ","Bao ","Mu ","Qu ","Hu ","Ke ","Yi ","Yin ","Xu ","Yang ","Long ","Dong ","Ka ","Lu ","Jing ","Nu ","Yan ","Pang ","Kua ","Yi ","Guang ","Gai ","Ge ","Dong ","Zhi ","Xiao ","Xiong ","Xiong ","Er ","E ","Xing ","Pian ","Neng ","Zi ","Gui "]});var Y5=y((Gze,q5)=>{q5.exports=["Cheng ","Tiao ","Zhi ","Cui ","Mei ","Xie ","Cui ","Xie ","Mo ","Mai ","Ji ","Obiyaakasu ","[?] ","Kuai ","Sa ","Zang ","Qi ","Nao ","Mi ","Nong ","Luan ","Wan ","Bo ","Wen ","Guan ","Qiu ","Jiao ","Jing ","Rou ","Heng ","Cuo ","Lie ","Shan ","Ting ","Mei ","Chun ","Shen ","Xie ","De ","Zui ","Cu ","Xiu ","Xin ","Tuo ","Pao ","Cheng ","Nei ","Fu ","Dou ","Tuo ","Niao ","Noy ","Pi ","Gu ","Gua ","Li ","Lian ","Zhang ","Cui ","Jie ","Liang ","Zhou ","Pi ","Biao ","Lun ","Pian ","Guo ","Kui ","Chui ","Dan ","Tian ","Nei ","Jing ","Jie ","La ","Yi ","An ","Ren ","Shen ","Chuo ","Fu ","Fu ","Ju ","Fei ","Qiang ","Wan ","Dong ","Pi ","Guo ","Zong ","Ding ","Wu ","Mei ","Ruan ","Zhuan ","Zhi ","Cou ","Gua ","Ou ","Di ","An ","Xing ","Nao ","Yu ","Chuan ","Nan ","Yun ","Zhong ","Rou ","E ","Sai ","Tu ","Yao ","Jian ","Wei ","Jiao ","Yu ","Jia ","Duan ","Bi ","Chang ","Fu ","Xian ","Ni ","Mian ","Wa ","Teng ","Tui ","Bang ","Qian ","Lu ","Wa ","Sou ","Tang ","Su ","Zhui ","Ge ","Yi ","Bo ","Liao ","Ji ","Pi ","Xie ","Gao ","Lu ","Bin ","Ou ","Chang ","Lu ","Guo ","Pang ","Chuai ","Piao ","Jiang ","Fu ","Tang ","Mo ","Xi ","Zhuan ","Lu ","Jiao ","Ying ","Lu ","Zhi ","Tara ","Chun ","Lian ","Tong ","Peng ","Ni ","Zha ","Liao ","Cui ","Gui ","Xiao ","Teng ","Fan ","Zhi ","Jiao ","Shan ","Wu ","Cui ","Run ","Xiang ","Sui ","Fen ","Ying ","Tan ","Zhua ","Dan ","Kuai ","Nong ","Tun ","Lian ","Bi ","Yong ","Jue ","Chu ","Yi ","Juan ","La ","Lian ","Sao ","Tun ","Gu ","Qi ","Cui ","Bin ","Xun ","Ru ","Huo ","Zang ","Xian ","Biao ","Xing ","Kuan ","La ","Yan ","Lu ","Huo ","Zang ","Luo ","Qu ","Zang ","Luan ","Ni ","Zang ","Chen ","Qian ","Wo ","Guang ","Zang ","Lin ","Guang ","Zi ","Jiao ","Nie ","Chou ","Ji ","Gao ","Chou ","Mian ","Nie ","Zhi ","Zhi ","Ge ","Jian ","Die ","Zhi ","Xiu ","Tai ","Zhen ","Jiu ","Xian ","Yu ","Cha "]});var Z5=y((Kze,W5)=>{W5.exports=["Yao ","Yu ","Chong ","Xi ","Xi ","Jiu ","Yu ","Yu ","Xing ","Ju ","Jiu ","Xin ","She ","She ","Yadoru ","Jiu ","Shi ","Tan ","Shu ","Shi ","Tian ","Dan ","Pu ","Pu ","Guan ","Hua ","Tan ","Chuan ","Shun ","Xia ","Wu ","Zhou ","Dao ","Gang ","Shan ","Yi ","[?] ","Pa ","Tai ","Fan ","Ban ","Chuan ","Hang ","Fang ","Ban ","Que ","Hesaki ","Zhong ","Jian ","Cang ","Ling ","Zhu ","Ze ","Duo ","Bo ","Xian ","Ge ","Chuan ","Jia ","Lu ","Hong ","Pang ","Xi ","[?] ","Fu ","Zao ","Feng ","Li ","Shao ","Yu ","Lang ","Ting ","[?] ","Wei ","Bo ","Meng ","Nian ","Ju ","Huang ","Shou ","Zong ","Bian ","Mao ","Die ","[?] ","Bang ","Cha ","Yi ","Sao ","Cang ","Cao ","Lou ","Dai ","Sori ","Yao ","Tong ","Yofune ","Dang ","Tan ","Lu ","Yi ","Jie ","Jian ","Huo ","Meng ","Qi ","Lu ","Lu ","Chan ","Shuang ","Gen ","Liang ","Jian ","Jian ","Se ","Yan ","Fu ","Ping ","Yan ","Yan ","Cao ","Cao ","Yi ","Le ","Ting ","Qiu ","Ai ","Nai ","Tiao ","Jiao ","Jie ","Peng ","Wan ","Yi ","Chai ","Mian ","Mie ","Gan ","Qian ","Yu ","Yu ","Shuo ","Qiong ","Tu ","Xia ","Qi ","Mang ","Zi ","Hui ","Sui ","Zhi ","Xiang ","Bi ","Fu ","Tun ","Wei ","Wu ","Zhi ","Qi ","Shan ","Wen ","Qian ","Ren ","Fou ","Kou ","Jie ","Lu ","Xu ","Ji ","Qin ","Qi ","Yuan ","Fen ","Ba ","Rui ","Xin ","Ji ","Hua ","Hua ","Fang ","Wu ","Jue ","Gou ","Zhi ","Yun ","Qin ","Ao ","Chu ","Mao ","Ya ","Fei ","Reng ","Hang ","Cong ","Yin ","You ","Bian ","Yi ","Susa ","Wei ","Li ","Pi ","E ","Xian ","Chang ","Cang ","Meng ","Su ","Yi ","Yuan ","Ran ","Ling ","Tai ","Tiao ","Di ","Miao ","Qiong ","Li ","Yong ","Ke ","Mu ","Pei ","Bao ","Gou ","Min ","Yi ","Yi ","Ju ","Pi ","Ruo ","Ku ","Zhu ","Ni ","Bo ","Bing ","Shan ","Qiu ","Yao ","Xian ","Ben ","Hong ","Ying ","Zha ","Dong ","Ju ","Die ","Nie ","Gan ","Hu ","Ping ","Mei ","Fu ","Sheng ","Gu ","Bi ","Wei "]});var $5=y((Qze,J5)=>{J5.exports=["Fu ","Zhuo ","Mao ","Fan ","Qie ","Mao ","Mao ","Ba ","Zi ","Mo ","Zi ","Di ","Chi ","Ji ","Jing ","Long ","[?] ","Niao ","[?] ","Xue ","Ying ","Qiong ","Ge ","Ming ","Li ","Rong ","Yin ","Gen ","Qian ","Chai ","Chen ","Yu ","Xiu ","Zi ","Lie ","Wu ","Ji ","Kui ","Ce ","Chong ","Ci ","Gou ","Guang ","Mang ","Chi ","Jiao ","Jiao ","Fu ","Yu ","Zhu ","Zi ","Jiang ","Hui ","Yin ","Cha ","Fa ","Rong ","Ru ","Chong ","Mang ","Tong ","Zhong ","[?] ","Zhu ","Xun ","Huan ","Kua ","Quan ","Gai ","Da ","Jing ","Xing ","Quan ","Cao ","Jing ","Er ","An ","Shou ","Chi ","Ren ","Jian ","Ti ","Huang ","Ping ","Li ","Jin ","Lao ","Shu ","Zhuang ","Da ","Jia ","Rao ","Bi ","Ze ","Qiao ","Hui ","Qi ","Dang ","[?] ","Rong ","Hun ","Ying ","Luo ","Ying ","Xun ","Jin ","Sun ","Yin ","Mai ","Hong ","Zhou ","Yao ","Du ","Wei ","Chu ","Dou ","Fu ","Ren ","Yin ","He ","Bi ","Bu ","Yun ","Di ","Tu ","Sui ","Sui ","Cheng ","Chen ","Wu ","Bie ","Xi ","Geng ","Li ","Fu ","Zhu ","Mo ","Li ","Zhuang ","Ji ","Duo ","Qiu ","Sha ","Suo ","Chen ","Feng ","Ju ","Mei ","Meng ","Xing ","Jing ","Che ","Xin ","Jun ","Yan ","Ting ","Diao ","Cuo ","Wan ","Han ","You ","Cuo ","Jia ","Wang ","You ","Niu ","Shao ","Xian ","Lang ","Fu ","E ","Mo ","Wen ","Jie ","Nan ","Mu ","Kan ","Lai ","Lian ","Shi ","Wo ","Usagi ","Lian ","Huo ","You ","Ying ","Ying ","Nuc ","Chun ","Mang ","Mang ","Ci ","Wan ","Jing ","Di ","Qu ","Dong ","Jian ","Zou ","Gu ","La ","Lu ","Ju ","Wei ","Jun ","Nie ","Kun ","He ","Pu ","Zi ","Gao ","Guo ","Fu ","Lun ","Chang ","Chou ","Song ","Chui ","Zhan ","Men ","Cai ","Ba ","Li ","Tu ","Bo ","Han ","Bao ","Qin ","Juan ","Xi ","Qin ","Di ","Jie ","Pu ","Dang ","Jin ","Zhao ","Tai ","Geng ","Hua ","Gu ","Ling ","Fei ","Jin ","An ","Wang ","Beng ","Zhou ","Yan ","Ju ","Jian ","Lin ","Tan ","Shu ","Tian ","Dao "]});var U5=y((zze,X5)=>{X5.exports=["Hu ","Qi ","He ","Cui ","Tao ","Chun ","Bei ","Chang ","Huan ","Fei ","Lai ","Qi ","Meng ","Ping ","Wei ","Dan ","Sha ","Huan ","Yan ","Yi ","Tiao ","Qi ","Wan ","Ce ","Nai ","Kutabireru ","Tuo ","Jiu ","Tie ","Luo ","[?] ","[?] ","Meng ","[?] ","Yaji ","[?] ","Ying ","Ying ","Ying ","Xiao ","Sa ","Qiu ","Ke ","Xiang ","Wan ","Yu ","Yu ","Fu ","Lian ","Xuan ","Yuan ","Nan ","Ze ","Wo ","Chun ","Xiao ","Yu ","Pian ","Mao ","An ","E ","Luo ","Ying ","Huo ","Gua ","Jiang ","Mian ","Zuo ","Zuo ","Ju ","Bao ","Rou ","Xi ","Xie ","An ","Qu ","Jian ","Fu ","Lu ","Jing ","Pen ","Feng ","Hong ","Hong ","Hou ","Yan ","Tu ","Zhu ","Zi ","Xiang ","Shen ","Ge ","Jie ","Jing ","Mi ","Huang ","Shen ","Pu ","Gai ","Dong ","Zhou ","Qian ","Wei ","Bo ","Wei ","Pa ","Ji ","Hu ","Zang ","Jia ","Duan ","Yao ","Jun ","Cong ","Quan ","Wei ","Xian ","Kui ","Ting ","Hun ","Xi ","Shi ","Qi ","Lan ","Zong ","Yao ","Yuan ","Mei ","Yun ","Shu ","Di ","Zhuan ","Guan ","Sukumo ","Xue ","Chan ","Kai ","Kui ","[?] ","Jiang ","Lou ","Wei ","Pai ","[?] ","Sou ","Yin ","Shi ","Chun ","Shi ","Yun ","Zhen ","Lang ","Nu ","Meng ","He ","Que ","Suan ","Yuan ","Li ","Ju ","Xi ","Pang ","Chu ","Xu ","Tu ","Liu ","Wo ","Zhen ","Qian ","Zu ","Po ","Cuo ","Yuan ","Chu ","Yu ","Kuai ","Pan ","Pu ","Pu ","Na ","Shuo ","Xi ","Fen ","Yun ","Zheng ","Jian ","Ji ","Ruo ","Cang ","En ","Mi ","Hao ","Sun ","Zhen ","Ming ","Sou ","Xu ","Liu ","Xi ","Gu ","Lang ","Rong ","Weng ","Gai ","Cuo ","Shi ","Tang ","Luo ","Ru ","Suo ","Xian ","Bei ","Yao ","Gui ","Bi ","Zong ","Gun ","Za ","Xiu ","Ce ","Hai ","Lan ","[?] ","Ji ","Li ","Can ","Lang ","Yu ","[?] ","Ying ","Mo ","Diao ","Tiao ","Mao ","Tong ","Zhu ","Peng ","An ","Lian ","Cong ","Xi ","Ping ","Qiu ","Jin ","Chun ","Jie ","Wei ","Tui ","Cao ","Yu ","Yi ","Ji ","Liao ","Bi ","Lu ","Su "]});var K5=y((Vze,G5)=>{G5.exports=["Bu ","Zhang ","Luo ","Jiang ","Man ","Yan ","Ling ","Ji ","Piao ","Gun ","Han ","Di ","Su ","Lu ","She ","Shang ","Di ","Mie ","Xun ","Man ","Bo ","Di ","Cuo ","Zhe ","Sen ","Xuan ","Wei ","Hu ","Ao ","Mi ","Lou ","Cu ","Zhong ","Cai ","Po ","Jiang ","Mi ","Cong ","Niao ","Hui ","Jun ","Yin ","Jian ","Yan ","Shu ","Yin ","Kui ","Chen ","Hu ","Sha ","Kou ","Qian ","Ma ","Zang ","Sonoko ","Qiang ","Dou ","Lian ","Lin ","Kou ","Ai ","Bi ","Li ","Wei ","Ji ","Xun ","Sheng ","Fan ","Meng ","Ou ","Chan ","Dian ","Xun ","Jiao ","Rui ","Rui ","Lei ","Yu ","Qiao ","Chu ","Hua ","Jian ","Mai ","Yun ","Bao ","You ","Qu ","Lu ","Rao ","Hui ","E ","Teng ","Fei ","Jue ","Zui ","Fa ","Ru ","Fen ","Kui ","Shun ","Rui ","Ya ","Xu ","Fu ","Jue ","Dang ","Wu ","Tong ","Si ","Xiao ","Xi ","Long ","Yun ","[?] ","Qi ","Jian ","Yun ","Sun ","Ling ","Yu ","Xia ","Yong ","Ji ","Hong ","Si ","Nong ","Lei ","Xuan ","Yun ","Yu ","Xi ","Hao ","Bo ","Hao ","Ai ","Wei ","Hui ","Wei ","Ji ","Ci ","Xiang ","Luan ","Mie ","Yi ","Leng ","Jiang ","Can ","Shen ","Qiang ","Lian ","Ke ","Yuan ","Da ","Ti ","Tang ","Xie ","Bi ","Zhan ","Sun ","Lian ","Fan ","Ding ","Jie ","Gu ","Xie ","Shu ","Jian ","Kao ","Hong ","Sa ","Xin ","Xun ","Yao ","Hie ","Sou ","Shu ","Xun ","Dui ","Pin ","Wei ","Neng ","Chou ","Mai ","Ru ","Piao ","Tai ","Qi ","Zao ","Chen ","Zhen ","Er ","Ni ","Ying ","Gao ","Cong ","Xiao ","Qi ","Fa ","Jian ","Xu ","Kui ","Jie ","Bian ","Diao ","Mi ","Lan ","Jin ","Cang ","Miao ","Qiong ","Qie ","Xian ","[?] ","Ou ","Xian ","Su ","Lu ","Yi ","Xu ","Xie ","Li ","Yi ","La ","Lei ","Xiao ","Di ","Zhi ","Bei ","Teng ","Yao ","Mo ","Huan ","Piao ","Fan ","Sou ","Tan ","Tui ","Qiong ","Qiao ","Wei ","Liu ","Hui ","[?] ","Gao ","Yun ","[?] ","Li ","Shu ","Chu ","Ai ","Lin ","Zao ","Xuan ","Chen ","Lai ","Huo "]});var z5=y((e7e,Q5)=>{Q5.exports=["Tuo ","Wu ","Rui ","Rui ","Qi ","Heng ","Lu ","Su ","Tui ","Mang ","Yun ","Pin ","Yu ","Xun ","Ji ","Jiong ","Xian ","Mo ","Hagi ","Su ","Jiong ","[?] ","Nie ","Bo ","Rang ","Yi ","Xian ","Yu ","Ju ","Lian ","Lian ","Yin ","Qiang ","Ying ","Long ","Tong ","Wei ","Yue ","Ling ","Qu ","Yao ","Fan ","Mi ","Lan ","Kui ","Lan ","Ji ","Dang ","Katsura ","Lei ","Lei ","Hua ","Feng ","Zhi ","Wei ","Kui ","Zhan ","Huai ","Li ","Ji ","Mi ","Lei ","Huai ","Luo ","Ji ","Kui ","Lu ","Jian ","San ","[?] ","Lei ","Quan ","Xiao ","Yi ","Luan ","Men ","Bie ","Hu ","Hu ","Lu ","Nue ","Lu ","Si ","Xiao ","Qian ","Chu ","Hu ","Xu ","Cuo ","Fu ","Xu ","Xu ","Lu ","Hu ","Yu ","Hao ","Jiao ","Ju ","Guo ","Bao ","Yan ","Zhan ","Zhan ","Kui ","Ban ","Xi ","Shu ","Chong ","Qiu ","Diao ","Ji ","Qiu ","Cheng ","Shi ","[?] ","Di ","Zhe ","She ","Yu ","Gan ","Zi ","Hong ","Hui ","Meng ","Ge ","Sui ","Xia ","Chai ","Shi ","Yi ","Ma ","Xiang ","Fang ","E ","Pa ","Chi ","Qian ","Wen ","Wen ","Rui ","Bang ","Bi ","Yue ","Yue ","Jun ","Qi ","Ran ","Yin ","Qi ","Tian ","Yuan ","Jue ","Hui ","Qin ","Qi ","Zhong ","Ya ","Ci ","Mu ","Wang ","Fen ","Fen ","Hang ","Gong ","Zao ","Fu ","Ran ","Jie ","Fu ","Chi ","Dou ","Piao ","Xian ","Ni ","Te ","Qiu ","You ","Zha ","Ping ","Chi ","You ","He ","Han ","Ju ","Li ","Fu ","Ran ","Zha ","Gou ","Pi ","Bo ","Xian ","Zhu ","Diao ","Bie ","Bing ","Gu ","Ran ","Qu ","She ","Tie ","Ling ","Gu ","Dan ","Gu ","Ying ","Li ","Cheng ","Qu ","Mou ","Ge ","Ci ","Hui ","Hui ","Mang ","Fu ","Yang ","Wa ","Lie ","Zhu ","Yi ","Xian ","Kuo ","Jiao ","Li ","Yi ","Ping ","Ji ","Ha ","She ","Yi ","Wang ","Mo ","Qiong ","Qie ","Gui ","Gong ","Zhi ","Man ","Ebi ","Zhi ","Jia ","Rao ","Si ","Qi ","Xing ","Lie ","Qiu ","Shao ","Yong ","Jia ","Shui ","Che ","Bai ","E ","Han "]});var e9=y((t7e,V5)=>{V5.exports=["Shu ","Xuan ","Feng ","Shen ","Zhen ","Fu ","Xian ","Zhe ","Wu ","Fu ","Li ","Lang ","Bi ","Chu ","Yuan ","You ","Jie ","Dan ","Yan ","Ting ","Dian ","Shui ","Hui ","Gua ","Zhi ","Song ","Fei ","Ju ","Mi ","Qi ","Qi ","Yu ","Jun ","Zha ","Meng ","Qiang ","Si ","Xi ","Lun ","Li ","Die ","Tiao ","Tao ","Kun ","Gan ","Han ","Yu ","Bang ","Fei ","Pi ","Wei ","Dun ","Yi ","Yuan ","Su ","Quan ","Qian ","Rui ","Ni ","Qing ","Wei ","Liang ","Guo ","Wan ","Dong ","E ","Ban ","Di ","Wang ","Can ","Yang ","Ying ","Guo ","Chan ","[?] ","La ","Ke ","Ji ","He ","Ting ","Mai ","Xu ","Mian ","Yu ","Jie ","Shi ","Xuan ","Huang ","Yan ","Bian ","Rou ","Wei ","Fu ","Yuan ","Mei ","Wei ","Fu ","Ruan ","Xie ","You ","Qiu ","Mao ","Xia ","Ying ","Shi ","Chong ","Tang ","Zhu ","Zong ","Ti ","Fu ","Yuan ","Hui ","Meng ","La ","Du ","Hu ","Qiu ","Die ","Li ","Gua ","Yun ","Ju ","Nan ","Lou ","Qun ","Rong ","Ying ","Jiang ","[?] ","Lang ","Pang ","Si ","Xi ","Ci ","Xi ","Yuan ","Weng ","Lian ","Sou ","Ban ","Rong ","Rong ","Ji ","Wu ","Qiu ","Han ","Qin ","Yi ","Bi ","Hua ","Tang ","Yi ","Du ","Nai ","He ","Hu ","Hui ","Ma ","Ming ","Yi ","Wen ","Ying ","Teng ","Yu ","Cang ","So ","Ebi ","Man ","[?] ","Shang ","Zhe ","Cao ","Chi ","Di ","Ao ","Lu ","Wei ","Zhi ","Tang ","Chen ","Piao ","Qu ","Pi ","Yu ","Jian ","Luo ","Lou ","Qin ","Zhong ","Yin ","Jiang ","Shuai ","Wen ","Jiao ","Wan ","Zhi ","Zhe ","Ma ","Ma ","Guo ","Liu ","Mao ","Xi ","Cong ","Li ","Man ","Xiao ","Kamakiri ","Zhang ","Mang ","Xiang ","Mo ","Zui ","Si ","Qiu ","Te ","Zhi ","Peng ","Peng ","Jiao ","Qu ","Bie ","Liao ","Pan ","Gui ","Xi ","Ji ","Zhuan ","Huang ","Fei ","Lao ","Jue ","Jue ","Hui ","Yin ","Chan ","Jiao ","Shan ","Rao ","Xiao ","Mou ","Chong ","Xun ","Si ","[?] ","Cheng ","Dang ","Li ","Xie ","Shan ","Yi ","Jing ","Da ","Chan ","Qi "]});var i9=y((i7e,t9)=>{t9.exports=["Ci ","Xiang ","She ","Luo ","Qin ","Ying ","Chai ","Li ","Ze ","Xuan ","Lian ","Zhu ","Ze ","Xie ","Mang ","Xie ","Qi ","Rong ","Jian ","Meng ","Hao ","Ruan ","Huo ","Zhuo ","Jie ","Bin ","He ","Mie ","Fan ","Lei ","Jie ","La ","Mi ","Li ","Chun ","Li ","Qiu ","Nie ","Lu ","Du ","Xiao ","Zhu ","Long ","Li ","Long ","Feng ","Ye ","Beng ","Shang ","Gu ","Juan ","Ying ","[?] ","Xi ","Can ","Qu ","Quan ","Du ","Can ","Man ","Jue ","Jie ","Zhu ","Zha ","Xie ","Huang ","Niu ","Pei ","Nu ","Xin ","Zhong ","Mo ","Er ","Ke ","Mie ","Xi ","Xing ","Yan ","Kan ","Yuan ","[?] ","Ling ","Xuan ","Shu ","Xian ","Tong ","Long ","Jie ","Xian ","Ya ","Hu ","Wei ","Dao ","Chong ","Wei ","Dao ","Zhun ","Heng ","Qu ","Yi ","Yi ","Bu ","Gan ","Yu ","Biao ","Cha ","Yi ","Shan ","Chen ","Fu ","Gun ","Fen ","Shuai ","Jie ","Na ","Zhong ","Dan ","Ri ","Zhong ","Zhong ","Xie ","Qi ","Xie ","Ran ","Zhi ","Ren ","Qin ","Jin ","Jun ","Yuan ","Mei ","Chai ","Ao ","Niao ","Hui ","Ran ","Jia ","Tuo ","Ling ","Dai ","Bao ","Pao ","Yao ","Zuo ","Bi ","Shao ","Tan ","Ju ","He ","Shu ","Xiu ","Zhen ","Yi ","Pa ","Bo ","Di ","Wa ","Fu ","Gun ","Zhi ","Zhi ","Ran ","Pan ","Yi ","Mao ","Tuo ","Na ","Kou ","Xian ","Chan ","Qu ","Bei ","Gun ","Xi ","Ne ","Bo ","Horo ","Fu ","Yi ","Chi ","Ku ","Ren ","Jiang ","Jia ","Cun ","Mo ","Jie ","Er ","Luo ","Ru ","Zhu ","Gui ","Yin ","Cai ","Lie ","Kamishimo ","Yuki ","Zhuang ","Dang ","[?] ","Kun ","Ken ","Niao ","Shu ","Jia ","Kun ","Cheng ","Li ","Juan ","Shen ","Pou ","Ge ","Yi ","Yu ","Zhen ","Liu ","Qiu ","Qun ","Ji ","Yi ","Bu ","Zhuang ","Shui ","Sha ","Qun ","Li ","Lian ","Lian ","Ku ","Jian ","Fou ","Chan ","Bi ","Gun ","Tao ","Yuan ","Ling ","Chi ","Chang ","Chou ","Duo ","Biao ","Liang ","Chang ","Pei ","Pei ","Fei ","Yuan ","Luo ","Guo ","Yan ","Du ","Xi ","Zhi ","Ju ","Qi "]});var r9=y((n7e,n9)=>{n9.exports=["Ji ","Zhi ","Gua ","Ken ","Che ","Ti ","Ti ","Fu ","Chong ","Xie ","Bian ","Die ","Kun ","Duan ","Xiu ","Xiu ","He ","Yuan ","Bao ","Bao ","Fu ","Yu ","Tuan ","Yan ","Hui ","Bei ","Chu ","Lu ","Ena ","Hitoe ","Yun ","Da ","Gou ","Da ","Huai ","Rong ","Yuan ","Ru ","Nai ","Jiong ","Suo ","Ban ","Tun ","Chi ","Sang ","Niao ","Ying ","Jie ","Qian ","Huai ","Ku ","Lian ","Bao ","Li ","Zhe ","Shi ","Lu ","Yi ","Die ","Xie ","Xian ","Wei ","Biao ","Cao ","Ji ","Jiang ","Sen ","Bao ","Xiang ","Chihaya ","Pu ","Jian ","Zhuan ","Jian ","Zui ","Ji ","Dan ","Za ","Fan ","Bo ","Xiang ","Xin ","Bie ","Rao ","Man ","Lan ","Ao ","Duo ","Gui ","Cao ","Sui ","Nong ","Chan ","Lian ","Bi ","Jin ","Dang ","Shu ","Tan ","Bi ","Lan ","Pu ","Ru ","Zhi ","[?] ","Shu ","Wa ","Shi ","Bai ","Xie ","Bo ","Chen ","Lai ","Long ","Xi ","Xian ","Lan ","Zhe ","Dai ","Tasuki ","Zan ","Shi ","Jian ","Pan ","Yi ","Ran ","Ya ","Xi ","Xi ","Yao ","Feng ","Tan ","[?] ","Biao ","Fu ","Ba ","He ","Ji ","Ji ","Jian ","Guan ","Bian ","Yan ","Gui ","Jue ","Pian ","Mao ","Mi ","Mi ","Mie ","Shi ","Si ","Zhan ","Luo ","Jue ","Mi ","Tiao ","Lian ","Yao ","Zhi ","Jun ","Xi ","Shan ","Wei ","Xi ","Tian ","Yu ","Lan ","E ","Du ","Qin ","Pang ","Ji ","Ming ","Ying ","Gou ","Qu ","Zhan ","Jin ","Guan ","Deng ","Jian ","Luo ","Qu ","Jian ","Wei ","Jue ","Qu ","Luo ","Lan ","Shen ","Di ","Guan ","Jian ","Guan ","Yan ","Gui ","Mi ","Shi ","Zhan ","Lan ","Jue ","Ji ","Xi ","Di ","Tian ","Yu ","Gou ","Jin ","Qu ","Jiao ","Jiu ","Jin ","Cu ","Jue ","Zhi ","Chao ","Ji ","Gu ","Dan ","Zui ","Di ","Shang ","Hua ","Quan ","Ge ","Chi ","Jie ","Gui ","Gong ","Hong ","Jie ","Hun ","Qiu ","Xing ","Su ","Ni ","Ji ","Lu ","Zhi ","Zha ","Bi ","Xing ","Hu ","Shang ","Gong ","Zhi ","Xue ","Chu ","Xi ","Yi ","Lu ","Jue ","Xi ","Yan ","Xi "]});var s9=y((r7e,o9)=>{o9.exports=["Yan ","Yan ","Ding ","Fu ","Qiu ","Qiu ","Jiao ","Hong ","Ji ","Fan ","Xun ","Diao ","Hong ","Cha ","Tao ","Xu ","Jie ","Yi ","Ren ","Xun ","Yin ","Shan ","Qi ","Tuo ","Ji ","Xun ","Yin ","E ","Fen ","Ya ","Yao ","Song ","Shen ","Yin ","Xin ","Jue ","Xiao ","Ne ","Chen ","You ","Zhi ","Xiong ","Fang ","Xin ","Chao ","She ","Xian ","Sha ","Tun ","Xu ","Yi ","Yi ","Su ","Chi ","He ","Shen ","He ","Xu ","Zhen ","Zhu ","Zheng ","Gou ","Zi ","Zi ","Zhan ","Gu ","Fu ","Quan ","Die ","Ling ","Di ","Yang ","Li ","Nao ","Pan ","Zhou ","Gan ","Yi ","Ju ","Ao ","Zha ","Tuo ","Yi ","Qu ","Zhao ","Ping ","Bi ","Xiong ","Qu ","Ba ","Da ","Zu ","Tao ","Zhu ","Ci ","Zhe ","Yong ","Xu ","Xun ","Yi ","Huang ","He ","Shi ","Cha ","Jiao ","Shi ","Hen ","Cha ","Gou ","Gui ","Quan ","Hui ","Jie ","Hua ","Gai ","Xiang ","Wei ","Shen ","Chou ","Tong ","Mi ","Zhan ","Ming ","E ","Hui ","Yan ","Xiong ","Gua ","Er ","Beng ","Tiao ","Chi ","Lei ","Zhu ","Kuang ","Kua ","Wu ","Yu ","Teng ","Ji ","Zhi ","Ren ","Su ","Lang ","E ","Kuang ","E ","Shi ","Ting ","Dan ","Bo ","Chan ","You ","Heng ","Qiao ","Qin ","Shua ","An ","Yu ","Xiao ","Cheng ","Jie ","Xian ","Wu ","Wu ","Gao ","Song ","Pu ","Hui ","Jing ","Shuo ","Zhen ","Shuo ","Du ","Yasashi ","Chang ","Shui ","Jie ","Ke ","Qu ","Cong ","Xiao ","Sui ","Wang ","Xuan ","Fei ","Chi ","Ta ","Yi ","Na ","Yin ","Diao ","Pi ","Chuo ","Chan ","Chen ","Zhun ","Ji ","Qi ","Tan ","Zhui ","Wei ","Ju ","Qing ","Jian ","Zheng ","Ze ","Zou ","Qian ","Zhuo ","Liang ","Jian ","Zhu ","Hao ","Lun ","Shen ","Biao ","Huai ","Pian ","Yu ","Die ","Xu ","Pian ","Shi ","Xuan ","Shi ","Hun ","Hua ","E ","Zhong ","Di ","Xie ","Fu ","Pu ","Ting ","Jian ","Qi ","Yu ","Zi ","Chuan ","Xi ","Hui ","Yin ","An ","Xian ","Nan ","Chen ","Feng ","Zhu ","Yang ","Yan ","Heng ","Xuan ","Ge ","Nuo ","Qi "]});var l9=y((o7e,a9)=>{a9.exports=["Mou ","Ye ","Wei ","[?] ","Teng ","Zou ","Shan ","Jian ","Bo ","Ku ","Huang ","Huo ","Ge ","Ying ","Mi ","Xiao ","Mi ","Xi ","Qiang ","Chen ","Nue ","Ti ","Su ","Bang ","Chi ","Qian ","Shi ","Jiang ","Yuan ","Xie ","Xue ","Tao ","Yao ","Yao ","[?] ","Yu ","Biao ","Cong ","Qing ","Li ","Mo ","Mo ","Shang ","Zhe ","Miu ","Jian ","Ze ","Jie ","Lian ","Lou ","Can ","Ou ","Guan ","Xi ","Zhuo ","Ao ","Ao ","Jin ","Zhe ","Yi ","Hu ","Jiang ","Man ","Chao ","Han ","Hua ","Chan ","Xu ","Zeng ","Se ","Xi ","She ","Dui ","Zheng ","Nao ","Lan ","E ","Ying ","Jue ","Ji ","Zun ","Jiao ","Bo ","Hui ","Zhuan ","Mu ","Zen ","Zha ","Shi ","Qiao ","Tan ","Zen ","Pu ","Sheng ","Xuan ","Zao ","Tan ","Dang ","Sui ","Qian ","Ji ","Jiao ","Jing ","Lian ","Nou ","Yi ","Ai ","Zhan ","Pi ","Hui ","Hua ","Yi ","Yi ","Shan ","Rang ","Nou ","Qian ","Zhui ","Ta ","Hu ","Zhou ","Hao ","Ye ","Ying ","Jian ","Yu ","Jian ","Hui ","Du ","Zhe ","Xuan ","Zan ","Lei ","Shen ","Wei ","Chan ","Li ","Yi ","Bian ","Zhe ","Yan ","E ","Chou ","Wei ","Chou ","Yao ","Chan ","Rang ","Yin ","Lan ","Chen ","Huo ","Zhe ","Huan ","Zan ","Yi ","Dang ","Zhan ","Yan ","Du ","Yan ","Ji ","Ding ","Fu ","Ren ","Ji ","Jie ","Hong ","Tao ","Rang ","Shan ","Qi ","Tuo ","Xun ","Yi ","Xun ","Ji ","Ren ","Jiang ","Hui ","Ou ","Ju ","Ya ","Ne ","Xu ","E ","Lun ","Xiong ","Song ","Feng ","She ","Fang ","Jue ","Zheng ","Gu ","He ","Ping ","Zu ","Shi ","Xiong ","Zha ","Su ","Zhen ","Di ","Zou ","Ci ","Qu ","Zhao ","Bi ","Yi ","Yi ","Kuang ","Lei ","Shi ","Gua ","Shi ","Jie ","Hui ","Cheng ","Zhu ","Shen ","Hua ","Dan ","Gou ","Quan ","Gui ","Xun ","Yi ","Zheng ","Gai ","Xiang ","Cha ","Hun ","Xu ","Zhou ","Jie ","Wu ","Yu ","Qiao ","Wu ","Gao ","You ","Hui ","Kuang ","Shuo ","Song ","Ai ","Qing ","Zhu ","Zou ","Nuo ","Du ","Zhuo ","Fei ","Ke ","Wei "]});var c9=y((s7e,u9)=>{u9.exports=["Yu ","Shui ","Shen ","Diao ","Chan ","Liang ","Zhun ","Sui ","Tan ","Shen ","Yi ","Mou ","Chen ","Die ","Huang ","Jian ","Xie ","Nue ","Ye ","Wei ","E ","Yu ","Xuan ","Chan ","Zi ","An ","Yan ","Di ","Mi ","Pian ","Xu ","Mo ","Dang ","Su ","Xie ","Yao ","Bang ","Shi ","Qian ","Mi ","Jin ","Man ","Zhe ","Jian ","Miu ","Tan ","Zen ","Qiao ","Lan ","Pu ","Jue ","Yan ","Qian ","Zhan ","Chen ","Gu ","Qian ","Hong ","Xia ","Jue ","Hong ","Han ","Hong ","Xi ","Xi ","Huo ","Liao ","Han ","Du ","Long ","Dou ","Jiang ","Qi ","Shi ","Li ","Deng ","Wan ","Bi ","Shu ","Xian ","Feng ","Zhi ","Zhi ","Yan ","Yan ","Shi ","Chu ","Hui ","Tun ","Yi ","Tun ","Yi ","Jian ","Ba ","Hou ","E ","Cu ","Xiang ","Huan ","Jian ","Ken ","Gai ","Qu ","Fu ","Xi ","Bin ","Hao ","Yu ","Zhu ","Jia ","[?] ","Xi ","Bo ","Wen ","Huan ","Bin ","Di ","Zong ","Fen ","Yi ","Zhi ","Bao ","Chai ","Han ","Pi ","Na ","Pi ","Gou ","Na ","You ","Diao ","Mo ","Si ","Xiu ","Huan ","Kun ","He ","He ","Mo ","Han ","Mao ","Li ","Ni ","Bi ","Yu ","Jia ","Tuan ","Mao ","Pi ","Xi ","E ","Ju ","Mo ","Chu ","Tan ","Huan ","Jue ","Bei ","Zhen ","Yuan ","Fu ","Cai ","Gong ","Te ","Yi ","Hang ","Wan ","Pin ","Huo ","Fan ","Tan ","Guan ","Ze ","Zhi ","Er ","Zhu ","Shi ","Bi ","Zi ","Er ","Gui ","Pian ","Bian ","Mai ","Dai ","Sheng ","Kuang ","Fei ","Tie ","Yi ","Chi ","Mao ","He ","Bi ","Lu ","Ren ","Hui ","Gai ","Pian ","Zi ","Jia ","Xu ","Zei ","Jiao ","Gai ","Zang ","Jian ","Ying ","Xun ","Zhen ","She ","Bin ","Bin ","Qiu ","She ","Chuan ","Zang ","Zhou ","Lai ","Zan ","Si ","Chen ","Shang ","Tian ","Pei ","Geng ","Xian ","Mai ","Jian ","Sui ","Fu ","Tan ","Cong ","Cong ","Zhi ","Ji ","Zhang ","Du ","Jin ","Xiong ","Shun ","Yun ","Bao ","Zai ","Lai ","Feng ","Cang ","Ji ","Sheng ","Ai ","Zhuan ","Fu ","Gou ","Sai ","Ze ","Liao "]});var d9=y((a7e,h9)=>{h9.exports=["Wei ","Bai ","Chen ","Zhuan ","Zhi ","Zhui ","Biao ","Yun ","Zeng ","Tan ","Zan ","Yan ","[?] ","Shan ","Wan ","Ying ","Jin ","Gan ","Xian ","Zang ","Bi ","Du ","Shu ","Yan ","[?] ","Xuan ","Long ","Gan ","Zang ","Bei ","Zhen ","Fu ","Yuan ","Gong ","Cai ","Ze ","Xian ","Bai ","Zhang ","Huo ","Zhi ","Fan ","Tan ","Pin ","Bian ","Gou ","Zhu ","Guan ","Er ","Jian ","Bi ","Shi ","Tie ","Gui ","Kuang ","Dai ","Mao ","Fei ","He ","Yi ","Zei ","Zhi ","Jia ","Hui ","Zi ","Ren ","Lu ","Zang ","Zi ","Gai ","Jin ","Qiu ","Zhen ","Lai ","She ","Fu ","Du ","Ji ","Shu ","Shang ","Si ","Bi ","Zhou ","Geng ","Pei ","Tan ","Lai ","Feng ","Zhui ","Fu ","Zhuan ","Sai ","Ze ","Yan ","Zan ","Yun ","Zeng ","Shan ","Ying ","Gan ","Chi ","Xi ","She ","Nan ","Xiong ","Xi ","Cheng ","He ","Cheng ","Zhe ","Xia ","Tang ","Zou ","Zou ","Li ","Jiu ","Fu ","Zhao ","Gan ","Qi ","Shan ","Qiong ","Qin ","Xian ","Ci ","Jue ","Qin ","Chi ","Ci ","Chen ","Chen ","Die ","Ju ","Chao ","Di ","Se ","Zhan ","Zhu ","Yue ","Qu ","Jie ","Chi ","Chu ","Gua ","Xue ","Ci ","Tiao ","Duo ","Lie ","Gan ","Suo ","Cu ","Xi ","Zhao ","Su ","Yin ","Ju ","Jian ","Que ","Tang ","Chuo ","Cui ","Lu ","Qu ","Dang ","Qiu ","Zi ","Ti ","Qu ","Chi ","Huang ","Qiao ","Qiao ","Yao ","Zao ","Ti ","[?] ","Zan ","Zan ","Zu ","Pa ","Bao ","Ku ","Ke ","Dun ","Jue ","Fu ","Chen ","Jian ","Fang ","Zhi ","Sa ","Yue ","Pa ","Qi ","Yue ","Qiang ","Tuo ","Tai ","Yi ","Nian ","Ling ","Mei ","Ba ","Die ","Ku ","Tuo ","Jia ","Ci ","Pao ","Qia ","Zhu ","Ju ","Die ","Zhi ","Fu ","Pan ","Ju ","Shan ","Bo ","Ni ","Ju ","Li ","Gen ","Yi ","Ji ","Dai ","Xian ","Jiao ","Duo ","Zhu ","Zhuan ","Kua ","Zhuai ","Gui ","Qiong ","Kui ","Xiang ","Chi ","Lu ","Beng ","Zhi ","Jia ","Tiao ","Cai ","Jian ","Ta ","Qiao ","Bi ","Xian ","Duo ","Ji ","Ju ","Ji ","Shu ","Tu "]});var p9=y((l7e,g9)=>{g9.exports=["Chu ","Jing ","Nie ","Xiao ","Bo ","Chi ","Qun ","Mou ","Shu ","Lang ","Yong ","Jiao ","Chou ","Qiao ","[?] ","Ta ","Jian ","Qi ","Wo ","Wei ","Zhuo ","Jie ","Ji ","Nie ","Ju ","Ju ","Lun ","Lu ","Leng ","Huai ","Ju ","Chi ","Wan ","Quan ","Ti ","Bo ","Zu ","Qie ","Ji ","Cu ","Zong ","Cai ","Zong ","Peng ","Zhi ","Zheng ","Dian ","Zhi ","Yu ","Duo ","Dun ","Chun ","Yong ","Zhong ","Di ","Zhe ","Chen ","Chuai ","Jian ","Gua ","Tang ","Ju ","Fu ","Zu ","Die ","Pian ","Rou ","Nuo ","Ti ","Cha ","Tui ","Jian ","Dao ","Cuo ","Xi ","Ta ","Qiang ","Zhan ","Dian ","Ti ","Ji ","Nie ","Man ","Liu ","Zhan ","Bi ","Chong ","Lu ","Liao ","Cu ","Tang ","Dai ","Suo ","Xi ","Kui ","Ji ","Zhi ","Qiang ","Di ","Man ","Zong ","Lian ","Beng ","Zao ","Nian ","Bie ","Tui ","Ju ","Deng ","Ceng ","Xian ","Fan ","Chu ","Zhong ","Dun ","Bo ","Cu ","Zu ","Jue ","Jue ","Lin ","Ta ","Qiao ","Qiao ","Pu ","Liao ","Dun ","Cuan ","Kuang ","Zao ","Ta ","Bi ","Bi ","Zhu ","Ju ","Chu ","Qiao ","Dun ","Chou ","Ji ","Wu ","Yue ","Nian ","Lin ","Lie ","Zhi ","Li ","Zhi ","Chan ","Chu ","Duan ","Wei ","Long ","Lin ","Xian ","Wei ","Zuan ","Lan ","Xie ","Rang ","Xie ","Nie ","Ta ","Qu ","Jie ","Cuan ","Zuan ","Xi ","Kui ","Jue ","Lin ","Shen ","Gong ","Dan ","Segare ","Qu ","Ti ","Duo ","Duo ","Gong ","Lang ","Nerau ","Luo ","Ai ","Ji ","Ju ","Tang ","Utsuke ","[?] ","Yan ","Shitsuke ","Kang ","Qu ","Lou ","Lao ","Tuo ","Zhi ","Yagate ","Ti ","Dao ","Yagate ","Yu ","Che ","Ya ","Gui ","Jun ","Wei ","Yue ","Xin ","Di ","Xuan ","Fan ","Ren ","Shan ","Qiang ","Shu ","Tun ","Chen ","Dai ","E ","Na ","Qi ","Mao ","Ruan ","Ren ","Fan ","Zhuan ","Hong ","Hu ","Qu ","Huang ","Di ","Ling ","Dai ","Ao ","Zhen ","Fan ","Kuang ","Ang ","Peng ","Bei ","Gu ","Ku ","Pao ","Zhu ","Rong ","E ","Ba ","Zhou ","Zhi ","Yao ","Ke ","Yi ","Qing ","Shi ","Ping "]});var m9=y((u7e,f9)=>{f9.exports=["Er ","Qiong ","Ju ","Jiao ","Guang ","Lu ","Kai ","Quan ","Zhou ","Zai ","Zhi ","She ","Liang ","Yu ","Shao ","You ","Huan ","Yun ","Zhe ","Wan ","Fu ","Qing ","Zhou ","Ni ","Ling ","Zhe ","Zhan ","Liang ","Zi ","Hui ","Wang ","Chuo ","Guo ","Kan ","Yi ","Peng ","Qian ","Gun ","Nian ","Pian ","Guan ","Bei ","Lun ","Pai ","Liang ","Ruan ","Rou ","Ji ","Yang ","Xian ","Chuan ","Cou ","Qun ","Ge ","You ","Hong ","Shu ","Fu ","Zi ","Fu ","Wen ","Ben ","Zhan ","Yu ","Wen ","Tao ","Gu ","Zhen ","Xia ","Yuan ","Lu ","Jiu ","Chao ","Zhuan ","Wei ","Hun ","Sori ","Che ","Jiao ","Zhan ","Pu ","Lao ","Fen ","Fan ","Lin ","Ge ","Se ","Kan ","Huan ","Yi ","Ji ","Dui ","Er ","Yu ","Xian ","Hong ","Lei ","Pei ","Li ","Li ","Lu ","Lin ","Che ","Ya ","Gui ","Xuan ","Di ","Ren ","Zhuan ","E ","Lun ","Ruan ","Hong ","Ku ","Ke ","Lu ","Zhou ","Zhi ","Yi ","Hu ","Zhen ","Li ","Yao ","Qing ","Shi ","Zai ","Zhi ","Jiao ","Zhou ","Quan ","Lu ","Jiao ","Zhe ","Fu ","Liang ","Nian ","Bei ","Hui ","Gun ","Wang ","Liang ","Chuo ","Zi ","Cou ","Fu ","Ji ","Wen ","Shu ","Pei ","Yuan ","Xia ","Zhan ","Lu ","Che ","Lin ","Xin ","Gu ","Ci ","Ci ","Pi ","Zui ","Bian ","La ","La ","Ci ","Xue ","Ban ","Bian ","Bian ","Bian ","[?] ","Bian ","Ban ","Ci ","Bian ","Bian ","Chen ","Ru ","Nong ","Nong ","Zhen ","Chuo ","Chuo ","Suberu ","Reng ","Bian ","Bian ","Sip ","Ip ","Liao ","Da ","Chan ","Gan ","Qian ","Yu ","Yu ","Qi ","Xun ","Yi ","Guo ","Mai ","Qi ","Za ","Wang ","Jia ","Zhun ","Ying ","Ti ","Yun ","Jin ","Hang ","Ya ","Fan ","Wu ","Da ","E ","Huan ","Zhe ","Totemo ","Jin ","Yuan ","Wei ","Lian ","Chi ","Che ","Ni ","Tiao ","Zhi ","Yi ","Jiong ","Jia ","Chen ","Dai ","Er ","Di ","Po ","Wang ","Die ","Ze ","Tao ","Shu ","Tuo ","Kep ","Jing ","Hui ","Tong ","You ","Mi ","Beng ","Ji ","Nai ","Yi ","Jie ","Zhui ","Lie ","Xun "]});var b9=y((c7e,y9)=>{y9.exports=["Tui ","Song ","Gua ","Tao ","Pang ","Hou ","Ni ","Dun ","Jiong ","Xuan ","Xun ","Bu ","You ","Xiao ","Qiu ","Tou ","Zhu ","Qiu ","Di ","Di ","Tu ","Jing ","Ti ","Dou ","Yi ","Zhe ","Tong ","Guang ","Wu ","Shi ","Cheng ","Su ","Zao ","Qun ","Feng ","Lian ","Suo ","Hui ","Li ","Sako ","Lai ","Ben ","Cuo ","Jue ","Beng ","Huan ","Dai ","Lu ","You ","Zhou ","Jin ","Yu ","Chuo ","Kui ","Wei ","Ti ","Yi ","Da ","Yuan ","Luo ","Bi ","Nuo ","Yu ","Dang ","Sui ","Dun ","Sui ","Yan ","Chuan ","Chi ","Ti ","Yu ","Shi ","Zhen ","You ","Yun ","E ","Bian ","Guo ","E ","Xia ","Huang ","Qiu ","Dao ","Da ","Wei ","Appare ","Yi ","Gou ","Yao ","Chu ","Liu ","Xun ","Ta ","Di ","Chi ","Yuan ","Su ","Ta ","Qian ","[?] ","Yao ","Guan ","Zhang ","Ao ","Shi ","Ce ","Chi ","Su ","Zao ","Zhe ","Dun ","Di ","Lou ","Chi ","Cuo ","Lin ","Zun ","Rao ","Qian ","Xuan ","Yu ","Yi ","Wu ","Liao ","Ju ","Shi ","Bi ","Yao ","Mai ","Xie ","Sui ","Huan ","Zhan ","Teng ","Er ","Miao ","Bian ","Bian ","La ","Li ","Yuan ","Yao ","Luo ","Li ","Yi ","Ting ","Deng ","Qi ","Yong ","Shan ","Han ","Yu ","Mang ","Ru ","Qiong ","[?] ","Kuang ","Fu ","Kang ","Bin ","Fang ","Xing ","Na ","Xin ","Shen ","Bang ","Yuan ","Cun ","Huo ","Xie ","Bang ","Wu ","Ju ","You ","Han ","Tai ","Qiu ","Bi ","Pei ","Bing ","Shao ","Bei ","Wa ","Di ","Zou ","Ye ","Lin ","Kuang ","Gui ","Zhu ","Shi ","Ku ","Yu ","Gai ","Ge ","Xi ","Zhi ","Ji ","Xun ","Hou ","Xing ","Jiao ","Xi ","Gui ","Nuo ","Lang ","Jia ","Kuai ","Zheng ","Otoko ","Yun ","Yan ","Cheng ","Dou ","Chi ","Lu ","Fu ","Wu ","Fu ","Gao ","Hao ","Lang ","Jia ","Geng ","Jun ","Ying ","Bo ","Xi ","Bei ","Li ","Yun ","Bu ","Xiao ","Qi ","Pi ","Qing ","Guo ","Zhou ","Tan ","Zou ","Ping ","Lai ","Ni ","Chen ","You ","Bu ","Xiang ","Dan ","Ju ","Yong ","Qiao ","Yi ","Du ","Yan ","Mei "]});var w9=y((h7e,v9)=>{v9.exports=["Ruo ","Bei ","E ","Yu ","Juan ","Yu ","Yun ","Hou ","Kui ","Xiang ","Xiang ","Sou ","Tang ","Ming ","Xi ","Ru ","Chu ","Zi ","Zou ","Ju ","Wu ","Xiang ","Yun ","Hao ","Yong ","Bi ","Mo ","Chao ","Fu ","Liao ","Yin ","Zhuan ","Hu ","Qiao ","Yan ","Zhang ","Fan ","Qiao ","Xu ","Deng ","Bi ","Xin ","Bi ","Ceng ","Wei ","Zheng ","Mao ","Shan ","Lin ","Po ","Dan ","Meng ","Ye ","Cao ","Kuai ","Feng ","Meng ","Zou ","Kuang ","Lian ","Zan ","Chan ","You ","Qi ","Yan ","Chan ","Zan ","Ling ","Huan ","Xi ","Feng ","Zan ","Li ","You ","Ding ","Qiu ","Zhuo ","Pei ","Zhou ","Yi ","Hang ","Yu ","Jiu ","Yan ","Zui ","Mao ","Dan ","Xu ","Tou ","Zhen ","Fen ","Sakenomoto ","[?] ","Yun ","Tai ","Tian ","Qia ","Tuo ","Zuo ","Han ","Gu ","Su ","Po ","Chou ","Zai ","Ming ","Luo ","Chuo ","Chou ","You ","Tong ","Zhi ","Xian ","Jiang ","Cheng ","Yin ","Tu ","Xiao ","Mei ","Ku ","Suan ","Lei ","Pu ","Zui ","Hai ","Yan ","Xi ","Niang ","Wei ","Lu ","Lan ","Yan ","Tao ","Pei ","Zhan ","Chun ","Tan ","Zui ","Chuo ","Cu ","Kun ","Ti ","Mian ","Du ","Hu ","Xu ","Xing ","Tan ","Jiu ","Chun ","Yun ","Po ","Ke ","Sou ","Mi ","Quan ","Chou ","Cuo ","Yun ","Yong ","Ang ","Zha ","Hai ","Tang ","Jiang ","Piao ","Shan ","Yu ","Li ","Zao ","Lao ","Yi ","Jiang ","Pu ","Jiao ","Xi ","Tan ","Po ","Nong ","Yi ","Li ","Ju ","Jiao ","Yi ","Niang ","Ru ","Xun ","Chou ","Yan ","Ling ","Mi ","Mi ","Niang ","Xin ","Jiao ","Xi ","Mi ","Yan ","Bian ","Cai ","Shi ","You ","Shi ","Shi ","Li ","Zhong ","Ye ","Liang ","Li ","Jin ","Jin ","Qiu ","Yi ","Diao ","Dao ","Zhao ","Ding ","Po ","Qiu ","He ","Fu ","Zhen ","Zhi ","Ba ","Luan ","Fu ","Nai ","Diao ","Shan ","Qiao ","Kou ","Chuan ","Zi ","Fan ","Yu ","Hua ","Han ","Gong ","Qi ","Mang ","Ri ","Di ","Si ","Xi ","Yi ","Chai ","Shi ","Tu ","Xi ","Nu ","Qian ","Ishiyumi ","Jian ","Pi ","Ye ","Yin "]});var C9=y((d7e,D9)=>{D9.exports=["Ba ","Fang ","Chen ","Xing ","Tou ","Yue ","Yan ","Fu ","Pi ","Na ","Xin ","E ","Jue ","Dun ","Gou ","Yin ","Qian ","Ban ","Ji ","Ren ","Chao ","Niu ","Fen ","Yun ","Ji ","Qin ","Pi ","Guo ","Hong ","Yin ","Jun ","Shi ","Yi ","Zhong ","Nie ","Gai ","Ri ","Huo ","Tai ","Kang ","Habaki ","Irori ","Ngaak ","[?] ","Duo ","Zi ","Ni ","Tu ","Shi ","Min ","Gu ","E ","Ling ","Bing ","Yi ","Gu ","Ba ","Pi ","Yu ","Si ","Zuo ","Bu ","You ","Dian ","Jia ","Zhen ","Shi ","Shi ","Tie ","Ju ","Zhan ","Shi ","She ","Xuan ","Zhao ","Bao ","He ","Bi ","Sheng ","Chu ","Shi ","Bo ","Zhu ","Chi ","Za ","Po ","Tong ","Qian ","Fu ","Zhai ","Liu ","Qian ","Fu ","Li ","Yue ","Pi ","Yang ","Ban ","Bo ","Jie ","Gou ","Shu ","Zheng ","Mu ","Ni ","Nie ","Di ","Jia ","Mu ","Dan ","Shen ","Yi ","Si ","Kuang ","Ka ","Bei ","Jian ","Tong ","Xing ","Hong ","Jiao ","Chi ","Er ","Ge ","Bing ","Shi ","Mou ","Jia ","Yin ","Jun ","Zhou ","Chong ","Shang ","Tong ","Mo ","Lei ","Ji ","Yu ","Xu ","Ren ","Zun ","Zhi ","Qiong ","Shan ","Chi ","Xian ","Xing ","Quan ","Pi ","Tie ","Zhu ","Hou ","Ming ","Kua ","Yao ","Xian ","Xian ","Xiu ","Jun ","Cha ","Lao ","Ji ","Pi ","Ru ","Mi ","Yi ","Yin ","Guang ","An ","Diou ","You ","Se ","Kao ","Qian ","Luan ","Kasugai ","Ai ","Diao ","Han ","Rui ","Shi ","Keng ","Qiu ","Xiao ","Zhe ","Xiu ","Zang ","Ti ","Cuo ","Gua ","Gong ","Zhong ","Dou ","Lu ","Mei ","Lang ","Wan ","Xin ","Yun ","Bei ","Wu ","Su ","Yu ","Chan ","Ting ","Bo ","Han ","Jia ","Hong ","Cuan ","Feng ","Chan ","Wan ","Zhi ","Si ","Xuan ","Wu ","Wu ","Tiao ","Gong ","Zhuo ","Lue ","Xing ","Qian ","Shen ","Han ","Lue ","Xie ","Chu ","Zheng ","Ju ","Xian ","Tie ","Mang ","Pu ","Li ","Pan ","Rui ","Cheng ","Gao ","Li ","Te ","Pyeng ","Zhu ","[?] ","Tu ","Liu ","Zui ","Ju ","Chang ","Yuan ","Jian ","Gang ","Diao ","Tao ","Chang "]});var S9=y((g7e,x9)=>{x9.exports=["Lun ","Kua ","Ling ","Bei ","Lu ","Li ","Qiang ","Pou ","Juan ","Min ","Zui ","Peng ","An ","Pi ","Xian ","Ya ","Zhui ","Lei ","A ","Kong ","Ta ","Kun ","Du ","Wei ","Chui ","Zi ","Zheng ","Ben ","Nie ","Cong ","Qun ","Tan ","Ding ","Qi ","Qian ","Zhuo ","Qi ","Yu ","Jin ","Guan ","Mao ","Chang ","Tian ","Xi ","Lian ","Tao ","Gu ","Cuo ","Shu ","Zhen ","Lu ","Meng ","Lu ","Hua ","Biao ","Ga ","Lai ","Ken ","Kazari ","Bu ","Nai ","Wan ","Zan ","[?] ","De ","Xian ","[?] ","Huo ","Liang ","[?] ","Men ","Kai ","Ying ","Di ","Lian ","Guo ","Xian ","Du ","Tu ","Wei ","Cong ","Fu ","Rou ","Ji ","E ","Rou ","Chen ","Ti ","Zha ","Hong ","Yang ","Duan ","Xia ","Yu ","Keng ","Xing ","Huang ","Wei ","Fu ","Zhao ","Cha ","Qie ","She ","Hong ","Kui ","Tian ","Mou ","Qiao ","Qiao ","Hou ","Tou ","Cong ","Huan ","Ye ","Min ","Jian ","Duan ","Jian ","Song ","Kui ","Hu ","Xuan ","Duo ","Jie ","Zhen ","Bian ","Zhong ","Zi ","Xiu ","Ye ","Mei ","Pai ","Ai ","Jie ","[?] ","Mei ","Chuo ","Ta ","Bang ","Xia ","Lian ","Suo ","Xi ","Liu ","Zu ","Ye ","Nou ","Weng ","Rong ","Tang ","Suo ","Qiang ","Ge ","Shuo ","Chui ","Bo ","Pan ","Sa ","Bi ","Sang ","Gang ","Zi ","Wu ","Ying ","Huang ","Tiao ","Liu ","Kai ","Sun ","Sha ","Sou ","Wan ","Hao ","Zhen ","Zhen ","Luo ","Yi ","Yuan ","Tang ","Nie ","Xi ","Jia ","Ge ","Ma ","Juan ","Kasugai ","Habaki ","Suo ","[?] ","[?] ","[?] ","Na ","Lu ","Suo ","Ou ","Zu ","Tuan ","Xiu ","Guan ","Xuan ","Lian ","Shou ","Ao ","Man ","Mo ","Luo ","Bi ","Wei ","Liu ","Di ","Qiao ","Cong ","Yi ","Lu ","Ao ","Keng ","Qiang ","Cui ","Qi ","Chang ","Tang ","Man ","Yong ","Chan ","Feng ","Jing ","Biao ","Shu ","Lou ","Xiu ","Cong ","Long ","Zan ","Jian ","Cao ","Li ","Xia ","Xi ","Kang ","[?] ","Beng ","[?] ","[?] ","Zheng ","Lu ","Hua ","Ji ","Pu ","Hui ","Qiang ","Po ","Lin ","Suo ","Xiu ","San ","Cheng "]});var k9=y((p7e,T9)=>{T9.exports=["Kui ","Si ","Liu ","Nao ","Heng ","Pie ","Sui ","Fan ","Qiao ","Quan ","Yang ","Tang ","Xiang ","Jue ","Jiao ","Zun ","Liao ","Jie ","Lao ","Dui ","Tan ","Zan ","Ji ","Jian ","Zhong ","Deng ","Ya ","Ying ","Dui ","Jue ","Nou ","Ti ","Pu ","Tie ","[?] ","[?] ","Ding ","Shan ","Kai ","Jian ","Fei ","Sui ","Lu ","Juan ","Hui ","Yu ","Lian ","Zhuo ","Qiao ","Qian ","Zhuo ","Lei ","Bi ","Tie ","Huan ","Ye ","Duo ","Guo ","Dang ","Ju ","Fen ","Da ","Bei ","Yi ","Ai ","Zong ","Xun ","Diao ","Zhu ","Heng ","Zhui ","Ji ","Nie ","Ta ","Huo ","Qing ","Bin ","Ying ","Kui ","Ning ","Xu ","Jian ","Jian ","Yari ","Cha ","Zhi ","Mie ","Li ","Lei ","Ji ","Zuan ","Kuang ","Shang ","Peng ","La ","Du ","Shuo ","Chuo ","Lu ","Biao ","Bao ","Lu ","[?] ","[?] ","Long ","E ","Lu ","Xin ","Jian ","Lan ","Bo ","Jian ","Yao ","Chan ","Xiang ","Jian ","Xi ","Guan ","Cang ","Nie ","Lei ","Cuan ","Qu ","Pan ","Luo ","Zuan ","Luan ","Zao ","Nie ","Jue ","Tang ","Shu ","Lan ","Jin ","Qiu ","Yi ","Zhen ","Ding ","Zhao ","Po ","Diao ","Tu ","Qian ","Chuan ","Shan ","Ji ","Fan ","Diao ","Men ","Nu ","Xi ","Chai ","Xing ","Gai ","Bu ","Tai ","Ju ","Dun ","Chao ","Zhong ","Na ","Bei ","Gang ","Ban ","Qian ","Yao ","Qin ","Jun ","Wu ","Gou ","Kang ","Fang ","Huo ","Tou ","Niu ","Ba ","Yu ","Qian ","Zheng ","Qian ","Gu ","Bo ","E ","Po ","Bu ","Ba ","Yue ","Zuan ","Mu ","Dan ","Jia ","Dian ","You ","Tie ","Bo ","Ling ","Shuo ","Qian ","Liu ","Bao ","Shi ","Xuan ","She ","Bi ","Ni ","Pi ","Duo ","Xing ","Kao ","Lao ","Er ","Mang ","Ya ","You ","Cheng ","Jia ","Ye ","Nao ","Zhi ","Dang ","Tong ","Lu ","Diao ","Yin ","Kai ","Zha ","Zhu ","Xian ","Ting ","Diu ","Xian ","Hua ","Quan ","Sha ","Jia ","Yao ","Ge ","Ming ","Zheng ","Se ","Jiao ","Yi ","Chan ","Chong ","Tang ","An ","Yin ","Ru ","Zhu ","Lao ","Pu ","Wu ","Lai ","Te ","Lian ","Keng "]});var P9=y((f7e,E9)=>{E9.exports=["Xiao ","Suo ","Li ","Zheng ","Chu ","Guo ","Gao ","Tie ","Xiu ","Cuo ","Lue ","Feng ","Xin ","Liu ","Kai ","Jian ","Rui ","Ti ","Lang ","Qian ","Ju ","A ","Qiang ","Duo ","Tian ","Cuo ","Mao ","Ben ","Qi ","De ","Kua ","Kun ","Chang ","Xi ","Gu ","Luo ","Chui ","Zhui ","Jin ","Zhi ","Xian ","Juan ","Huo ","Pou ","Tan ","Ding ","Jian ","Ju ","Meng ","Zi ","Qie ","Ying ","Kai ","Qiang ","Song ","E ","Cha ","Qiao ","Zhong ","Duan ","Sou ","Huang ","Huan ","Ai ","Du ","Mei ","Lou ","Zi ","Fei ","Mei ","Mo ","Zhen ","Bo ","Ge ","Nie ","Tang ","Juan ","Nie ","Na ","Liu ","Hao ","Bang ","Yi ","Jia ","Bin ","Rong ","Biao ","Tang ","Man ","Luo ","Beng ","Yong ","Jing ","Di ","Zu ","Xuan ","Liu ","Tan ","Jue ","Liao ","Pu ","Lu ","Dui ","Lan ","Pu ","Cuan ","Qiang ","Deng ","Huo ","Lei ","Huan ","Zhuo ","Lian ","Yi ","Cha ","Biao ","La ","Chan ","Xiang ","Chang ","Chang ","Jiu ","Ao ","Die ","Qu ","Liao ","Mi ","Chang ","Men ","Ma ","Shuan ","Shan ","Huo ","Men ","Yan ","Bi ","Han ","Bi ","San ","Kai ","Kang ","Beng ","Hong ","Run ","San ","Xian ","Xian ","Jian ","Min ","Xia ","Yuru ","Dou ","Zha ","Nao ","Jian ","Peng ","Xia ","Ling ","Bian ","Bi ","Run ","He ","Guan ","Ge ","Ge ","Fa ","Chu ","Hong ","Gui ","Min ","Se ","Kun ","Lang ","Lu ","Ting ","Sha ","Ju ","Yue ","Yue ","Chan ","Qu ","Lin ","Chang ","Shai ","Kun ","Yan ","Min ","Yan ","E ","Hun ","Yu ","Wen ","Xiang ","Bao ","Xiang ","Qu ","Yao ","Wen ","Ban ","An ","Wei ","Yin ","Kuo ","Que ","Lan ","Du ","[?] ","Phwung ","Tian ","Nie ","Ta ","Kai ","He ","Que ","Chuang ","Guan ","Dou ","Qi ","Kui ","Tang ","Guan ","Piao ","Kan ","Xi ","Hui ","Chan ","Pi ","Dang ","Huan ","Ta ","Wen ","[?] ","Men ","Shuan ","Shan ","Yan ","Han ","Bi ","Wen ","Chuang ","Run ","Wei ","Xian ","Hong ","Jian ","Min ","Kang ","Men ","Zha ","Nao ","Gui ","Wen ","Ta ","Min ","Lu ","Kai "]});var R9=y((m7e,_9)=>{_9.exports=["Fa ","Ge ","He ","Kun ","Jiu ","Yue ","Lang ","Du ","Yu ","Yan ","Chang ","Xi ","Wen ","Hun ","Yan ","E ","Chan ","Lan ","Qu ","Hui ","Kuo ","Que ","Ge ","Tian ","Ta ","Que ","Kan ","Huan ","Fu ","Fu ","Le ","Dui ","Xin ","Qian ","Wu ","Yi ","Tuo ","Yin ","Yang ","Dou ","E ","Sheng ","Ban ","Pei ","Keng ","Yun ","Ruan ","Zhi ","Pi ","Jing ","Fang ","Yang ","Yin ","Zhen ","Jie ","Cheng ","E ","Qu ","Di ","Zu ","Zuo ","Dian ","Ling ","A ","Tuo ","Tuo ","Po ","Bing ","Fu ","Ji ","Lu ","Long ","Chen ","Xing ","Duo ","Lou ","Mo ","Jiang ","Shu ","Duo ","Xian ","Er ","Gui ","Yu ","Gai ","Shan ","Xun ","Qiao ","Xing ","Chun ","Fu ","Bi ","Xia ","Shan ","Sheng ","Zhi ","Pu ","Dou ","Yuan ","Zhen ","Chu ","Xian ","Tou ","Nie ","Yun ","Xian ","Pei ","Pei ","Zou ","Yi ","Dui ","Lun ","Yin ","Ju ","Chui ","Chen ","Pi ","Ling ","Tao ","Xian ","Lu ","Sheng ","Xian ","Yin ","Zhu ","Yang ","Reng ","Shan ","Chong ","Yan ","Yin ","Yu ","Ti ","Yu ","Long ","Wei ","Wei ","Nie ","Dui ","Sui ","An ","Huang ","Jie ","Sui ","Yin ","Gai ","Yan ","Hui ","Ge ","Yun ","Wu ","Wei ","Ai ","Xi ","Tang ","Ji ","Zhang ","Dao ","Ao ","Xi ","Yin ","[?] ","Rao ","Lin ","Tui ","Deng ","Pi ","Sui ","Sui ","Yu ","Xian ","Fen ","Ni ","Er ","Ji ","Dao ","Xi ","Yin ","E ","Hui ","Long ","Xi ","Li ","Li ","Li ","Zhui ","He ","Zhi ","Zhun ","Jun ","Nan ","Yi ","Que ","Yan ","Qian ","Ya ","Xiong ","Ya ","Ji ","Gu ","Huan ","Zhi ","Gou ","Jun ","Ci ","Yong ","Ju ","Chu ","Hu ","Za ","Luo ","Yu ","Chou ","Diao ","Sui ","Han ","Huo ","Shuang ","Guan ","Chu ","Za ","Yong ","Ji ","Xi ","Chou ","Liu ","Li ","Nan ","Xue ","Za ","Ji ","Ji ","Yu ","Yu ","Xue ","Na ","Fou ","Se ","Mu ","Wen ","Fen ","Pang ","Yun ","Li ","Li ","Ang ","Ling ","Lei ","An ","Bao ","Meng ","Dian ","Dang ","Xing ","Wu ","Zhao "]});var F9=y((y7e,L9)=>{L9.exports=["Xu ","Ji ","Mu ","Chen ","Xiao ","Zha ","Ting ","Zhen ","Pei ","Mei ","Ling ","Qi ","Chou ","Huo ","Sha ","Fei ","Weng ","Zhan ","Yin ","Ni ","Chou ","Tun ","Lin ","[?] ","Dong ","Ying ","Wu ","Ling ","Shuang ","Ling ","Xia ","Hong ","Yin ","Mo ","Mai ","Yun ","Liu ","Meng ","Bin ","Wu ","Wei ","Huo ","Yin ","Xi ","Yi ","Ai ","Dan ","Deng ","Xian ","Yu ","Lu ","Long ","Dai ","Ji ","Pang ","Yang ","Ba ","Pi ","Wei ","[?] ","Xi ","Ji ","Mai ","Meng ","Meng ","Lei ","Li ","Huo ","Ai ","Fei ","Dai ","Long ","Ling ","Ai ","Feng ","Li ","Bao ","[?] ","He ","He ","Bing ","Qing ","Qing ","Jing ","Tian ","Zhen ","Jing ","Cheng ","Qing ","Jing ","Jing ","Dian ","Jing ","Tian ","Fei ","Fei ","Kao ","Mi ","Mian ","Mian ","Pao ","Ye ","Tian ","Hui ","Ye ","Ge ","Ding ","Cha ","Jian ","Ren ","Di ","Du ","Wu ","Ren ","Qin ","Jin ","Xue ","Niu ","Ba ","Yin ","Sa ","Na ","Mo ","Zu ","Da ","Ban ","Yi ","Yao ","Tao ","Tuo ","Jia ","Hong ","Pao ","Yang ","Tomo ","Yin ","Jia ","Tao ","Ji ","Xie ","An ","An ","Hen ","Gong ","Kohaze ","Da ","Qiao ","Ting ","Wan ","Ying ","Sui ","Tiao ","Qiao ","Xuan ","Kong ","Beng ","Ta ","Zhang ","Bing ","Kuo ","Ju ","La ","Xie ","Rou ","Bang ","Yi ","Qiu ","Qiu ","He ","Xiao ","Mu ","Ju ","Jian ","Bian ","Di ","Jian ","On ","Tao ","Gou ","Ta ","Bei ","Xie ","Pan ","Ge ","Bi ","Kuo ","Tang ","Lou ","Gui ","Qiao ","Xue ","Ji ","Jian ","Jiang ","Chan ","Da ","Huo ","Xian ","Qian ","Du ","Wa ","Jian ","Lan ","Wei ","Ren ","Fu ","Mei ","Juan ","Ge ","Wei ","Qiao ","Han ","Chang ","[?] ","Rou ","Xun ","She ","Wei ","Ge ","Bei ","Tao ","Gou ","Yun ","[?] ","Bi ","Wei ","Hui ","Du ","Wa ","Du ","Wei ","Ren ","Fu ","Han ","Wei ","Yun ","Tao ","Jiu ","Jiu ","Xian ","Xie ","Xian ","Ji ","Yin ","Za ","Yun ","Shao ","Le ","Peng ","Heng ","Ying ","Yun ","Peng ","Yin ","Yin ","Xiang "]});var j9=y((b7e,I9)=>{I9.exports=["Hu ","Ye ","Ding ","Qing ","Pan ","Xiang ","Shun ","Han ","Xu ","Yi ","Xu ","Gu ","Song ","Kui ","Qi ","Hang ","Yu ","Wan ","Ban ","Dun ","Di ","Dan ","Pan ","Po ","Ling ","Ce ","Jing ","Lei ","He ","Qiao ","E ","E ","Wei ","Jie ","Gua ","Shen ","Yi ","Shen ","Hai ","Dui ","Pian ","Ping ","Lei ","Fu ","Jia ","Tou ","Hui ","Kui ","Jia ","Le ","Tian ","Cheng ","Ying ","Jun ","Hu ","Han ","Jing ","Tui ","Tui ","Pin ","Lai ","Tui ","Zi ","Zi ","Chui ","Ding ","Lai ","Yan ","Han ","Jian ","Ke ","Cui ","Jiong ","Qin ","Yi ","Sai ","Ti ","E ","E ","Yan ","Hun ","Kan ","Yong ","Zhuan ","Yan ","Xian ","Xin ","Yi ","Yuan ","Sang ","Dian ","Dian ","Jiang ","Ku ","Lei ","Liao ","Piao ","Yi ","Man ","Qi ","Rao ","Hao ","Qiao ","Gu ","Xun ","Qian ","Hui ","Zhan ","Ru ","Hong ","Bin ","Xian ","Pin ","Lu ","Lan ","Nie ","Quan ","Ye ","Ding ","Qing ","Han ","Xiang ","Shun ","Xu ","Xu ","Wan ","Gu ","Dun ","Qi ","Ban ","Song ","Hang ","Yu ","Lu ","Ling ","Po ","Jing ","Jie ","Jia ","Tian ","Han ","Ying ","Jiong ","Hai ","Yi ","Pin ","Hui ","Tui ","Han ","Ying ","Ying ","Ke ","Ti ","Yong ","E ","Zhuan ","Yan ","E ","Nie ","Man ","Dian ","Sang ","Hao ","Lei ","Zhan ","Ru ","Pin ","Quan ","Feng ","Biao ","Oroshi ","Fu ","Xia ","Zhan ","Biao ","Sa ","Ba ","Tai ","Lie ","Gua ","Xuan ","Shao ","Ju ","Bi ","Si ","Wei ","Yang ","Yao ","Sou ","Kai ","Sao ","Fan ","Liu ","Xi ","Liao ","Piao ","Piao ","Liu ","Biao ","Biao ","Biao ","Liao ","[?] ","Se ","Feng ","Biao ","Feng ","Yang ","Zhan ","Biao ","Sa ","Ju ","Si ","Sou ","Yao ","Liu ","Piao ","Biao ","Biao ","Fei ","Fan ","Fei ","Fei ","Shi ","Shi ","Can ","Ji ","Ding ","Si ","Tuo ","Zhan ","Sun ","Xiang ","Tun ","Ren ","Yu ","Juan ","Chi ","Yin ","Fan ","Fan ","Sun ","Yin ","Zhu ","Yi ","Zhai ","Bi ","Jie ","Tao ","Liu ","Ci ","Tie ","Si ","Bao ","Shi ","Duo "]});var M9=y((v7e,A9)=>{A9.exports=["Hai ","Ren ","Tian ","Jiao ","Jia ","Bing ","Yao ","Tong ","Ci ","Xiang ","Yang ","Yang ","Er ","Yan ","Le ","Yi ","Can ","Bo ","Nei ","E ","Bu ","Jun ","Dou ","Su ","Yu ","Shi ","Yao ","Hun ","Guo ","Shi ","Jian ","Zhui ","Bing ","Xian ","Bu ","Ye ","Tan ","Fei ","Zhang ","Wei ","Guan ","E ","Nuan ","Hun ","Hu ","Huang ","Tie ","Hui ","Jian ","Hou ","He ","Xing ","Fen ","Wei ","Gu ","Cha ","Song ","Tang ","Bo ","Gao ","Xi ","Kui ","Liu ","Sou ","Tao ","Ye ","Yun ","Mo ","Tang ","Man ","Bi ","Yu ","Xiu ","Jin ","San ","Kui ","Zhuan ","Shan ","Chi ","Dan ","Yi ","Ji ","Rao ","Cheng ","Yong ","Tao ","Hui ","Xiang ","Zhan ","Fen ","Hai ","Meng ","Yan ","Mo ","Chan ","Xiang ","Luo ","Zuan ","Nang ","Shi ","Ding ","Ji ","Tuo ","Xing ","Tun ","Xi ","Ren ","Yu ","Chi ","Fan ","Yin ","Jian ","Shi ","Bao ","Si ","Duo ","Yi ","Er ","Rao ","Xiang ","Jia ","Le ","Jiao ","Yi ","Bing ","Bo ","Dou ","E ","Yu ","Nei ","Jun ","Guo ","Hun ","Xian ","Guan ","Cha ","Kui ","Gu ","Sou ","Chan ","Ye ","Mo ","Bo ","Liu ","Xiu ","Jin ","Man ","San ","Zhuan ","Nang ","Shou ","Kui ","Guo ","Xiang ","Fen ","Ba ","Ni ","Bi ","Bo ","Tu ","Han ","Fei ","Jian ","An ","Ai ","Fu ","Xian ","Wen ","Xin ","Fen ","Bin ","Xing ","Ma ","Yu ","Feng ","Han ","Di ","Tuo ","Tuo ","Chi ","Xun ","Zhu ","Zhi ","Pei ","Xin ","Ri ","Sa ","Yin ","Wen ","Zhi ","Dan ","Lu ","You ","Bo ","Bao ","Kuai ","Tuo ","Yi ","Qu ","[?] ","Qu ","Jiong ","Bo ","Zhao ","Yuan ","Peng ","Zhou ","Ju ","Zhu ","Nu ","Ju ","Pi ","Zang ","Jia ","Ling ","Zhen ","Tai ","Fu ","Yang ","Shi ","Bi ","Tuo ","Tuo ","Si ","Liu ","Ma ","Pian ","Tao ","Zhi ","Rong ","Teng ","Dong ","Xun ","Quan ","Shen ","Jiong ","Er ","Hai ","Bo ","Zhu ","Yin ","Luo ","Shuu ","Dan ","Xie ","Liu ","Ju ","Song ","Qin ","Mang ","Liang ","Han ","Tu ","Xuan ","Tui ","Jun "]});var N9=y((w7e,O9)=>{O9.exports=["E ","Cheng ","Xin ","Ai ","Lu ","Zhui ","Zhou ","She ","Pian ","Kun ","Tao ","Lai ","Zong ","Ke ","Qi ","Qi ","Yan ","Fei ","Sao ","Yan ","Jie ","Yao ","Wu ","Pian ","Cong ","Pian ","Qian ","Fei ","Huang ","Jian ","Huo ","Yu ","Ti ","Quan ","Xia ","Zong ","Kui ","Rou ","Si ","Gua ","Tuo ","Kui ","Sou ","Qian ","Cheng ","Zhi ","Liu ","Pang ","Teng ","Xi ","Cao ","Du ","Yan ","Yuan ","Zou ","Sao ","Shan ","Li ","Zhi ","Shuang ","Lu ","Xi ","Luo ","Zhang ","Mo ","Ao ","Can ","Piao ","Cong ","Qu ","Bi ","Zhi ","Yu ","Xu ","Hua ","Bo ","Su ","Xiao ","Lin ","Chan ","Dun ","Liu ","Tuo ","Zeng ","Tan ","Jiao ","Tie ","Yan ","Luo ","Zhan ","Jing ","Yi ","Ye ","Tuo ","Bin ","Zou ","Yan ","Peng ","Lu ","Teng ","Xiang ","Ji ","Shuang ","Ju ","Xi ","Huan ","Li ","Biao ","Ma ","Yu ","Tuo ","Xun ","Chi ","Qu ","Ri ","Bo ","Lu ","Zang ","Shi ","Si ","Fu ","Ju ","Zou ","Zhu ","Tuo ","Nu ","Jia ","Yi ","Tai ","Xiao ","Ma ","Yin ","Jiao ","Hua ","Luo ","Hai ","Pian ","Biao ","Li ","Cheng ","Yan ","Xin ","Qin ","Jun ","Qi ","Qi ","Ke ","Zhui ","Zong ","Su ","Can ","Pian ","Zhi ","Kui ","Sao ","Wu ","Ao ","Liu ","Qian ","Shan ","Piao ","Luo ","Cong ","Chan ","Zou ","Ji ","Shuang ","Xiang ","Gu ","Wei ","Wei ","Wei ","Yu ","Gan ","Yi ","Ang ","Tou ","Xie ","Bao ","Bi ","Chi ","Ti ","Di ","Ku ","Hai ","Qiao ","Gou ","Kua ","Ge ","Tui ","Geng ","Pian ","Bi ","Ke ","Ka ","Yu ","Sui ","Lou ","Bo ","Xiao ","Pang ","Bo ","Ci ","Kuan ","Bin ","Mo ","Liao ","Lou ","Nao ","Du ","Zang ","Sui ","Ti ","Bin ","Kuan ","Lu ","Gao ","Gao ","Qiao ","Kao ","Qiao ","Lao ","Zao ","Biao ","Kun ","Kun ","Ti ","Fang ","Xiu ","Ran ","Mao ","Dan ","Kun ","Bin ","Fa ","Tiao ","Peng ","Zi ","Fa ","Ran ","Ti ","Pao ","Pi ","Mao ","Fu ","Er ","Rong ","Qu ","Gong ","Xiu ","Gua ","Ji ","Peng ","Zhua ","Shao ","Sha "]});var H9=y((D7e,B9)=>{B9.exports=["Ti ","Li ","Bin ","Zong ","Ti ","Peng ","Song ","Zheng ","Quan ","Zong ","Shun ","Jian ","Duo ","Hu ","La ","Jiu ","Qi ","Lian ","Zhen ","Bin ","Peng ","Mo ","San ","Man ","Man ","Seng ","Xu ","Lie ","Qian ","Qian ","Nong ","Huan ","Kuai ","Ning ","Bin ","Lie ","Rang ","Dou ","Dou ","Nao ","Hong ","Xi ","Dou ","Han ","Dou ","Dou ","Jiu ","Chang ","Yu ","Yu ","Li ","Juan ","Fu ","Qian ","Gui ","Zong ","Liu ","Gui ","Shang ","Yu ","Gui ","Mei ","Ji ","Qi ","Jie ","Kui ","Hun ","Ba ","Po ","Mei ","Xu ","Yan ","Xiao ","Liang ","Yu ","Tui ","Qi ","Wang ","Liang ","Wei ","Jian ","Chi ","Piao ","Bi ","Mo ","Ji ","Xu ","Chou ","Yan ","Zhan ","Yu ","Dao ","Ren ","Ji ","Eri ","Gong ","Tuo ","Diao ","Ji ","Xu ","E ","E ","Sha ","Hang ","Tun ","Mo ","Jie ","Shen ","Fan ","Yuan ","Bi ","Lu ","Wen ","Hu ","Lu ","Za ","Fang ","Fen ","Na ","You ","Namazu ","Todo ","He ","Xia ","Qu ","Han ","Pi ","Ling ","Tuo ","Bo ","Qiu ","Ping ","Fu ","Bi ","Ji ","Wei ","Ju ","Diao ","Bo ","You ","Gun ","Pi ","Nian ","Xing ","Tai ","Bao ","Fu ","Zha ","Ju ","Gu ","Kajika ","Tong ","[?] ","Ta ","Jie ","Shu ","Hou ","Xiang ","Er ","An ","Wei ","Tiao ","Zhu ","Yin ","Lie ","Luo ","Tong ","Yi ","Qi ","Bing ","Wei ","Jiao ","Bu ","Gui ","Xian ","Ge ","Hui ","Bora ","Mate ","Kao ","Gori ","Duo ","Jun ","Ti ","Man ","Xiao ","Za ","Sha ","Qin ","Yu ","Nei ","Zhe ","Gun ","Geng ","Su ","Wu ","Qiu ","Ting ","Fu ","Wan ","You ","Li ","Sha ","Sha ","Gao ","Meng ","Ugui ","Asari ","Subashiri ","Kazunoko ","Yong ","Ni ","Zi ","Qi ","Qing ","Xiang ","Nei ","Chun ","Ji ","Diao ","Qie ","Gu ","Zhou ","Dong ","Lai ","Fei ","Ni ","Yi ","Kun ","Lu ","Jiu ","Chang ","Jing ","Lun ","Ling ","Zou ","Li ","Meng ","Zong ","Zhi ","Nian ","Shachi ","Dojou ","Sukesou ","Shi ","Shen ","Hun ","Shi ","Hou ","Xing ","Zhu ","La ","Zong ","Ji ","Bian ","Bian "]});var Y9=y((C7e,q9)=>{q9.exports=["Huan ","Quan ","Ze ","Wei ","Wei ","Yu ","Qun ","Rou ","Die ","Huang ","Lian ","Yan ","Qiu ","Qiu ","Jian ","Bi ","E ","Yang ","Fu ","Sai ","Jian ","Xia ","Tuo ","Hu ","Muroaji ","Ruo ","Haraka ","Wen ","Jian ","Hao ","Wu ","Fang ","Sao ","Liu ","Ma ","Shi ","Shi ","Yin ","Z ","Teng ","Ta ","Yao ","Ge ","Rong ","Qian ","Qi ","Wen ","Ruo ","Hatahata ","Lian ","Ao ","Le ","Hui ","Min ","Ji ","Tiao ","Qu ","Jian ","Sao ","Man ","Xi ","Qiu ","Biao ","Ji ","Ji ","Zhu ","Jiang ","Qiu ","Zhuan ","Yong ","Zhang ","Kang ","Xue ","Bie ","Jue ","Qu ","Xiang ","Bo ","Jiao ","Xun ","Su ","Huang ","Zun ","Shan ","Shan ","Fan ","Jue ","Lin ","Xun ","Miao ","Xi ","Eso ","Kyou ","Fen ","Guan ","Hou ","Kuai ","Zei ","Sao ","Zhan ","Gan ","Gui ","Sheng ","Li ","Chang ","Hatahata ","Shiira ","Mutsu ","Ru ","Ji ","Xu ","Huo ","Shiira ","Li ","Lie ","Li ","Mie ","Zhen ","Xiang ","E ","Lu ","Guan ","Li ","Xian ","Yu ","Dao ","Ji ","You ","Tun ","Lu ","Fang ","Ba ","He ","Bo ","Ping ","Nian ","Lu ","You ","Zha ","Fu ","Bo ","Bao ","Hou ","Pi ","Tai ","Gui ","Jie ","Kao ","Wei ","Er ","Tong ","Ze ","Hou ","Kuai ","Ji ","Jiao ","Xian ","Za ","Xiang ","Xun ","Geng ","Li ","Lian ","Jian ","Li ","Shi ","Tiao ","Gun ","Sha ","Wan ","Jun ","Ji ","Yong ","Qing ","Ling ","Qi ","Zou ","Fei ","Kun ","Chang ","Gu ","Ni ","Nian ","Diao ","Jing ","Shen ","Shi ","Zi ","Fen ","Die ","Bi ","Chang ","Shi ","Wen ","Wei ","Sai ","E ","Qiu ","Fu ","Huang ","Quan ","Jiang ","Bian ","Sao ","Ao ","Qi ","Ta ","Yin ","Yao ","Fang ","Jian ","Le ","Biao ","Xue ","Bie ","Man ","Min ","Yong ","Wei ","Xi ","Jue ","Shan ","Lin ","Zun ","Huo ","Gan ","Li ","Zhan ","Guan ","Niao ","Yi ","Fu ","Li ","Jiu ","Bu ","Yan ","Fu ","Diao ","Ji ","Feng ","Nio ","Gan ","Shi ","Feng ","Ming ","Bao ","Yuan ","Zhi ","Hu ","Qin ","Fu ","Fen ","Wen ","Jian ","Shi ","Yu "]});var Z9=y((x7e,W9)=>{W9.exports=["Fou ","Yiao ","Jue ","Jue ","Pi ","Huan ","Zhen ","Bao ","Yan ","Ya ","Zheng ","Fang ","Feng ","Wen ","Ou ","Te ","Jia ","Nu ","Ling ","Mie ","Fu ","Tuo ","Wen ","Li ","Bian ","Zhi ","Ge ","Yuan ","Zi ","Qu ","Xiao ","Zhi ","Dan ","Ju ","You ","Gu ","Zhong ","Yu ","Yang ","Rong ","Ya ","Tie ","Yu ","Shigi ","Ying ","Zhui ","Wu ","Er ","Gua ","Ai ","Zhi ","Yan ","Heng ","Jiao ","Ji ","Lie ","Zhu ","Ren ","Yi ","Hong ","Luo ","Ru ","Mou ","Ge ","Ren ","Jiao ","Xiu ","Zhou ","Zhi ","Luo ","Chidori ","Toki ","Ten ","Luan ","Jia ","Ji ","Yu ","Huan ","Tuo ","Bu ","Wu ","Juan ","Yu ","Bo ","Xun ","Xun ","Bi ","Xi ","Jun ","Ju ","Tu ","Jing ","Ti ","E ","E ","Kuang ","Hu ","Wu ","Shen ","Lai ","Ikaruga ","Kakesu ","Lu ","Ping ","Shu ","Fu ","An ","Zhao ","Peng ","Qin ","Qian ","Bei ","Diao ","Lu ","Que ","Jian ","Ju ","Tu ","Ya ","Yuan ","Qi ","Li ","Ye ","Zhui ","Kong ","Zhui ","Kun ","Sheng ","Qi ","Jing ","Yi ","Yi ","Jing ","Zi ","Lai ","Dong ","Qi ","Chun ","Geng ","Ju ","Qu ","Isuka ","Kikuitadaki ","Ji ","Shu ","[?] ","Chi ","Miao ","Rou ","An ","Qiu ","Ti ","Hu ","Ti ","E ","Jie ","Mao ","Fu ","Chun ","Tu ","Yan ","He ","Yuan ","Pian ","Yun ","Mei ","Hu ","Ying ","Dun ","Mu ","Ju ","Tsugumi ","Cang ","Fang ","Gu ","Ying ","Yuan ","Xuan ","Weng ","Shi ","He ","Chu ","Tang ","Xia ","Ruo ","Liu ","Ji ","Gu ","Jian ","Zhun ","Han ","Zi ","Zi ","Ni ","Yao ","Yan ","Ji ","Li ","Tian ","Kou ","Ti ","Ti ","Ni ","Tu ","Ma ","Jiao ","Gao ","Tian ","Chen ","Li ","Zhuan ","Zhe ","Ao ","Yao ","Yi ","Ou ","Chi ","Zhi ","Liao ","Rong ","Lou ","Bi ","Shuang ","Zhuo ","Yu ","Wu ","Jue ","Yin ","Quan ","Si ","Jiao ","Yi ","Hua ","Bi ","Ying ","Su ","Huang ","Fan ","Jiao ","Liao ","Yan ","Kao ","Jiu ","Xian ","Xian ","Tu ","Mai ","Zun ","Yu ","Ying ","Lu ","Tuan ","Xian ","Xue ","Yi ","Pi "]});var $9=y((S7e,J9)=>{J9.exports=["Shu ","Luo ","Qi ","Yi ","Ji ","Zhe ","Yu ","Zhan ","Ye ","Yang ","Pi ","Ning ","Huo ","Mi ","Ying ","Meng ","Di ","Yue ","Yu ","Lei ","Bao ","Lu ","He ","Long ","Shuang ","Yue ","Ying ","Guan ","Qu ","Li ","Luan ","Niao ","Jiu ","Ji ","Yuan ","Ming ","Shi ","Ou ","Ya ","Cang ","Bao ","Zhen ","Gu ","Dong ","Lu ","Ya ","Xiao ","Yang ","Ling ","Zhi ","Qu ","Yuan ","Xue ","Tuo ","Si ","Zhi ","Er ","Gua ","Xiu ","Heng ","Zhou ","Ge ","Luan ","Hong ","Wu ","Bo ","Li ","Juan ","Hu ","E ","Yu ","Xian ","Ti ","Wu ","Que ","Miao ","An ","Kun ","Bei ","Peng ","Qian ","Chun ","Geng ","Yuan ","Su ","Hu ","He ","E ","Gu ","Qiu ","Zi ","Mei ","Mu ","Ni ","Yao ","Weng ","Liu ","Ji ","Ni ","Jian ","He ","Yi ","Ying ","Zhe ","Liao ","Liao ","Jiao ","Jiu ","Yu ","Lu ","Xuan ","Zhan ","Ying ","Huo ","Meng ","Guan ","Shuang ","Lu ","Jin ","Ling ","Jian ","Xian ","Cuo ","Jian ","Jian ","Yan ","Cuo ","Lu ","You ","Cu ","Ji ","Biao ","Cu ","Biao ","Zhu ","Jun ","Zhu ","Jian ","Mi ","Mi ","Wu ","Liu ","Chen ","Jun ","Lin ","Ni ","Qi ","Lu ","Jiu ","Jun ","Jing ","Li ","Xiang ","Yan ","Jia ","Mi ","Li ","She ","Zhang ","Lin ","Jing ","Ji ","Ling ","Yan ","Cu ","Mai ","Mai ","Ge ","Chao ","Fu ","Mian ","Mian ","Fu ","Pao ","Qu ","Qu ","Mou ","Fu ","Xian ","Lai ","Qu ","Mian ","[?] ","Feng ","Fu ","Qu ","Mian ","Ma ","Mo ","Mo ","Hui ","Ma ","Zou ","Nen ","Fen ","Huang ","Huang ","Jin ","Guang ","Tian ","Tou ","Heng ","Xi ","Kuang ","Heng ","Shu ","Li ","Nian ","Chi ","Hei ","Hei ","Yi ","Qian ","Dan ","Xi ","Tuan ","Mo ","Mo ","Qian ","Dai ","Chu ","You ","Dian ","Yi ","Xia ","Yan ","Qu ","Mei ","Yan ","Jing ","Yu ","Li ","Dang ","Du ","Can ","Yin ","An ","Yan ","Tan ","An ","Zhen ","Dai ","Can ","Yi ","Mei ","Dan ","Yan ","Du ","Lu ","Zhi ","Fen ","Fu ","Fu ","Min ","Min ","Yuan "]});var U9=y((T7e,X9)=>{X9.exports=["Cu ","Qu ","Chao ","Wa ","Zhu ","Zhi ","Mang ","Ao ","Bie ","Tuo ","Bi ","Yuan ","Chao ","Tuo ","Ding ","Mi ","Nai ","Ding ","Zi ","Gu ","Gu ","Dong ","Fen ","Tao ","Yuan ","Pi ","Chang ","Gao ","Qi ","Yuan ","Tang ","Teng ","Shu ","Shu ","Fen ","Fei ","Wen ","Ba ","Diao ","Tuo ","Tong ","Qu ","Sheng ","Shi ","You ","Shi ","Ting ","Wu ","Nian ","Jing ","Hun ","Ju ","Yan ","Tu ","Ti ","Xi ","Xian ","Yan ","Lei ","Bi ","Yao ","Qiu ","Han ","Wu ","Wu ","Hou ","Xi ","Ge ","Zha ","Xiu ","Weng ","Zha ","Nong ","Nang ","Qi ","Zhai ","Ji ","Zi ","Ji ","Ji ","Qi ","Ji ","Chi ","Chen ","Chen ","He ","Ya ","Ken ","Xie ","Pao ","Cuo ","Shi ","Zi ","Chi ","Nian ","Ju ","Tiao ","Ling ","Ling ","Chu ","Quan ","Xie ","Ken ","Nie ","Jiu ","Yao ","Chuo ","Kun ","Yu ","Chu ","Yi ","Ni ","Cuo ","Zou ","Qu ","Nen ","Xian ","Ou ","E ","Wo ","Yi ","Chuo ","Zou ","Dian ","Chu ","Jin ","Ya ","Chi ","Chen ","He ","Ken ","Ju ","Ling ","Pao ","Tiao ","Zi ","Ken ","Yu ","Chuo ","Qu ","Wo ","Long ","Pang ","Gong ","Pang ","Yan ","Long ","Long ","Gong ","Kan ","Ta ","Ling ","Ta ","Long ","Gong ","Kan ","Gui ","Qiu ","Bie ","Gui ","Yue ","Chui ","He ","Jue ","Xie ","Yu ","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var K9=y((k7e,G9)=>{G9.exports=["it","ix","i","ip","iet","iex","ie","iep","at","ax","a","ap","uox","uo","uop","ot","ox","o","op","ex","e","wu","bit","bix","bi","bip","biet","biex","bie","biep","bat","bax","ba","bap","buox","buo","buop","bot","box","bo","bop","bex","be","bep","but","bux","bu","bup","burx","bur","byt","byx","by","byp","byrx","byr","pit","pix","pi","pip","piex","pie","piep","pat","pax","pa","pap","puox","puo","puop","pot","pox","po","pop","put","pux","pu","pup","purx","pur","pyt","pyx","py","pyp","pyrx","pyr","bbit","bbix","bbi","bbip","bbiet","bbiex","bbie","bbiep","bbat","bbax","bba","bbap","bbuox","bbuo","bbuop","bbot","bbox","bbo","bbop","bbex","bbe","bbep","bbut","bbux","bbu","bbup","bburx","bbur","bbyt","bbyx","bby","bbyp","nbit","nbix","nbi","nbip","nbiex","nbie","nbiep","nbat","nbax","nba","nbap","nbot","nbox","nbo","nbop","nbut","nbux","nbu","nbup","nburx","nbur","nbyt","nbyx","nby","nbyp","nbyrx","nbyr","hmit","hmix","hmi","hmip","hmiex","hmie","hmiep","hmat","hmax","hma","hmap","hmuox","hmuo","hmuop","hmot","hmox","hmo","hmop","hmut","hmux","hmu","hmup","hmurx","hmur","hmyx","hmy","hmyp","hmyrx","hmyr","mit","mix","mi","mip","miex","mie","miep","mat","max","ma","map","muot","muox","muo","muop","mot","mox","mo","mop","mex","me","mut","mux","mu","mup","murx","mur","myt","myx","my","myp","fit","fix","fi","fip","fat","fax","fa","fap","fox","fo","fop","fut","fux","fu","fup","furx","fur","fyt","fyx","fy","fyp","vit","vix","vi","vip","viet","viex","vie","viep","vat","vax","va","vap","vot","vox","vo","vop","vex","vep","vut","vux","vu","vup","vurx","vur","vyt","vyx","vy","vyp","vyrx","vyr"]});var z9=y((E7e,Q9)=>{Q9.exports=["dit","dix","di","dip","diex","die","diep","dat","dax","da","dap","duox","duo","dot","dox","do","dop","dex","de","dep","dut","dux","du","dup","durx","dur","tit","tix","ti","tip","tiex","tie","tiep","tat","tax","ta","tap","tuot","tuox","tuo","tuop","tot","tox","to","top","tex","te","tep","tut","tux","tu","tup","turx","tur","ddit","ddix","ddi","ddip","ddiex","ddie","ddiep","ddat","ddax","dda","ddap","dduox","dduo","dduop","ddot","ddox","ddo","ddop","ddex","dde","ddep","ddut","ddux","ddu","ddup","ddurx","ddur","ndit","ndix","ndi","ndip","ndiex","ndie","ndat","ndax","nda","ndap","ndot","ndox","ndo","ndop","ndex","nde","ndep","ndut","ndux","ndu","ndup","ndurx","ndur","hnit","hnix","hni","hnip","hniet","hniex","hnie","hniep","hnat","hnax","hna","hnap","hnuox","hnuo","hnot","hnox","hnop","hnex","hne","hnep","hnut","nit","nix","ni","nip","niex","nie","niep","nax","na","nap","nuox","nuo","nuop","not","nox","no","nop","nex","ne","nep","nut","nux","nu","nup","nurx","nur","hlit","hlix","hli","hlip","hliex","hlie","hliep","hlat","hlax","hla","hlap","hluox","hluo","hluop","hlox","hlo","hlop","hlex","hle","hlep","hlut","hlux","hlu","hlup","hlurx","hlur","hlyt","hlyx","hly","hlyp","hlyrx","hlyr","lit","lix","li","lip","liet","liex","lie","liep","lat","lax","la","lap","luot","luox","luo","luop","lot","lox","lo","lop","lex","le","lep","lut","lux","lu","lup","lurx","lur","lyt","lyx","ly","lyp","lyrx","lyr","git","gix","gi","gip","giet","giex","gie","giep","gat","gax","ga","gap","guot","guox","guo","guop","got","gox","go","gop","get","gex","ge","gep","gut","gux","gu","gup","gurx","gur","kit","kix","ki","kip","kiex","kie","kiep","kat"]});var eV=y((P7e,V9)=>{V9.exports=["kax","ka","kap","kuox","kuo","kuop","kot","kox","ko","kop","ket","kex","ke","kep","kut","kux","ku","kup","kurx","kur","ggit","ggix","ggi","ggiex","ggie","ggiep","ggat","ggax","gga","ggap","gguot","gguox","gguo","gguop","ggot","ggox","ggo","ggop","gget","ggex","gge","ggep","ggut","ggux","ggu","ggup","ggurx","ggur","mgiex","mgie","mgat","mgax","mga","mgap","mguox","mguo","mguop","mgot","mgox","mgo","mgop","mgex","mge","mgep","mgut","mgux","mgu","mgup","mgurx","mgur","hxit","hxix","hxi","hxip","hxiet","hxiex","hxie","hxiep","hxat","hxax","hxa","hxap","hxuot","hxuox","hxuo","hxuop","hxot","hxox","hxo","hxop","hxex","hxe","hxep","ngiex","ngie","ngiep","ngat","ngax","nga","ngap","nguot","nguox","nguo","ngot","ngox","ngo","ngop","ngex","nge","ngep","hit","hiex","hie","hat","hax","ha","hap","huot","huox","huo","huop","hot","hox","ho","hop","hex","he","hep","wat","wax","wa","wap","wuox","wuo","wuop","wox","wo","wop","wex","we","wep","zit","zix","zi","zip","ziex","zie","ziep","zat","zax","za","zap","zuox","zuo","zuop","zot","zox","zo","zop","zex","ze","zep","zut","zux","zu","zup","zurx","zur","zyt","zyx","zy","zyp","zyrx","zyr","cit","cix","ci","cip","ciet","ciex","cie","ciep","cat","cax","ca","cap","cuox","cuo","cuop","cot","cox","co","cop","cex","ce","cep","cut","cux","cu","cup","curx","cur","cyt","cyx","cy","cyp","cyrx","cyr","zzit","zzix","zzi","zzip","zziet","zziex","zzie","zziep","zzat","zzax","zza","zzap","zzox","zzo","zzop","zzex","zze","zzep","zzux","zzu","zzup","zzurx","zzur","zzyt","zzyx","zzy","zzyp","zzyrx","zzyr","nzit","nzix","nzi","nzip","nziex","nzie","nziep","nzat","nzax","nza","nzap","nzuox","nzuo","nzox","nzop","nzex","nze","nzux","nzu"]});var iV=y((_7e,tV)=>{tV.exports=["nzup","nzurx","nzur","nzyt","nzyx","nzy","nzyp","nzyrx","nzyr","sit","six","si","sip","siex","sie","siep","sat","sax","sa","sap","suox","suo","suop","sot","sox","so","sop","sex","se","sep","sut","sux","su","sup","surx","sur","syt","syx","sy","syp","syrx","syr","ssit","ssix","ssi","ssip","ssiex","ssie","ssiep","ssat","ssax","ssa","ssap","ssot","ssox","sso","ssop","ssex","sse","ssep","ssut","ssux","ssu","ssup","ssyt","ssyx","ssy","ssyp","ssyrx","ssyr","zhat","zhax","zha","zhap","zhuox","zhuo","zhuop","zhot","zhox","zho","zhop","zhet","zhex","zhe","zhep","zhut","zhux","zhu","zhup","zhurx","zhur","zhyt","zhyx","zhy","zhyp","zhyrx","zhyr","chat","chax","cha","chap","chuot","chuox","chuo","chuop","chot","chox","cho","chop","chet","chex","che","chep","chux","chu","chup","churx","chur","chyt","chyx","chy","chyp","chyrx","chyr","rrax","rra","rruox","rruo","rrot","rrox","rro","rrop","rret","rrex","rre","rrep","rrut","rrux","rru","rrup","rrurx","rrur","rryt","rryx","rry","rryp","rryrx","rryr","nrat","nrax","nra","nrap","nrox","nro","nrop","nret","nrex","nre","nrep","nrut","nrux","nru","nrup","nrurx","nrur","nryt","nryx","nry","nryp","nryrx","nryr","shat","shax","sha","shap","shuox","shuo","shuop","shot","shox","sho","shop","shet","shex","she","shep","shut","shux","shu","shup","shurx","shur","shyt","shyx","shy","shyp","shyrx","shyr","rat","rax","ra","rap","ruox","ruo","ruop","rot","rox","ro","rop","rex","re","rep","rut","rux","ru","rup","rurx","rur","ryt","ryx","ry","ryp","ryrx","ryr","jit","jix","ji","jip","jiet","jiex","jie","jiep","juot","juox","juo","juop","jot","jox","jo","jop","jut","jux","ju","jup","jurx","jur","jyt","jyx","jy","jyp","jyrx","jyr","qit","qix","qi","qip"]});var rV=y((R7e,nV)=>{nV.exports=["qiet","qiex","qie","qiep","quot","quox","quo","quop","qot","qox","qo","qop","qut","qux","qu","qup","qurx","qur","qyt","qyx","qy","qyp","qyrx","qyr","jjit","jjix","jji","jjip","jjiet","jjiex","jjie","jjiep","jjuox","jjuo","jjuop","jjot","jjox","jjo","jjop","jjut","jjux","jju","jjup","jjurx","jjur","jjyt","jjyx","jjy","jjyp","njit","njix","nji","njip","njiet","njiex","njie","njiep","njuox","njuo","njot","njox","njo","njop","njux","nju","njup","njurx","njur","njyt","njyx","njy","njyp","njyrx","njyr","nyit","nyix","nyi","nyip","nyiet","nyiex","nyie","nyiep","nyuox","nyuo","nyuop","nyot","nyox","nyo","nyop","nyut","nyux","nyu","nyup","xit","xix","xi","xip","xiet","xiex","xie","xiep","xuox","xuo","xot","xox","xo","xop","xyt","xyx","xy","xyp","xyrx","xyr","yit","yix","yi","yip","yiet","yiex","yie","yiep","yuot","yuox","yuo","yuop","yot","yox","yo","yop","yut","yux","yu","yup","yurx","yur","yyt","yyx","yy","yyp","yyrx","yyr","[?]","[?]","[?]","Qot","Li","Kit","Nyip","Cyp","Ssi","Ggop","Gep","Mi","Hxit","Lyr","Bbut","Mop","Yo","Put","Hxuo","Tat","Ga","[?]","[?]","Ddur","Bur","Gguo","Nyop","Tu","Op","Jjut","Zot","Pyt","Hmo","Yit","Vur","Shy","Vep","Za","Jo","[?]","Jjy","Got","Jjie","Wo","Du","Shur","Lie","Cy","Cuop","Cip","Hxop","Shat","[?]","Shop","Che","Zziet","[?]","Ke","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var sV=y((L7e,oV)=>{oV.exports=["ga","gag","gagg","gags","gan","ganj","ganh","gad","gal","galg","galm","galb","gals","galt","galp","galh","gam","gab","gabs","gas","gass","gang","gaj","gac","gak","gat","gap","gah","gae","gaeg","gaegg","gaegs","gaen","gaenj","gaenh","gaed","gael","gaelg","gaelm","gaelb","gaels","gaelt","gaelp","gaelh","gaem","gaeb","gaebs","gaes","gaess","gaeng","gaej","gaec","gaek","gaet","gaep","gaeh","gya","gyag","gyagg","gyags","gyan","gyanj","gyanh","gyad","gyal","gyalg","gyalm","gyalb","gyals","gyalt","gyalp","gyalh","gyam","gyab","gyabs","gyas","gyass","gyang","gyaj","gyac","gyak","gyat","gyap","gyah","gyae","gyaeg","gyaegg","gyaegs","gyaen","gyaenj","gyaenh","gyaed","gyael","gyaelg","gyaelm","gyaelb","gyaels","gyaelt","gyaelp","gyaelh","gyaem","gyaeb","gyaebs","gyaes","gyaess","gyaeng","gyaej","gyaec","gyaek","gyaet","gyaep","gyaeh","geo","geog","geogg","geogs","geon","geonj","geonh","geod","geol","geolg","geolm","geolb","geols","geolt","geolp","geolh","geom","geob","geobs","geos","geoss","geong","geoj","geoc","geok","geot","geop","geoh","ge","geg","gegg","gegs","gen","genj","genh","ged","gel","gelg","gelm","gelb","gels","gelt","gelp","gelh","gem","geb","gebs","ges","gess","geng","gej","gec","gek","get","gep","geh","gyeo","gyeog","gyeogg","gyeogs","gyeon","gyeonj","gyeonh","gyeod","gyeol","gyeolg","gyeolm","gyeolb","gyeols","gyeolt","gyeolp","gyeolh","gyeom","gyeob","gyeobs","gyeos","gyeoss","gyeong","gyeoj","gyeoc","gyeok","gyeot","gyeop","gyeoh","gye","gyeg","gyegg","gyegs","gyen","gyenj","gyenh","gyed","gyel","gyelg","gyelm","gyelb","gyels","gyelt","gyelp","gyelh","gyem","gyeb","gyebs","gyes","gyess","gyeng","gyej","gyec","gyek","gyet","gyep","gyeh","go","gog","gogg","gogs","gon","gonj","gonh","god","gol","golg","golm","golb","gols","golt","golp","golh","gom","gob","gobs","gos","goss","gong","goj","goc","gok","got","gop","goh","gwa","gwag","gwagg","gwags"]});var lV=y((F7e,aV)=>{aV.exports=["gwan","gwanj","gwanh","gwad","gwal","gwalg","gwalm","gwalb","gwals","gwalt","gwalp","gwalh","gwam","gwab","gwabs","gwas","gwass","gwang","gwaj","gwac","gwak","gwat","gwap","gwah","gwae","gwaeg","gwaegg","gwaegs","gwaen","gwaenj","gwaenh","gwaed","gwael","gwaelg","gwaelm","gwaelb","gwaels","gwaelt","gwaelp","gwaelh","gwaem","gwaeb","gwaebs","gwaes","gwaess","gwaeng","gwaej","gwaec","gwaek","gwaet","gwaep","gwaeh","goe","goeg","goegg","goegs","goen","goenj","goenh","goed","goel","goelg","goelm","goelb","goels","goelt","goelp","goelh","goem","goeb","goebs","goes","goess","goeng","goej","goec","goek","goet","goep","goeh","gyo","gyog","gyogg","gyogs","gyon","gyonj","gyonh","gyod","gyol","gyolg","gyolm","gyolb","gyols","gyolt","gyolp","gyolh","gyom","gyob","gyobs","gyos","gyoss","gyong","gyoj","gyoc","gyok","gyot","gyop","gyoh","gu","gug","gugg","gugs","gun","gunj","gunh","gud","gul","gulg","gulm","gulb","guls","gult","gulp","gulh","gum","gub","gubs","gus","guss","gung","guj","guc","guk","gut","gup","guh","gweo","gweog","gweogg","gweogs","gweon","gweonj","gweonh","gweod","gweol","gweolg","gweolm","gweolb","gweols","gweolt","gweolp","gweolh","gweom","gweob","gweobs","gweos","gweoss","gweong","gweoj","gweoc","gweok","gweot","gweop","gweoh","gwe","gweg","gwegg","gwegs","gwen","gwenj","gwenh","gwed","gwel","gwelg","gwelm","gwelb","gwels","gwelt","gwelp","gwelh","gwem","gweb","gwebs","gwes","gwess","gweng","gwej","gwec","gwek","gwet","gwep","gweh","gwi","gwig","gwigg","gwigs","gwin","gwinj","gwinh","gwid","gwil","gwilg","gwilm","gwilb","gwils","gwilt","gwilp","gwilh","gwim","gwib","gwibs","gwis","gwiss","gwing","gwij","gwic","gwik","gwit","gwip","gwih","gyu","gyug","gyugg","gyugs","gyun","gyunj","gyunh","gyud","gyul","gyulg","gyulm","gyulb","gyuls","gyult","gyulp","gyulh","gyum","gyub","gyubs","gyus","gyuss","gyung","gyuj","gyuc","gyuk","gyut","gyup","gyuh","geu","geug","geugg","geugs","geun","geunj","geunh","geud"]});var cV=y((I7e,uV)=>{uV.exports=["geul","geulg","geulm","geulb","geuls","geult","geulp","geulh","geum","geub","geubs","geus","geuss","geung","geuj","geuc","geuk","geut","geup","geuh","gyi","gyig","gyigg","gyigs","gyin","gyinj","gyinh","gyid","gyil","gyilg","gyilm","gyilb","gyils","gyilt","gyilp","gyilh","gyim","gyib","gyibs","gyis","gyiss","gying","gyij","gyic","gyik","gyit","gyip","gyih","gi","gig","gigg","gigs","gin","ginj","ginh","gid","gil","gilg","gilm","gilb","gils","gilt","gilp","gilh","gim","gib","gibs","gis","giss","ging","gij","gic","gik","git","gip","gih","gga","ggag","ggagg","ggags","ggan","gganj","gganh","ggad","ggal","ggalg","ggalm","ggalb","ggals","ggalt","ggalp","ggalh","ggam","ggab","ggabs","ggas","ggass","ggang","ggaj","ggac","ggak","ggat","ggap","ggah","ggae","ggaeg","ggaegg","ggaegs","ggaen","ggaenj","ggaenh","ggaed","ggael","ggaelg","ggaelm","ggaelb","ggaels","ggaelt","ggaelp","ggaelh","ggaem","ggaeb","ggaebs","ggaes","ggaess","ggaeng","ggaej","ggaec","ggaek","ggaet","ggaep","ggaeh","ggya","ggyag","ggyagg","ggyags","ggyan","ggyanj","ggyanh","ggyad","ggyal","ggyalg","ggyalm","ggyalb","ggyals","ggyalt","ggyalp","ggyalh","ggyam","ggyab","ggyabs","ggyas","ggyass","ggyang","ggyaj","ggyac","ggyak","ggyat","ggyap","ggyah","ggyae","ggyaeg","ggyaegg","ggyaegs","ggyaen","ggyaenj","ggyaenh","ggyaed","ggyael","ggyaelg","ggyaelm","ggyaelb","ggyaels","ggyaelt","ggyaelp","ggyaelh","ggyaem","ggyaeb","ggyaebs","ggyaes","ggyaess","ggyaeng","ggyaej","ggyaec","ggyaek","ggyaet","ggyaep","ggyaeh","ggeo","ggeog","ggeogg","ggeogs","ggeon","ggeonj","ggeonh","ggeod","ggeol","ggeolg","ggeolm","ggeolb","ggeols","ggeolt","ggeolp","ggeolh","ggeom","ggeob","ggeobs","ggeos","ggeoss","ggeong","ggeoj","ggeoc","ggeok","ggeot","ggeop","ggeoh","gge","ggeg","ggegg","ggegs","ggen","ggenj","ggenh","gged","ggel","ggelg","ggelm","ggelb","ggels","ggelt","ggelp","ggelh","ggem","ggeb","ggebs","gges","ggess","ggeng","ggej","ggec","ggek","gget","ggep","ggeh","ggyeo","ggyeog","ggyeogg","ggyeogs","ggyeon","ggyeonj","ggyeonh","ggyeod","ggyeol","ggyeolg","ggyeolm","ggyeolb"]});var dV=y((j7e,hV)=>{hV.exports=["ggyeols","ggyeolt","ggyeolp","ggyeolh","ggyeom","ggyeob","ggyeobs","ggyeos","ggyeoss","ggyeong","ggyeoj","ggyeoc","ggyeok","ggyeot","ggyeop","ggyeoh","ggye","ggyeg","ggyegg","ggyegs","ggyen","ggyenj","ggyenh","ggyed","ggyel","ggyelg","ggyelm","ggyelb","ggyels","ggyelt","ggyelp","ggyelh","ggyem","ggyeb","ggyebs","ggyes","ggyess","ggyeng","ggyej","ggyec","ggyek","ggyet","ggyep","ggyeh","ggo","ggog","ggogg","ggogs","ggon","ggonj","ggonh","ggod","ggol","ggolg","ggolm","ggolb","ggols","ggolt","ggolp","ggolh","ggom","ggob","ggobs","ggos","ggoss","ggong","ggoj","ggoc","ggok","ggot","ggop","ggoh","ggwa","ggwag","ggwagg","ggwags","ggwan","ggwanj","ggwanh","ggwad","ggwal","ggwalg","ggwalm","ggwalb","ggwals","ggwalt","ggwalp","ggwalh","ggwam","ggwab","ggwabs","ggwas","ggwass","ggwang","ggwaj","ggwac","ggwak","ggwat","ggwap","ggwah","ggwae","ggwaeg","ggwaegg","ggwaegs","ggwaen","ggwaenj","ggwaenh","ggwaed","ggwael","ggwaelg","ggwaelm","ggwaelb","ggwaels","ggwaelt","ggwaelp","ggwaelh","ggwaem","ggwaeb","ggwaebs","ggwaes","ggwaess","ggwaeng","ggwaej","ggwaec","ggwaek","ggwaet","ggwaep","ggwaeh","ggoe","ggoeg","ggoegg","ggoegs","ggoen","ggoenj","ggoenh","ggoed","ggoel","ggoelg","ggoelm","ggoelb","ggoels","ggoelt","ggoelp","ggoelh","ggoem","ggoeb","ggoebs","ggoes","ggoess","ggoeng","ggoej","ggoec","ggoek","ggoet","ggoep","ggoeh","ggyo","ggyog","ggyogg","ggyogs","ggyon","ggyonj","ggyonh","ggyod","ggyol","ggyolg","ggyolm","ggyolb","ggyols","ggyolt","ggyolp","ggyolh","ggyom","ggyob","ggyobs","ggyos","ggyoss","ggyong","ggyoj","ggyoc","ggyok","ggyot","ggyop","ggyoh","ggu","ggug","ggugg","ggugs","ggun","ggunj","ggunh","ggud","ggul","ggulg","ggulm","ggulb","gguls","ggult","ggulp","ggulh","ggum","ggub","ggubs","ggus","gguss","ggung","gguj","gguc","gguk","ggut","ggup","gguh","ggweo","ggweog","ggweogg","ggweogs","ggweon","ggweonj","ggweonh","ggweod","ggweol","ggweolg","ggweolm","ggweolb","ggweols","ggweolt","ggweolp","ggweolh","ggweom","ggweob","ggweobs","ggweos","ggweoss","ggweong","ggweoj","ggweoc","ggweok","ggweot","ggweop","ggweoh","ggwe","ggweg","ggwegg","ggwegs","ggwen","ggwenj","ggwenh","ggwed","ggwel","ggwelg","ggwelm","ggwelb","ggwels","ggwelt","ggwelp","ggwelh"]});var pV=y((A7e,gV)=>{gV.exports=["ggwem","ggweb","ggwebs","ggwes","ggwess","ggweng","ggwej","ggwec","ggwek","ggwet","ggwep","ggweh","ggwi","ggwig","ggwigg","ggwigs","ggwin","ggwinj","ggwinh","ggwid","ggwil","ggwilg","ggwilm","ggwilb","ggwils","ggwilt","ggwilp","ggwilh","ggwim","ggwib","ggwibs","ggwis","ggwiss","ggwing","ggwij","ggwic","ggwik","ggwit","ggwip","ggwih","ggyu","ggyug","ggyugg","ggyugs","ggyun","ggyunj","ggyunh","ggyud","ggyul","ggyulg","ggyulm","ggyulb","ggyuls","ggyult","ggyulp","ggyulh","ggyum","ggyub","ggyubs","ggyus","ggyuss","ggyung","ggyuj","ggyuc","ggyuk","ggyut","ggyup","ggyuh","ggeu","ggeug","ggeugg","ggeugs","ggeun","ggeunj","ggeunh","ggeud","ggeul","ggeulg","ggeulm","ggeulb","ggeuls","ggeult","ggeulp","ggeulh","ggeum","ggeub","ggeubs","ggeus","ggeuss","ggeung","ggeuj","ggeuc","ggeuk","ggeut","ggeup","ggeuh","ggyi","ggyig","ggyigg","ggyigs","ggyin","ggyinj","ggyinh","ggyid","ggyil","ggyilg","ggyilm","ggyilb","ggyils","ggyilt","ggyilp","ggyilh","ggyim","ggyib","ggyibs","ggyis","ggyiss","ggying","ggyij","ggyic","ggyik","ggyit","ggyip","ggyih","ggi","ggig","ggigg","ggigs","ggin","gginj","gginh","ggid","ggil","ggilg","ggilm","ggilb","ggils","ggilt","ggilp","ggilh","ggim","ggib","ggibs","ggis","ggiss","gging","ggij","ggic","ggik","ggit","ggip","ggih","na","nag","nagg","nags","nan","nanj","nanh","nad","nal","nalg","nalm","nalb","nals","nalt","nalp","nalh","nam","nab","nabs","nas","nass","nang","naj","nac","nak","nat","nap","nah","nae","naeg","naegg","naegs","naen","naenj","naenh","naed","nael","naelg","naelm","naelb","naels","naelt","naelp","naelh","naem","naeb","naebs","naes","naess","naeng","naej","naec","naek","naet","naep","naeh","nya","nyag","nyagg","nyags","nyan","nyanj","nyanh","nyad","nyal","nyalg","nyalm","nyalb","nyals","nyalt","nyalp","nyalh","nyam","nyab","nyabs","nyas","nyass","nyang","nyaj","nyac","nyak","nyat","nyap","nyah","nyae","nyaeg","nyaegg","nyaegs","nyaen","nyaenj","nyaenh","nyaed","nyael","nyaelg","nyaelm","nyaelb","nyaels","nyaelt","nyaelp","nyaelh","nyaem","nyaeb","nyaebs","nyaes"]});var mV=y((M7e,fV)=>{fV.exports=["nyaess","nyaeng","nyaej","nyaec","nyaek","nyaet","nyaep","nyaeh","neo","neog","neogg","neogs","neon","neonj","neonh","neod","neol","neolg","neolm","neolb","neols","neolt","neolp","neolh","neom","neob","neobs","neos","neoss","neong","neoj","neoc","neok","neot","neop","neoh","ne","neg","negg","negs","nen","nenj","nenh","ned","nel","nelg","nelm","nelb","nels","nelt","nelp","nelh","nem","neb","nebs","nes","ness","neng","nej","nec","nek","net","nep","neh","nyeo","nyeog","nyeogg","nyeogs","nyeon","nyeonj","nyeonh","nyeod","nyeol","nyeolg","nyeolm","nyeolb","nyeols","nyeolt","nyeolp","nyeolh","nyeom","nyeob","nyeobs","nyeos","nyeoss","nyeong","nyeoj","nyeoc","nyeok","nyeot","nyeop","nyeoh","nye","nyeg","nyegg","nyegs","nyen","nyenj","nyenh","nyed","nyel","nyelg","nyelm","nyelb","nyels","nyelt","nyelp","nyelh","nyem","nyeb","nyebs","nyes","nyess","nyeng","nyej","nyec","nyek","nyet","nyep","nyeh","no","nog","nogg","nogs","non","nonj","nonh","nod","nol","nolg","nolm","nolb","nols","nolt","nolp","nolh","nom","nob","nobs","nos","noss","nong","noj","noc","nok","not","nop","noh","nwa","nwag","nwagg","nwags","nwan","nwanj","nwanh","nwad","nwal","nwalg","nwalm","nwalb","nwals","nwalt","nwalp","nwalh","nwam","nwab","nwabs","nwas","nwass","nwang","nwaj","nwac","nwak","nwat","nwap","nwah","nwae","nwaeg","nwaegg","nwaegs","nwaen","nwaenj","nwaenh","nwaed","nwael","nwaelg","nwaelm","nwaelb","nwaels","nwaelt","nwaelp","nwaelh","nwaem","nwaeb","nwaebs","nwaes","nwaess","nwaeng","nwaej","nwaec","nwaek","nwaet","nwaep","nwaeh","noe","noeg","noegg","noegs","noen","noenj","noenh","noed","noel","noelg","noelm","noelb","noels","noelt","noelp","noelh","noem","noeb","noebs","noes","noess","noeng","noej","noec","noek","noet","noep","noeh","nyo","nyog","nyogg","nyogs","nyon","nyonj","nyonh","nyod","nyol","nyolg","nyolm","nyolb","nyols","nyolt","nyolp","nyolh","nyom","nyob","nyobs","nyos","nyoss","nyong","nyoj","nyoc"]});var bV=y((O7e,yV)=>{yV.exports=["nyok","nyot","nyop","nyoh","nu","nug","nugg","nugs","nun","nunj","nunh","nud","nul","nulg","nulm","nulb","nuls","nult","nulp","nulh","num","nub","nubs","nus","nuss","nung","nuj","nuc","nuk","nut","nup","nuh","nweo","nweog","nweogg","nweogs","nweon","nweonj","nweonh","nweod","nweol","nweolg","nweolm","nweolb","nweols","nweolt","nweolp","nweolh","nweom","nweob","nweobs","nweos","nweoss","nweong","nweoj","nweoc","nweok","nweot","nweop","nweoh","nwe","nweg","nwegg","nwegs","nwen","nwenj","nwenh","nwed","nwel","nwelg","nwelm","nwelb","nwels","nwelt","nwelp","nwelh","nwem","nweb","nwebs","nwes","nwess","nweng","nwej","nwec","nwek","nwet","nwep","nweh","nwi","nwig","nwigg","nwigs","nwin","nwinj","nwinh","nwid","nwil","nwilg","nwilm","nwilb","nwils","nwilt","nwilp","nwilh","nwim","nwib","nwibs","nwis","nwiss","nwing","nwij","nwic","nwik","nwit","nwip","nwih","nyu","nyug","nyugg","nyugs","nyun","nyunj","nyunh","nyud","nyul","nyulg","nyulm","nyulb","nyuls","nyult","nyulp","nyulh","nyum","nyub","nyubs","nyus","nyuss","nyung","nyuj","nyuc","nyuk","nyut","nyup","nyuh","neu","neug","neugg","neugs","neun","neunj","neunh","neud","neul","neulg","neulm","neulb","neuls","neult","neulp","neulh","neum","neub","neubs","neus","neuss","neung","neuj","neuc","neuk","neut","neup","neuh","nyi","nyig","nyigg","nyigs","nyin","nyinj","nyinh","nyid","nyil","nyilg","nyilm","nyilb","nyils","nyilt","nyilp","nyilh","nyim","nyib","nyibs","nyis","nyiss","nying","nyij","nyic","nyik","nyit","nyip","nyih","ni","nig","nigg","nigs","nin","ninj","ninh","nid","nil","nilg","nilm","nilb","nils","nilt","nilp","nilh","nim","nib","nibs","nis","niss","ning","nij","nic","nik","nit","nip","nih","da","dag","dagg","dags","dan","danj","danh","dad","dal","dalg","dalm","dalb","dals","dalt","dalp","dalh","dam","dab","dabs","das","dass","dang","daj","dac","dak","dat","dap","dah"]});var wV=y((N7e,vV)=>{vV.exports=["dae","daeg","daegg","daegs","daen","daenj","daenh","daed","dael","daelg","daelm","daelb","daels","daelt","daelp","daelh","daem","daeb","daebs","daes","daess","daeng","daej","daec","daek","daet","daep","daeh","dya","dyag","dyagg","dyags","dyan","dyanj","dyanh","dyad","dyal","dyalg","dyalm","dyalb","dyals","dyalt","dyalp","dyalh","dyam","dyab","dyabs","dyas","dyass","dyang","dyaj","dyac","dyak","dyat","dyap","dyah","dyae","dyaeg","dyaegg","dyaegs","dyaen","dyaenj","dyaenh","dyaed","dyael","dyaelg","dyaelm","dyaelb","dyaels","dyaelt","dyaelp","dyaelh","dyaem","dyaeb","dyaebs","dyaes","dyaess","dyaeng","dyaej","dyaec","dyaek","dyaet","dyaep","dyaeh","deo","deog","deogg","deogs","deon","deonj","deonh","deod","deol","deolg","deolm","deolb","deols","deolt","deolp","deolh","deom","deob","deobs","deos","deoss","deong","deoj","deoc","deok","deot","deop","deoh","de","deg","degg","degs","den","denj","denh","ded","del","delg","delm","delb","dels","delt","delp","delh","dem","deb","debs","des","dess","deng","dej","dec","dek","det","dep","deh","dyeo","dyeog","dyeogg","dyeogs","dyeon","dyeonj","dyeonh","dyeod","dyeol","dyeolg","dyeolm","dyeolb","dyeols","dyeolt","dyeolp","dyeolh","dyeom","dyeob","dyeobs","dyeos","dyeoss","dyeong","dyeoj","dyeoc","dyeok","dyeot","dyeop","dyeoh","dye","dyeg","dyegg","dyegs","dyen","dyenj","dyenh","dyed","dyel","dyelg","dyelm","dyelb","dyels","dyelt","dyelp","dyelh","dyem","dyeb","dyebs","dyes","dyess","dyeng","dyej","dyec","dyek","dyet","dyep","dyeh","do","dog","dogg","dogs","don","donj","donh","dod","dol","dolg","dolm","dolb","dols","dolt","dolp","dolh","dom","dob","dobs","dos","doss","dong","doj","doc","dok","dot","dop","doh","dwa","dwag","dwagg","dwags","dwan","dwanj","dwanh","dwad","dwal","dwalg","dwalm","dwalb","dwals","dwalt","dwalp","dwalh","dwam","dwab","dwabs","dwas","dwass","dwang","dwaj","dwac","dwak","dwat","dwap","dwah","dwae","dwaeg","dwaegg","dwaegs"]});var CV=y((B7e,DV)=>{DV.exports=["dwaen","dwaenj","dwaenh","dwaed","dwael","dwaelg","dwaelm","dwaelb","dwaels","dwaelt","dwaelp","dwaelh","dwaem","dwaeb","dwaebs","dwaes","dwaess","dwaeng","dwaej","dwaec","dwaek","dwaet","dwaep","dwaeh","doe","doeg","doegg","doegs","doen","doenj","doenh","doed","doel","doelg","doelm","doelb","doels","doelt","doelp","doelh","doem","doeb","doebs","does","doess","doeng","doej","doec","doek","doet","doep","doeh","dyo","dyog","dyogg","dyogs","dyon","dyonj","dyonh","dyod","dyol","dyolg","dyolm","dyolb","dyols","dyolt","dyolp","dyolh","dyom","dyob","dyobs","dyos","dyoss","dyong","dyoj","dyoc","dyok","dyot","dyop","dyoh","du","dug","dugg","dugs","dun","dunj","dunh","dud","dul","dulg","dulm","dulb","duls","dult","dulp","dulh","dum","dub","dubs","dus","duss","dung","duj","duc","duk","dut","dup","duh","dweo","dweog","dweogg","dweogs","dweon","dweonj","dweonh","dweod","dweol","dweolg","dweolm","dweolb","dweols","dweolt","dweolp","dweolh","dweom","dweob","dweobs","dweos","dweoss","dweong","dweoj","dweoc","dweok","dweot","dweop","dweoh","dwe","dweg","dwegg","dwegs","dwen","dwenj","dwenh","dwed","dwel","dwelg","dwelm","dwelb","dwels","dwelt","dwelp","dwelh","dwem","dweb","dwebs","dwes","dwess","dweng","dwej","dwec","dwek","dwet","dwep","dweh","dwi","dwig","dwigg","dwigs","dwin","dwinj","dwinh","dwid","dwil","dwilg","dwilm","dwilb","dwils","dwilt","dwilp","dwilh","dwim","dwib","dwibs","dwis","dwiss","dwing","dwij","dwic","dwik","dwit","dwip","dwih","dyu","dyug","dyugg","dyugs","dyun","dyunj","dyunh","dyud","dyul","dyulg","dyulm","dyulb","dyuls","dyult","dyulp","dyulh","dyum","dyub","dyubs","dyus","dyuss","dyung","dyuj","dyuc","dyuk","dyut","dyup","dyuh","deu","deug","deugg","deugs","deun","deunj","deunh","deud","deul","deulg","deulm","deulb","deuls","deult","deulp","deulh","deum","deub","deubs","deus","deuss","deung","deuj","deuc","deuk","deut","deup","deuh","dyi","dyig","dyigg","dyigs","dyin","dyinj","dyinh","dyid"]});var SV=y((H7e,xV)=>{xV.exports=["dyil","dyilg","dyilm","dyilb","dyils","dyilt","dyilp","dyilh","dyim","dyib","dyibs","dyis","dyiss","dying","dyij","dyic","dyik","dyit","dyip","dyih","di","dig","digg","digs","din","dinj","dinh","did","dil","dilg","dilm","dilb","dils","dilt","dilp","dilh","dim","dib","dibs","dis","diss","ding","dij","dic","dik","dit","dip","dih","dda","ddag","ddagg","ddags","ddan","ddanj","ddanh","ddad","ddal","ddalg","ddalm","ddalb","ddals","ddalt","ddalp","ddalh","ddam","ddab","ddabs","ddas","ddass","ddang","ddaj","ddac","ddak","ddat","ddap","ddah","ddae","ddaeg","ddaegg","ddaegs","ddaen","ddaenj","ddaenh","ddaed","ddael","ddaelg","ddaelm","ddaelb","ddaels","ddaelt","ddaelp","ddaelh","ddaem","ddaeb","ddaebs","ddaes","ddaess","ddaeng","ddaej","ddaec","ddaek","ddaet","ddaep","ddaeh","ddya","ddyag","ddyagg","ddyags","ddyan","ddyanj","ddyanh","ddyad","ddyal","ddyalg","ddyalm","ddyalb","ddyals","ddyalt","ddyalp","ddyalh","ddyam","ddyab","ddyabs","ddyas","ddyass","ddyang","ddyaj","ddyac","ddyak","ddyat","ddyap","ddyah","ddyae","ddyaeg","ddyaegg","ddyaegs","ddyaen","ddyaenj","ddyaenh","ddyaed","ddyael","ddyaelg","ddyaelm","ddyaelb","ddyaels","ddyaelt","ddyaelp","ddyaelh","ddyaem","ddyaeb","ddyaebs","ddyaes","ddyaess","ddyaeng","ddyaej","ddyaec","ddyaek","ddyaet","ddyaep","ddyaeh","ddeo","ddeog","ddeogg","ddeogs","ddeon","ddeonj","ddeonh","ddeod","ddeol","ddeolg","ddeolm","ddeolb","ddeols","ddeolt","ddeolp","ddeolh","ddeom","ddeob","ddeobs","ddeos","ddeoss","ddeong","ddeoj","ddeoc","ddeok","ddeot","ddeop","ddeoh","dde","ddeg","ddegg","ddegs","dden","ddenj","ddenh","dded","ddel","ddelg","ddelm","ddelb","ddels","ddelt","ddelp","ddelh","ddem","ddeb","ddebs","ddes","ddess","ddeng","ddej","ddec","ddek","ddet","ddep","ddeh","ddyeo","ddyeog","ddyeogg","ddyeogs","ddyeon","ddyeonj","ddyeonh","ddyeod","ddyeol","ddyeolg","ddyeolm","ddyeolb","ddyeols","ddyeolt","ddyeolp","ddyeolh","ddyeom","ddyeob","ddyeobs","ddyeos","ddyeoss","ddyeong","ddyeoj","ddyeoc","ddyeok","ddyeot","ddyeop","ddyeoh","ddye","ddyeg","ddyegg","ddyegs","ddyen","ddyenj","ddyenh","ddyed","ddyel","ddyelg","ddyelm","ddyelb"]});var kV=y((q7e,TV)=>{TV.exports=["ddyels","ddyelt","ddyelp","ddyelh","ddyem","ddyeb","ddyebs","ddyes","ddyess","ddyeng","ddyej","ddyec","ddyek","ddyet","ddyep","ddyeh","ddo","ddog","ddogg","ddogs","ddon","ddonj","ddonh","ddod","ddol","ddolg","ddolm","ddolb","ddols","ddolt","ddolp","ddolh","ddom","ddob","ddobs","ddos","ddoss","ddong","ddoj","ddoc","ddok","ddot","ddop","ddoh","ddwa","ddwag","ddwagg","ddwags","ddwan","ddwanj","ddwanh","ddwad","ddwal","ddwalg","ddwalm","ddwalb","ddwals","ddwalt","ddwalp","ddwalh","ddwam","ddwab","ddwabs","ddwas","ddwass","ddwang","ddwaj","ddwac","ddwak","ddwat","ddwap","ddwah","ddwae","ddwaeg","ddwaegg","ddwaegs","ddwaen","ddwaenj","ddwaenh","ddwaed","ddwael","ddwaelg","ddwaelm","ddwaelb","ddwaels","ddwaelt","ddwaelp","ddwaelh","ddwaem","ddwaeb","ddwaebs","ddwaes","ddwaess","ddwaeng","ddwaej","ddwaec","ddwaek","ddwaet","ddwaep","ddwaeh","ddoe","ddoeg","ddoegg","ddoegs","ddoen","ddoenj","ddoenh","ddoed","ddoel","ddoelg","ddoelm","ddoelb","ddoels","ddoelt","ddoelp","ddoelh","ddoem","ddoeb","ddoebs","ddoes","ddoess","ddoeng","ddoej","ddoec","ddoek","ddoet","ddoep","ddoeh","ddyo","ddyog","ddyogg","ddyogs","ddyon","ddyonj","ddyonh","ddyod","ddyol","ddyolg","ddyolm","ddyolb","ddyols","ddyolt","ddyolp","ddyolh","ddyom","ddyob","ddyobs","ddyos","ddyoss","ddyong","ddyoj","ddyoc","ddyok","ddyot","ddyop","ddyoh","ddu","ddug","ddugg","ddugs","ddun","ddunj","ddunh","ddud","ddul","ddulg","ddulm","ddulb","dduls","ddult","ddulp","ddulh","ddum","ddub","ddubs","ddus","dduss","ddung","dduj","dduc","dduk","ddut","ddup","dduh","ddweo","ddweog","ddweogg","ddweogs","ddweon","ddweonj","ddweonh","ddweod","ddweol","ddweolg","ddweolm","ddweolb","ddweols","ddweolt","ddweolp","ddweolh","ddweom","ddweob","ddweobs","ddweos","ddweoss","ddweong","ddweoj","ddweoc","ddweok","ddweot","ddweop","ddweoh","ddwe","ddweg","ddwegg","ddwegs","ddwen","ddwenj","ddwenh","ddwed","ddwel","ddwelg","ddwelm","ddwelb","ddwels","ddwelt","ddwelp","ddwelh","ddwem","ddweb","ddwebs","ddwes","ddwess","ddweng","ddwej","ddwec","ddwek","ddwet","ddwep","ddweh","ddwi","ddwig","ddwigg","ddwigs","ddwin","ddwinj","ddwinh","ddwid","ddwil","ddwilg","ddwilm","ddwilb","ddwils","ddwilt","ddwilp","ddwilh"]});var PV=y((Y7e,EV)=>{EV.exports=["ddwim","ddwib","ddwibs","ddwis","ddwiss","ddwing","ddwij","ddwic","ddwik","ddwit","ddwip","ddwih","ddyu","ddyug","ddyugg","ddyugs","ddyun","ddyunj","ddyunh","ddyud","ddyul","ddyulg","ddyulm","ddyulb","ddyuls","ddyult","ddyulp","ddyulh","ddyum","ddyub","ddyubs","ddyus","ddyuss","ddyung","ddyuj","ddyuc","ddyuk","ddyut","ddyup","ddyuh","ddeu","ddeug","ddeugg","ddeugs","ddeun","ddeunj","ddeunh","ddeud","ddeul","ddeulg","ddeulm","ddeulb","ddeuls","ddeult","ddeulp","ddeulh","ddeum","ddeub","ddeubs","ddeus","ddeuss","ddeung","ddeuj","ddeuc","ddeuk","ddeut","ddeup","ddeuh","ddyi","ddyig","ddyigg","ddyigs","ddyin","ddyinj","ddyinh","ddyid","ddyil","ddyilg","ddyilm","ddyilb","ddyils","ddyilt","ddyilp","ddyilh","ddyim","ddyib","ddyibs","ddyis","ddyiss","ddying","ddyij","ddyic","ddyik","ddyit","ddyip","ddyih","ddi","ddig","ddigg","ddigs","ddin","ddinj","ddinh","ddid","ddil","ddilg","ddilm","ddilb","ddils","ddilt","ddilp","ddilh","ddim","ddib","ddibs","ddis","ddiss","dding","ddij","ddic","ddik","ddit","ddip","ddih","ra","rag","ragg","rags","ran","ranj","ranh","rad","ral","ralg","ralm","ralb","rals","ralt","ralp","ralh","ram","rab","rabs","ras","rass","rang","raj","rac","rak","rat","rap","rah","rae","raeg","raegg","raegs","raen","raenj","raenh","raed","rael","raelg","raelm","raelb","raels","raelt","raelp","raelh","raem","raeb","raebs","raes","raess","raeng","raej","raec","raek","raet","raep","raeh","rya","ryag","ryagg","ryags","ryan","ryanj","ryanh","ryad","ryal","ryalg","ryalm","ryalb","ryals","ryalt","ryalp","ryalh","ryam","ryab","ryabs","ryas","ryass","ryang","ryaj","ryac","ryak","ryat","ryap","ryah","ryae","ryaeg","ryaegg","ryaegs","ryaen","ryaenj","ryaenh","ryaed","ryael","ryaelg","ryaelm","ryaelb","ryaels","ryaelt","ryaelp","ryaelh","ryaem","ryaeb","ryaebs","ryaes","ryaess","ryaeng","ryaej","ryaec","ryaek","ryaet","ryaep","ryaeh","reo","reog","reogg","reogs","reon","reonj","reonh","reod","reol","reolg","reolm","reolb","reols","reolt","reolp","reolh","reom","reob","reobs","reos"]});var RV=y((W7e,_V)=>{_V.exports=["reoss","reong","reoj","reoc","reok","reot","reop","reoh","re","reg","regg","regs","ren","renj","renh","red","rel","relg","relm","relb","rels","relt","relp","relh","rem","reb","rebs","res","ress","reng","rej","rec","rek","ret","rep","reh","ryeo","ryeog","ryeogg","ryeogs","ryeon","ryeonj","ryeonh","ryeod","ryeol","ryeolg","ryeolm","ryeolb","ryeols","ryeolt","ryeolp","ryeolh","ryeom","ryeob","ryeobs","ryeos","ryeoss","ryeong","ryeoj","ryeoc","ryeok","ryeot","ryeop","ryeoh","rye","ryeg","ryegg","ryegs","ryen","ryenj","ryenh","ryed","ryel","ryelg","ryelm","ryelb","ryels","ryelt","ryelp","ryelh","ryem","ryeb","ryebs","ryes","ryess","ryeng","ryej","ryec","ryek","ryet","ryep","ryeh","ro","rog","rogg","rogs","ron","ronj","ronh","rod","rol","rolg","rolm","rolb","rols","rolt","rolp","rolh","rom","rob","robs","ros","ross","rong","roj","roc","rok","rot","rop","roh","rwa","rwag","rwagg","rwags","rwan","rwanj","rwanh","rwad","rwal","rwalg","rwalm","rwalb","rwals","rwalt","rwalp","rwalh","rwam","rwab","rwabs","rwas","rwass","rwang","rwaj","rwac","rwak","rwat","rwap","rwah","rwae","rwaeg","rwaegg","rwaegs","rwaen","rwaenj","rwaenh","rwaed","rwael","rwaelg","rwaelm","rwaelb","rwaels","rwaelt","rwaelp","rwaelh","rwaem","rwaeb","rwaebs","rwaes","rwaess","rwaeng","rwaej","rwaec","rwaek","rwaet","rwaep","rwaeh","roe","roeg","roegg","roegs","roen","roenj","roenh","roed","roel","roelg","roelm","roelb","roels","roelt","roelp","roelh","roem","roeb","roebs","roes","roess","roeng","roej","roec","roek","roet","roep","roeh","ryo","ryog","ryogg","ryogs","ryon","ryonj","ryonh","ryod","ryol","ryolg","ryolm","ryolb","ryols","ryolt","ryolp","ryolh","ryom","ryob","ryobs","ryos","ryoss","ryong","ryoj","ryoc","ryok","ryot","ryop","ryoh","ru","rug","rugg","rugs","run","runj","runh","rud","rul","rulg","rulm","rulb","ruls","rult","rulp","rulh","rum","rub","rubs","rus","russ","rung","ruj","ruc"]});var FV=y((Z7e,LV)=>{LV.exports=["ruk","rut","rup","ruh","rweo","rweog","rweogg","rweogs","rweon","rweonj","rweonh","rweod","rweol","rweolg","rweolm","rweolb","rweols","rweolt","rweolp","rweolh","rweom","rweob","rweobs","rweos","rweoss","rweong","rweoj","rweoc","rweok","rweot","rweop","rweoh","rwe","rweg","rwegg","rwegs","rwen","rwenj","rwenh","rwed","rwel","rwelg","rwelm","rwelb","rwels","rwelt","rwelp","rwelh","rwem","rweb","rwebs","rwes","rwess","rweng","rwej","rwec","rwek","rwet","rwep","rweh","rwi","rwig","rwigg","rwigs","rwin","rwinj","rwinh","rwid","rwil","rwilg","rwilm","rwilb","rwils","rwilt","rwilp","rwilh","rwim","rwib","rwibs","rwis","rwiss","rwing","rwij","rwic","rwik","rwit","rwip","rwih","ryu","ryug","ryugg","ryugs","ryun","ryunj","ryunh","ryud","ryul","ryulg","ryulm","ryulb","ryuls","ryult","ryulp","ryulh","ryum","ryub","ryubs","ryus","ryuss","ryung","ryuj","ryuc","ryuk","ryut","ryup","ryuh","reu","reug","reugg","reugs","reun","reunj","reunh","reud","reul","reulg","reulm","reulb","reuls","reult","reulp","reulh","reum","reub","reubs","reus","reuss","reung","reuj","reuc","reuk","reut","reup","reuh","ryi","ryig","ryigg","ryigs","ryin","ryinj","ryinh","ryid","ryil","ryilg","ryilm","ryilb","ryils","ryilt","ryilp","ryilh","ryim","ryib","ryibs","ryis","ryiss","rying","ryij","ryic","ryik","ryit","ryip","ryih","ri","rig","rigg","rigs","rin","rinj","rinh","rid","ril","rilg","rilm","rilb","rils","rilt","rilp","rilh","rim","rib","ribs","ris","riss","ring","rij","ric","rik","rit","rip","rih","ma","mag","magg","mags","man","manj","manh","mad","mal","malg","malm","malb","mals","malt","malp","malh","mam","mab","mabs","mas","mass","mang","maj","mac","mak","mat","map","mah","mae","maeg","maegg","maegs","maen","maenj","maenh","maed","mael","maelg","maelm","maelb","maels","maelt","maelp","maelh","maem","maeb","maebs","maes","maess","maeng","maej","maec","maek","maet","maep","maeh"]});var jV=y((J7e,IV)=>{IV.exports=["mya","myag","myagg","myags","myan","myanj","myanh","myad","myal","myalg","myalm","myalb","myals","myalt","myalp","myalh","myam","myab","myabs","myas","myass","myang","myaj","myac","myak","myat","myap","myah","myae","myaeg","myaegg","myaegs","myaen","myaenj","myaenh","myaed","myael","myaelg","myaelm","myaelb","myaels","myaelt","myaelp","myaelh","myaem","myaeb","myaebs","myaes","myaess","myaeng","myaej","myaec","myaek","myaet","myaep","myaeh","meo","meog","meogg","meogs","meon","meonj","meonh","meod","meol","meolg","meolm","meolb","meols","meolt","meolp","meolh","meom","meob","meobs","meos","meoss","meong","meoj","meoc","meok","meot","meop","meoh","me","meg","megg","megs","men","menj","menh","med","mel","melg","melm","melb","mels","melt","melp","melh","mem","meb","mebs","mes","mess","meng","mej","mec","mek","met","mep","meh","myeo","myeog","myeogg","myeogs","myeon","myeonj","myeonh","myeod","myeol","myeolg","myeolm","myeolb","myeols","myeolt","myeolp","myeolh","myeom","myeob","myeobs","myeos","myeoss","myeong","myeoj","myeoc","myeok","myeot","myeop","myeoh","mye","myeg","myegg","myegs","myen","myenj","myenh","myed","myel","myelg","myelm","myelb","myels","myelt","myelp","myelh","myem","myeb","myebs","myes","myess","myeng","myej","myec","myek","myet","myep","myeh","mo","mog","mogg","mogs","mon","monj","monh","mod","mol","molg","molm","molb","mols","molt","molp","molh","mom","mob","mobs","mos","moss","mong","moj","moc","mok","mot","mop","moh","mwa","mwag","mwagg","mwags","mwan","mwanj","mwanh","mwad","mwal","mwalg","mwalm","mwalb","mwals","mwalt","mwalp","mwalh","mwam","mwab","mwabs","mwas","mwass","mwang","mwaj","mwac","mwak","mwat","mwap","mwah","mwae","mwaeg","mwaegg","mwaegs","mwaen","mwaenj","mwaenh","mwaed","mwael","mwaelg","mwaelm","mwaelb","mwaels","mwaelt","mwaelp","mwaelh","mwaem","mwaeb","mwaebs","mwaes","mwaess","mwaeng","mwaej","mwaec","mwaek","mwaet","mwaep","mwaeh","moe","moeg","moegg","moegs"]});var MV=y(($7e,AV)=>{AV.exports=["moen","moenj","moenh","moed","moel","moelg","moelm","moelb","moels","moelt","moelp","moelh","moem","moeb","moebs","moes","moess","moeng","moej","moec","moek","moet","moep","moeh","myo","myog","myogg","myogs","myon","myonj","myonh","myod","myol","myolg","myolm","myolb","myols","myolt","myolp","myolh","myom","myob","myobs","myos","myoss","myong","myoj","myoc","myok","myot","myop","myoh","mu","mug","mugg","mugs","mun","munj","munh","mud","mul","mulg","mulm","mulb","muls","mult","mulp","mulh","mum","mub","mubs","mus","muss","mung","muj","muc","muk","mut","mup","muh","mweo","mweog","mweogg","mweogs","mweon","mweonj","mweonh","mweod","mweol","mweolg","mweolm","mweolb","mweols","mweolt","mweolp","mweolh","mweom","mweob","mweobs","mweos","mweoss","mweong","mweoj","mweoc","mweok","mweot","mweop","mweoh","mwe","mweg","mwegg","mwegs","mwen","mwenj","mwenh","mwed","mwel","mwelg","mwelm","mwelb","mwels","mwelt","mwelp","mwelh","mwem","mweb","mwebs","mwes","mwess","mweng","mwej","mwec","mwek","mwet","mwep","mweh","mwi","mwig","mwigg","mwigs","mwin","mwinj","mwinh","mwid","mwil","mwilg","mwilm","mwilb","mwils","mwilt","mwilp","mwilh","mwim","mwib","mwibs","mwis","mwiss","mwing","mwij","mwic","mwik","mwit","mwip","mwih","myu","myug","myugg","myugs","myun","myunj","myunh","myud","myul","myulg","myulm","myulb","myuls","myult","myulp","myulh","myum","myub","myubs","myus","myuss","myung","myuj","myuc","myuk","myut","myup","myuh","meu","meug","meugg","meugs","meun","meunj","meunh","meud","meul","meulg","meulm","meulb","meuls","meult","meulp","meulh","meum","meub","meubs","meus","meuss","meung","meuj","meuc","meuk","meut","meup","meuh","myi","myig","myigg","myigs","myin","myinj","myinh","myid","myil","myilg","myilm","myilb","myils","myilt","myilp","myilh","myim","myib","myibs","myis","myiss","mying","myij","myic","myik","myit","myip","myih","mi","mig","migg","migs","min","minj","minh","mid"]});var NV=y((X7e,OV)=>{OV.exports=["mil","milg","milm","milb","mils","milt","milp","milh","mim","mib","mibs","mis","miss","ming","mij","mic","mik","mit","mip","mih","ba","bag","bagg","bags","ban","banj","banh","bad","bal","balg","balm","balb","bals","balt","balp","balh","bam","bab","babs","bas","bass","bang","baj","bac","bak","bat","bap","bah","bae","baeg","baegg","baegs","baen","baenj","baenh","baed","bael","baelg","baelm","baelb","baels","baelt","baelp","baelh","baem","baeb","baebs","baes","baess","baeng","baej","baec","baek","baet","baep","baeh","bya","byag","byagg","byags","byan","byanj","byanh","byad","byal","byalg","byalm","byalb","byals","byalt","byalp","byalh","byam","byab","byabs","byas","byass","byang","byaj","byac","byak","byat","byap","byah","byae","byaeg","byaegg","byaegs","byaen","byaenj","byaenh","byaed","byael","byaelg","byaelm","byaelb","byaels","byaelt","byaelp","byaelh","byaem","byaeb","byaebs","byaes","byaess","byaeng","byaej","byaec","byaek","byaet","byaep","byaeh","beo","beog","beogg","beogs","beon","beonj","beonh","beod","beol","beolg","beolm","beolb","beols","beolt","beolp","beolh","beom","beob","beobs","beos","beoss","beong","beoj","beoc","beok","beot","beop","beoh","be","beg","begg","begs","ben","benj","benh","bed","bel","belg","belm","belb","bels","belt","belp","belh","bem","beb","bebs","bes","bess","beng","bej","bec","bek","bet","bep","beh","byeo","byeog","byeogg","byeogs","byeon","byeonj","byeonh","byeod","byeol","byeolg","byeolm","byeolb","byeols","byeolt","byeolp","byeolh","byeom","byeob","byeobs","byeos","byeoss","byeong","byeoj","byeoc","byeok","byeot","byeop","byeoh","bye","byeg","byegg","byegs","byen","byenj","byenh","byed","byel","byelg","byelm","byelb","byels","byelt","byelp","byelh","byem","byeb","byebs","byes","byess","byeng","byej","byec","byek","byet","byep","byeh","bo","bog","bogg","bogs","bon","bonj","bonh","bod","bol","bolg","bolm","bolb"]});var HV=y((U7e,BV)=>{BV.exports=["bols","bolt","bolp","bolh","bom","bob","bobs","bos","boss","bong","boj","boc","bok","bot","bop","boh","bwa","bwag","bwagg","bwags","bwan","bwanj","bwanh","bwad","bwal","bwalg","bwalm","bwalb","bwals","bwalt","bwalp","bwalh","bwam","bwab","bwabs","bwas","bwass","bwang","bwaj","bwac","bwak","bwat","bwap","bwah","bwae","bwaeg","bwaegg","bwaegs","bwaen","bwaenj","bwaenh","bwaed","bwael","bwaelg","bwaelm","bwaelb","bwaels","bwaelt","bwaelp","bwaelh","bwaem","bwaeb","bwaebs","bwaes","bwaess","bwaeng","bwaej","bwaec","bwaek","bwaet","bwaep","bwaeh","boe","boeg","boegg","boegs","boen","boenj","boenh","boed","boel","boelg","boelm","boelb","boels","boelt","boelp","boelh","boem","boeb","boebs","boes","boess","boeng","boej","boec","boek","boet","boep","boeh","byo","byog","byogg","byogs","byon","byonj","byonh","byod","byol","byolg","byolm","byolb","byols","byolt","byolp","byolh","byom","byob","byobs","byos","byoss","byong","byoj","byoc","byok","byot","byop","byoh","bu","bug","bugg","bugs","bun","bunj","bunh","bud","bul","bulg","bulm","bulb","buls","bult","bulp","bulh","bum","bub","bubs","bus","buss","bung","buj","buc","buk","but","bup","buh","bweo","bweog","bweogg","bweogs","bweon","bweonj","bweonh","bweod","bweol","bweolg","bweolm","bweolb","bweols","bweolt","bweolp","bweolh","bweom","bweob","bweobs","bweos","bweoss","bweong","bweoj","bweoc","bweok","bweot","bweop","bweoh","bwe","bweg","bwegg","bwegs","bwen","bwenj","bwenh","bwed","bwel","bwelg","bwelm","bwelb","bwels","bwelt","bwelp","bwelh","bwem","bweb","bwebs","bwes","bwess","bweng","bwej","bwec","bwek","bwet","bwep","bweh","bwi","bwig","bwigg","bwigs","bwin","bwinj","bwinh","bwid","bwil","bwilg","bwilm","bwilb","bwils","bwilt","bwilp","bwilh","bwim","bwib","bwibs","bwis","bwiss","bwing","bwij","bwic","bwik","bwit","bwip","bwih","byu","byug","byugg","byugs","byun","byunj","byunh","byud","byul","byulg","byulm","byulb","byuls","byult","byulp","byulh"]});var YV=y((G7e,qV)=>{qV.exports=["byum","byub","byubs","byus","byuss","byung","byuj","byuc","byuk","byut","byup","byuh","beu","beug","beugg","beugs","beun","beunj","beunh","beud","beul","beulg","beulm","beulb","beuls","beult","beulp","beulh","beum","beub","beubs","beus","beuss","beung","beuj","beuc","beuk","beut","beup","beuh","byi","byig","byigg","byigs","byin","byinj","byinh","byid","byil","byilg","byilm","byilb","byils","byilt","byilp","byilh","byim","byib","byibs","byis","byiss","bying","byij","byic","byik","byit","byip","byih","bi","big","bigg","bigs","bin","binj","binh","bid","bil","bilg","bilm","bilb","bils","bilt","bilp","bilh","bim","bib","bibs","bis","biss","bing","bij","bic","bik","bit","bip","bih","bba","bbag","bbagg","bbags","bban","bbanj","bbanh","bbad","bbal","bbalg","bbalm","bbalb","bbals","bbalt","bbalp","bbalh","bbam","bbab","bbabs","bbas","bbass","bbang","bbaj","bbac","bbak","bbat","bbap","bbah","bbae","bbaeg","bbaegg","bbaegs","bbaen","bbaenj","bbaenh","bbaed","bbael","bbaelg","bbaelm","bbaelb","bbaels","bbaelt","bbaelp","bbaelh","bbaem","bbaeb","bbaebs","bbaes","bbaess","bbaeng","bbaej","bbaec","bbaek","bbaet","bbaep","bbaeh","bbya","bbyag","bbyagg","bbyags","bbyan","bbyanj","bbyanh","bbyad","bbyal","bbyalg","bbyalm","bbyalb","bbyals","bbyalt","bbyalp","bbyalh","bbyam","bbyab","bbyabs","bbyas","bbyass","bbyang","bbyaj","bbyac","bbyak","bbyat","bbyap","bbyah","bbyae","bbyaeg","bbyaegg","bbyaegs","bbyaen","bbyaenj","bbyaenh","bbyaed","bbyael","bbyaelg","bbyaelm","bbyaelb","bbyaels","bbyaelt","bbyaelp","bbyaelh","bbyaem","bbyaeb","bbyaebs","bbyaes","bbyaess","bbyaeng","bbyaej","bbyaec","bbyaek","bbyaet","bbyaep","bbyaeh","bbeo","bbeog","bbeogg","bbeogs","bbeon","bbeonj","bbeonh","bbeod","bbeol","bbeolg","bbeolm","bbeolb","bbeols","bbeolt","bbeolp","bbeolh","bbeom","bbeob","bbeobs","bbeos","bbeoss","bbeong","bbeoj","bbeoc","bbeok","bbeot","bbeop","bbeoh","bbe","bbeg","bbegg","bbegs","bben","bbenj","bbenh","bbed","bbel","bbelg","bbelm","bbelb","bbels","bbelt","bbelp","bbelh","bbem","bbeb","bbebs","bbes"]});var ZV=y((K7e,WV)=>{WV.exports=["bbess","bbeng","bbej","bbec","bbek","bbet","bbep","bbeh","bbyeo","bbyeog","bbyeogg","bbyeogs","bbyeon","bbyeonj","bbyeonh","bbyeod","bbyeol","bbyeolg","bbyeolm","bbyeolb","bbyeols","bbyeolt","bbyeolp","bbyeolh","bbyeom","bbyeob","bbyeobs","bbyeos","bbyeoss","bbyeong","bbyeoj","bbyeoc","bbyeok","bbyeot","bbyeop","bbyeoh","bbye","bbyeg","bbyegg","bbyegs","bbyen","bbyenj","bbyenh","bbyed","bbyel","bbyelg","bbyelm","bbyelb","bbyels","bbyelt","bbyelp","bbyelh","bbyem","bbyeb","bbyebs","bbyes","bbyess","bbyeng","bbyej","bbyec","bbyek","bbyet","bbyep","bbyeh","bbo","bbog","bbogg","bbogs","bbon","bbonj","bbonh","bbod","bbol","bbolg","bbolm","bbolb","bbols","bbolt","bbolp","bbolh","bbom","bbob","bbobs","bbos","bboss","bbong","bboj","bboc","bbok","bbot","bbop","bboh","bbwa","bbwag","bbwagg","bbwags","bbwan","bbwanj","bbwanh","bbwad","bbwal","bbwalg","bbwalm","bbwalb","bbwals","bbwalt","bbwalp","bbwalh","bbwam","bbwab","bbwabs","bbwas","bbwass","bbwang","bbwaj","bbwac","bbwak","bbwat","bbwap","bbwah","bbwae","bbwaeg","bbwaegg","bbwaegs","bbwaen","bbwaenj","bbwaenh","bbwaed","bbwael","bbwaelg","bbwaelm","bbwaelb","bbwaels","bbwaelt","bbwaelp","bbwaelh","bbwaem","bbwaeb","bbwaebs","bbwaes","bbwaess","bbwaeng","bbwaej","bbwaec","bbwaek","bbwaet","bbwaep","bbwaeh","bboe","bboeg","bboegg","bboegs","bboen","bboenj","bboenh","bboed","bboel","bboelg","bboelm","bboelb","bboels","bboelt","bboelp","bboelh","bboem","bboeb","bboebs","bboes","bboess","bboeng","bboej","bboec","bboek","bboet","bboep","bboeh","bbyo","bbyog","bbyogg","bbyogs","bbyon","bbyonj","bbyonh","bbyod","bbyol","bbyolg","bbyolm","bbyolb","bbyols","bbyolt","bbyolp","bbyolh","bbyom","bbyob","bbyobs","bbyos","bbyoss","bbyong","bbyoj","bbyoc","bbyok","bbyot","bbyop","bbyoh","bbu","bbug","bbugg","bbugs","bbun","bbunj","bbunh","bbud","bbul","bbulg","bbulm","bbulb","bbuls","bbult","bbulp","bbulh","bbum","bbub","bbubs","bbus","bbuss","bbung","bbuj","bbuc","bbuk","bbut","bbup","bbuh","bbweo","bbweog","bbweogg","bbweogs","bbweon","bbweonj","bbweonh","bbweod","bbweol","bbweolg","bbweolm","bbweolb","bbweols","bbweolt","bbweolp","bbweolh","bbweom","bbweob","bbweobs","bbweos","bbweoss","bbweong","bbweoj","bbweoc"]});var $V=y((Q7e,JV)=>{JV.exports=["bbweok","bbweot","bbweop","bbweoh","bbwe","bbweg","bbwegg","bbwegs","bbwen","bbwenj","bbwenh","bbwed","bbwel","bbwelg","bbwelm","bbwelb","bbwels","bbwelt","bbwelp","bbwelh","bbwem","bbweb","bbwebs","bbwes","bbwess","bbweng","bbwej","bbwec","bbwek","bbwet","bbwep","bbweh","bbwi","bbwig","bbwigg","bbwigs","bbwin","bbwinj","bbwinh","bbwid","bbwil","bbwilg","bbwilm","bbwilb","bbwils","bbwilt","bbwilp","bbwilh","bbwim","bbwib","bbwibs","bbwis","bbwiss","bbwing","bbwij","bbwic","bbwik","bbwit","bbwip","bbwih","bbyu","bbyug","bbyugg","bbyugs","bbyun","bbyunj","bbyunh","bbyud","bbyul","bbyulg","bbyulm","bbyulb","bbyuls","bbyult","bbyulp","bbyulh","bbyum","bbyub","bbyubs","bbyus","bbyuss","bbyung","bbyuj","bbyuc","bbyuk","bbyut","bbyup","bbyuh","bbeu","bbeug","bbeugg","bbeugs","bbeun","bbeunj","bbeunh","bbeud","bbeul","bbeulg","bbeulm","bbeulb","bbeuls","bbeult","bbeulp","bbeulh","bbeum","bbeub","bbeubs","bbeus","bbeuss","bbeung","bbeuj","bbeuc","bbeuk","bbeut","bbeup","bbeuh","bbyi","bbyig","bbyigg","bbyigs","bbyin","bbyinj","bbyinh","bbyid","bbyil","bbyilg","bbyilm","bbyilb","bbyils","bbyilt","bbyilp","bbyilh","bbyim","bbyib","bbyibs","bbyis","bbyiss","bbying","bbyij","bbyic","bbyik","bbyit","bbyip","bbyih","bbi","bbig","bbigg","bbigs","bbin","bbinj","bbinh","bbid","bbil","bbilg","bbilm","bbilb","bbils","bbilt","bbilp","bbilh","bbim","bbib","bbibs","bbis","bbiss","bbing","bbij","bbic","bbik","bbit","bbip","bbih","sa","sag","sagg","sags","san","sanj","sanh","sad","sal","salg","salm","salb","sals","salt","salp","salh","sam","sab","sabs","sas","sass","sang","saj","sac","sak","sat","sap","sah","sae","saeg","saegg","saegs","saen","saenj","saenh","saed","sael","saelg","saelm","saelb","saels","saelt","saelp","saelh","saem","saeb","saebs","saes","saess","saeng","saej","saec","saek","saet","saep","saeh","sya","syag","syagg","syags","syan","syanj","syanh","syad","syal","syalg","syalm","syalb","syals","syalt","syalp","syalh","syam","syab","syabs","syas","syass","syang","syaj","syac","syak","syat","syap","syah"]});var UV=y((z7e,XV)=>{XV.exports=["syae","syaeg","syaegg","syaegs","syaen","syaenj","syaenh","syaed","syael","syaelg","syaelm","syaelb","syaels","syaelt","syaelp","syaelh","syaem","syaeb","syaebs","syaes","syaess","syaeng","syaej","syaec","syaek","syaet","syaep","syaeh","seo","seog","seogg","seogs","seon","seonj","seonh","seod","seol","seolg","seolm","seolb","seols","seolt","seolp","seolh","seom","seob","seobs","seos","seoss","seong","seoj","seoc","seok","seot","seop","seoh","se","seg","segg","segs","sen","senj","senh","sed","sel","selg","selm","selb","sels","selt","selp","selh","sem","seb","sebs","ses","sess","seng","sej","sec","sek","set","sep","seh","syeo","syeog","syeogg","syeogs","syeon","syeonj","syeonh","syeod","syeol","syeolg","syeolm","syeolb","syeols","syeolt","syeolp","syeolh","syeom","syeob","syeobs","syeos","syeoss","syeong","syeoj","syeoc","syeok","syeot","syeop","syeoh","sye","syeg","syegg","syegs","syen","syenj","syenh","syed","syel","syelg","syelm","syelb","syels","syelt","syelp","syelh","syem","syeb","syebs","syes","syess","syeng","syej","syec","syek","syet","syep","syeh","so","sog","sogg","sogs","son","sonj","sonh","sod","sol","solg","solm","solb","sols","solt","solp","solh","som","sob","sobs","sos","soss","song","soj","soc","sok","sot","sop","soh","swa","swag","swagg","swags","swan","swanj","swanh","swad","swal","swalg","swalm","swalb","swals","swalt","swalp","swalh","swam","swab","swabs","swas","swass","swang","swaj","swac","swak","swat","swap","swah","swae","swaeg","swaegg","swaegs","swaen","swaenj","swaenh","swaed","swael","swaelg","swaelm","swaelb","swaels","swaelt","swaelp","swaelh","swaem","swaeb","swaebs","swaes","swaess","swaeng","swaej","swaec","swaek","swaet","swaep","swaeh","soe","soeg","soegg","soegs","soen","soenj","soenh","soed","soel","soelg","soelm","soelb","soels","soelt","soelp","soelh","soem","soeb","soebs","soes","soess","soeng","soej","soec","soek","soet","soep","soeh","syo","syog","syogg","syogs"]});var KV=y((V7e,GV)=>{GV.exports=["syon","syonj","syonh","syod","syol","syolg","syolm","syolb","syols","syolt","syolp","syolh","syom","syob","syobs","syos","syoss","syong","syoj","syoc","syok","syot","syop","syoh","su","sug","sugg","sugs","sun","sunj","sunh","sud","sul","sulg","sulm","sulb","suls","sult","sulp","sulh","sum","sub","subs","sus","suss","sung","suj","suc","suk","sut","sup","suh","sweo","sweog","sweogg","sweogs","sweon","sweonj","sweonh","sweod","sweol","sweolg","sweolm","sweolb","sweols","sweolt","sweolp","sweolh","sweom","sweob","sweobs","sweos","sweoss","sweong","sweoj","sweoc","sweok","sweot","sweop","sweoh","swe","sweg","swegg","swegs","swen","swenj","swenh","swed","swel","swelg","swelm","swelb","swels","swelt","swelp","swelh","swem","sweb","swebs","swes","swess","sweng","swej","swec","swek","swet","swep","sweh","swi","swig","swigg","swigs","swin","swinj","swinh","swid","swil","swilg","swilm","swilb","swils","swilt","swilp","swilh","swim","swib","swibs","swis","swiss","swing","swij","swic","swik","swit","swip","swih","syu","syug","syugg","syugs","syun","syunj","syunh","syud","syul","syulg","syulm","syulb","syuls","syult","syulp","syulh","syum","syub","syubs","syus","syuss","syung","syuj","syuc","syuk","syut","syup","syuh","seu","seug","seugg","seugs","seun","seunj","seunh","seud","seul","seulg","seulm","seulb","seuls","seult","seulp","seulh","seum","seub","seubs","seus","seuss","seung","seuj","seuc","seuk","seut","seup","seuh","syi","syig","syigg","syigs","syin","syinj","syinh","syid","syil","syilg","syilm","syilb","syils","syilt","syilp","syilh","syim","syib","syibs","syis","syiss","sying","syij","syic","syik","syit","syip","syih","si","sig","sigg","sigs","sin","sinj","sinh","sid","sil","silg","silm","silb","sils","silt","silp","silh","sim","sib","sibs","sis","siss","sing","sij","sic","sik","sit","sip","sih","ssa","ssag","ssagg","ssags","ssan","ssanj","ssanh","ssad"]});var zV=y((e5e,QV)=>{QV.exports=["ssal","ssalg","ssalm","ssalb","ssals","ssalt","ssalp","ssalh","ssam","ssab","ssabs","ssas","ssass","ssang","ssaj","ssac","ssak","ssat","ssap","ssah","ssae","ssaeg","ssaegg","ssaegs","ssaen","ssaenj","ssaenh","ssaed","ssael","ssaelg","ssaelm","ssaelb","ssaels","ssaelt","ssaelp","ssaelh","ssaem","ssaeb","ssaebs","ssaes","ssaess","ssaeng","ssaej","ssaec","ssaek","ssaet","ssaep","ssaeh","ssya","ssyag","ssyagg","ssyags","ssyan","ssyanj","ssyanh","ssyad","ssyal","ssyalg","ssyalm","ssyalb","ssyals","ssyalt","ssyalp","ssyalh","ssyam","ssyab","ssyabs","ssyas","ssyass","ssyang","ssyaj","ssyac","ssyak","ssyat","ssyap","ssyah","ssyae","ssyaeg","ssyaegg","ssyaegs","ssyaen","ssyaenj","ssyaenh","ssyaed","ssyael","ssyaelg","ssyaelm","ssyaelb","ssyaels","ssyaelt","ssyaelp","ssyaelh","ssyaem","ssyaeb","ssyaebs","ssyaes","ssyaess","ssyaeng","ssyaej","ssyaec","ssyaek","ssyaet","ssyaep","ssyaeh","sseo","sseog","sseogg","sseogs","sseon","sseonj","sseonh","sseod","sseol","sseolg","sseolm","sseolb","sseols","sseolt","sseolp","sseolh","sseom","sseob","sseobs","sseos","sseoss","sseong","sseoj","sseoc","sseok","sseot","sseop","sseoh","sse","sseg","ssegg","ssegs","ssen","ssenj","ssenh","ssed","ssel","sselg","sselm","sselb","ssels","sselt","sselp","sselh","ssem","sseb","ssebs","sses","ssess","sseng","ssej","ssec","ssek","sset","ssep","sseh","ssyeo","ssyeog","ssyeogg","ssyeogs","ssyeon","ssyeonj","ssyeonh","ssyeod","ssyeol","ssyeolg","ssyeolm","ssyeolb","ssyeols","ssyeolt","ssyeolp","ssyeolh","ssyeom","ssyeob","ssyeobs","ssyeos","ssyeoss","ssyeong","ssyeoj","ssyeoc","ssyeok","ssyeot","ssyeop","ssyeoh","ssye","ssyeg","ssyegg","ssyegs","ssyen","ssyenj","ssyenh","ssyed","ssyel","ssyelg","ssyelm","ssyelb","ssyels","ssyelt","ssyelp","ssyelh","ssyem","ssyeb","ssyebs","ssyes","ssyess","ssyeng","ssyej","ssyec","ssyek","ssyet","ssyep","ssyeh","sso","ssog","ssogg","ssogs","sson","ssonj","ssonh","ssod","ssol","ssolg","ssolm","ssolb","ssols","ssolt","ssolp","ssolh","ssom","ssob","ssobs","ssos","ssoss","ssong","ssoj","ssoc","ssok","ssot","ssop","ssoh","sswa","sswag","sswagg","sswags","sswan","sswanj","sswanh","sswad","sswal","sswalg","sswalm","sswalb"]});var eee=y((t5e,VV)=>{VV.exports=["sswals","sswalt","sswalp","sswalh","sswam","sswab","sswabs","sswas","sswass","sswang","sswaj","sswac","sswak","sswat","sswap","sswah","sswae","sswaeg","sswaegg","sswaegs","sswaen","sswaenj","sswaenh","sswaed","sswael","sswaelg","sswaelm","sswaelb","sswaels","sswaelt","sswaelp","sswaelh","sswaem","sswaeb","sswaebs","sswaes","sswaess","sswaeng","sswaej","sswaec","sswaek","sswaet","sswaep","sswaeh","ssoe","ssoeg","ssoegg","ssoegs","ssoen","ssoenj","ssoenh","ssoed","ssoel","ssoelg","ssoelm","ssoelb","ssoels","ssoelt","ssoelp","ssoelh","ssoem","ssoeb","ssoebs","ssoes","ssoess","ssoeng","ssoej","ssoec","ssoek","ssoet","ssoep","ssoeh","ssyo","ssyog","ssyogg","ssyogs","ssyon","ssyonj","ssyonh","ssyod","ssyol","ssyolg","ssyolm","ssyolb","ssyols","ssyolt","ssyolp","ssyolh","ssyom","ssyob","ssyobs","ssyos","ssyoss","ssyong","ssyoj","ssyoc","ssyok","ssyot","ssyop","ssyoh","ssu","ssug","ssugg","ssugs","ssun","ssunj","ssunh","ssud","ssul","ssulg","ssulm","ssulb","ssuls","ssult","ssulp","ssulh","ssum","ssub","ssubs","ssus","ssuss","ssung","ssuj","ssuc","ssuk","ssut","ssup","ssuh","ssweo","ssweog","ssweogg","ssweogs","ssweon","ssweonj","ssweonh","ssweod","ssweol","ssweolg","ssweolm","ssweolb","ssweols","ssweolt","ssweolp","ssweolh","ssweom","ssweob","ssweobs","ssweos","ssweoss","ssweong","ssweoj","ssweoc","ssweok","ssweot","ssweop","ssweoh","sswe","ssweg","sswegg","sswegs","sswen","sswenj","sswenh","sswed","sswel","sswelg","sswelm","sswelb","sswels","sswelt","sswelp","sswelh","sswem","ssweb","sswebs","sswes","sswess","ssweng","sswej","sswec","sswek","sswet","sswep","ssweh","sswi","sswig","sswigg","sswigs","sswin","sswinj","sswinh","sswid","sswil","sswilg","sswilm","sswilb","sswils","sswilt","sswilp","sswilh","sswim","sswib","sswibs","sswis","sswiss","sswing","sswij","sswic","sswik","sswit","sswip","sswih","ssyu","ssyug","ssyugg","ssyugs","ssyun","ssyunj","ssyunh","ssyud","ssyul","ssyulg","ssyulm","ssyulb","ssyuls","ssyult","ssyulp","ssyulh","ssyum","ssyub","ssyubs","ssyus","ssyuss","ssyung","ssyuj","ssyuc","ssyuk","ssyut","ssyup","ssyuh","sseu","sseug","sseugg","sseugs","sseun","sseunj","sseunh","sseud","sseul","sseulg","sseulm","sseulb","sseuls","sseult","sseulp","sseulh"]});var iee=y((i5e,tee)=>{tee.exports=["sseum","sseub","sseubs","sseus","sseuss","sseung","sseuj","sseuc","sseuk","sseut","sseup","sseuh","ssyi","ssyig","ssyigg","ssyigs","ssyin","ssyinj","ssyinh","ssyid","ssyil","ssyilg","ssyilm","ssyilb","ssyils","ssyilt","ssyilp","ssyilh","ssyim","ssyib","ssyibs","ssyis","ssyiss","ssying","ssyij","ssyic","ssyik","ssyit","ssyip","ssyih","ssi","ssig","ssigg","ssigs","ssin","ssinj","ssinh","ssid","ssil","ssilg","ssilm","ssilb","ssils","ssilt","ssilp","ssilh","ssim","ssib","ssibs","ssis","ssiss","ssing","ssij","ssic","ssik","ssit","ssip","ssih","a","ag","agg","ags","an","anj","anh","ad","al","alg","alm","alb","als","alt","alp","alh","am","ab","abs","as","ass","ang","aj","ac","ak","at","ap","ah","ae","aeg","aegg","aegs","aen","aenj","aenh","aed","ael","aelg","aelm","aelb","aels","aelt","aelp","aelh","aem","aeb","aebs","aes","aess","aeng","aej","aec","aek","aet","aep","aeh","ya","yag","yagg","yags","yan","yanj","yanh","yad","yal","yalg","yalm","yalb","yals","yalt","yalp","yalh","yam","yab","yabs","yas","yass","yang","yaj","yac","yak","yat","yap","yah","yae","yaeg","yaegg","yaegs","yaen","yaenj","yaenh","yaed","yael","yaelg","yaelm","yaelb","yaels","yaelt","yaelp","yaelh","yaem","yaeb","yaebs","yaes","yaess","yaeng","yaej","yaec","yaek","yaet","yaep","yaeh","eo","eog","eogg","eogs","eon","eonj","eonh","eod","eol","eolg","eolm","eolb","eols","eolt","eolp","eolh","eom","eob","eobs","eos","eoss","eong","eoj","eoc","eok","eot","eop","eoh","e","eg","egg","egs","en","enj","enh","ed","el","elg","elm","elb","els","elt","elp","elh","em","eb","ebs","es","ess","eng","ej","ec","ek","et","ep","eh","yeo","yeog","yeogg","yeogs","yeon","yeonj","yeonh","yeod","yeol","yeolg","yeolm","yeolb","yeols","yeolt","yeolp","yeolh","yeom","yeob","yeobs","yeos"]});var ree=y((n5e,nee)=>{nee.exports=["yeoss","yeong","yeoj","yeoc","yeok","yeot","yeop","yeoh","ye","yeg","yegg","yegs","yen","yenj","yenh","yed","yel","yelg","yelm","yelb","yels","yelt","yelp","yelh","yem","yeb","yebs","yes","yess","yeng","yej","yec","yek","yet","yep","yeh","o","og","ogg","ogs","on","onj","onh","od","ol","olg","olm","olb","ols","olt","olp","olh","om","ob","obs","os","oss","ong","oj","oc","ok","ot","op","oh","wa","wag","wagg","wags","wan","wanj","wanh","wad","wal","walg","walm","walb","wals","walt","walp","walh","wam","wab","wabs","was","wass","wang","waj","wac","wak","wat","wap","wah","wae","waeg","waegg","waegs","waen","waenj","waenh","waed","wael","waelg","waelm","waelb","waels","waelt","waelp","waelh","waem","waeb","waebs","waes","waess","waeng","waej","waec","waek","waet","waep","waeh","oe","oeg","oegg","oegs","oen","oenj","oenh","oed","oel","oelg","oelm","oelb","oels","oelt","oelp","oelh","oem","oeb","oebs","oes","oess","oeng","oej","oec","oek","oet","oep","oeh","yo","yog","yogg","yogs","yon","yonj","yonh","yod","yol","yolg","yolm","yolb","yols","yolt","yolp","yolh","yom","yob","yobs","yos","yoss","yong","yoj","yoc","yok","yot","yop","yoh","u","ug","ugg","ugs","un","unj","unh","ud","ul","ulg","ulm","ulb","uls","ult","ulp","ulh","um","ub","ubs","us","uss","ung","uj","uc","uk","ut","up","uh","weo","weog","weogg","weogs","weon","weonj","weonh","weod","weol","weolg","weolm","weolb","weols","weolt","weolp","weolh","weom","weob","weobs","weos","weoss","weong","weoj","weoc","weok","weot","weop","weoh","we","weg","wegg","wegs","wen","wenj","wenh","wed","wel","welg","welm","welb","wels","welt","welp","welh","wem","web","webs","wes","wess","weng","wej","wec"]});var see=y((r5e,oee)=>{oee.exports=["wek","wet","wep","weh","wi","wig","wigg","wigs","win","winj","winh","wid","wil","wilg","wilm","wilb","wils","wilt","wilp","wilh","wim","wib","wibs","wis","wiss","wing","wij","wic","wik","wit","wip","wih","yu","yug","yugg","yugs","yun","yunj","yunh","yud","yul","yulg","yulm","yulb","yuls","yult","yulp","yulh","yum","yub","yubs","yus","yuss","yung","yuj","yuc","yuk","yut","yup","yuh","eu","eug","eugg","eugs","eun","eunj","eunh","eud","eul","eulg","eulm","eulb","euls","eult","eulp","eulh","eum","eub","eubs","eus","euss","eung","euj","euc","euk","eut","eup","euh","yi","yig","yigg","yigs","yin","yinj","yinh","yid","yil","yilg","yilm","yilb","yils","yilt","yilp","yilh","yim","yib","yibs","yis","yiss","ying","yij","yic","yik","yit","yip","yih","i","ig","igg","igs","in","inj","inh","id","il","ilg","ilm","ilb","ils","ilt","ilp","ilh","im","ib","ibs","is","iss","ing","ij","ic","ik","it","ip","ih","ja","jag","jagg","jags","jan","janj","janh","jad","jal","jalg","jalm","jalb","jals","jalt","jalp","jalh","jam","jab","jabs","jas","jass","jang","jaj","jac","jak","jat","jap","jah","jae","jaeg","jaegg","jaegs","jaen","jaenj","jaenh","jaed","jael","jaelg","jaelm","jaelb","jaels","jaelt","jaelp","jaelh","jaem","jaeb","jaebs","jaes","jaess","jaeng","jaej","jaec","jaek","jaet","jaep","jaeh","jya","jyag","jyagg","jyags","jyan","jyanj","jyanh","jyad","jyal","jyalg","jyalm","jyalb","jyals","jyalt","jyalp","jyalh","jyam","jyab","jyabs","jyas","jyass","jyang","jyaj","jyac","jyak","jyat","jyap","jyah","jyae","jyaeg","jyaegg","jyaegs","jyaen","jyaenj","jyaenh","jyaed","jyael","jyaelg","jyaelm","jyaelb","jyaels","jyaelt","jyaelp","jyaelh","jyaem","jyaeb","jyaebs","jyaes","jyaess","jyaeng","jyaej","jyaec","jyaek","jyaet","jyaep","jyaeh"]});var lee=y((o5e,aee)=>{aee.exports=["jeo","jeog","jeogg","jeogs","jeon","jeonj","jeonh","jeod","jeol","jeolg","jeolm","jeolb","jeols","jeolt","jeolp","jeolh","jeom","jeob","jeobs","jeos","jeoss","jeong","jeoj","jeoc","jeok","jeot","jeop","jeoh","je","jeg","jegg","jegs","jen","jenj","jenh","jed","jel","jelg","jelm","jelb","jels","jelt","jelp","jelh","jem","jeb","jebs","jes","jess","jeng","jej","jec","jek","jet","jep","jeh","jyeo","jyeog","jyeogg","jyeogs","jyeon","jyeonj","jyeonh","jyeod","jyeol","jyeolg","jyeolm","jyeolb","jyeols","jyeolt","jyeolp","jyeolh","jyeom","jyeob","jyeobs","jyeos","jyeoss","jyeong","jyeoj","jyeoc","jyeok","jyeot","jyeop","jyeoh","jye","jyeg","jyegg","jyegs","jyen","jyenj","jyenh","jyed","jyel","jyelg","jyelm","jyelb","jyels","jyelt","jyelp","jyelh","jyem","jyeb","jyebs","jyes","jyess","jyeng","jyej","jyec","jyek","jyet","jyep","jyeh","jo","jog","jogg","jogs","jon","jonj","jonh","jod","jol","jolg","jolm","jolb","jols","jolt","jolp","jolh","jom","job","jobs","jos","joss","jong","joj","joc","jok","jot","jop","joh","jwa","jwag","jwagg","jwags","jwan","jwanj","jwanh","jwad","jwal","jwalg","jwalm","jwalb","jwals","jwalt","jwalp","jwalh","jwam","jwab","jwabs","jwas","jwass","jwang","jwaj","jwac","jwak","jwat","jwap","jwah","jwae","jwaeg","jwaegg","jwaegs","jwaen","jwaenj","jwaenh","jwaed","jwael","jwaelg","jwaelm","jwaelb","jwaels","jwaelt","jwaelp","jwaelh","jwaem","jwaeb","jwaebs","jwaes","jwaess","jwaeng","jwaej","jwaec","jwaek","jwaet","jwaep","jwaeh","joe","joeg","joegg","joegs","joen","joenj","joenh","joed","joel","joelg","joelm","joelb","joels","joelt","joelp","joelh","joem","joeb","joebs","joes","joess","joeng","joej","joec","joek","joet","joep","joeh","jyo","jyog","jyogg","jyogs","jyon","jyonj","jyonh","jyod","jyol","jyolg","jyolm","jyolb","jyols","jyolt","jyolp","jyolh","jyom","jyob","jyobs","jyos","jyoss","jyong","jyoj","jyoc","jyok","jyot","jyop","jyoh","ju","jug","jugg","jugs"]});var cee=y((s5e,uee)=>{uee.exports=["jun","junj","junh","jud","jul","julg","julm","julb","juls","jult","julp","julh","jum","jub","jubs","jus","juss","jung","juj","juc","juk","jut","jup","juh","jweo","jweog","jweogg","jweogs","jweon","jweonj","jweonh","jweod","jweol","jweolg","jweolm","jweolb","jweols","jweolt","jweolp","jweolh","jweom","jweob","jweobs","jweos","jweoss","jweong","jweoj","jweoc","jweok","jweot","jweop","jweoh","jwe","jweg","jwegg","jwegs","jwen","jwenj","jwenh","jwed","jwel","jwelg","jwelm","jwelb","jwels","jwelt","jwelp","jwelh","jwem","jweb","jwebs","jwes","jwess","jweng","jwej","jwec","jwek","jwet","jwep","jweh","jwi","jwig","jwigg","jwigs","jwin","jwinj","jwinh","jwid","jwil","jwilg","jwilm","jwilb","jwils","jwilt","jwilp","jwilh","jwim","jwib","jwibs","jwis","jwiss","jwing","jwij","jwic","jwik","jwit","jwip","jwih","jyu","jyug","jyugg","jyugs","jyun","jyunj","jyunh","jyud","jyul","jyulg","jyulm","jyulb","jyuls","jyult","jyulp","jyulh","jyum","jyub","jyubs","jyus","jyuss","jyung","jyuj","jyuc","jyuk","jyut","jyup","jyuh","jeu","jeug","jeugg","jeugs","jeun","jeunj","jeunh","jeud","jeul","jeulg","jeulm","jeulb","jeuls","jeult","jeulp","jeulh","jeum","jeub","jeubs","jeus","jeuss","jeung","jeuj","jeuc","jeuk","jeut","jeup","jeuh","jyi","jyig","jyigg","jyigs","jyin","jyinj","jyinh","jyid","jyil","jyilg","jyilm","jyilb","jyils","jyilt","jyilp","jyilh","jyim","jyib","jyibs","jyis","jyiss","jying","jyij","jyic","jyik","jyit","jyip","jyih","ji","jig","jigg","jigs","jin","jinj","jinh","jid","jil","jilg","jilm","jilb","jils","jilt","jilp","jilh","jim","jib","jibs","jis","jiss","jing","jij","jic","jik","jit","jip","jih","jja","jjag","jjagg","jjags","jjan","jjanj","jjanh","jjad","jjal","jjalg","jjalm","jjalb","jjals","jjalt","jjalp","jjalh","jjam","jjab","jjabs","jjas","jjass","jjang","jjaj","jjac","jjak","jjat","jjap","jjah","jjae","jjaeg","jjaegg","jjaegs","jjaen","jjaenj","jjaenh","jjaed"]});var dee=y((a5e,hee)=>{hee.exports=["jjael","jjaelg","jjaelm","jjaelb","jjaels","jjaelt","jjaelp","jjaelh","jjaem","jjaeb","jjaebs","jjaes","jjaess","jjaeng","jjaej","jjaec","jjaek","jjaet","jjaep","jjaeh","jjya","jjyag","jjyagg","jjyags","jjyan","jjyanj","jjyanh","jjyad","jjyal","jjyalg","jjyalm","jjyalb","jjyals","jjyalt","jjyalp","jjyalh","jjyam","jjyab","jjyabs","jjyas","jjyass","jjyang","jjyaj","jjyac","jjyak","jjyat","jjyap","jjyah","jjyae","jjyaeg","jjyaegg","jjyaegs","jjyaen","jjyaenj","jjyaenh","jjyaed","jjyael","jjyaelg","jjyaelm","jjyaelb","jjyaels","jjyaelt","jjyaelp","jjyaelh","jjyaem","jjyaeb","jjyaebs","jjyaes","jjyaess","jjyaeng","jjyaej","jjyaec","jjyaek","jjyaet","jjyaep","jjyaeh","jjeo","jjeog","jjeogg","jjeogs","jjeon","jjeonj","jjeonh","jjeod","jjeol","jjeolg","jjeolm","jjeolb","jjeols","jjeolt","jjeolp","jjeolh","jjeom","jjeob","jjeobs","jjeos","jjeoss","jjeong","jjeoj","jjeoc","jjeok","jjeot","jjeop","jjeoh","jje","jjeg","jjegg","jjegs","jjen","jjenj","jjenh","jjed","jjel","jjelg","jjelm","jjelb","jjels","jjelt","jjelp","jjelh","jjem","jjeb","jjebs","jjes","jjess","jjeng","jjej","jjec","jjek","jjet","jjep","jjeh","jjyeo","jjyeog","jjyeogg","jjyeogs","jjyeon","jjyeonj","jjyeonh","jjyeod","jjyeol","jjyeolg","jjyeolm","jjyeolb","jjyeols","jjyeolt","jjyeolp","jjyeolh","jjyeom","jjyeob","jjyeobs","jjyeos","jjyeoss","jjyeong","jjyeoj","jjyeoc","jjyeok","jjyeot","jjyeop","jjyeoh","jjye","jjyeg","jjyegg","jjyegs","jjyen","jjyenj","jjyenh","jjyed","jjyel","jjyelg","jjyelm","jjyelb","jjyels","jjyelt","jjyelp","jjyelh","jjyem","jjyeb","jjyebs","jjyes","jjyess","jjyeng","jjyej","jjyec","jjyek","jjyet","jjyep","jjyeh","jjo","jjog","jjogg","jjogs","jjon","jjonj","jjonh","jjod","jjol","jjolg","jjolm","jjolb","jjols","jjolt","jjolp","jjolh","jjom","jjob","jjobs","jjos","jjoss","jjong","jjoj","jjoc","jjok","jjot","jjop","jjoh","jjwa","jjwag","jjwagg","jjwags","jjwan","jjwanj","jjwanh","jjwad","jjwal","jjwalg","jjwalm","jjwalb","jjwals","jjwalt","jjwalp","jjwalh","jjwam","jjwab","jjwabs","jjwas","jjwass","jjwang","jjwaj","jjwac","jjwak","jjwat","jjwap","jjwah","jjwae","jjwaeg","jjwaegg","jjwaegs","jjwaen","jjwaenj","jjwaenh","jjwaed","jjwael","jjwaelg","jjwaelm","jjwaelb"]});var pee=y((l5e,gee)=>{gee.exports=["jjwaels","jjwaelt","jjwaelp","jjwaelh","jjwaem","jjwaeb","jjwaebs","jjwaes","jjwaess","jjwaeng","jjwaej","jjwaec","jjwaek","jjwaet","jjwaep","jjwaeh","jjoe","jjoeg","jjoegg","jjoegs","jjoen","jjoenj","jjoenh","jjoed","jjoel","jjoelg","jjoelm","jjoelb","jjoels","jjoelt","jjoelp","jjoelh","jjoem","jjoeb","jjoebs","jjoes","jjoess","jjoeng","jjoej","jjoec","jjoek","jjoet","jjoep","jjoeh","jjyo","jjyog","jjyogg","jjyogs","jjyon","jjyonj","jjyonh","jjyod","jjyol","jjyolg","jjyolm","jjyolb","jjyols","jjyolt","jjyolp","jjyolh","jjyom","jjyob","jjyobs","jjyos","jjyoss","jjyong","jjyoj","jjyoc","jjyok","jjyot","jjyop","jjyoh","jju","jjug","jjugg","jjugs","jjun","jjunj","jjunh","jjud","jjul","jjulg","jjulm","jjulb","jjuls","jjult","jjulp","jjulh","jjum","jjub","jjubs","jjus","jjuss","jjung","jjuj","jjuc","jjuk","jjut","jjup","jjuh","jjweo","jjweog","jjweogg","jjweogs","jjweon","jjweonj","jjweonh","jjweod","jjweol","jjweolg","jjweolm","jjweolb","jjweols","jjweolt","jjweolp","jjweolh","jjweom","jjweob","jjweobs","jjweos","jjweoss","jjweong","jjweoj","jjweoc","jjweok","jjweot","jjweop","jjweoh","jjwe","jjweg","jjwegg","jjwegs","jjwen","jjwenj","jjwenh","jjwed","jjwel","jjwelg","jjwelm","jjwelb","jjwels","jjwelt","jjwelp","jjwelh","jjwem","jjweb","jjwebs","jjwes","jjwess","jjweng","jjwej","jjwec","jjwek","jjwet","jjwep","jjweh","jjwi","jjwig","jjwigg","jjwigs","jjwin","jjwinj","jjwinh","jjwid","jjwil","jjwilg","jjwilm","jjwilb","jjwils","jjwilt","jjwilp","jjwilh","jjwim","jjwib","jjwibs","jjwis","jjwiss","jjwing","jjwij","jjwic","jjwik","jjwit","jjwip","jjwih","jjyu","jjyug","jjyugg","jjyugs","jjyun","jjyunj","jjyunh","jjyud","jjyul","jjyulg","jjyulm","jjyulb","jjyuls","jjyult","jjyulp","jjyulh","jjyum","jjyub","jjyubs","jjyus","jjyuss","jjyung","jjyuj","jjyuc","jjyuk","jjyut","jjyup","jjyuh","jjeu","jjeug","jjeugg","jjeugs","jjeun","jjeunj","jjeunh","jjeud","jjeul","jjeulg","jjeulm","jjeulb","jjeuls","jjeult","jjeulp","jjeulh","jjeum","jjeub","jjeubs","jjeus","jjeuss","jjeung","jjeuj","jjeuc","jjeuk","jjeut","jjeup","jjeuh","jjyi","jjyig","jjyigg","jjyigs","jjyin","jjyinj","jjyinh","jjyid","jjyil","jjyilg","jjyilm","jjyilb","jjyils","jjyilt","jjyilp","jjyilh"]});var mee=y((u5e,fee)=>{fee.exports=["jjyim","jjyib","jjyibs","jjyis","jjyiss","jjying","jjyij","jjyic","jjyik","jjyit","jjyip","jjyih","jji","jjig","jjigg","jjigs","jjin","jjinj","jjinh","jjid","jjil","jjilg","jjilm","jjilb","jjils","jjilt","jjilp","jjilh","jjim","jjib","jjibs","jjis","jjiss","jjing","jjij","jjic","jjik","jjit","jjip","jjih","ca","cag","cagg","cags","can","canj","canh","cad","cal","calg","calm","calb","cals","calt","calp","calh","cam","cab","cabs","cas","cass","cang","caj","cac","cak","cat","cap","cah","cae","caeg","caegg","caegs","caen","caenj","caenh","caed","cael","caelg","caelm","caelb","caels","caelt","caelp","caelh","caem","caeb","caebs","caes","caess","caeng","caej","caec","caek","caet","caep","caeh","cya","cyag","cyagg","cyags","cyan","cyanj","cyanh","cyad","cyal","cyalg","cyalm","cyalb","cyals","cyalt","cyalp","cyalh","cyam","cyab","cyabs","cyas","cyass","cyang","cyaj","cyac","cyak","cyat","cyap","cyah","cyae","cyaeg","cyaegg","cyaegs","cyaen","cyaenj","cyaenh","cyaed","cyael","cyaelg","cyaelm","cyaelb","cyaels","cyaelt","cyaelp","cyaelh","cyaem","cyaeb","cyaebs","cyaes","cyaess","cyaeng","cyaej","cyaec","cyaek","cyaet","cyaep","cyaeh","ceo","ceog","ceogg","ceogs","ceon","ceonj","ceonh","ceod","ceol","ceolg","ceolm","ceolb","ceols","ceolt","ceolp","ceolh","ceom","ceob","ceobs","ceos","ceoss","ceong","ceoj","ceoc","ceok","ceot","ceop","ceoh","ce","ceg","cegg","cegs","cen","cenj","cenh","ced","cel","celg","celm","celb","cels","celt","celp","celh","cem","ceb","cebs","ces","cess","ceng","cej","cec","cek","cet","cep","ceh","cyeo","cyeog","cyeogg","cyeogs","cyeon","cyeonj","cyeonh","cyeod","cyeol","cyeolg","cyeolm","cyeolb","cyeols","cyeolt","cyeolp","cyeolh","cyeom","cyeob","cyeobs","cyeos","cyeoss","cyeong","cyeoj","cyeoc","cyeok","cyeot","cyeop","cyeoh","cye","cyeg","cyegg","cyegs","cyen","cyenj","cyenh","cyed","cyel","cyelg","cyelm","cyelb","cyels","cyelt","cyelp","cyelh","cyem","cyeb","cyebs","cyes"]});var bee=y((c5e,yee)=>{yee.exports=["cyess","cyeng","cyej","cyec","cyek","cyet","cyep","cyeh","co","cog","cogg","cogs","con","conj","conh","cod","col","colg","colm","colb","cols","colt","colp","colh","com","cob","cobs","cos","coss","cong","coj","coc","cok","cot","cop","coh","cwa","cwag","cwagg","cwags","cwan","cwanj","cwanh","cwad","cwal","cwalg","cwalm","cwalb","cwals","cwalt","cwalp","cwalh","cwam","cwab","cwabs","cwas","cwass","cwang","cwaj","cwac","cwak","cwat","cwap","cwah","cwae","cwaeg","cwaegg","cwaegs","cwaen","cwaenj","cwaenh","cwaed","cwael","cwaelg","cwaelm","cwaelb","cwaels","cwaelt","cwaelp","cwaelh","cwaem","cwaeb","cwaebs","cwaes","cwaess","cwaeng","cwaej","cwaec","cwaek","cwaet","cwaep","cwaeh","coe","coeg","coegg","coegs","coen","coenj","coenh","coed","coel","coelg","coelm","coelb","coels","coelt","coelp","coelh","coem","coeb","coebs","coes","coess","coeng","coej","coec","coek","coet","coep","coeh","cyo","cyog","cyogg","cyogs","cyon","cyonj","cyonh","cyod","cyol","cyolg","cyolm","cyolb","cyols","cyolt","cyolp","cyolh","cyom","cyob","cyobs","cyos","cyoss","cyong","cyoj","cyoc","cyok","cyot","cyop","cyoh","cu","cug","cugg","cugs","cun","cunj","cunh","cud","cul","culg","culm","culb","culs","cult","culp","culh","cum","cub","cubs","cus","cuss","cung","cuj","cuc","cuk","cut","cup","cuh","cweo","cweog","cweogg","cweogs","cweon","cweonj","cweonh","cweod","cweol","cweolg","cweolm","cweolb","cweols","cweolt","cweolp","cweolh","cweom","cweob","cweobs","cweos","cweoss","cweong","cweoj","cweoc","cweok","cweot","cweop","cweoh","cwe","cweg","cwegg","cwegs","cwen","cwenj","cwenh","cwed","cwel","cwelg","cwelm","cwelb","cwels","cwelt","cwelp","cwelh","cwem","cweb","cwebs","cwes","cwess","cweng","cwej","cwec","cwek","cwet","cwep","cweh","cwi","cwig","cwigg","cwigs","cwin","cwinj","cwinh","cwid","cwil","cwilg","cwilm","cwilb","cwils","cwilt","cwilp","cwilh","cwim","cwib","cwibs","cwis","cwiss","cwing","cwij","cwic"]});var wee=y((h5e,vee)=>{vee.exports=["cwik","cwit","cwip","cwih","cyu","cyug","cyugg","cyugs","cyun","cyunj","cyunh","cyud","cyul","cyulg","cyulm","cyulb","cyuls","cyult","cyulp","cyulh","cyum","cyub","cyubs","cyus","cyuss","cyung","cyuj","cyuc","cyuk","cyut","cyup","cyuh","ceu","ceug","ceugg","ceugs","ceun","ceunj","ceunh","ceud","ceul","ceulg","ceulm","ceulb","ceuls","ceult","ceulp","ceulh","ceum","ceub","ceubs","ceus","ceuss","ceung","ceuj","ceuc","ceuk","ceut","ceup","ceuh","cyi","cyig","cyigg","cyigs","cyin","cyinj","cyinh","cyid","cyil","cyilg","cyilm","cyilb","cyils","cyilt","cyilp","cyilh","cyim","cyib","cyibs","cyis","cyiss","cying","cyij","cyic","cyik","cyit","cyip","cyih","ci","cig","cigg","cigs","cin","cinj","cinh","cid","cil","cilg","cilm","cilb","cils","cilt","cilp","cilh","cim","cib","cibs","cis","ciss","cing","cij","cic","cik","cit","cip","cih","ka","kag","kagg","kags","kan","kanj","kanh","kad","kal","kalg","kalm","kalb","kals","kalt","kalp","kalh","kam","kab","kabs","kas","kass","kang","kaj","kac","kak","kat","kap","kah","kae","kaeg","kaegg","kaegs","kaen","kaenj","kaenh","kaed","kael","kaelg","kaelm","kaelb","kaels","kaelt","kaelp","kaelh","kaem","kaeb","kaebs","kaes","kaess","kaeng","kaej","kaec","kaek","kaet","kaep","kaeh","kya","kyag","kyagg","kyags","kyan","kyanj","kyanh","kyad","kyal","kyalg","kyalm","kyalb","kyals","kyalt","kyalp","kyalh","kyam","kyab","kyabs","kyas","kyass","kyang","kyaj","kyac","kyak","kyat","kyap","kyah","kyae","kyaeg","kyaegg","kyaegs","kyaen","kyaenj","kyaenh","kyaed","kyael","kyaelg","kyaelm","kyaelb","kyaels","kyaelt","kyaelp","kyaelh","kyaem","kyaeb","kyaebs","kyaes","kyaess","kyaeng","kyaej","kyaec","kyaek","kyaet","kyaep","kyaeh","keo","keog","keogg","keogs","keon","keonj","keonh","keod","keol","keolg","keolm","keolb","keols","keolt","keolp","keolh","keom","keob","keobs","keos","keoss","keong","keoj","keoc","keok","keot","keop","keoh"]});var Cee=y((d5e,Dee)=>{Dee.exports=["ke","keg","kegg","kegs","ken","kenj","kenh","ked","kel","kelg","kelm","kelb","kels","kelt","kelp","kelh","kem","keb","kebs","kes","kess","keng","kej","kec","kek","ket","kep","keh","kyeo","kyeog","kyeogg","kyeogs","kyeon","kyeonj","kyeonh","kyeod","kyeol","kyeolg","kyeolm","kyeolb","kyeols","kyeolt","kyeolp","kyeolh","kyeom","kyeob","kyeobs","kyeos","kyeoss","kyeong","kyeoj","kyeoc","kyeok","kyeot","kyeop","kyeoh","kye","kyeg","kyegg","kyegs","kyen","kyenj","kyenh","kyed","kyel","kyelg","kyelm","kyelb","kyels","kyelt","kyelp","kyelh","kyem","kyeb","kyebs","kyes","kyess","kyeng","kyej","kyec","kyek","kyet","kyep","kyeh","ko","kog","kogg","kogs","kon","konj","konh","kod","kol","kolg","kolm","kolb","kols","kolt","kolp","kolh","kom","kob","kobs","kos","koss","kong","koj","koc","kok","kot","kop","koh","kwa","kwag","kwagg","kwags","kwan","kwanj","kwanh","kwad","kwal","kwalg","kwalm","kwalb","kwals","kwalt","kwalp","kwalh","kwam","kwab","kwabs","kwas","kwass","kwang","kwaj","kwac","kwak","kwat","kwap","kwah","kwae","kwaeg","kwaegg","kwaegs","kwaen","kwaenj","kwaenh","kwaed","kwael","kwaelg","kwaelm","kwaelb","kwaels","kwaelt","kwaelp","kwaelh","kwaem","kwaeb","kwaebs","kwaes","kwaess","kwaeng","kwaej","kwaec","kwaek","kwaet","kwaep","kwaeh","koe","koeg","koegg","koegs","koen","koenj","koenh","koed","koel","koelg","koelm","koelb","koels","koelt","koelp","koelh","koem","koeb","koebs","koes","koess","koeng","koej","koec","koek","koet","koep","koeh","kyo","kyog","kyogg","kyogs","kyon","kyonj","kyonh","kyod","kyol","kyolg","kyolm","kyolb","kyols","kyolt","kyolp","kyolh","kyom","kyob","kyobs","kyos","kyoss","kyong","kyoj","kyoc","kyok","kyot","kyop","kyoh","ku","kug","kugg","kugs","kun","kunj","kunh","kud","kul","kulg","kulm","kulb","kuls","kult","kulp","kulh","kum","kub","kubs","kus","kuss","kung","kuj","kuc","kuk","kut","kup","kuh","kweo","kweog","kweogg","kweogs"]});var See=y((g5e,xee)=>{xee.exports=["kweon","kweonj","kweonh","kweod","kweol","kweolg","kweolm","kweolb","kweols","kweolt","kweolp","kweolh","kweom","kweob","kweobs","kweos","kweoss","kweong","kweoj","kweoc","kweok","kweot","kweop","kweoh","kwe","kweg","kwegg","kwegs","kwen","kwenj","kwenh","kwed","kwel","kwelg","kwelm","kwelb","kwels","kwelt","kwelp","kwelh","kwem","kweb","kwebs","kwes","kwess","kweng","kwej","kwec","kwek","kwet","kwep","kweh","kwi","kwig","kwigg","kwigs","kwin","kwinj","kwinh","kwid","kwil","kwilg","kwilm","kwilb","kwils","kwilt","kwilp","kwilh","kwim","kwib","kwibs","kwis","kwiss","kwing","kwij","kwic","kwik","kwit","kwip","kwih","kyu","kyug","kyugg","kyugs","kyun","kyunj","kyunh","kyud","kyul","kyulg","kyulm","kyulb","kyuls","kyult","kyulp","kyulh","kyum","kyub","kyubs","kyus","kyuss","kyung","kyuj","kyuc","kyuk","kyut","kyup","kyuh","keu","keug","keugg","keugs","keun","keunj","keunh","keud","keul","keulg","keulm","keulb","keuls","keult","keulp","keulh","keum","keub","keubs","keus","keuss","keung","keuj","keuc","keuk","keut","keup","keuh","kyi","kyig","kyigg","kyigs","kyin","kyinj","kyinh","kyid","kyil","kyilg","kyilm","kyilb","kyils","kyilt","kyilp","kyilh","kyim","kyib","kyibs","kyis","kyiss","kying","kyij","kyic","kyik","kyit","kyip","kyih","ki","kig","kigg","kigs","kin","kinj","kinh","kid","kil","kilg","kilm","kilb","kils","kilt","kilp","kilh","kim","kib","kibs","kis","kiss","king","kij","kic","kik","kit","kip","kih","ta","tag","tagg","tags","tan","tanj","tanh","tad","tal","talg","talm","talb","tals","talt","talp","talh","tam","tab","tabs","tas","tass","tang","taj","tac","tak","tat","tap","tah","tae","taeg","taegg","taegs","taen","taenj","taenh","taed","tael","taelg","taelm","taelb","taels","taelt","taelp","taelh","taem","taeb","taebs","taes","taess","taeng","taej","taec","taek","taet","taep","taeh","tya","tyag","tyagg","tyags","tyan","tyanj","tyanh","tyad"]});var kee=y((p5e,Tee)=>{Tee.exports=["tyal","tyalg","tyalm","tyalb","tyals","tyalt","tyalp","tyalh","tyam","tyab","tyabs","tyas","tyass","tyang","tyaj","tyac","tyak","tyat","tyap","tyah","tyae","tyaeg","tyaegg","tyaegs","tyaen","tyaenj","tyaenh","tyaed","tyael","tyaelg","tyaelm","tyaelb","tyaels","tyaelt","tyaelp","tyaelh","tyaem","tyaeb","tyaebs","tyaes","tyaess","tyaeng","tyaej","tyaec","tyaek","tyaet","tyaep","tyaeh","teo","teog","teogg","teogs","teon","teonj","teonh","teod","teol","teolg","teolm","teolb","teols","teolt","teolp","teolh","teom","teob","teobs","teos","teoss","teong","teoj","teoc","teok","teot","teop","teoh","te","teg","tegg","tegs","ten","tenj","tenh","ted","tel","telg","telm","telb","tels","telt","telp","telh","tem","teb","tebs","tes","tess","teng","tej","tec","tek","tet","tep","teh","tyeo","tyeog","tyeogg","tyeogs","tyeon","tyeonj","tyeonh","tyeod","tyeol","tyeolg","tyeolm","tyeolb","tyeols","tyeolt","tyeolp","tyeolh","tyeom","tyeob","tyeobs","tyeos","tyeoss","tyeong","tyeoj","tyeoc","tyeok","tyeot","tyeop","tyeoh","tye","tyeg","tyegg","tyegs","tyen","tyenj","tyenh","tyed","tyel","tyelg","tyelm","tyelb","tyels","tyelt","tyelp","tyelh","tyem","tyeb","tyebs","tyes","tyess","tyeng","tyej","tyec","tyek","tyet","tyep","tyeh","to","tog","togg","togs","ton","tonj","tonh","tod","tol","tolg","tolm","tolb","tols","tolt","tolp","tolh","tom","tob","tobs","tos","toss","tong","toj","toc","tok","tot","top","toh","twa","twag","twagg","twags","twan","twanj","twanh","twad","twal","twalg","twalm","twalb","twals","twalt","twalp","twalh","twam","twab","twabs","twas","twass","twang","twaj","twac","twak","twat","twap","twah","twae","twaeg","twaegg","twaegs","twaen","twaenj","twaenh","twaed","twael","twaelg","twaelm","twaelb","twaels","twaelt","twaelp","twaelh","twaem","twaeb","twaebs","twaes","twaess","twaeng","twaej","twaec","twaek","twaet","twaep","twaeh","toe","toeg","toegg","toegs","toen","toenj","toenh","toed","toel","toelg","toelm","toelb"]});var Pee=y((f5e,Eee)=>{Eee.exports=["toels","toelt","toelp","toelh","toem","toeb","toebs","toes","toess","toeng","toej","toec","toek","toet","toep","toeh","tyo","tyog","tyogg","tyogs","tyon","tyonj","tyonh","tyod","tyol","tyolg","tyolm","tyolb","tyols","tyolt","tyolp","tyolh","tyom","tyob","tyobs","tyos","tyoss","tyong","tyoj","tyoc","tyok","tyot","tyop","tyoh","tu","tug","tugg","tugs","tun","tunj","tunh","tud","tul","tulg","tulm","tulb","tuls","tult","tulp","tulh","tum","tub","tubs","tus","tuss","tung","tuj","tuc","tuk","tut","tup","tuh","tweo","tweog","tweogg","tweogs","tweon","tweonj","tweonh","tweod","tweol","tweolg","tweolm","tweolb","tweols","tweolt","tweolp","tweolh","tweom","tweob","tweobs","tweos","tweoss","tweong","tweoj","tweoc","tweok","tweot","tweop","tweoh","twe","tweg","twegg","twegs","twen","twenj","twenh","twed","twel","twelg","twelm","twelb","twels","twelt","twelp","twelh","twem","tweb","twebs","twes","twess","tweng","twej","twec","twek","twet","twep","tweh","twi","twig","twigg","twigs","twin","twinj","twinh","twid","twil","twilg","twilm","twilb","twils","twilt","twilp","twilh","twim","twib","twibs","twis","twiss","twing","twij","twic","twik","twit","twip","twih","tyu","tyug","tyugg","tyugs","tyun","tyunj","tyunh","tyud","tyul","tyulg","tyulm","tyulb","tyuls","tyult","tyulp","tyulh","tyum","tyub","tyubs","tyus","tyuss","tyung","tyuj","tyuc","tyuk","tyut","tyup","tyuh","teu","teug","teugg","teugs","teun","teunj","teunh","teud","teul","teulg","teulm","teulb","teuls","teult","teulp","teulh","teum","teub","teubs","teus","teuss","teung","teuj","teuc","teuk","teut","teup","teuh","tyi","tyig","tyigg","tyigs","tyin","tyinj","tyinh","tyid","tyil","tyilg","tyilm","tyilb","tyils","tyilt","tyilp","tyilh","tyim","tyib","tyibs","tyis","tyiss","tying","tyij","tyic","tyik","tyit","tyip","tyih","ti","tig","tigg","tigs","tin","tinj","tinh","tid","til","tilg","tilm","tilb","tils","tilt","tilp","tilh"]});var Ree=y((m5e,_ee)=>{_ee.exports=["tim","tib","tibs","tis","tiss","ting","tij","tic","tik","tit","tip","tih","pa","pag","pagg","pags","pan","panj","panh","pad","pal","palg","palm","palb","pals","palt","palp","palh","pam","pab","pabs","pas","pass","pang","paj","pac","pak","pat","pap","pah","pae","paeg","paegg","paegs","paen","paenj","paenh","paed","pael","paelg","paelm","paelb","paels","paelt","paelp","paelh","paem","paeb","paebs","paes","paess","paeng","paej","paec","paek","paet","paep","paeh","pya","pyag","pyagg","pyags","pyan","pyanj","pyanh","pyad","pyal","pyalg","pyalm","pyalb","pyals","pyalt","pyalp","pyalh","pyam","pyab","pyabs","pyas","pyass","pyang","pyaj","pyac","pyak","pyat","pyap","pyah","pyae","pyaeg","pyaegg","pyaegs","pyaen","pyaenj","pyaenh","pyaed","pyael","pyaelg","pyaelm","pyaelb","pyaels","pyaelt","pyaelp","pyaelh","pyaem","pyaeb","pyaebs","pyaes","pyaess","pyaeng","pyaej","pyaec","pyaek","pyaet","pyaep","pyaeh","peo","peog","peogg","peogs","peon","peonj","peonh","peod","peol","peolg","peolm","peolb","peols","peolt","peolp","peolh","peom","peob","peobs","peos","peoss","peong","peoj","peoc","peok","peot","peop","peoh","pe","peg","pegg","pegs","pen","penj","penh","ped","pel","pelg","pelm","pelb","pels","pelt","pelp","pelh","pem","peb","pebs","pes","pess","peng","pej","pec","pek","pet","pep","peh","pyeo","pyeog","pyeogg","pyeogs","pyeon","pyeonj","pyeonh","pyeod","pyeol","pyeolg","pyeolm","pyeolb","pyeols","pyeolt","pyeolp","pyeolh","pyeom","pyeob","pyeobs","pyeos","pyeoss","pyeong","pyeoj","pyeoc","pyeok","pyeot","pyeop","pyeoh","pye","pyeg","pyegg","pyegs","pyen","pyenj","pyenh","pyed","pyel","pyelg","pyelm","pyelb","pyels","pyelt","pyelp","pyelh","pyem","pyeb","pyebs","pyes","pyess","pyeng","pyej","pyec","pyek","pyet","pyep","pyeh","po","pog","pogg","pogs","pon","ponj","ponh","pod","pol","polg","polm","polb","pols","polt","polp","polh","pom","pob","pobs","pos"]});var Fee=y((y5e,Lee)=>{Lee.exports=["poss","pong","poj","poc","pok","pot","pop","poh","pwa","pwag","pwagg","pwags","pwan","pwanj","pwanh","pwad","pwal","pwalg","pwalm","pwalb","pwals","pwalt","pwalp","pwalh","pwam","pwab","pwabs","pwas","pwass","pwang","pwaj","pwac","pwak","pwat","pwap","pwah","pwae","pwaeg","pwaegg","pwaegs","pwaen","pwaenj","pwaenh","pwaed","pwael","pwaelg","pwaelm","pwaelb","pwaels","pwaelt","pwaelp","pwaelh","pwaem","pwaeb","pwaebs","pwaes","pwaess","pwaeng","pwaej","pwaec","pwaek","pwaet","pwaep","pwaeh","poe","poeg","poegg","poegs","poen","poenj","poenh","poed","poel","poelg","poelm","poelb","poels","poelt","poelp","poelh","poem","poeb","poebs","poes","poess","poeng","poej","poec","poek","poet","poep","poeh","pyo","pyog","pyogg","pyogs","pyon","pyonj","pyonh","pyod","pyol","pyolg","pyolm","pyolb","pyols","pyolt","pyolp","pyolh","pyom","pyob","pyobs","pyos","pyoss","pyong","pyoj","pyoc","pyok","pyot","pyop","pyoh","pu","pug","pugg","pugs","pun","punj","punh","pud","pul","pulg","pulm","pulb","puls","pult","pulp","pulh","pum","pub","pubs","pus","puss","pung","puj","puc","puk","put","pup","puh","pweo","pweog","pweogg","pweogs","pweon","pweonj","pweonh","pweod","pweol","pweolg","pweolm","pweolb","pweols","pweolt","pweolp","pweolh","pweom","pweob","pweobs","pweos","pweoss","pweong","pweoj","pweoc","pweok","pweot","pweop","pweoh","pwe","pweg","pwegg","pwegs","pwen","pwenj","pwenh","pwed","pwel","pwelg","pwelm","pwelb","pwels","pwelt","pwelp","pwelh","pwem","pweb","pwebs","pwes","pwess","pweng","pwej","pwec","pwek","pwet","pwep","pweh","pwi","pwig","pwigg","pwigs","pwin","pwinj","pwinh","pwid","pwil","pwilg","pwilm","pwilb","pwils","pwilt","pwilp","pwilh","pwim","pwib","pwibs","pwis","pwiss","pwing","pwij","pwic","pwik","pwit","pwip","pwih","pyu","pyug","pyugg","pyugs","pyun","pyunj","pyunh","pyud","pyul","pyulg","pyulm","pyulb","pyuls","pyult","pyulp","pyulh","pyum","pyub","pyubs","pyus","pyuss","pyung","pyuj","pyuc"]});var jee=y((b5e,Iee)=>{Iee.exports=["pyuk","pyut","pyup","pyuh","peu","peug","peugg","peugs","peun","peunj","peunh","peud","peul","peulg","peulm","peulb","peuls","peult","peulp","peulh","peum","peub","peubs","peus","peuss","peung","peuj","peuc","peuk","peut","peup","peuh","pyi","pyig","pyigg","pyigs","pyin","pyinj","pyinh","pyid","pyil","pyilg","pyilm","pyilb","pyils","pyilt","pyilp","pyilh","pyim","pyib","pyibs","pyis","pyiss","pying","pyij","pyic","pyik","pyit","pyip","pyih","pi","pig","pigg","pigs","pin","pinj","pinh","pid","pil","pilg","pilm","pilb","pils","pilt","pilp","pilh","pim","pib","pibs","pis","piss","ping","pij","pic","pik","pit","pip","pih","ha","hag","hagg","hags","han","hanj","hanh","had","hal","halg","halm","halb","hals","halt","halp","halh","ham","hab","habs","has","hass","hang","haj","hac","hak","hat","hap","hah","hae","haeg","haegg","haegs","haen","haenj","haenh","haed","hael","haelg","haelm","haelb","haels","haelt","haelp","haelh","haem","haeb","haebs","haes","haess","haeng","haej","haec","haek","haet","haep","haeh","hya","hyag","hyagg","hyags","hyan","hyanj","hyanh","hyad","hyal","hyalg","hyalm","hyalb","hyals","hyalt","hyalp","hyalh","hyam","hyab","hyabs","hyas","hyass","hyang","hyaj","hyac","hyak","hyat","hyap","hyah","hyae","hyaeg","hyaegg","hyaegs","hyaen","hyaenj","hyaenh","hyaed","hyael","hyaelg","hyaelm","hyaelb","hyaels","hyaelt","hyaelp","hyaelh","hyaem","hyaeb","hyaebs","hyaes","hyaess","hyaeng","hyaej","hyaec","hyaek","hyaet","hyaep","hyaeh","heo","heog","heogg","heogs","heon","heonj","heonh","heod","heol","heolg","heolm","heolb","heols","heolt","heolp","heolh","heom","heob","heobs","heos","heoss","heong","heoj","heoc","heok","heot","heop","heoh","he","heg","hegg","hegs","hen","henj","henh","hed","hel","helg","helm","helb","hels","helt","help","helh","hem","heb","hebs","hes","hess","heng","hej","hec","hek","het","hep","heh"]});var Mee=y((v5e,Aee)=>{Aee.exports=["hyeo","hyeog","hyeogg","hyeogs","hyeon","hyeonj","hyeonh","hyeod","hyeol","hyeolg","hyeolm","hyeolb","hyeols","hyeolt","hyeolp","hyeolh","hyeom","hyeob","hyeobs","hyeos","hyeoss","hyeong","hyeoj","hyeoc","hyeok","hyeot","hyeop","hyeoh","hye","hyeg","hyegg","hyegs","hyen","hyenj","hyenh","hyed","hyel","hyelg","hyelm","hyelb","hyels","hyelt","hyelp","hyelh","hyem","hyeb","hyebs","hyes","hyess","hyeng","hyej","hyec","hyek","hyet","hyep","hyeh","ho","hog","hogg","hogs","hon","honj","honh","hod","hol","holg","holm","holb","hols","holt","holp","holh","hom","hob","hobs","hos","hoss","hong","hoj","hoc","hok","hot","hop","hoh","hwa","hwag","hwagg","hwags","hwan","hwanj","hwanh","hwad","hwal","hwalg","hwalm","hwalb","hwals","hwalt","hwalp","hwalh","hwam","hwab","hwabs","hwas","hwass","hwang","hwaj","hwac","hwak","hwat","hwap","hwah","hwae","hwaeg","hwaegg","hwaegs","hwaen","hwaenj","hwaenh","hwaed","hwael","hwaelg","hwaelm","hwaelb","hwaels","hwaelt","hwaelp","hwaelh","hwaem","hwaeb","hwaebs","hwaes","hwaess","hwaeng","hwaej","hwaec","hwaek","hwaet","hwaep","hwaeh","hoe","hoeg","hoegg","hoegs","hoen","hoenj","hoenh","hoed","hoel","hoelg","hoelm","hoelb","hoels","hoelt","hoelp","hoelh","hoem","hoeb","hoebs","hoes","hoess","hoeng","hoej","hoec","hoek","hoet","hoep","hoeh","hyo","hyog","hyogg","hyogs","hyon","hyonj","hyonh","hyod","hyol","hyolg","hyolm","hyolb","hyols","hyolt","hyolp","hyolh","hyom","hyob","hyobs","hyos","hyoss","hyong","hyoj","hyoc","hyok","hyot","hyop","hyoh","hu","hug","hugg","hugs","hun","hunj","hunh","hud","hul","hulg","hulm","hulb","huls","hult","hulp","hulh","hum","hub","hubs","hus","huss","hung","huj","huc","huk","hut","hup","huh","hweo","hweog","hweogg","hweogs","hweon","hweonj","hweonh","hweod","hweol","hweolg","hweolm","hweolb","hweols","hweolt","hweolp","hweolh","hweom","hweob","hweobs","hweos","hweoss","hweong","hweoj","hweoc","hweok","hweot","hweop","hweoh","hwe","hweg","hwegg","hwegs"]});var Nee=y((w5e,Oee)=>{Oee.exports=["hwen","hwenj","hwenh","hwed","hwel","hwelg","hwelm","hwelb","hwels","hwelt","hwelp","hwelh","hwem","hweb","hwebs","hwes","hwess","hweng","hwej","hwec","hwek","hwet","hwep","hweh","hwi","hwig","hwigg","hwigs","hwin","hwinj","hwinh","hwid","hwil","hwilg","hwilm","hwilb","hwils","hwilt","hwilp","hwilh","hwim","hwib","hwibs","hwis","hwiss","hwing","hwij","hwic","hwik","hwit","hwip","hwih","hyu","hyug","hyugg","hyugs","hyun","hyunj","hyunh","hyud","hyul","hyulg","hyulm","hyulb","hyuls","hyult","hyulp","hyulh","hyum","hyub","hyubs","hyus","hyuss","hyung","hyuj","hyuc","hyuk","hyut","hyup","hyuh","heu","heug","heugg","heugs","heun","heunj","heunh","heud","heul","heulg","heulm","heulb","heuls","heult","heulp","heulh","heum","heub","heubs","heus","heuss","heung","heuj","heuc","heuk","heut","heup","heuh","hyi","hyig","hyigg","hyigs","hyin","hyinj","hyinh","hyid","hyil","hyilg","hyilm","hyilb","hyils","hyilt","hyilp","hyilh","hyim","hyib","hyibs","hyis","hyiss","hying","hyij","hyic","hyik","hyit","hyip","hyih","hi","hig","higg","higs","hin","hinj","hinh","hid","hil","hilg","hilm","hilb","hils","hilt","hilp","hilh","him","hib","hibs","his","hiss","hing","hij","hic","hik","hit","hip","hih","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var Hee=y((D5e,Bee)=>{Bee.exports=["Kay ","Kayng ","Ke ","Ko ","Kol ","Koc ","Kwi ","Kwi ","Kyun ","Kul ","Kum ","Na ","Na ","Na ","La ","Na ","Na ","Na ","Na ","Na ","Nak ","Nak ","Nak ","Nak ","Nak ","Nak ","Nak ","Nan ","Nan ","Nan ","Nan ","Nan ","Nan ","Nam ","Nam ","Nam ","Nam ","Nap ","Nap ","Nap ","Nang ","Nang ","Nang ","Nang ","Nang ","Nay ","Nayng ","No ","No ","No ","No ","No ","No ","No ","No ","No ","No ","No ","No ","Nok ","Nok ","Nok ","Nok ","Nok ","Nok ","Non ","Nong ","Nong ","Nong ","Nong ","Noy ","Noy ","Noy ","Noy ","Nwu ","Nwu ","Nwu ","Nwu ","Nwu ","Nwu ","Nwu ","Nwu ","Nuk ","Nuk ","Num ","Nung ","Nung ","Nung ","Nung ","Nung ","Twu ","La ","Lak ","Lak ","Lan ","Lyeng ","Lo ","Lyul ","Li ","Pey ","Pen ","Pyen ","Pwu ","Pwul ","Pi ","Sak ","Sak ","Sam ","Sayk ","Sayng ","Sep ","Sey ","Sway ","Sin ","Sim ","Sip ","Ya ","Yak ","Yak ","Yang ","Yang ","Yang ","Yang ","Yang ","Yang ","Yang ","Yang ","Ye ","Ye ","Ye ","Ye ","Ye ","Ye ","Ye ","Ye ","Ye ","Ye ","Ye ","Yek ","Yek ","Yek ","Yek ","Yen ","Yen ","Yen ","Yen ","Yen ","Yen ","Yen ","Yen ","Yen ","Yen ","Yen ","Yen ","Yen ","Yen ","Yel ","Yel ","Yel ","Yel ","Yel ","Yel ","Yem ","Yem ","Yem ","Yem ","Yem ","Yep ","Yeng ","Yeng ","Yeng ","Yeng ","Yeng ","Yeng ","Yeng ","Yeng ","Yeng ","Yeng ","Yeng ","Yeng ","Yeng ","Yey ","Yey ","Yey ","Yey ","O ","Yo ","Yo ","Yo ","Yo ","Yo ","Yo ","Yo ","Yo ","Yo ","Yo ","Yong ","Wun ","Wen ","Yu ","Yu ","Yu ","Yu ","Yu ","Yu ","Yu ","Yu ","Yu ","Yu ","Yuk ","Yuk ","Yuk ","Yun ","Yun ","Yun ","Yun ","Yul ","Yul ","Yul ","Yul ","Yung ","I ","I ","I ","I ","I ","I ","I ","I ","I ","I ","I ","I ","I ","I ","Ik ","Ik ","In ","In ","In ","In ","In ","In ","In ","Im ","Im ","Im ","Ip ","Ip ","Ip ","Cang ","Cek ","Ci ","Cip ","Cha ","Chek "]});var Yee=y((C5e,qee)=>{qee.exports=["Chey ","Thak ","Thak ","Thang ","Thayk ","Thong ","Pho ","Phok ","Hang ","Hang ","Hyen ","Hwak ","Wu ","Huo ","[?] ","[?] ","Zhong ","[?] ","Qing ","[?] ","[?] ","Xi ","Zhu ","Yi ","Li ","Shen ","Xiang ","Fu ","Jing ","Jing ","Yu ","[?] ","Hagi ","[?] ","Zhu ","[?] ","[?] ","Yi ","Du ","[?] ","[?] ","[?] ","Fan ","Si ","Guan ","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var Zee=y((x5e,Wee)=>{Wee.exports=["ff","fi","fl","ffi","ffl","st","st","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","mn","me","mi","vn","mkh","[?]","[?]","[?]","[?]","[?]","yi","","ay","`","","d","h","k","l","m","m","t","+","sh","s","sh","s","a","a","","b","g","d","h","v","z","[?]","t","y","k","k","l","[?]","l","[?]","n","n","[?]","p","p","[?]","ts","ts","r","sh","t","vo","b","k","p","l","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""]});var $ee=y((S5e,Jee)=>{Jee.exports=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""]});var Uee=y((T5e,Xee)=>{Xee.exports=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","[?]","[?]","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","","","","","","","","","","","","","[?]","[?]","[?]"]});var Kee=y((k5e,Gee)=>{Gee.exports=["[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","","","","~","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","..","--","-","_","_","(",") ","{","} ","[","] ","[(",")] ","<<",">> ","<","> ","[","] ","{","}","[?]","[?]","[?]","[?]","","","","","","","",",",",",".","",";",":","?","!","-","(",")","{","}","{","}","#","&","*","+","-","<",">","=","","\\","$","%","@","[?]","[?]","[?]","[?]","","","","[?]","","[?]","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","[?]","[?]",""]});var zee=y((E5e,Qee)=>{Qee.exports=["[?]","!",'"',"#","$","%","&","'","(",")","*","+",",","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";","<","=",">","?","@","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","[","\\","]","^","_","`","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","{","|","}","~","[?]","[?]",".","[","]",",","*","wo","a","i","u","e","o","ya","yu","yo","tu","+","a","i","u","e","o","ka","ki","ku","ke","ko","sa","si","su","se","so","ta","ti","tu","te","to","na","ni","nu","ne","no","ha","hi","hu","he","ho","ma","mi","mu","me","mo","ya","yu","yo","ra","ri","ru","re","ro","wa","n",":",";","","g","gg","gs","n","nj","nh","d","dd","r","lg","lm","lb","ls","lt","lp","rh","m","b","bb","bs","s","ss","","j","jj","c","k","t","p","h","[?]","[?]","[?]","a","ae","ya","yae","eo","e","[?]","[?]","yeo","ye","o","wa","wae","oe","[?]","[?]","yo","u","weo","we","wi","yu","[?]","[?]","eu","yi","i","[?]","[?]","[?]","/C","PS","!","-","|","Y=","W=","[?]","|","-","|","-","|","#","O","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","{","|","}","","","",""]});var ete=y((P5e,Vee)=>{"use strict";var L={},rke=/(?![\x00-\x7F]|[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3})./g;Vee.exports=function(n){return n.replace(rke,oke)};function oke(n){var e=ake(n);if(e>65535)return"_";var t=e>>8,i=e&255;if(t>24&&t<30||t>215&&t<249)return"";if(!L[t])switch(ske(t)){case"00":L[t]=bQ();break;case"01":L[t]=wQ();break;case"02":L[t]=CQ();break;case"03":L[t]=SQ();break;case"04":L[t]=kQ();break;case"05":L[t]=PQ();break;case"06":L[t]=RQ();break;case"07":L[t]=FQ();break;case"09":L[t]=jQ();break;case"0a":L[t]=MQ();break;case"0b":L[t]=NQ();break;case"0c":L[t]=HQ();break;case"0d":L[t]=YQ();break;case"0e":L[t]=ZQ();break;case"0f":L[t]=$Q();break;case"10":L[t]=UQ();break;case"11":L[t]=KQ();break;case"12":L[t]=zQ();break;case"13":L[t]=ez();break;case"14":L[t]=iz();break;case"15":L[t]=rz();break;case"16":L[t]=sz();break;case"17":L[t]=lz();break;case"18":L[t]=cz();break;case"1e":L[t]=dz();break;case"1f":L[t]=pz();break;case"20":L[t]=mz();break;case"21":L[t]=bz();break;case"22":L[t]=wz();break;case"23":L[t]=Cz();break;case"24":L[t]=Sz();break;case"25":L[t]=kz();break;case"26":L[t]=Pz();break;case"27":L[t]=Rz();break;case"28":L[t]=Fz();break;case"2e":L[t]=jz();break;case"2f":L[t]=Mz();break;case"30":L[t]=Nz();break;case"31":L[t]=Hz();break;case"32":L[t]=Yz();break;case"33":L[t]=Zz();break;case"4d":L[t]=$z();break;case"4e":L[t]=Uz();break;case"4f":L[t]=Kz();break;case"50":L[t]=zz();break;case"51":L[t]=e7();break;case"52":L[t]=i7();break;case"53":L[t]=r7();break;case"54":L[t]=s7();break;case"55":L[t]=l7();break;case"56":L[t]=c7();break;case"57":L[t]=d7();break;case"58":L[t]=p7();break;case"59":L[t]=m7();break;case"5a":L[t]=b7();break;case"5b":L[t]=w7();break;case"5c":L[t]=C7();break;case"5d":L[t]=S7();break;case"5e":L[t]=k7();break;case"5f":L[t]=P7();break;case"60":L[t]=R7();break;case"61":L[t]=F7();break;case"62":L[t]=j7();break;case"63":L[t]=M7();break;case"64":L[t]=N7();break;case"65":L[t]=H7();break;case"66":L[t]=Y7();break;case"67":L[t]=Z7();break;case"68":L[t]=$7();break;case"69":L[t]=U7();break;case"6a":L[t]=K7();break;case"6b":L[t]=z7();break;case"6c":L[t]=e5();break;case"6d":L[t]=i5();break;case"6e":L[t]=r5();break;case"6f":L[t]=s5();break;case"70":L[t]=l5();break;case"71":L[t]=c5();break;case"72":L[t]=d5();break;case"73":L[t]=p5();break;case"74":L[t]=m5();break;case"75":L[t]=b5();break;case"76":L[t]=w5();break;case"77":L[t]=C5();break;case"78":L[t]=S5();break;case"79":L[t]=k5();break;case"7a":L[t]=P5();break;case"7b":L[t]=R5();break;case"7c":L[t]=F5();break;case"7d":L[t]=j5();break;case"7e":L[t]=M5();break;case"7f":L[t]=N5();break;case"80":L[t]=H5();break;case"81":L[t]=Y5();break;case"82":L[t]=Z5();break;case"83":L[t]=$5();break;case"84":L[t]=U5();break;case"85":L[t]=K5();break;case"86":L[t]=z5();break;case"87":L[t]=e9();break;case"88":L[t]=i9();break;case"89":L[t]=r9();break;case"8a":L[t]=s9();break;case"8b":L[t]=l9();break;case"8c":L[t]=c9();break;case"8d":L[t]=d9();break;case"8e":L[t]=p9();break;case"8f":L[t]=m9();break;case"90":L[t]=b9();break;case"91":L[t]=w9();break;case"92":L[t]=C9();break;case"93":L[t]=S9();break;case"94":L[t]=k9();break;case"95":L[t]=P9();break;case"96":L[t]=R9();break;case"97":L[t]=F9();break;case"98":L[t]=j9();break;case"99":L[t]=M9();break;case"9a":L[t]=N9();break;case"9b":L[t]=H9();break;case"9c":L[t]=Y9();break;case"9d":L[t]=Z9();break;case"9e":L[t]=$9();break;case"9f":L[t]=U9();break;case"a0":L[t]=K9();break;case"a1":L[t]=z9();break;case"a2":L[t]=eV();break;case"a3":L[t]=iV();break;case"a4":L[t]=rV();break;case"ac":L[t]=sV();break;case"ad":L[t]=lV();break;case"ae":L[t]=cV();break;case"af":L[t]=dV();break;case"b0":L[t]=pV();break;case"b1":L[t]=mV();break;case"b2":L[t]=bV();break;case"b3":L[t]=wV();break;case"b4":L[t]=CV();break;case"b5":L[t]=SV();break;case"b6":L[t]=kV();break;case"b7":L[t]=PV();break;case"b8":L[t]=RV();break;case"b9":L[t]=FV();break;case"ba":L[t]=jV();break;case"bb":L[t]=MV();break;case"bc":L[t]=NV();break;case"bd":L[t]=HV();break;case"be":L[t]=YV();break;case"bf":L[t]=ZV();break;case"c0":L[t]=$V();break;case"c1":L[t]=UV();break;case"c2":L[t]=KV();break;case"c3":L[t]=zV();break;case"c4":L[t]=eee();break;case"c5":L[t]=iee();break;case"c6":L[t]=ree();break;case"c7":L[t]=see();break;case"c8":L[t]=lee();break;case"c9":L[t]=cee();break;case"ca":L[t]=dee();break;case"cb":L[t]=pee();break;case"cc":L[t]=mee();break;case"cd":L[t]=bee();break;case"ce":L[t]=wee();break;case"cf":L[t]=Cee();break;case"d0":L[t]=See();break;case"d1":L[t]=kee();break;case"d2":L[t]=Pee();break;case"d3":L[t]=Ree();break;case"d4":L[t]=Fee();break;case"d5":L[t]=jee();break;case"d6":L[t]=Mee();break;case"d7":L[t]=Nee();break;case"f9":L[t]=Hee();break;case"fa":L[t]=Yee();break;case"fb":L[t]=Zee();break;case"fc":L[t]=$ee();break;case"fd":L[t]=Uee();break;case"fe":L[t]=Kee();break;case"ff":L[t]=zee();break;default:return""}return L[t][i]}function ske(n){return(n+256).toString(16).substr(-2)}function ake(n){for(var e,t,i,r,o,s,a;Array.isArray(n);)n=n[0];switch(n.length){case 1:return qo(n);case 2:return e=qo(n.substr(0,1)),t=qo(n.substr(1,1)),o=(e&3)<<6|t&63,s=(e&28)>>2,s<<8|o;case 3:return e=qo(n.substr(0,1)),t=qo(n.substr(1,1)),i=qo(n.substr(2,1)),o=(t&3)<<6|i&63,s=(e&15)<<4|(t&60)>>2,s<<8|o;default:return e=qo(n.substr(0,1)),t=qo(n.substr(1,1)),i=qo(n.substr(2,1)),r=qo(n.substr(3,1)),o=(i&3)<<6|r&63,s=(t&15)<<4|(i&60)>>2,a=(e&7)<<5|(t&48)>>4,a<<16|s<<8|o}}function qo(n){var e=n+"",t=e.charCodeAt(0);if(55296<=t&&t<=56319){var i=t;if(e.length===1)return t;var r=e.charCodeAt(1);return(i-55296)*1024+(r-56320)+65536}return 56320<=t&&t<=57343,t}});var tte=_(()=>{"use strict"});async function rte(n,e,t,i=""){if(e=="vim")return(await n.eval(t)).toString();if(e=="shell"){let s=await(0,nte.promisify)(ite.exec)(t);return s.stdout.replace(/\s*$/,"")||s.stderr}let r=[`snip._reset("${vf(i)}")`];r.push(...t.split(/\r?\n/).map(s=>s.replace(/\t/g," "))),await qh(n,r);let o=await n.call("pyxeval","str(snip.rv)");return typeof o=="string"?o:""}function ND(n){let{range:e,regex:t,line:i}=n,r=[];if(t&&e!=null){let o=i.slice(e.start.character,e.end.character);r.push(`pattern = re.compile("${vf(t)}")`),r.push(`match = pattern.search("${vf(o)}")`)}else r.push("match = None");return r.join(` +`)}function ote(n){let{range:e,context:t,line:i}=n,r=["import re, os, vim, string, random",`path = vim.eval('expand("%:p")') or ""`,"fn = os.path.basename(path)"];t?(r.push("snip = ContextSnippet()"),r.push(`context = ${t}`)):r.push("context = True");let o=`(${e.start.line},${Buffer.byteLength(i.slice(0,e.start.character))})`,s=`(${e.start.line},${Buffer.byteLength(i.slice(0,e.end.character))})`,a=i.match(/^\s*/)[0];return r.push(`snip = SnippetUtil("${vf(a)}", ${o}, ${s}, context)`),r}async function qh(n,e){try{await n.command(`pyx ${uke(e.join(` `))}`)}catch(t){let i=new Error(t instanceof Error?t.message:t.toString());throw i.stack=`Error on execute python code: ${e.join(` `)} -`+(t instanceof Error?t.stack:t),i}}function Vf(n){let e=Object.keys(n),t=e.length?Math.max.apply(null,e.map(r=>Number(r))):0,i=new Array(t).fill('""');for(let[r,o]of Object.entries(n))i[r]=`"${zf(o)}"`;return`t = (${i.join(",")},)`}function P0e(n,e=!1){if(!E0e&&e===!1)return n;let t=["import traceback, vim","vim.vars['errmsg'] = ''","try:"];return t.push(...n.split(` +`+(t instanceof Error?t.stack:t),i}}function wf(n){let e=Object.keys(n),t=e.length?Math.max.apply(null,e.map(r=>Number(r))):0,i=new Array(t).fill('""');for(let[r,o]of Object.entries(n))i[r]=`"${vf(o)}"`;return`t = (${i.join(",")},)`}function uke(n,e=!1){if(!lke&&e===!1)return n;let t=["import traceback, vim","vim.vars['errmsg'] = ''","try:"];return t.push(...n.split(` `).map(i=>" "+i)),t.push("except Exception as e:"),t.push(" vim.vars['errmsg'] = traceback.format_exc()"),t.join(` -`)}function zf(n){return n.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\t/g,"\\t").replace(/\n/g,"\\n")}function FV(n){if(n.indexOf("\\z")!==-1)throw new Error("pattern \\z not supported");if(n.indexOf("(?s)")!==-1)throw new Error("pattern (?s) not supported");if(n.indexOf("(?x)")!==-1)throw new Error("pattern (?x) not supported");if(n.indexOf(` -`)!==-1)throw new Error("pattern \\n not supported");if(R0e.test(n))throw new Error("pattern (?id/name)yes-pattern|no-pattern not supported");return n.replace(j0e,(e,t)=>e=="\\A"?"^":e.startsWith("(?#")?"":e.startsWith("(?P<")?"(?"+e.slice(3):e.startsWith("(?P=")?`\\k<${t}>`:"")}var PV,_V,bQe,E0e,_0e,R0e,L0e,F0e,I0e,j0e,I_=_(()=>{"use strict";PV=require("child_process"),_V=require("util"),bQe=q()("snippets-eval"),E0e=process.env.VIM_NODE_RPC=="1";_0e=/\\A/,R0e=/\(\?\(\w+\).+\|/,L0e=/\(\?#.*?\)/,F0e=/\(\?P<\w+>.*?\)/,I0e=/\(\?P=(\w+)\)/,j0e=new RegExp(`${L0e.source}|${_0e.source}|${F0e.source}|${I0e.source}`,"g")});function IV(n,e){let t=[...n];for(;t.length>0;){let i=t.shift();if(!e(i))break;t.unshift(...i.children)}}function N0e(n,e=[]){let t="",i=n.length,r=0,o=!1,s=!1;for(;r{"use strict";jV=C(kV());Qo();EV();Pe();I_();A0e=q()("snippets-parser"),O0e=["d","g","i","m","s","u","y"],qr=class{static isDigitCharacter(e){return e>=48&&e<=57}static isVariableCharacter(e){return e===95||e>=97&&e<=122||e>=65&&e<=90}constructor(){this.text("")}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=this.pos,t=0,i=this.value.charCodeAt(e),r;if(r=qr._table[i],typeof r=="number")return this.pos+=1,{type:r,pos:e,len:1};if(qr.isDigitCharacter(i)){r=8;do t+=1,i=this.value.charCodeAt(e+t);while(qr.isDigitCharacter(i));return this.pos+=t,{type:r,pos:e,len:t}}if(qr.isVariableCharacter(i)){r=9;do i=this.value.charCodeAt(e+ ++t);while(qr.isVariableCharacter(i)||qr.isDigitCharacter(i));return this.pos+=t,{type:r,pos:e,len:t}}r=10;do t+=1,i=this.value.charCodeAt(e+t);while(!isNaN(i)&&typeof qr._table[i]>"u"&&!qr.isDigitCharacter(i)&&!qr.isVariableCharacter(i));return this.pos+=t,{type:r,pos:e,len:t}}},j_=qr;j_._table={[36]:0,[58]:1,[44]:2,[123]:3,[125]:4,[92]:5,[47]:6,[124]:7,[43]:11,[45]:12,[63]:13,[40]:15,[41]:16,[96]:17,[33]:18};hs=class{constructor(){this._children=[]}appendChild(e){return e instanceof wt&&this._children[this._children.length-1]instanceof wt?this._children[this._children.length-1].value+=e.value:(e.parent=this,this._children.push(e)),this}setOnlyChild(e){e.parent=this,this._children=[e]}replaceChildren(e){for(let t of e)t.parent=this;this._children=e}get children(){return this._children}get snippet(){let e=this;for(;;){if(!e)return;if(e instanceof ip)return e;e=e.parent}}toString(){return this.children.reduce((e,t)=>e+t.toString(),"")}len(){return 0}},wt=class extends hs{constructor(e){super();this.value=e}static escape(e){return e.replace(/\$|}|\\/g,"\\$&")}toString(){return this.value}toTextmateString(){return wt.escape(this.value)}len(){return this.value.length}clone(){return new wt(this.value)}},cs=class extends hs{constructor(e,t,i){super();this.code=e;this.kind=t;this._value="";this._related=[];if(t==="python"){let{_related:r}=this,o,s=/\bt\[(\d+)\]/g;for(;o=s.exec(e),o!=null;){let a=parseInt(o[1],10);r.includes(a)||r.push(a)}}i!==void 0&&(this._value=i)}get related(){return this._related}update(e){if(this.kind!=="python")return;let t=new Set;this.code=this.code.replace(/\bt\[(\d+)\]/g,(i,r)=>{let o=Number(r),s=e.has(o)?e.get(o):o;return t.add(s),`t[${s}]`}),this._related=Array.from(t)}get index(){if(this.parent instanceof nt)return this.parent.index}async resolve(e){if(!this.code.length)return;let t=await RV(e,this.kind,this.code,this._value);t!=null&&(this._value=t)}len(){return this._value.length}toString(){return this._value}get value(){return this._value}toTextmateString(){let e="";return this.kind=="python"?e="!p ":this.kind=="shell"?e="":this.kind=="vim"&&(e="!v "),"`"+e+this.code+"`"}clone(){return new cs(this.code,this.kind,this.value)}},A_=class extends hs{},nt=class extends A_{constructor(e){super();this.index=e;this.primary=!1}get isFinalTabstop(){return this.index===0}get choice(){return this._children.length===1&&this._children[0]instanceof ep?this._children[0]:void 0}toTextmateString(){let e="";return this.transform&&(e=this.transform.toTextmateString()),this.children.length===0&&!this.transform?`$${this.index}`:this.children.length===0?`\${${this.index}${e}}`:this.choice?`\${${this.index}|${this.choice.toTextmateString()}|${e}}`:`\${${this.index}:${this.children.map(t=>t.toTextmateString()).join("")}${e}}`}clone(){let e=new nt(this.index);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}},ep=class extends hs{constructor(){super(...arguments);this.options=[]}appendChild(e){return e instanceof wt&&(e.parent=this,this.options.push(e)),this}toString(){return this.options[0].value}toTextmateString(){return this.options.map(e=>e.value.replace(/\||,/g,"\\$&")).join(",")}len(){return this.options[0].len()}clone(){let e=new ep;for(let t of this.options)e.appendChild(t);return e}},aD=class extends hs{constructor(){super(...arguments);this.ascii=!1;this.ultisnip=!1}resolve(e){let t=!1,i=e.replace(this.regexp,(...r)=>(t=!0,this._replace(r.slice(0,-2))));return!t&&this._children.some(r=>r instanceof hr&&Boolean(r.elseValue))&&(i=this._replace([])),i}_replace(e){let t="",i=[];for(let r of this._children)if(r instanceof hr){let o=r.resolve(e[r.index]||"");if(this.ultisnip&&o.indexOf("\\")!==-1){let s=t.length;i.push(...wH(o,"\\").map(a=>a+s))}t+=o}else r instanceof tp?t+=r.resolve(e[r.index]):t+=r.toString();return this.ascii&&(t=(0,jV.default)(t)),this.ultisnip?N0e(t,i):t}toString(){return""}toTextmateString(){return`/${this.regexp.source}/${this.children.map(e=>e.toTextmateString())}/${(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")}`}clone(){let e=new aD;return e.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),e._children=this.children.map(t=>t.clone()),e}},tp=class extends hs{constructor(e,t,i){super();this.index=e;this.ifValue=t;this.elseValue=i}resolve(e){return e?this.ifValue:this.elseValue}toTextmateString(){return"(?"+this.index+":"+this.ifValue+(this.elseValue?":"+this.elseValue:"")+")"}clone(){return new tp(this.index,this.ifValue,this.elseValue)}},hr=class extends hs{constructor(e,t,i,r){super();this.index=e;this.shorthandName=t;this.ifValue=i;this.elseValue=r}resolve(e){return this.shorthandName==="upcase"?e?e.toLocaleUpperCase():"":this.shorthandName==="downcase"?e?e.toLocaleLowerCase():"":this.shorthandName==="capitalize"?e?e[0].toLocaleUpperCase()+e.substr(1):"":this.shorthandName==="pascalcase"?e?this._toPascalCase(e):"":Boolean(e)&&typeof this.ifValue=="string"?this.ifValue:!e&&typeof this.elseValue=="string"?this.elseValue:e||""}_toPascalCase(e){let t=e.match(/[a-z]+/gi);return t?t.map(i=>i.charAt(0).toUpperCase()+i.substr(1).toLowerCase()).join(""):e}toTextmateString(){let e="${";return e+=this.index,this.shorthandName?e+=`:/${this.shorthandName}`:this.ifValue&&this.elseValue?e+=`:?${this.ifValue}:${this.elseValue}`:this.ifValue?e+=`:+${this.ifValue}`:this.elseValue&&(e+=`:-${this.elseValue}`),e+="}",e}clone(){return new hr(this.index,this.shorthandName,this.ifValue,this.elseValue)}},Co=class extends A_{constructor(e,t){super();this.name=e;this._resolved=!1;typeof t=="boolean"&&(this._resolved=t)}get resolved(){return this._resolved}async resolve(e){let t=await e.resolve(this);if(this._resolved=!0,t&&t.includes(` -`)){let i="";this.snippet.walk(l=>{if(l==this)return!1;if(l instanceof wt){let u=l.toString().split(/\r?\n/);i=u[u.length-1].match(/^\s*/)[0]}return!0});let r=t.split(` +`)}function vf(n){return n.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\t/g,"\\t").replace(/\n/g,"\\n")}function ste(n){if(n.indexOf("\\z")!==-1)throw new Error("pattern \\z not supported");if(n.indexOf("(?s)")!==-1)throw new Error("pattern (?s) not supported");if(n.indexOf("(?x)")!==-1)throw new Error("pattern (?x) not supported");if(n.indexOf(` +`)!==-1)throw new Error("pattern \\n not supported");if(hke.test(n))throw new Error("pattern (?id/name)yes-pattern|no-pattern not supported");return n.replace(fke,(e,t)=>e=="\\A"?"^":e.startsWith("(?#")?"":e.startsWith("(?P<")?"(?"+e.slice(3):e.startsWith("(?P=")?`\\k<${t}>`:"")}var ite,nte,R5e,lke,cke,hke,dke,gke,pke,fke,IR=_(()=>{"use strict";ite=require("child_process"),nte=require("util"),R5e=W()("snippets-eval"),lke=process.env.VIM_NODE_RPC=="1";cke=/\\A/,hke=/\(\?\(\w+\).+\|/,dke=/\(\?#.*?\)/,gke=/\(\?P<\w+>.*?\)/,pke=/\(\?P=(\w+)\)/,fke=new RegExp(`${dke.source}|${cke.source}|${gke.source}|${pke.source}`,"g")});function ate(n,e){let t=[...n];for(;t.length>0;){let i=t.shift();if(!e(i))break;t.unshift(...i.children)}}function vke(n,e=[]){let t="",i=n.length,r=0,o=!1,s=!1;for(;r{"use strict";lte=x(ete());So();tte();Ne();IR();mke=W()("snippets-parser"),yke=["d","g","i","m","s","u","y"],no=class{static isDigitCharacter(e){return e>=48&&e<=57}static isVariableCharacter(e){return e===95||e>=97&&e<=122||e>=65&&e<=90}constructor(){this.text("")}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=this.pos,t=0,i=this.value.charCodeAt(e),r;if(r=no._table[i],typeof r=="number")return this.pos+=1,{type:r,pos:e,len:1};if(no.isDigitCharacter(i)){r=8;do t+=1,i=this.value.charCodeAt(e+t);while(no.isDigitCharacter(i));return this.pos+=t,{type:r,pos:e,len:t}}if(no.isVariableCharacter(i)){r=9;do i=this.value.charCodeAt(e+ ++t);while(no.isVariableCharacter(i)||no.isDigitCharacter(i));return this.pos+=t,{type:r,pos:e,len:t}}r=10;do t+=1,i=this.value.charCodeAt(e+t);while(!isNaN(i)&&typeof no._table[i]>"u"&&!no.isDigitCharacter(i)&&!no.isVariableCharacter(i));return this.pos+=t,{type:r,pos:e,len:t}}},jR=no;jR._table={[36]:0,[58]:1,[44]:2,[123]:3,[125]:4,[92]:5,[47]:6,[124]:7,[43]:11,[45]:12,[63]:13,[40]:15,[41]:16,[96]:17,[33]:18};_s=class{constructor(){this._children=[]}appendChild(e){return e instanceof Lt&&this._children[this._children.length-1]instanceof Lt?this._children[this._children.length-1].value+=e.value:(e.parent=this,this._children.push(e)),this}setOnlyChild(e){e.parent=this,this._children=[e]}replaceChildren(e){for(let t of e)t.parent=this;this._children=e}get children(){return this._children}get snippet(){let e=this;for(;;){if(!e)return;if(e instanceof xf)return e;e=e.parent}}toString(){return this.children.reduce((e,t)=>e+t.toString(),"")}len(){return 0}},Lt=class extends _s{constructor(e){super();this.value=e}static escape(e){return e.replace(/\$|}|\\/g,"\\$&")}toString(){return this.value}toTextmateString(){return Lt.escape(this.value)}len(){return this.value.length}clone(){return new Lt(this.value)}},Ps=class extends _s{constructor(e,t,i){super();this.code=e;this.kind=t;this._value="";this._related=[];if(t==="python"){let{_related:r}=this,o,s=/\bt\[(\d+)\]/g;for(;o=s.exec(e),o!=null;){let a=parseInt(o[1],10);r.includes(a)||r.push(a)}}typeof i=="string"&&(this._value=i)}get related(){return this._related}update(e){if(this.kind!=="python")return;let t=new Set;this.code=this.code.replace(/\bt\[(\d+)\]/g,(i,r)=>{let o=Number(r),s=e.has(o)?e.get(o):o;return t.add(s),`t[${s}]`}),this._related=Array.from(t)}get index(){if(this.parent instanceof ht)return this.parent.index}async resolve(e){if(!this.code.length)return;let t=await rte(e,this.kind,this.code,this._value??"");t!=null&&(this._value=t)}len(){return this._value.length}toString(){return this._value}get value(){return this._value}toTextmateString(){let e="";return this.kind=="python"?e="!p ":this.kind=="shell"?e="":this.kind=="vim"&&(e="!v "),"`"+e+this.code+"`"}clone(){return new Ps(this.code,this.kind,this.value)}},AR=class extends _s{},ht=class extends AR{constructor(e){super();this.index=e;this.primary=!1}get isFinalTabstop(){return this.index===0}get choice(){return this._children.length===1&&this._children[0]instanceof Df?this._children[0]:void 0}toTextmateString(){let e="";return this.transform&&(e=this.transform.toTextmateString()),this.children.length===0&&!this.transform?`$${this.index}`:this.children.length===0?`\${${this.index}${e}}`:this.choice?`\${${this.index}|${this.choice.toTextmateString()}|${e}}`:`\${${this.index}:${this.children.map(t=>t.toTextmateString()).join("")}${e}}`}clone(){let e=new ht(this.index);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}},Df=class extends _s{constructor(){super(...arguments);this.options=[]}appendChild(e){return e instanceof Lt&&(e.parent=this,this.options.push(e)),this}toString(){return this.options[0].value}toTextmateString(){return this.options.map(e=>e.value.replace(/\||,/g,"\\$&")).join(",")}len(){return this.options[0].len()}clone(){let e=new Df;for(let t of this.options)e.appendChild(t);return e}},BD=class extends _s{constructor(){super(...arguments);this.ascii=!1;this.ultisnip=!1}resolve(e){let t=!1,i=e.replace(this.regexp,(...r)=>(t=!0,this._replace(r.slice(0,-2))));return!t&&this._children.some(r=>r instanceof Cr&&Boolean(r.elseValue))&&(i=this._replace([])),i}_replace(e){let t="",i=[];for(let r of this._children)if(r instanceof Cr){let o=r.resolve(e[r.index]||"");if(this.ultisnip&&o.indexOf("\\")!==-1){let s=t.length;i.push(..._q(o,"\\").map(a=>a+s))}t+=o}else r instanceof Cf?t+=r.resolve(e[r.index]):t+=r.toString();return this.ascii&&(t=(0,lte.default)(t)),this.ultisnip?vke(t,i):t}toString(){return""}toTextmateString(){return`/${this.regexp.source}/${this.children.map(e=>e.toTextmateString())}/${(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")}`}clone(){let e=new BD;return e.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),e._children=this.children.map(t=>t.clone()),e}},Cf=class extends _s{constructor(e,t,i){super();this.index=e;this.ifValue=t;this.elseValue=i}resolve(e){return e?this.ifValue:this.elseValue}toTextmateString(){return"(?"+this.index+":"+this.ifValue+(this.elseValue?":"+this.elseValue:"")+")"}clone(){return new Cf(this.index,this.ifValue,this.elseValue)}},Cr=class extends _s{constructor(e,t,i,r){super();this.index=e;this.shorthandName=t;this.ifValue=i;this.elseValue=r}resolve(e){return this.shorthandName==="upcase"?e?e.toLocaleUpperCase():"":this.shorthandName==="downcase"?e?e.toLocaleLowerCase():"":this.shorthandName==="capitalize"?e?e[0].toLocaleUpperCase()+e.substr(1):"":this.shorthandName==="pascalcase"?e?this._toPascalCase(e):"":Boolean(e)&&typeof this.ifValue=="string"?this.ifValue:!e&&typeof this.elseValue=="string"?this.elseValue:e||""}_toPascalCase(e){let t=e.match(/[a-z]+/gi);return t?t.map(i=>i.charAt(0).toUpperCase()+i.substr(1).toLowerCase()).join(""):e}toTextmateString(){let e="${";return e+=this.index,this.shorthandName?e+=`:/${this.shorthandName}`:this.ifValue&&this.elseValue?e+=`:?${this.ifValue}:${this.elseValue}`:this.ifValue?e+=`:+${this.ifValue}`:this.elseValue&&(e+=`:-${this.elseValue}`),e+="}",e}clone(){return new Cr(this.index,this.shorthandName,this.ifValue,this.elseValue)}},Yo=class extends AR{constructor(e,t){super();this.name=e;this._resolved=!1;typeof t=="boolean"&&(this._resolved=t)}get resolved(){return this._resolved}async resolve(e){let t=await e.resolve(this);if(this._resolved=!0,t&&t.includes(` +`)){let i="";this.snippet.walk(l=>{if(l==this)return!1;if(l instanceof Lt){let u=l.toString().split(/\r?\n/);i=u[u.length-1].match(/^\s*/)[0]}return!0});let r=t.split(` `),o=r.filter(l=>l.length>0).map(l=>l.match(/^\s*/)[0]),s=o.length==0?"":o.reduce((l,u)=>l.lengthu==0||l.length==0||!l.startsWith(s)?l:i+l.slice(s.length)).join(` -`)}return this.transform&&(t=this.transform.resolve(t||"")),t!==void 0?(this._children=[new wt(t)],!0):!1}toTextmateString(){let e="";return this.transform&&(e=this.transform.toTextmateString()),this.children.length===0?`\${${this.name}${e}}`:`\${${this.name}:${this.children.map(t=>t.toTextmateString()).join("")}${e}}`}clone(){let e=new Co(this.name,this.resolved);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}};ip=class extends hs{constructor(e){super();this.ultisnip=e===!0}get hasPython(){return this.ultisnip?this.pyBlocks.length>0:!1}get hasCodeBlock(){if(!this.ultisnip)return!1;let{pyBlocks:e,otherBlocks:t}=this;return e.length>0||t.length>0}get values(){if(this._values)return this._values;let e={},t=0;this.placeholders.forEach(i=>{t=Math.max(i.index,t),i.transform==null&&(i.primary||e[i.index]===void 0)&&(e[i.index]=i.toString())});for(let i=0;i<=t;i++)e[i]===void 0&&(e[i]="");return this._values=e,e}get orderedPyIndexBlocks(){let e=[],t=this.pyBlocks.filter(s=>typeof s.index=="number");if(t.length==0)return e;let i=t.map(s=>s.index),r=[],o=s=>{let{related:a}=s;return a.length==0||a.every(l=>!i.includes(l)||r.includes(l))?(r.push(s.index),e.push(s),!0):!1};for(;t.length>0;){let s=!1;for(let a of t)o(a)&&(s=!0);if(!s)break;t=t.filter(a=>!r.includes(a.index))}return e}async evalCodeBlocks(e,t){let{pyBlocks:i,otherBlocks:r}=this;if(await Promise.all(r.map(o=>{let s=o.value;return o.resolve(e).then(()=>{o.parent instanceof nt&&s!==o.value&&this.onPlaceholderUpdate(o.parent)})})),i.length){let o=Vf(this.values);await kh(e,[...t,o]);for(let a of i){let l=a.value;await a.resolve(e),l!==a.value&&a.parent instanceof nt&&(this.onPlaceholderUpdate(a.parent),await kh(e,[Vf(this.values)]))}for(let a of this.orderedPyIndexBlocks)await this.updatePyIndexBlock(e,a);let s=i.filter(a=>a.index===void 0&&a.related.length>0);for(let a of s)await a.resolve(e)}}async updatePythonCodes(e,t){let i;if(t instanceof nt)i=t.index;else for(;t.parent;){if(t instanceof nt){i=t.index;break}t=t.parent}if(i===void 0)return;let r=this.getDependentPyIndexBlocks(i);await kh(e,[Vf(this.values)]);for(let s of r)await this.updatePyIndexBlock(e,s);let o=this.pyBlocks.filter(s=>s.index===void 0&&s.related.length>0);for(let s of o)await s.resolve(e)}getDependentPyIndexBlocks(e){let t=[],i=[],r=this.pyBlocks.filter(s=>typeof s.index=="number"),o=s=>{let a=r.filter(l=>!i.includes(l.index)&&l.related.includes(s));a.length>0&&(t.push(...a),a.forEach(l=>{o(l.index)}))};return o(e),t}async updatePyIndexBlock(e,t){let i=t.value;await t.resolve(e),i!==t.value&&(t.parent instanceof nt&&this.onPlaceholderUpdate(t.parent),await kh(e,[Vf(this.values)]))}get placeholderInfo(){if(!this._placeholders){let e=[],t=[],i=[],r=[];this.walk(o=>{if(o instanceof nt)r.push(o);else if(o instanceof Co){let s=o.name.charCodeAt(0);(s<65||s>90)&&e.push(o)}else o instanceof cs&&(o.kind==="python"?t.push(o):i.push(o));return!0}),this._placeholders={placeholders:r,pyBlocks:t,otherBlocks:i,variables:e}}return this._placeholders}get variables(){return this.placeholderInfo.variables}get placeholders(){return this.placeholderInfo.placeholders}get pyBlocks(){return this.placeholderInfo.pyBlocks}get otherBlocks(){return this.placeholderInfo.otherBlocks}get maxIndexNumber(){let{placeholders:e}=this;return e.reduce((t,i)=>Math.max(t,i.index),0)}get first(){var o,s;let{placeholders:e,variables:t}=this,[i,r]=rW(e.filter(a=>!a.transform),a=>a.index!==0);if(i.length){let a=Math.min.apply(null,i.map(u=>u.index)),l=i.filter(u=>u.index==a);return(o=l.find(u=>u.primary))!=null?o:l[0]}return t.length?t[0]:(s=r.find(a=>a.primary))!=null?s:r[0]}insertSnippet(e,t,i,r){let o=t instanceof nt?t.index:this.maxIndexNumber+1,[s,a]=i,l=r?sD(r):void 0,u=new Fa(!!r,l).parse(e,!0),c=u.maxIndexNumber+1,h=new Map;for(let p of u.placeholders){let b=p.index;p.isFinalTabstop?p.index=c+o:p.index=p.index+o,h.set(b,p.index)}r&&u.pyBlocks.forEach(p=>{p.update(h)});let d=new Map;this.walk(p=>{if(p instanceof nt&&p.index>o){let b=p.index;p.index=p.index+c,d.set(b,p.index)}return!0}),this.hasPython&&this.walk(p=>(p instanceof cs&&p.update(d),!0));let g=u.first,f=u.children.slice();return s&&f.unshift(new wt(s)),a&&f.push(new wt(a)),this.replace(t,f),g}async update(e,t,i){this.resetMarker(t,i),this.hasPython&&await this.updatePythonCodes(e,t)}deleteText(e,t){let i=0,r,o=e+t,s=0;if(this.walk(d=>{let g=d.len();return d instanceof wt&&e>=i&&i+g>=o?(r=d,s=e-i,!1):(i+=g,!0)}),!r)return!1;let a=r.parent,l=r.value,u=l.slice(0,s)+l.slice(s+t),c=a.children.slice(),h=c.indexOf(r);return c.splice(h,1,new wt(u)),a.replaceChildren(c),!0}resetMarker(e,t){let i;e instanceof nt?i=this.placeholders.filter(r=>r.index==e.index):i=this.variables.filter(r=>r.name==e.name);for(let r of i){let o=r.transform?r.transform.resolve(t):t;r.setOnlyChild(new wt(o||""))}this.synchronizeParents(i),this.reset()}onPlaceholderUpdate(e){let t=e.toString(),i;e instanceof nt?(this.values[e.index]=t,i=this.placeholders.filter(r=>r.index==e.index)):i=this.variables.filter(r=>r.name==e.name);for(let r of i){if(r===e)continue;let o=r.transform?r.transform.resolve(t):t;r.setOnlyChild(new wt(o||""))}this.synchronizeParents(i)}synchronizeParents(e){let t=[];e.forEach(i=>{let r=i.parent;r instanceof nt&&!t.includes(r)&&t.push(r)}),t.forEach(i=>{this.onPlaceholderUpdate(i)})}offset(e){let t=0,i=!1;return this.walk(r=>r===e?(i=!0,!1):(t+=r.len(),!0)),i?t:-1}fullLen(e){let t=0;return IV([e],i=>(t+=i.len(),!0)),t}getTextBefore(e,t){let i="",r=o=>{let s=o.parent;if(!s)return;let a="";for(let l of s.children){if(l===o)break;a=a+l.toString()}i=a+i,s!=t&&r(s)};return r(e),i}enclosingPlaceholders(e){let t=[],{parent:i}=e;for(;i;)i instanceof nt&&t.push(i),i=i.parent;return t}async resolveVariables(e){let t=[];this.walk(i=>(i instanceof Co&&!i.resolved&&t.push(i),!0)),t.length&&(await Promise.all(t.map(i=>i.resolve(e))),this.synchronizeParents(t))}appendChild(e){return this.reset(),super.appendChild(e)}replace(e,t){e.replaceChildren(t),(e instanceof nt||e instanceof Co)&&this.onPlaceholderUpdate(e),this.reset()}reset(){this._placeholders=void 0,this._values=void 0}toTextmateString(){return this.children.reduce((e,t)=>e+t.toTextmateString(),"")}clone(){let e=new ip(this.ultisnip);return e._children=this.children.map(t=>t.clone()),e}walk(e){IV(this.children,e)}},Fa=class{constructor(e,t){this.ultisnip=e;this.matchCode=t;this._scanner=new j_}static escape(e){return e.replace(/\$|}|\\/g,"\\$&")}static isPlainText(e){let t=new Fa().parse(e.replace(/\$0$/,""),!1);return t.children.length==1&&t.children[0]instanceof wt}text(e){return this.parse(e,!1).toString()}parse(e,t){this._scanner.text(e),this._token=this._scanner.next();let i=new ip(this.ultisnip);for(;this._parse(i););let r=new Map,o=[],s=[],a=!1;i.walk(c=>(c instanceof nt&&(c.index==0&&(a=!0),c.children.some(h=>h instanceof nt)?s.push(c):!r.has(c.index)&&c.children.length>0?(c.primary=!0,r.set(c.index,c.toString())):o.push(c)),!0));let l=s.map(c=>c.index);for(let c of o)if(r.has(c.index)){let h=r.get(c.index),d=new wt(c.transform?c.transform.resolve(h):h);c.setOnlyChild(d)}else if(!l.includes(c.index))if(c.transform){let h=new wt(c.transform.resolve(""));c.setOnlyChild(h)}else c.primary=!0,r.set(c.index,"");let u=()=>{let c=new Set;for(let h of s)if(h.children.every(d=>!(d instanceof nt)||r.has(d.index))){let d=h.toString();r.set(h.index,d);for(let g of o.filter(f=>f.index==h.index)){let f=new wt(g.transform?g.transform.resolve(d):d);g.setOnlyChild(f)}c.add(h.index)}s=s.filter(h=>!c.has(h.index)),!(s.length==0||!c.size)&&u()};return u(),!a&&t&&i.appendChild(new nt(0)),i}_accept(e,t){if(e===void 0||this._token.type===e){let i=t?this._scanner.tokenText(this._token):!0;return this._token=this._scanner.next(),i}return!1}_backTo(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1}_until(e,t=!1){if(this._token.type===14)return!1;let i=this._token,r;for(;this._token.type!==e||t&&(r==null?void 0:r.type)===5;)if(t&&(r=this._token),this._token=this._scanner.next(),this._token.type===14)return!1;let o=this._scanner.value.substring(i.pos,this._token.pos);return this._token=this._scanner.next(),o}_parse(e){return this._parseEscaped(e)||this._parseCodeBlock(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)||this.ultisnip&&this._accept(3,!0)||this.ultisnip&&this._accept(17,!0)||t,e.appendChild(new wt(t)),!0):!1}_parseTabstopOrVariableName(e){let t,i=this._token;return this._accept(0)&&(t=this._accept(9,!0)||this._accept(8,!0))?(e.appendChild(/^\d+$/.test(t)?new nt(Number(t)):new Co(t)),!0):this._backTo(i)}_parseComplexPlaceholder(e){let t,i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(8,!0))))return this._backTo(i);let o=new nt(Number(t));if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(o),!0;if(!this._parse(o))return e.appendChild(new wt("${"+t+":")),o.children.forEach(e.appendChild,e),!0}else if(o.index>0&&this._accept(7)){let s=new ep;for(;;){if(this._parseChoiceElement(s)){if(this._accept(2))continue;if(this._accept(7)&&(o.appendChild(s),this._accept(4)))return e.appendChild(o),!0}return this._backTo(i),!1}}else return this._accept(6)?this._parseTransform(o)?(e.appendChild(o),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(o),!0):this._backTo(i)}_parseChoiceElement(e){let t=this._token,i=[];for(;!(this._token.type===2||this._token.type===7);){let r;if((r=this._accept(5,!0))?r=this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||r:r=this._accept(void 0,!0),!r)return this._backTo(t),!1;i.push(r)}return i.length===0?(this._backTo(t),!1):(e.appendChild(new wt(i.join(""))),!0)}_parseComplexVariable(e){let t,i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(9,!0))))return this._backTo(i);let o=new Co(t);if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(o),!0;if(!this._parse(o))return e.appendChild(new wt("${"+t+":")),o.children.forEach(e.appendChild,e),!0}else return this._accept(6)?this._parseTransform(o)?(e.appendChild(o),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(o),!0):this._backTo(i)}_parseTransform(e){let t=new aD;t.ultisnip=this.ultisnip===!0;let i="",r="";for(;!this._accept(6);){let s;if(s=this._accept(5,!0)){s=this._accept(6,!0)||s,i+=s;continue}if(this._token.type!==14){i+=this._accept(void 0,!0);continue}return!1}for(;!this._accept(6);){let s;if(s=this._accept(5,!0)){s=this._accept(6,!0)||s,t.appendChild(new wt(s));continue}if(!(this._parseFormatString(t)||this._parseConditionString(t)||this._parseAnything(t)))return!1}let o=!1;for(;!this._accept(4);){if(this._token.type!==14){let s=this._accept(void 0,!0);s=="a"?o=!0:(O0e.includes(s)||A0e.error(`Unknown regex option: ${s}`),r+=s);continue}return!1}try{o&&(t.ascii=!0),this.ultisnip&&(i=FV(i)),t.regexp=new RegExp(i,r)}catch{return!1}return e.transform=t,!0}_parseConditionString(e){if(!this.ultisnip)return!1;let t=this._token;if(!this._accept(15))return!1;if(!this._accept(13))return this._backTo(t),!1;let i=this._accept(8,!0);if(!i)return this._backTo(t),!1;if(!this._accept(1))return this._backTo(t),!1;let r=this._until(16,!0);if(r){let o=0;for(;ot.toTextmateString()).join("")}${e}}`}clone(){let e=new Yo(this.name,this.resolved);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}};xf=class extends _s{constructor(e){super();this.ultisnip=e===!0}get hasPython(){return this.ultisnip?this.pyBlocks.length>0:!1}get hasCodeBlock(){if(!this.ultisnip)return!1;let{pyBlocks:e,otherBlocks:t}=this;return e.length>0||t.length>0}get values(){if(this._values)return this._values;let e={},t=0;this.placeholders.forEach(i=>{t=Math.max(i.index,t),i.transform==null&&(i.primary||e[i.index]===void 0)&&(e[i.index]=i.toString())});for(let i=0;i<=t;i++)e[i]===void 0&&(e[i]="");return this._values=e,e}get orderedPyIndexBlocks(){let e=[],t=this.pyBlocks.filter(s=>typeof s.index=="number");if(t.length==0)return e;let i=t.map(s=>s.index),r=[],o=s=>{let{related:a}=s;return a.length==0||a.every(l=>!i.includes(l)||r.includes(l))?(r.push(s.index),e.push(s),!0):!1};for(;t.length>0;){let s=!1;for(let a of t)o(a)&&(s=!0);if(!s)break;t=t.filter(a=>!r.includes(a.index))}return e}async evalCodeBlocks(e,t){let{pyBlocks:i,otherBlocks:r}=this;if(await Promise.all(r.map(o=>{let s=o.value;return o.resolve(e).then(()=>{o.parent instanceof ht&&s!==o.value&&this.onPlaceholderUpdate(o.parent)})})),i.length){let o=wf(this.values);await qh(e,[...t,o]);for(let a of i){let l=a.value;await a.resolve(e),l!==a.value&&a.parent instanceof ht&&(this.onPlaceholderUpdate(a.parent),await qh(e,[wf(this.values)]))}for(let a of this.orderedPyIndexBlocks)await this.updatePyIndexBlock(e,a);let s=i.filter(a=>a.index===void 0&&a.related.length>0);for(let a of s)await a.resolve(e)}}async updatePythonCodes(e,t){let i;if(t instanceof ht)i=t.index;else for(;t.parent;){if(t instanceof ht){i=t.index;break}t=t.parent}if(i===void 0)return;let r=this.getDependentPyIndexBlocks(i);await qh(e,[wf(this.values)]);for(let s of r)await this.updatePyIndexBlock(e,s);let o=this.pyBlocks.filter(s=>s.index===void 0&&s.related.length>0);for(let s of o)await s.resolve(e)}getDependentPyIndexBlocks(e){let t=[],i=[],r=this.pyBlocks.filter(s=>typeof s.index=="number"),o=s=>{let a=r.filter(l=>!i.includes(l.index)&&l.related.includes(s));a.length>0&&(t.push(...a),a.forEach(l=>{o(l.index)}))};return o(e),t}async updatePyIndexBlock(e,t){let i=t.value;await t.resolve(e),i!==t.value&&(t.parent instanceof ht&&this.onPlaceholderUpdate(t.parent),await qh(e,[wf(this.values)]))}get placeholderInfo(){if(!this._placeholders){let e=[],t=[],i=[],r=[];this.walk(o=>{if(o instanceof ht)r.push(o);else if(o instanceof Yo){let s=o.name.charCodeAt(0);(s<65||s>90)&&e.push(o)}else o instanceof Ps&&(o.kind==="python"?t.push(o):i.push(o));return!0}),this._placeholders={placeholders:r,pyBlocks:t,otherBlocks:i,variables:e}}return this._placeholders}get variables(){return this.placeholderInfo.variables}get placeholders(){return this.placeholderInfo.placeholders}get pyBlocks(){return this.placeholderInfo.pyBlocks}get otherBlocks(){return this.placeholderInfo.otherBlocks}get maxIndexNumber(){let{placeholders:e}=this;return e.reduce((t,i)=>Math.max(t,i.index),0)}get first(){let{placeholders:e,variables:t}=this,[i,r]=p3(e.filter(o=>!o.transform),o=>o.index!==0);if(i.length){let o=Math.min.apply(null,i.map(a=>a.index)),s=i.filter(a=>a.index==o);return s.find(a=>a.primary)??s[0]}return t.length?t[0]:r.find(o=>o.primary)??r[0]}insertSnippet(e,t,i,r){let o=t instanceof ht?t.index:this.maxIndexNumber+1,[s,a]=i,l=r?ND(r):void 0,u=new $a(!!r,l).parse(e,!0),c=u.maxIndexNumber+1,h=new Map;for(let f of u.placeholders){let m=f.index;f.isFinalTabstop?f.index=c+o:f.index=f.index+o,h.set(m,f.index)}r&&u.pyBlocks.forEach(f=>{f.update(h)});let d=new Map;this.walk(f=>{if(f instanceof ht&&f.index>o){let m=f.index;f.index=f.index+c,d.set(m,f.index)}return!0}),this.hasPython&&this.walk(f=>(f instanceof Ps&&f.update(d),!0));let g=u.first,p=u.children.slice();return s&&p.unshift(new Lt(s)),a&&p.push(new Lt(a)),this.replace(t,p),g}async update(e,t,i){this.resetMarker(t,i),this.hasPython&&await this.updatePythonCodes(e,t)}deleteText(e,t){let i=0,r,o=e+t,s=0;if(this.walk(d=>{let g=d.len();return d instanceof Lt&&e>=i&&i+g>=o?(r=d,s=e-i,!1):(i+=g,!0)}),!r)return!1;let a=r.parent,l=r.value,u=l.slice(0,s)+l.slice(s+t),c=a.children.slice(),h=c.indexOf(r);return c.splice(h,1,new Lt(u)),a.replaceChildren(c),!0}resetMarker(e,t){let i;e instanceof ht?i=this.placeholders.filter(r=>r.index==e.index):i=this.variables.filter(r=>r.name==e.name);for(let r of i){let o=r.transform?r.transform.resolve(t):t;r.setOnlyChild(new Lt(o||""))}this.synchronizeParents(i),this.reset()}onPlaceholderUpdate(e){let t=e.toString(),i;e instanceof ht?(this.values[e.index]=t,i=this.placeholders.filter(r=>r.index==e.index)):i=this.variables.filter(r=>r.name==e.name);for(let r of i){if(r===e)continue;let o=r.transform?r.transform.resolve(t):t;r.setOnlyChild(new Lt(o||""))}this.synchronizeParents(i)}synchronizeParents(e){let t=[];e.forEach(i=>{let r=i.parent;r instanceof ht&&!t.includes(r)&&t.push(r)}),t.forEach(i=>{this.onPlaceholderUpdate(i)})}offset(e){let t=0,i=!1;return this.walk(r=>r===e?(i=!0,!1):(t+=r.len(),!0)),i?t:-1}fullLen(e){let t=0;return ate([e],i=>(t+=i.len(),!0)),t}getTextBefore(e,t){let i="",r=o=>{let s=o.parent;if(!s)return;let a="";for(let l of s.children){if(l===o)break;a=a+l.toString()}i=a+i,s!=t&&r(s)};return r(e),i}enclosingPlaceholders(e){let t=[],{parent:i}=e;for(;i;)i instanceof ht&&t.push(i),i=i.parent;return t}async resolveVariables(e){let t=[];this.walk(i=>(i instanceof Yo&&!i.resolved&&t.push(i),!0)),t.length&&(await Promise.all(t.map(i=>i.resolve(e))),this.synchronizeParents(t))}appendChild(e){return this.reset(),super.appendChild(e)}replace(e,t){e.replaceChildren(t),(e instanceof ht||e instanceof Yo)&&this.onPlaceholderUpdate(e),this.reset()}reset(){this._placeholders=void 0,this._values=void 0}toTextmateString(){return this.children.reduce((e,t)=>e+t.toTextmateString(),"")}clone(){let e=new xf(this.ultisnip);return e._children=this.children.map(t=>t.clone()),e}walk(e){ate(this.children,e)}},$a=class{constructor(e,t){this.ultisnip=e;this.matchCode=t;this._scanner=new jR}static escape(e){return e.replace(/\$|}|\\/g,"\\$&")}static isPlainText(e){let t=new $a().parse(e.replace(/\$0$/,""),!1);return t.children.length==1&&t.children[0]instanceof Lt}text(e){return this.parse(e,!1).toString()}parse(e,t){this._scanner.text(e),this._token=this._scanner.next();let i=new xf(this.ultisnip);for(;this._parse(i););let r=new Map,o=[],s=[],a=!1;i.walk(c=>(c instanceof ht&&(c.index==0&&(a=!0),c.children.some(h=>h instanceof ht)?s.push(c):!r.has(c.index)&&c.children.length>0?(c.primary=!0,r.set(c.index,c.toString())):o.push(c)),!0));let l=s.map(c=>c.index);for(let c of o)if(r.has(c.index)){let h=r.get(c.index),d=new Lt(c.transform?c.transform.resolve(h):h);c.setOnlyChild(d)}else if(!l.includes(c.index))if(c.transform){let h=new Lt(c.transform.resolve(""));c.setOnlyChild(h)}else c.primary=!0,r.set(c.index,"");let u=()=>{let c=new Set;for(let h of s)if(h.children.every(d=>!(d instanceof ht)||r.has(d.index))){let d=h.toString();r.set(h.index,d);for(let g of o.filter(p=>p.index==h.index)){let p=new Lt(g.transform?g.transform.resolve(d):d);g.setOnlyChild(p)}c.add(h.index)}s=s.filter(h=>!c.has(h.index)),!(s.length==0||!c.size)&&u()};return u(),!a&&t&&i.appendChild(new ht(0)),i}_accept(e,t){if(e===void 0||this._token.type===e){let i=t?this._scanner.tokenText(this._token):!0;return this._token=this._scanner.next(),i}return!1}_backTo(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1}_until(e,t=!1){if(this._token.type===14)return!1;let i=this._token,r;for(;this._token.type!==e||t&&(r==null?void 0:r.type)===5;)if(t&&(r=this._token),this._token=this._scanner.next(),this._token.type===14)return!1;let o=this._scanner.value.substring(i.pos,this._token.pos);return this._token=this._scanner.next(),o}_parse(e){return this._parseEscaped(e)||this._parseCodeBlock(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)||this.ultisnip&&this._accept(3,!0)||this.ultisnip&&this._accept(17,!0)||t,e.appendChild(new Lt(t)),!0):!1}_parseTabstopOrVariableName(e){let t,i=this._token;return this._accept(0)&&(t=this._accept(9,!0)||this._accept(8,!0))?(e.appendChild(/^\d+$/.test(t)?new ht(Number(t)):new Yo(t)),!0):this._backTo(i)}_parseComplexPlaceholder(e){let t,i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(8,!0))))return this._backTo(i);let o=new ht(Number(t));if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(o),!0;if(!this._parse(o))return e.appendChild(new Lt("${"+t+":")),o.children.forEach(e.appendChild,e),!0}else if(o.index>0&&this._accept(7)){let s=new Df;for(;;){if(this._parseChoiceElement(s)){if(this._accept(2))continue;if(this._accept(7)&&(o.appendChild(s),this._accept(4)))return e.appendChild(o),!0}return this._backTo(i),!1}}else return this._accept(6)?this._parseTransform(o)?(e.appendChild(o),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(o),!0):this._backTo(i)}_parseChoiceElement(e){let t=this._token,i=[];for(;!(this._token.type===2||this._token.type===7);){let r;if((r=this._accept(5,!0))?r=this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||r:r=this._accept(void 0,!0),!r)return this._backTo(t),!1;i.push(r)}return i.length===0?(this._backTo(t),!1):(e.appendChild(new Lt(i.join(""))),!0)}_parseComplexVariable(e){let t,i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(9,!0))))return this._backTo(i);let o=new Yo(t);if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(o),!0;if(!this._parse(o))return e.appendChild(new Lt("${"+t+":")),o.children.forEach(e.appendChild,e),!0}else return this._accept(6)?this._parseTransform(o)?(e.appendChild(o),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(o),!0):this._backTo(i)}_parseTransform(e){let t=new BD;t.ultisnip=this.ultisnip===!0;let i="",r="";for(;!this._accept(6);){let s;if(s=this._accept(5,!0)){s=this._accept(6,!0)||s,i+=s;continue}if(this._token.type!==14){i+=this._accept(void 0,!0);continue}return!1}for(;!this._accept(6);){let s;if(s=this._accept(5,!0)){s=this._accept(6,!0)||s,t.appendChild(new Lt(s));continue}if(!(this._parseFormatString(t)||this._parseConditionString(t)||this._parseAnything(t)))return!1}let o=!1;for(;!this._accept(4);){if(this._token.type!==14){let s=this._accept(void 0,!0);s=="a"?o=!0:(yke.includes(s)||mke.error(`Unknown regex option: ${s}`),r+=s);continue}return!1}try{o&&(t.ascii=!0),this.ultisnip&&(i=ste(i)),t.regexp=new RegExp(i,r)}catch{return!1}return e.transform=t,!0}_parseConditionString(e){if(!this.ultisnip)return!1;let t=this._token;if(!this._accept(15))return!1;if(!this._accept(13))return this._backTo(t),!1;let i=this._accept(8,!0);if(!i)return this._backTo(t),!1;if(!this._accept(1))return this._backTo(t),!1;let r=this._until(16,!0);if(r){let o=0;for(;o!/^\s*$/.test(u));let a=s[0]?s[0].match(/^\s*/)[0]:"";a.length&&s.every(u=>u.startsWith(a))&&(s=s.map(u=>u.slice(a.length))),a==" "&&s[0].startsWith(a)&&(s[0]=s[0].slice(1));let l=new cs(o+s.join(` -`),"python");e.appendChild(l)}return!0}}return this._backTo(t),!1}_parseAnything(e){if(this._token.type!==14){let t=this._scanner.tokenText(this._token);return e.appendChild(new wt(t)),this._accept(void 0),!0}return!1}},M0e=[":","(",")","{","}"]});function O_(n,e){let{range:t,newText:i}=n,r=e.length,o=i.length;if(r===0||o===0)return n;let{start:s,end:a}=t,l=0;for(let d=1;d<=Math.min(o,r)&&i[d-1]===e[d-1];d++)l=d;let u=0,c=Math.min(o-l,r-l);if(c>0)for(let d=1;d<=c&&i[o-d]===e[r-d];d++)u=d;let h=u==0?i.slice(l):i.slice(l,-u);return l>0&&(s=_i(s,i.slice(0,l))),u>0&&(a=_i(t.start,e.slice(0,-u))),Ni.TextEdit.replace(Ni.Range.create(s,a),h)}function AV(n,e,t){let i=Ni.Range.create(n,_i(n,t));return ut(e,i)==0}function OV(n,e,t){var o;if(t.lines.length=0;s--){let a=(o=t.lines[s])!=null?o:"";if(s===n.line){let l=e.lines[s].slice(0,n.character);if(!a.startsWith(l)){r=!1;break}}else if(a!==e.lines[s]){r=!1;break}}return r}function MV(n,e,t){let i=e.lines.length;if(t.lines.length!/^\s*$/.test(u));let a=s[0]?s[0].match(/^\s*/)[0]:"";a.length&&s.every(u=>u.startsWith(a))&&(s=s.map(u=>u.slice(a.length))),a==" "&&s[0].startsWith(a)&&(s[0]=s[0].slice(1));let l=new Ps(o+s.join(` +`),"python");e.appendChild(l)}return!0}}return this._backTo(t),!1}_parseAnything(e){if(this._token.type!==14){let t=this._scanner.tokenText(this._token);return e.appendChild(new Lt(t)),this._accept(void 0),!0}return!1}},bke=[":","(",")","{","}"]});function MR(n,e){let{range:t,newText:i}=n,r=e.length,o=i.length;if(r===0||o===0)return n;let{start:s,end:a}=t,l=0;for(let d=1;d<=Math.min(o,r)&&i[d-1]===e[d-1];d++)l=d;let u=0,c=Math.min(o-l,r-l);if(c>0)for(let d=1;d<=c&&i[o-d]===e[r-d];d++)u=d;let h=u==0?i.slice(l):i.slice(l,-u);return l>0&&(s=Bi(s,i.slice(0,l))),u>0&&(a=Bi(t.start,e.slice(0,-u))),Gi.TextEdit.replace(Gi.Range.create(s,a),h)}function ute(n,e,t){let i=Gi.Range.create(n,Bi(n,t));return mt(e,i)==0}function cte(n,e,t){if(t.lines.length=0;o--){let s=t.lines[o]??"";if(o===n.line){let a=e.lines[o].slice(0,n.character);if(!s.startsWith(a)){r=!1;break}}else if(s!==e.lines[o]){r=!1;break}}return r}function hte(n,e,t){let i=e.lines.length;if(t.lines.length{let l=s.match(/^\s*/)[0],u=l,c=l.startsWith(" ");return c&&t.insertSpaces?u=r.repeat(l.length):!c&&!t.insertSpaces&&(u=r.repeat(l.length/o)),(a==0||s.length==0?"":e)+u+s.slice(l.length)}),i.join(` -`)}function HV(n){return!!(/^\s/.test(n)||n.indexOf(` -`)!==-1)}var Ni,FQe,uD,M_=_(()=>{"use strict";Ni=C(H());Ec();yt();Ar();I_();lD();FQe=q()("snippets-snipet"),uD=class{constructor(e,t,i,r){this.snippetString=e;this.position=t;this.nvim=i;this.resolver=r}async init(e,t=!1){let i=e?sD(e):void 0,o=new Fa(!!e,i).parse(this.snippetString,!0);this.tmSnippet=o,await this.resolve(e),this.synchronize(),t||(this.nvim.call("coc#compat#del_var",["coc_selected_text"],!0),this.nvim.call("coc#compat#del_var",["coc_last_placeholder"],!0))}async resolve(e){let{snippet:t}=this.tmSnippet,{resolver:i,nvim:r}=this;if(i&&await t.resolveVariables(i),e&&e.noPython!==!0){let o=[];t.hasPython&&(o=LV(e)),await t.evalCodeBlocks(r,o)}}getRanges(e){let t=e.marker;if(e.value.length==0)return[];let r=this._placeholders.filter(l=>l.index==e.index).map(l=>l.range),o=this.tmSnippet.enclosingPlaceholders(t),s,a=t.parent;if(t instanceof nt){let l=t.index;s=this.tmSnippet.placeholders.filter(u=>u.index==l&&u.parent==a)}else{let l=t.name;s=this.tmSnippet.variables.filter(u=>u.name==l&&u.parent==a)}return o.forEach(l=>{let u=this._placeholders.filter(c=>c.index==l.index&&c.marker!==l);if(!!u.length)for(let c of s){let h=this.tmSnippet.getTextBefore(c,l);u.forEach(d=>{if(d.transform)r.push(d.range);else{let g=d.range.start;r.push(Ni.Range.create(_i(g,h),_i(g,h+c.toString())))}})}}),r.filter(l=>!Ct(l))}getSortedPlaceholders(e){let t=e?[e]:[],i=this._placeholders.filter(r=>r!==e&&!r.transform);return i.sort((r,o)=>r.primary!==o.primary?r.primary?-1:1:r.index==0||o.index==0?r.index==0?1:-1:r.index-o.index),t.push(...i),t}get hasPython(){return this.tmSnippet.pyBlocks.length>0}resetStartPosition(e){this.position=e,this.synchronize()}get start(){return Object.assign({},this.position)}get range(){return Ni.Range.create(this.position,_i(this.position,this._text))}get text(){return this._text}get finalCount(){return this._placeholders.filter(e=>e.index==0).length}get placeholders(){return this._placeholders.map(e=>e.marker)}get firstPlaceholder(){let e=0;for(let t of this._placeholders)t.index==0||t.transform||(e==0||t.indext.marker===e)}getPlaceholder(e){let t=this._placeholders.filter(r=>r.index==e&&!r.transform),i=t.find(r=>r.primary)||t[0];return i!=null?i:t[0]}getPrevPlaceholder(e){if(e<=1)return;let t=this._placeholders.filter(r=>r.index1;){e=e-1;let r=t.filter(o=>o.index==e);if(r.length){i=r.find(o=>o.primary)||r[0];break}}return i}getNextPlaceholder(e){let t=this._placeholders.filter(s=>!s.transform),i,r=t.map(s=>s.index),o=Math.max.apply(null,r);for(let s=e+1;s<=o+1;s++){let a=s==o+1?0:s,l=t.filter(u=>u.index==a);if(l.length){i=l.find(u=>u.primary)||l[0];break}}return i}getPlaceholderByRange(e){return this._placeholders.find(t=>Pi(e,t.range))}async insertSnippet(e,t,i,r){if(r){let{start:s,end:a}=e.range;this.nvim.setVar("coc_last_placeholder",{current_text:e.value,start:{line:s.line,col:s.character,character:s.character},end:{line:a.line,col:a.character,character:a.character}},!0)}let o=this.tmSnippet.insertSnippet(t,e.marker,i,r);return await this.resolve(r),this.synchronize(),o}getNewText(e,t){let{before:i,after:r}=e;if(!!t.startsWith(i)&&!(t.length{this.tmSnippet=l,this.synchronize()});let u=Ni.Range.create(o,_i(o,a));if(await this.tmSnippet.update(this.nvim,s,i),r.isCancellationRequested)return;this.synchronize();let c=this._placeholders.find(d=>d.marker==s),h=c?c.before:a;return{text:this._text,delta:Jb(t,Ni.TextEdit.replace(u,h))}}removeText(e,t){let i=this.tmSnippet.deleteText(e,t);return i&&this.synchronize(),i}synchronize(){let e=this.tmSnippet,{line:t,character:i}=this.position,r=jn.create("untitled:/1","snippet",0,e.toString()),{placeholders:o,variables:s,maxIndexNumber:a}=e,l=new Map,u=a+1;this._placeholders=[...o,...s].map(c=>{let h=e.offset(c),d=r.positionAt(h),g={line:t+d.line,character:d.line==0?i+d.character:d.character},f;if(c instanceof Co){let w=c.name;l.has(w)?f=l.get(w):(l.set(w,u),f=u,u=u+1)}else f=c.index;let p=c.toString(),b=_i(d,p);return{index:f,value:p,marker:c,transform:!!c.transform,range:Ni.Range.create(g,_i(g,p)),before:r.getText(Ni.Range.create(Ni.Position.create(0,0),d)),after:r.getText(Ni.Range.create(b,Ni.Position.create(r.lineCount,0))),primary:c instanceof nt&&c.primary===!0}}),this._text=this.tmSnippet.toString()}}});function np(n){return n<10?"0"+n:n.toString()}function qV(n){let e,t,i,r=n.split(",");for(let o of r){if(e&&t&&i)break;if(!o.includes(":"))continue;let[s,a]=o.split(":");s.includes("s")?e=a:s.includes("e")?t=a:!i&&s==""&&(i=a)}return{start:e,end:t,single:i}}function H0e(n){if(n.endsWith("%s"))return n.slice(0,-2).trim()}var rp,OQe,cD,YV=_(()=>{"use strict";rp=C(require("path"));Oe();we();OQe=q()("snippets-variable");cD=class{constructor(e,t){this.nvim=e;this.workspaceFolder=t;this._variableToValue={};let i=new Date,r=i.getFullYear().toString();Object.assign(this._variableToValue,{CURRENT_YEAR:r,CURRENT_YEAR_SHORT:r.slice(-2),CURRENT_MONTH:np(i.getMonth()+1),CURRENT_DATE:np(i.getDate()),CURRENT_HOUR:np(i.getHours()),CURRENT_MINUTE:np(i.getMinutes()),CURRENT_SECOND:np(i.getSeconds()),CURRENT_DAY_NAME:i.toLocaleString("en-US",{weekday:"long"}),CURRENT_DAY_NAME_SHORT:i.toLocaleString("en-US",{weekday:"short"}),CURRENT_MONTH_NAME:i.toLocaleString("en-US",{month:"long"}),CURRENT_MONTH_NAME_SHORT:i.toLocaleString("en-US",{month:"short"}),TM_FILENAME:null,TM_FILENAME_BASE:null,TM_DIRECTORY:null,TM_FILEPATH:null,YANK:null,TM_LINE_INDEX:null,TM_LINE_NUMBER:null,TM_CURRENT_LINE:null,TM_CURRENT_WORD:null,TM_SELECTED_TEXT:null,VISUAL:null,CLIPBOARD:null,RELATIVE_FILEPATH:null,RANDOM:null,RANDOM_HEX:null,UUID:null,BLOCK_COMMENT_START:null,BLOCK_COMMENT_END:null,LINE_COMMENT:null,WORKSPACE_NAME:null,WORKSPACE_FOLDER:null})}async resolveValue(e){let{nvim:t}=this;if(["TM_FILENAME","TM_FILENAME_BASE","TM_DIRECTORY","TM_FILEPATH"].includes(e)){let i=await t.eval('expand("%:p")');if(e==="TM_FILENAME")return rp.default.basename(i);if(e==="TM_FILENAME_BASE")return rp.default.basename(i,rp.default.extname(i));if(e==="TM_DIRECTORY")return rp.default.dirname(i);if(e==="TM_FILEPATH")return i}if(e==="YANK")return await t.call("getreg",['""']);if(e==="TM_LINE_INDEX")return(await t.call("line",["."])-1).toString();if(e==="TM_LINE_NUMBER")return(await t.call("line",["."])).toString();if(e==="TM_CURRENT_LINE")return await t.call("getline",["."]);if(e==="TM_CURRENT_WORD")return await t.eval("expand('')");if(e==="TM_SELECTED_TEXT"||e=="VISUAL")return await t.eval("get(g:,'coc_selected_text', v:null)");if(e==="CLIPBOARD")return await t.eval("@*");if(e==="RANDOM")return Math.random().toString().slice(-6);if(e==="RANDOM_HEX")return Math.random().toString(16).slice(-6);if(e==="UUID")return re();if(["RELATIVE_FILEPATH","WORKSPACE_NAME","WORKSPACE_FOLDER"].includes(e)){let i=await t.eval('expand("%:p")'),r=this.workspaceFolder.getWorkspaceFolder(O.file(i));if(e==="RELATIVE_FILEPATH")return this.workspaceFolder.getRelativePath(i);if(e==="WORKSPACE_NAME")return r.name;if(e==="WORKSPACE_FOLDER")return O.parse(r.uri).fsPath}if(e==="LINE_COMMENT"){let i=await t.eval("&commentstring"),r=H0e(i);if(r)return r;let o=await t.eval("&comments"),{single:s}=qV(o);return s!=null?s:""}if(["BLOCK_COMMENT_START","BLOCK_COMMENT_END"].includes(e)){let i=await t.eval("&comments"),{start:r,end:o}=qV(i);if(e==="BLOCK_COMMENT_START")return r!=null?r:"";if(e==="BLOCK_COMMENT_END")return o!=null?o:""}}async resolve(e){let t=e.name,i=this._variableToValue[t];if(i!=null)return i.toString();if(this._variableToValue.hasOwnProperty(t)){let r=await this.resolveValue(t);return!r&&e.children.length?e.toString():r==null?"":r.toString()}return e.children.length?e.toString():t}}});function q0e(n,e){return!!(n.hasChanged||E.pumvisible&&(e.line!=0||e.character!=0))}var Bi,ds,N_,hD,WV=_(()=>{"use strict";Bi=C(H());le();no();Jt();yt();Pe();ke();V();lD();M_();YV();ds=q()("snippets-session"),N_="snippets",hD=class{constructor(e,t,i=!1,r=!1){this.nvim=e;this.document=t;this.enableHighlight=i;this.preferComplete=r;this.mutex=new ei;this._applying=!1;this._isActive=!1;this._snippet=null;this._onCancelEvent=new Bi.Emitter;this.onCancel=this._onCancelEvent.event;this.disposable=t.onDocumentChange(async o=>{if(this._applying||!this._isActive)return;let s=o.contentChanges;s.length!==0&&await this.synchronize({version:o.textDocument.version,change:s[0]})})}async start(e,t,i=!0,r){var l;let{document:o}=this,s=this.getReplacePlaceholder(t),a=[];if(s){let u=this.snippet.range,c=o.textDocument.getText(u),h=NV(s.value,s.range,t);this.current=await this.snippet.insertSnippet(s,e,h,r);let d=O_({range:u,newText:this.snippet.text},c);a.push(d)}else{let u=new cD(this.nvim,y.workspaceFolderControl),c=new uD(e,t.start,this.nvim,u);if(await c.init(r),this._snippet=c,this.current=(l=c.firstPlaceholder)==null?void 0:l.marker,a.push(Bi.TextEdit.replace(t,c.text)),e.replace(/\$0$/,"").endsWith(` -`)){let h=o.getline(t.start.line),d=h.slice(t.end.character);if(d.length){let g=t.end.character,f=d.match(/^\s*/)[0].length,p=Bi.Range.create(t.end.line,g,t.end.line,g+f);a.push(Bi.TextEdit.replace(p,h.match(/^\s*/)[0]))}}}if(await this.applyEdits(a),this.textDocument=o.textDocument,this.activate(),i&&this.current){let u=this.snippet.getPlaceholderByMarker(this.current);await this.selectPlaceholder(u,!0)}return this._isActive}async applyEdits(e){this._applying=!0,await this.document.applyEdits(e),this._applying=!1}getReplacePlaceholder(e){if(!this.snippet)return;let t=this.findPlaceholder(e);if(!(!t||t.index==0))return t}activate(){this._isActive||(this._isActive=!0,this.nvim.call("coc#snippet#enable",[this.preferComplete?1:0],!0))}deactivate(){this.cancel(),this._isActive&&(this.disposable.dispose(),this._isActive=!1,this.current=null,this.nvim.call("coc#snippet#disable",[],!0),this.enableHighlight&&this.nvim.call("coc#highlight#clear_highlight",[this.bufnr,N_,0,-1],!0),this._onCancelEvent.fire(void 0),ds.debug(`session ${this.bufnr} cancelled`))}get isActive(){return this._isActive}get bufnr(){return this.document.bufnr}async nextPlaceholder(){await this.forceSynchronize();let e=this.placeholder;if(!e)return;let t=this.snippet.getNextPlaceholder(e.index);t&&await this.selectPlaceholder(t)}async previousPlaceholder(){await this.forceSynchronize();let e=this.placeholder;if(!e)return;let t=this.snippet.getPrevPlaceholder(e.index);t&&await this.selectPlaceholder(t)}async selectCurrentPlaceholder(e=!0){if(await this.forceSynchronize(),!this.snippet)return;let t=this.snippet.getPlaceholderByMarker(this.current);t&&await this.selectPlaceholder(t,e)}async selectPlaceholder(e,t=!0){let{nvim:i,document:r}=this;if(!r||!e)return;let{start:o,end:s}=e.range,a=s.character-o.character,l=Q(r.getline(o.line).slice(0,o.character))+1,u=this.current=e.marker;if(u instanceof nt&&u.choice&&u.choice.options.length){let c=u.choice.options.map(h=>h.value);await i.call("coc#snippet#show_choices",[o.line+1,l,a,c]),t&&i.call("coc#util#do_autocmd",["CocJumpPlaceholder"],!0)}else{let c=this.snippet.finalCount;await this.select(e,t),this.highlights(e),e.index==0&&(c==1?(ds.info("Jump to final placeholder, cancelling snippet session"),this.deactivate()):i.call("coc#snippet#disable",[],!0))}}highlights(e,t=!0){if(!this.enableHighlight)return;let i=this.document.buffer;this.nvim.pauseNotification(),i.clearNamespace(N_);let r=this.snippet.getRanges(e);r.length&&i.highlightRanges(N_,"CocSnippetVisual",r),this.nvim.resumeNotification(t,!0)}async select(e,t=!0){let{range:i,value:r}=e,{nvim:o}=this;r.length>0?await o.call("coc#snippet#select",[i.start,i.end,r]):await o.call("coc#snippet#move",[i.start]),t&&o.call("coc#util#do_autocmd",["CocJumpPlaceholder"],!0),o.redrawVim()}async checkPosition(){if(!this.isActive)return;let e=await k.getCursorPosition();this.snippet&&ut(e,this.snippet.range)!=0&&(ds.info("Cursor insert out of range, cancelling snippet session"),this.deactivate())}findPlaceholder(e){let{placeholder:t}=this;return t&&Pi(e,t.range)?t:this.snippet.getPlaceholderByRange(e)||null}async synchronize(e){this.cancel(),await this.mutex.use(()=>{let t=this.textDocument?this.textDocument.version:-1;return e&&(this.document.version!=e.version||e.version-t!==1)&&(e=void 0),this._synchronize(e?e.change:void 0)})}async _synchronize(e){let{document:t,textDocument:i}=this;if(!t.attached||!this._isActive)return;let r=Date.now(),o=t.textDocument;if(o.version==i.version||Fe(i.lines,o.lines))return;let{range:s,text:a}=this.snippet;e&&!Pi(e.range,s)&&(e=void 0);let l=MV(s.end,i,o);if(!l){ds.info("Content change after snippet, cancel snippet session"),this.deactivate();return}if(!OV(s.start,i,o)){let v=o.getText(Bi.Range.create(Bi.Position.create(0,0),l));if(v.endsWith(a)){let w=o.positionAt(v.length-a.length);this.snippet.resetStartPosition(w),this.textDocument=o,ds.info("Content change before snippet, reset snippet position");return}ds.info("Before and snippet body changed, cancel snippet session"),this.deactivate();return}let c=this.tokenSource=new Bi.CancellationTokenSource,h=await k.getCursorPosition();if(c.token.isCancellationRequested||t.hasChanged)return;let d,g,f=o.getText(Bi.Range.create(s.start,l)),p=this.placeholder;if(e){for(let v of this.snippet.getSortedPlaceholders(p))if(Pi(e.range,v.range)){d=v,g=this.snippet.getNewText(v,f);break}if(!d&&e.text.length==0&&!Ct(e.range)&&Y2(e.range)){let v=e.range.end.character-e.range.start.character,w=o.getText(Bi.Range.create(s.start,e.range.start)).length;if(this.snippet.removeText(w,v)){this.textDocument=o;return}}}else for(let v of this.snippet.getSortedPlaceholders(p))if(!(De(h,v.range.start)<0)&&(g=this.snippet.getNewText(v,f),g!=null&&AV(v.range.start,h,g))){d=v;break}if(!d&&f.endsWith(a)){let v=_i(s.start,f.slice(0,-a.length));this.snippet.resetStartPosition(v),this.textDocument=o,ds.info("Content change before snippet, reset snippet position");return}if(!d){ds.info("Unable to find changed placeholder, cancel snippet session"),this.deactivate();return}let b=await this.snippet.updatePlaceholder(d,h,g,c.token);if(!(b==null||c.token.isCancellationRequested)){if(q0e(t,b.delta)){c.cancel(),c.dispose();return}if(c.dispose(),this.current=d.marker,b.text!==f){let v=O_({range:Bi.Range.create(this.snippet.start,l),newText:b.text},f);await this.applyEdits([v]);let{delta:w}=b;(w.line!=0||w.character!=0)&&this.nvim.call("coc#cursor#move_to",[h.line+w.line,h.character+w.character],!0),this.highlights(d,!1),this.nvim.redrawVim()}else this.highlights(d);ds.debug("update cost:",Date.now()-r,b.delta),this.textDocument=this.document.textDocument}}async forceSynchronize(){this.cancel(),await this.document.patchChange(),(await this.mutex.acquire())()}cancel(){this.tokenSource&&(this.tokenSource.cancel(),this.tokenSource.dispose(),this.tokenSource=null)}get placeholder(){if(!(!this.snippet||!this.current))return this.snippet.getPlaceholderByMarker(this.current)}get snippet(){return this._snippet}static async resolveSnippet(e,t,i){let r=await k.getCursorPosition(),o=await e.line,s;i&&(s=Object.assign({range:Bi.Range.create(r,r),line:o},i));let a=new cD(e,y.workspaceFolderControl),l=new uD(t,r,e,a);return await l.init(s,!0),l.text}}});var Yr,B_=_(()=>{"use strict";Yr=class{constructor(e){this._tabstop=1;this.value=e||""}static isSnippetString(e){return e instanceof Yr?!0:e?typeof e.value=="string":!1}static _escape(e){return e.replace(/\$|}|\\/g,"\\$&")}appendText(e){return this.value+=Yr._escape(e),this}appendTabstop(e=this._tabstop++){return this.value+="$",this.value+=e,this}appendPlaceholder(e,t=this._tabstop++){if(typeof e=="function"){let i=new Yr;i._tabstop=this._tabstop,e(i),this._tabstop=i._tabstop,e=i.value}else e=Yr._escape(e);return this.value+="${",this.value+=t,this.value+=":",this.value+=e,this.value+="}",this}appendChoice(e,t=this._tabstop++){let i=e.map(r=>r.replace(/\$|}|\\|,/g,"\\$&")).join(",");return this.value+="${",this.value+=t,this.value+="|",this.value+=i,this.value+="|}",this}appendVariable(e,t){if(typeof t=="function"){let i=new Yr;i._tabstop=this._tabstop,t(i),this._tabstop=i._tabstop,t=i.value}else typeof t=="string"&&(t=t.replace(/\$|}/g,"\\$&"));return this.value+="${",this.value+=e,t&&(this.value+=":",this.value+=t),this.value+="}",this}}});var tu,cKe,ZV,Ut,iu=_(()=>{"use strict";tu=C(H());le();Jt();yt();ke();V();WV();M_();B_();cKe=q()("snippets-manager"),ZV=class{constructor(){this.sessionMap=new Map;this.disposables=[];E.on("InsertCharPre",()=>{var e;(e=this.session)==null||e.cancel()},null,this.disposables),k.onDidChangeActiveTextEditor(e=>{if(!this.statusItem)return;this.getSession(e.document.bufnr)?this.statusItem.show():this.statusItem.hide()},null,this.disposables),E.on("InsertEnter",async e=>{let t=this.getSession(e);t&&await t.checkPosition()},null,this.disposables),y.onDidCloseTextDocument(e=>{let t=this.getSession(e.bufnr);t&&t.deactivate()},null,this.disposables),y.onDidChangeConfiguration(e=>{(e.affectsConfiguration("suggest")||e.affectsConfiguration("coc.preferences"))&&this.init()},null,this.disposables)}get nvim(){return y.nvim}init(){this.statusItem||(this.statusItem=k.createStatusBarItem(0));let e=y.getConfiguration("coc.preferences");this.statusItem.text=e.get("snippetStatusText","SNIP"),this.highlight=e.get("snippetHighlight",!1);let t=y.getConfiguration("suggest");this.preferComplete=t.get("preferCompleteThanJumpPlaceholder",!1)}async insertSnippet(e,t=!0,i,r,o){let{bufnr:s}=y,a=y.getAttachedDocument(s);if(i&&!Pi(i,tu.Range.create(0,0,a.lineCount+1,0)))throw new Error("Unable to insert snippet, invalid range.");let l;if(E.pumvisible&&this.nvim.call("coc#_cancel",[],!0),!i){let f=await k.getCursorPosition();i=tu.Range.create(f,f)}let u=a.getline(i.start.line),c=Yr.isSnippetString(e)?e.value:e,h=await this.normalizeInsertText(a.uri,c,u,r),d=this.getSession(s);d&&d.cancel(),o!=null&&(l=Object.assign({range:_r(i),line:u},o),!Ct(i)&&h.includes("`!p")&&(this.nvim.call("coc#cursor#move_to",[i.start.line,i.start.character],!0),await a.applyEdits([{range:i,newText:""}]),i.end=tu.Position.create(i.start.line,i.start.character))),d?(await d.forceSynchronize(),d=this.getSession(s)):await a.patchChange(!0),d||(d=new hD(this.nvim,a,this.highlight,this.preferComplete),d.onCancel(()=>{this.sessionMap.delete(s),this.statusItem.hide()}));let g=await d.start(h,i,t,l);return g?(this.statusItem.show(),this.sessionMap.set(s,d)):(this.statusItem.hide(),this.sessionMap.delete(s)),g}async selectCurrentPlaceholder(e=!0){let{session:t}=this;if(t)return await t.selectCurrentPlaceholder(e)}async nextPlaceholder(){let{session:e}=this;return e?await e.nextPlaceholder():(this.nvim.call("coc#snippet#disable",[],!0),this.statusItem.hide()),""}async previousPlaceholder(){let{session:e}=this;return e?await e.previousPlaceholder():(this.nvim.call("coc#snippet#disable",[],!0),this.statusItem.hide()),""}cancel(){let e=this.getSession(y.bufnr);if(e)return e.deactivate();this.nvim.call("coc#snippet#disable",[],!0),this.statusItem&&this.statusItem.hide()}get session(){return this.getSession(y.bufnr)}getSession(e){return this.sessionMap.get(e)}jumpable(){let{session:e}=this;return e?e.placeholder!=null&&e.placeholder.index!=0:!1}async editsInsideSnippet(e){let t=this.getSession(y.bufnr);if(!t||!t.snippet)return!1;await t.forceSynchronize();let i=t.snippet.range;return!!e.some(r=>Sc(r.range,i))}async resolveSnippet(e,t){if(t){let i=this.getSession(y.bufnr);t.noPython=i!=null&&i.snippet.hasPython}return await hD.resolveSnippet(this.nvim,e,t)}async normalizeInsertText(e,t,i,r){let o="";if(r===tu.InsertTextMode.asIs||!HV(t))o=t;else{let s=i.match(/^\s*/)[0],a=k.activeTextEditor?k.activeTextEditor.options:await y.getFormatOptions(e);o=BV(t,s,a)}return o}dispose(){this.cancel();for(let e of this.disposables)e.dispose()}},Ut=new ZV});var JV,op,nu,So,dD=_(()=>{"use strict";we();JV=C(require("path"));(e=>{function n(t){return typeof t.label=="string"}e.is=n})(op||(op={}));nu=(i=>(i[i.None=0]="None",i[i.Collapsed=1]="Collapsed",i[i.Expanded=2]="Expanded",i))(nu||{}),So=class{constructor(e,t=0){this.collapsibleState=t;O.isUri(e)?(this.resourceUri=e,this.label=JV.default.basename(e.path),this.id=e.toString()):this.label=e}}});var H_=_(()=>{"use strict";dD()});function Y0e(n){return Array.isArray(n)&&n.every(e=>typeof e=="string")}function W0e(n){return typeof n>"u"||Y0e(n)}var $V,sp,XV=_(()=>{"use strict";$V=C(H());sp=class{constructor(e){if(this._prevLine=0,this._prevChar=0,this._dataIsSortedAndDeltaEncoded=!0,this._data=[],this._dataLen=0,this._tokenTypeStrToInt=new Map,this._tokenModifierStrToInt=new Map,this._hasLegend=!1,e){this._hasLegend=!0;for(let t=0,i=e.tokenTypes.length;t"u"))return typeof o>"u"&&(o=0),this._pushEncoded(e,t,i,r,o);if($V.Range.is(e)&&typeof t=="string"&&W0e(i))return this._push(e,t,i);throw new Error("Illegal argument")}_push(e,t,i){if(!this._hasLegend)throw new Error("Legend must be provided in constructor");if(e.start.line!==e.end.line)throw new Error("`range` cannot span multiple lines");if(!this._tokenTypeStrToInt.has(t))throw new Error("`tokenType` is not in the provided legend");let r=e.start.line,o=e.start.character,s=e.end.character-e.start.character,a=this._tokenTypeStrToInt.get(t),l=0;if(i)for(let u of i){if(!this._tokenModifierStrToInt.has(u))throw new Error("`tokenModifier` is not in the provided legend");let c=this._tokenModifierStrToInt.get(u);l|=1<>>0}this._pushEncoded(r,o,s,a,l)}_pushEncoded(e,t,i,r,o){if(this._dataIsSortedAndDeltaEncoded&&(e0&&(s-=this._prevLine,s===0&&(a-=this._prevChar)),this._data[this._dataLen++]=s,this._data[this._dataLen++]=a,this._data[this._dataLen++]=i,this._data[this._dataLen++]=r,this._data[this._dataLen++]=o,this._prevLine=e,this._prevChar=t}static _sortAndDeltaEncode(e){let t=[],i=e.length/5|0;for(let a=0;a{let u=e[5*a],c=e[5*l];if(u===c){let h=e[5*a+1],d=e[5*l+1];return h-d}return u-c});let r=new Array(e.length),o=0,s=0;for(let a=0;a{"use strict";wi();le();Ce();lf();Jo();uw();YP();oa();kG();$f();Ul();V();ke();yo();oD();iu();B_();eu();bc();vo();no();we();var se=C(H());Ir();E_();z();H_();XV();UV.exports={Uri:O,NullLogger:zP,SettingMonitor:k_,LanguageClient:Jf,CancellationTokenSource:se.CancellationTokenSource,ProgressType:se.ProgressType,RequestType:se.RequestType,RequestType0:se.RequestType0,NotificationType:se.NotificationType,NotificationType0:se.NotificationType0,Highligher:Ri,Mru:so,Emitter:se.Emitter,SnippetString:Yr,BasicList:Xt,Mutex:ei,TreeItem:So,SemanticTokensBuilder:sp,FloatFactory:ci,RelativePattern:mw,UniquenessLevel:se.UniquenessLevel,MonikerKind:se.MonikerKind,PatternType:wg,SourceType:Dg,MessageLevel:Eb,ConfigurationTarget:Pb,ServiceStat:xg,FileType:_b,State:Dw,ClientState:xw,CloseAction:e_,ErrorAction:VP,TransportKind:Iw,MessageTransports:mh,RevealOutputChannelOn:ww,MarkupKind:se.MarkupKind,DiagnosticTag:se.DiagnosticTag,DocumentHighlightKind:se.DocumentHighlightKind,SymbolKind:se.SymbolKind,SignatureHelpTriggerKind:se.SignatureHelpTriggerKind,FileChangeType:se.FileChangeType,CodeActionKind:se.CodeActionKind,Diagnostic:se.Diagnostic,DiagnosticSeverity:se.DiagnosticSeverity,CompletionItemKind:se.CompletionItemKind,InsertTextFormat:se.InsertTextFormat,Location:se.Location,LocationLink:se.LocationLink,CancellationToken:se.CancellationToken,Position:se.Position,Range:se.Range,TextEdit:se.TextEdit,Disposable:se.Disposable,Event:se.Event,workspace:y,window:k,CompletionTriggerKind:se.CompletionTriggerKind,snippetManager:Ut,events:E,services:Mi,commands:oe,sources:Lt,languages:A,diagnosticManager:Ft,extensions:ye,listManager:Di,TreeItemCollapsibleState:nu,fetch:fh,download:Nf,ansiparse:hg,disposeAll:Z,concurrent:ag,watchFile:lc,wait:bt,runCommand:eo,isRunning:pH,executable:sg}});function J0e(n){return()=>{throw new Error(`process.${n}() is not allowed in extension sandbox`)}}function $0e(){let n=e=>e==="coc.nvim"?GV():this.require(e);return n.resolve=e=>To._resolveFilename(e,this),n.main=process.mainModule,n.extensions=To._extensions,n.cache=To._cache,n}function X0e(n){return function(e,t){let i=$0e.call(this),r=KV.default.dirname(t),o=e.replace(/^\#\!.*/,""),s=To.wrap(o),a=gD.runInContext(s,n,{filename:t}),l=[this.exports,i,this,t,r];return a.apply(this.exports,l)}}function U0e(n,e){let t=new To(n);t.paths=To._nodeModulePaths(n);let i=gD.createContext({module:t,Buffer,console:{debug:(...r)=>{e.debug.apply(e,r)},log:(...r)=>{e.info.apply(e,r)},error:(...r)=>{e.error.apply(e,r)},info:(...r)=>{e.info.apply(e,r)},warn:(...r)=>{e.warn.apply(e,r)}}});eJ(i,global),i.Reflect=Reflect,i.require=function(o){let s=To.prototype._compile;To.prototype._compile=X0e(i);let a=i.module.require(o);return To.prototype._compile=s,a},i.process=new process.constructor;for(let r of Object.keys(process))i.process[r]=process[r];return Z0e.forEach(r=>{i.process[r]=J0e(r)}),i.process.chdir=()=>{},i.process.umask=r=>{if(typeof r<"u")throw new Error("Cannot use process.umask() to change mask (read-only)");return process.umask()},i}function VV(n,e,t=!1){if(t||!QV.default.existsSync(e))return{activate:()=>{},deactivate:null};let i=U0e(e,zV(`extension:${n}`));delete To._cache[require.resolve(e)];let r=i.require(e),o=r&&r.activate||r;return typeof o!="function"?{activate:()=>{},deactivate:null}:{activate:o,deactivate:typeof r.deactivate=="function"?r.deactivate:null}}var QV,KV,gD,zV,GKe,To,Z0e,eee=_(()=>{"use strict";QV=C(require("fs")),KV=C(require("path")),gD=C(require("vm"));es();zV=q(),GKe=zV("util-factoroy"),To=require("module"),Z0e=["reallyExit","abort","umask","setuid","setgid","setgroups","_fatalException","exit","kill"]});var aee={};xs(aee,{ExtensionType:()=>see,Extensions:()=>q_,default:()=>ye});var tee,pt,iee,Ie,nee,fD,ree,oee,tn,see,q_,ye,yo=_(()=>{"use strict";tee=C(Ei()),pt=C(Rn()),iee=C(S0());Eg();Ie=C(require("path")),nee=C(nf()),fD=C(H());we();ree=C(rg());wi();wk();le();Nk();Jo();UJ();SG();TG();z();Qo();xC();eee();Je();In();ke();V();oee=q(),tn=oee("extensions"),see=(r=>(r[r.Global=0]="Global",r[r.Local=1]="Local",r[r.SingleFile=2]="SingleFile",r[r.Internal=3]="Internal",r))(see||{}),q_=class{constructor(){this.extensions=new Map;this.disabled=new Set;this._onDidLoadExtension=new fD.Emitter;this._onDidActiveExtension=new fD.Emitter;this._onDidUnloadExtension=new fD.Emitter;this._additionalSchemes={};this.activated=!1;this.disposables=[];this.ready=!0;this.onDidLoadExtension=this._onDidLoadExtension.event;this.onDidActiveExtension=this._onDidActiveExtension.event;this.onDidUnloadExtension=this._onDidUnloadExtension.event;let e=global.__TEST__?Ie.default.join(__dirname,"__tests__"):process.env.COC_DATA_HOME,t=this.root=Ie.default.join(e,"extensions");if(this.checkRoot(t)){let r=Ie.default.join(t,"db.json");this.db=new qc(r)}}checkRoot(e){try{pt.default.existsSync(e)||pt.default.mkdirpSync(e);let t=pt.default.statSync(e);if(t.isFile())tn.info(`Trying to delete ${e}`),pt.default.unlinkSync(e),pt.default.mkdirpSync(e);else if(!t.isDirectory())return console.error(`Data home ${e} it not a valid directory`),!1;let i=Ie.default.join(e,"package.json");pt.default.existsSync(i)||pt.default.writeFileSync(i,'{"dependencies":{}}',"utf8")}catch(t){return console.error(`Unexpected error when check data home: ${t}`),!1}return!0}get outputChannel(){return this._outputChannel?this._outputChannel:(this._outputChannel=k.createOutputChannel("extensions"),this._outputChannel)}async init(){let e=this.db.fetch("extension")||{},t=Object.keys(e);for(let o of t)e[o].disabled==!0&&this.disabled.add(o);if(process.env.COC_NO_PLUGINS)return;let i=await this.globalExtensionStats(),r=await this.localExtensionStats(i.map(o=>o.id));i=i.concat(r),this.memos=new pw(Ie.default.resolve(this.root,"../memos.json")),i.map(o=>{let s=o.isLocal?1:0;try{this.createExtension(o.root,o.packageJSON,s)}catch(a){tn.error(`Error on create ${o.root}:`,a)}}),await this.loadFileExtensions(),oe.register({id:"extensions.forceUpdateAll",execute:async()=>{let o=await this.cleanExtensions();tn.info(`Force update extensions: ${o}`),await this.installExtensions(o)}},!1,"remove all global extensions and install them"),y.onDidRuntimePathChange(async o=>{for(let s of o)s&&this.checkDirectory(s)===!0&&await this.loadExtension(s)},null,this.disposables)}getExtensionsInfo(){let e=[];for(let[t,i]of this.extensions.entries()){let{directory:r,filepath:o}=i;r||(r=o),i.type,r&&e.push({name:t,filepath:o,directory:r.endsWith(Ie.default.sep)?r:r+Ie.default.sep})}return e}activateExtensions(){this.activated=!0;for(let o of this.extensions.values()){let{id:s,packageJSON:a}=o.extension;this.setupActiveEvents(s,a).logError()}let e=new ci(y.nvim);if(E.on("CursorMoved",(0,tee.debounce)(async o=>{if(this.installBuffer&&o==this.installBuffer.bufnr){let s=await y.nvim.call("line",["."]),a=this.installBuffer.getMessages(s-1),l=a&&a.length?[{content:a.join(` -`),filetype:"txt"}]:[];await e.show(l,{modes:["n"]})}},500)),global.__TEST__)return;this.checkExtensions();let t=y.getConfiguration("coc.preferences"),i=t.get("extensionUpdateCheck","never"),r=t.get("silentAutoupdate",!0);if(i!="never"){let o=new Date,s=new Date(o.getFullYear(),o.getMonth(),o.getDate()-(i=="daily"?0:7)),a=this.db.fetch("lastUpdate");if(a&&Number(a)>s.getTime())return;this.outputChannel.appendLine("Start auto update..."),this.updateExtensions(!1,r).logError()}}async updateExtensions(e,t=!1){if(!this.npm)return;let i=await this.getLockedList(),r=await this.globalExtensionStats();r=r.filter(l=>![...i,...this.disabled].includes(l.id)),this.db.push("lastUpdate",Date.now()),t&&k.showMessage("Updating extensions, checkout output:///extensions for details.","more");let o=this.installBuffer=new uf(!0,e,t?this.outputChannel:void 0);o.setExtensions(r.map(l=>l.id)),await o.show(y.nvim);let s=fw(this.npm,this.modulesFolder);await ag(r,l=>{let{id:u}=l;o.startProgress([u]);let c=l.exotic?l.uri:null,h=s(u);return h.on("message",(d,g)=>{o.addMessage(u,d,g)}),h.update(c).then(d=>{o.finishProgress(u,!0),d&&this.loadExtension(d).logError()},d=>{o.addMessage(u,d.message),o.finishProgress(u,!1)})},t?1:3)}checkExtensions(){let{globalExtensions:e}=y.env;if(e&&e.length){let t=this.filterGlobalExtensions(e);this.installExtensions(t)}}get installer(){return fw(this.npm,this.modulesFolder)}async installExtensions(e=[]){let{npm:t}=this;if(!t||!e.length)return;e=sa(e);let i=this.installBuffer=new uf;i.setExtensions(e),await i.show(y.nvim);let r=fw(this.npm,this.modulesFolder);await ag(e,s=>{i.startProgress([s]);let a=r(s);return a.on("message",(l,u)=>{i.addMessage(s,l,u)}),a.install().then(l=>{i.finishProgress(s,!0);let u=Ie.default.join(this.modulesFolder,l);this.loadExtension(u).logError(),s.match(/(.+)@([^/]+)$/)!=null&&this.lockExtension(l,!0)},l=>{i.addMessage(s,l.message),i.finishProgress(s,!1),tn.error(`Error on install ${s}`,l)})})}getMissingExtensions(){let e=this.loadJson()||{dependencies:{}},t=[];for(let i of Object.keys(e.dependencies)){let r=Ie.default.join(this.modulesFolder,i);if(!pt.default.existsSync(r)){let o=e.dependencies[i];o.startsWith("http")?t.push(o):t.push(i)}}return t}get npm(){let e=y.getConfiguration("npm").get("binPath","npm");e=y.expand(e);for(let t of[e,"yarnpkg","yarn","npm"])try{return ree.default.sync(t)}catch{continue}return k.showMessage("Can't find npm or yarn in your $PATH","error"),null}get all(){return Array.from(this.extensions.values()).map(e=>e.extension).filter(e=>!this.isDisabled(e.id))}getExtension(e){return this.extensions.get(e)}getExtensionState(e){if(this.isDisabled(e))return"disabled";let i=this.extensions.get(e);if(!i)return"unknown";let{extension:r}=i;return r.isActive?"activated":"loaded"}async getExtensionStates(){let e=await this.localExtensionStats([]),t=await this.globalExtensionStats();return e.concat(t.filter(i=>e.find(r=>r.id==i.id)==null))}async getLockedList(){let e=await this.db.fetch("extension");return e=e||{},Object.keys(e).filter(t=>e[t].locked===!0)}async lockExtension(e,t){let i=`extension.${e}.locked`,r=await this.db.fetch(i);t=t===void 0?!r:t,t?this.db.push(i,!0):this.db.delete(i)}async toggleExtension(e){let t=this.getExtensionState(e);if(t==null)return;t=="activated"&&await this.deactivate(e);let i=`extension.${e}.disabled`;if(this.db.push(i,t!="disabled"),t!="disabled")this.disabled.add(e),await this.unloadExtension(e);else{this.disabled.delete(e);let r=Ie.default.join(this.modulesFolder,e);pt.default.existsSync(r)&&await this.loadExtension(r)}await bt(200)}async reloadExtension(e){let t=this.extensions.get(e);if(!t){k.showMessage(`Extension ${e} not registered`,"error");return}if(t.type==3){k.showMessage(`Can't reload internal extension "${t.id}"`,"warning");return}t.type==2?await this.loadExtensionFile(t.filepath):t.directory?await this.loadExtension(t.directory):k.showMessage(`Can't reload extension ${t.id}`,"warning")}async cleanExtensions(){let e=this.modulesFolder;if(!pt.default.existsSync(e))return[];let t=this.globalExtensions,i=[];for(let r of t){let o=Ie.default.join(e,r),s=await pt.default.lstat(o);!s||s&&s.isSymbolicLink()||(await this.unloadExtension(r),await pt.default.remove(o),i.push(r))}return i}async uninstallExtension(e){try{if(!e.length)return;let[t,i]=oy(e,a=>this.globalExtensions.includes(a));i.length&&k.showMessage(`Extensions ${i} not global extensions, can't uninstall!`,"warning");let r=this.loadJson()||{dependencies:{}};for(let a of t){await this.unloadExtension(a),delete r.dependencies[a];let l=Ie.default.join(this.modulesFolder,a);pt.default.existsSync(l)&&await pt.default.remove(l)}let o={dependencies:{}};Object.keys(r.dependencies).sort().forEach(a=>{o.dependencies[a]=r.dependencies[a]});let s=Ie.default.join(this.root,"package.json");pt.default.writeFileSync(s,JSON.stringify(o,null,2),{encoding:"utf8"}),k.showMessage(`Removed: ${t.join(" ")}`)}catch(t){k.showMessage(`Uninstall failed: ${t}`,"error")}}isDisabled(e){return this.disabled.has(e)}has(e){return this.extensions.has(e)}isActivated(e){let t=this.extensions.get(e);return!!(t&&t.extension.isActive)}async loadExtension(e){if(Array.isArray(e)){for(let t of e)await this.loadExtension(t);return!0}try{let t=Ie.default.dirname(e),i=Ie.default.normalize(t)!=Ie.default.normalize(this.modulesFolder),r=Ie.default.join(e,"package.json"),o=JSON.parse(pt.default.readFileSync(r,"utf8")),{name:s}=o;return this.isDisabled(s)?!1:(await this.unloadExtension(s),this.createExtension(e,Object.freeze(o),i?1:0),!0)}catch(t){return k.showMessage(`Error on load extension from "${e}": ${t}`,"error"),tn.error(`Error on load extension from ${e}`,t),!1}}async loadFileExtensions(){if(!process.env.COC_VIMCONFIG)return;let e=Ie.default.join(process.env.COC_VIMCONFIG,"coc-extensions");if(!pt.default.existsSync(e))return;let t=await pt.default.readdir(e);t=t.filter(i=>i.endsWith(".js"));for(let i of t)await this.loadExtensionFile(Ie.default.join(e,i))}loadedExtensions(){return Array.from(this.extensions.keys())}async watchExtension(e){let t=this.extensions.get(e);if(!t){k.showMessage(`extension ${e} not found`,"error");return}if(e.startsWith("single-"))k.showMessage(`watching ${t.filepath}`),this.disposables.push(lc(t.filepath,async()=>{await this.loadExtensionFile(t.filepath),k.showMessage(`reloaded ${e}`)}));else{let i=y.getWatchmanPath();if(!i){k.showMessage("watchman not found","error");return}let r=await la.createClient(i,t.directory);if(!r){k.showMessage("Can't create watchman client, check output:///watchman");return}k.showMessage(`watching ${t.directory}`),this.disposables.push(r),r.subscribe("**/*.js",async()=>{await this.reloadExtension(e),k.showMessage(`reloaded ${e}`)}).then(o=>{this.disposables.push(o)},o=>{})}}async loadExtensionFile(e){let t=Ie.default.basename(e),i=Ie.default.basename(e,".js"),r="single-"+i;if(this.isDisabled(r))return;let o=Ie.default.dirname(e),s={name:r,main:t,engines:{coc:"^0.0.79"}},a=Ie.default.join(o,i+".json"),l=await Ht(a);if(l&&l.isFile()){let u=await xc(a,"utf8"),c=JSON.parse(u);if(c){let h=["activationEvents","contributes"];for(let d of h)c[d]&&(s[d]=c[d])}}await this.unloadExtension(r),this.createExtension(o,s,2)}async activate(e){if(this.isDisabled(e))throw new Error(`Extension ${e} is disabled!`);let t=this.extensions.get(e);if(!t)throw new Error(`Extension ${e} not registered!`);let{extension:i}=t;return i.isActive?!0:(await Promise.resolve(i.activate()),i.isActive?(this._onDidActiveExtension.fire(i),!0):!1)}async deactivate(e){let t=this.extensions.get(e);return t?(await Promise.resolve(t.deactivate()),!0):!1}async call(e,t,i){let r=this.extensions.get(e);if(!r)throw new Error(`extension ${e} not registered`);let{extension:o}=r;o.isActive||await this.activate(e);let{exports:s}=o;if(!s||!s.hasOwnProperty(t))throw new Error(`method ${t} not found on extension ${e}`);return await Promise.resolve(s[t].apply(null,i))}getExtensionApi(e){let t=this.extensions.get(e);if(!t)return null;let{extension:i}=t;return i.isActive?i.exports:null}registerExtension(e,t){let{id:i,packageJSON:r}=e;this.extensions.set(i,{id:i,type:3,extension:e,deactivate:t,isLocal:!0});let{contributes:o}=r;if(o){let{configuration:s}=o;if(s&&s.properties){let{properties:a}=s,l={};for(let u of Object.keys(a)){let c=a[u].default;c!=null&&(l[u]=c)}y.configurations.extendsDefaults(l)}}this._onDidLoadExtension.fire(e),this.setupActiveEvents(i,r).logError()}get globalExtensions(){let e=this.loadJson();return!e||!e.dependencies?[]:Object.keys(e.dependencies)}async globalExtensionStats(){let e=this.loadJson();if(!e||!e.dependencies)return[];let{modulesFolder:t}=this;return(await Promise.all(Object.keys(e.dependencies).map(r=>new Promise(async o=>{try{let s=e.dependencies[r],a=Ie.default.join(t,r),l=this.checkDirectory(a);if(l instanceof Error)return k.showMessage(`Unable to load global extension at ${a}: ${l.message}`,"error"),tn.error(`Error on load ${a}`,l),o(null);let u=await xc(Ie.default.join(a,"package.json"),"utf8");a=await pt.default.realpath(a);let c=JSON.parse(u),h=c&&c.version||"",d=c&&c.description||"",g=iee.default.isValid(s)?s:"";o({id:r,isLocal:!1,version:h,description:d,exotic:/^https?:/.test(s),uri:g.replace(/\.git(#master)?$/,""),root:a,state:this.getExtensionState(r),packageJSON:Object.freeze(c)})}catch(s){tn.error(s),o(null)}})))).filter(r=>r!=null)}async localExtensionStats(e){let i=(await y.nvim.eval('join(globpath(&runtimepath, "", 0, 1), ",")')).split(",");return(await Promise.all(i.map(o=>new Promise(async s=>{try{if(this.checkDirectory(o)!==!0)return s(null);let l=Ie.default.join(o,"package.json"),u=await xc(l,"utf8"),c=JSON.parse(u),h=this.extensions.get(c.name);if(h&&!h.isLocal)return tn.info(`Extension "${c.name}" in runtimepath already loaded.`),s(null);if(e.includes(c.name))return tn.info(`Skipped load vim plugin from "${o}", "${c.name}" already global extension.`),s(null);let d=c&&c.version||"",g=c&&c.description||"";s({id:c.name,isLocal:!0,version:d,description:g,exotic:!1,root:o,state:this.getExtensionState(c.name),packageJSON:Object.freeze(c)})}catch(a){tn.error(a),s(null)}})))).filter(o=>o!=null)}loadJson(){let{root:e}=this,t=Ie.default.join(e,"package.json");if(!pt.default.existsSync(t))return null;let i=[],r=pt.default.readFileSync(t,"utf8"),o=_c(r,i,{allowTrailingComma:!0});return i&&i.length>0&&(k.showMessage(`Error on parse ${t}`,"error"),y.nvim.call("coc#util#open_file",["edit",t],!0)),o}get schemes(){return this._additionalSchemes}addSchemeProperty(e,t){this._additionalSchemes[e]=t,y.configurations.extendsDefaults({[e]:t.default})}async setupActiveEvents(e,t){let{activationEvents:i}=t;if(!this.canActivate(e))return;if(!i||Array.isArray(i)&&i.includes("*")){await this.activate(e).catch(a=>{k.showMessage(`Error on activate extension ${e}: ${a.message}`),this.outputChannel.appendLine(`Error on activate extension ${e}. +`)]}function gte(n,e,t){let i=n.split(/\r?\n/),r=t.insertSpaces?" ".repeat(t.tabSize):" ",o=t.tabSize||2;return i=i.map((s,a)=>{let l=s.match(/^\s*/)[0],u=l,c=l.startsWith(" ");return c&&t.insertSpaces?u=r.repeat(l.length):!c&&!t.insertSpaces&&(u=r.repeat(l.length/o)),(a==0||s.length==0?"":e)+u+s.slice(l.length)}),i.join(` +`)}function pte(n){return!!(/^\s/.test(n)||n.indexOf(` +`)!==-1)}var Gi,J5e,qD,OR=_(()=>{"use strict";Gi=x(q());Hc();_t();Ur();IR();HD();J5e=W()("snippets-snipet"),qD=class{constructor(e,t,i,r){this.snippetString=e;this.position=t;this.nvim=i;this.resolver=r}async init(e,t=!1){let i=e?ND(e):void 0,o=new $a(!!e,i).parse(this.snippetString,!0);this.tmSnippet=o,await this.resolve(e),this.synchronize(),t||(this.nvim.call("coc#compat#del_var",["coc_selected_text"],!0),this.nvim.call("coc#compat#del_var",["coc_last_placeholder"],!0))}async resolve(e){let{snippet:t}=this.tmSnippet,{resolver:i,nvim:r}=this;if(i&&await t.resolveVariables(i),e&&e.noPython!==!0){let o=[];t.hasPython&&(o=ote(e)),await t.evalCodeBlocks(r,o)}}getRanges(e){let t=e.marker;if(e.value.length==0)return[];let r=this._placeholders.filter(l=>l.index==e.index).map(l=>l.range),o=this.tmSnippet.enclosingPlaceholders(t),s,a=t.parent;if(t instanceof ht){let l=t.index;s=this.tmSnippet.placeholders.filter(u=>u.index==l&&u.parent==a)}else{let l=t.name;s=this.tmSnippet.variables.filter(u=>u.name==l&&u.parent==a)}return o.forEach(l=>{let u=this._placeholders.filter(c=>c.index==l.index&&c.marker!==l);if(!!u.length)for(let c of s){let h=this.tmSnippet.getTextBefore(c,l);u.forEach(d=>{if(d.transform)r.push(d.range);else{let g=d.range.start;r.push(Gi.Range.create(Bi(g,h),Bi(g,h+c.toString())))}})}}),r.filter(l=>!jt(l))}getSortedPlaceholders(e){let t=e?[e]:[],i=this._placeholders.filter(r=>r!==e&&!r.transform);return i.sort((r,o)=>r.primary!==o.primary?r.primary?-1:1:r.index==0||o.index==0?r.index==0?1:-1:r.index-o.index),t.push(...i),t}get hasPython(){return this.tmSnippet.pyBlocks.length>0}resetStartPosition(e){this.position=e,this.synchronize()}get start(){return Object.assign({},this.position)}get range(){return Gi.Range.create(this.position,Bi(this.position,this._text))}get text(){return this._text}get finalCount(){return this._placeholders.filter(e=>e.index==0).length}get placeholders(){return this._placeholders.map(e=>e.marker)}get firstPlaceholder(){let e=0;for(let t of this._placeholders)t.index==0||t.transform||(e==0||t.indext.marker===e)}getPlaceholder(e){let t=this._placeholders.filter(r=>r.index==e&&!r.transform);return(t.find(r=>r.primary)||t[0])??t[0]}getPrevPlaceholder(e){if(e<=1)return;let t=this._placeholders.filter(r=>r.index1;){e=e-1;let r=t.filter(o=>o.index==e);if(r.length){i=r.find(o=>o.primary)||r[0];break}}return i}getNextPlaceholder(e){let t=this._placeholders.filter(s=>!s.transform),i,r=t.map(s=>s.index),o=Math.max.apply(null,r);for(let s=e+1;s<=o+1;s++){let a=s==o+1?0:s,l=t.filter(u=>u.index==a);if(l.length){i=l.find(u=>u.primary)||l[0];break}}return i}getPlaceholderByRange(e){return this._placeholders.find(t=>Ni(e,t.range))}async insertSnippet(e,t,i,r){if(r){let{start:s,end:a}=e.range;this.nvim.setVar("coc_last_placeholder",{current_text:e.value,start:{line:s.line,col:s.character,character:s.character},end:{line:a.line,col:a.character,character:a.character}},!0)}let o=this.tmSnippet.insertSnippet(t,e.marker,i,r);return await this.resolve(r),this.synchronize(),o}getNewText(e,t){let{before:i,after:r}=e;if(!!t.startsWith(i)&&!(t.length{this.tmSnippet=l,this.synchronize()});let u=Gi.Range.create(o,Bi(o,a));if(await this.tmSnippet.update(this.nvim,s,i),r.isCancellationRequested)return;this.synchronize();let c=this._placeholders.find(d=>d.marker==s),h=c?c.before:a;return{text:this._text,delta:bb(t,Gi.TextEdit.replace(u,h))}}removeText(e,t){let i=this.tmSnippet.deleteText(e,t);return i&&this.synchronize(),i}synchronize(){let e=this.tmSnippet,{line:t,character:i}=this.position,r=Wn.create("untitled:/1","snippet",0,e.toString()),{placeholders:o,variables:s,maxIndexNumber:a}=e,l=new Map,u=a+1;this._placeholders=[...o,...s].map(c=>{let h=e.offset(c),d=r.positionAt(h),g={line:t+d.line,character:d.line==0?i+d.character:d.character},p;if(c instanceof Yo){let w=c.name;l.has(w)?p=l.get(w):(l.set(w,u),p=u,u=u+1)}else p=c.index;let f=c.toString(),m=Bi(d,f);return{index:p,value:f,marker:c,transform:!!c.transform,range:Gi.Range.create(g,Bi(g,f)),before:r.getText(Gi.Range.create(Gi.Position.create(0,0),d)),after:r.getText(Gi.Range.create(m,Gi.Position.create(r.lineCount,0))),primary:c instanceof ht&&c.primary===!0}}),this._text=this.tmSnippet.toString()}}});function Sf(n){return n<10?"0"+n:n.toString()}function fte(n){let e,t,i,r=n.split(",");for(let o of r){if(e&&t&&i)break;if(!o.includes(":"))continue;let[s,a]=o.split(":");s.includes("s")?e=a:s.includes("e")?t=a:!i&&s==""&&(i=a)}return{start:e,end:t,single:i}}function Dke(n){if(n.endsWith("%s"))return n.slice(0,-2).trim()}var Tf,G5e,YD,mte=_(()=>{"use strict";Tf=x(require("path"));He();Ee();G5e=W()("snippets-variable");YD=class{constructor(e,t){this.nvim=e;this.workspaceFolder=t;this._variableToValue={};let i=new Date,r=i.getFullYear().toString();Object.assign(this._variableToValue,{CURRENT_YEAR:r,CURRENT_YEAR_SHORT:r.slice(-2),CURRENT_MONTH:Sf(i.getMonth()+1),CURRENT_DATE:Sf(i.getDate()),CURRENT_HOUR:Sf(i.getHours()),CURRENT_MINUTE:Sf(i.getMinutes()),CURRENT_SECOND:Sf(i.getSeconds()),CURRENT_DAY_NAME:i.toLocaleString("en-US",{weekday:"long"}),CURRENT_DAY_NAME_SHORT:i.toLocaleString("en-US",{weekday:"short"}),CURRENT_MONTH_NAME:i.toLocaleString("en-US",{month:"long"}),CURRENT_MONTH_NAME_SHORT:i.toLocaleString("en-US",{month:"short"}),TM_FILENAME:null,TM_FILENAME_BASE:null,TM_DIRECTORY:null,TM_FILEPATH:null,YANK:null,TM_LINE_INDEX:null,TM_LINE_NUMBER:null,TM_CURRENT_LINE:null,TM_CURRENT_WORD:null,TM_SELECTED_TEXT:null,VISUAL:null,CLIPBOARD:null,RELATIVE_FILEPATH:null,RANDOM:null,RANDOM_HEX:null,UUID:null,BLOCK_COMMENT_START:null,BLOCK_COMMENT_END:null,LINE_COMMENT:null,WORKSPACE_NAME:null,WORKSPACE_FOLDER:null})}async resolveValue(e){let{nvim:t}=this;if(["TM_FILENAME","TM_FILENAME_BASE","TM_DIRECTORY","TM_FILEPATH"].includes(e)){let i=await t.eval('expand("%:p")');if(e==="TM_FILENAME")return Tf.default.basename(i);if(e==="TM_FILENAME_BASE")return Tf.default.basename(i,Tf.default.extname(i));if(e==="TM_DIRECTORY")return Tf.default.dirname(i);if(e==="TM_FILEPATH")return i}if(e==="YANK")return await t.call("getreg",['""']);if(e==="TM_LINE_INDEX")return(await t.call("line",["."])-1).toString();if(e==="TM_LINE_NUMBER")return(await t.call("line",["."])).toString();if(e==="TM_CURRENT_LINE")return await t.call("getline",["."]);if(e==="TM_CURRENT_WORD")return await t.eval("expand('')");if(e==="TM_SELECTED_TEXT"||e=="VISUAL")return await t.eval("get(g:,'coc_selected_text', v:null)");if(e==="CLIPBOARD")return await t.eval("@*");if(e==="RANDOM")return Math.random().toString().slice(-6);if(e==="RANDOM_HEX")return Math.random().toString(16).slice(-6);if(e==="UUID")return se();if(["RELATIVE_FILEPATH","WORKSPACE_NAME","WORKSPACE_FOLDER"].includes(e)){let i=await t.eval('expand("%:p")'),r=this.workspaceFolder.getWorkspaceFolder(I.file(i));if(e==="RELATIVE_FILEPATH")return this.workspaceFolder.getRelativePath(i);if(e==="WORKSPACE_NAME")return r.name;if(e==="WORKSPACE_FOLDER")return I.parse(r.uri).fsPath}if(e==="LINE_COMMENT"){let i=await t.eval("&commentstring"),r=Dke(i);if(r)return r;let o=await t.eval("&comments"),{single:s}=fte(o);return s??""}if(["BLOCK_COMMENT_START","BLOCK_COMMENT_END"].includes(e)){let i=await t.eval("&comments"),{start:r,end:o}=fte(i);if(e==="BLOCK_COMMENT_START")return r??"";if(e==="BLOCK_COMMENT_END")return o??""}}async resolve(e){let t=e.name,i=this._variableToValue[t];if(i!=null)return i.toString();if(this._variableToValue.hasOwnProperty(t)){let r=await this.resolveValue(t);return!r&&e.children.length?e.toString():r==null?"":r.toString()}return e.children.length?e.toString():t}}});var _i,Rs,NR,WD,yte=_(()=>{"use strict";_i=x(q());Do();oi();_t();Ne();Ae();ne();HD();OR();mte();Rs=W()("snippets-session"),NR="snippets",WD=class{constructor(e,t,i=!1,r=!1){this.nvim=e;this.document=t;this.enableHighlight=i;this.preferComplete=r;this.mutex=new si;this._applying=!1;this._isActive=!1;this._snippet=null;this._onCancelEvent=new _i.Emitter;this.onCancel=this._onCancelEvent.event;this.disposable=t.onDocumentChange(async o=>{if(this._applying||!this._isActive)return;let s=o.contentChanges;s.length!==0&&await this.synchronize({version:o.textDocument.version,change:s[0]})})}async start(e,t,i=!0,r){var l;let{document:o}=this,s=this.getReplacePlaceholder(t),a=[];if(s){let u=this.snippet.range,c=o.textDocument.getText(u),h=dte(s.value,s.range,t);this.current=await this.snippet.insertSnippet(s,e,h,r);let d=MR({range:u,newText:this.snippet.text},c);a.push(d)}else{let u=new YD(this.nvim,v.workspaceFolderControl),c=new qD(e,t.start,this.nvim,u);if(await c.init(r),this._snippet=c,this.current=(l=c.firstPlaceholder)==null?void 0:l.marker,a.push(_i.TextEdit.replace(t,c.text)),e.replace(/\$0$/,"").endsWith(` +`)){let h=o.getline(t.start.line),d=h.slice(t.end.character);if(d.length){let g=t.end.character,p=d.match(/^\s*/)[0].length,f=_i.Range.create(t.end.line,g,t.end.line,g+p);a.push(_i.TextEdit.replace(f,h.match(/^\s*/)[0]))}}}if(await this.applyEdits(a),this.textDocument=o.textDocument,this.activate(),i&&this.current){let u=this.snippet.getPlaceholderByMarker(this.current);await this.selectPlaceholder(u,!0)}return this._isActive}async applyEdits(e){this._applying=!0,await this.document.applyEdits(e),this._applying=!1}getReplacePlaceholder(e){if(!this.snippet)return;let t=this.findPlaceholder(e);if(!(!t||t.index==0))return t}activate(){this._isActive||(this._isActive=!0,this.nvim.call("coc#snippet#enable",[this.preferComplete?1:0],!0))}deactivate(){this.cancel(),this._isActive&&(this.disposable.dispose(),this._isActive=!1,this.current=null,this.nvim.call("coc#snippet#disable",[],!0),this.enableHighlight&&this.nvim.call("coc#highlight#clear_highlight",[this.bufnr,NR,0,-1],!0),this._onCancelEvent.fire(void 0),Rs.debug(`session ${this.bufnr} cancelled`))}get isActive(){return this._isActive}get bufnr(){return this.document.bufnr}async nextPlaceholder(){await this.forceSynchronize();let e=this.placeholder;if(!e)return;let t=this.snippet.getNextPlaceholder(e.index);t&&await this.selectPlaceholder(t)}async previousPlaceholder(){await this.forceSynchronize();let e=this.placeholder;if(!e)return;let t=this.snippet.getPrevPlaceholder(e.index);t&&await this.selectPlaceholder(t)}async selectCurrentPlaceholder(e=!0){if(await this.forceSynchronize(),!this.snippet)return;let t=this.snippet.getPlaceholderByMarker(this.current);t&&await this.selectPlaceholder(t,e)}async selectPlaceholder(e,t=!0){let{nvim:i,document:r}=this;if(!r||!e)return;let{start:o,end:s}=e.range,a=s.character-o.character,l=V(r.getline(o.line).slice(0,o.character))+1,u=this.current=e.marker;if(u instanceof ht&&u.choice&&u.choice.options.length){let c=u.choice.options.map(h=>h.value);await i.call("coc#snippet#show_choices",[o.line+1,l,a,c]),t&&i.call("coc#util#do_autocmd",["CocJumpPlaceholder"],!0)}else{let c=this.snippet.finalCount;await this.select(e,t),this.highlights(e),e.index==0&&(c==1?(Rs.info("Jump to final placeholder, cancelling snippet session"),this.deactivate()):i.call("coc#snippet#disable",[],!0))}}highlights(e,t=!0){if(!this.enableHighlight)return;let i=this.document.buffer;this.nvim.pauseNotification(),i.clearNamespace(NR);let r=this.snippet.getRanges(e);r.length&&i.highlightRanges(NR,"CocSnippetVisual",r),this.nvim.resumeNotification(t,!0)}async select(e,t=!0){let{range:i,value:r}=e,{nvim:o}=this;r.length>0?await o.call("coc#snippet#select",[i.start,i.end,r]):await o.call("coc#snippet#move",[i.start]),t&&o.call("coc#util#do_autocmd",["CocJumpPlaceholder"],!0),o.redrawVim()}async checkPosition(){if(!this.isActive)return;let e=await k.getCursorPosition();this.snippet&&mt(e,this.snippet.range)!=0&&(Rs.info("Cursor insert out of range, cancelling snippet session"),this.deactivate())}findPlaceholder(e){let{placeholder:t}=this;return t&&Ni(e,t.range)?t:this.snippet.getPlaceholderByRange(e)||null}async synchronize(e){this.cancel(),await this.mutex.use(()=>{let t=this.textDocument?this.textDocument.version:-1;return e&&(this.document.version!=e.version||e.version-t!==1)&&(e=void 0),this._synchronize(e?e.change:void 0)})}async _synchronize(e){let{document:t,textDocument:i}=this;if(!t.attached||!this._isActive)return;let r=Date.now(),o=t.textDocument;if(o.version==i.version||Xe(i.lines,o.lines))return;let{range:s,text:a}=this.snippet;e&&!Ni(e.range,s)&&(e=void 0);let l=hte(s.end,i,o);if(!l){Rs.info("Content change after snippet, cancel snippet session"),this.deactivate();return}if(!cte(s.start,i,o)){let b=o.getText(_i.Range.create(_i.Position.create(0,0),l));if(b.endsWith(a)){let w=o.positionAt(b.length-a.length);this.snippet.resetStartPosition(w),this.textDocument=o,Rs.info("Content change before snippet, reset snippet position");return}Rs.info("Before and snippet body changed, cancel snippet session"),this.deactivate();return}let c=this.tokenSource=new _i.CancellationTokenSource,h=await k.getCursorPosition();if(c.token.isCancellationRequested||t.hasChanged)return;let d,g,p=o.getText(_i.Range.create(s.start,l)),f=this.placeholder;if(e){for(let b of this.snippet.getSortedPlaceholders(f))if(Ni(e.range,b.range)){d=b,g=this.snippet.getNewText(b,p);break}if(!d&&e.text.length==0&&!jt(e.range)&&QY(e.range)){let b=e.range.end.character-e.range.start.character,w=o.getText(_i.Range.create(s.start,e.range.start)).length;if(this.snippet.removeText(w,b)){this.textDocument=o;return}}}else for(let b of this.snippet.getSortedPlaceholders(f))if(!(Fe(h,b.range.start)<0)&&(g=this.snippet.getNewText(b,p),g!=null&&ute(b.range.start,h,g))){d=b;break}if(!d&&p.endsWith(a)){let b=Bi(s.start,p.slice(0,-a.length));this.snippet.resetStartPosition(b),this.textDocument=o,Rs.info("Content change before snippet, reset snippet position");return}if(!d){Rs.info("Unable to find changed placeholder, cancel snippet session"),this.deactivate();return}let m=await this.snippet.updatePlaceholder(d,h,g,c.token);if(!(m==null||c.token.isCancellationRequested)){if(t.hasChanged){c.cancel(),c.dispose();return}if(c.dispose(),this.current=d.marker,m.text!==p){let b=MR({range:_i.Range.create(this.snippet.start,l),newText:m.text},p);await this.applyEdits([b]);let{delta:w}=m;(w.line!=0||w.character!=0)&&this.nvim.call("coc#cursor#move_to",[h.line+w.line,h.character+w.character],!0),this.highlights(d,!1),this.nvim.redrawVim()}else this.highlights(d);Rs.debug("update cost:",Date.now()-r,m.delta),this.textDocument=this.document.textDocument}}async forceSynchronize(){this.cancel(),await this.document.patchChange(),(await this.mutex.acquire())()}cancel(){this.tokenSource&&(this.tokenSource.cancel(),this.tokenSource.dispose(),this.tokenSource=null)}get placeholder(){if(!(!this.snippet||!this.current))return this.snippet.getPlaceholderByMarker(this.current)}get snippet(){return this._snippet}static async resolveSnippet(e,t,i){let r=i&&_i.Range.is(i.range)?i.range.start:await k.getCursorPosition(),o=i&&typeof i.line=="string"?i.line:await e.line,s;i&&(s=Object.assign({range:_i.Range.create(r,r),line:o},i));let a=new YD(e,v.workspaceFolderControl),l=new qD(t,r,e,a);return await l.init(s,!0),l.text}}});var ro,BR=_(()=>{"use strict";ro=class{constructor(e){this._tabstop=1;this.value=e||""}static isSnippetString(e){return e instanceof ro?!0:e?typeof e.value=="string":!1}static _escape(e){return e.replace(/\$|}|\\/g,"\\$&")}appendText(e){return this.value+=ro._escape(e),this}appendTabstop(e=this._tabstop++){return this.value+="$",this.value+=e,this}appendPlaceholder(e,t=this._tabstop++){if(typeof e=="function"){let i=new ro;i._tabstop=this._tabstop,e(i),this._tabstop=i._tabstop,e=i.value}else e=ro._escape(e);return this.value+="${",this.value+=t,this.value+=":",this.value+=e,this.value+="}",this}appendChoice(e,t=this._tabstop++){let i=e.map(r=>r.replace(/\$|}|\\|,/g,"\\$&")).join(",");return this.value+="${",this.value+=t,this.value+="|",this.value+=i,this.value+="|}",this}appendVariable(e,t){if(typeof t=="function"){let i=new ro;i._tabstop=this._tabstop,t(i),this._tabstop=i._tabstop,t=i.value}else typeof t=="string"&&(t=t.replace(/\$|}/g,"\\$&"));return this.value+="${",this.value+=e,t&&(this.value+=":",this.value+=t),this.value+="}",this}}});var mu,C9e,bte,ei,yu=_(()=>{"use strict";mu=x(q());we();oi();_t();Ae();ne();yte();OR();BR();C9e=W()("snippets-manager"),bte=class{constructor(){this.sessionMap=new Map;this.disposables=[];P.on("InsertCharPre",()=>{var e;(e=this.session)==null||e.cancel()},null,this.disposables),k.onDidChangeActiveTextEditor(e=>{if(!this.statusItem)return;this.getSession(e.document.bufnr)?this.statusItem.show():this.statusItem.hide()},null,this.disposables),P.on("InsertEnter",async e=>{let t=this.getSession(e);t&&await t.checkPosition()},null,this.disposables),v.onDidCloseTextDocument(e=>{let t=this.getSession(e.bufnr);t&&t.deactivate()},null,this.disposables),v.onDidChangeConfiguration(e=>{(e.affectsConfiguration("suggest")||e.affectsConfiguration("coc.preferences"))&&this.init()},null,this.disposables)}get nvim(){return v.nvim}init(){this.statusItem||(this.statusItem=k.createStatusBarItem(0));let e=v.getConfiguration("coc.preferences");this.statusItem.text=e.get("snippetStatusText","SNIP"),this.highlight=e.get("snippetHighlight",!1);let t=v.getConfiguration("suggest");this.preferComplete=t.get("preferCompleteThanJumpPlaceholder",!1)}async insertSnippet(e,t=!0,i,r,o){let{bufnr:s}=v,a=v.getAttachedDocument(s);if(i&&!Ni(i,mu.Range.create(0,0,a.lineCount+1,0)))throw new Error("Unable to insert snippet, invalid range.");let l;if(P.pumvisible&&this.nvim.call("coc#pum#close",[],!0),!i){let p=await k.getCursorPosition();i=mu.Range.create(p,p)}let u=a.getline(i.start.line),c=ro.isSnippetString(e)?e.value:e,h=await this.normalizeInsertText(a.uri,c,u,r),d=this.getSession(s);d&&d.cancel(),o!=null&&(l=Object.assign({range:Yr(i),line:u},o),!jt(i)&&h.includes("`!p")&&(this.nvim.call("coc#cursor#move_to",[i.start.line,i.start.character],!0),await a.applyEdits([{range:i,newText:""}]),i.end=mu.Position.create(i.start.line,i.start.character))),d?(await d.forceSynchronize(),d=this.getSession(s)):await a.patchChange(!0),d||(d=new WD(this.nvim,a,this.highlight,this.preferComplete),d.onCancel(()=>{this.sessionMap.delete(s),this.statusItem.hide()}));let g=await d.start(h,i,t,l);return g?(this.statusItem.show(),this.sessionMap.set(s,d)):(this.statusItem.hide(),this.sessionMap.delete(s)),g}async selectCurrentPlaceholder(e=!0){let{session:t}=this;if(t)return await t.selectCurrentPlaceholder(e)}async nextPlaceholder(){let{session:e}=this;return e?await e.nextPlaceholder():(this.nvim.call("coc#snippet#disable",[],!0),this.statusItem.hide()),""}async previousPlaceholder(){let{session:e}=this;return e?await e.previousPlaceholder():(this.nvim.call("coc#snippet#disable",[],!0),this.statusItem.hide()),""}cancel(){let e=this.getSession(v.bufnr);if(e)return e.deactivate();this.nvim.call("coc#snippet#disable",[],!0),this.statusItem&&this.statusItem.hide()}get session(){return this.getSession(v.bufnr)}getSession(e){return this.sessionMap.get(e)}jumpable(){let{session:e}=this;return e?e.placeholder!=null&&e.placeholder.index!=0:!1}async editsInsideSnippet(e){let t=this.getSession(v.bufnr);if(!t||!t.snippet)return!1;await t.forceSynchronize();let i=t.snippet.range;return!!e.some(r=>Oc(r.range,i))}async resolveSnippet(e,t){if(t){let i=this.getSession(v.bufnr);t.noPython=i!=null&&i.snippet.hasPython}return await WD.resolveSnippet(this.nvim,e,t)}async normalizeInsertText(e,t,i,r){let o="";if(r===mu.InsertTextMode.asIs||!pte(t))o=t;else{let s=i.match(/^\s*/)[0],a=k.activeTextEditor?k.activeTextEditor.options:await v.getFormatOptions(e);o=gte(t,s,a)}return o}dispose(){this.cancel();for(let e of this.disposables)e.dispose()}},ei=new bte});var vte,kf,bu,Wo,ZD=_(()=>{"use strict";Ee();vte=x(require("path"));(e=>{function n(t){return typeof t.label=="string"}e.is=n})(kf||(kf={}));bu=(i=>(i[i.None=0]="None",i[i.Collapsed=1]="Collapsed",i[i.Expanded=2]="Expanded",i))(bu||{}),Wo=class{constructor(e,t=0){this.collapsibleState=t;I.isUri(e)?(this.resourceUri=e,this.label=vte.default.basename(e.path),this.id=e.toString()):this.label=e}}});var HR=_(()=>{"use strict";ZD()});function Cke(n){return Array.isArray(n)&&n.every(e=>typeof e=="string")}function xke(n){return typeof n>"u"||Cke(n)}var wte,Ef,Dte=_(()=>{"use strict";wte=x(q());Ef=class{constructor(e){if(this._prevLine=0,this._prevChar=0,this._dataIsSortedAndDeltaEncoded=!0,this._data=[],this._dataLen=0,this._tokenTypeStrToInt=new Map,this._tokenModifierStrToInt=new Map,this._hasLegend=!1,e){this._hasLegend=!0;for(let t=0,i=e.tokenTypes.length;t"u"))return typeof o>"u"&&(o=0),this._pushEncoded(e,t,i,r,o);if(wte.Range.is(e)&&typeof t=="string"&&xke(i))return this._push(e,t,i);throw new Error("Illegal argument")}_push(e,t,i){if(!this._hasLegend)throw new Error("Legend must be provided in constructor");if(e.start.line!==e.end.line)throw new Error("`range` cannot span multiple lines");if(!this._tokenTypeStrToInt.has(t))throw new Error("`tokenType` is not in the provided legend");let r=e.start.line,o=e.start.character,s=e.end.character-e.start.character,a=this._tokenTypeStrToInt.get(t),l=0;if(i)for(let u of i){if(!this._tokenModifierStrToInt.has(u))throw new Error("`tokenModifier` is not in the provided legend");let c=this._tokenModifierStrToInt.get(u);l|=1<>>0}this._pushEncoded(r,o,s,a,l)}_pushEncoded(e,t,i,r,o){if(this._dataIsSortedAndDeltaEncoded&&(e0&&(s-=this._prevLine,s===0&&(a-=this._prevChar)),this._data[this._dataLen++]=s,this._data[this._dataLen++]=a,this._data[this._dataLen++]=i,this._data[this._dataLen++]=r,this._data[this._dataLen++]=o,this._prevLine=e,this._prevChar=t}static _sortAndDeltaEncode(e){let t=[],i=e.length/5|0;for(let a=0;a{let u=e[5*a],c=e[5*l];if(u===c){let h=e[5*a+1],d=e[5*l+1];return h-d}return u-c});let r=new Array(e.length),o=0,s=0;for(let a=0;a{"use strict";Ei();we();Te();av();cs();Hw();O_();ba();W6();pf();Io();ne();Ae();Oo();OD();yu();BR();fu();Rc();No();Do();Ee();var de=x(q());$r();kR();re();HR();Dte();Cte.exports={Uri:I,NullLogger:J_,SettingMonitor:TR,LanguageClient:gf,CancellationTokenSource:de.CancellationTokenSource,ProgressType:de.ProgressType,RequestType:de.RequestType,RequestType0:de.RequestType0,NotificationType:de.NotificationType,NotificationType0:de.NotificationType0,Highligher:Hi,Mru:Sa,Emitter:de.Emitter,SnippetString:ro,BasicList:Vt,Mutex:si,TreeItem:Wo,SemanticTokensBuilder:Ef,FloatFactory:fi,RelativePattern:Xw,UniquenessLevel:de.UniquenessLevel,MonikerKind:de.MonikerKind,PatternType:Yg,SourceType:Wg,MessageLevel:eb,ConfigurationTarget:tb,ServiceStat:Zg,FileType:ib,State:Vw,ClientState:eD,CloseAction:X_,ErrorAction:$_,TransportKind:hD,MessageTransports:Rh,RevealOutputChannelOn:zw,MarkupKind:de.MarkupKind,DiagnosticTag:de.DiagnosticTag,DocumentHighlightKind:de.DocumentHighlightKind,SymbolKind:de.SymbolKind,SignatureHelpTriggerKind:de.SignatureHelpTriggerKind,FileChangeType:de.FileChangeType,CodeActionKind:de.CodeActionKind,Diagnostic:de.Diagnostic,DiagnosticSeverity:de.DiagnosticSeverity,CompletionItemKind:de.CompletionItemKind,InsertTextFormat:de.InsertTextFormat,Location:de.Location,LocationLink:de.LocationLink,CancellationToken:de.CancellationToken,Position:de.Position,Range:de.Range,TextEdit:de.TextEdit,Disposable:de.Disposable,Event:de.Event,workspace:v,window:k,CompletionTriggerKind:de.CompletionTriggerKind,snippetManager:ei,events:P,services:Ui,commands:he,sources:ct,languages:j,diagnosticManager:Yt,extensions:Pe,listManager:Pi,TreeItemCollapsibleState:bu,fetch:Eh,download:sf,ansiparse:Ig,disposeAll:$,concurrent:Pg,watchFile:xc,wait:Pt,runCommand:bo,isRunning:Sq,executable:Eg}});function Tke(n){return()=>{throw new Error(`process.${n}() is not allowed in extension sandbox`)}}function kke(){let n=e=>e==="coc.nvim"?xte():this.require(e);return n.resolve=e=>Zo._resolveFilename(e,this),n.main=process.mainModule,n.extensions=Zo._extensions,n.cache=Zo._cache,n}function Eke(n){return function(e,t){let i=kke.call(this),r=Tte.default.dirname(t),o=e.replace(/^\#\!.*/,""),s=Zo.wrap(o),a=JD.runInContext(s,n,{filename:t}),l=[this.exports,i,this,t,r];return a.apply(this.exports,l)}}function Pke(n,e){let t=new Zo(n);t.paths=Zo._nodeModulePaths(n);let i=JD.createContext({module:t,Buffer,URL:globalThis.URL,console:{debug:(...r)=>{e.debug.apply(e,r)},log:(...r)=>{e.info.apply(e,r)},error:(...r)=>{e.error.apply(e,r)},info:(...r)=>{e.info.apply(e,r)},warn:(...r)=>{e.warn.apply(e,r)}}});h$(i,global),i.Reflect=Reflect,i.require=function(o){let s=Zo.prototype._compile;Zo.prototype._compile=Eke(i);let a=i.module.require(o);return Zo.prototype._compile=s,a},i.process=new process.constructor;for(let r of Object.keys(process))i.process[r]=process[r];return Ske.forEach(r=>{i.process[r]=Tke(r)}),i.process.chdir=()=>{},i.process.umask=r=>{if(typeof r<"u")throw new Error("Cannot use process.umask() to change mask (read-only)");return process.umask()},i}function Ete(n,e,t=!1){if(t||!Ste.default.existsSync(e))return{activate:()=>{},deactivate:null};let i=Pke(e,kte(`extension:${n}`));delete Zo._cache[require.resolve(e)];let r=i.require(e),o=r&&r.activate||r;return typeof o!="function"?{activate:()=>{},deactivate:null}:{activate:o,deactivate:typeof r.deactivate=="function"?r.deactivate:null}}var Ste,Tte,JD,kte,aVe,Zo,Ske,Pte=_(()=>{"use strict";Ste=x(require("fs")),Tte=x(require("path")),JD=x(require("vm"));bs();kte=W(),aVe=kte("util-factoroy"),Zo=require("module"),Ske=["reallyExit","abort","umask","setuid","setgid","setgroups","_fatalException","exit","kill"]});var Ate={};Ms(Ate,{ExtensionType:()=>jte,Extensions:()=>qR,default:()=>Pe});var _te,Tt,Rte,Ze,Lte,$D,Fte,Ite,fn,jte,qR,Pe,Oo=_(()=>{"use strict";_te=x(Oi()),Tt=x(Bn()),Rte=x(DT());Gg();Ze=x(require("path")),Lte=x(Tp()),$D=x(q());Ee();Fte=x(Tg());Ei();fE();we();IE();cs();hX();q6();Y6();re();So();iS();Pte();et();lr();Ae();ne();Ite=W(),fn=Ite("extensions"),jte=(r=>(r[r.Global=0]="Global",r[r.Local=1]="Local",r[r.SingleFile=2]="SingleFile",r[r.Internal=3]="Internal",r))(jte||{}),qR=class{constructor(){this.extensions=new Map;this.disabled=new Set;this._onDidLoadExtension=new $D.Emitter;this._onDidActiveExtension=new $D.Emitter;this._onDidUnloadExtension=new $D.Emitter;this._additionalSchemes={};this.activated=!1;this.disposables=[];this.ready=!0;this.onDidLoadExtension=this._onDidLoadExtension.event;this.onDidActiveExtension=this._onDidActiveExtension.event;this.onDidUnloadExtension=this._onDidUnloadExtension.event;let e=global.__TEST__?Ze.default.join(__dirname,"__tests__"):process.env.COC_DATA_HOME,t=this.root=Ze.default.join(e,"extensions");if(this.checkRoot(t)){let r=Ze.default.join(t,"db.json");this.db=new eh(r)}}checkRoot(e){try{Tt.default.existsSync(e)||Tt.default.mkdirpSync(e);let t=Tt.default.statSync(e);if(t.isFile())fn.info(`Trying to delete ${e}`),Tt.default.unlinkSync(e),Tt.default.mkdirpSync(e);else if(!t.isDirectory())return console.error(`Data home ${e} it not a valid directory`),!1;let i=Ze.default.join(e,"package.json");Tt.default.existsSync(i)||Tt.default.writeFileSync(i,'{"dependencies":{}}',"utf8")}catch(t){return console.error(`Unexpected error when check data home: ${t}`),!1}return!0}get outputChannel(){return this._outputChannel?this._outputChannel:(this._outputChannel=k.createOutputChannel("extensions"),this._outputChannel)}async init(){let e=this.db.fetch("extension")||{},t=Object.keys(e);for(let o of t)e[o].disabled==!0&&this.disabled.add(o);if(process.env.COC_NO_PLUGINS)return;let i=await this.globalExtensionStats(),r=await this.localExtensionStats(i.map(o=>o.id));i=i.concat(r),this.memos=new $w(Ze.default.resolve(this.root,"../memos.json")),i.map(o=>{let s=o.isLocal?1:0;try{this.createExtension(o.root,o.packageJSON,s)}catch(a){fn.error(`Error on create ${o.root}:`,a)}}),await this.loadFileExtensions(),he.register({id:"extensions.forceUpdateAll",execute:async()=>{let o=await this.cleanExtensions();fn.info(`Force update extensions: ${o}`),await this.installExtensions(o)}},!1,"remove all global extensions and install them"),v.onDidRuntimePathChange(async o=>{for(let s of o)s&&this.checkDirectory(s)===!0&&await this.loadExtension(s)},null,this.disposables)}getExtensionsInfo(){let e=[];for(let[t,i]of this.extensions.entries()){let{directory:r,filepath:o}=i;r||(r=o),i.type,r&&e.push({name:t,filepath:o,directory:r.endsWith(Ze.default.sep)?r:r+Ze.default.sep})}return e}activateExtensions(){this.activated=!0;for(let o of this.extensions.values()){let{id:s,packageJSON:a}=o.extension;this.setupActiveEvents(s,a).logError()}let e=new fi(v.nvim);if(P.on("CursorMoved",(0,_te.debounce)(async o=>{if(this.installBuffer&&o==this.installBuffer.bufnr){let s=await v.nvim.call("line",["."]),a=this.installBuffer.getMessages(s-1),l=a&&a.length?[{content:a.join(` +`),filetype:"txt"}]:[];await e.show(l,{modes:["n"]})}},500)),global.__TEST__)return;this.checkExtensions();let t=v.getConfiguration("coc.preferences"),i=t.get("extensionUpdateCheck","never"),r=t.get("silentAutoupdate",!0);if(i!="never"){let o=new Date,s=new Date(o.getFullYear(),o.getMonth(),o.getDate()-(i=="daily"?0:7)),a=this.db.fetch("lastUpdate");if(a&&Number(a)>s.getTime())return;this.outputChannel.appendLine("Start auto update..."),this.updateExtensions(!1,r).logError()}}async updateExtensions(e,t=!1){if(!this.npm)return;let i=await this.getLockedList(),r=await this.globalExtensionStats();r=r.filter(l=>![...i,...this.disabled].includes(l.id)),this.db.push("lastUpdate",Date.now()),t&&k.showMessage("Updating extensions, checkout output:///extensions for details.","more");let o=this.installBuffer=new Rp(!0,e,t?this.outputChannel:void 0);o.setExtensions(r.map(l=>l.id)),await o.show(v.nvim);let s=Jw(this.npm,this.modulesFolder);await Pg(r,l=>{let{id:u}=l;o.startProgress([u]);let c=l.exotic?l.uri:null,h=s(u);return h.on("message",(d,g)=>{o.addMessage(u,d,g)}),h.update(c).then(d=>{o.finishProgress(u,!0),d&&this.loadExtension(d).logError()},d=>{o.addMessage(u,d.message),o.finishProgress(u,!1)})},t?1:3)}checkExtensions(){let{globalExtensions:e}=v.env;if(e&&e.length){let t=this.filterGlobalExtensions(e);this.installExtensions(t)}}get installer(){return Jw(this.npm,this.modulesFolder)}async installExtensions(e=[]){let{npm:t}=this;if(!t||!e.length)return;e=va(e);let i=this.installBuffer=new Rp;i.setExtensions(e),await i.show(v.nvim);let r=Jw(this.npm,this.modulesFolder);await Pg(e,s=>{i.startProgress([s]);let a=r(s);return a.on("message",(l,u)=>{i.addMessage(s,l,u)}),a.install().then(l=>{i.finishProgress(s,!0);let u=Ze.default.join(this.modulesFolder,l);this.loadExtension(u).logError(),s.match(/(.+)@([^/]+)$/)!=null&&this.lockExtension(l,!0)},l=>{i.addMessage(s,l.message),i.finishProgress(s,!1),fn.error(`Error on install ${s}`,l)})})}getMissingExtensions(){let e=this.loadJson()||{dependencies:{}},t=[];for(let i of Object.keys(e.dependencies)){let r=Ze.default.join(this.modulesFolder,i);if(!Tt.default.existsSync(r)){let o=e.dependencies[i];o.startsWith("http")?t.push(o):t.push(i)}}return t}get npm(){let e=v.getConfiguration("npm").get("binPath","npm");e=v.expand(e);for(let t of[e,"yarnpkg","yarn","npm"])try{return Fte.default.sync(t)}catch{continue}return k.showMessage("Can't find npm or yarn in your $PATH","error"),null}get all(){return Array.from(this.extensions.values()).map(e=>e.extension).filter(e=>!this.isDisabled(e.id))}getExtension(e){return this.extensions.get(e)}getExtensionState(e){if(this.isDisabled(e))return"disabled";let i=this.extensions.get(e);if(!i)return"unknown";let{extension:r}=i;return r.isActive?"activated":"loaded"}async getExtensionStates(){let e=await this.localExtensionStats([]),t=await this.globalExtensionStats();return e.concat(t.filter(i=>e.find(r=>r.id==i.id)==null))}async getLockedList(){let e=await this.db.fetch("extension");return e=e||{},Object.keys(e).filter(t=>e[t].locked===!0)}async lockExtension(e,t){let i=`extension.${e}.locked`,r=await this.db.fetch(i);t=t===void 0?!r:t,t?this.db.push(i,!0):this.db.delete(i)}async toggleExtension(e){let t=this.getExtensionState(e);if(t==null)return;t=="activated"&&await this.deactivate(e);let i=`extension.${e}.disabled`;if(this.db.push(i,t!="disabled"),t!="disabled")this.disabled.add(e),await this.unloadExtension(e);else{this.disabled.delete(e);let r=Ze.default.join(this.modulesFolder,e);Tt.default.existsSync(r)&&await this.loadExtension(r)}await Pt(200)}async reloadExtension(e){let t=this.extensions.get(e);if(!t){k.showMessage(`Extension ${e} not registered`,"error");return}if(t.type==3){k.showMessage(`Can't reload internal extension "${t.id}"`,"warning");return}t.type==2?await this.loadExtensionFile(t.filepath):t.directory?await this.loadExtension(t.directory):k.showMessage(`Can't reload extension ${t.id}`,"warning")}async cleanExtensions(){let e=this.modulesFolder;if(!Tt.default.existsSync(e))return[];let t=this.globalExtensions,i=[];for(let r of t){let o=Ze.default.join(e,r),s=await Tt.default.lstat(o);!s||s&&s.isSymbolicLink()||(await this.unloadExtension(r),await Tt.default.remove(o),i.push(r))}return i}async uninstallExtension(e){try{if(!e.length)return;let[t,i]=Fb(e,a=>this.globalExtensions.includes(a));i.length&&k.showMessage(`Extensions ${i} not global extensions, can't uninstall!`,"warning");let r=this.loadJson()||{dependencies:{}};for(let a of t){await this.unloadExtension(a),delete r.dependencies[a];let l=Ze.default.join(this.modulesFolder,a);Tt.default.existsSync(l)&&await Tt.default.remove(l)}let o={dependencies:{}};Object.keys(r.dependencies).sort().forEach(a=>{o.dependencies[a]=r.dependencies[a]});let s=Ze.default.join(this.root,"package.json");Tt.default.writeFileSync(s,JSON.stringify(o,null,2),{encoding:"utf8"}),k.showMessage(`Removed: ${t.join(" ")}`)}catch(t){k.showMessage(`Uninstall failed: ${t}`,"error")}}isDisabled(e){return this.disabled.has(e)}has(e){return this.extensions.has(e)}isActivated(e){let t=this.extensions.get(e);return!!(t&&t.extension.isActive)}async loadExtension(e){if(Array.isArray(e)){for(let t of e)await this.loadExtension(t);return!0}try{let t=Ze.default.dirname(e),i=Ze.default.normalize(t)!=Ze.default.normalize(this.modulesFolder),r=Ze.default.join(e,"package.json"),o=JSON.parse(Tt.default.readFileSync(r,"utf8")),{name:s}=o;return this.isDisabled(s)?!1:(await this.unloadExtension(s),this.createExtension(e,Object.freeze(o),i?1:0),!0)}catch(t){return k.showMessage(`Error on load extension from "${e}": ${t}`,"error"),fn.error(`Error on load extension from ${e}`,t),!1}}async loadFileExtensions(){if(!process.env.COC_VIMCONFIG)return;let e=Ze.default.join(process.env.COC_VIMCONFIG,"coc-extensions");if(!Tt.default.existsSync(e))return;let t=await Tt.default.readdir(e);t=t.filter(i=>i.endsWith(".js"));for(let i of t)await this.loadExtensionFile(Ze.default.join(e,i))}loadedExtensions(){return Array.from(this.extensions.keys())}async watchExtension(e){let t=this.extensions.get(e);if(!t){k.showMessage(`extension ${e} not found`,"error");return}if(e.startsWith("single-"))k.showMessage(`watching ${t.filepath}`),this.disposables.push(xc(t.filepath,async()=>{await this.loadExtensionFile(t.filepath),k.showMessage(`reloaded ${e}`)}));else{let i=v.getWatchmanPath();if(!i){k.showMessage("watchman not found","error");return}let r=await Da.createClient(i,t.directory);if(!r){k.showMessage("Can't create watchman client, check output:///watchman");return}k.showMessage(`watching ${t.directory}`),this.disposables.push(r),r.subscribe("**/*.js",async()=>{await this.reloadExtension(e),k.showMessage(`reloaded ${e}`)}).then(o=>{this.disposables.push(o)},o=>{})}}async loadExtensionFile(e){let t=Ze.default.basename(e),i=Ze.default.basename(e,".js"),r="single-"+i;if(this.isDisabled(r))return;let o=Ze.default.dirname(e),s={name:r,main:t,engines:{coc:"^0.0.79"}},a=Ze.default.join(o,i+".json"),l=await $t(a);if(l&&l.isFile()){let u=await Ac(a,"utf8"),c=JSON.parse(u);if(c){let h=["activationEvents","contributes"];for(let d of h)c[d]&&(s[d]=c[d])}}await this.unloadExtension(r),this.createExtension(o,s,2)}async activate(e){if(this.isDisabled(e))throw new Error(`Extension ${e} is disabled!`);let t=this.extensions.get(e);if(!t)throw new Error(`Extension ${e} not registered!`);let{extension:i}=t;return i.isActive?!0:(await Promise.resolve(i.activate()),i.isActive?(this._onDidActiveExtension.fire(i),!0):!1)}async deactivate(e){let t=this.extensions.get(e);return t?(await Promise.resolve(t.deactivate()),!0):!1}async call(e,t,i){let r=this.extensions.get(e);if(!r)throw new Error(`extension ${e} not registered`);let{extension:o}=r;o.isActive||await this.activate(e);let{exports:s}=o;if(!s||!s.hasOwnProperty(t))throw new Error(`method ${t} not found on extension ${e}`);return await Promise.resolve(s[t].apply(null,i))}getExtensionApi(e){let t=this.extensions.get(e);if(!t)return null;let{extension:i}=t;return i.isActive?i.exports:null}registerExtension(e,t){let{id:i,packageJSON:r}=e;this.extensions.set(i,{id:i,type:3,extension:e,deactivate:t,isLocal:!0});let{contributes:o}=r;if(o){let{configuration:s}=o;if(s&&s.properties){let{properties:a}=s,l={};for(let u of Object.keys(a)){let c=a[u].default;c!=null&&(l[u]=c)}v.configurations.extendsDefaults(l)}}this._onDidLoadExtension.fire(e),this.setupActiveEvents(i,r).logError()}get globalExtensions(){let e=this.loadJson();return!e||!e.dependencies?[]:Object.keys(e.dependencies)}async globalExtensionStats(){let e=this.loadJson();if(!e||!e.dependencies)return[];let{modulesFolder:t}=this;return(await Promise.all(Object.keys(e.dependencies).map(r=>new Promise(async o=>{try{let s=e.dependencies[r],a=Ze.default.join(t,r),l=this.checkDirectory(a);if(l instanceof Error)return k.showMessage(`Unable to load global extension at ${a}: ${l.message}`,"error"),fn.error(`Error on load ${a}`,l),o(null);let u=await Ac(Ze.default.join(a,"package.json"),"utf8");a=await Tt.default.realpath(a);let c=JSON.parse(u),h=c&&c.version||"",d=c&&c.description||"",g=Rte.default.isValid(s)?s:"";o({id:r,isLocal:!1,version:h,description:d,exotic:/^https?:/.test(s),uri:g.replace(/\.git(#master)?$/,""),root:a,state:this.getExtensionState(r),packageJSON:Object.freeze(c)})}catch(s){fn.error(s),o(null)}})))).filter(r=>r!=null)}async localExtensionStats(e){let i=(await v.nvim.eval('join(globpath(&runtimepath, "", 0, 1), ",")')).split(",");return(await Promise.all(i.map(o=>new Promise(async s=>{try{if(this.checkDirectory(o)!==!0)return s(null);let l=Ze.default.join(o,"package.json"),u=await Ac(l,"utf8"),c=JSON.parse(u),h=this.extensions.get(c.name);if(h&&!h.isLocal)return fn.info(`Extension "${c.name}" in runtimepath already loaded.`),s(null);if(e.includes(c.name))return fn.info(`Skipped load vim plugin from "${o}", "${c.name}" already global extension.`),s(null);let d=c&&c.version||"",g=c&&c.description||"";s({id:c.name,isLocal:!0,version:d,description:g,exotic:!1,root:o,state:this.getExtensionState(c.name),packageJSON:Object.freeze(c)})}catch(a){fn.error(a),s(null)}})))).filter(o=>o!=null)}loadJson(){let{root:e}=this,t=Ze.default.join(e,"package.json");if(!Tt.default.existsSync(t))return null;let i=[],r=Tt.default.readFileSync(t,"utf8"),o=Yc(r,i,{allowTrailingComma:!0});return i&&i.length>0&&(k.showMessage(`Error on parse ${t}`,"error"),v.nvim.call("coc#util#open_file",["edit",t],!0)),o}get schemes(){return this._additionalSchemes}addSchemeProperty(e,t){this._additionalSchemes[e]=t,v.configurations.extendsDefaults({[e]:t.default})}async setupActiveEvents(e,t){let{activationEvents:i}=t;if(!this.canActivate(e))return;if(!i||Array.isArray(i)&&i.includes("*")){await this.activate(e).catch(a=>{k.showMessage(`Error on activate extension ${e}: ${a.message}`),this.outputChannel.appendLine(`Error on activate extension ${e}. ${a.message} - ${a.stack}`)});return}let r=[],o=!1,s=()=>{if(!o)return o=!0,Z(r),new Promise(a=>{if(!this.canActivate(e))return this.outputChannel.appendLine(`Extension ${e} is disabled or not loaded.`),a();this.activate(e).then(()=>{a()},l=>{k.showMessage(`Error on activate extension ${e}: ${l.message}`),this.outputChannel.appendLine(`Error on activate extension ${e}:${l.message} - ${l.stack}`),a()})})};for(let a of i){let l=a.split(":"),u=l[0];if(u=="onLanguage"){if(y.languageIds.has(l[1])||y.filetypes.has(l[1])){await s();return}y.onDidOpenTextDocument(c=>{let h=y.getDocument(c.bufnr);(c.languageId==l[1]||h.filetype==l[1])&&s()},null,r)}else if(u=="onCommand")oe.onCommandList.push(l[1]),E.on("Command",async c=>{c==l[1]&&(await s(),await bt(500))},null,r);else if(u=="workspaceContains"){let c=async()=>{let d=y.workspaceFolders.map(g=>O.parse(g.uri).fsPath);for(let g of d)for(let f of l[1].split(/\s+/))if(await A2(g,f))return await s(),!0;return!1};if(y.onDidChangeWorkspaceFolders(c,null,r),await c())return}else if(u=="onFileSystem"){for(let c of y.documents)if(O.parse(c.uri).scheme==l[1]){await s();return}y.onDidOpenTextDocument(c=>{O.parse(c.uri).scheme==l[1]&&s()},null,r)}else k.showMessage(`Unsupported event ${a} of ${e}`,"error")}}createExtension(e,t,i){let r=t.name,o=!1,s,a=Ie.default.join(e,t.main||"index.js"),l,u=[],c,h={activate:()=>{if(s)return s;let g={subscriptions:u,extensionPath:e,globalState:this.memos.createMemento(`${r}|global`),workspaceState:this.memos.createMemento(`${r}|${y.rootPath}`),asAbsolutePath:f=>Ie.default.join(e,f),storagePath:Ie.default.join(this.root,`${r}-data`),logger:oee(r)};if(!l)try{let f=!(t.engines||{}).hasOwnProperty("coc");l=VV(r,a,f)}catch(f){tn.error(`Error on createExtension ${r} from ${a}`,f);return}return s=new Promise((f,p)=>{try{Promise.resolve(l.activate(g)).then(b=>{o=!0,c=b,f(b)},b=>{tn.error(`Error on active extension ${r}: ${b.message}`,b),p(b)})}catch(b){tn.error(`Error on active extension ${r}: ${b}`,b instanceof Error?b.stack:b),p(b)}}),s}};Object.defineProperties(h,{id:{get:()=>r,enumerable:!0},packageJSON:{get:()=>t,enumerable:!0},extensionPath:{get:()=>e,enumerable:!0},isActive:{get:()=>o,enumerable:!0},exports:{get:()=>{if(!o)throw new Error(`Invalid access to exports, extension "${r}" not activated`);return c},enumerable:!0}}),this.extensions.set(r,{id:r,type:i,isLocal:i==1,extension:h,directory:e,filepath:a,deactivate:()=>{if(!!o&&(s=void 0,c=void 0,o=!1,Z(u),u.splice(0,u.length),u=[],l&&l.deactivate))try{return Promise.resolve(l.deactivate()).catch(g=>{tn.error(`Error on ${r} deactivate: `,g)})}catch(g){tn.error(`Error on ${r} deactivate: `,g)}}});let{contributes:d}=t;if(d){let{configuration:g,rootPatterns:f,commands:p}=d;if(g&&g.properties){let{properties:b}=g,v={};for(let w of Object.keys(b)){let D=b[w].default;D!=null&&(v[w]=D)}y.configurations.extendsDefaults(v)}if(f&&f.length)for(let b of f)y.workspaceFolderControl.addRootPattern(b.filetype,b.patterns);if(p&&p.length)for(let b of p)oe.titles.set(b.command,b.title)}this._onDidLoadExtension.fire(h),this.activated&&this.setupActiveEvents(r,t).logError()}filterGlobalExtensions(e){let t=new Map;e.forEach(s=>{let a=this.getExtensionName(s);a&&t.set(a,s)});let i=this.loadJson(),r=[],o=[];if(i&&i.dependencies)for(let s of Object.keys(i.dependencies)){let a=i.dependencies[s];typeof a=="string"&&pt.default.existsSync(Ie.default.join(this.modulesFolder,s,"package.json"))&&(o.push(s),/^https?:/.test(a)&&r.push(a))}for(let s of t.keys()){if(this.disabled.has(s)||this.extensions.has(s)){t.delete(s);continue}(/^https?:/.test(s)&&r.some(a=>a.startsWith(s))||o.includes(s))&&t.delete(s)}return Array.from(t.values())}getExtensionName(e){return/^https?:/.test(e)||!e.includes("@")?e:e.replace(/@[\d.]+$/,"")}get modulesFolder(){return Ie.default.join(this.root,global.__TEST__?"":"node_modules")}canActivate(e){return!this.disabled.has(e)&&this.extensions.has(e)}async unloadExtension(e){this.extensions.get(e)&&(await this.deactivate(e),this.extensions.delete(e),this._onDidUnloadExtension.fire(e))}checkDirectory(e){try{let t=Ie.default.join(e,"package.json");if(!pt.default.existsSync(t))throw new Error("package.json not found");let i=JSON.parse(pt.default.readFileSync(t,"utf8")),{name:r,engines:o,main:s}=i;if(!r||!o)throw new Error("can't find name & engines in package.json");if(!o||!_t(o))throw new Error(`invalid engines in ${t}`);if(s&&!pt.default.existsSync(Ie.default.join(e,s)))throw new Error(`main file ${s} not found, you may need to build the project.`);let a=Object.keys(o);if(!a.includes("coc")&&!a.includes("vscode"))throw new Error("Engines in package.json doesn't have coc or vscode");if(a.includes("coc")){let l=o.coc.replace(/^\^/,">=");if(!nee.default.satisfies(y.version,l))throw new Error(`Please update coc.nvim, ${i.name} requires coc.nvim ${o.coc}`)}return!0}catch(t){return t}}dispose(){Z(this.disposables)}},ye=new q_});var lee,xze,G0e,pD,uee=_(()=>{"use strict";lee=C(H());we();le();Je();xze=q()("sources-keywords"),G0e=10*1024,pD=class{constructor(e){this.doc=e;this._words=new Set;this._gitIgnored=!1;this.parse();let t=O.parse(e.uri);t.scheme==="file"&&j2(t.fsPath).then(i=>{this._gitIgnored=i})}get bufnr(){return this.doc.bufnr}get gitIgnored(){return this._gitIgnored}get words(){return this._words}parse(){if(!this.doc.attached||E.completing)return;let{textDocument:e}=this.doc,{version:t,lineCount:i}=e;if(this.version===t||E.insertMode&&this.lineCount==i&&e.length>G0e)return;this.cancel();let r=this.tokenSource=new lee.CancellationTokenSource;this.doc.matchWords(r.token).then(o=>{o!=null&&(this._words=o,this.lineCount=i,this.version=t)})}cancel(){this.tokenSource&&(this.tokenSource.cancel(),this.tokenSource=null)}onChange(e){e.contentChanges.length!=0&&this.parse()}dispose(){this.cancel(),this._words.clear()}}});var Fze,dr,Eh=_(()=>{"use strict";Ir();Pe();V();Fze=q()("sources-source"),dr=class{constructor(e){this._disabled=!1;this.nvim=y.nvim,this.name=e.name,this.filepath=e.filepath||"",this.sourceType=e.sourceType||0,this.isSnippet=!!e.isSnippet,this.defaults=e}get priority(){return this.getConfig("priority",1)}get triggerOnly(){let e=this.defaults.triggerOnly;return typeof e=="boolean"?e:!this.triggerCharacters&&!this.triggerPatterns?!1:Array.isArray(this.triggerPatterns)&&this.triggerPatterns.length!=0}get triggerCharacters(){return this.getConfig("triggerCharacters",null)}get optionalFns(){return this.defaults.optionalFns||[]}get triggerPatterns(){let e=this.getConfig("triggerPatterns",null);return!e||e.length==0?null:e.map(t=>typeof t=="string"?new RegExp(t+"$"):t)}get shortcut(){let e=this.getConfig("shortcut","");return e||this.name.slice(0,3)}get enable(){return this._disabled?!1:this.getConfig("enable",!0)}get filetypes(){return this.getConfig("filetypes",null)}get disableSyntaxes(){return this.getConfig("disableSyntaxes",[])}getConfig(e,t){let i=y.getConfiguration(`coc.source.${this.name}`);return t=this.defaults.hasOwnProperty(e)?this.defaults[e]:t,i.get(e,t)}toggle(){this._disabled=!this._disabled}get firstMatch(){return this.getConfig("firstMatch",!0)}get menu(){let{shortcut:e}=this;return e?`[${e}]`:""}fixStartcol(e,t){let{col:i,input:r,line:o,bufnr:s}=e,a=et(o,0,i),l=y.getDocument(s);if(!l)return i;let{chars:u}=l;for(let c=a.length-1;c>=0;c--){let h=a[c];if(!u.isKeywordChar(h)&&!t.includes(h))break;r=`${h}${r}`,i=i-1}return e.col=i,e.input=r,i}async shouldComplete(e){let{disableSyntaxes:t}=this;if(e.synname&&t&&t.length){let r=(e.synname||"").toLowerCase();if(t.findIndex(o=>r.includes(o.toLowerCase()))!==-1)return!1}let i=this.defaults.shouldComplete;return typeof i=="function"?await Promise.resolve(i.call(this,e)):!0}async refresh(){let e=this.defaults.refresh;typeof e=="function"&&await Promise.resolve(e.call(this))}async onCompleteDone(e,t){let i=this.defaults.onCompleteDone;typeof i=="function"&&await Promise.resolve(i.call(this,e,t))}async doComplete(e,t){let i=this.defaults.doComplete;return typeof i=="function"?await Promise.resolve(i.call(this,e,t)):null}}});function K0e(n,e){let t=e[0];if(t.textEdit==null)return;let i=Gt.InsertReplaceEdit.is(t.textEdit)?t.textEdit.replace:t.textEdit.range,{character:r}=i.start;for(let o=1;of)u=h.slice(f,c.start.character)+u;else{let p=h.slice(c.start.character,f);p.length&&u.startsWith(p)&&(u=u.slice(p.length))}if(f=Ui(h,g-1),c.end.character>f){let p=h.slice(f,c.end.character);u.endsWith(p)&&(u=u.slice(0,-p.length))}}}else s&&(u=s);if(o==Gt.InsertTextFormat.Snippet&&u&&u.includes("$")){let h=new Fa().text(u);l=h?cee(h,t):i}else l=cee(u,t)||i;return l||""}function cee(n,e,t=2){if(!n)return"";if(!e.length)return n;for(let i=t;i{"use strict";Gt=C(H());wi();iu();lD();us();Pe();ke();V();Q0e=q()("source-language"),mD=class{constructor(e,t,i,r,o,s,a,l){this.name=e;this.shortcut=t;this.provider=i;this.documentSelector=r;this.triggerCharacters=o;this.allCommitCharacters=s;this.completeConfig=l;this._enabled=!0;this.completeItems=[];this.priority=typeof a=="number"?a:l.priority}get enable(){return this._enabled}toggle(){this._enabled=!this._enabled}shouldCommit(e,t){let i=this.completeItems[e.index];return i?[...this.allCommitCharacters,...i.commitCharacters||[]].includes(t):!1}async doComplete(e,t){let{triggerCharacter:i,input:r,bufnr:o}=e;this.filetype=e.filetype,this.completeItems=[];let s=this.getTriggerKind(e),a=this.getPosition(e),l={triggerKind:s,option:e};s==Gt.CompletionTriggerKind.TriggerCharacter&&(l.triggerCharacter=i);let u=y.getAttachedDocument(o),c=await Promise.resolve(this.provider.provideCompletionItems(u.textDocument,a,t,l));if(!c||t.isCancellationRequested)return null;let h=Array.isArray(c)?c:c.items;if(!h||h.length==0)return null;this.completeItems=h;let d=K0e(e.line,h),g=Object.assign({},e),f,p=typeof c.isIncomplete=="boolean"?c.isIncomplete:!1;d==null&&r.length>0&&this.triggerCharacters.includes(e.triggerCharacter)&&(h.every(v=>{var w;return((w=v.insertText)!=null?w:v.label).startsWith(e.input)})||(d=e.col+Q(e.input))),d!=null&&(f=d{let D=this.convertVimCompleteItem(v,this.shortcut,g,f);return D.index=w,D});return{startcol:d,isIncomplete:p,items:b}}async onCompleteResolve(e,t){let{index:i}=e,r=this.completeItems[i];if(!r||e.resolved)return;if(typeof this.provider.resolveCompletionItem=="function"){let s=await Promise.resolve(this.provider.resolveCompletionItem(r,t));if(t.isCancellationRequested||!s)return;Object.assign(r,s)}if(typeof e.documentation>"u"){let{documentation:s,detail:a}=r;if(!s&&!a)return;let l=[];if(a&&!e.detailShown&&a!=e.word&&(a=a.replace(/\n\s*/g," "),a.length)){let u=/^[\w-\s.,\t\n]+$/.test(a);l.push({filetype:u?"txt":this.filetype,content:a})}s&&(typeof s=="string"?l.push({filetype:"txt",content:s}):s.value&&l.push({filetype:s.kind=="markdown"?"markdown":"txt",content:s.value})),e.resolved=!0,e.documentation=l}}async onCompleteDone(e,t){let i=this.completeItems[e.index];if(!i)return;typeof e.line=="string"&&Object.assign(t,{line:e.line});let r=y.getAttachedDocument(t.bufnr);await r.patchChange(!0);let o=Array.isArray(i.additionalTextEdits)&&i.additionalTextEdits.length>0;o&&await Ut.editsInsideSnippet(i.additionalTextEdits)&&Ut.cancel();let s=r.version,a=await this.applyTextEdit(r,o,i,e.word,t);o&&(await r.applyEdits(i.additionalTextEdits,r.version!=s,!a),a&&await Ut.selectCurrentPlaceholder()),i.command&&(oe.has(i.command.command)?await oe.execute(i.command):Q0e.warn(`Command "${i.command.command}" not registered to coc.nvim`))}async applyTextEdit(e,t,i,r,o){var w,D;let{line:s,linenr:a,colnr:l,col:u}=o,c=await k.getCursorPosition();if(c.line!=a-1)return;let{textEdit:h}=i,d=e.getline(a-1),g=Ui(s,l-1);if(!h&&i.insertText&&(h={range:Gt.Range.create(c.line,Ui(s,u),c.line,g),newText:i.insertText}),!h)return!1;let f=h.newText,p=Gt.InsertReplaceEdit.is(h)?h.replace:h.range,b=eTe(s,d,p);b&&(g+=b),p.end.characterg&&(p.end.character+=c.character-g);let v=i.insertTextFormat===Gt.InsertTextFormat.Snippet;if(v&&this.completeConfig.snippetsSupport===!1&&(v=!1,f=r),v){let S=((w=i.data)==null?void 0:w.ultisnip)===!0?{}:(D=i.data)==null?void 0:D.ultisnip;return await Ut.insertSnippet(f,!t,p,i.insertTextMode,S||void 0)}return await e.applyEdits([Gt.TextEdit.replace(p,f)],!1,c),!1}getTriggerKind(e){let{triggerCharacters:t}=this,i=t.includes(e.triggerCharacter),r=Gt.CompletionTriggerKind.Invoked;return e.triggerForInComplete?r=Gt.CompletionTriggerKind.TriggerForIncompleteCompletions:i&&(r=Gt.CompletionTriggerKind.TriggerCharacter),r}convertVimCompleteItem(e,t,i,r){var f;let{detailMaxLength:o,invalidInsertCharacters:s,detailField:a,labels:l,defaultKindText:u}=this.completeConfig,c=e.additionalTextEdits!=null&&e.additionalTextEdits.length>0,h=e.insertTextFormat===Gt.InsertTextFormat.Snippet||c,d=e.label.trim(),g={word:V0e(e,i,s),abbr:d,menu:`[${t}]`,kind:z0e(e.kind,l,u),sortText:e.sortText||null,sourceScore:e.score||null,filterText:e.filterText||d,isSnippet:h,dup:e.data&&e.data.dup==0?0:1};if(r&&(g.filterText.startsWith(r)||e.textEdit&&bo(xn(r),e.textEdit.newText)&&(g.filterText=e.textEdit.newText.replace(/\r?\n/g,"")),!e.textEdit&&!g.word.startsWith(r)&&(g.word=`${r}${g.word}`)),e&&e.detail&&a!="preview"){let p=e.detail.replace(/\n\s*/g," ");Q(p){"use strict";us();Pe();V();ke();Eh();Kze=q()("sources-source-vim"),bD=class extends dr{async callOptionalFunc(e,t){if(!this.optionalFns.includes(e))return null;let r=`coc#source#${this.name}#${e}`,o;try{o=await this.nvim.call(r,t)}catch(s){return k.showMessage(`Vim error from source ${this.name}: ${s}`,"error"),null}return o}async shouldComplete(e){return await super.shouldComplete(e)?this.optionalFns.includes("should_complete")?!!await this.callOptionalFunc("should_complete",[e]):!0:!1}async refresh(){await this.callOptionalFunc("refresh",[])}async onCompleteDone(e,t){!this.optionalFns.includes("on_complete")||await this.callOptionalFunc("on_complete",[e])}onEnter(e){if(!this.optionalFns.includes("on_enter"))return;let t=y.getDocument(e);if(!t)return;let{filetypes:i}=this;i&&!i.includes(t.filetype)||this.callOptionalFunc("on_enter",[{bufnr:e,uri:t.uri,languageId:t.filetype}]).logError()}async doComplete(e,t){let{col:i,input:r,line:o,colnr:s}=e,a=await this.callOptionalFunc("get_startcol",[e]);if(t.isCancellationRequested)return;if(a){if(a<0)return null;a=Number(a),(isNaN(a)||a<0)&&(a=i),a!==i&&(r=et(o,a,s-1),e=Object.assign({},e,{col:a,changed:i-a,input:r}))}let l=await this.nvim.callAsync("coc#util#do_complete",[this.name,e]);if(!l||l.length==0||t.isCancellationRequested)return null;if(this.firstMatch&&r.length){let c=r[0];l=l.filter(h=>{let d=h.filterText?h.filterText[0]:h.word[0];return Xf(c,d)})}l=l.map(c=>{if(typeof c=="string")return{word:c,menu:this.menu,isSnippet:this.isSnippet};let h=c.menu?c.menu+" ":"";return c.menu=`${h}${this.menu}`,c.isSnippet=this.isSnippet,delete c.user_data,c});let u={items:l};return a&&(u.startcol=a),u}}});var fee={};xs(fee,{default:()=>yD,regist:()=>tTe});function tTe(n,e){return n.set("around",new yD(e)),gee.Disposable.create(()=>{n.delete("around")})}var gee,n5e,yD,pee=_(()=>{"use strict";gee=C(H());z();us();Eh();n5e=q()("sources-around"),yD=class extends dr{constructor(e){super({name:"around",filepath:__filename});this.keywords=e}async filterWords(e,t,i,r){let o=!1,{input:s}=t,a=t.word,l=s[0],u=s.length>1,c=t.input.length,h=l.charCodeAt(0),d=h>=97&&h<=122,g=u?xn(s):[],f=!0,p=!0,b=Date.now();for(let v of e){let w=v.length;if(w15){if(await Vr(),i.isCancellationRequested)return;b=Date.now()}let D=d?v[0].toLowerCase():v[0];if(u){if(D.charCodeAt(0)===h&&bo(g,v)&&(r.push(v),r.length==100)){o=!0;break}}else if(D.charCodeAt(0)===h&&(r.push(v),r.length==100)){o=!0;break}}return o}async doComplete(e,t){let{bufnr:i,input:r}=e;if(r.length===0||(await Vr(),t.isCancellationRequested))return null;let o=this.keywords.getItem(i),s=o==null?void 0:o.words;if(!s)return null;let a=[],l=await this.filterWords(s,e,t,a);return t.isCancellationRequested?null:{isIncomplete:l,items:a.map(u=>({word:u,menu:this.menu}))}}}});var bee={};xs(bee,{default:()=>vD,regist:()=>iTe});function iTe(n,e){return n.set("buffer",new vD(e)),mee.Disposable.create(()=>{n.delete("buffer")})}var mee,l5e,vD,yee=_(()=>{"use strict";mee=C(H());z();us();Eh();l5e=q()("sources-buffer"),vD=class extends dr{constructor(e){super({name:"buffer",filepath:__filename});this.keywords=e}get ignoreGitignore(){return this.getConfig("ignoreGitignore",!0)}async getWords(e,t,i,r){let{ignoreGitignore:o}=this,s=!1,a=t.input[0],l=t.input.length,u=l>1,c=a.charCodeAt(0),h=c>=97&&c<=122,d=u?xn(t.input):[],g=Date.now();for(let f of this.keywords.items){if(r.size==100)break;if(!(f.bufnr===e||o&&f.gitIgnored))for(let p of f.words){if(Date.now()-g>15){if(await Vr(),i.isCancellationRequested)return;g=Date.now()}if(p.length({word:a,menu:this.menu}))}}}});var xee={};xs(xee,{default:()=>DD,regist:()=>oTe});function oTe(n){return n.set("file",new DD),Dee.Disposable.create(()=>{n.delete("file")})}var wD,vee,Tn,wee,Dee,nTe,rTe,DD,Cee=_(()=>{"use strict";wD=C(require("fs")),vee=C(Vn()),Tn=C(require("path")),wee=C(require("util")),Dee=C(H());Eh();Je();Pe();ac();V();nTe=q()("sources-file"),rTe=/(?:\.{0,2}|~|\$HOME|([\w]+)|[a-zA-Z]:|)(\/|\\+)(?:[\u4E00-\u9FA5\u00A0-\u024F\w .@()-]+(\/|\\+))*(?:[\u4E00-\u9FA5\u00A0-\u024F\w .@()-])*$/,DD=class extends dr{constructor(){super({name:"file",filepath:__filename})}get triggerCharacters(){let e=this.getConfig("triggerCharacters",[]);return Xi?e:e.filter(t=>t!="\\")}resolveEnvVariables(e){let t=e;return t=t.replace(/%([^%]+)%/g,(i,r)=>process.env[r]),t=t.replace(/\$([A-Z_]+[A-Z0-9_]*)|\${([A-Z0-9_]*)}/gi,(i,r,o)=>process.env[r||o]),t}getPathOption(e){let{line:t,colnr:i}=e,r=et(t,0,i-1);if(r=this.resolveEnvVariables(r),!r||r.endsWith("//"))return null;let o=r.match(rTe);if(o&&o.length){let s=y.expand(o[0]),a=o[0].match(/[^/\\]*$/)[0];return{pathstr:s,part:o[1],startcol:i-a.length-1,input:a}}return null}async getFileItem(e,t){let i=Tn.default.join(e,t),r=await Ht(i);if(r){let o=r.isDirectory()?t+"/":t;return{word:t,abbr:o}}return null}filterFiles(e){let t=this.getConfig("ignoreHidden",!0),i=this.getConfig("ignorePatterns",[]);return e.filter(r=>{if(r==null||t&&r.startsWith("."))return!1;for(let o of i)if((0,vee.default)(r,o,{dot:!0}))return!1;return!0})}async getItemsFromRoot(e,t){let i=[],r=/[\\/]$/.test(e)?e:Tn.default.dirname(e),o=Tn.default.isAbsolute(e)?r:Tn.default.join(t,r);try{let s=await Ht(o);if(s&&s.isDirectory()){let a=await wee.default.promisify(wD.default.readdir)(o);a=this.filterFiles(a);let l=await Promise.all(a.map(u=>this.getFileItem(o,u)));i=i.concat(l)}return i=i.filter(a=>a!=null),i}catch(s){return nTe.error("Error on list files:",s),i}}get trimSameExts(){return this.getConfig("trimSameExts",[])}async doComplete(e){let{col:t,filepath:i}=e,r=this.getPathOption(e);if(!r)return null;let{pathstr:o,part:s,startcol:a,input:l}=r;if(av.word[0]===b)),{items:f.map(v=>{let w=Tn.default.extname(v.word);return v.word=p&&w===h?v.word.replace(h,""):v.word,{word:`${u}${v.word}`,abbr:`${u}${v.abbr}`,menu:this.menu}})}}}});var Eee={};xs(Eee,{Sources:()=>Y_,default:()=>Lt});var Tee,xD,kee,rt,See,Y_,Lt,Ul=_(()=>{"use strict";Tee=C(require("fs")),xD=C(require("path")),kee=C(require("util")),rt=C(H());le();yo();Ir();z();Qo();Je();Pe();uee();ke();V();Eh();hee();dee();See=q()("sources"),Y_=class{constructor(){this.sourceMap=new Map;this.disposables=[];this.remoteSourcePaths=[]}init(){this.loadCompleteConfig(),this.keywords=y.registerBufferSync(e=>new pD(e)),y.onDidChangeConfiguration(e=>{e.affectsConfiguration("suggest")&&this.loadCompleteConfig()},null,this.disposables),this.createNativeSources(),this.createRemoteSources(),E.on("InsertLeave",()=>{for(let e of this.keywords.items)e.parse()},this,this.disposables),E.on("BufEnter",this.onDocumentEnter,this,this.disposables),y.onDidRuntimePathChange(e=>{for(let t of e)t&&this.createVimSources(t)},null,this.disposables)}loadCompleteConfig(){let e=y.getConfiguration("suggest"),t=e.get("completionItemKindLabels",{}),i=new Map([[rt.CompletionItemKind.Text,t.text||"v"],[rt.CompletionItemKind.Method,t.method||"f"],[rt.CompletionItemKind.Function,t.function||"f"],[rt.CompletionItemKind.Constructor,typeof t.constructor=="function"?"f":t["constructor"]],[rt.CompletionItemKind.Field,t.field||"m"],[rt.CompletionItemKind.Variable,t.variable||"v"],[rt.CompletionItemKind.Class,t.class||"C"],[rt.CompletionItemKind.Interface,t.interface||"I"],[rt.CompletionItemKind.Module,t.module||"M"],[rt.CompletionItemKind.Property,t.property||"m"],[rt.CompletionItemKind.Unit,t.unit||"U"],[rt.CompletionItemKind.Value,t.value||"v"],[rt.CompletionItemKind.Enum,t.enum||"E"],[rt.CompletionItemKind.Keyword,t.keyword||"k"],[rt.CompletionItemKind.Snippet,t.snippet||"S"],[rt.CompletionItemKind.Color,t.color||"v"],[rt.CompletionItemKind.File,t.file||"F"],[rt.CompletionItemKind.Reference,t.reference||"r"],[rt.CompletionItemKind.Folder,t.folder||"F"],[rt.CompletionItemKind.EnumMember,t.enumMember||"m"],[rt.CompletionItemKind.Constant,t.constant||"v"],[rt.CompletionItemKind.Struct,t.struct||"S"],[rt.CompletionItemKind.Event,t.event||"E"],[rt.CompletionItemKind.Operator,t.operator||"O"],[rt.CompletionItemKind.TypeParameter,t.typeParameter||"T"]]),r=e.get("floatEnable",!0),o=e.get("detailField","preview");o=="preview"&&(!r||!y.floatSupported)&&(o="menu"),this.completeConfig=Object.assign(this.completeConfig||{},{labels:i,floatEnable:r,detailField:o,defaultKindText:t.default||"",priority:e.get("languageSourcePriority",99),snippetsSupport:e.get("snippetsSupport",!0),detailMaxLength:e.get("detailMaxLength",100),invalidInsertCharacters:e.get("invalidInsertCharacters",["(","<","{","[","\r",` -`])})}get nvim(){return y.nvim}createNativeSources(){this.disposables.push((pee(),Ha(fee)).regist(this.sourceMap,this.keywords)),this.disposables.push((yee(),Ha(bee)).regist(this.sourceMap,this.keywords)),this.disposables.push((Cee(),Ha(xee)).regist(this.sourceMap))}createLanguageSource(e,t,i,r,o,s,a){let l=new mD(e,t,r,i,o||[],a||[],s,this.completeConfig);return See.debug("created service source",e),this.sourceMap.set(e,l),{dispose:()=>{this.sourceMap.delete(e)}}}async createVimSourceExtension(e,t){let i=xD.default.basename(t,".vim");try{await e.command(`source ${t}`);let r=await e.call("coc#util#remote_fns",i);for(let c of["init","complete"])if(!r.includes(c))return k.showMessage(`${c} not found for source ${i}`,"error"),null;let o=await e.call(`coc#source#${i}#init`,[]),s={name:`coc-source-${i}`,engines:{coc:">= 0.0.1"},activationEvents:o.filetypes?o.filetypes.map(c=>`onLanguage:${c}`):["*"],contributes:{configuration:{properties:{[`coc.source.${i}.enable`]:{type:"boolean",default:!0},[`coc.source.${i}.firstMatch`]:{type:"boolean",default:!!o.firstMatch},[`coc.source.${i}.triggerCharacters`]:{type:"number",default:o.triggerCharacters||[]},[`coc.source.${i}.priority`]:{type:"number",default:o.priority||9},[`coc.source.${i}.shortcut`]:{type:"string",default:o.shortcut||i.slice(0,3).toUpperCase(),description:"Shortcut text shown in complete menu."},[`coc.source.${i}.disableSyntaxes`]:{type:"array",default:[],items:{type:"string"}},[`coc.source.${i}.filetypes`]:{type:"array",default:o.filetypes||null,description:"Enabled filetypes.",items:{type:"string"}}}}}},a=new bD({name:i,filepath:t,sourceType:1,optionalFns:r.filter(c=>!["init","complete"].includes(c))}),l=!1,u={id:s.name,packageJSON:s,exports:void 0,extensionPath:t,activate:()=>(l=!0,this.addSource(a),Promise.resolve())};Object.defineProperty(u,"isActive",{get:()=>l}),ye.registerExtension(u,()=>{l=!1,this.removeSource(a)})}catch(r){k.showMessage(`Error on create vim source ${i}: ${r}`,"error")}}createRemoteSources(){let{runtimepath:e}=y.env,t=e.split(",");for(let i of t)this.createVimSources(i).logError()}async createVimSources(e){if(this.remoteSourcePaths.includes(e))return;this.remoteSourcePaths.push(e);let t=xD.default.join(e,"autoload/coc/source"),i=await Ht(t);if(i&&i.isDirectory()){let r=await kee.default.promisify(Tee.default.readdir)(t);r=r.filter(s=>s.endsWith(".vim"));let o=r.map(s=>xD.default.join(t,s));if(o.length==0)return;await Promise.all(o.map(s=>this.createVimSourceExtension(this.nvim,s)))}}get names(){return Array.from(this.sourceMap.keys())}get sources(){return Array.from(this.sourceMap.values())}has(e){return this.names.findIndex(t=>t==e)!=-1}getSource(e){return e&&this.sourceMap.get(e)||null}shouldCommit(e,t){if(!e||!e.source)return!1;let i=this.getSource(e.source);return i&&i.sourceType==2&&typeof i.shouldCommit=="function"?i.shouldCommit(e,t):!1}getCompleteSources(e){let{filetype:t,disabled:i}=e,r=et(e.line,0,e.colnr-1),o=e.input==""&&!!e.triggerCharacter,s=tb(e.filepath,e.bufnr,"",y.env.isCygwin);return i=Array.isArray(i)?i:[],o?this.getTriggerSources(r,t,s,i):this.getNormalSources(e.filetype,s,i)}getNormalSources(e,t,i=[]){let r=e.split(".");return this.sources.filter(o=>{let{filetypes:s,triggerOnly:a,name:l,documentSelector:u,enable:c}=o;return!(i.includes(l)||!c||a||s&&!hk(s,r)||u&&r.every(h=>y.match(u,{uri:t,languageId:h})==0))})}checkTrigger(e,t,i){let{triggerCharacters:r,triggerPatterns:o}=e;return!!((r==null?void 0:r.length)>0&&r.includes(i)||(o==null?void 0:o.length)>0&&o.findIndex(s=>s.test(t))!==-1)}shouldTrigger(e,t,i){return this.getTriggerSources(e,t,i).length>0}getTriggerSources(e,t,i,r=[]){if(!e)return[];let o=e[e.length-1],s=t.split(".");return this.sources.filter(a=>{let{filetypes:l,enable:u,documentSelector:c,name:h}=a;return r.includes(h)||!u||l&&!hk(l,s)||c&&s.every(d=>y.match(c,{uri:i,languageId:d})==0)?!1:this.checkTrigger(a,e,o)})}addSource(e){let{name:t}=e;return this.names.includes(t)&&See.warn(`Recreate source ${t}`),this.sourceMap.set(t,e),rt.Disposable.create(()=>{this.sourceMap.delete(t)})}removeSource(e){let t=typeof e=="string"?e:e.name;this.sourceMap.delete(t)}async refresh(e){for(let t of this.sources)(!e||t.name==e)&&typeof t.refresh=="function"&&await Promise.resolve(t.refresh())}toggleSource(e){if(!e)return;let t=this.getSource(e);!t||typeof t.toggle=="function"&&t.toggle()}sourceStats(){let e=[],t=this.sources;for(let i of t)e.push({name:i.name,priority:i.priority,triggerCharacters:i.triggerCharacters||[],shortcut:i.shortcut||"",filetypes:i.filetypes||[],filepath:i.filepath||"",type:i.sourceType==0?"native":i.sourceType==1?"remote":"service",disabled:!i.enable});return e}onDocumentEnter(e){let{sources:t}=this;for(let i of t)i.enable&&typeof i.onEnter=="function"&&i.onEnter(e)}createSource(e){if(!e.name||!e.doComplete)throw new Error("name and doComplete required for createSource");let t=new dr(Object.assign({sourceType:2},e));return this.addSource(t)}dispose(){Z(this.disposables)}},Lt=new Y_});var ko,B7e,Pee,A,Ce=_(()=>{"use strict";ko=C(H());eu();zZ();tJ();nJ();oJ();sJ();lJ();cJ();dJ();fJ();mJ();yJ();wJ();xJ();SJ();kJ();PJ();RJ();FJ();jJ();OJ();NJ();HJ();YJ();ZJ();Jk();z();B7e=q()("languages"),Pee=class{constructor(){this._onDidSemanticTokensRefresh=new ko.Emitter;this._onDidInlayHintRefresh=new ko.Emitter;this.onDidSemanticTokensRefresh=this._onDidSemanticTokensRefresh.event;this.onDidInlayHintRefresh=this._onDidInlayHintRefresh.event;this.onTypeFormatManager=new Vy;this.documentLinkManager=new Jy;this.documentColorManager=new Wy;this.foldingRangeManager=new Xy;this.renameManager=new tv;this.formatManager=new Uy;this.codeActionManager=new Ny;this.workspaceSymbolsManager=new av;this.formatRangeManager=new Gy;this.hoverManager=new Qy;this.signatureManager=new ov;this.documentSymbolManager=new $y;this.documentHighlightManager=new Zy;this.definitionManager=new Yy;this.declarationManager=new Hy;this.typeDefinitionManager=new sv;this.referenceManager=new ev;this.implementationManager=new Ky;this.codeLensManager=new By;this.selectionRangeManager=new iv;this.callHierarchyManager=new Oy;this.semanticTokensManager=new nv;this.semanticTokensRangeManager=new rv;this.linkedEditingManager=new zy;this.inlayHintManager=new cv}hasFormatProvider(e){return!!(this.formatManager.hasProvider(e)||this.formatRangeManager.hasProvider(e))}registerOnTypeFormattingEditProvider(e,t,i){return this.onTypeFormatManager.register(e,t,i)}registerCompletionItemProvider(e,t,i,r,o=[],s,a){return i=typeof i=="string"?[{language:i}]:i,(Ul(),Ha(Eee)).default.createLanguageSource(e,t,i,r,o,s,a)}registerCodeActionProvider(e,t,i,r){return this.codeActionManager.register(e,t,i,r)}registerHoverProvider(e,t){return this.hoverManager.register(e,t)}registerSelectionRangeProvider(e,t){return this.selectionRangeManager.register(e,t)}registerSignatureHelpProvider(e,t,i){return this.signatureManager.register(e,t,i)}registerDocumentSymbolProvider(e,t,i){return this.documentSymbolManager.register(e,t,i)}registerFoldingRangeProvider(e,t){return this.foldingRangeManager.register(e,t)}registerDocumentHighlightProvider(e,t){return this.documentHighlightManager.register(e,t)}registerCodeLensProvider(e,t){return this.codeLensManager.register(e,t)}registerDocumentLinkProvider(e,t){return this.documentLinkManager.register(e,t)}registerDocumentColorProvider(e,t){return this.documentColorManager.register(e,t)}registerDefinitionProvider(e,t){return this.definitionManager.register(e,t)}registerDeclarationProvider(e,t){return this.declarationManager.register(e,t)}registerTypeDefinitionProvider(e,t){return this.typeDefinitionManager.register(e,t)}registerImplementationProvider(e,t){return this.implementationManager.register(e,t)}registerReferencesProvider(e,t){return this.referenceManager.register(e,t)}registerRenameProvider(e,t){return this.renameManager.register(e,t)}registerWorkspaceSymbolProvider(e){return arguments.length>1&&typeof arguments[1].provideWorkspaceSymbols=="function"&&(e=arguments[1]),this.workspaceSymbolsManager.register(e)}registerDocumentFormatProvider(e,t,i=0){return this.formatManager.register(e,t,i)}registerDocumentRangeFormatProvider(e,t,i=0){return this.formatRangeManager.register(e,t,i)}registerCallHierarchyProvider(e,t){return this.callHierarchyManager.register(e,t)}registerDocumentSemanticTokensProvider(e,t,i){let r=setTimeout(()=>{this._onDidSemanticTokensRefresh.fire(e)},500),o=this.semanticTokensManager.register(e,t,i,()=>{clearTimeout(r),this._onDidSemanticTokensRefresh.fire(e)});return ko.Disposable.create(()=>{clearTimeout(r),o.dispose()})}registerDocumentRangeSemanticTokensProvider(e,t,i){return this._onDidSemanticTokensRefresh.fire(e),this.semanticTokensRangeManager.register(e,t,i)}registerInlayHintsProvider(e,t){let i=[];return i.push(this.inlayHintManager.register(e,t)),this._onDidInlayHintRefresh.fire(e),typeof t.onDidChangeInlayHints=="function"&&t.onDidChangeInlayHints(()=>{this._onDidInlayHintRefresh.fire(e)},null,i),ko.Disposable.create(()=>{Z(i),this._onDidInlayHintRefresh.fire(e)})}registerLinkedEditingRangeProvider(e,t){return this.linkedEditingManager.register(e,t)}shouldTriggerSignatureHelp(e,t){return this.signatureManager.shouldTrigger(e,t)}async getHover(e,t,i){return await this.hoverManager.provideHover(e,t,i)}async getSignatureHelp(e,t,i,r){return await this.signatureManager.provideSignatureHelp(e,t,i,r)}async getDefinition(e,t,i){return this.definitionManager.hasProvider(e)?await this.definitionManager.provideDefinition(e,t,i):null}async getDefinitionLinks(e,t,i){return this.definitionManager.hasProvider(e)?await this.definitionManager.provideDefinitionLinks(e,t,i):null}async getDeclaration(e,t,i){return this.declarationManager.hasProvider(e)?await this.declarationManager.provideDeclaration(e,t,i):null}async getTypeDefinition(e,t,i){return this.typeDefinitionManager.hasProvider(e)?await this.typeDefinitionManager.provideTypeDefinition(e,t,i):null}async getImplementation(e,t,i){return this.implementationManager.hasProvider(e)?await this.implementationManager.provideReferences(e,t,i):null}async getReferences(e,t,i,r){return this.referenceManager.hasProvider(e)?await this.referenceManager.provideReferences(e,i,t,r):null}async getDocumentSymbol(e,t){return await this.documentSymbolManager.provideDocumentSymbols(e,t)}getDocumentSymbolMetadata(e){return this.documentSymbolManager.getMetaData(e)}async getSelectionRanges(e,t,i){return await this.selectionRangeManager.provideSelectionRanges(e,t,i)}async getWorkspaceSymbols(e,t){return e=e||"",await this.workspaceSymbolsManager.provideWorkspaceSymbols(e,t)}async resolveWorkspaceSymbol(e,t){return await this.workspaceSymbolsManager.resolveWorkspaceSymbol(e,t)}async prepareRename(e,t,i){return await this.renameManager.prepareRename(e,t,i)}async provideRenameEdits(e,t,i,r){return await this.renameManager.provideRenameEdits(e,t,i,r)}async provideDocumentFormattingEdits(e,t,i){if(!this.formatManager.hasProvider(e)){if(!this.formatRangeManager.hasProvider(e))return null;let o=e.positionAt(e.getText().length),s=ko.Range.create(ko.Position.create(0,0),o);return await this.provideDocumentRangeFormattingEdits(e,s,t,i)}return await this.formatManager.provideDocumentFormattingEdits(e,t,i)}async provideDocumentRangeFormattingEdits(e,t,i,r){return this.formatRangeManager.hasProvider(e)?await this.formatRangeManager.provideDocumentRangeFormattingEdits(e,t,i,r):null}async getCodeActions(e,t,i,r){return await this.codeActionManager.provideCodeActions(e,t,i,r)}async getDocumentHighLight(e,t,i){return await this.documentHighlightManager.provideDocumentHighlights(e,t,i)}async getDocumentLinks(e,t){return this.documentLinkManager.hasProvider(e)?await this.documentLinkManager.provideDocumentLinks(e,t)||[]:null}async resolveDocumentLink(e,t){return await this.documentLinkManager.resolveDocumentLink(e,t)}async provideDocumentColors(e,t){return await this.documentColorManager.provideDocumentColors(e,t)}async provideFoldingRanges(e,t,i){return this.foldingRangeManager.hasProvider(e)?await this.foldingRangeManager.provideFoldingRanges(e,t,i):null}async provideColorPresentations(e,t,i){return await this.documentColorManager.provideColorPresentations(e,t,i)}async getCodeLens(e,t){return await this.codeLensManager.provideCodeLenses(e,t)}async resolveCodeLens(e,t){return e.command!=null?e:await this.codeLensManager.resolveCodeLens(e,t)}async resolveCodeAction(e,t){return await this.codeActionManager.resolveCodeAction(e,t)}async provideDocumentOnTypeEdits(e,t,i,r){return this.onTypeFormatManager.onCharacterType(e,t,i,r)}canFormatOnType(e,t){return this.onTypeFormatManager.getProvider(t,e)!=null}async prepareCallHierarchy(e,t,i){return this.callHierarchyManager.prepareCallHierarchy(e,t,i)}async provideIncomingCalls(e,t,i){return this.callHierarchyManager.provideCallHierarchyIncomingCalls(e,t,i)}async provideOutgoingCalls(e,t,i){return this.callHierarchyManager.provideCallHierarchyOutgoingCalls(e,t,i)}getLegend(e,t){return t?this.semanticTokensRangeManager.getLegend(e):this.semanticTokensManager.getLegend(e)}hasSemanticTokensEdits(e){return this.semanticTokensManager.hasSemanticTokensEdits(e)}async provideDocumentSemanticTokens(e,t){return this.semanticTokensManager.provideDocumentSemanticTokens(e,t)}async provideDocumentSemanticTokensEdits(e,t,i){return this.semanticTokensManager.provideDocumentSemanticTokensEdits(e,t,i)}async provideDocumentRangeSemanticTokens(e,t,i){return this.semanticTokensRangeManager.provideDocumentRangeSemanticTokens(e,t,i)}async provideInlayHints(e,t,i){return this.inlayHintManager.provideInlayHints(e,t,i)}async resolveInlayHint(e,t){return this.inlayHintManager.resolveInlayHint(e,t)}hasLinkedEditing(e){return this.linkedEditingManager.hasProvider(e)}async provideLinkedEdits(e,t,i){return this.linkedEditingManager.provideLinkedEditingRanges(e,t,i)}createDiagnosticCollection(e){return Ft.create(e)}hasProvider(e,t){switch(e){case"formatOnType":return this.onTypeFormatManager.hasProvider(t);case"rename":return this.renameManager.hasProvider(t);case"onTypeEdit":return this.onTypeFormatManager.hasProvider(t);case"documentLink":return this.documentLinkManager.hasProvider(t);case"documentColor":return this.documentColorManager.hasProvider(t);case"foldingRange":return this.foldingRangeManager.hasProvider(t);case"format":return this.formatManager.hasProvider(t)||this.formatRangeManager.hasProvider(t);case"codeAction":return this.codeActionManager.hasProvider(t);case"workspaceSymbols":return this.workspaceSymbolsManager.hasProvider();case"formatRange":return this.formatRangeManager.hasProvider(t);case"hover":return this.hoverManager.hasProvider(t);case"signature":return this.signatureManager.hasProvider(t);case"documentSymbol":return this.documentSymbolManager.hasProvider(t);case"documentHighlight":return this.documentHighlightManager.hasProvider(t);case"definition":return this.definitionManager.hasProvider(t);case"declaration":return this.declarationManager.hasProvider(t);case"typeDefinition":return this.typeDefinitionManager.hasProvider(t);case"reference":return this.referenceManager.hasProvider(t);case"implementation":return this.implementationManager.hasProvider(t);case"codeLens":return this.codeLensManager.hasProvider(t);case"selectionRange":return this.selectionRangeManager.hasProvider(t);case"callHierarchy":return this.callHierarchyManager.hasProvider(t);case"semanticTokens":return this.semanticTokensManager.hasProvider(t);case"semanticTokensRange":return this.semanticTokensRangeManager.hasProvider(t);case"linkedEditing":return this.linkedEditingManager.hasProvider(t);case"inlayHint":return this.inlayHintManager.hasProvider(t);default:throw new Error(`Invalid provider name: ${e}`)}}},A=new Pee});var _ee,J7e,CD,Ree=_(()=>{"use strict";_ee=C(H());le();z();J7e=q()("model-dialog"),CD=class{constructor(e,t){this.nvim=e;this.config=t;this.disposables=[];this._onDidClose=new _ee.Emitter;this.onDidClose=this._onDidClose.event;E.on("BufWinLeave",i=>{i==this.bufnr&&(this.dispose(),t.callback&&t.callback(-1))},null,this.disposables),E.on("FloatBtnClick",(i,r)=>{if(i==this.bufnr){this.dispose();let o=t==null?void 0:t.buttons.filter(s=>s.disabled!=!0);t.callback&&t.callback(o[r].index)}},null,this.disposables)}get lines(){return[...this.config.content.split(/\r?\n/)]}async show(e){let{nvim:t}=this,{title:i,close:r,highlights:o,buttons:s}=this.config,a=this.config.borderhighlight||e.floatBorderHighlight,l=this.config.highlight||e.floatHighlight,u={maxwidth:e.maxWidth||80};i&&(u.title=i),(r||typeof r>"u")&&(u.close=1),e.maxHeight&&(u.maxHeight=e.maxHeight),e.maxWidth&&(u.maxWidth=e.maxWidth),l&&(u.highlight=l),o&&(u.highlights=o),a&&(u.borderhighlight=[a]),s&&(u.buttons=s.filter(h=>!h.disabled).map(h=>h.text)),e.rounded&&(u.rounded=1),Array.isArray(u.buttons)&&(u.getchar=1);let c=await t.call("coc#dialog#create_dialog",[this.lines,u]);if(!c)throw new Error("Unable to open dialog window.");this.bufnr=c[1],t.command("redraw",!0)}get winid(){return this.bufnr?this.nvim.call("bufwinid",[this.bufnr]):Promise.resolve(null)}dispose(){this._onDidClose.fire(),this.bufnr=void 0,Z(this.disposables),this.disposables=[]}}});var W_,K7e,ru,Z_=_(()=>{"use strict";W_=C(H());le();z();K7e=q()("model-input"),ru=class{constructor(e,t){this.nvim=e;this.disposables=[];this.accepted=!1;this._dimension=[0,0,0,0];this._onDidFinish=new W_.Emitter;this._onDidChange=new W_.Emitter;this.onDidFinish=this._onDidFinish.event;this.onDidChange=this._onDidChange.event;this._input=t,this.disposables.push(this._onDidFinish),this.disposables.push(this._onDidChange);let i;Object.defineProperty(this,"title",{set:s=>{i=s,this._winid&&e.call("coc#dialog#change_title",[this._winid,s],!0)},get:()=>i});let r=!1;Object.defineProperty(this,"loading",{set:s=>{r=s,this._winid&&e.call("coc#dialog#change_loading",[this._winid,s],!0)},get:()=>r});let o;Object.defineProperty(this,"borderhighlight",{set:s=>{o=s,this._winid&&e.call("coc#dialog#change_border_hl",[this._winid,s],!0)},get:()=>o}),E.on("BufWinLeave",s=>{s==this._bufnr&&(this._winid=void 0,this.dispose())},null,this.disposables),E.on("PromptInsert",(s,a)=>{a==this._bufnr&&(this._input=s,this.accepted=!0,this.dispose())},null,this.disposables),E.on("TextChangedI",(s,a)=>{s==this._bufnr&&(this._input=a.line,this._onDidChange.fire(a.line))},null,this.disposables)}get dimension(){let{_dimension:e}=this;return{width:e[0],height:e[1],row:e[2],col:e[3]}}get bufnr(){return this._bufnr}get winid(){return this._winid}get value(){return this._input}async show(e,t){var r;this.title=e,this.borderhighlight=(r=t.borderhighlight)!=null?r:"CocFloating",this.loading=!1;let i=await this.nvim.call("coc#dialog#create_prompt_win",[e,this._input,t]);if(!i)throw new Error("Unable to open input window");return this._bufnr=i[0],this._winid=i[1],this._dimension=i[2],!0}dispose(){this._onDidFinish.fire(this.accepted?this._input:null),this._winid&&this.nvim.call("coc#float#close",[this._winid],!0),this._winid=void 0,this._bufnr=void 0,Z(this.disposables)}}});var J_,Ia,SD=_(()=>{"use strict";J_=process.env.VIM_NODE_RPC=="1",Ia=class{constructor(e,t,i,r,o=0){this.nvim=e;this.winid=t;this.bufnr=i;this.linecount=r;this._currIndex=o}get currIndex(){return this._currIndex}get valid(){return this.nvim.call("coc#float#valid",[this.winid]).then(e=>!!e)}close(){this.nvim.call("coc#float#close",[this.winid],!0)}refreshScrollbar(){J_||this.nvim.call("coc#float#nvim_scrollbar",[this.winid],!0)}execute(e){this.nvim.call("coc#compat#execute",[this.winid,e],!0)}async scrollForward(){let{nvim:e,bufnr:t,winid:i}=this,o=await e.createBuffer(t).length,s;if(J_)s=await e.eval(`get(popup_getpos(${i}), 'lastline', 0)`);else{let a=await e.call("getwininfo",[i]);if(!a||!a.length)return;s=a[0].botline}s>=o||s==0||(e.pauseNotification(),this.setCursor(s-1),this.execute("silent! noa setl scrolloff=0"),this.execute(`normal! ${s}Gzt`),this.refreshScrollbar(),e.command("redraw",!0),e.resumeNotification(!1,!0))}async scrollBackward(){let{nvim:e,winid:t}=this,i;if(J_)i=await e.eval(`get(popup_getpos(${t}), 'firstline', 0)`);else{let r=await e.call("getwininfo",[t]);if(!r||!r.length)return;i=r[0].topline}i!=1&&(e.pauseNotification(),this.setCursor(i-1),this.execute(`normal! ${i}Gzb`),this.refreshScrollbar(),e.command("redraw",!0),e.resumeNotification(!1,!0))}setCursor(e,t=!1){let{nvim:i,bufnr:r,winid:o,linecount:s}=this;e<0?e=0:e>s-1&&(e=s-1),this._currIndex=e,i.call("coc#dialog#set_cursor",[o,r,e+1],!0),t&&(this.refreshScrollbar(),i.command("redraw",!0))}}});function ou(n){return n?typeof n.text=="string":!1}var Lee,sTe,TD,Fee=_(()=>{"use strict";Lee=C(H());le();z();Pe();SD();sTe=q()("model-menu");TD=class{constructor(e,t,i){this.nvim=e;this.config=t;this.currIndex=0;this.contentHeight=0;this.disposables=[];this.keyMappings=new Map;this.shortcutIndexes=new Set;this._disposed=!1;this._onDidClose=new Lee.Emitter;this.onDidClose=this._onDidClose.event;this.total=t.items.length,i&&i.onCancellationRequested(()=>{var r;this.win?(r=this.win)==null||r.close():(this._onDidClose.fire(-1),this.dispose())}),this.disposables.push(this._onDidClose),this.addKeymappings()}attachEvents(){E.on("InputChar",this.onInputChar.bind(this),null,this.disposables),E.on("BufWinLeave",e=>{e==this.bufnr&&(this._onDidClose.fire(-1),this.dispose())},null,this.disposables)}addKeymappings(){let{nvim:e}=this;this.addKeys(["",""],()=>{this._onDidClose.fire(-1),this.dispose()}),this.addKeys(["\r",""],()=>{this.selectCurrent()});let t=s=>{var a;!this.win||(e.pauseNotification(),this.setCursor(s+this.contentHeight),(a=this.win)==null||a.refreshScrollbar(),e.command("redraw",!0),e.resumeNotification(!1,!0))};this.addKeys("",async()=>{var s;await((s=this.win)==null?void 0:s.scrollForward())}),this.addKeys("",async()=>{var s;await((s=this.win)==null?void 0:s.scrollBackward())}),this.addKeys(["j","","",""],()=>{let s=this.currIndex==this.total-1?0:this.currIndex+1;t(s)}),this.addKeys(["k","","",""],()=>{let s=this.currIndex==0?this.total-1:this.currIndex-1;t(s)}),this.addKeys(["g"],()=>{t(0)}),this.addKeys(["G"],()=>{t(this.total-1)});let i,r,o=s=>{this.isDisabled(s)||(this._onDidClose.fire(s),this.dispose())};this.addKeys(["0","1","2","3","4","5","6","7","8","9"],s=>{i&&clearTimeout(i);let a=parseInt(s,10);if(!(isNaN(a)||a>this.total)&&!(r==null&&a==0)){if(r){let l=r*10+a;r=void 0,o(l-1);return}if(this.total<10||a*10>this.total){o(a-1);return}i=setTimeout(async()=>{o(a-1)},200),r=a}}),this.config.shortcuts&&this.addShortcuts(o)}addShortcuts(e){let{items:t}=this.config;t.map(r=>ou(r)?r.text:r).forEach((r,o)=>{if(r.length){let s=r[0];I0(s.charCodeAt(0))&&!this.keyMappings.has(s)&&(this.shortcutIndexes.add(o),this.addKeys(s,()=>{e(o)}))}})}isDisabled(e){let{items:t}=this.config,i=t[e];return!!(ou(i)&&i.disabled)}async show(e={}){let{nvim:t,shortcutIndexes:i}=this,{title:r,items:o,borderhighlight:s,position:a,content:l}=this.config,u={};r&&(u.title=r),a==="center"&&(u.relative="editor"),e.maxHeight&&(u.maxHeight=e.maxHeight),e.maxWidth&&(u.maxWidth=e.maxWidth),e.floatHighlight&&(u.highlight=e.floatHighlight),s?u.borderhighlight=[s]:e.floatBorderHighlight&&(u.borderhighlight=[e.floatBorderHighlight]),e.rounded&&(u.rounded=1),typeof l=="string"&&(u.content=l);let c=[],h=o.map((g,f)=>{let p=ou(g)?g.text:g,b=f<99?`${f+1}. `:"";return i.has(f)&&c.push({lnum:f,hlGroup:e.shortcutHighlight||"MoreMsg",colStart:Q(b),colEnd:Q(b)+1}),b+p.trim()});h.forEach((g,f)=>{let p=o[f];ou(p)&&p.disabled&&c.push({hlGroup:"CocDisabled",lnum:f,colStart:0,colEnd:Q(g)})}),c.length&&(u.highlights=c),e.confirmKey&&e.confirmKey!=""&&this.addKeys(e.confirmKey,()=>{this.selectCurrent()});let d=await t.call("coc#dialog#create_menu",[h,u]);if(!d)throw new Error("Unable to create menu window");t.command("redraw",!0),!this._disposed&&(this.win=new Ia(t,d[0],d[1],h.length+d[2],d[2]),this.bufnr=d[1],this.contentHeight=d[2],this.attachEvents(),t.call("coc#prompt#start_prompt",["menu"],!0))}selectCurrent(){if(this.isDisabled(this.currIndex)){let e=this.config.items[this.currIndex];e.disabled.reason&&this.nvim.outWriteLine(`Item disabled: ${e.disabled.reason}`);return}this._onDidClose.fire(this.currIndex),this.dispose()}get buffer(){return this.bufnr?this.nvim.createBuffer(this.bufnr):void 0}dispose(){var e;this._disposed=!0,Z(this.disposables),this.shortcutIndexes.clear(),this.keyMappings.clear(),this.nvim.call("coc#prompt#stop_prompt",["menu"],!0),(e=this.win)==null||e.close(),this.bufnr=void 0,this.win=void 0}async onInputChar(e,t){if(e!="menu"||!this.win)return;let i=this.keyMappings.get(t);i?await Promise.resolve(i(t)):sTe.warn(`Ignored key press: ${t}`)}setCursor(e){!this.win||(this.currIndex=e-this.contentHeight,this.win.setCursor(e))}addKeys(e,t){if(Array.isArray(e))for(let i of e)this.keyMappings.set(i,t);else this.keyMappings.set(e,t)}}});var c9e,su,$_=_(()=>{"use strict";le();z();c9e=q()("model-notification"),su=class{constructor(e,t,i=!0){this.nvim=e;this.config=t;this.disposables=[];this._disposed=!1;i&&(E.on("BufWinLeave",r=>{r==this.bufnr&&(this.dispose(),t.callback&&t.callback(-1))},null,this.disposables),E.on("FloatBtnClick",(r,o)=>{if(r==this.bufnr){this.dispose();let s=t==null?void 0:t.buttons.filter(a=>a.disabled!=!0);t.callback&&t.callback(s[o].index)}},null,this.disposables))}get lines(){return this.config.content?this.config.content.split(/\r?\n/):[]}async show(e){let{nvim:t}=this,{buttons:i,kind:r,title:o}=this.config,s=Object.assign({},e);if(s.kind=r!=null?r:"",o&&(s.title=o),e.broder&&(s.borderhighlight=r?`CocNotification${r[0].toUpperCase()}${r.slice(1)}`:e.highlight),Array.isArray(i)){let l=i.filter(u=>!u.disabled).map(u=>u.text);l.length&&(s.actions=l)}let a=await t.call("coc#notify#create",[this.lines,s]);if(!a)throw new Error("Unable to create notification window");this._winid=a[0],this.bufnr=a[1]}get winid(){return this._winid}dispose(){if(this._disposed)return;this._disposed=!0;let{winid:e}=this;e&&(this.nvim.call("coc#notify#close",[e],!0),this.nvim.redrawVim()),this.bufnr=void 0,this._winid=void 0,Z(this.disposables)}}});var Iee,aTe,lTe,kD,jee=_(()=>{"use strict";Iee=C(H());le();z();Pe();SD();aTe=q()("model-dialog"),lTe=process.env.VIM_NODE_RPC=="1",kD=class{constructor(e,t,i){this.nvim=e;this.config=t;this.picked=new Set;this.disposables=[];this.keyMappings=new Map;this._onDidClose=new Iee.Emitter;this.onDidClose=this._onDidClose.event;for(let r=0;r{var r;(r=this.win)==null||r.close()}),this.disposables.push(this._onDidClose),this.addKeymappings()}get currIndex(){return this.win?this.win.currIndex:0}attachEvents(){E.on("InputChar",this.onInputChar.bind(this),null,this.disposables),E.on("BufWinLeave",e=>{e==this.bufnr&&(this._onDidClose.fire(void 0),this.bufnr=void 0,this.win=void 0,this.dispose())},null,this.disposables),E.on("FloatBtnClick",(e,t)=>{if(e==this.bufnr){if(t==0){let i=Array.from(this.picked);this._onDidClose.fire(i.length?i:void 0)}else this._onDidClose.fire(void 0);this.dispose()}},null,this.disposables)}addKeymappings(){let{nvim:e}=this,t=i=>{this.picked.has(i)?this.picked.delete(i):this.picked.add(i)};this.addKeys("",async()=>{if(lTe||!this.win)return;let[i,r,o]=await e.eval("[v:mouse_winid,v:mouse_lnum,v:mouse_col]");if(global.hasOwnProperty("__TEST__")){let s=await e.getVar("mouse_position");i=s[0],r=s[1],o=s[2]}e.pauseNotification(),i==this.win.winid&&(o<=3?(t(r-1),this.changeLine(r-1)):this.setCursor(r-1)),e.call("win_gotoid",[i],!0),e.call("cursor",[r,o],!0),e.call("coc#float#nvim_float_click",[],!0),e.command("redraw",!0),await e.resumeNotification()}),this.addKeys(["",""],()=>{this._onDidClose.fire(void 0),this.dispose()}),this.addKeys("",()=>{if(this.picked.size==0)this._onDidClose.fire(void 0);else{let i=Array.from(this.picked);this._onDidClose.fire(i)}this.dispose()}),this.addKeys(["j","","",""],()=>{this.win.setCursor(this.currIndex+1,!0)}),this.addKeys(["k","","",""],()=>{this.win.setCursor(this.currIndex-1,!0)}),this.addKeys(["g"],()=>{this.win.setCursor(0,!0)}),this.addKeys(["G"],()=>{this.win.setCursor(this.total-1,!0)}),this.addKeys(" ",async()=>{let i=this.currIndex;t(i),e.pauseNotification(),this.changeLine(i),this.setCursor(this.currIndex+1),e.command("redraw",!0),await e.resumeNotification()}),this.addKeys("",async()=>{var i;await((i=this.win)==null?void 0:i.scrollForward())}),this.addKeys("",async()=>{var i;await((i=this.win)==null?void 0:i.scrollBackward())})}async show(e={}){let{nvim:t}=this,{title:i,items:r}=this.config,o={close:1,cursorline:1};if(e.maxHeight&&(o.maxHeight=e.maxHeight),e.maxWidth&&(o.maxWidth=e.maxWidth),i&&(o.title=i),e.floatHighlight&&(o.highlight=e.floatHighlight),e.floatBorderHighlight&&(o.borderhighlight=[e.floatBorderHighlight]),e.pickerButtons){let u=e.pickerButtonShortcut;o.buttons=["Submit"+(u?" ":""),"Cancel"+(u?" ":"")]}e.rounded&&(o.rounded=1),e.confirmKey&&e.confirmKey!=""&&this.addKeys(e.confirmKey,()=>{this._onDidClose.fire(void 0),this.dispose()});let s=[],a=[];for(let u=0;u{"use strict";$_();ED=C(H());le();uTe=q()("model-progress"),PD=class extends su{constructor(e,t){super(e,{kind:"progress",title:t.title,buttons:t.cancellable?[{index:1,text:"Cancel"}]:void 0},!1);this.option=t;this._onDidFinish=new ED.Emitter;this.onDidFinish=this._onDidFinish.event;this.disposables.push(this._onDidFinish),E.on("BufWinLeave",i=>{i==this.bufnr&&(this.tokenSource&&this.tokenSource.cancel(),this._onDidFinish.fire(void 0),this.dispose())},null,this.disposables)}async show(e){let{task:t}=this.option,i=this.tokenSource=new ED.CancellationTokenSource;this.disposables.push(i);let r=0;this.config.buttons||!e.disabled?await super.show(e):uTe.warn('progress window disabled by "notification.disabledProgressSources"'),t({report:o=>{if(!this.winid)return;let{nvim:s}=this;o.increment&&(r+=o.increment,s.call("coc#window#set_var",[this.winid,"percent",`${r}%`],!0)),o.message&&s.call("coc#window#set_var",[this.winid,"message",o.message.replace(/\r?\n/g," ")],!0)}},i.token).then(o=>{this._disposed||(this._onDidFinish.fire(o),this.dispose())},o=>{this.nvim.echoError(o),!this._disposed&&(this._onDidFinish.fire(void 0),this.dispose())})}}});var Mee=m((k9e,X_)=>{var ja={};typeof X_>"u"?window.eastasianwidth=ja:X_.exports=ja;ja.eastAsianWidth=function(n){var e=n.charCodeAt(0),t=n.length==2?n.charCodeAt(1):0,i=e;return 55296<=e&&e<=56319&&56320<=t&&t<=57343&&(e&=1023,t&=1023,i=e<<10|t,i+=65536),i==12288||65281<=i&&i<=65376||65504<=i&&i<=65510?"F":i==8361||65377<=i&&i<=65470||65474<=i&&i<=65479||65482<=i&&i<=65487||65490<=i&&i<=65495||65498<=i&&i<=65500||65512<=i&&i<=65518?"H":4352<=i&&i<=4447||4515<=i&&i<=4519||4602<=i&&i<=4607||9001<=i&&i<=9002||11904<=i&&i<=11929||11931<=i&&i<=12019||12032<=i&&i<=12245||12272<=i&&i<=12283||12289<=i&&i<=12350||12353<=i&&i<=12438||12441<=i&&i<=12543||12549<=i&&i<=12589||12593<=i&&i<=12686||12688<=i&&i<=12730||12736<=i&&i<=12771||12784<=i&&i<=12830||12832<=i&&i<=12871||12880<=i&&i<=13054||13056<=i&&i<=19903||19968<=i&&i<=42124||42128<=i&&i<=42182||43360<=i&&i<=43388||44032<=i&&i<=55203||55216<=i&&i<=55238||55243<=i&&i<=55291||63744<=i&&i<=64255||65040<=i&&i<=65049||65072<=i&&i<=65106||65108<=i&&i<=65126||65128<=i&&i<=65131||110592<=i&&i<=110593||127488<=i&&i<=127490||127504<=i&&i<=127546||127552<=i&&i<=127560||127568<=i&&i<=127569||131072<=i&&i<=194367||177984<=i&&i<=196605||196608<=i&&i<=262141?"W":32<=i&&i<=126||162<=i&&i<=163||165<=i&&i<=166||i==172||i==175||10214<=i&&i<=10221||10629<=i&&i<=10630?"Na":i==161||i==164||167<=i&&i<=168||i==170||173<=i&&i<=174||176<=i&&i<=180||182<=i&&i<=186||188<=i&&i<=191||i==198||i==208||215<=i&&i<=216||222<=i&&i<=225||i==230||232<=i&&i<=234||236<=i&&i<=237||i==240||242<=i&&i<=243||247<=i&&i<=250||i==252||i==254||i==257||i==273||i==275||i==283||294<=i&&i<=295||i==299||305<=i&&i<=307||i==312||319<=i&&i<=322||i==324||328<=i&&i<=331||i==333||338<=i&&i<=339||358<=i&&i<=359||i==363||i==462||i==464||i==466||i==468||i==470||i==472||i==474||i==476||i==593||i==609||i==708||i==711||713<=i&&i<=715||i==717||i==720||728<=i&&i<=731||i==733||i==735||768<=i&&i<=879||913<=i&&i<=929||931<=i&&i<=937||945<=i&&i<=961||963<=i&&i<=969||i==1025||1040<=i&&i<=1103||i==1105||i==8208||8211<=i&&i<=8214||8216<=i&&i<=8217||8220<=i&&i<=8221||8224<=i&&i<=8226||8228<=i&&i<=8231||i==8240||8242<=i&&i<=8243||i==8245||i==8251||i==8254||i==8308||i==8319||8321<=i&&i<=8324||i==8364||i==8451||i==8453||i==8457||i==8467||i==8470||8481<=i&&i<=8482||i==8486||i==8491||8531<=i&&i<=8532||8539<=i&&i<=8542||8544<=i&&i<=8555||8560<=i&&i<=8569||i==8585||8592<=i&&i<=8601||8632<=i&&i<=8633||i==8658||i==8660||i==8679||i==8704||8706<=i&&i<=8707||8711<=i&&i<=8712||i==8715||i==8719||i==8721||i==8725||i==8730||8733<=i&&i<=8736||i==8739||i==8741||8743<=i&&i<=8748||i==8750||8756<=i&&i<=8759||8764<=i&&i<=8765||i==8776||i==8780||i==8786||8800<=i&&i<=8801||8804<=i&&i<=8807||8810<=i&&i<=8811||8814<=i&&i<=8815||8834<=i&&i<=8835||8838<=i&&i<=8839||i==8853||i==8857||i==8869||i==8895||i==8978||9312<=i&&i<=9449||9451<=i&&i<=9547||9552<=i&&i<=9587||9600<=i&&i<=9615||9618<=i&&i<=9621||9632<=i&&i<=9633||9635<=i&&i<=9641||9650<=i&&i<=9651||9654<=i&&i<=9655||9660<=i&&i<=9661||9664<=i&&i<=9665||9670<=i&&i<=9672||i==9675||9678<=i&&i<=9681||9698<=i&&i<=9701||i==9711||9733<=i&&i<=9734||i==9737||9742<=i&&i<=9743||9748<=i&&i<=9749||i==9756||i==9758||i==9792||i==9794||9824<=i&&i<=9825||9827<=i&&i<=9829||9831<=i&&i<=9834||9836<=i&&i<=9837||i==9839||9886<=i&&i<=9887||9918<=i&&i<=9919||9924<=i&&i<=9933||9935<=i&&i<=9953||i==9955||9960<=i&&i<=9983||i==10045||i==10071||10102<=i&&i<=10111||11093<=i&&i<=11097||12872<=i&&i<=12879||57344<=i&&i<=63743||65024<=i&&i<=65039||i==65533||127232<=i&&i<=127242||127248<=i&&i<=127277||127280<=i&&i<=127337||127344<=i&&i<=127386||917760<=i&&i<=917999||983040<=i&&i<=1048573||1048576<=i&&i<=1114109?"A":"N"};ja.characterLength=function(n){var e=this.eastAsianWidth(n);return e=="F"||e=="W"||e=="A"?2:1};function Oee(n){return n.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g)||[]}ja.length=function(n){for(var e=Oee(n),t=0,i=0;i=e-(l==2?1:0))if(r+l<=t)i+=a;else break;r+=l}return i}});var Bee=m((E9e,Nee)=>{"use strict";Nee.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});var qee=m((P9e,Hee)=>{var cTe=dg(),hTe=Mee(),dTe=Bee();Hee.exports=function(e,t={}){if(typeof e!="string"||e.length===0||(t=ge({ambiguousIsNarrow:!0},t),e=cTe(e),e.length===0))return 0;e=e.replace(dTe()," ");let i=t.ambiguousIsNarrow?1:2,r=0;for(let o of e){let s=o.codePointAt(0);if(s<=31||s>=127&&s<=159||s>=768&&s<=879)continue;switch(hTe.eastAsianWidth(o)){case"F":case"W":r+=2;break;case"A":r+=i;break;default:r+=1}}return r}});var Yee,_D,M9e,ap,Wee=_(()=>{"use strict";Yee=C(qee()),_D=C(H());le();z();Uf();Pe();Z_();SD();M9e=q()("model-quickpick"),ap=class{constructor(e,t){this.nvim=e;this.config=t;this.disposables=[];this._changed=!1;this._onDidFinish=new _D.Emitter;this._onDidChangeSelection=new _D.Emitter;this._onDidChangeValue=new _D.Emitter;this.onDidFinish=this._onDidFinish.event;this.onDidChangeSelection=this._onDidChangeSelection.event;this.onDidChangeValue=this._onDidChangeValue.event;var r;let i=(r=t.items)!=null?r:[];Object.defineProperty(this,"items",{set:o=>{this._changed=!0,i=o,this.filterItems("")},get:()=>i}),Object.defineProperty(this,"activeItems",{set:o=>{this._changed=!0,this.filteredItems=o,this.showFilteredItems()},get:()=>this.filteredItems}),Object.defineProperty(this,"title",{set:o=>{this.input&&(this.input.title=o)},get:()=>this.input?this.input.title:t.title}),Object.defineProperty(this,"loading",{set:o=>{this.input&&(this.input.loading=o)},get:()=>this.input?this.input.loading:!1})}get value(){var e;return this.input?this.input.value:(e=this.config.value)!=null?e:""}get currIndex(){return this.win?this.win.currIndex:0}get buffer(){return this.bufnr?this.nvim.createBuffer(this.bufnr):void 0}setCursor(e){var t;(t=this.win)==null||t.setCursor(e,!0)}attachEvents(e){E.on("BufWinLeave",t=>{t==this.bufnr&&this.dispose()},null,this.disposables),E.on("PromptKeyPress",async(t,i)=>{var r,o;t==e&&(i=="C-f"?await((r=this.win)==null?void 0:r.scrollForward()):i=="C-b"?await((o=this.win)==null?void 0:o.scrollBackward()):["C-j","C-n","down"].includes(i)?this.setCursor(this.currIndex+1):["C-k","C-p","up"].includes(i)?this.setCursor(this.currIndex-1):this.config.canSelectMany&&i=="C-@"&&this.toggePicked(this.currIndex))},null,this.disposables)}async show(e={}){let{nvim:t,items:i}=this,{title:r,canSelectMany:o,value:s}=this.config,a=[],l=[],u=[];for(let b=0;b{if(this._onDidChangeValue.fire(b),this._changed){this._changed=!1;return}this.filterItems(b)},this),c.onDidFinish(this.onFinish,this);let h=Math.max(40,Math.min(80,a.reduce((b,v)=>Math.max(b,(0,Yee.default)(v)),0)));await c.show(r!=null?r:"",{position:"center",marginTop:10,border:[1,1,0,1],list:!0,minWidth:h,maxWidth:e.maxWidth||80,rounded:!!e.rounded,highlight:e.floatHighlight,borderhighlight:e.floatBorderHighlight}),this.selectedItems=u;let d={lines:a,rounded:!!e.rounded};d.highlights=l,e.floatHighlight&&(d.highlight=e.floatHighlight),e.floatBorderHighlight&&(d.borderhighlight=e.floatBorderHighlight);let g=this.config.maxHeight||e.maxHeight;g&&(d.maxHeight=g);let f=await t.call("coc#dialog#create_list",[c.winid,c.dimension,d]);if(!f)throw new Error("Unable to open list window.");this.filteredItems=i,this.win=new Ia(t,f[0],f[1],a.length),this.win.refreshScrollbar(),this.bufnr=f[1];let p=o||u.length==0?0:i.indexOf(u[0]);this.setCursor(p),this.attachEvents(c.bufnr)}filterItems(e){let{items:t,win:i,selectedItems:r}=this;if(!i)return;let{canSelectMany:o}=this.config,s=[],a=[],l=0,u=[];for(let c of t){let h=this.toFilterText(c);if(e.length>0&&!Sh(e,h))continue;let d=r.includes(c),g=o?`[${d?"x":" "}] ${c.label}`:c.label;if(c.description){let p=Q(g);g=g+` ${c.description}`,a.push({hlGroup:"Comment",lnum:l,colStart:p,colEnd:Q(g)})}Vl(e,h).forEach(p=>{let b=Ze(h,p);a.push({hlGroup:"CocSearch",colStart:b,colEnd:b+1,lnum:l})}),u.push(c),s.push(g),l+=1}this.filteredItems=u,this.win.linecount=s.length,this.nvim.call("coc#dialog#update_list",[this.win.winid,this.win.bufnr,s,a],!0),this.setCursor(0)}showFilteredItems(){let{win:e,input:t,filteredItems:i}=this;if(!e)return;let{canSelectMany:r}=this.config,o=[],s=[],a=0,l=[];for(let u of i){let c=this.toFilterText(u),h=r?`[${u.picked?"x":" "}] ${u.label}`:u.label;if(u.picked&&l.push(u),u.description){let g=Q(h);h=h+` ${u.description}`,s.push({hlGroup:"Comment",lnum:a,colStart:g,colEnd:Q(h)})}Vl(t.value,c).forEach(g=>{let f=Ze(c,g);s.push({hlGroup:"CocSearch",colStart:f,colEnd:f+1,lnum:a})}),o.push(h),a+=1}this.selectedItems=l,this.win.linecount=o.length,this.nvim.call("coc#dialog#update_list",[this.win.winid,this.win.bufnr,o,s],!0),this.setCursor(r||l.length==0?0:i.indexOf(l[0]))}onFinish(e){if(e==null){this._onDidChangeSelection.fire([]),this._onDidFinish.fire(null);return}let t=this.getSelectedItems();this.config.canSelectMany||this._onDidChangeSelection.fire(t),this._onDidFinish.fire(t)}getSelectedItems(){let{win:e}=this,{canSelectMany:t}=this.config;if(t)return this.selectedItems;let i=this.filteredItems[e.currIndex];return i==null?[]:[i]}toggePicked(e){let{nvim:t,filteredItems:i,selectedItems:r}=this,o=i[e];if(!o)return;let s=r.indexOf(o);s!=-1?r.splice(s,1):r.push(o);let a=s==-1?"x":" ";t.pauseNotification(),this.win.execute(`normal! ^1lr${a}`),this.win.setCursor(this.win.currIndex+1),t.resumeNotification(!0,!0),this._onDidChangeSelection.fire(r)}toFilterText(e){let{label:t,description:i}=e,{canSelectMany:r}=this.config,o=`${r?" ":""}${t.replace(/\r?\n/,"")}`;return this.matchOnDescription?o+" "+(i!=null?i:""):o}dispose(){var e,t;this.bufnr=void 0,(e=this.input)==null||e.dispose(),(t=this.win)==null||t.close(),this._onDidFinish.dispose(),this._onDidChangeSelection.dispose(),Z(this.disposables)}}});var RD,Ph,LD,Zee=_(()=>{"use strict";le();RD=C(H());z();Ph="filter",LD=class{constructor(e,t){this.nvim=e;this._activated=!1;this.history=[];this.disposables=[];this._onDidUpdate=new RD.Emitter;this._onDidExit=new RD.Emitter;this._onDidKeyPress=new RD.Emitter;this.onDidKeyPress=this._onDidKeyPress.event;this.onDidUpdate=this._onDidUpdate.event;this.onDidExit=this._onDidExit.event;this.text="",E.on("InputChar",(i,r)=>{if(!(i!==Ph||!this._activated)){if(!t.includes(r)){if(r.length==1){this.text=this.text+r,this._onDidUpdate.fire(this.text);return}if(r==""||r==""){this.text=this.text.slice(0,-1),this._onDidUpdate.fire(this.text);return}if(r==""){this.text="",this._onDidUpdate.fire(this.text);return}if(r==""){let o=this.history.indexOf(this.text),s=this.history[o+1]||this.history[0];s&&(this.text=s,this._onDidUpdate.fire(this.text));return}if(r==""){let o=this.history.indexOf(this.text),s=this.history[o-1]||this.history[this.history.length-1];s&&(this.text=s,this._onDidUpdate.fire(this.text))}if(r==""||r==""){this.deactivate();return}}this._onDidKeyPress.fire(r)}},null,this.disposables)}active(){this._activated||(this._activated=!0,this.text="",this.nvim.call("coc#prompt#start_prompt",[Ph],!0))}deactivate(e){if(!this._activated)return;this.nvim.call("coc#prompt#stop_prompt",[Ph],!0),this._activated=!1;let{text:t}=this;this.text="",this._onDidExit.fire(e),t&&!this.history.includes(t)&&this.history.push(t)}get activated(){return this._activated}dispose(){this.deactivate(),this.history=[],this._onDidKeyPress.dispose(),this._onDidUpdate.dispose(),this._onDidExit.dispose(),Z(this.disposables)}}});var $ee={};xs($ee,{default:()=>au});var Hi,Jee,U_,G_,Q_,au,FD=_(()=>{"use strict";Hi=C(H());wi();le();Jo();z();Uf();no();Jt();Pe();ke();V();Zee();dD();Jee=q()("BasicTreeView"),U_="tree",G_=3e3,Q_=1,au=class{constructor(e,t){this.viewId=e;this.opts=t;this._selection=[];this._onDispose=new Hi.Emitter;this._onDidRefrash=new Hi.Emitter;this._onDidExpandElement=new Hi.Emitter;this._onDidCollapseElement=new Hi.Emitter;this._onDidChangeSelection=new Hi.Emitter;this._onDidChangeVisibility=new Hi.Emitter;this.onDidRefrash=this._onDidRefrash.event;this.onDispose=this._onDispose.event;this.onDidExpandElement=this._onDidExpandElement.event;this.onDidCollapseElement=this._onDidCollapseElement.event;this.onDidChangeSelection=this._onDidChangeSelection.event;this.onDidChangeVisibility=this._onDidChangeVisibility.event;this.retryTimers=0;this.renderedItems=[];this.nodesMap=new Map;this.mutex=new ei;this.disposables=[];this.lineState={titleCount:0,messageCount:0};this.loadConfiguration(),y.onDidChangeConfiguration(this.loadConfiguration,this,this.disposables),t.enableFilter&&(this.filter=new LD(this.nvim,[this.keys.selectNext,this.keys.selectPrevious,this.keys.invoke])),this.tooltipFactory=new ci(y.nvim),this.provider=t.treeDataProvider,this.leafIndent=t.disableLeafIndent!==!0,this.winfixwidth=t.winfixwidth!==!1,this.autoWidth=t.autoWidth===!0;let i;Object.defineProperty(this,"message",{set:a=>{i=a?a.replace(/\r?\n/g," "):void 0,this.updateHeadLines()},get:()=>i});let r=e.replace(/\r?\n/g," ");Object.defineProperty(this,"title",{set:a=>{r=a?a.replace(/\r?\n/g," "):void 0,this.updateHeadLines()},get:()=>r});let o;Object.defineProperty(this,"description",{set:a=>{o=a?a.replace(/\r?\n/g," "):void 0,this.updateHeadLines()},get:()=>o});let s;Object.defineProperty(this,"filterText",{set:a=>{let{titleCount:l,messageCount:u}=this.lineState,c=l+u;if(a!=null){let h=[{lnum:c,colStart:Q(a),colEnd:Q(a)+1,hlGroup:"Cursor"}];this.renderedItems=[],this.updateUI([a+" "],h,c,-1,!0),this.doFilter(a)}else s!=null&&this.updateUI([],[],c,c+1);s=a},get:()=>s}),this.provider.onDidChangeTreeData&&this.provider.onDidChangeTreeData(this.onDataChange,this,this.disposables),E.on("BufUnload",a=>{if(a!=this.bufnr)return;let l=this.winid!=null;this.winid=void 0,this.bufnr=void 0,l&&this._onDidChangeVisibility.fire({visible:!1}),this.dispose()},null,this.disposables),E.on("WinClosed",a=>{this.winid==a&&(this.winid=void 0,this._onDidChangeVisibility.fire({visible:!1}))},null,this.disposables),E.on("BufWinLeave",(a,l)=>{a==this.bufnr&&l==this.winid&&(this.winid=void 0,this._onDidChangeVisibility.fire({visible:!1}))},null,this.disposables),k.onDidTabClose(a=>{this._targetTabId===a&&this.dispose()},null,this.disposables),E.on("CursorHold",async a=>{a==this.bufnr&&await this.onHover()},null,this.disposables),E.on(["CursorMoved","BufEnter"],()=>{this.cancelResolve()},null,this.disposables),E.on("WinEnter",a=>{var d;if(a!=this.windowId||!((d=this.filter)!=null&&d.activated))return;let l=this.nvim.createBuffer(this.bufnr),u=this.startLnum-1,c=this.filterText?this.filterText.length:0,h=Hi.Range.create(u,c,u,c+1);l.highlightRanges(U_,"Cursor",[h]),this.nvim.call("coc#prompt#start_prompt",[Ph],!0),this.redraw()},null,this.disposables),E.on("WinLeave",a=>{var u;if(a!=this.windowId||!((u=this.filter)!=null&&u.activated))return;let l=this.nvim.createBuffer(this.bufnr);this.nvim.call("coc#prompt#stop_prompt",[Ph],!0),l.clearNamespace(U_,this.startLnum-1,this.startLnum)},null,this.disposables),this.disposables.push(this._onDidChangeVisibility,this._onDidChangeSelection,this._onDidCollapseElement,this._onDidExpandElement),this.filter&&(this.filter.onDidExit(a=>{this.nodesMap.clear(),this.filterText=void 0,this.itemsToFilter=void 0,a&&typeof this.provider.getParent=="function"?(this.renderedItems=[],this.reveal(a,{focus:!0})):(this.clearSelection(),this.render())}),this.filter.onDidUpdate(a=>{this.filterText=a}),this.filter.onDidKeyPress(async a=>{var c,h;let l=this.renderedItems;if(!(l!=null&&l.length))return;let u=this.selection[0];if(a==""||a==this.keys.selectPrevious){let d=l.findIndex(p=>p.node==u),g=d==-1||d==0?l.length-1:d-1,f=(c=l[g])==null?void 0:c.node;f&&this.selectItem(f,!0)}if(a==""||a==this.keys.selectNext){let d=l.findIndex(p=>p.node==u),g=d==-1||d==l.length-1?0:d+1,f=(h=l[g])==null?void 0:h.node;f&&this.selectItem(f,!0)}if(a==""||a==this.keys.invoke){if(!u)return;await this.invokeCommand(u),this.filter.deactivate(u)}}))}get windowId(){return this.winid}get targetTabnr(){return k.getTabNumber(this._targetTabId)}get targetWinId(){return this._targetWinId}get targetBufnr(){return this._targetBufnr}get startLnum(){let e=this.filterText==null?0:1;return this.lineState.messageCount+this.lineState.titleCount+e}get nvim(){return y.nvim}loadConfiguration(e){if(!e||e.affectsConfiguration("tree")){let t=y.getConfiguration("tree");this.config={openedIcon:t.get("openedIcon"," "),closedIcon:t.get("closedIcon"," ")},this.keys={close:t.get("key.close"),invoke:t.get("key.invoke"),toggle:t.get("key.toggle"),actions:t.get("key.actions"),collapseAll:t.get("key.collapseAll"),toggleSelection:t.get("key.toggleSelection"),activeFilter:t.get("key.activeFilter"),selectNext:t.get("key.selectNext"),selectPrevious:t.get("key.selectPrevious")},e&&this.render()}}async doFilter(e){let t=[],i=0,r=await this.mutex.acquire();try{if(!this.itemsToFilter){let l=[],u=async h=>{for(let d of h){l.push(d);let g=await Promise.resolve(this.provider.getChildren(d));g!=null&&g.length&&await u(g)}},c=await Promise.resolve(this.provider.getChildren());await u(c),this.itemsToFilter=l}for(let l of this.itemsToFilter){let u=await this.getTreeItem(l),c=op.is(u.label)?u.label.label:u.label;if(!e||Sh(e,c)){let h=e?Vl(e,c):[];u.collapsibleState=0,u.label={label:c,highlights:e?i4(h):[]};let{line:d,highlights:g}=this.getRenderedLine(u,i,0);t.push({level:0,node:l,line:d,index:i,score:e?Ch(e,c):0,highlights:g}),i+=1}}t.sort((l,u)=>l.score!=u.score?u.score-l.score:l.index-u.index);let o=this.startLnum,s=[],a=this.renderedItems=t.map((l,u)=>(s.push(...l.highlights.map(c=>(c.lnum=o+u,c))),delete l.index,delete l.score,delete l.highlights,l));this.updateUI(a.map(l=>l.line),s,o,-1,!0),a.length?this.selectItem(a[0].node,!0):this.clearSelection(),this.redraw(),r()}catch(o){r(),Jee.error("Error on tree filter:",o)}}async onHover(){let{nvim:e}=this,t=await e.call("line",["."]),i=this.getElementByLnum(t-1);if(!i)return;let r=this.nodesMap.get(i);if(!r)return;let o=r.item;if(!r.resolved&&(o=await this.resolveItem(i,o),!o)||!o.tooltip||!this.bufnr)return;let a={filetype:Hi.MarkupContent.is(o.tooltip)&&o.tooltip.kind==Hi.MarkupKind.Markdown?"markdown":"txt",content:Hi.MarkupContent.is(o.tooltip)?o.tooltip.value:o.tooltip};await this.tooltipFactory.show([a],{modes:["n"]})}async onClick(e){let{nvim:t}=this,[i,r]=await t.eval("[getline('.'),col('.')]"),o=et(i,0,r-1),s=i[o.length];if(!s)return;let{openedIcon:a,closedIcon:l}=this.config;/^\s*$/.test(o)&&[a,l].includes(s)?await this.toggleExpand(e):await this.invokeCommand(e)}async invokeCommand(e){let t=this.nodesMap.get(e);if(!t)return;this.selectItem(e);let i=t.item;if(!(!i.command&&(i=await this.resolveItem(e,i),!i))){if(!i.command)throw new Error("Failed to resolve command from TreeItem.");await oe.execute(i.command)}}async invokeActions(e){if(this.selectItem(e),typeof this.provider.resolveActions!="function"){await k.showWarningMessage("No actions");return}let t=this.nodesMap.get(e),i=await Promise.resolve(this.provider.resolveActions(t.item,e));if(!i||i.length==0){await k.showWarningMessage("No actions available");return}let r=i.map(s=>s.title),o=await k.showMenuPicker(r,"Choose action");o!=-1&&await Promise.resolve(i[o].handler(e))}async onDataChange(e){var i;if((i=this.filter)!=null&&i.activated){this.itemsToFilter=void 0,await this.doFilter(this.filterText);return}if(this.clearSelection(),!e){await this.render();return}let t=await this.mutex.acquire();try{let r=this.renderedItems,o=r.findIndex(s=>s.node===e);if(o!=-1&&this.bufnr){let a=r[o].level,l=0;for(let d=o;da)&&(l+=1)}let u=[],c=[],h=o+this.startLnum;await this.appendTreeNode(e,a,h,u,c),r.splice(o,l,...u),this.updateUI(u.map(d=>d.line),c,h,h+l)}t()}catch(r){let o=`Error on tree refresh: ${r}`;Jee.error(o,r),this.nvim.errWriteLine("[coc.nvim] "+o),t()}}async resolveItem(e,t){if(typeof this.provider.resolveTreeItem=="function"){let i=this.resolveTokenSource=new Hi.CancellationTokenSource,r=i.token;if(t=await Promise.resolve(this.provider.resolveTreeItem(t,e,r)),i.dispose(),this.resolveTokenSource=void 0,r.isCancellationRequested)return}return this.nodesMap.set(e,{item:t,resolved:!0}),t}get visible(){return this.bufnr?this.winid!=null:!1}get valid(){return typeof this.bufnr=="number"}get selection(){return this._selection.slice()}async checkLines(){if(!this.bufnr)return;let t=await this.nvim.createBuffer(this.bufnr).lines,{titleCount:i,messageCount:r}=this.lineState;t=t.slice(i+r);let o=this.renderedItems.map(s=>s.line);return Fe(t,o)}async toggleExpand(e){let t=this.nodesMap.get(e);if(!t)return;let i=t.item,r=this.getItemLnum(e),o=r-this.startLnum,s=this.renderedItems[o];if(!s||i.collapsibleState==0){if(typeof this.provider.getParent=="function"){let c=await Promise.resolve(this.provider.getParent(e));c&&(await this.toggleExpand(c),this.focusItem(c))}return}let a=0;if(i.collapsibleState==2){let c=s.level;for(let h=o+1;hc.line),u,r,r+a+1),this.refreshSigns(),i.collapsibleState==1?this._onDidCollapseElement.fire({element:e}):this._onDidExpandElement.fire({element:e})}toggleSelection(e){let t=this._selection.findIndex(i=>i===e);t!==-1?this.unselectItem(t):this.selectItem(e)}clearSelection(){if(!this.bufnr)return;this._selection=[],this.nvim.createBuffer(this.bufnr).unplaceSign({group:"CocTree"}),this._onDidChangeSelection.fire({selection:[]})}selectItem(e,t,i){let{nvim:r}=this;if(!this.bufnr||!y.env.sign)return;let o=this.getItemLnum(e);if(o==null)return;let s=r.createBuffer(this.bufnr),a=this._selection.includes(e);!this.opts.canSelectMany||t?this._selection=[e]:a||this._selection.push(e),r.pauseNotification(),(!this.opts.canSelectMany||t)&&s.unplaceSign({group:"CocTree"}),r.call("coc#compat#execute",[this.winid,`normal! ${o+1}G`],!0),s.placeSign({id:G_+o,lnum:o+1,name:"CocTreeSelected",group:"CocTree"}),i||this.redraw(),r.resumeNotification(!1,!0),a||this._onDidChangeSelection.fire({selection:this._selection})}unselectItem(e){let t=this._selection[e],i=this.getItemLnum(t);if(i==null||!this.bufnr||!y.env.sign)return;this._selection.splice(e,1),this.nvim.createBuffer(this.bufnr).unplaceSign({group:"CocTree",id:G_+i}),this._onDidChangeSelection.fire({selection:this._selection})}focusItem(e){if(!this.winid)return;let t=this.getItemLnum(e);t!=null&&this.nvim.call("coc#compat#execute",[this.winid,`exe ${t+1}`],!0)}getElementByLnum(e){let t=this.renderedItems[e-this.startLnum];return t?t.node:void 0}getItemLnum(e){let t=this.renderedItems.findIndex(i=>i.node===e);if(t!=-1)return this.startLnum+t}async getTreeItem(e){let t,i=!1,r=this.nodesMap.get(e);r!=null&&(t=r.item,i=r.resolved);let o=await Promise.resolve(this.provider.getTreeItem(e));if(o.id&&!t){for(let s of this.nodesMap.values())if(s.item.id===o.id){i=s.resolved,t=s.item;break}}return t&&t.collapsibleState!=0&&o.collapsibleState!=0&&(o.collapsibleState=t.collapsibleState),this.nodesMap.set(e,{item:o,resolved:i}),o}getRenderedLine(e,t,i){let{openedIcon:r,closedIcon:o}=this.config,s=[],{label:a,deprecated:l,description:u}=e,c=" ".repeat(i),h=(g,f)=>{let p=Q(c);s.push({lnum:t,hlGroup:f,colStart:p,colEnd:p+Q(g)})};switch(e.collapsibleState){case 2:{h(r,"CocTreeOpenClose"),c+=r+" ";break}case 1:{h(o,"CocTreeOpenClose"),c+=o+" ";break}default:c+=this.leafIndent?" ":""}if(e.icon){let{text:g,hlGroup:f}=e.icon;h(g,f),c+=g+" "}if(op.is(a)&&Array.isArray(a.highlights)){let g=Q(c);for(let f of a.highlights)s.push({lnum:t,hlGroup:"CocSearch",colStart:g+f[0],colEnd:g+f[1]})}let d=typeof a=="string"?a:a.label;return l&&h(d,"CocDeprecatedHighlight"),c+=d,u&&u.indexOf(` -`)==-1&&(c+=" ",h(u,"CocTreeDescription"),c+=u),{line:c,highlights:s}}async appendTreeNode(e,t,i,r,o){let s=1,a=await this.getTreeItem(e),l=this.getRenderedLine(a,i,t);if(o.push(...l.highlights),r.push({level:t,line:l.line,node:e}),a.collapsibleState==2){let u=t+1,c=await Promise.resolve(this.provider.getChildren(e))||[];for(let h of c){let d=await this.appendTreeNode(h,u,i+s,r,o);s=s+d}}return s}updateUI(e,t,i=0,r=-1,o=!1){if(!this.bufnr)return;let{nvim:s,winid:a}=this,l=s.createBuffer(this.bufnr);if(s.pauseNotification(),l.setOption("modifiable",!0,!0),l.setLines(e,{start:i,end:r,strictIndexing:!1},!0),this.autoWidth&&this.nvim.call("coc#window#adjust_width",[a],!0),t.length){let u=r==-1?-1:i+e.length;s.call("coc#highlight#update_highlights",[this.bufnr,U_,t,i,u],!0)}l.setOption("modifiable",!1,!0),o||this.redraw(),s.resumeNotification(!1,!0)}async reveal(e,t={}){var l;if((l=this.filter)!=null&&l.activated)return;let i=this.getItemLnum(e)!=null,{select:r,focus:o,expand:s}=t,a=e;if(typeof this.provider.getParent!="function")throw new Error("missing getParent function from provider for reveal.");if(!i)for(;a;){let u=await Promise.resolve(this.provider.getParent(a));if(u){let c=await this.getTreeItem(u);c.collapsibleState=2,a=u}else break}if(s){let u=await this.getTreeItem(e);if(u.collapsibleState==0)return;if(u.collapsibleState=2,typeof s=="number"&&s>1){let c=Math.min(s,2),h=await Promise.resolve(this.provider.getChildren(e));for(;(h==null?void 0:h.length)>0;){let d=[];for(let g of h){let f=await this.getTreeItem(g);if(f.collapsibleState!=0&&(f.collapsibleState=2,c>1)){let p=await Promise.resolve(this.provider.getChildren(g));d.push(...p)}}h=d,c=c-1}}}(!i||s)&&await this.render(),r!==!1&&this.selectItem(e),o&&this.focusItem(e)}updateHeadLines(e=!1){let{titleCount:t,messageCount:i}=this.lineState,r=e?-1:t+i,o=[],s=[];try{if(this.message&&(s.push({hlGroup:"MoreMsg",colStart:0,colEnd:Q(this.message),lnum:0}),o.push(this.message),o.push("")),this.title){if(s.push({hlGroup:"CocTreeTitle",colStart:0,colEnd:Q(this.title),lnum:o.length}),this.description){let a=Q(this.title)+1;s.push({hlGroup:"Comment",colStart:a,colEnd:a+Q(this.description),lnum:o.length})}o.push(this.title+(this.description?" "+this.description:""))}this.lineState.messageCount=this.message?2:0,this.lineState.titleCount=this.title?1:0,this.updateUI(o,s,0,r),e||this.refreshSigns()}catch(a){this.nvim.echoError(a)}}refreshSigns(){let{selection:e,nvim:t,bufnr:i}=this;if(!e.length||!i||!y.env.sign)return;let r=t.createBuffer(i);t.pauseNotification(),r.unplaceSign({group:"CocTree"});for(let o of e){let s=this.getItemLnum(o);s!=null&&r.placeSign({id:G_+s,lnum:s+1,name:"CocTreeSelected",group:"CocTree"})}t.resumeNotification(!1,!0)}async render(){if(!this.bufnr)return;let e=await this.mutex.acquire();try{let t=[],i=[],{startLnum:r}=this,o=await Promise.resolve(this.provider.getChildren()),s=0,a=r,l=[];if(!(o!=null&&o.length))this.message="No results";else{this.message=="No results"&&(this.message="");for(let c of o)a+=await this.appendTreeNode(c,s,a,l,i)}t.push(...l.map(c=>c.line)),this.renderedItems=l;let u=this.startLnum-r;u&&i.forEach(c=>c.lnum=c.lnum+u),this.updateUI(t,i,this.startLnum,-1),this._onDidRefrash.fire(),this.retryTimers=0,e()}catch(t){this.renderedItems=[],this.nodesMap.clear(),this.lineState={titleCount:0,messageCount:1},e();let i=`${t}`.replace(/\r?\n/g," ");if(this.updateUI([i],[{hlGroup:"WarningMsg",colStart:0,colEnd:Q(i),lnum:0}]),this.retryTimers==5)return;this.timer=setTimeout(()=>{this.retryTimers=this.retryTimers+1,this.render()},500)}}async show(e="belowright 30vs"){if(this._creating)return!1;this._creating=!0;let{nvim:t}=this,i=this.winid,[r,o,s,a]=await t.eval(`[bufnr("%"),win_getid(),tabpagenr(),bufloaded(${this.bufnr||-1})]`);this._targetBufnr=r,this._targetWinId=o,this._targetTabId=k.getTabId(s),a||(this.bufnr=void 0);let l=await t.call("coc#window#find",["cocViewId",this.viewId]);if(this.bufnr&&l!==-1&&await t.call("winbufnr",[l])==this.bufnr){this._creating=!1;return}if(t.pauseNotification(),this.bufnr)l!=-1?(t.call("win_gotoid",[l],!0),t.command(`b ${this.bufnr}`,!0)):t.command(`silent keepalt ${e} ${this.bufname}`,!0);else{let h=Q_;Q_=Q_+1,l!=-1?(t.call("win_gotoid",[l],!0),t.command(`silent edit +setl\\ buftype=nofile CocTree${h}`,!0)):t.command(`silent keepalt ${e} +setl\\ buftype=nofile CocTree${h}`,!0)}t.command(`setl bufhidden=${this.opts.bufhidden||"wipe"} nolist nonumber norelativenumber foldcolumn=0`,!0),t.command(`setl signcolumn=${this.opts.canSelectMany?"yes":"no"}${this.winfixwidth?" winfixwidth":""}`,!0),t.command("setl nocursorline nobuflisted wrap undolevels=-1 filetype=coctree nomodifiable noswapfile",!0),t.command(`let w:cocViewId = "${this.viewId.replace(/"/g,'\\"')}"`,!0),t.call("bufname",["%"],!0),t.call("bufnr",["%"],!0),t.call("win_getid",[],!0);let u=await t.resumeNotification();this.bufnr||this.registerKeymaps();let c=u[0];return this.bufname=c[c.length-3],this.bufnr=c[c.length-2],this.winid=c[c.length-1],i||this._onDidChangeVisibility.fire({visible:!0}),i&&i!==this.winid&&t.call("coc#window#close",[i],!0),this._creating=!1,this.updateHeadLines(!0),this.render(),!0}registerLocalKeymap(e,t,i,r=!1){this.disposables.push(y.registerLocalKeymap(e,t,async()=>{let o=await this.nvim.call("line",["."]),s=this.getElementByLnum(o-1);await Promise.resolve(i(s))},r))}registerKeymaps(){let{toggleSelection:e,actions:t,close:i,invoke:r,toggle:o,collapseAll:s,activeFilter:a}=this.keys,{nvim:l}=this,u=(c,h,d)=>{this.registerLocalKeymap(c,h,async g=>{g&&!this.nodesMap.has(g)||await Promise.resolve(d(g))},!0)};this.disposables.push(y.registerLocalKeymap("n","",()=>{l.call("win_gotoid",[this._targetWinId],!0)},!0)),u("n","",async c=>{c&&await this.onClick(c)}),this.filter&&a&&u("n",a,async()=>{this.nvim.command(`exe ${this.startLnum}`,!0),this.filter.active(),this.filterText=""}),e&&u("n",e,async c=>{c&&this.toggleSelection(c)}),r&&u("n",r,async c=>{c&&await this.invokeCommand(c)}),t&&u("n",t,async c=>{c&&await this.invokeActions(c)}),o&&u("n",o,async c=>{c&&await this.toggleExpand(c)}),s&&u("n",s,async()=>{for(let c of this.nodesMap.values()){let h=c.item;h.collapsibleState==2&&(h.collapsibleState=1)}await this.render()}),i&&u("n",i,async()=>{this.hide()})}hide(){let{winid:e}=this;!e||(this.nvim.call("coc#window#close",[e],!0),this.redraw(),this.winid=void 0,this._onDidChangeVisibility.fire({visible:!1}))}redraw(){var e;(y.isVim||((e=this.filter)==null?void 0:e.activated))&&this.nvim.command("redraw",!0)}cancelResolve(){this.resolveTokenSource&&(this.resolveTokenSource.cancel(),this.resolveTokenSource=void 0)}dispose(){var t;if(!this.provider)return;this.timer&&clearTimeout(this.timer),this.cancelResolve();let{bufnr:e}=this;this.winid&&this._onDidChangeVisibility.fire({visible:!1}),e&&this.nvim.command(`silent! bwipeout! ${e}`,!0),this.winid=void 0,this.bufnr=void 0,(t=this.filter)==null||t.dispose(),this._selection=[],this.itemsToFilter=[],this.tooltipFactory.dispose(),this.renderedItems=[],this.nodesMap.clear(),this.provider=void 0,this._onDispose.fire(),this._onDispose.dispose(),Z(this.disposables)}}});function Xee(){return fTe++}function K_(n){return[n.hlGroup,n.lnum,n.colStart,n.colEnd,n.combine?1:0,n.start_incl?1:0,n.end_incl?1:0]}function mTe(n,e){let t=[n.hlGroup,n.lnum,n.colStart,n.colEnd];return Fe(t,e.slice(0,4))}var z_,_h,ID,iet,gTe,fTe,pTe,Uee,k,ke=_(()=>{"use strict";z_=C(require("fs")),_h=C(require("path")),ID=C(H());we();wb();$2();Tb();le();Ce();Ree();oa();Z_();Fee();$_();jee();Aee();Wee();Xk();Ir();z();Je();no();Jt();ac();V();iet=q()("window"),gTe=_h.default.dirname(__dirname),fTe=3e3,pTe=["formatOnType","rename","onTypeEdit","documentLink","documentColor","foldingRange","format","codeAction","formatRange","hover","signature","documentSymbol","documentHighlight","definition","declaration","typeDefinition","reference","implementation","codeLens","selectionRange","callHierarchy","semanticTokens","semanticTokensRange","linkedEditing"];Uee=class{constructor(){this.mutex=new ei;this.tabIds=[];this.terminalManager=new xb;this._onDidTabClose=new ID.Emitter;this.onDidTabClose=this._onDidTabClose.event}init(e){for(let t=1;t<=e.tabCount;t++)this.tabIds.push(Xee());E.on("TabNew",t=>{this.tabIds.splice(t-1,0,Xee())}),E.on("TabClosed",t=>{let i=this.tabIds[t-1];this.tabIds.splice(t-1,1),i&&this._onDidTabClose.fire(i)})}getTabNumber(e){if(!!this.tabIds.includes(e))return this.tabIds.indexOf(e)+1}getTabId(e){return this.tabIds[e-1]}get nvim(){return y.nvim}dispose(){var e;this.terminalManager.dispose(),(e=this.statusLine)==null||e.dispose()}get activeTextEditor(){return y.editors.activeTextEditor}get visibleTextEditors(){return y.editors.visibleTextEditors}get onDidChangeActiveTextEditor(){return y.editors.onDidChangeActiveTextEditor}get onDidChangeVisibleTextEditors(){return y.editors.onDidChangeVisibleTextEditors}get terminals(){return this.terminalManager.terminals}get onDidOpenTerminal(){return this.terminalManager.onDidOpenTerminal}get onDidCloseTerminal(){return this.terminalManager.onDidCloseTerminal}async createTerminal(e){return await this.terminalManager.createTerminal(this.nvim,e)}showMessage(e,t="more"){let{messageLevel:i}=this,r="Error",o=2;switch(t){case"more":o=0,r="MoreMsg";break;case"warning":o=1,r="WarningMsg";break}o>=i&&Q2(this.nvim,e,r)}async runTerminalCommand(e,t,i=!1){return t=t||y.cwd,await this.nvim.callAsync("coc#ui#run_terminal",{cmd:e,cwd:t,keepfocus:i?1:0})}async openTerminal(e,t={}){return await this.nvim.call("coc#ui#open_terminal",ge({cmd:e},t))}async showQuickpick(e,t="Choose by number"){return await this.showMenuPicker(e,{title:t,position:"center"})}async showQuickPick(e,t,i=ID.CancellationToken.None){this.checkDialog("showQuickPick"),t=t||{};let r=await Promise.resolve(e),o=r.some(s=>typeof s=="string");if(!i.isCancellationRequested)return await this.mutex.use(()=>new Promise((s,a)=>{var u;if(i.isCancellationRequested)return s(void 0);let l=new ap(this.nvim,{items:r.map(c=>typeof c=="string"?{label:c}:c),title:(u=t.title)!=null?u:"",canSelectMany:t.canPickMany});l.matchOnDescription=t.matchOnDescription,l.onDidFinish(c=>{if(c==null)return s(void 0);let h=o?c.map(d=>d.label):c;if(t.canPickMany)return s(h);s(h[0])}),l.show(this.dialogPreference).catch(a)}))}async createQuickPick(e){return this.checkDialog("createQuickPick"),await this.mutex.use(async()=>{let t=new ap(this.nvim,e);return await t.show(this.dialogPreference),t})}async showMenuPicker(e,t,i){return y.env.dialog?await this.mutex.use(async()=>{if(i&&i.isCancellationRequested)return-1;t=t||{},typeof t=="string"&&(t={title:t});let r=new TD(this.nvim,ge({items:e},t),i),o=new Promise(s=>{r.onDidClose(a=>{s(a)})});return await r.show(this.dialogPreference),await o}):await this.mutex.use(async()=>{var c,h;let o=(typeof t=="string"?t:(h=t.title)!=null?h:((c=t.content)!=null?c:"")+"Choose by number")+":",s=[],a=1;for(let d of e)ou(d)&&d.disabled||(s.push(`${a}. ${ou(d)?d.text:d}`),a++);let l=await this.nvim.callAsync("coc#ui#quickpick",[o,s.map(d=>d.trim())]),u=parseInt(l,10);return isNaN(u)||u<=0||u>e.length?-1:u-1})}async openLocalConfig(){let e=await this.nvim.call("expand",["%:p"]),t=await this.nvim.eval("&filetype");if(!e||!_h.default.isAbsolute(e))throw new Error("current buffer doesn't have valid file path.");let i=y.getWorkspaceFolder(O.file(e).toString());if(!i){let l=y.getConfiguration("coc.preferences").get("rootPatterns",[]);throw y.getConfiguration("workspace").get("ignoredFiletypes",[]).includes(t)?new Error("Can't resolve workspace folder for current file, current filetype exclude for workspace folder resolve."):new Error(`Can't resolve workspace folder for current file, consider create one of ${l.join(", ")} in your project root.`)}let r=O.parse(i.uri).fsPath,o=_h.default.join(r,".vim");if(!z_.default.existsSync(o)){if(!await this.showPrompt(`Would you like to create folder'${r}/.vim'?`))return;z_.default.mkdirSync(o)}let s=_h.default.join(o,Pr);await this.nvim.call("coc#util#open_file",["edit",s])}async showPrompt(e){return await this.mutex.use(()=>Sb(this.nvim,e))}async showDialog(e){return this.checkDialog("showDialog"),await this.mutex.use(async()=>{let t=new CD(this.nvim,e);return await t.show(this.dialogPreference),t})}async requestInput(e,t,i){let{nvim:r}=this,o=y.getConfiguration("coc.preferences");return y.env.dialog&&o.get("promptInput",!0)&&!Xi?await this.mutex.use(async()=>{let s=new ru(r,t!=null?t:"");return await s.show(e,Object.assign(this.inputPreference,i!=null?i:{})),await new Promise(a=>{s.onDidFinish(l=>{a(l)})})}):await this.mutex.use(async()=>{let s=await y.callAsync("input",[e+": ",t||""]);return r.command("normal! :",!0),s})}async createInputBox(e,t,i){this.checkDialog("createInputBox");let r=new ru(this.nvim,t!=null?t:"");return await r.show(e,Object.assign(this.inputPreference,i)),r}createStatusBarItem(e=0,t={}){if(!y.env){let i=()=>{};return{text:"",show:i,dispose:i,hide:i,priority:0,isProgress:!1}}return this.statusLine||(this.statusLine=new hv(this.nvim)),this.statusLine.createStatusBarItem(e,t.progress||!1)}createOutputChannel(e){return Xo.create(e,this.nvim)}showOutputChannel(e,t){let r=y.getConfiguration("workspace").get("openOutputCommand","vs");Xo.show(e,r,t)}async echoLines(e,t=!1){let{nvim:i}=this,r=y.env.cmdheight;e.length>r&&t&&(e=e.slice(0,r));let o=y.env.columns-12;if(e=e.map(s=>(s=s.replace(/\n/g," "),t&&(s=s.slice(0,o)),s)),t&&e.length==r){let s=e[e.length-1];e[r-1]=`${s.length==o?s.slice(0,-4):s} ...`}await i.call("coc#ui#echo_lines",[e])}getCursorPosition(){return Cb(this.nvim)}async moveTo(e){await X2(this.nvim,e,y.env.isVim)}getSelectedRange(e){return K2(this.nvim,e)}async selectRange(e){await z2(this.nvim,e,this.nvim.isVim)}getOffset(){return U2(this.nvim)}getCursorScreenPosition(){return G2(this.nvim)}async showPickerDialog(e,t,i){return this.checkDialog("showPickerDialog"),await this.mutex.use(async()=>{if(i&&i.isCancellationRequested)return;let r=typeof e[0]=="string",o=new kD(this.nvim,{title:t,items:r?e.map(u=>({label:u})):e},i),s=new Promise(u=>{o.onDidClose(c=>{u(c)})});await o.show(this.dialogPreference);let a=await s;return a==null?void 0:e.filter((u,c)=>a.includes(c))})}async showInformationMessage(e,...t){let i=Error().stack;return await this._showMessage("Info",e,t,i)}async showWarningMessage(e,...t){let i=Error().stack;return await this._showMessage("Warning",e,t,i)}async showErrorMessage(e,...t){let i=Error().stack;return await this._showMessage("Error",e,t,i)}async showMessagePicker(e,t,i,r){let o=r.map(a=>typeof a=="string"?a:a.title),s=await this.showMenuPicker(o,{content:t,title:e.replace(/\r?\n/," "),borderhighlight:i});return r[s]}async _showMessage(e,t,i,r){if(!this.enableMessageDialog)return await this.showConfirm(t,i,e);if(this.preferMenuPicker&&i.length>0)return await this.showMessagePicker("Choose action",t,`Coc${e}Float`,i);let o=typeof i[0]=="string"?i:i.map(a=>a.title),s=await this.createNotification(e.toLowerCase(),t,o,r);return s==-1?void 0:i[s]}async showNotification(e){this.checkDialog("showNotification");let t=Error().stack;await new su(this.nvim,e).show(this.getNotificationPreference(t))}async showConfirm(e,t,i){if(!t||t.length==0){let a=i=="Info"?"more":i=="Error"?"error":"warning";this.showMessage(e,a);return}let o=(typeof t[0]=="string"?t.slice():t.map(a=>a.title)).map((a,l)=>`${l+1}${a}`),s=await this.nvim.callAsync("coc#util#with_callback",["confirm",[e,o.join(` -`),0,i]]);return t[s-1]}async withProgress(e,t){this.checkDialog("withProgress");let i=Error().stack,r=new PD(this.nvim,{task:t,title:e.title,cancellable:e.cancellable}),s=y.getConfiguration("notification").get("minProgressWidth",30),a=new Promise(l=>{r.onDidFinish(l)});return await r.show(Object.assign(this.getNotificationPreference(i,e.source),{minWidth:s})),await a}createTreeView(e,t){let i=(FD(),Ha($ee)).default;return new i(e,t)}async diffHighlights(e,t,i,r,o){let s=[e,t];Array.isArray(r)&&s.push(r[0],r[1]);let a=await this.nvim.call("coc#highlight#get_highlights",s);if(!a||(o==null?void 0:o.isCancellationRequested))return null;i.sort((b,v)=>b.lnum-v.lnum);let l=[],u=y.has("nvim-0.5.1")||y.isVim,c=[],h=[],d=0,g=i.length-1,f=0,p=new Map;if(a.forEach(b=>{f=Math.max(f,b[1]);let v=p.get(b[1]);v?v.push(b):p.set(b[1],[b])}),a.length>0){let b=Array.isArray(r)?r[0]:0;for(let v=b;v<=f;v++){let w=p.get(v)||[],D=[];for(let S=d;S<=g;S++){let F=i[S];if(F.lnum==v)d=S+1,D.push(F);else{d=S;break}}D.length==0?w.length&&(u?c.push(...w.map(S=>S[4])):l.push(v)):w.length==0?h.push(...D.map(S=>K_(S))):(D.length!=w.length||!D.every((S,F)=>mTe(S,w[F])))&&(u?c.push(...w.map(S=>S[4])):l.push(v),h.push(...D.map(S=>K_(S))))}}for(let b=d;b<=g;b++)h.push(K_(i[b]));return{remove:l,add:h,removeMarkers:c}}async applyDiffHighlights(e,t,i,r,o=!1){let{nvim:s}=this,{remove:a,add:l,removeMarkers:u}=r;a.length===0&&l.length===0&&u.length===0||(s.pauseNotification(),u.length&&s.call("coc#highlight#del_markers",[e,t,u],!0),a.length&&s.call("coc#highlight#clear",[e,t,a],!0),l.length&&s.call("coc#highlight#set",[e,t,l,i],!0),o?s.resumeNotification(!0,!0):await s.resumeNotification(!0))}async bufferCheck(){let e=await y.document,t;if(e.attached||(e.enabled?e.buftype!==""&&e.buftype!=="acwrite"?t=`Document not attached with buftype '${e.buftype}'`:t="Document not attached, file size exceed coc.preferences.maxFileSize":t="Document not attached, b:coc_enabled is 0"),t){await this.showDialog({title:"Buffer check result",content:t,highlight:"WarningMsg"});return}let i=new Ri;i.addLine("Provider state","Title"),i.addLine("");for(let r of pTe){let o=A.hasProvider(r,e.textDocument);i.addTexts([{text:"-",hlGroup:"Comment"},{text:" "},o?{text:"\u2713",hlGroup:"CocListFgGreen"}:{text:"\u2717",hlGroup:"CocListFgRed"},{text:" "},{text:r,hlGroup:o?"Normal":"CocFadeOut"}])}await this.showDialog({title:"Buffer check result",content:i.content,highlights:i.highlights})}createNotification(e,t,i,r){return new Promise((o,s)=>{let a={kind:e,content:t,buttons:i.map((u,c)=>({text:u,index:c})),callback:u=>{o(u)}};new su(this.nvim,a).show(this.getNotificationPreference(r)).catch(s)})}parseSource(e,t=2){let i=e.split(/\r?\n/).slice(t)[0];if(!i)return;i=i.replace(/^\s*at\s*/,"");let r;if(i.endsWith(")")){let a=i.match(/(\((.*?):\d+:\d+\))$/);a&&(r=a[2])}else{let a=i.match(/(.*?):\d+:\d+$/);a&&(r=a[1])}if(!r)return;let o=(yo(),Ha(aee)).default.getExtensionsInfo(),s=o.find(a=>ii(a.filepath,r));if(s)return s.name.startsWith("single")?_h.default.basename(s.filepath):s.name;if(s=o.find(a=>Ae(a.directory,r)),s)return s.name;if(Ae(gTe,r))return"coc.nvim"}get dialogPreference(){let e=y.getConfiguration("dialog");return{rounded:e.get("rounded",!0),maxWidth:e.get("maxWidth"),maxHeight:e.get("maxHeight"),floatHighlight:e.get("floatHighlight"),floatBorderHighlight:e.get("floatBorderHighlight"),pickerButtons:e.get("pickerButtons"),pickerButtonShortcut:e.get("pickerButtonShortcut"),confirmKey:e.get("confirmKey"),shortcutHighlight:e.get("shortcutHighlight")}}get inputPreference(){let e=y.getConfiguration("dialog");return{rounded:e.get("rounded",!0),maxWidth:e.get("maxWidth"),highlight:e.get("floatHighlight"),borderhighlight:e.get("floatBorderHighlight")}}getNotificationPreference(e,t){t||(t=this.parseSource(e));let i=y.getConfiguration("notification"),r=i.get("disabledProgressSources",[]),o=Array.isArray(r)&&(r.includes("*")||r.includes(t));return{broder:i.get("border",!0),focusable:i.get("focusable",!0),marginRight:i.get("marginRight",10),timeout:i.get("timeout",10),maxWidth:i.get("maxWidth"),maxHeight:i.get("maxHeight"),highlight:i.get("highlightGroup"),winblend:i.get("winblend"),disabled:o,source:t}}checkDialog(e){if(!y.env.dialog)throw new Error(`API window.${e} requires vim >= 8.2.0750 or neovim >= 0.4.0, please upgrade your vim`)}get enableMessageDialog(){return y.env.dialog?y.getConfiguration("coc.preferences").get("enableMessageDialog",!1):!1}get preferMenuPicker(){return y.env.dialog?y.getConfiguration("notification").get("preferMenuPicker",!1):!1}get messageLevel(){switch(y.getConfiguration("coc.preferences").get("messageLevel","more")){case"error":return 2;case"warning":return 1;default:return 0}}},k=new Uee});function Rh(n){switch(n){case kt.DiagnosticSeverity.Warning:return"Warning";case kt.DiagnosticSeverity.Information:return"Information";case kt.DiagnosticSeverity.Hint:return"Hint";default:return"Error"}}function Gee(n){switch(n){case kt.DiagnosticSeverity.Warning:return"W";case kt.DiagnosticSeverity.Information:return"I";case kt.DiagnosticSeverity.Hint:return"I";default:return"E"}}function lu(n){if(n!=null)switch(n){case"hint":return kt.DiagnosticSeverity.Hint;case"information":return kt.DiagnosticSeverity.Information;case"warning":return kt.DiagnosticSeverity.Warning;case"error":return kt.DiagnosticSeverity.Error;default:return kt.DiagnosticSeverity.Hint}}function V_(n){switch(n){case kt.DiagnosticSeverity.Error:return"CocError";case kt.DiagnosticSeverity.Warning:return"CocWarning";case kt.DiagnosticSeverity.Information:return"CocInfo";case kt.DiagnosticSeverity.Hint:return"CocHint";default:return"CocError"}}function Qee(n,e,t){var l,u;let{start:i,end:r}=e.range,o=e.source||"coc.nvim",s=e.message.split(` -`)[0],a=Rh(e.severity).slice(0,1).toUpperCase();return{bufnr:n,lnum:i.line+1,end_lnum:r.line+1,col:Array.isArray(t)?Ze((l=t[i.line])!=null?l:"",i.character)+1:i.character+1,end_col:Array.isArray(t)?Ze((u=t[r.line])!=null?u:"",r.character)+1:r.character+1,text:`[${o}${e.code?" "+e.code:""}] ${s} [${a}]`,type:a}}function jD(n,e){if((n.severity||1)!=(e.severity||1))return(n.severity||1)-(e.severity||1);let t=De(n.range.start,e.range.start);return t!=0?t:n.source>e.source?1:-1}function Kee(n){let e=n.tags||[];if(e.includes(kt.DiagnosticTag.Deprecated))return"CocDeprecatedHighlight";if(e.includes(kt.DiagnosticTag.Unnecessary))return"CocUnusedHighlight";switch(n.severity){case kt.DiagnosticSeverity.Warning:return"CocWarningHighlight";case kt.DiagnosticSeverity.Information:return"CocInfoHighlight";case kt.DiagnosticSeverity.Hint:return"CocHintHighlight";default:return"CocErrorHighlight"}}function zee(n,e){let t=[],{range:i}=e;for(let r of n){let o=r.range;if(!Sc(i,o)){if(De(o.start,i.end)>0){let s=$b(o.start,e),a=$b(o.end,e);s.line>=0&&s.character>=0&&a.line>=0&&a.character>=0&&(r.range=kt.Range.create(s,a))}t.push(r)}}return t}var kt,eR=_(()=>{"use strict";kt=C(H());yt();Pe();Ar()});var rte,Lh,yet,Vee,ete,tte,ite,nte,tR,ote=_(()=>{"use strict";rte=C(Ei()),Lh=C(H());le();yt();V();eR();yet=q()("diagnostic-buffer"),Vee="CocDiagnostic",ete="diagnostic",tte=["CocErrorHighlight","CocWarningHighlight","CocInfoHighlight","CocHintHighlight","CocDeprecatedHighlight","CocUnusedHighlight"],ite=global.__TEST__?10:500,nte=global.__TEST__?"MockAleResults":"ale#other_source#ShowResults",tR=class{constructor(e,t,i,r){this.nvim=e;this.doc=t;this.config=i;this.onRefresh=r;this.diagnosticsMap=new Map;this._disposed=!1;this._dirty=!1;this._changeTs=0;this.refreshHighlights=(0,rte.debounce)(this._refresh.bind(this),ite)}get dirty(){return this._dirty}get bufnr(){return this.doc.bufnr}get uri(){return this.doc.uri}onChange(e){let t=e.contentChanges;if(t.length>0){this._changeTs=Date.now();let i=Lh.TextEdit.replace(t[0].range,t[0].text);for(let[r,o]of this.diagnosticsMap.entries())if(o.length){let s=zee(o,i);this.diagnosticsMap.set(r,s)}}this.refreshHighlights()}onTextChange(){this._dirty=!0,this.refreshHighlights.clear()}get displayByAle(){return this.config.displayByAle}clearHighlight(e){this.buffer.clearNamespace(ete+e)}clearSigns(e){this.buffer.unplaceSign({group:Vee+e})}get diagnostics(){let e=[];for(let t of this.diagnosticsMap.values())e.push(...t);return e}get buffer(){return this.nvim.createBuffer(this.bufnr)}refreshAle(e,t){let i=t.map(r=>{let o=r.range;return{text:r.message,code:r.code,lnum:o.start.line+1,col:o.start.character+1,end_lnum:o.end.line+1,end_col:o.end.character,type:Gee(r.severity)}});this.nvim.call(nte,[this.bufnr,"coc"+e,i],!0)}async update(e,t){let{diagnosticsMap:i}=this,r=i.get(e)||[];if(!this._dirty&&t.length==0&&r.length==0)return;if(i.set(e,t),this._dirty||Date.now()-this._changeTs{this.diagnosticsMap.delete(s)}),this.onRefresh(this.diagnostics)}}updateLocationList(e,t){if(!this.config.locationlistUpdate||e==-1||t!=="Diagnostics of coc")return;let i=this.toLocationListItems(this.diagnostics);this.nvim.call("setloclist",[e,[],"r",{title:"Diagnostics of coc",items:i}],!0)}toLocationListItems(e){let{locationlistLevel:t}=this.config,i=[],r=this.doc.textDocument.lines;e.sort(jD);for(let o of e)t&&o.severity&&o.severity>t||i.push(Qee(this.bufnr,o,r));return i}addSigns(e,t){let{enableSign:i,signLevel:r}=this.config;if(!i)return;let o=Vee+e,s=[],a=new Map;for(let l of t){let{range:u,severity:c}=l;if(!c||r&&c>r)continue;let h=u.start.line,d=a.get(h)||[];if(d.includes(c))continue;d.push(c),a.set(h,d);let g=this.config.signPriority+4-c;s.push({name:V_(c),lnum:h+1,priority:g})}this.nvim.call("coc#ui#update_signs",[this.bufnr,o,s],!0)}setDiagnosticInfo(){let e=[0,0,0,0],t={error:0,warning:0,information:0,hint:0,lnums:e};for(let r of this.diagnosticsMap.values())for(let o of r){let s=o.range.start.line+1;switch(o.severity){case Lh.DiagnosticSeverity.Warning:t.warning=t.warning+1,e[1]=e[1]?Math.min(e[1],s):s;break;case Lh.DiagnosticSeverity.Information:t.information=t.information+1,e[2]=e[2]?Math.min(e[2],s):s;break;case Lh.DiagnosticSeverity.Hint:t.hint=t.hint+1,e[3]=e[3]?Math.min(e[3],s):s;break;default:e[0]=e[0]?Math.min(e[0],s):s,t.error=t.error+1}}this.nvim.createBuffer(this.bufnr).setVar("coc_diagnostic_info",t,!0),this.nvim.call("coc#util#do_autocmd",["CocDiagnosticChange"],!0)}showVirtualText(e,t){let{config:i}=this,{virtualText:r,virtualTextLevel:o}=i;if(!r)return;let{virtualTextSrcId:s,virtualTextPrefix:a,virtualTextCurrentLineOnly:l}=this.config,{diagnostics:u,buffer:c}=this;if(l){if(t&&this.bufnr!=t)return;u=u.filter(h=>{let{start:d,end:g}=h.range;return d.line<=e-1&&g.line>=e-1})}u.sort(jD),c.clearNamespace(s);for(let h=u.length-1;h>=0;h--){let d=u[h];if(o&&d.severity&&d.severity>o)continue;let{line:g}=d.range.start,f=V_(d.severity)+"VirtualText",p=d.message.split(/\n/).map(b=>b.trim()).filter(b=>b.length>0).slice(0,this.config.virtualTextLines).join(this.config.virtualTextLineSeparator);if(y.has("nvim-0.5.1")){let b={virt_text:[[a+p,f]]};i.virtualTextAlignRight||typeof i.virtualTextWinCol=="number"&&(b.virt_text_win_col=i.virtualTextWinCol),c.setExtMark(s,g,0,b)}else c.setVirtualText(s,g,[[a+p,f]],{})}}updateHighlights(e,t){if(!t.length)this.clearHighlight(e);else{let i=this.getHighlightItems(t),r=this.config.highlightPriority;this.buffer.updateHighlights(ete+e,i,{priority:r})}}async _refresh(){if(!this._dirty)return;let e=await this.getDiagnosticInfo();!e||e.winid==-1||this.diagnosticsMap.size==0||this.refresh(this.diagnosticsMap,e)}getHighlightItems(e){let t=y.getDocument(this.uri);if(!t)return[];let i=[];for(let r of e.slice(0,this.config.highlighLimit)){let o=Kee(r);t.addHighlights(i,o,r.range)}return i.sort((r,o)=>r.lnum!=o.lnum?r.lnum-o.lnum:r.colStart!=o.colStart?r.colStart-o.colStart:tte.indexOf(o.hlGroup)-tte.indexOf(r.hlGroup)),i}clear(){let{nvim:e}=this,t=Array.from(this.diagnosticsMap.keys());if(this.refreshHighlights.clear(),this.diagnosticsMap.clear(),this.displayByAle)for(let i of t)this.nvim.call(nte,[this.bufnr,i,[]],!0);else{e.pauseNotification(),this.buffer.deleteVar("coc_diagnostic_info");for(let i of t)this.clearHighlight(i),this.clearSigns(i);this.config.virtualText&&this.buffer.clearNamespace(this.config.virtualTextSrcId),e.resumeNotification(!0,!0)}}getDiagnosticsAt(e,t){let i=[];for(let r of this.diagnosticsMap.values())t?i.push(...r.filter(o=>q2(e.line,o.range))):i.push(...r.filter(o=>ut(e,o.range)==0));return i.sort(jD),i}async isEnabled(){return this._disposed?!1:await this.nvim.createBuffer(this.bufnr).getVar("coc_diagnostic_disable")!=1}dispose(){this.clear(),this._disposed=!0,this.refreshHighlights.clear()}}});var gs,Tet,bTe,AD,ste=_(()=>{"use strict";gs=C(H());we();V();Tet=q()("diagnostic-collection"),bTe=[gs.DiagnosticTag.Deprecated,gs.DiagnosticTag.Unnecessary],AD=class{constructor(e,t){this.name=e;this.onDispose=t;this.diagnosticsMap=new Map;this._onDidDiagnosticsChange=new gs.Emitter;this.onDidDiagnosticsChange=this._onDidDiagnosticsChange.event}set(e,t){let i=new Map;if(Array.isArray(e))for(let r of e){let[o,s]=r,a=y.getDocument(o);o=a?a.uri:o,s==null?s=[]:s=(i.get(o)||[]).concat(s),i.set(o,s)}else{let r=y.getDocument(e),o=r?r.uri:e;i.set(o,t||[])}for(let r of i){let[o,s]=r;o=O.parse(o).toString(),s.forEach(a=>{a.range=a.range||gs.Range.create(0,0,0,0),a.message=a.message||"",a.source=a.source||this.name,Array.isArray(a.tags)&&a.tags.some(l=>bTe.includes(l))&&(a.severity=gs.DiagnosticSeverity.Hint)}),this.diagnosticsMap.set(o,s),this._onDidDiagnosticsChange.fire(o)}}delete(e){this.diagnosticsMap.delete(e),this._onDidDiagnosticsChange.fire(e)}clear(){let e=Array.from(this.diagnosticsMap.keys());e=e.filter(t=>this.diagnosticsMap.get(t).length>0),this.diagnosticsMap.clear();for(let t of e)this._onDidDiagnosticsChange.fire(t)}forEach(e,t){for(let i of this.diagnosticsMap.keys()){let r=this.diagnosticsMap.get(i);e.call(t,i,r,this)}}entries(){return this.diagnosticsMap.entries()}get(e){let t=this.diagnosticsMap.get(e);return t==null?[]:t.slice()}has(e){return this.diagnosticsMap.has(e)}dispose(){this.clear(),this.onDispose&&this.onDispose(),this._onDidDiagnosticsChange.dispose()}}});var ate,qt,yTe,lte,Ft,eu=_(()=>{"use strict";ate=C(Ei()),qt=C(H());we();le();Jo();z();Je();yt();Pe();ke();V();ote();ste();eR();yTe=q()("diagnostic-manager"),lte=class{constructor(){this.enabled=!0;this._onDidRefresh=new qt.Emitter;this.onDidRefresh=this._onDidRefresh.event;this.collections=[];this.disposables=[]}init(){this.setConfiguration(),y.isNvim&&this.nvim.createNamespace("coc-diagnostic-virtualText").then(r=>{this.config.virtualTextSrcId=r}).logError(),y.onDidChangeConfiguration(this.setConfiguration,this,this.disposables),this.floatFactory=new ci(this.nvim),this.buffers=y.registerBufferSync(r=>{if(!this.enabled)return;let o=new tR(this.nvim,r,this.config,a=>{this._onDidRefresh.fire({diagnostics:a,uri:o.uri,bufnr:o.bufnr}),o.bufnr===y.bufnr&&this.config.messageTarget==="float"&&this.getCurrentDiagnostics().then(l=>this.showFloat(l))}),s=this.getDiagnostics(r.uri);return Object.keys(s).length>0&&o.reset(s),o}),y.onDidCloseTextDocument(r=>{for(let o of this.collections)o.delete(r.uri)},null,this.disposables);let e;E.on("CursorMoved",r=>{this.config.enableMessage=="always"&&(e&&clearTimeout(e),e=setTimeout(async()=>{let o=this.buffers.getItem(r);!o||o.dirty||await this.echoMessage(!0)},this.config.messageDelay))},null,this.disposables);let t=(0,ate.default)(async(r,o)=>{if(!this.config.virtualTextCurrentLineOnly||E.insertMode&&!this.config.refreshOnInsertMode)return;let s=this.buffers.getItem(r);s&&await s.isEnabled()&&s.showVirtualText(o[0])},global.__TEST__?10:100);this.disposables.push(qt.Disposable.create(()=>{t.clear()})),E.on("CursorMoved",t,null,this.disposables),E.on("InsertLeave",async()=>{if(!(this.config.refreshOnInsertMode||!this.autoRefresh))for(let r of this.buffers.items)r.dirty&&r.refreshHighlights()},null,this.disposables),E.on("BufWinEnter",r=>{let o=this.buffers.getItem(r);o&&o.dirty&&o.refreshHighlights()},null,this.disposables),this.clearTimers=()=>{e&&clearTimeout(e),e=void 0,t.clear()},E.on("InsertEnter",this.clearTimers,this,this.disposables);let i=y.configurations.errorItems;this.setConfigurationErrors(i),y.configurations.onError(r=>{this.setConfigurationErrors(r)},null,this.disposables)}defineSigns(){let{nvim:e}=this,{enableHighlightLineNumber:t,enableSign:i}=this.config;if(!!i){e.pauseNotification();for(let r of["Error","Warning","Info","Hint"]){let o=this.config[r.toLowerCase()+"Sign"],s=`sign define Coc${r} linehl=Coc${r}Line`;o&&(s+=` texthl=Coc${r}Sign text=${o}`),t&&(s+=` numhl=Coc${r}Sign`),e.command(s,!0)}e.resumeNotification(!1,!0)}}async setLocationlist(e){if(!this.enabled)throw new Error("Diagnostic not enabled.");let t=this.buffers.getItem(e);if(!t)throw new Error(`buffer ${e} not attached.`);let i=[];for(let a of Object.values(this.getDiagnostics(t.uri)))i.push(...a);let r=t.toLocationListItems(i),o=await this.nvim.call("getloclist",[0,{title:1}]),s=o.title&&o.title.indexOf("Diagnostics of coc")!=-1?"r":" ";await this.nvim.call("setloclist",[0,[],s,{title:"Diagnostics of coc",items:r}])}setConfigurationErrors(e){let t=this.create("config");if(e!=null&&e.length){let i=O.parse(e[0].location.uri).fsPath;k.showErrorMessage(`Error detected for config file ${i}, please check diagnostics list.`);let r=new Map;for(let o of e){let{uri:s}=o.location,a=r.get(s)||[];a.push(qt.Diagnostic.create(o.location.range,o.message,qt.DiagnosticSeverity.Error)),r.set(s,a)}t.set(Array.from(r))}else t.clear()}create(e){let t=this.getCollectionByName(e);return t||(t=new AD(e,()=>{let i=this.collections.findIndex(r=>r==t);i!==-1&&this.collections.splice(i,1)}),this.collections.push(t),t.onDidDiagnosticsChange(i=>{let r=this.buffers.getItem(i);!this.autoRefresh||!r||r.update(e,this.getDiagnosticsByCollection(i,t))}),t)}getSortedRanges(e,t){let i=this.getCollections(e),r=[],o=t?lu(t):0;for(let s of i){let a=s.get(e);if(o)a=a.filter(u=>u.severity==o);else{let u=this.config.level;u&&u!(c.severity&&c.severity>u)))}let l=a.map(u=>u.range);r.push(...l)}return r.sort((s,a)=>s.start.line!=a.start.line?s.start.line-a.start.line:s.start.character-a.start.character),r}getDiagnostics(e){let t={},i=this.getCollections(e);for(let r of i)!r||(t[r.name]=this.getDiagnosticsByCollection(e,r));return t}getDiagnosticsByCollection(e,t){let{level:i,showUnused:r,showDeprecated:o}=this.config,s=t.get(e)||[];return s.length&&(s=s.filter(a=>{var l,u;return!(i&&a.severity&&a.severity>i||!r&&((l=a.tags)==null?void 0:l.includes(qt.DiagnosticTag.Unnecessary))||!o&&((u=a.tags)==null?void 0:u.includes(qt.DiagnosticTag.Deprecated)))}),s.sort((a,l)=>De(a.range.start,l.range.start))),s}getDiagnosticsInRange(e,t){let i=this.getCollections(e.uri),r=[];for(let o of i){let s=o.get(e.uri);if(!!s)for(let a of s)Dl(a.range,t)&&r.push(a)}return r}async preview(){let e=await this.getCurrentDiagnostics();if(e.length==0){this.nvim.command("pclose",!0);return}let t=[];for(let i of e){let{source:r,code:o,severity:s,message:a}=i,l=Rh(s)[0];t.push(`[${r}${o?" "+o:""}] [${l}]`),t.push(...a.split(/\r?\n/)),t.push("")}this.nvim.call("coc#ui#preview_info",[t,"txt"],!0)}async jumpPrevious(e){let t=await this.nvim.buffer,i=this.buffers.getItem(t.id);if(!i)return;let r=await k.getCursorPosition(),o=this.getSortedRanges(i.uri,e),s;for(let a=o.length-1;a>=0;a--){let l=o[a].end;if(De(l,r)<0){s=o[a].start;break}else a==0&&await this.nvim.getOption("wrapscan")&&(s=o[o.length-1].start)}if(s){if(await k.moveTo(s),this.config.enableMessage=="never")return;await this.echoMessage(!1)}}async jumpNext(e){let t=await this.nvim.buffer,i=this.buffers.getItem(t.id);if(!i)return;let r=await k.getCursorPosition(),o=this.getSortedRanges(i.uri,e),s;for(let a=0;a<=o.length-1;a++){let l=o[a].start;if(De(l,r)>0){s=o[a].start;break}else a==o.length-1&&await this.nvim.getOption("wrapscan")&&(s=o[0].start)}if(s){if(await k.moveTo(s),this.config.enableMessage=="never")return;await this.echoMessage(!1)}}async getDiagnosticList(){var i,r;let e=[],{level:t}=this.config;for(let o of this.collections)for(let[s,a]of o.entries()){if(a.length==0)continue;let l=O.parse(s),u=y.getDocument(s),c=u&&u.attached?u.textDocument.lines:void 0;if(!c&&l.scheme==="file")try{let h=a.reduce((d,g)=>Math.max(g.range.end.line,d),0);c=await ia(l.fsPath,0,h)}catch{}for(let h of a){if(h.severity&&h.severity>t)continue;let{start:d,end:g}=h.range,f={file:l.fsPath,lnum:d.line+1,end_lnum:g.line+1,col:Array.isArray(c)?Ze((i=c[d.line])!=null?i:"",d.character)+1:d.character+1,end_col:Array.isArray(c)?Ze((r=c[g.line])!=null?r:"",g.character)+1:g.character+1,code:h.code,source:h.source||o.name,message:h.message,severity:Rh(h.severity),level:h.severity||0,location:qt.Location.create(s,h.range)};e.push(f)}}return e.sort((o,s)=>o.level!==s.level?o.level-s.level:o.file!==s.file?o.file>s.file?1:-1:o.lnum!=s.lnum?o.lnum-s.lnum:o.col-s.col),e}getDiagnosticsAt(e,t,i=!1,r=!1){let o=this.buffers.getItem(e);if(!o)return[];let s=qt.Position.create(t[0],t[1]),a=o.getDiagnosticsAt(s,this.config.checkCurrentLine);return this.config.checkCurrentLine||a.length||i&&(s=qt.Position.create(t[0],t[1]+1),a=o.getDiagnosticsAt(s,!1),a.length)||r&&t[1]==0&&(s=qt.Position.create(t[0]+1,0),a=o.getDiagnosticsAt(s,!1)),a}async getCurrentDiagnostics(){let[e,t,i,r]=await this.nvim.eval(`[bufnr("%"),coc#cursor#position(),col('.')==col('$')-1,line('.')==line('$')]`);return this.getDiagnosticsAt(e,t,i==1,r==1)}async echoMessage(e=!1){let t=this.config;if(!this.enabled||t.displayByAle)return;let i=t.messageTarget=="float",r=await this.getCurrentDiagnostics();if(t.messageLevel&&(r=r.filter(o=>o.severity&&o.severity<=t.messageLevel)),i)await this.showFloat(r);else{if(e&&E.insertMode)return;let o=[];r.forEach(s=>{let{source:a,code:l,severity:u,message:c}=s,h=Rh(u)[0],d=l?" "+l:"",g=t.format.replace("%source",a).replace("%code",d).replace("%severity",h).split("%message").join(c);o.push(g)}),o.length&&(await this.nvim.command('echo ""'),await k.echoLines(o,e))}}async showFloat(e){if(this.config.messageTarget!=="float")return;let{config:t}=this;if(e.length==0){this.floatFactory.close();return}if(E.insertMode)return;let i="",r=[];if(Object.keys(t.filetypeMap).length>0){let s=y.getDocument(y.bufnr),a=s?s.filetype:"",l=t.filetypeMap.default||"";i=t.filetypeMap[a]||(l=="bufferType"?a:l)}e.forEach(s=>{var p;let{source:a,code:l,severity:u,message:c}=s,h=Rh(u)[0],d=l?" "+l:"",g=t.format.replace("%source",a).replace("%code",d).replace("%severity",h).split("%message").join(c),f="Error";if(i==="")switch(u){case qt.DiagnosticSeverity.Hint:f="Hint";break;case qt.DiagnosticSeverity.Warning:f="Warning";break;case qt.DiagnosticSeverity.Information:f="Info";break}else f=i;r.push({filetype:f,content:g}),(p=s.codeDescription)!=null&&p.href&&r.push({filetype:"txt",content:s.codeDescription.href})});let o=this.floatFactory.applyFloatConfig({modes:["n"],maxWidth:80},this.config.floatConfig);yTe.debug("floatConfig:",o),await this.floatFactory.show(r,o)}async jumpRelated(){let t=(await this.getCurrentDiagnostics()).find(r=>r.relatedInformation!=null),i=t?t.relatedInformation.map(r=>r.location):[];i.length==1?await y.jumpTo(i[0].uri,i[0].range.start):i.length>1?await y.showLocations(i):k.showWarningMessage("No related information found.")}reset(){this.clearTimers&&this.clearTimers(),this.buffers.reset();for(let e of this.collections)e.dispose();this.collections=[]}dispose(){var e;this.clearTimers&&this.clearTimers(),this.buffers.dispose();for(let t of this.collections)t.dispose();(e=this.floatFactory)==null||e.close(),this.collections=[],Z(this.disposables)}get nvim(){return y.nvim}setConfiguration(e){if(e&&!e.affectsConfiguration("diagnostic"))return;let t=y.getConfiguration("diagnostic"),i=t.get("messageTarget","float");i=="float"&&!y.env.floating&&!y.env.textprop&&(i="echo");let r=t.get("enableHighlightLineNumber",!0);y.isNvim||(r=!1),this.config=Object.assign(this.config||{},{floatConfig:t.get("floatConfig",{}),messageTarget:i,enableHighlightLineNumber:r,highlighLimit:t.get("highlighLimit",1e3),highlightPriority:t.get("highlightPriority"),autoRefresh:t.get("autoRefresh",!0),checkCurrentLine:t.get("checkCurrentLine",!1),enableSign:y.env.sign&&t.get("enableSign",!0),locationlistUpdate:t.get("locationlistUpdate",!0),enableMessage:t.get("enableMessage","always"),messageDelay:t.get("messageDelay",200),virtualText:t.get("virtualText",!1)&&this.nvim.hasFunction("nvim_buf_set_virtual_text"),virtualTextAlignRight:y.has("nvim-0.5.1")&&t.get("virtualTextAlignRight",!1),virtualTextWinCol:y.has("nvim-0.5.1")?t.get("virtualTextWinCol",null):null,virtualTextCurrentLineOnly:t.get("virtualTextCurrentLineOnly",!0),virtualTextPrefix:t.get("virtualTextPrefix"," "),virtualTextLineSeparator:t.get("virtualTextLineSeparator"," \\ "),virtualTextLines:t.get("virtualTextLines",3),displayByAle:t.get("displayByAle",!1),level:lu(t.get("level","hint")),locationlistLevel:lu(t.get("locationlistLevel")),signLevel:lu(t.get("signLevel")),virtualTextLevel:lu(t.get("virtualTextLevel")),messageLevel:lu(t.get("messageLevel")),signPriority:t.get("signPriority",10),errorSign:t.get("errorSign",">>"),warningSign:t.get("warningSign",">>"),infoSign:t.get("infoSign",">>"),hintSign:t.get("hintSign",">>"),refreshOnInsertMode:t.get("refreshOnInsertMode",!1),filetypeMap:t.get("filetypeMap",{}),showUnused:t.get("showUnused",!0),showDeprecated:t.get("showDeprecated",!0),format:t.get("format","[%source%code] [%severity] %message")}),this.enabled=t.get("enable",!0),this.defineSigns()}getCollectionByName(e){return this.collections.find(t=>t.name==e)}getCollections(e){return this.collections.filter(t=>t.has(e))}toggleDiagnostic(e){let t=e==null?this.enabled:e==0;this.enabled=!t;for(let i of this.buffers.items)this.enabled?this.refreshBuffer(i.uri):i.clear()}async toggleDiagnosticBuffer(e,t){if(!this.enabled)return;e=e||y.bufnr;let i=this.buffers.getItem(e);if(i){let r=t==null?await i.isEnabled():t==0;await this.nvim.call("setbufvar",[e,"coc_diagnostic_disable",r?1:0]),r?i.clear():this.refreshBuffer(e)}}get autoRefresh(){return this.enabled&&this.config.autoRefresh}async refreshBuffer(e,t){let i=this.buffers.getItem(e);return i?(await i.reset(this.getDiagnostics(i.uri),t),!0):!1}refresh(e){let t;if(!e)t=this.buffers.items;else{let i=this.buffers.getItem(e);t=i?[i]:[]}for(let i of t)this.refreshBuffer(i.uri,!0)}},Ft=new lte});var Aa,ttt,ute,cte,oe,wi=_(()=>{"use strict";Aa=C(H());we();eu();iu();z();ke();V();le();ttt=q()("commands"),ute=class{constructor(e,t,i,r=!1){this.id=e;this.impl=t;this.thisArg=i;this.internal=r}execute(...e){let{impl:t,thisArg:i}=this;return t.apply(i,e||[])}dispose(){this.thisArg=null,this.impl=null}},cte=class{constructor(){this.commands=new Map;this.titles=new Map;this.onCommandList=[]}init(e,t){this.mru=y.createMru("commands"),this.register({id:"vscode.open",execute:async i=>{e.call("coc#ui#open_url",i.toString(),!0)}},!0),this.register({id:"workbench.action.reloadWindow",execute:async()=>{e.command("CocRestart",!0)}},!0),this.register({id:"editor.action.insertSnippet",execute:async(i,r)=>{let o=r===!0?{}:r;return await Ut.insertSnippet(i.newText,!0,i.range,Aa.InsertTextMode.adjustIndentation,o||void 0)}},!0),this.register({id:"editor.action.doCodeAction",execute:async i=>{await t.cocAction("doCodeAction",i)}},!0),this.register({id:"editor.action.triggerSuggest",execute:async()=>{let i=y.getDocument(y.bufnr);i&&await i.synchronize(),e.call("coc#start",[],!0)}},!0),this.register({id:"editor.action.triggerParameterHints",execute:async()=>{let i=y.getDocument(y.bufnr);i&&await i.synchronize(),await t.cocAction("showSignatureHelp")}},!0),this.register({id:"editor.action.addRanges",execute:async i=>{await t.cocAction("addRanges",i)}},!0),this.register({id:"editor.action.restart",execute:async()=>{await bt(30),e.command("CocRestart",!0)}},!0),this.register({id:"editor.action.showReferences",execute:async(i,r,o)=>{await y.showLocations(o)}},!0),this.register({id:"editor.action.rename",execute:async(i,r)=>{await y.jumpTo(i,r),await t.cocAction("rename")}},!0),this.register({id:"editor.action.format",execute:async()=>{await t.cocAction("format")}},!0),this.register({id:"workspace.refactor",execute:async i=>{let r=i.filter(o=>Aa.Location.is(o));await t.getHandler().refactor.fromLocations(r)}},!0),this.register({id:"workspace.clearWatchman",execute:async()=>{(await k.runTerminalCommand("watchman watch-del-all")).success&&k.showMessage("Cleared watchman watching directories.")}},!1,"run watch-del-all for watchman to free up memory."),this.register({id:"workspace.workspaceFolders",execute:async()=>{let r=y.workspaceFolders.map(o=>O.parse(o.uri).fsPath);await k.echoLines(r)}},!1,"show opened workspaceFolders."),this.register({id:"workspace.renameCurrentFile",execute:async()=>{await y.renameCurrent()}},!1,"change current filename to a new name and reload it."),this.register({id:"extensions.toggleAutoUpdate",execute:async()=>{let i=y.getConfiguration("coc.preferences");i.get("extensionUpdateCheck","daily")=="never"?(i.update("extensionUpdateCheck","daily",!0),k.showMessage("Extension auto update enabled.","more")):(i.update("extensionUpdateCheck","never",!0),k.showMessage("Extension auto update disabled.","more"))}},!1,"toggle auto update of extensions."),this.register({id:"workspace.diagnosticRelated",execute:()=>Ft.jumpRelated()},!1,"jump to related locations of current diagnostic."),this.register({id:"workspace.showOutput",execute:async i=>{if(i)k.showOutputChannel(i);else{let r=y.channelNames;if(r.length==0)return;if(r.length==1)k.showOutputChannel(r[0]);else{let o=await k.showQuickpick(r);if(o==-1)return;let s=r[o];k.showOutputChannel(s)}}}},!1,"open output buffer to show output from languageservers or extensions."),this.register({id:"document.showIncomingCalls",execute:async()=>{await t.cocAction("showIncomingCalls")}},!1,"show incoming calls in tree view."),this.register({id:"document.showOutgoingCalls",execute:async()=>{await t.cocAction("showOutgoingCalls")}},!1,"show outgoing calls in tree view."),this.register({id:"document.echoFiletype",execute:async()=>{let i=await e.call("bufnr","%"),r=y.getDocument(i);!r||await k.echoLines([r.filetype])}},!1,"echo the mapped filetype of the current buffer"),this.register({id:"document.renameCurrentWord",execute:async()=>{let i=await e.call("bufnr","%"),r=y.getDocument(i);if(!r)return;let o=await t.cocAction("getWordEdit");if(!o){k.showMessage("Invalid position","warning");return}let s=[],{changes:a,documentChanges:l}=o;if(a){let u=a[r.uri];u&&(s=u.map(c=>c.range))}else if(l)for(let u of l)Aa.TextDocumentEdit.is(u)&&u.textDocument.uri==r.uri&&(s=u.edits.map(c=>c.range));s.length&&await t.cocAction("addRanges",s)}},!1,"rename word under cursor in current buffer by use multiple cursors."),this.register({id:"document.jumpToNextSymbol",execute:async()=>{let i=await y.document;if(!i)return;let r=await t.cocAction("symbolRanges");if(!r)return;let{textDocument:o}=i,s=await k.getOffset();r.sort((a,l)=>a.start.line!=l.start.line?a.start.line-l.start.line:a.start.character-l.start.character);for(let a=0;a<=r.length-1;a++)if(o.offsetAt(r[a].start)>s){await k.moveTo(r[a].start);return}await k.moveTo(r[0].start)}},!1,"Jump to next symbol highlight position."),this.register({id:"workspace.undo",execute:async()=>{await y.files.undoWorkspaceEdit()}},!1,"Undo previous workspace edit"),this.register({id:"workspace.redo",execute:async()=>{await y.files.redoWorkspaceEdit()}},!1,"Redo previous workspace edit"),this.register({id:"workspace.inspectEdit",execute:async()=>{await y.files.inspectEdit()}},!1,"Inspect previous workspace edit in new tab"),this.register({id:"workspace.openLocation",execute:async(i,r,o)=>{i&&await e.call("win_gotoid",[i]),await y.jumpTo(r.uri,r.range.start,o)}},!0),this.register({id:"document.jumpToPrevSymbol",execute:async()=>{let i=await y.document;if(!i)return;let r=await t.cocAction("symbolRanges");if(!r)return;let{textDocument:o}=i,s=await k.getOffset();r.sort((a,l)=>a.start.line!=l.start.line?a.start.line-l.start.line:a.start.character-l.start.character);for(let a=r.length-1;a>=0;a--)if(o.offsetAt(r[a].end){await t.cocAction("bufferCheck")}},!1,"Check providers for current buffer.")}get commandList(){let e=[];for(let t of this.commands.values())t.internal||e.push(t);return e}dispose(){for(let e of this.commands.values())e.dispose();this.commands.clear()}execute(e){var t;return this.executeCommand(e.command,...(t=e.arguments)!=null?t:[])}register(e,t=!1,i){for(let r of Array.isArray(e.id)?e.id:[e.id])this.registerCommand(r,e.execute,e,t),i&&this.titles.set(r,i);return e}has(e){return this.commands.has(e)}unregister(e){let t=this.commands.get(e);!t||(t.dispose(),this.commands.delete(e))}registerCommand(e,t,i,r=!1){return e.startsWith("_")&&(r=!0),this.commands.set(e,new ute(e,t,i,r)),Aa.Disposable.create(()=>{this.commands.delete(e)})}executeCommand(e,...t){let i=this.commands.get(e);if(!i)throw new Error(`Command: ${e} not found`);return Promise.resolve(i.execute.apply(i,t))}async fireCommand(e,...t){await E.fire("Command",[e]);let i=Date.now(),r=await this.executeCommand(e,...t);return t.length==0&&await this.addRecent(e,E.lastChangeTs>i),r}async addRecent(e,t){await this.mru.add(e),t&&await y.nvim.command('silent! call repeat#set("\\(coc-command-repeat)", -1)')}async repeatCommand(){let t=(await this.mru.load())[0];t&&(await this.executeCommand(t),await y.nvim.command('silent! call repeat#set("\\(coc-command-repeat)", -1)'))}},oe=new cte});xC();var Xte=C(WM()),Ute=C(sC());le();var $te=require("events"),fR=C(H());wi();var rR=C(H());we();le();Ul();z();In();Jt();Pe();V();var Oa=C(H());z();us();Pe();Qo();us();Pe();function iR(n,e,t=1){return n===e?1/t:e+32===n?.5/t:0}function hte(n,e){if(e.length==0||n.length=r)return;let o=t[0],s=t.slice(1);if(!X6(o)){let d=nW(n,o,e);if(d==-1)return;let g=d==0?5:1,f=Fh(n,d+1,s,[...i,d]);return f===void 0?void 0:[g+f[0],f[1]]}let a=i.length==0,l=iR(o,n[e],a?.2:1);if(l>0){let d=Fh(n,e+1,s,[...i,e]);return d===void 0?void 0:[l+d[0],d[1]]}let u=new Map,c=vH(n,e+1);if(c!=null){let d=iR(o,c[1],a?.5:1);if(d>0){let g=[...i,c[0]];d===.5&&(d=.75);let f=Fh(n,c[0]+1,s,g);f!==void 0&&u.set(d+f[0],f[1])}}for(let d=e+1;d0){let f=Fh(n,d+1,s,[...i,d]);f!==void 0&&u.set(g+f[0],f[1]);break}}if(u.size==0){if(i.length>0){let d=i[i.length-1];if(d>0&&n[d]!==o&&n[d-1]===o){let g=i.slice();g.splice(i.length-1,0,d-1);let f=Fh(n,d+1,s,g);return f===void 0?void 0:[.5+f[0],f[1]]}}return}let h=Math.max(...u.keys());return[h,u.get(h)]}var vTe=process.env.VIM_NODE_RPC=="1",nR=q()("completion-complete"),OD=class{constructor(e,t,i,r,o,s){this.option=e;this.document=t;this.config=i;this.sources=r;this.mruLoader=o;this.nvim=s;this.results=new Map;this._input="";this._completing=!1;this.localBonus=new Map;this.filtered=new Set;this.names=[];this._onDidRefresh=new Oa.Emitter;this.onDidRefresh=this._onDidRefresh.event;this.tokenSource=new Oa.CancellationTokenSource,r.sort((a,l)=>l.priority-a.priority),this.names=r.map(a=>a.name)}fireRefresh(e){this.timer&&clearTimeout(this.timer),this.timer=setTimeout(()=>{this.allFiltered||this._onDidRefresh.fire()},e)}get allFiltered(){let{filtered:e,results:t}=this;if(e.size===0)return!1;for(let i of t.keys())if(!e.has(i))return!1;return!0}get isCompleting(){return this._completing}get input(){return this._input}get isEmpty(){let e=!0;for(let t of this.results.values())if(t.items.length>0){e=!1;break}return e}getIncompleteSources(){let e=[];for(let[t,i]of this.results.entries())i.isIncomplete&&e.push(t);return e}async doComplete(){let e=this.tokenSource.token,t=await Promise.all([this.nvim.call("coc#util#synname",[]),this.document.patchChange()]);if(this.option.synname=t[0],e.isCancellationRequested)return!0;let{triggerCompletionWait:i,localityBonus:r}=this.config;if(await bt(Math.min(i!=null?i:0,50)),e.isCancellationRequested)return!0;let{colnr:o,linenr:s,col:a}=this.option;if(r){let l=s-1;this.localBonus=this.document.getLocalifyBonus(Oa.Position.create(l,a-1),Oa.Position.create(l,o))}return await this.completeSources(this.sources),e.isCancellationRequested}async completeSources(e){let{fixInsertedWord:t,timeout:i}=this.config,{results:r,tokenSource:o}=this,s=this.option.col,a=r.size>0,l=t?this.getFollowPart():"",u=e.map(p=>p.name),c=u.length;this._completing=!0;let h=o.token,d,g=new Promise(p=>{d=setTimeout(()=>{o.token.isCancellationRequested||(u=u.filter(b=>!f.includes(b)),o.cancel(),nR.warn(`Complete timeout after ${i}ms`,u),this.nvim.setVar("coc_timeout_sources",u,!0)),p()},typeof i=="number"?i:500)}),f=[];await Promise.race([g,Promise.all(e.map(p=>this.completeSource(p,h,l).then(()=>{if(f.push(p.name),h.isCancellationRequested||a)return;let b=this.option.col!==s;b&&this.cancel(),b||f.length===c?this.fireRefresh(0):r.has(p.name)&&this.fireRefresh(16)})))]),clearTimeout(d),this._completing=!1}async completeSource(e,t,i){var a;let r=Object.assign({},this.option),{snippetIndicator:o}=this.config,{name:s}=e;try{if(typeof e.shouldComplete=="function"&&(!await Promise.resolve(e.shouldComplete(r))||t.isCancellationRequested))return;let l=(a=e.priority)!=null?a:0,u=Date.now();await new Promise((c,h)=>{Promise.resolve(e.doComplete(r,t)).then(d=>{let g=d?d.items.length:0;if(t.isCancellationRequested){c(void 0);return}if(nR.debug(`Source "${s}" finished with ${g} items ${Date.now()-u}ms`),g>0){d.priority=l;let f=i.length>0;d.items.forEach((p,b)=>{var D,S,F;let v=(D=p.word)!=null?D:"",w=(S=p.abbr)!=null?S:v;p.word=v,p.source=s,p.priority=l,p.filterText=(F=p.filterText)!=null?F:v,f&&v!=i&&v.endsWith(i)&&(p.word=v.slice(0,-i.length)),p.isSnippet===!0&&!w.endsWith(o)&&(p.abbr=`${w}${o}`),p.localBonus=this.localBonus.get(p.filterText)||0,p.user_data=`${s}:${b}`}),this.setResult(s,d)}else this.results.delete(s);c()},d=>{h(d)})})}catch(l){this.nvim.echoError(l),nR.error("Complete error:",e.name,l)}}async completeInComplete(e,t){let{document:i}=this;this.cancel(),this.tokenSource=new Oa.CancellationTokenSource;let r=this.tokenSource.token;if(await i.patchChange(!0),r.isCancellationRequested)return;let{input:o,colnr:s,linenr:a}=this.option,l=e[e.length-1];Object.assign(this.option,{input:e,line:i.getline(a-1),colnr:s+(e.length-o.length),triggerCharacter:!l||hc(l)?void 0:l,triggerForInComplete:!0});let u=this.sources.filter(c=>t.includes(c.name));if(await this.completeSources(u),!r.isCancellationRequested)return this.filterItems(e)}filterItems(e){let{results:t,names:i}=this;if(this._input=e,t.size==0)return[];let r=e.length,o=r==0,{maxItemCount:s,selection:a,enablePreselect:l,defaultSortMethod:u,removeDuplicateItems:c}=this.config,h=[],d=xn(e),g=new Set,f=-1,p=a!=="none";for(let v of i){let w=t.get(v);if(!w)continue;let D=v==="snippets",S=w.items;for(let F=0;F{let D=v.sortText,S=w.sortText;if(v.score!==w.score)return w.score-v.score;if(v.priority!==w.priority)return w.priority-v.priority;if(v.localBonus!==w.localBonus)return w.localBonus-v.localBonus;if(v.source===w.source&&D!==S)return D{let{results:v}=this;for(let w of b){let D=v.get(w);D&&(D.items=h.filter(S=>S.source===w))}}),f!==-1){let v=h.findIndex(w=>w.recentScore===f);if(l&&!vTe)h[v].preselect=!0;else{let w=h.splice(v,1);h.unshift(w[0])}}return this.limitCompleteItems(h.slice(0,s))}async filterResults(e){if(this.filtered=new Set(this.results.keys()),e!==this.option.input){let t=this.getIncompleteSources();if(t.length)return await this.completeInComplete(e,t)}return this.filterItems(e)}limitCompleteItems(e){let{highPrioritySourceLimit:t,lowPrioritySourceLimit:i}=this.config;if(!t&&!i)return e;let r=new Map;return e.filter(o=>{let{priority:s,source:a}=o,l=s<90,u=r.get(a)||0;return i&&l&&u==i||t&&!l&&u==t?!1:(r.set(a,u+1),!0)})}setResult(e,t){let{results:i}=this,{line:r,colnr:o,col:s}=this.option;if(typeof t.startcol=="number"&&t.startcol!=s){let{startcol:a}=t;this.option.col=a,this.option.input=et(r,a,o-1),i.clear(),i.set(e,t)}else i.set(e,t)}cancel(){let{tokenSource:e,timer:t}=this;t&&clearTimeout(t),e.cancel(),this._completing=!1}resolveCompletionItem(e){if(typeof e.user_data!="string")return null;try{let t=e.user_data.split(":",2),i=this.results.get(t[0]);return i?i.items.find(r=>r.user_data==e.user_data):null}catch{return null}}getFollowPart(){let{colnr:e,line:t}=this.option,i=Ui(t,e-1);return i==t.length?"":t.slice(i-t.length).match(/^\S?[\w-]*/)[0]}dispose(){this.cancel(),this._onDidRefresh.dispose(),this.sources=[],this.filtered.clear(),this.results.clear()}};le();$0();var mtt=q()("floating"),MD=class{constructor(e,t){this.nvim=e;this.isVim=t;this.winid=0;this.bufnr=0}async show(e,t,i){let{nvim:r}=this;e=e.filter(c=>c.content.trim().length>0);let{lines:o,codes:s,highlights:a}=lb(e,{excludeImages:i.excludeImages});if(o.length==0){this.close();return}let l={codes:s,highlights:a,maxWidth:i.maxWidth||80,pumbounding:t};i.border&&(l.border=[1,1,1,1]),i.highlight&&(l.highlight=i.highlight),i.borderhighlight&&(l.borderhighlight=i.borderhighlight),this.isVim||(typeof i.winblend=="number"&&(l.winblend=i.winblend),l.focusable=i.focusable===!0?1:0,i.shadow&&(l.shadow=1));let u=await r.call("coc#dialog#create_pum_float",[this.winid,this.bufnr,o,l]);r.redrawVim(),!(!u||u.length==0)&&(this.winid=u[0],this.bufnr=u[1],E.pumvisible||this.close())}close(){let{winid:e,nvim:t}=this;this.winid=0,e&&(t.call("coc#float#close",[e],!0),t.redrawVim())}};lf();var ND=class{constructor(e){this.selection=e;this.max=0;this.items=new Map;this.itemsNoPrefex=new Map;this.mru=new so(`suggest${globalThis.__TEST__?process.pid:""}.txt`,process.env.COC_DATA_HOME,1e3)}async load(){let{selection:e}=this;if(e=="none")return;let t=await this.mru.load(),i=t.length;for(let r=i-1;r>=0;r--){let o=t[r];if(!o.includes("|"))continue;let[s,a,l,u]=o.split("|");!l||(this.items.set(o,i-1-r),this.itemsNoPrefex.set(`${a}|${l}|${u||""}`,i-1-r))}this.max=i-1}getScore(e,t){var o,s;let i=dte(t);return e.length==0?(o=this.itemsNoPrefex.get(i))!=null?o:-1:(this.selection==="recentlyUsedByPrefix"&&(i=`${e}|${i}`),(s=(this.selection==="recentlyUsed"?this.itemsNoPrefex:this.items).get(i))!=null?s:-1)}add(e,t){if(this.selection=="none")return;let i=dte(t),r=`${e}|key`;this.items.set(r,this.max),this.itemsNoPrefex.set(i,this.max),this.max+=1,this.mru.add(r)}};function dte(n){var r;let e=n.filterText,t=n.source,i=(r=n.kind)!=null?r:"";return`${e}|${t}|${i}`}le();Pe();var Ctt=q()("completion-util");async function gte(){let n=await E.race(["InsertLeave","CursorMovedI","MenuPopupChanged","TextChangedI","InsertCharPre"],300);return n==null?void 0:n.name}async function fte(){let n=await E.race(["InsertCharPre","CursorMoved","InsertLeave","TextChangedI"],100);return!n||n.name!=="TextChangedI"?n?n.name:void 0:n.args[1]}function pte(n="",e){if(!n)return!1;for(let t of n.split(","))if(t.indexOf("=")>-1){let[i,r]=t.split("="),o=r.startsWith("~")?r.slice(1):r;if(e.lengtho.length&&!/^\s/.test(e.slice(-o.length-1))||!(r.startsWith("~")?e.toLowerCase().endsWith(o):e.endsWith(o)))continue;if(i==""||i=="0"&&(e.length==o.length||/^\s*$/.test(e.slice(0,e.length-o.length))))return!0}return!1}function mte(n,e,t,i){let{pre:r}=t;if(r.length===0||r[r.length-1]===" "||r.length{e.affectsConfiguration("suggest")&&(this.config=this.getCompleteConfig())},null,this.disposables),this.floating=new MD(y.nvim,y.env.isVim),E.on("InsertLeave",()=>{this.stop()},null,this.disposables),E.on("CursorMovedI",(e,t,i)=>{if(this.triggerTimer&&clearTimeout(this.triggerTimer),!(i||!this.option||e!==this.option.bufnr)){if(this.option.linenr===t[0]){let r=y.getDocument(e),o=r.getline(t[0]-1),s=Ui(o,t[1]-1),a=Ui(o,this.option.colnr-1);if(a{var t;if(this.previousItem=(t=this.popupEvent)==null?void 0:t.completed_item,this.popupEvent=null,this.hasInsert=!1,!(!this.activated||e.closed)){if(this.cancelResolve(),e.close)return this.stop();uc(e)?await this.onCompleteDone(e):await gte()=="CursorMovedI"&&this.stop()}},null,this.disposables),E.on("MenuPopupChanged",async e=>{var t;!this.activated||((t=this.document)==null?void 0:t.isCommandLine)||Fe(this.popupEvent,e)||(this.cancelResolve(),this.popupEvent=e,await this.onPumChange())},null,this.disposables)}get option(){return this.complete?this.complete.option:null}get selectedItem(){if(!this.popupEvent)return null;let{completed_item:e}=this.popupEvent;return uc(e)?e:null}get isActivated(){return this.activated}get document(){return this.option?y.getDocument(this.option.bufnr):null}getCompleteConfig(){let e=y.getConfiguration("suggest");function t(a,l){return e.get(a,l)}let i=t("keepCompleteopt",!1),r=t("autoTrigger","always");if(i&&r!="none"){let{completeOpt:a}=y;!a.includes("noinsert")&&!a.includes("noselect")&&(i=!1,this.nvim.echoError("suggest.keepCompleteopt disabled, completeopt should includes noinsert or noselect"))}let o=y.floatSupported&&t("floatEnable",!0),s=y.env.pumevent&&t("acceptSuggestionOnCommitCharacter",!1);return{autoTrigger:r,floatEnable:o,keepCompleteopt:i,selection:t("selection","recentlyUsed"),floatConfig:t("floatConfig",{}),defaultSortMethod:t("defaultSortMethod","length"),removeDuplicateItems:t("removeDuplicateItems",!1),disableMenuShortcut:t("disableMenuShortcut",!1),acceptSuggestionOnCommitCharacter:s,disableKind:t("disableKind",!1),disableMenu:t("disableMenu",!1),previewIsKeyword:t("previewIsKeyword","@,48-57,_192-255"),enablePreview:t("enablePreview",!1),enablePreselect:t("enablePreselect",!1),triggerCompletionWait:t("triggerCompletionWait",0),labelMaxLength:t("labelMaxLength",200),triggerAfterInsertEnter:t("triggerAfterInsertEnter",!1),noselect:t("noselect",!0),maxItemCount:t("maxCompleteItemCount",50),timeout:t("timeout",500),minTriggerInputLength:t("minTriggerInputLength",1),snippetIndicator:t("snippetIndicator","~"),fixInsertedWord:t("fixInsertedWord",!0),localityBonus:t("localityBonus",!0),highPrioritySourceLimit:t("highPrioritySourceLimit",null),lowPrioritySourceLimit:t("lowPrioritySourceLimit",null),ignoreRegexps:t("ignoreRegexps",[]),asciiCharactersOnly:t("asciiCharactersOnly",!1)}}async startCompletion(e,t){try{let i=y.getAttachedDocument(e.bufnr);if(e.filetype=i.filetype,fs.debug("trigger completion with",e),this.stop(),this.pretext=et(e.line,0,e.colnr-1),t=t!=null?t:this.getSources(e),!t||t.length===0)return;E.completing=!0,this.changedtick=e.changedtick;let r=this.complete=new OD(e,i,this.config,t,this.mru,this.nvim);r.onDidRefresh(async()=>{if(this.triggerTimer!=null&&clearTimeout(this.triggerTimer),r.isEmpty){this.stop();return}this.hasInsert||await this.filterResults()}),await r.doComplete()}catch(i){this.stop(),this.nvim.echoError(i)}}getSources(e){let{source:t}=e;if(t){let i=Lt.getSource(t);return i?[i]:[]}return Lt.getCompleteSources(e)}hasSelected(){return y.env.pumevent?this.selectedItem!=null:!this.config.noselect}showCompletion(e){let{nvim:t,option:i,changedtick:r}=this;if(!i)return;let{disableKind:o,labelMaxLength:s,disableMenuShortcut:a,disableMenu:l}=this.config,u=this.config.enablePreselect?e.findIndex(d=>d.preselect):-1,c=wTe.slice();o&&(c=c.filter(d=>d!="kind")),l&&(c=c.filter(d=>d!="menu"));let h=e.map(d=>{let g={word:d.word,equal:1};for(let f of c)d.hasOwnProperty(f)&&(a&&f=="menu"?g[f]=d[f].replace(/\[.+\]$/,""):f=="abbr"&&d[f].length>s?g[f]=d[f].slice(0,s):g[f]=d[f]);return g});t.pauseNotification(),h.length&&this.start(),t.call("coc#_do_complete",[i.col,h,u,r],!0),t.resumeNotification(!1,!0)}async onTextChangedP(e,t){let{option:i,document:r}=this;if(!i||i.bufnr!=e||(t.insertChar||this.pretext==t.pre)&&pte(i.indentkeys,t.pre)&&(fs.debug(`trigger indent by ${t.pre}`),await this.nvim.call("coc#complete_indent",[]))||(this.changedtick=t.changedtick,this.pretext==t.pre))return;let o=this.pretext=t.pre;if(t.pre.match(/^\s*/)[0]!==i.line.match(/^\s*/)[0]){this.stop();let s=await E.race(["TextChangedI","InsertCharPre"],50);s.name==="TextChangedI"&&await this.triggerCompletion(r,s.args[1]);return}if(this.selectedItem&&!t.insertChar&&et(i.line,0,i.col)+this.selectedItem.word==o){this.hasInsert=!0;return}await this.filterResults()}async onTextChangedI(e,t){if(!y.isAttached(e)||this.config.autoTrigger==="none"||this.option&&mte(e,this.pretext,t,this.option)&&(this.stop(),!t.insertChar)||(this.changedtick=t.changedtick,t.pre===this.pretext))return;this.triggerTimer&&clearTimeout(this.triggerTimer);let i=this.pretext=t.pre,r=y.getDocument(e);if(this.activated&&this.config.acceptSuggestionOnCommitCharacter&&uc(this.previousItem)){let o=this.getCompleteItem(this.previousItem),s=i.slice(-1);if(Lt.shouldCommit(o,s)){fs.debug("commit by commit character.");let{linenr:a,col:l,line:u,colnr:c}=this.option;this.stop();let{word:h}=o,d=`${u.slice(0,l)}${h}${t.insertChar}${u.slice(c-1)}`;await this.nvim.call("coc#util#setline",[a,d]);let g=l+h.length+2;await this.nvim.call("cursor",[a,g]),await r.patchChange();return}}if(t.insertChar&&!hc(t.insertChar)){let o=r.getVar("disabled_sources",[]),s=Lt.getTriggerSources(i,r.filetype,r.uri,o);if(s.length>0){await this.triggerCompletion(r,t,s);return}}if(!this.complete){if(!t.insertChar)return;await this.triggerCompletion(r,t);return}if(t.insertChar&&this.complete.isEmpty){this.triggerTimer=setTimeout(async()=>{await this.triggerCompletion(r,t)},200);return}await this.filterResults()}async triggerCompletion(e,t,i){let{minTriggerInputLength:r}=this.config,{pre:o}=t;if(!i&&!this.shouldTrigger(e,o))return!1;if(e.getVar("suggest_disable"))return fs.warn(`Completion of ${e.bufnr} disabled by b:coc_suggest_disable`),!1;let a=this.getInput(e,o),l={input:a,line:t.line,filetype:e.filetype,linenr:t.lnum,col:t.col-1-Q(a),colnr:t.col,bufnr:e.bufnr,word:a+this.getPrependWord(e,t.line.slice(o.length)),changedtick:t.changedtick,indentkeys:e.indentkeys,synname:"",filepath:e.schema==="file"?O.parse(e.uri).fsPath:"",triggerCharacter:o.length?o.slice(-1):void 0,blacklist:e.getVar("suggest_blacklist",[]),disabled:e.getVar("disabled_sources",[])};return i==null&&a.length0&&l.input.length>0&&this.config.ignoreRegexps.some(c=>{if(new RegExp(c).test(l.input))return fs.warn(`Suggest disabled by ignore regexp: ${c}`),!0})?!1:(await this.startCompletion(l,i),!0)}async onCompleteDone(e){let{document:t,complete:i}=this;if(!t||!uc(e))return;let r=i.input,o=Object.assign({},this.option),s=this.getCompleteItem(e);if(this.stop(),!s)return;this.mru.add(r,s);let a=await fte();if(typeof a=="string"||a&&(a.lnum!=o.linenr||a.pre!==et(o.line,0,o.col)+e.word)||await E.race(["InsertCharPre","CursorMovedI"],20))return;let u=new rR.CancellationTokenSource,{token:c}=u;await this.doCompleteResolve(s,u),!c.isCancellationRequested&&await this.doCompleteDone(s,o)}doCompleteResolve(e,t){let i=Lt.getSource(e.source);return new Promise(r=>{if(i&&typeof i.onCompleteResolve=="function"){let o=setTimeout(()=>{t.cancel(),fs.warn(`Resolve timeout after 500ms: ${i.name}`),r()},500);Promise.resolve(i.onCompleteResolve(e,t.token)).then(()=>{clearTimeout(o),r()},s=>{fs.error(`Error on complete resolve: ${s.message}`,s),clearTimeout(o),r()})}else r()})}async doCompleteDone(e,t){let i=Lt.getSource(e.source);i&&typeof i.onCompleteDone=="function"&&await Promise.resolve(i.onCompleteDone(e,t))}async onInsertEnter(e){if(!this.config.triggerAfterInsertEnter||this.config.autoTrigger!=="always"||!y.isAttached(e))return;let t=await this.nvim.call("coc#util#change_info");if(t.pre=et(t.line,0,t.col-1),!t.pre)return;let i=y.getDocument(e);await this.triggerCompletion(i,t)}shouldTrigger(e,t){let{autoTrigger:i}=this.config;return i=="none"?!1:Lt.shouldTrigger(t,e.filetype,e.uri)?!0:i==="always"}async onPumChange(){if(!this.popupEvent)return;let{col:e,row:t,height:i,width:r,scrollbar:o}=this.popupEvent,s={col:e,row:t,height:i,width:r,scrollbar:o},a=this.getCompleteItem(this.selectedItem);if(!a){this.floating.close();return}let l=this.resolveTokenSource=new rR.CancellationTokenSource,{token:u}=l;if(await this.doCompleteResolve(a,l),u.isCancellationRequested)return;let c=a.documentation;if(!c&&a.info){let{info:h}=a;c=[{filetype:/^[\w-\s.,\t]+$/.test(h)?"txt":this.document.filetype,content:h}]}if(!!this.config.floatEnable)if(!c||c.length==0)this.floating.close();else{let h=y.getConfiguration("coc.preferences").get("excludeImageLinksInMarkdownDocument"),d=Object.assign({},this.config.floatConfig,{excludeImages:h});await this.floating.show(c,s,d)}}start(){this.activated||(this.activated=!0,this.config.keepCompleteopt||this.nvim.command(`noa set completeopt=${this.completeOpt}`,!0))}cancelResolve(){this.resolveTokenSource&&(this.resolveTokenSource.cancel(),this.resolveTokenSource.dispose(),this.resolveTokenSource=null)}stop(){if(E.completing=!1,this.cancel(),this.activated){this.activated=!1;let{nvim:e,config:t}=this,i=t.keepCompleteopt?"":y.completeOpt;e.call("coc#_cancel",[1,i],!0),e.redrawVim()}}getInput(e,t){let{asciiCharactersOnly:i}=this.config,r=0;for(let o=t.length-1;o>=0;o--){let s=t[o];if(e.isWord(s)&&(i?s.charCodeAt(0)<255:!0))r+=1;else break}return r==0?"":t.slice(-r)}getPrependWord(e,t){let i=0;for(let r=0;r0&&e.blacklist&&e.blacklist.includes(a)?null:a}async filterResults(){let{complete:e}=this,t=this.getResumeInput();if(t==null){this.stop();return}let i=await e.filterResults(t);if(i!==void 0){if(i.length==0){e.isCompleting||this.stop();return}this.showCompletion(i)}}get completeOpt(){let{noselect:e,enablePreview:t}=this.config,i=t&&!y.env.pumevent?",preview":"";return e?`noselect,menuone${i}`:`noinsert,menuone${i}`}getCompleteItem(e){return!this.complete||!uc(e)?null:this.complete.resolveCompletionItem(e)}cancel(){this.complete!=null&&(this.complete.dispose(),this.complete=null),this.triggerTimer!=null&&(clearTimeout(this.triggerTimer),this.triggerTimer=null),this.cancelResolve(),this.previousItem=void 0,this.pretext=void 0,this.hasInsert=!1}dispose(){this.cancelResolve(),Z(this.disposables)}},Ih=new bte;wb();var Oh=C(H());yt();ke();V();var Ah=C(Lg()),ps=C(H());Ec();z();yt();Ar();ke();V();Kr();yt();Ar();var oR=C(H());Jt();Ar();function sR(n,e){let t=[];for(let i=e.start.line;i<=e.end.line;i++){let r=n.getline(i)||"",o=i==e.start.line?e.start.character:0,s=i==e.end.line?e.end.character:r.length;o!=s&&t.push(oR.Range.create(i,o,i,s))}return t}function yte(n,e){let{start:t,end:i}=Zb(e),r=t.characterr}};var cp=q()("cursors-session"),HD=class{constructor(e,t){this.nvim=e;this.doc=t;this._onDidCancel=new ps.Emitter;this._onDidUpdate=new ps.Emitter;this.onDidCancel=this._onDidCancel.event;this.onDidUpdate=this._onDidUpdate.event;this.disposables=[];this.ranges=[];this.activated=!0;this.changing=!1;t.buffer.setVar("coc_cursors_activated",1,!0),this.loadConfig();let{cancelKey:i,nextKey:r,previousKey:o}=this.config;this.disposables.push(y.registerLocalKeymap("n",i,()=>{this.cancel()})),this.disposables.push(y.registerLocalKeymap("n",r,async()=>{let s=this.ranges.map(u=>u.range),a=await k.getCursorPosition();for(let u of s)if(De(u.start,a)>0){await k.moveTo(u.start);return}let l=this.config.wrapscan;s.length&&l&&await k.moveTo(s[0].start)})),this.disposables.push(y.registerLocalKeymap("n",o,async()=>{let s=this.ranges.map(u=>u.range),a=await k.getCursorPosition();for(let u=s.length-1;u>=0;u--){let c=s[u];if(De(c.end,a)<0){await k.moveTo(c.start);return}}let l=this.config.wrapscan;s.length&&l&&await k.moveTo(s[s.length-1].start)})),this.doc.onDocumentChange(async s=>{await this.onChange(s),this.activated&&!this.changing&&this._onDidUpdate.fire()},this,this.disposables)}loadConfig(){let e=y.getConfiguration("cursors",this.doc.uri);this.config={nextKey:e.get("nextKey",""),previousKey:e.get("previousKey",""),cancelKey:e.get("cancelKey",""),wrapscan:e.get("wrapscan",!0)}}addRange(e){let{ranges:t}=this,i=t.findIndex(r=>Dl(r.range,e));i!==-1?t.splice(i,1):(this.createRange(e),t.sort((r,o)=>De(r.range.start,o.range.start))),this.ranges.length==0?this.cancel():this.doHighlights()}addRanges(e){this.doc._forceSync(),this.ranges=this.ranges.filter(t=>!e.some(i=>Sc(i,t.range)));for(let t of e)this.createRange(t);return this.ranges.sort((t,i)=>De(t.range.start,i.range.start)),this.doHighlights(),!0}createRange(e){let{textDocument:t}=this.doc,{line:i,character:r}=e.start,o=t.getText(e);this.ranges.push(new jh(i,r,o))}async onChange(e){if(!this.activated||this.changing)return;if(e.contentChanges.length===0){this.doHighlights();return}let t=e.contentChanges[0],{text:i,range:r}=t,o=this.ranges.filter(s=>!(!Dl(r,s.range)||yb(r,s.range)&&(i.includes(` -`)||!Ct(r))));if(Ct(r)&&o.length>0&&(o=o.slice(0,1)),o.length==0)cp.debug("no affected ranges"),this.ranges.forEach(s=>{s.adjustFromEdit({range:r,newText:i})}),this.doHighlights();else if(o.length==1&&Pi(r,o[0].range)){if(cp.debug("affected single range"),i.includes(` -`)){this.cancel();return}await this.applySingleEdit(o[0],{range:r,newText:i})}else if(!i.length||!this.validChange(r,i)){cp.debug("filter affected ranges.");let s=this.ranges.filter(a=>!o.includes(a));s.length>0?(this.ranges=s,s.forEach(a=>{a.adjustFromEdit({range:r,newText:i})}),this.doHighlights()):this.cancel()}else{cp.debug("Check undo & redo");let s=this.ranges[0],a=this.ranges[this.ranges.length-1],l=e.originalLines.slice(s.line,a.line+1),u=this.doc.textDocument.lines.slice(s.line,a.line+1);this.applyComposedEdit(l,u)}}validChange(e,t){if(ra(ps.TextEdit.replace(e,t))!=0||!Pi(e,this.range))return!1;let i=this.ranges[0],r=this.ranges[this.ranges.length-1];return!(e.start.line!=i.position.line||e.end.line!=r.position.line)}get range(){let e=this.ranges[0],t=this.ranges[this.ranges.length-1];return ps.Range.create(e.position,t.range.end)}doHighlights(){let{nvim:e,ranges:t,doc:i}=this,r=i.buffer,o=[];t.forEach(s=>{i.addHighlights(o,"CocCursorRange",s.range,{combine:!1,start_incl:!0,end_incl:!0})}),o.sort((s,a)=>s.lnum!=a.lnum?s.lnum-a.lnum:s.colStart!=a.colStart?s.colStart-a.colStart:0),r.updateHighlights("cursors",o,{priority:4096}),e.redrawVim()}get currentRanges(){return this.ranges.map(e=>e.range)}cancel(){if(!this.activated)return;cp.debug("cursors cancel");let{nvim:e,doc:t}=this,i=t.buffer;this.activated=!1,this.ranges=[],e.pauseNotification(),i.clearNamespace("cursors"),i.setVar("coc_cursors_activated",0,!0),e.resumeNotification(!0,!0),this._onDidUpdate.fire(),this._onDidCancel.fire()}dispose(){!this.doc||(this._onDidCancel.dispose(),this._onDidUpdate.dispose(),Z(this.disposables),this.ranges=[],this.doc=null)}async applySingleEdit(e,t){let{doc:i,ranges:r}=this;r.filter(u=>u!==e&&u.position.line==e.position.line).forEach(u=>u.adjustFromEdit(t));let s=BD(e,t.range,t.newText),a=lp(s);r.forEach(u=>u.applyChange(s));let l=r.filter(u=>u!==e).map(u=>u.textEdit);if(this.changing=!0,await i.applyEdits(l,!0,!0),this.changing=!1,a!=0)for(let u of r){let c=up(u,this.ranges,e);u.move(c*a)}this.doHighlights()}applyComposedEdit(e,t){var v,w,D;let i=(0,Ah.default)(e[0],t[0]),r=this.ranges[0],o=r.position.character,s=r.position.line,a=r.text.length,l=i[0];if(o>0&&(l[0]!=Ah.default.EQUAL||!l[1].startsWith(e[0].slice(0,o))))return this.cancel(),!1;let u=0,c=!1,h=[];for(let S=0;S0&&(L=L.slice(o)),F==Ah.default.EQUAL){if(u+=L.length,u>a)break}else if(F==Ah.default.DELETE){let j=u;if(u+=L.length,u>a){c=!0;break}h.push({offset:j,remove:L})}else{let j=i[S-1];j&&j[0]==Ah.default.DELETE?h[h.length-1].add=L:h.push({offset:u,add:L})}}if(c||!h.length)return this.cancel(),!1;let d=jn.create("file:///1","",0,e.join(` -`)),g;if(h.length==1)g={offset:h[0].offset,remove:h[0].remove?h[0].remove.length:0,insert:(v=h[0].add)!=null?v:""};else if(DTe(h,a))g={prepend:[h[0].remove?h[0].remove.length:0,(w=h[0].add)!=null?w:""],append:[h[1].remove?h[1].remove.length:0,(D=h[1].add)!=null?D:""]};else{let S=r.text,F="",L="",j=h[0].offset;for(let W of h){if(W.offset>j+F.length){let B=S.slice(j+F.length,W.offset);F+=B,L+=B}W.add&&(L+=W.add),W.remove&&(F+=W.remove)}g={offset:j,remove:F.length,insert:L}}let f=this.ranges.map(S=>{let F=S.position.line-s,{start:L,end:j}=S.range,W=ps.Range.create(F,L.character,F,j.character);return S.applyChange(g),ps.TextEdit.replace(W,S.text)});if(jn.applyEdits(d,f)!==t.join(` -`))return this.cancel(),!1;let b=lp(g);if(b!=0)for(let S of this.ranges){let F=up(S,this.ranges);S.move(F*b)}return this.doHighlights(),!0}};function DTe(n,e){return!(n.length!=2||n[0].offset!=0||n[1].offset+(n[1].remove?n[1].remove.length:0)!==e)}var vit=q()("cursors"),qD=class{constructor(e){this.nvim=e;this.sessionsMap=new Map;this.disposables=[];y.onDidCloseTextDocument(t=>{let i=this.getSession(t.bufnr);!i||(this.sessionsMap.delete(t.bufnr),i.cancel())},null,this.disposables)}cancel(e){let t=y.getDocument(e);if(!t)return;let i=this.getSession(t.bufnr);i&&i.cancel()}getSession(e){return this.sessionsMap.get(e)}async isActivated(){let e=await this.nvim.call("bufnr",["%"]);return this.sessionsMap.get(e)!=null}async select(e,t,i){let r=y.getAttachedDocument(e),{nvim:o}=this,s=this.createSession(r),a=await k.getCursorPosition(),l;if(t=="operator"){await o.command(`normal! ${i=="line"?"'[":"`["}`);let u=await k.getCursorPosition();await o.command(`normal! ${i=="line"?"']":"`]"}`);let c=await k.getCursorPosition();await k.moveTo(a);let h=De(u,c);if(h==0)return;h>=0&&([u,c]=[c,u]);let d=r.getline(c.line);c.character(coc-cursors-${t})", -1)`)}else if(t=="position"){let u=r.getline(a.line);a.character>=u.length?l=Oh.Range.create(a.line,u.length-1,a.line,u.length):l=Oh.Range.create(a.line,a.character,a.line,a.character+1),s.addRange(l),await o.command(`silent! call repeat#set("\\(coc-cursors-${t})", -1)`)}else if(t=="range"){await o.call("eval",'feedkeys("\\", "in")');let u=await k.getSelectedRange(i);if(!u)return;let c=i==""?yte(r,u):sR(r,u);for(let h of c)s.addRange(h)}else throw new Error(`select kind "${t}" not supported`)}createSession(e){let{bufnr:t}=e,i=this.getSession(t);return i||(i=new HD(this.nvim,e),this.sessionsMap.set(t,i),i.onDidCancel(()=>{i.dispose(),this.sessionsMap.delete(t)}),i)}async addRanges(e){let{nvim:t}=this,i=await t.call("bufnr",["%"]),r=y.getAttachedDocument(i);return this.createSession(r).addRanges(e)}reset(){for(let e of this.sessionsMap.values())e.cancel();this.sessionsMap.clear()}};eu();le();yo();var wx=C(H());le();Ce();z();ke();V();var Mh=C(H());wi();eu();Ce();ke();V();var Eit=q()("handler-codeActions"),YD=class{constructor(e,t){this.nvim=e;this.handler=t;t.addDisposable(oe.registerCommand("editor.action.organizeImport",async i=>{await this.organizeImport(i)})),oe.titles.set("editor.action.organizeImport","run organize import code action.")}async codeActionRange(e,t,i){let{doc:r}=await this.handler.getCurrentState();await r.synchronize();let o=r.getline(t-1),s=Mh.Range.create(e-1,0,t-1,o.length),a=await this.getCodeActions(r,s,i?[i]:null);if(a=a.filter(c=>!c.disabled),!a||a.length==0){k.showMessage(`No${i?" "+i:""} code action available`,"warning");return}let l=await k.showMenuPicker(a.map(c=>c.title),"Choose action"),u=a[l];u&&await this.applyCodeAction(u)}async organizeImport(e){let{doc:t}=await this.handler.getCurrentState();if(e&&t.bufnr!=e)return;await t.synchronize();let i=await this.getCodeActions(t,void 0,[Mh.CodeActionKind.SourceOrganizeImports]);if(i&&i.length){await this.applyCodeAction(i[0]);return}throw new Error("Organize import action not found.")}async getCodeActions(e,t,i){t=t||Mh.Range.create(0,0,e.lineCount,0);let o={diagnostics:Ft.getDiagnosticsInRange(e.textDocument,t)};i&&Array.isArray(i)&&(o.only=i);let s=await this.handler.withRequestToken("code action",a=>A.getCodeActions(e.textDocument,t,o,a));return!s||s.length==0?[]:(s.sort((a,l)=>a.isPreferred&&!l.isPreferred?-1:l.isPreferred&&!a.isPreferred||a.disabled&&!l.disabled?1:l.disabled&&!a.disabled?-1:0),s)}get floatActions(){return y.floatSupported?y.getConfiguration("coc.preferences").get("floatActions",!0):!1}async doCodeAction(e,t){let{doc:i}=await this.handler.getCurrentState(),r;e&&(r=await k.getSelectedRange(e)),await i.synchronize();let o=await this.getCodeActions(i,r,Array.isArray(t)?t:null);if(typeof t=="string"?o=o.filter(l=>l.title==t||l.command&&l.command.title==t):Array.isArray(t)&&(o=o.filter(l=>t.some(u=>l.kind&&l.kind.startsWith(u)))),!o||o.length==0){k.showMessage(`No${t?" "+t:""} code action available`,"warning");return}if(t&&o.length==1&&!o[0].disabled){await this.applyCodeAction(o[0]);return}this.floatActions||(o=o.filter(l=>!l.disabled));let s=this.floatActions?await k.showMenuPicker(o.map(l=>({text:l.title,disabled:l.disabled})),"Choose action"):await k.showQuickpick(o.map(l=>l.title)),a=o[s];a&&await this.applyCodeAction(a)}async getCurrentCodeActions(e,t){let{doc:i}=await this.handler.getCurrentState(),r;return e&&(r=await k.getSelectedRange(e)),(await this.getCodeActions(i,r,t)).filter(s=>!s.disabled)}async doQuickfix(){let e=await this.getCurrentCodeActions("line",[Mh.CodeActionKind.QuickFix]);if(!e||e.length==0)throw new Error("No quickfix action available");await this.applyCodeAction(e[0]),this.nvim.command('silent! call repeat#set("\\(coc-fix-current)", -1)',!0)}async applyCodeAction(e){if(e.disabled)throw new Error(`Action "${e.title}" is disabled: ${e.disabled.reason}`);if(!e.providerId)throw new Error("providerId not found with codeAction");let t=await this.handler.withRequestToken("resolve codeAction",o=>A.resolveCodeAction(e,o)),{edit:i,command:r}=t;i&&await y.applyEdit(i),r&&await oe.execute(r)}};le();z();V();var vte=C(Ei()),lR=C(H());wi();Ce();ke();V();var Ait=q()("codelens-buffer"),WD=class{constructor(e,t,i){this.nvim=e;this.document=t;this.config=i;this.resolveCodeLens=(0,vte.default)(()=>{this._resolveCodeLenses()},global.__TEST__?20:200),this.fetchCodeLenses()}get bufnr(){return this.document.bufnr}onChange(e){e.contentChanges.length===0&&this.codeLenses!=null?this._resolveCodeLenses():(this.cancel(),this.fetchCodeLenses())}get currentCodeLens(){var e;return(e=this.codeLenses)==null?void 0:e.codeLenses}get enabled(){var e;return(e=this.document)!=null&&e.attached?this.config.enabled&&A.hasProvider("codeLens",this.document.textDocument):!1}async forceFetch(){!this.enabled||(await this.document.synchronize(),this.cancel(),await this.fetchCodeLenses())}async fetchCodeLenses(){var t;if(!this.enabled)return;if(this.cancel(),!(((t=this.codeLenses)==null?void 0:t.version)==this.document.version)){let{textDocument:i}=this.document,r=i.version,s=(this.tokenSource=new lR.CancellationTokenSource).token,a=await A.getCodeLens(i,s);if(a=Array.isArray(a)?a.filter(l=>l!=null):[],this.tokenSource=void 0,s.isCancellationRequested||a.length==0)return;this.codeLenses={version:r,codeLenses:a}}await this._resolveCodeLenses()}async _resolveCodeLenses(){if(!this.enabled||!this.codeLenses||this.isChanged||!y.has("nvim-0.4.0"))return;let{codeLenses:e}=this.codeLenses,[t,i,r]=await this.nvim.eval("[bufnr('%'),line('w0'),line('w$')]");if(!(this.isChanged||t!=this.bufnr)){if(this.resolveTokenSource&&this.resolveTokenSource.cancel(),e=e.filter(o=>{let s=o.range.start.line+1;return s>=i&&s<=r}),e.length){let s=(this.resolveTokenSource=new lR.CancellationTokenSource).token;if(await Promise.all(e.map(a=>A.resolveCodeLens(a,s))),this.resolveTokenSource=void 0,s.isCancellationRequested||this.isChanged)return}this.nvim.pauseNotification(),this.clear(i-1,r),this.setVirtualText(e),this.nvim.resumeNotification(!1,!0)}}get isChanged(){if(!this.codeLenses||this.document.dirty)return!0;let{version:e}=this.codeLenses;return this.document.textDocument.version!==e}setVirtualText(e){let{document:t}=this;if(!t||!e.length)return;let i=new Map,{position:r}=this.config;for(let o of e){let{range:s,command:a}=o;if(!a)continue;let{line:l}=s.start;i.has(l)?i.get(l).push(o):i.set(l,[o])}for(let o of i.keys()){let a=i.get(o).map(h=>h.command);a=a.filter(h=>h&&h.title);let l=[],u=a.length;for(let h=0;h0&&l.unshift([g,"Normal"]),h.setExtMark(c,o,0,{virt_lines:[l],virt_lines_above:!0})}else h.setExtMark(c,o,0,{hl_mode:"combine",virt_text:l,virt_text_pos:r})}else this.nvim.call("nvim_buf_set_virtual_text",[this.bufnr,c,o,l,{}],!0)}}clear(e=0,t=-1){let{srcId:i}=this.config;if(!i)return;this.nvim.createBuffer(this.bufnr).clearNamespace(i,e,t)}async doAction(e){var i;let t=xTe(e,(i=this.codeLenses)==null?void 0:i.codeLenses);if(t.length==1)await oe.execute(t[0]);else if(t.length>1){let r=await k.showMenuPicker(t.map(o=>o.title));r!=-1&&await oe.execute(t[r])}}cancel(){this.resolveCodeLens.clear(),this.resolveTokenSource&&(this.resolveTokenSource.cancel(),this.resolveTokenSource.dispose(),this.resolveTokenSource=null),this.tokenSource&&(this.tokenSource.cancel(),this.tokenSource.dispose(),this.tokenSource=null)}dispose(){this.cancel(),this.codeLenses=void 0}};function xTe(n,e){if(!(e!=null&&e.length))return[];let t=[];for(let i of e){let{range:r,command:o}=i;!o||n==r.start.line&&t.push(o)}return t}var Yit=q()("codelens"),ZD=class{constructor(e){this.nvim=e;this.disposables=[];this.setConfiguration(),this.nvim.createNamespace("coc-codelens").then(t=>{this.config.srcId=t}).logError(),y.onDidChangeConfiguration(this.setConfiguration,this,this.disposables),this.buffers=y.registerBufferSync(t=>{if(t.buftype=="")return new WD(e,t,this.config)}),this.disposables.push(this.buffers),this.listen()}listen(){E.on("CursorMoved",e=>{let t=this.buffers.getItem(e);t&&t.resolveCodeLens()},null,this.disposables),E.on("CursorHold",async e=>{let t=this.buffers.getItem(e);t&&await t.forceFetch()},this,this.disposables)}async checkProvider(){for(let e of this.buffers.items)await e.forceFetch()}setConfiguration(e){if(e&&!e.affectsConfiguration("codeLens"))return;let t=y.getConfiguration("codeLens"),i=this.nvim.hasFunction("nvim_buf_set_virtual_text")&&t.get("enable",!1);this.config=Object.assign(this.config||{},{enabled:i,position:t.get("position","top"),separator:t.get("separator","\u2023"),subseparator:t.get("subseparator"," ")})}async doAction(){let[e,t]=await this.nvim.eval('[bufnr("%"),line(".")-1]'),i=this.buffers.getItem(e);await(i==null?void 0:i.doAction(t))}dispose(){Z(this.disposables)}};var Ste=C(H());wi();yo();Ce();z();function uR(n){return n.length==1?`0${n}`:n}function hp(n){let e=CTe(n);return`${uR(e.red.toString(16))}${uR(e.green.toString(16))}${uR(e.blue.toString(16))}`}function CTe(n){let{red:e,green:t,blue:i}=n;return{red:Math.round(e*255),green:Math.round(t*255),blue:Math.round(i*255)}}function wte(n){let e=[n.red,n.green,n.blue],t=[];for(let r=0;r{this.doHighlight().logError()},global.hasOwnProperty("__TEST__")?10:300),this.highlight()}get enabled(){let{filetypes:e}=this.config,t=y.getDocument(this.bufnr);return t?e.includes("*")?!0:A.hasProvider("documentColor",t.textDocument)?e.includes(t.filetype):!1:!1}onChange(){this.cancel(),this.highlight()}get buffer(){return this.nvim.createBuffer(this.bufnr)}get colors(){return this._colors}hasColor(){return this._colors.length>0}async doHighlight(){if(!this.enabled)return;let{nvim:e}=this,t=y.getDocument(this.bufnr);this.tokenSource=new Cte.CancellationTokenSource;let{token:i}=this.tokenSource,r;if(r=await A.provideDocumentColors(t.textDocument,i),i.isCancellationRequested)return;r=r||[],r.sort((a,l)=>De(a.range.start,l.range.start)),this._colors=r;let o=[];r.forEach(a=>{let l=STe(a.color);t.addHighlights(o,l,a.range,{combine:!1})});let s=await k.diffHighlights(this.bufnr,Dte,o);i.isCancellationRequested||!s||(e.pauseNotification(),this.defineColors(r),e.resumeNotification(!1,!0),await k.applyDiffHighlights(this.bufnr,Dte,this.config.highlightPriority,s,!0))}defineColors(e){for(let t of e){let i=hp(t.color);this.usedColors.has(i)||(this.nvim.command(`hi BG${i} guibg=#${i} guifg=#${wte(t.color)?"ffffff":"000000"}`,!0),this.usedColors.add(i))}}hasColorAtPosition(e){return this.colors.some(t=>ut(e,t.range)==0)}clearHighlight(){this.highlight.clear(),this._colors=[],this.buffer.clearNamespace("color")}cancel(){this.tokenSource&&(this.tokenSource.cancel(),this.tokenSource.dispose(),this.tokenSource=null)}dispose(){this._colors=[],this.highlight.clear(),this.cancel()}};function STe(n){return`BG${hp(n)}`}var fnt=q()("colors-index"),$D=class{constructor(e,t){this.nvim=e;this.handler=t;this.disposables=[];this.setConfiguration();let i=new Set;this.highlighters=y.registerBufferSync(r=>new JD(this.nvim,r.bufnr,this.config,i)),ye.onDidActiveExtension(()=>{this.highlightAll()},null,this.disposables),y.onDidChangeConfiguration(this.setConfiguration,this,this.disposables),this.disposables.push(oe.registerCommand("editor.action.pickColor",()=>this.pickColor())),oe.titles.set("editor.action.pickColor","pick color from system color picker when possible."),this.disposables.push(oe.registerCommand("editor.action.colorPresentation",()=>this.pickPresentation())),oe.titles.set("editor.action.colorPresentation","change color presentation.")}setConfiguration(e){if(!e||e.affectsConfiguration("colors")){let t=y.getConfiguration("colors");this.config=Object.assign(this.config||{},{filetypes:t.get("filetypes",[]),highlightPriority:t.get("highlightPriority",1e3)})}}async pickPresentation(){let{doc:e}=await this.handler.getCurrentState();this.handler.checkProvier("documentColor",e.textDocument);let t=await this.getColorInformation(e.bufnr);if(!t)return k.showMessage("Color not found at current position","warning");let i=new Ste.CancellationTokenSource,r=await A.provideColorPresentations(t,e.textDocument,i.token);if(!(r!=null&&r.length))return;let o=await k.showMenuPicker(r.map(c=>c.label),"choose color:");if(o==-1)return;let s=r[o],{textEdit:a,additionalTextEdits:l,label:u}=s;a||(a={range:t.range,newText:u}),await e.applyEdits([a]),l&&await e.applyEdits(l)}async pickColor(){let{doc:e}=await this.handler.getCurrentState();this.handler.checkProvier("documentColor",e.textDocument);let t=await this.getColorInformation(e.bufnr);if(!t)return k.showMessage("Color not found at current position","warning");let{color:i}=t,r=[(i.red*255).toFixed(0),(i.green*255).toFixed(0),(i.blue*255).toFixed(0)],o=await this.nvim.call("coc#color#pick_color",[r]);if(!o)return;let s=hp({red:o[0]/65535,green:o[1]/65535,blue:o[2]/65535,alpha:1});await e.applyEdits([{range:t.range,newText:`#${s}`}])}isEnabled(e){let t=this.highlighters.getItem(e);return t!=null&&t.enabled===!0}clearHighlight(e){let t=this.highlighters.getItem(e);t&&t.clearHighlight()}hasColor(e){let t=this.highlighters.getItem(e);return t?t.hasColor():!1}hasColorAtPosition(e,t){let i=this.highlighters.getItem(e);return i?i.hasColorAtPosition(t):!1}highlightAll(){for(let e of this.highlighters.items)e.highlight()}async doHighlight(e){let t=this.highlighters.getItem(e);t&&await t.doHighlight()}async getColorInformation(e){let t=this.highlighters.getItem(e);if(!t)return null;let i=await k.getCursorPosition();for(let r of t.colors){let{range:o}=r,{start:s,end:a}=o;if(i.line==s.line&&i.character>=s.character&&i.character<=a.character)return r}return null}dispose(){this.highlighters.dispose(),Z(this.disposables)}};wi();oD();var ynt=q()("handler-commands"),XD=class{constructor(e,t){this.nvim=e;this.env=t;for(let i of t.vimCommands)this.addVimCommand(i)}addVimCommand(e){let t=`vim.${e.id}`;oe.registerCommand(t,()=>{this.nvim.command(e.cmd,!0),this.nvim.redrawVim()}),e.title&&oe.titles.set(t,e.title)}getCommandList(){return oe.commandList.map(e=>e.id)}async repeat(){await oe.repeatCommand()}async runCommand(e,...t){if(e)return await oe.fireCommand(e,...t);await Di.start(["commands"])}getCommands(){let e=oe.commandList,t=[],{titles:i}=oe;for(let r of e)t.push({id:r.id,title:i.get(r.id)||""});return t}};Ce();var UD=class{constructor(e,t){this.nvim=e;this.handler=t}async fold(e){let{doc:t,winid:i}=await this.handler.getCurrentState();this.handler.checkProvier("foldingRange",t.textDocument),await t.synchronize();let r=this.nvim.createWindow(i),o=await this.nvim.eval("&foldlevel"),s=await this.handler.withRequestToken("foldingrange",a=>A.provideFoldingRanges(t.textDocument,{},a),!0);if(!s||!s.length)return!1;e&&(s=s.filter(a=>a.kind==e)),s.sort((a,l)=>l.startLine-a.startLine),this.nvim.pauseNotification(),r.setOption("foldmethod","manual",!0),this.nvim.command("normal! zE",!0);for(let a of s){let{startLine:l,endLine:u}=a,c=`${l+1}, ${u+1}fold`;this.nvim.command(c,!0)}return r.setOption("foldenable",!0,!0),r.setOption("foldlevel",o,!0),await this.nvim.resumeNotification(!0),!0}};var ms=C(H());wi();le();Ce();iu();Pe();ke();V();var cR=q()("handler-format"),Tte=new Map([["<",">"],[">","<"],["{","}"],["[","]"],["(",")"]]),GD=class{constructor(e,t){this.nvim=e;this.handler=t;this.loadPreferences(),t.addDisposable(y.onDidChangeConfiguration(this.loadPreferences,this)),t.addDisposable(y.onWillSaveTextDocument(o=>{let{languageId:s}=o.document,a=this.preferences.formatOnSaveFiletypes;if(a.includes(s)||a.includes("*")){let l=async()=>{if(!A.hasFormatProvider(o.document)){cR.warn(`Format provider not found for ${o.document.uri}`);return}let u=await y.getFormatOptions(o.document.uri),c=new ms.CancellationTokenSource,h,d=new Promise(p=>{h=setTimeout(()=>{cR.warn(`Format on save ${o.document.uri} timeout after 0.5s`),c.cancel(),p(void 0)},500)}),g=A.provideDocumentFormattingEdits(o.document,u,c.token),f=await Promise.race([d,g]);return clearTimeout(h),Array.isArray(f)?f:void 0};o.waitUntil(l())}}));let i,r;t.addDisposable(E.on("Enter",async o=>{i=Date.now(),r=o})),t.addDisposable(E.on("CursorMovedI",async o=>{o==r&&Date.now()-i<100&&(r=void 0,await this.handleEnter(o))})),t.addDisposable(E.on("TextInsert",async(o,s,a)=>{E.pumvisible||await this.tryFormatOnType(a,o)})),t.addDisposable(oe.registerCommand("editor.action.formatDocument",async o=>{let s=o?y.getDocument(o):(await this.handler.getCurrentState()).doc;await this.documentFormat(s)})),oe.titles.set("editor.action.formatDocument","Format Document")}loadPreferences(e){if(!e||e.affectsConfiguration("coc.preferences")){let t=y.getConfiguration("coc.preferences");this.preferences={formatOnType:t.get("formatOnType",!1),formatOnSaveFiletypes:t.get("formatOnSaveFiletypes",[]),formatOnTypeFiletypes:t.get("formatOnTypeFiletypes",[]),bracketEnterImprove:t.get("bracketEnterImprove",!0)}}}async tryFormatOnType(e,t,i=!1){if(!e||hc(e)||!this.preferences.formatOnType||Ut.getSession(t)!=null)return;let r=y.getDocument(t);if(!r||!r.attached||r.isCommandLine)return;let o=this.preferences.formatOnTypeFiletypes;if(o.length&&!o.includes(r.filetype)&&!o.includes("*"))return;if(!A.hasProvider("formatOnType",r.textDocument)){cR.warn(`Format on type provider not found for buffer: ${r.uri}`);return}if(!A.canFormatOnType(e,r.textDocument))return;let s,a=await this.handler.withRequestToken("Format on type",async l=>{s=await k.getCursorPosition();let u=r.getline(s.line-1);if(!(i&&/^\s*$/.test(u)))return await r.synchronize(),await A.provideDocumentOnTypeEdits(e,r.textDocument,s,l)});!a||!a.length||await r.applyEdits(a,!1,!0)}async formatCurrentBuffer(){let{doc:e}=await this.handler.getCurrentState();return await this.documentFormat(e)}async formatCurrentRange(e){let{doc:t}=await this.handler.getCurrentState();return await this.documentRangeFormat(t,e)}async documentFormat(e){if(await e.synchronize(),!A.hasFormatProvider(e.textDocument))throw new Error(`Format provider not found for buffer: ${e.bufnr}`);let t=await y.getFormatOptions(e.uri),i=await this.handler.withRequestToken("format",r=>A.provideDocumentFormattingEdits(e.textDocument,t,r));return i&&i.length>0?(await e.applyEdits(i,!1,!0),!0):!1}async handleEnter(e){let{nvim:t}=this,{bracketEnterImprove:i}=this.preferences;if(await this.tryFormatOnType(` -`,e),i){let r=await t.call("line",".")-1,o=y.getDocument(e);if(!o)return;await o.patchChange();let s=o.getline(r-1),a=o.getline(r),l=s[s.length-1];if(l&&Tte.has(l)){let u=a.trim()[0];if(u&&Tte.get(l)==u){let c=[],h=await y.getFormatOptions(o.uri),d=h.insertSpaces?" ".repeat(h.tabSize):" ",g=a.match(/^\s*/)[0],f=ms.Position.create(r-1,s.length);if(o.filetype=="vim"){let p=` -`+g+d;c.push({range:ms.Range.create(r,g.length,r,g.length),newText:" \\ "}),p=p+"\\ ",c.push({range:ms.Range.create(f,f),newText:p}),await o.applyEdits(c),await k.moveTo(ms.Position.create(r,p.length-1))}else await t.eval(`feedkeys("\\O", 'in')`)}}}}async documentRangeFormat(e,t){this.handler.checkProvier("formatRange",e.textDocument),await e.synchronize();let i;if(t){if(i=await k.getSelectedRange(t),!i)return-1}else{let[s,a,l]=await this.nvim.eval("[v:lnum,v:count,mode()]");if(a==0||l=="i"||l=="R")return-1;i=ms.Range.create(s-1,0,s-1+a,0)}let r=await y.getFormatOptions(e.uri),o=await this.handler.withRequestToken("Format range",s=>A.provideDocumentRangeFormattingEdits(e.textDocument,i,r,s));return o&&o.length>0?(await e.applyEdits(o,!1,!0),0):-1}};var uu=C(H());le();Ce();z();V();var Nnt=q()("documentHighlight"),QD=class{constructor(e,t){this.nvim=e;this.handler=t;this.disposables=[];this.highlights=new Map;E.on(["CursorMoved","CursorMovedI"],()=>{this.cancel(),this.clearHighlights()},null,this.disposables),this.getConfiguration(),y.onDidChangeConfiguration(this.getConfiguration,this,this.disposables)}getConfiguration(e){let t=y.getConfiguration("documentHighlight");(!e||e.affectsConfiguration("documentHighlight"))&&(this.config=Object.assign(this.config||{},{priority:t.get("priority",-1),timeout:t.get("timeout",300)}))}isEnabled(e,t){let i=y.getDocument(e);return!(!i||!i.attached||t||!A.hasProvider("documentHighlight",i.textDocument))}clearHighlights(){if(this.highlights.size!=0){for(let e of this.highlights.keys())this.nvim.createWindow(e).clearMatchGroup("^CocHighlight");this.highlights.clear()}}async highlight(){let{nvim:e}=this;this.cancel();let[t,i,r,o]=await e.eval(`[bufnr("%"),win_getid(),coc#cursor#position(),get(b:,'coc_cursors_activated',0)]`);if(!this.isEnabled(t,o))return;let s=y.getDocument(t),a=await this.getHighlights(s,uu.Position.create(r[0],r[1]));if(!a)return;let l={};for(let c of a){if(!c.range)continue;let h=c.kind==uu.DocumentHighlightKind.Text?"CocHighlightText":c.kind==uu.DocumentHighlightKind.Read?"CocHighlightRead":"CocHighlightWrite";l[h]=l[h]||[],l[h].push(c.range)}let u=e.createWindow(i);e.pauseNotification(),u.clearMatchGroup("^CocHighlight");for(let c of Object.keys(l))u.highlightRanges(c,l[c],this.config.priority,!0);e.resumeNotification(!0,!0),this.highlights.set(i,a)}async getSymbolsRanges(){let{doc:e,position:t}=await this.handler.getCurrentState();this.handler.checkProvier("documentHighlight",e.textDocument);let i=await this.getHighlights(e,t);return i?i.map(r=>r.range):null}hasHighlights(e){return this.highlights.get(e)!=null}async getHighlights(e,t){let r=e.getline(t.line)[t.character];if(!r||!e.isWord(r))return null;await e.synchronize(),this.cancel();let o=this.tokenSource=new uu.CancellationTokenSource,s=this.timer=setTimeout(()=>{o.token.isCancellationRequested||o.cancel()},this.config.timeout),a=await A.getDocumentHighLight(e.textDocument,t,o.token);return clearTimeout(s),o.token.isCancellationRequested?null:a}cancel(){this.tokenSource&&(this.tokenSource.cancel(),this.tokenSource.dispose(),this.tokenSource=null)}dispose(){this.timer&&clearTimeout(this.timer),this.cancel(),this.highlights.clear(),Z(this.disposables)}};var kte=C(require("fs")),gr=C(H());we();Ce();Jo();z();Je();V();var Xnt=q()("handler-hover"),KD=class{constructor(e,t){this.nvim=e;this.handler=t;this.disposables=[];this.documentLines=[];this.hasProvider=!1;this.excludeImages=!0;this.loadConfiguration(),y.onDidChangeConfiguration(this.loadConfiguration,this,this.disposables),this.hoverFactory=new ci(e),this.disposables.push(this.hoverFactory)}registerProvider(){if(this.hasProvider)return;this.hasProvider=!0;let{nvim:e}=this,t={onDidChange:null,provideTextDocumentContent:async()=>(e.pauseNotification(),e.command("setlocal conceallevel=2 nospell nofoldenable wrap",!0),e.command("setlocal bufhidden=wipe nobuflisted",!0),e.command("setfiletype markdown",!0),e.command(`if winnr('j') != winnr('k') | exe "normal! z${Math.min(this.documentLines.length,this.config.previewMaxHeight)}\\ | endif"`,!0),await e.resumeNotification(),this.documentLines.join(` -`))};this.disposables.push(y.registerTextDocumentContentProvider("coc",t))}loadConfiguration(e){if(!e||e.affectsConfiguration("hover")){let t=y.getConfiguration("hover"),i=t.get("target","float");this.config={floatConfig:t.get("floatConfig",{}),autoHide:t.get("autoHide",!0),target:i=="float"&&!y.floatSupported?"preview":i,previewMaxHeight:t.get("previewMaxHeight",12)},this.config.target=="preview"&&this.registerProvider();let r=y.getConfiguration("coc.preferences");this.excludeImages=r.get("excludeImageLinksInMarkdownDocument",!0)}}async onHover(e){let{doc:t,position:i,winid:r}=await this.handler.getCurrentState();e=="preview"&&this.registerProvider(),this.handler.checkProvier("hover",t.textDocument),await t.synchronize();let o=await this.handler.withRequestToken("hover",a=>A.getHover(t.textDocument,i,a),!0);if(o==null||!o.length)return!1;let s=o.find(a=>gr.Range.is(a.range));if(s!=null&&s.range){let a=this.nvim.createWindow(r);a.highlightRanges("CocHoverRange",[s.range],99,!0),this.timer=setTimeout(()=>{a.clearMatchGroup("CocHoverRange"),this.nvim.redrawVim()},500)}return await this.previewHover(o,e),!0}async definitionHover(e){let{doc:t,position:i,winid:r}=await this.handler.getCurrentState();e=="preview"&&this.registerProvider(),this.handler.checkProvier("hover",t.textDocument),await t.synchronize();let o=await this.handler.withRequestToken("hover",l=>A.getHover(t.textDocument,i,l),!0);if(!(o!=null&&o.length))return!1;let s=await this.handler.withRequestToken("definitionHover",l=>A.getDefinitionLinks(t.textDocument,i,l),!1);if(s!=null&&s.length)for(let l of s){if(!l.targetRange)continue;let{start:u,end:c}=l.targetRange,h=c.line-u.line>=100?u.line+100:c.character==0?c.line-1:c.line,d=await kTe(l.targetUri,u.line,h);if(d.length){let g=d[0].match(/^\s*/)[0];g&&(d=d.map(f=>f.startsWith(g)?f.substring(g.length):f)),o.push({content:d.join(` -`),filetype:t.filetype})}}let a=o.find(l=>gr.Hover.is(l)&&gr.Range.is(l.range));if(a!=null&&a.range){let l=this.nvim.createWindow(r);l.highlightRanges("CocHoverRange",[a.range],99,!0),this.timer=setTimeout(()=>{l.clearMatchGroup("CocHoverRange"),this.nvim.redrawVim()},500)}return await this.previewHover(o,e),!0}async previewHover(e,t){let i=[];t=t||this.config.target;let r=t==="preview";for(let s of e){if(TTe(s)){i.push(s);continue}let{contents:a}=s;if(Array.isArray(a))for(let l of a)typeof l=="string"?dp(i,l,"markdown",r):dp(i,l.value,l.language,r);else gr.MarkedString.is(a)?typeof a=="string"?dp(i,a,"markdown",r):dp(i,a.value,a.language,r):gr.MarkupContent.is(a)&&dp(i,a.value,og(a)?"markdown":"txt",r)}if(t=="float"){let s=this.hoverFactory.applyFloatConfig({modes:["n"],autoHide:this.config.autoHide,excludeImages:this.excludeImages,maxWidth:80},this.config.floatConfig);await this.hoverFactory.show(i,s);return}let o=i.reduce((s,a)=>{let l=a.content.split(/\r?\n/);return s.length>0&&s.push(""),s.push(...l),s},[]);if(t=="echo"){let s=o.join(` -`).trim();await this.nvim.call("coc#ui#echo_hover",[s])}else this.documentLines=o,await this.nvim.command("noswapfile pedit coc://document")}async getHover(){let e=[],{doc:t,position:i}=await this.handler.getCurrentState();this.handler.checkProvier("hover",t.textDocument),await t.synchronize();let r=new gr.CancellationTokenSource,o=await A.getHover(t.textDocument,i,r.token);if(Array.isArray(o))for(let s of o){let{contents:a}=s;Array.isArray(a)?a.forEach(l=>{e.push(typeof l=="string"?l:l.value)}):gr.MarkupContent.is(a)?e.push(a.value):e.push(typeof a=="string"?a:a.value)}return e=e.filter(s=>s!=null&&s.length>0),e}dispose(){this.timer&&clearTimeout(this.timer),Z(this.disposables)}};function dp(n,e,t,i=!1){let r=e.trim();!r.length||(i&&t!=="markdown"&&(r="``` "+t+` -`+r+"\n```"),n.push({content:r,filetype:t}))}function TTe(n){return n?typeof n.filetype=="string"&&typeof n.content=="string":!1}async function kTe(n,e,t){let i=y.getDocument(n);if(i)return i.getLines(e,t+1);let r=O.parse(n).fsPath;return kte.default.existsSync(r)?await ia(r,e,t):[]}var cu=C(H());le();Ce();Jo();z();yt();ke();V();var nrt=q()("handler-links"),ETe=/CocAction(Async)?\(["']openLink["']\)/,zD=class{constructor(e,t){this.nvim=e;this.handler=t;this.disposables=[];this.setConfiguration(),y.onDidChangeConfiguration(this.setConfiguration,this,this.disposables),this.floatFactory=new ci(e),E.on("CursorHold",async()=>{!this._tooltip||!e.hasFunction("nvim_get_keymap")||await this.showTooltip()},null,this.disposables),E.on(["CursorMoved","InsertEnter"],()=>{this.cancel()},null,this.disposables)}setConfiguration(e){if(!e||e.affectsConfiguration("links")){let t=y.getConfiguration("links");this._tooltip=t.get("tooltip",!1)}}async showTooltip(){let{nvim:e,floatFactory:t}=this,r=(await e.getKeymap("n")).find(u=>ETe.test(u.rhs)),o=r?r.lhs:void 0,s=await this.getCurrentLink();if(!s||!s.target)return;let a="";if(s.tooltip&&(a=s.tooltip+" "),o&&(a+=`Press "${o}" to open link`),!a.length)return;let l={content:a,filetype:"txt"};await t.show([l],{autoHide:!0})}async getLinks(){try{let{doc:e}=await this.handler.getCurrentState();if(!A.hasProvider("documentLink",e.textDocument))return[];let t=this.tokenSource=new cu.CancellationTokenSource,i=await A.getDocumentLinks(e.textDocument,t.token);return t.token.isCancellationRequested?[]:i}catch{return[]}}async openLink(e){if(!e.target)throw new Error("Failed to resolve link target");await y.openResource(e.target)}async getCurrentLink(){let e=await this.getLinks(),t=await k.getCursorPosition();if(e&&e.length){for(let a of e)if(ut(t,a.range)==0){if(!a.target){let l=this.tokenSource=this.tokenSource||new cu.CancellationTokenSource;if(a=await A.resolveDocumentLink(a,this.tokenSource.token),!a.target||l.token.isCancellationRequested)continue}return a}}let i=await this.nvim.call("getline",["."]),r=/\w+?:\/\/[^)\]'" ]+/g,o,s;for(;(o=r.exec(i))!==null;){let a=o.index;if(a<=t.character&&a+o[0].length>=t.character){s=cu.DocumentLink.create(cu.Range.create(t.line,a,t.line,a+o[0].length),o[0]);break}}return s}async openCurrentLink(){let e=await this.getCurrentLink();return e?(await this.openLink(e),!0):!1}cancel(){this.tokenSource&&(this.tokenSource.cancel(),this.tokenSource=null)}dispose(){var e;(e=this.floatFactory)==null||e.dispose(),Z(this.disposables)}};var Wr=C(H());we();Ce();$f();V();var drt=q()("handler-hover"),VD=class{constructor(e,t){this.nvim=e;this.handler=t}async request(e,t){let{doc:i,position:r}=await this.handler.getCurrentState();return this.handler.checkProvier(e,i.textDocument),await i.synchronize(),await this.handler.withRequestToken(e,o=>t(i.textDocument,r,o),!0)}async definitions(){let{doc:e,position:t}=await this.handler.getCurrentState();this.handler.checkProvier("definition",e.textDocument),await e.synchronize();let i=new Wr.CancellationTokenSource;return A.getDefinition(e.textDocument,t,i.token)}async declarations(){let{doc:e,position:t}=await this.handler.getCurrentState();this.handler.checkProvier("declaration",e.textDocument),await e.synchronize();let i=new Wr.CancellationTokenSource;return A.getDeclaration(e.textDocument,t,i.token)}async typeDefinitions(){let{doc:e,position:t}=await this.handler.getCurrentState();this.handler.checkProvier("typeDefinition",e.textDocument),await e.synchronize();let i=new Wr.CancellationTokenSource;return A.getTypeDefinition(e.textDocument,t,i.token)}async implementations(){let{doc:e,position:t}=await this.handler.getCurrentState();this.handler.checkProvier("implementation",e.textDocument),await e.synchronize();let i=new Wr.CancellationTokenSource;return A.getImplementation(e.textDocument,t,i.token)}async references(e){let{doc:t,position:i}=await this.handler.getCurrentState();this.handler.checkProvier("reference",t.textDocument),await t.synchronize();let r=new Wr.CancellationTokenSource;return A.getReferences(t.textDocument,{includeDeclaration:!e},i,r.token)}async gotoDefinition(e){let t=await this.request("definition",(i,r,o)=>A.getDefinition(i,r,o));return await this.handleLocations(t,e),t?t.length>0:!1}async gotoDeclaration(e){let t=await this.request("declaration",(i,r,o)=>A.getDeclaration(i,r,o));return await this.handleLocations(t,e),t?Array.isArray(t)?t.length>0:!0:!1}async gotoTypeDefinition(e){let t=await this.request("typeDefinition",(i,r,o)=>A.getTypeDefinition(i,r,o));return await this.handleLocations(t,e),t?t.length>0:!1}async gotoImplementation(e){let t=await this.request("implementation",(i,r,o)=>A.getImplementation(i,r,o));return await this.handleLocations(t,e),t?t.length>0:!1}async gotoReferences(e,t=!0){let i=await this.request("reference",(r,o,s)=>A.getReferences(r,{includeDeclaration:t},o,s));return await this.handleLocations(i,e),i?i.length>0:!1}async getTagList(){let{doc:e,position:t}=await this.handler.getCurrentState(),i=await this.nvim.call("expand","");if(!i||!A.hasProvider("definition",e.textDocument))return null;let r=new Wr.CancellationTokenSource,o=await A.getDefinition(e.textDocument,t,r.token);return!o||!o.length?null:o.map(s=>{let a=O.parse(s.uri),l=a.scheme=="file"?a.fsPath:a.toString();return{name:i,cmd:`keepjumps ${s.range.start.line+1} | normal ${s.range.start.character+1}|`,filename:l}})}async findLocations(e,t,i,r){let{doc:o,position:s}=await this.handler.getCurrentState();i=i||{},Object.assign(i,{textDocument:{uri:o.uri},position:s});let a=await Mi.sendRequest(e,t,i);a=a||[];let l=[];if(Array.isArray(a))l=a;else if(a.hasOwnProperty("location")&&a.hasOwnProperty("children")){let u=c=>{if(l.push(c.location),c.children&&c.children.length)for(let h of c.children)u(h)};u(a)}return await this.handleLocations(l,r),l?l.length>0:!1}async handleLocations(e,t){if(!e)return;let i=Array.isArray(e)?e:[e];i=i.map(o=>Wr.LocationLink.is(o)?Wr.Location.create(o.targetUri,o.targetRange):o);let r=i.length;if(r!=0)if(r==1&&t!==!1){let{uri:o,range:s}=i[0];await y.jumpTo(o,s.start,t)}else await y.showLocations(i)}dispose(){}};var Bh=C(H());we();le();Ce();z();Je();Ar();V();var Nh=C(Lg()),gp=C(require("path")),Ge=C(H());Ec();we();oa();z();Je();es();no();Jt();yt();Pe();Ar();ke();V();Jt();var ex=class{constructor(){this.stack=[]}add(e){let t=new Map;for(let i of e)t.set(i.lnum,i);this.stack.push(t)}checkInsert(e){if(!this.stack.length)return;let t=this.stack[this.stack.length-1],i=Array.from(t.keys()).sort((r,o)=>r-o);if(!!Fe(i,e))return this.stack.pop(),Array.from(t.values())}};var PTe=q()("handler-refactorBuffer"),Zr="\u3000",tx=class{constructor(e,t,i,r,o){this.bufnr=e;this.srcId=t;this.nvim=i;this.config=r;this.opts=o;this._disposed=!1;this._fileItems=[];this.mutex=new ei;this.disposables=[];this.matchIds=new Set;this.changing=!1;this.changes=new ex,this.disposables.push(y.registerLocalKeymap("n","",this.splitOpen.bind(this),!0)),r.showMenu&&this.disposables.push(y.registerLocalKeymap("n",r.showMenu,this.showMenu.bind(this),!0)),y.onDidChangeTextDocument(this.onDocumentChange,this,this.disposables)}async showMenu(){let e=await k.showMenuPicker(["Tab open","Remove block"]);if(e==-1)return;let t=await this.searchCurrentRange();if(!!t){if(e==0){let r=(await this.nvim.eval("strpart(getline('.'), 0 ,col('.') - 1)")).length,o=this.getAbsolutePath(t.filepath);this.nvim.call("coc#util#jump",["tabe",o,[t.line,r]],!0)}if(e==1){let i=this.getDeleteRange(t);await this.document.applyEdits([Ge.TextEdit.del(i)])}}}get fileItems(){return this._fileItems}getFileItem(e){let t=O.parse(e).fsPath;return this._fileItems.find(i=>ii(i.filepath,t))}getFileRange(e){for(let t of this._fileItems)for(let i of t.ranges)if(i.lnum==e)return Object.assign(zi(i,["highlights"]),{filepath:t.filepath});throw new Error(`File range not found at lnum: ${e}`)}onChange(e){if(this.changing)return;if(e.contentChanges.length===0){this.highlightLineNr(),this.nvim.redrawVim();return}let{nvim:t}=this;e=RTe(e);let i=e.contentChanges[0],{original:r}=e;i.range.end.line>2&&t.call("setbufvar",[e.bufnr,"&modified",1],!0);let{range:o,text:s}=i;if(ra(Ge.TextEdit.replace(o,s))==0)return;let l=[Ge.TextEdit.replace(o,s)],u=[];if(!Ct(o)&&!s.includes("\u3000")){let c=o.start.line,h=[],d=r.split(/\r?\n/);for(let g=0;g1&&f.includes("\u3000")&&h.push(c+g+1)}if(h.length){let g=h.map(f=>this.getFileRange(f));for(let f of this._fileItems)f.ranges=f.ranges.filter(p=>!h.includes(p.lnum));this.changes.add(g)}}else if(Ct(o)&&s.includes("\u3000")){let c=s.split(/\r?\n/),h=[],d=o.start.line;for(let g=0;g1&&f.includes("\u3000")&&h.push(d+g+1)}if(h.length){let g=this.changes.checkInsert(h);g&&(u=g)}}else s.includes("\u3000")&&(l=this.diffChanges(r,s),l.forEach(c=>{c.range=H2(c.range,o.start)}));this.adjustLnums(l),t.pauseNotification(),this.highlightLineNr(),t.resumeNotification(!0,!0),u.length&&u.forEach(c=>{this._fileItems.find(d=>d.filepath==c.filepath).ranges.push(c)})}diffChanges(e,t){let i=[],r=(0,Nh.default)(e,t),o=0,s=jn.create("file:///1","",0,e);for(let a=0;a=c.start+c.lines.length)continue;if(r.end.line!l.includes(c))),this._fileItems=this._fileItems.filter(u=>u.ranges&&u.ranges.length>0),a.length&&(this.adjustLnums(a),this.changing=!0,await this.document.applyEdits(a),this.changing=!1),this.nvim.pauseNotification(),this.highlightLineNr(),this.buffer.setOption("modified",!1,!0),await this.nvim.resumeNotification(!0)}adjustLnums(e){for(let t of this._fileItems)for(let i of t.ranges){let r=i.lnum-1;i.lnum+=XT(Ge.Position.create(r,0),e)}}async getFileChanges(){let e=[],t=await this.buffer.lines;t.push(Zr);let i=[],r,o;for(let s=0;s1){let l=a.match(/^\u3000(.*)/);l&&(r=this.getAbsolutePath(l[1].replace(/\s+$/,"")),o=s+1,i=[])}}else i.push(a)}return e}async splitOpen(){let{nvim:e}=this,i=await e.createWindow(this.opts.fromWinid).valid,o=(await e.eval("strpart(getline('.'), 0 ,col('.') - 1)")).length,s=await this.searchCurrentRange();if(s){let a=this.getAbsolutePath(s.filepath);e.pauseNotification(),i?(e.call("win_gotoid",[this.opts.fromWinid],!0),this.nvim.call("coc#util#jump",["edit",a,[s.line,o]],!0)):this.nvim.call("coc#util#jump",["belowright vs",a,[s.line,o]],!0),e.command("normal! zz",!0),await e.resumeNotification(!0),i||(this.opts.fromWinid=await e.call("win_getid"))}}async searchCurrentRange(){let{nvim:e}=this,t=await e.eval('getline(1,line("."))'),i=t.length;for(let r=0;r_Te(S,p)));let{lines:b,start:v,end:w,highlights:D}=d;b||(b=await this.getLines(c.filepath,v,w)),h.push({lines:b,lnum:g,start:v,highlights:D}),s.addLines(b)}if(h.length){let d={filepath:c.filepath,ranges:h},g=this._fileItems.find(f=>f.filepath==c.filepath);g?g.ranges.push(...d.ranges):this._fileItems.push(d)}}let{nvim:l,buffer:u}=this;if(this.changing=!0,l.pauseNotification(),s.render(u,o),this.highlightLineNr(),u.setOption("modified",!1,!0),u.setOption("undolevels",1e3,!0),o==2&&a.length){let c=a[0].start;l.call("coc#cursor#move_to",[c.line,c.character],!0)}await l.resumeNotification(!0),await i.patchChange(),this.changing=!1,await k.cursors.addRanges(a)}catch(o){this.changing=!1,PTe.error("Error on add file item:",o)}r()}findRange(e,t){let r=this.fileItems.find(o=>ii(this.getAbsolutePath(o.filepath),e)).ranges.find(o=>o.lnum==t);if(!r)throw new Error(`File range not found at lnum: ${t}`);return r}async save(){let{nvim:e}=this,t=this.document,{buffer:i}=t;await t.patchChange();let r=await this.getFileChanges();if(!r)return;r.sort((a,l)=>a.lnum-l.lnum);let o=[];for(let a=0;a{if(!o)return o=!0,$(r),new Promise(a=>{if(!this.canActivate(e))return this.outputChannel.appendLine(`Extension ${e} is disabled or not loaded.`),a();this.activate(e).then(()=>{a()},l=>{k.showMessage(`Error on activate extension ${e}: ${l.message}`),this.outputChannel.appendLine(`Error on activate extension ${e}:${l.message} + ${l.stack}`),a()})})};for(let a of i){let l=a.split(":"),u=l[0];if(u=="onLanguage"){if(v.languageIds.has(l[1])||v.filetypes.has(l[1])){await s();return}v.onDidOpenTextDocument(c=>{let h=v.getDocument(c.bufnr);(c.languageId==l[1]||h.filetype==l[1])&&s()},null,r)}else if(u=="onCommand")he.onCommandList.push(l[1]),P.on("Command",async c=>{c==l[1]&&(await s(),await Pt(500))},null,r);else if(u=="workspaceContains"){let c=async()=>{let d=v.workspaceFolders.map(g=>I.parse(g.uri).fsPath);for(let g of d)for(let p of l[1].split(/\s+/))if(await ZY(g,p))return await s(),!0;return!1};if(v.onDidChangeWorkspaceFolders(c,null,r),await c())return}else if(u=="onFileSystem"){for(let c of v.documents)if(I.parse(c.uri).scheme==l[1]){await s();return}v.onDidOpenTextDocument(c=>{I.parse(c.uri).scheme==l[1]&&s()},null,r)}else k.showMessage(`Unsupported event ${a} of ${e}`,"error")}}createExtension(e,t,i){let r=t.name,o=!1,s,a=Ze.default.join(e,t.main||"index.js"),l,u=[],c,h={activate:()=>{if(s)return s;let g={subscriptions:u,extensionPath:e,globalState:this.memos.createMemento(`${r}|global`),workspaceState:this.memos.createMemento(`${r}|${v.rootPath}`),asAbsolutePath:p=>Ze.default.join(e,p),storagePath:Ze.default.join(this.root,`${r}-data`),logger:Ite(r)};if(!l)try{let p=!(t.engines||{}).hasOwnProperty("coc");l=Ete(r,a,p)}catch(p){fn.error(`Error on createExtension ${r} from ${a}`,p);return}return s=new Promise((p,f)=>{try{Promise.resolve(l.activate(g)).then(m=>{o=!0,c=m,p(m)},m=>{fn.error(`Error on active extension ${r}: ${m.message}`,m),f(m)})}catch(m){fn.error(`Error on active extension ${r}: ${m}`,m instanceof Error?m.stack:m),f(m)}}),s}};Object.defineProperties(h,{id:{get:()=>r,enumerable:!0},packageJSON:{get:()=>t,enumerable:!0},extensionPath:{get:()=>e,enumerable:!0},isActive:{get:()=>o,enumerable:!0},exports:{get:()=>{if(!o)throw new Error(`Invalid access to exports, extension "${r}" not activated`);return c},enumerable:!0}}),this.extensions.set(r,{id:r,type:i,isLocal:i==1,extension:h,directory:e,filepath:a,deactivate:()=>{if(!!o&&(s=void 0,c=void 0,o=!1,$(u),u.splice(0,u.length),u=[],l&&l.deactivate))try{return Promise.resolve(l.deactivate()).catch(g=>{fn.error(`Error on ${r} deactivate: `,g)})}catch(g){fn.error(`Error on ${r} deactivate: `,g)}}});let{contributes:d}=t;if(d){let{configuration:g,rootPatterns:p,commands:f}=d;if(g&&g.properties){let{properties:m}=g,b={};for(let w of Object.keys(m)){let D=m[w].default;D!=null&&(b[w]=D)}v.configurations.extendsDefaults(b)}if(p&&p.length)for(let m of p)v.workspaceFolderControl.addRootPattern(m.filetype,m.patterns);if(f&&f.length)for(let m of f)he.titles.set(m.command,m.title)}this._onDidLoadExtension.fire(h),this.activated&&this.setupActiveEvents(r,t).logError()}filterGlobalExtensions(e){let t=new Map;e.forEach(s=>{let a=this.getExtensionName(s);a&&t.set(a,s)});let i=this.loadJson(),r=[],o=[];if(i&&i.dependencies)for(let s of Object.keys(i.dependencies)){let a=i.dependencies[s];typeof a=="string"&&Tt.default.existsSync(Ze.default.join(this.modulesFolder,s,"package.json"))&&(o.push(s),/^https?:/.test(a)&&r.push(a))}for(let s of t.keys()){if(this.disabled.has(s)||this.extensions.has(s)){t.delete(s);continue}(/^https?:/.test(s)&&r.some(a=>a.startsWith(s))||o.includes(s))&&t.delete(s)}return Array.from(t.values())}getExtensionName(e){return/^https?:/.test(e)||!e.includes("@")?e:e.replace(/@[\d.]+$/,"")}get modulesFolder(){return Ze.default.join(this.root,global.__TEST__?"":"node_modules")}canActivate(e){return!this.disabled.has(e)&&this.extensions.has(e)}async unloadExtension(e){this.extensions.get(e)&&(await this.deactivate(e),this.extensions.delete(e),this._onDidUnloadExtension.fire(e))}checkDirectory(e){try{let t=Ze.default.join(e,"package.json");if(!Tt.default.existsSync(t))throw new Error("package.json not found");let i=JSON.parse(Tt.default.readFileSync(t,"utf8")),{name:r,engines:o,main:s}=i;if(!r||!o)throw new Error("can't find name & engines in package.json");if(!o||!Ht(o))throw new Error(`invalid engines in ${t}`);if(s&&!Tt.default.existsSync(Ze.default.join(e,s)))throw new Error(`main file ${s} not found, you may need to build the project.`);let a=Object.keys(o);if(!a.includes("coc")&&!a.includes("vscode"))throw new Error("Engines in package.json doesn't have coc or vscode");if(a.includes("coc")){let l=o.coc.replace(/^\^/,">=");if(!Lte.default.satisfies(v.version,l))throw new Error(`Please update coc.nvim, ${i.name} requires coc.nvim ${o.coc}`)}return!0}catch(t){return t}}dispose(){$(this.disposables)}},Pe=new qR});var Mte,jVe,_ke,XD,Ote=_(()=>{"use strict";Mte=x(q());Ee();we();et();jVe=W()("sources-keywords"),_ke=10*1024,XD=class{constructor(e){this.doc=e;this._words=new Set;this._gitIgnored=!1;this.parse();let t=I.parse(e.uri);t.scheme==="file"&&WY(t.fsPath).then(i=>{this._gitIgnored=i})}get bufnr(){return this.doc.bufnr}get gitIgnored(){return this._gitIgnored}get words(){return this._words}parse(){if(!this.doc.attached||P.completing)return;let{textDocument:e}=this.doc,{version:t,lineCount:i}=e;if(this.version===t||P.insertMode&&this.lineCount==i&&e.length>_ke)return;this.cancel();let r=this.tokenSource=new Mte.CancellationTokenSource;this.doc.matchWords(r.token).then(o=>{o!=null&&(this._words=o,this.lineCount=i,this.version=t)})}cancel(){this.tokenSource&&(this.tokenSource.cancel(),this.tokenSource=null)}onChange(e){e.contentChanges.length!=0&&this.parse()}dispose(){this.cancel(),this._words.clear()}}});var JVe,xr,Yh=_(()=>{"use strict";$r();Ne();ne();JVe=W()("sources-source"),xr=class{constructor(e){this._disabled=!1;this.nvim=v.nvim,this.name=e.name,this.filepath=e.filepath||"",this.sourceType=e.sourceType||0,this.isSnippet=!!e.isSnippet,this.defaults=e}get priority(){return this.getConfig("priority",1)}get triggerOnly(){let e=this.defaults.triggerOnly;return typeof e=="boolean"?e:!this.triggerCharacters&&!this.triggerPatterns?!1:Array.isArray(this.triggerPatterns)&&this.triggerPatterns.length!=0}get triggerCharacters(){return this.getConfig("triggerCharacters",null)}get optionalFns(){return this.defaults.optionalFns||[]}get triggerPatterns(){let e=this.getConfig("triggerPatterns",null);return!e||e.length==0?null:e.map(t=>typeof t=="string"?new RegExp(t+"$"):t)}get shortcut(){let e=this.getConfig("shortcut","");return e||this.name.slice(0,3)}get enable(){return this._disabled?!1:this.getConfig("enable",!0)}get filetypes(){return this.getConfig("filetypes",null)}get disableSyntaxes(){return this.getConfig("disableSyntaxes",[])}getConfig(e,t){let i=v.getConfiguration(`coc.source.${this.name}`);return t=this.defaults.hasOwnProperty(e)?this.defaults[e]:t,i.get(e,t)}toggle(){this._disabled=!this._disabled}get firstMatch(){return this.getConfig("firstMatch",!0)}get menu(){return""}fixStartcol(e,t){let{col:i,input:r,line:o,bufnr:s}=e,a=at(o,0,i),l=v.getDocument(s);if(!l)return i;let{chars:u}=l;for(let c=a.length-1;c>=0;c--){let h=a[c];if(!u.isKeywordChar(h)&&!t.includes(h))break;r=`${h}${r}`,i=i-1}return e.col=i,e.input=r,i}async shouldComplete(e){let{disableSyntaxes:t}=this;if(e.synname&&t&&t.length){let r=(e.synname||"").toLowerCase();if(t.findIndex(o=>r.includes(o.toLowerCase()))!==-1)return!1}let i=this.defaults.shouldComplete;return typeof i=="function"?await Promise.resolve(i.call(this,e)):!0}async refresh(){let e=this.defaults.refresh;typeof e=="function"&&await Promise.resolve(e.call(this))}async onCompleteDone(e,t){let i=this.defaults.onCompleteDone;typeof i=="function"&&await Promise.resolve(i.call(this,e,t))}async doComplete(e,t){let i=this.defaults.doComplete;return typeof i=="function"?await Promise.resolve(i.call(this,e,t)):null}async onCompleteResolve(e,t,i){let r=this.defaults.onCompleteResolve;typeof r=="function"&&await Promise.resolve(r.call(this,e,t,i))}}});function Fke(n,e){let t=e[0];if(t.textEdit==null)return;let i=xe.InsertReplaceEdit.is(t.textEdit)?t.textEdit.replace:t.textEdit.range,{character:r}=i.start;for(let o=1;op)u=h.slice(p,c.start.character)+u;else{let f=h.slice(c.start.character,p);f.length&&u.startsWith(f)&&(u=u.slice(f.length))}if(p=ln(h,g-1),c.end.character>p){let f=h.slice(p,c.end.character);u.endsWith(f)&&(u=u.slice(0,-f.length))}}}else s&&(u=s);if(o==xe.InsertTextFormat.Snippet&&u&&u.includes("$")){let h=new $a().text(u);l=h?Nte(h,t):i}else l=Nte(u,t)??i;return l??""}function Nte(n,e,t=2){if(n!=null){if(e.length===0)return n;for(let i=t;i{"use strict";xe=x(q());Ei();yu();HD();Es();Ne();Ae();ne();Rke=W()("source-language"),Lke={[xe.CompletionItemKind.Text]:"CocSymbolText",[xe.CompletionItemKind.Method]:"CocSymbolMethod",[xe.CompletionItemKind.Function]:"CocSymbolFunction",[xe.CompletionItemKind.Constructor]:"CocSymbolConstructor",[xe.CompletionItemKind.Field]:"CocSymbolField",[xe.CompletionItemKind.Variable]:"CocSymbolVariable",[xe.CompletionItemKind.Class]:"CocSymbolClass",[xe.CompletionItemKind.Interface]:"CocSymbolInterface",[xe.CompletionItemKind.Module]:"CocSymbolModule",[xe.CompletionItemKind.Property]:"CocSymbolProperty",[xe.CompletionItemKind.Unit]:"CocSymbolUnit",[xe.CompletionItemKind.Value]:"CocSymbolValue",[xe.CompletionItemKind.Enum]:"CocSymbolEnum",[xe.CompletionItemKind.Keyword]:"CocSymbolKeyword",[xe.CompletionItemKind.Snippet]:"CocSymbolSnippet",[xe.CompletionItemKind.Color]:"CocSymbolColor",[xe.CompletionItemKind.File]:"CocSymbolFile",[xe.CompletionItemKind.Reference]:"CocSymbolReference",[xe.CompletionItemKind.Folder]:"CocSymbolFolder",[xe.CompletionItemKind.EnumMember]:"CocSymbolEnumMember",[xe.CompletionItemKind.Constant]:"CocSymbolConstant",[xe.CompletionItemKind.Struct]:"CocSymbolStruct",[xe.CompletionItemKind.Event]:"CocSymbolEvent",[xe.CompletionItemKind.Operator]:"CocSymbolOperator",[xe.CompletionItemKind.TypeParameter]:"CocSymbolTypeParameter"},UD=class{constructor(e,t,i,r,o,s,a,l){this.name=e;this.shortcut=t;this.provider=i;this.documentSelector=r;this.triggerCharacters=o;this.allCommitCharacters=s;this.completeConfig=l;this._enabled=!0;this.completeItems=[];this.priority=typeof a=="number"?a:l.priority}get enable(){return this._enabled}toggle(){this._enabled=!this._enabled}shouldCommit(e,t){let i=this.completeItems[e.index];return i?[...this.allCommitCharacters,...i.commitCharacters||[]].includes(t):!1}async doComplete(e,t){let{triggerCharacter:i,input:r,bufnr:o}=e;this.completeItems=[];let s=this.getTriggerKind(e),a=this.getPosition(e),l={triggerKind:s,option:e};s==xe.CompletionTriggerKind.TriggerCharacter&&(l.triggerCharacter=i);let u=v.getAttachedDocument(o),c=await Promise.resolve(this.provider.provideCompletionItems(u.textDocument,a,t,l));if(!c||t.isCancellationRequested)return null;let h=Array.isArray(c)?c:c.items;if(!h||h.length==0)return null;this.completeItems=h;let d=Fke(e.line,h),g=Object.assign({},e),p,f=typeof c.isIncomplete=="boolean"?c.isIncomplete:!1;d==null&&r.length>0&&this.triggerCharacters.includes(e.triggerCharacter)&&(h.every(b=>(b.insertText??b.label).startsWith(e.input))||(d=e.col+V(e.input))),d!=null&&(p=d{let D=this.convertVimCompleteItem(b,g,p);return D.index=w,D});return{startcol:d,isIncomplete:f,items:m}}async onCompleteResolve(e,t,i){let{index:r}=e,o=this.completeItems[r];if(!o||e.resolved)return;if(typeof this.provider.resolveCompletionItem=="function"){let c=await Promise.resolve(this.provider.resolveCompletionItem(o,i));if(i.isCancellationRequested||!c)return;Object.assign(o,c)}e.resolved=!0;let{documentation:a,detail:l}=o;if(!a&&!l)return;let u=[];if(l&&!e.detailShown&&l!=e.word&&(l=l.replace(/\n\s*/g," "),l.length)){let c=/^[\w-\s.,\t\n]+$/.test(l);u.push({filetype:c?"txt":t.filetype,content:l})}a&&(typeof a=="string"?u.push({filetype:"txt",content:a}):a.value&&u.push({filetype:a.kind=="markdown"?"markdown":"txt",content:a.value})),e.documentation=u}async onCompleteDone(e,t){let i=this.completeItems[e.index];if(!i)return;typeof e.line=="string"&&Object.assign(t,{line:e.line});let r=v.getAttachedDocument(t.bufnr);await r.patchChange(!0);let o=Array.isArray(i.additionalTextEdits)&&i.additionalTextEdits.length>0;o&&await ei.editsInsideSnippet(i.additionalTextEdits)&&ei.cancel();let s=r.version,a=await this.applyTextEdit(r,o,i,e.word,t);o&&(await r.applyEdits(i.additionalTextEdits,r.version!=s,!a),a&&await ei.selectCurrentPlaceholder()),i.command&&(he.has(i.command.command)?await he.execute(i.command):Rke.warn(`Command "${i.command.command}" not registered to coc.nvim`))}async applyTextEdit(e,t,i,r,o){var w,D;let{line:s,linenr:a,colnr:l,col:u}=o,c=await k.getCursorPosition();if(c.line!=a-1)return;let{textEdit:h}=i,d=e.getline(a-1),g=ln(s,l-1);if(!h&&i.insertText&&(h={range:xe.Range.create(c.line,ln(s,u),c.line,g),newText:i.insertText}),!h)return!1;let p=h.newText,f=xe.InsertReplaceEdit.is(h)?h.replace:h.range,m=Ake(s,d,f);m&&(g+=m),f.end.characterg&&(f.end.character+=c.character-g);let b=i.insertTextFormat===xe.InsertTextFormat.Snippet;if(b&&this.completeConfig.snippetsSupport===!1&&(b=!1,p=r),b){let T=((w=i.data)==null?void 0:w.ultisnip)===!0?{}:(D=i.data)==null?void 0:D.ultisnip;return await ei.insertSnippet(p,!t,f,i.insertTextMode,T||void 0)}return await e.applyEdits([xe.TextEdit.replace(f,p)],!1,c),!1}getTriggerKind(e){let{triggerCharacters:t}=this,i=t.includes(e.triggerCharacter),r=xe.CompletionTriggerKind.Invoked;return e.triggerForInComplete?r=xe.CompletionTriggerKind.TriggerForIncompleteCompletions:i&&(r=xe.CompletionTriggerKind.TriggerCharacter),r}convertVimCompleteItem(e,t,i){var g,p,f;let{detailMaxLength:r,detailField:o,invalidInsertCharacters:s,labels:a,defaultKindText:l}=this.completeConfig,u=e.additionalTextEdits!=null&&e.additionalTextEdits.length>0,c=e.insertTextFormat===xe.InsertTextFormat.Snippet||u,h=typeof e.label=="string"?e.label.trim():e.insertText??"",d={word:jke(e,t,s),abbr:h,kind:Ike(e.kind,a,l),kindHighlight:Lke[e.kind]??"CocSymbolDefault",sortText:e.sortText??null,sourceScore:e.score??null,filterText:e.filterText??h,preselect:e.preselect===!0,deprecated:e.deprecated===!0||((g=e.tags)==null?void 0:g.includes(xe.CompletionItemTag.Deprecated)),isSnippet:c,dup:((p=e.data)==null?void 0:p.dup)==0?0:1};if(d.line=t.line,i&&(d.filterText.startsWith(i)||e.textEdit&&Mo(Ln(i),e.textEdit.newText)&&(d.filterText=e.textEdit.newText.replace(/\r?\n/g,"")),!e.textEdit&&!d.word.startsWith(i)&&(d.word=`${i}${d.word}`)),d.word==""&&(d.empty=1),o=="abbr"&&e.detail){let m=e.detail.replace(/\r?\n\s*/g," ");V(d.abbr+m){"use strict";Es();Ne();ne();Ae();Yh();het=W()("sources-source-vim"),GD=class extends xr{async callOptionalFunc(e,t){if(!this.optionalFns.includes(e))return null;let r=`coc#source#${this.name}#${e}`,o;try{o=await this.nvim.call(r,t)}catch(s){return k.showMessage(`Vim error from source ${this.name}: ${s}`,"error"),null}return o}async shouldComplete(e){return await super.shouldComplete(e)?this.optionalFns.includes("should_complete")?!!await this.callOptionalFunc("should_complete",[e]):!0:!1}async refresh(){await this.callOptionalFunc("refresh",[])}async onCompleteDone(e,t){!this.optionalFns.includes("on_complete")||await this.callOptionalFunc("on_complete",[e])}onEnter(e){if(!this.optionalFns.includes("on_enter"))return;let t=v.getDocument(e);if(!t)return;let{filetypes:i}=this;i&&!i.includes(t.filetype)||this.callOptionalFunc("on_enter",[{bufnr:e,uri:t.uri,languageId:t.filetype}]).logError()}async doComplete(e,t){let{col:i,input:r,line:o,colnr:s}=e,a=await this.callOptionalFunc("get_startcol",[e]);if(t.isCancellationRequested)return;if(a){if(a<0)return null;a=Number(a),(isNaN(a)||a<0)&&(a=i),a!==i&&(r=at(o,a,s-1),e=Object.assign({},e,{col:a,changed:i-a,input:r}))}let l=await this.nvim.callAsync("coc#util#do_complete",[this.name,e]);if(!l||l.length==0||t.isCancellationRequested)return null;if(this.firstMatch&&r.length){let c=r[0];l=l.filter(h=>{let d=h.filterText?h.filterText[0]:h.word[0];return Ah(c,d)})}l=l.map(c=>{if(typeof c=="string")return{word:c,menu:this.menu,isSnippet:this.isSnippet};let h=c.menu?c.menu+" ":"";return c.menu=`${h}${this.menu}`,c.isSnippet=this.isSnippet,c});let u={items:l};return a&&(u.startcol=a),u}}});var Yte={};Ms(Yte,{default:()=>KD,regist:()=>Mke});function Mke(n,e){return n.set("around",new KD(e)),qte.Disposable.create(()=>{n.delete("around")})}var qte,yet,KD,Wte=_(()=>{"use strict";qte=x(q());re();Es();Yh();yet=W()("sources-around"),KD=class extends xr{constructor(e){super({name:"around",filepath:__filename});this.keywords=e}async filterWords(e,t,i,r){let o=!1,{input:s}=t,a=t.word,l=s[0],u=s.length>1,c=t.input.length,h=l.charCodeAt(0),d=h>=97&&h<=122,g=u?Ln(s):[],p=!0,f=!0,m=Date.now();for(let b of e){let w=b.length;if(w15){if(await yo(),i.isCancellationRequested)return;m=Date.now()}let D=d?b[0].toLowerCase():b[0];if(u){if(D.charCodeAt(0)===h&&Mo(g,b)&&(r.push(b),r.length==100)){o=!0;break}}else if(D.charCodeAt(0)===h&&(r.push(b),r.length==100)){o=!0;break}}return o}async doComplete(e,t){let{bufnr:i,input:r}=e;if(r.length===0||(await yo(),t.isCancellationRequested))return null;let o=this.keywords.getItem(i),s=o==null?void 0:o.words;if(!s)return null;let a=[],l=await this.filterWords(s,e,t,a);return t.isCancellationRequested?null:{isIncomplete:l,items:a.map(u=>({word:u,menu:this.menu}))}}}});var Jte={};Ms(Jte,{default:()=>QD,regist:()=>Oke});function Oke(n,e){return n.set("buffer",new QD(e)),Zte.Disposable.create(()=>{n.delete("buffer")})}var Zte,Cet,QD,$te=_(()=>{"use strict";Zte=x(q());re();Es();Yh();Cet=W()("sources-buffer"),QD=class extends xr{constructor(e){super({name:"buffer",filepath:__filename});this.keywords=e}get ignoreGitignore(){return this.getConfig("ignoreGitignore",!0)}async getWords(e,t,i,r){let{ignoreGitignore:o}=this,s=!1,a=t.input[0],l=t.input.length,u=l>1,c=a.charCodeAt(0),h=c>=97&&c<=122,d=u?Ln(t.input):[],g=Date.now();for(let p of this.keywords.items){if(r.size==100)break;if(!(p.bufnr===e||o&&p.gitIgnored))for(let f of p.words){if(Date.now()-g>15){if(await yo(),i.isCancellationRequested)return;g=Date.now()}if(f.length({word:a,menu:this.menu}))}}}});var Kte={};Ms(Kte,{default:()=>VD,regist:()=>Hke});function Hke(n){return n.set("file",new VD),Gte.Disposable.create(()=>{n.delete("file")})}var zD,Xte,In,Ute,Gte,Nke,Bke,VD,Qte=_(()=>{"use strict";zD=x(require("fs")),Xte=x(Yn()),In=x(require("path")),Ute=x(require("util")),Gte=x(q());Yh();et();Ne();Cc();ne();Nke=W()("sources-file"),Bke=/(?:\.{0,2}|~|\$HOME|([\w]+)|[a-zA-Z]:|)(\/|\\+)(?:[\u4E00-\u9FA5\u00A0-\u024F\w .@()-]+(\/|\\+))*(?:[\u4E00-\u9FA5\u00A0-\u024F\w .@()-])*$/,VD=class extends xr{constructor(){super({name:"file",filepath:__filename})}get triggerCharacters(){let e=this.getConfig("triggerCharacters",[]);return an?e:e.filter(t=>t!="\\")}resolveEnvVariables(e){let t=e;return t=t.replace(/%([^%]+)%/g,(i,r)=>process.env[r]),t=t.replace(/\$([A-Z_]+[A-Z0-9_]*)|\${([A-Z0-9_]*)}/gi,(i,r,o)=>process.env[r||o]),t}getPathOption(e){let{line:t,colnr:i}=e,r=at(t,0,i-1);if(r=this.resolveEnvVariables(r),!r||r.endsWith("//"))return null;let o=r.match(Bke);if(o&&o.length){let s=v.expand(o[0]),a=o[0].match(/[^/\\]*$/)[0];return{pathstr:s,part:o[1],startcol:i-a.length-1,input:a}}return null}async getFileItem(e,t){let i=In.default.join(e,t),r=await $t(i);if(r){let o=r.isDirectory()?t+"/":t;return{word:t,abbr:o}}return null}filterFiles(e){let t=this.getConfig("ignoreHidden",!0),i=this.getConfig("ignorePatterns",[]);return e.filter(r=>{if(r==null||t&&r.startsWith("."))return!1;for(let o of i)if((0,Xte.default)(r,o,{dot:!0}))return!1;return!0})}async getItemsFromRoot(e,t){let i=[],r=/[\\/]$/.test(e)?e:In.default.dirname(e),o=In.default.isAbsolute(e)?r:In.default.join(t,r);try{let s=await $t(o);if(s&&s.isDirectory()){let a=await Ute.default.promisify(zD.default.readdir)(o);a=this.filterFiles(a);let l=await Promise.all(a.map(u=>this.getFileItem(o,u)));i=i.concat(l)}return i=i.filter(a=>a!=null),i}catch(s){return Nke.error("Error on list files:",s),i}}get trimSameExts(){return this.getConfig("trimSameExts",[])}async doComplete(e){let{col:t,filepath:i}=e,r=this.getPathOption(e);if(!r)return null;let{pathstr:o,part:s,startcol:a,input:l}=r;if(ab.word[0]===m)),{items:p.map(b=>{let w=In.default.extname(b.word);return b.word=f&&w===h?b.word.replace(h,""):b.word,{word:`${u}${b.word}`,abbr:`${u}${b.abbr}`,menu:this.menu}})}}}});var tie={};Ms(tie,{Sources:()=>YR,default:()=>ct});var Vte,eC,eie,dt,zte,YR,ct,Io=_(()=>{"use strict";Vte=x(require("fs")),eC=x(require("path")),eie=x(require("util")),dt=x(q());we();Oo();$r();re();So();et();Ne();Ote();Ae();ne();Yh();Bte();Hte();zte=W()("sources"),YR=class{constructor(){this.sourceMap=new Map;this.disposables=[];this.remoteSourcePaths=[]}init(){this.loadCompleteConfig(),this.keywords=v.registerBufferSync(e=>new XD(e)),v.onDidChangeConfiguration(e=>{e.affectsConfiguration("suggest")&&this.loadCompleteConfig()},null,this.disposables),this.createNativeSources(),this.createRemoteSources(),P.on("InsertLeave",()=>{for(let e of this.keywords.items)e.parse()},this,this.disposables),P.on("BufEnter",this.onDocumentEnter,this,this.disposables),v.onDidRuntimePathChange(e=>{for(let t of e)t&&this.createVimSources(t)},null,this.disposables)}getShortcut(e){let t=this.sourceMap.get(e);return t?t.shortcut:""}loadCompleteConfig(){let e=v.getConfiguration("suggest"),t=e.get("completionItemKindLabels",{}),i=new Map([[dt.CompletionItemKind.Text,t.text??"v"],[dt.CompletionItemKind.Method,t.method??"f"],[dt.CompletionItemKind.Function,t.function??"f"],[dt.CompletionItemKind.Constructor,typeof t.constructor=="function"?"f":t["constructor"]??""],[dt.CompletionItemKind.Field,t.field??"m"],[dt.CompletionItemKind.Variable,t.variable??"v"],[dt.CompletionItemKind.Class,t.class??"C"],[dt.CompletionItemKind.Interface,t.interface??"I"],[dt.CompletionItemKind.Module,t.module??"M"],[dt.CompletionItemKind.Property,t.property??"m"],[dt.CompletionItemKind.Unit,t.unit??"U"],[dt.CompletionItemKind.Value,t.value??"v"],[dt.CompletionItemKind.Enum,t.enum??"E"],[dt.CompletionItemKind.Keyword,t.keyword??"k"],[dt.CompletionItemKind.Snippet,t.snippet??"S"],[dt.CompletionItemKind.Color,t.color??"v"],[dt.CompletionItemKind.File,t.file??"F"],[dt.CompletionItemKind.Reference,t.reference??"r"],[dt.CompletionItemKind.Folder,t.folder??"F"],[dt.CompletionItemKind.EnumMember,t.enumMember??"m"],[dt.CompletionItemKind.Constant,t.constant??"v"],[dt.CompletionItemKind.Struct,t.struct??"S"],[dt.CompletionItemKind.Event,t.event??"E"],[dt.CompletionItemKind.Operator,t.operator??"O"],[dt.CompletionItemKind.TypeParameter,t.typeParameter??"T"]]),r=e.get("detailField","preview");this.completeConfig=Object.assign(this.completeConfig||{},{labels:i,detailField:r,defaultKindText:t.default||"",priority:e.get("languageSourcePriority",99),snippetsSupport:e.get("snippetsSupport",!0),detailMaxLength:e.get("detailMaxLength",100),invalidInsertCharacters:e.get("invalidInsertCharacters",["(","<","{","[","\r",` +`])})}get nvim(){return v.nvim}createNativeSources(){this.disposables.push((Wte(),Uo(Yte)).regist(this.sourceMap,this.keywords)),this.disposables.push(($te(),Uo(Jte)).regist(this.sourceMap,this.keywords)),this.disposables.push((Qte(),Uo(Kte)).regist(this.sourceMap))}createLanguageSource(e,t,i,r,o,s,a){let l=new UD(e,t,r,i,o||[],a||[],s,this.completeConfig);return zte.debug("created service source",e),this.sourceMap.set(e,l),{dispose:()=>{this.sourceMap.delete(e)}}}async createVimSourceExtension(e,t){let i=eC.default.basename(t,".vim");try{await e.command(`source ${t}`);let r=await e.call("coc#util#remote_fns",i);for(let c of["init","complete"])if(!r.includes(c))return k.showMessage(`${c} not found for source ${i}`,"error"),null;let o=await e.call(`coc#source#${i}#init`,[]),s={name:`coc-source-${i}`,engines:{coc:">= 0.0.1"},activationEvents:o.filetypes?o.filetypes.map(c=>`onLanguage:${c}`):["*"],contributes:{configuration:{properties:{[`coc.source.${i}.enable`]:{type:"boolean",default:!0},[`coc.source.${i}.firstMatch`]:{type:"boolean",default:!!o.firstMatch},[`coc.source.${i}.triggerCharacters`]:{type:"number",default:o.triggerCharacters||[]},[`coc.source.${i}.priority`]:{type:"number",default:o.priority||9},[`coc.source.${i}.shortcut`]:{type:"string",default:o.shortcut||i.slice(0,3).toUpperCase(),description:"Shortcut text shown in complete menu."},[`coc.source.${i}.disableSyntaxes`]:{type:"array",default:[],items:{type:"string"}},[`coc.source.${i}.filetypes`]:{type:"array",default:o.filetypes||null,description:"Enabled filetypes.",items:{type:"string"}}}}}},a=new GD({name:i,filepath:t,sourceType:1,optionalFns:r.filter(c=>!["init","complete"].includes(c))}),l=!1,u={id:s.name,packageJSON:s,exports:void 0,extensionPath:t,activate:()=>(l=!0,this.addSource(a),Promise.resolve())};Object.defineProperty(u,"isActive",{get:()=>l}),Pe.registerExtension(u,()=>{l=!1,this.removeSource(a)})}catch(r){k.showMessage(`Error on create vim source ${i}: ${r}`,"error")}}createRemoteSources(){let{runtimepath:e}=v.env,t=e.split(",");for(let i of t)this.createVimSources(i).logError()}async createVimSources(e){if(this.remoteSourcePaths.includes(e))return;this.remoteSourcePaths.push(e);let t=eC.default.join(e,"autoload/coc/source"),i=await $t(t);if(i&&i.isDirectory()){let r=await eie.default.promisify(Vte.default.readdir)(t);r=r.filter(s=>s.endsWith(".vim"));let o=r.map(s=>eC.default.join(t,s));if(o.length==0)return;await Promise.all(o.map(s=>this.createVimSourceExtension(this.nvim,s)))}}get names(){return Array.from(this.sourceMap.keys())}get sources(){return Array.from(this.sourceMap.values())}has(e){return this.names.findIndex(t=>t==e)!=-1}getSource(e){return e&&this.sourceMap.get(e)||null}shouldCommit(e,t){if(!e||!e.source)return!1;let i=this.getSource(e.source);return i&&i.sourceType==2&&typeof i.shouldCommit=="function"?i.shouldCommit(e,t):!1}getCompleteSources(e){let{filetype:t}=e,i=at(e.line,0,e.colnr-1),r=e.input==""&&!!e.triggerCharacter,o=Py(e.filepath,e.bufnr,"",v.env.isCygwin);return r?this.getTriggerSources(i,t,o):this.getNormalSources(e.filetype,o)}getNormalSources(e,t){let i=e.split(".");return this.sources.filter(r=>{let{filetypes:o,triggerOnly:s,documentSelector:a,enable:l}=r;return!(!l||s||o&&!ap(o,i)||a&&i.every(u=>v.match(a,{uri:t,languageId:u})==0))})}checkTrigger(e,t,i){let{triggerCharacters:r,triggerPatterns:o}=e;return!!((r==null?void 0:r.length)>0&&r.includes(i)||(o==null?void 0:o.length)>0&&o.findIndex(s=>s.test(t))!==-1)}shouldTrigger(e,t,i){return this.getTriggerSources(e,t,i).length>0}getTriggerSources(e,t,i,r=[]){if(!e)return[];let o=e[e.length-1],s=t.split(".");return this.sources.filter(a=>{let{filetypes:l,enable:u,documentSelector:c,name:h}=a;return r.includes(h)||!u||l&&!ap(l,s)||c&&s.every(d=>v.match(c,{uri:i,languageId:d})==0)?!1:this.checkTrigger(a,e,o)})}addSource(e){let{name:t}=e;return this.names.includes(t)&&zte.warn(`Recreate source ${t}`),this.sourceMap.set(t,e),dt.Disposable.create(()=>{this.sourceMap.delete(t)})}removeSource(e){let t=typeof e=="string"?e:e.name;this.sourceMap.delete(t)}async refresh(e){for(let t of this.sources)(!e||t.name==e)&&typeof t.refresh=="function"&&await Promise.resolve(t.refresh())}toggleSource(e){if(!e)return;let t=this.getSource(e);!t||typeof t.toggle=="function"&&t.toggle()}sourceStats(){let e=[],t=this.sources;for(let i of t)e.push({name:i.name,priority:i.priority,triggerCharacters:i.triggerCharacters||[],shortcut:i.shortcut||"",filetypes:i.filetypes||[],filepath:i.filepath||"",type:i.sourceType==0?"native":i.sourceType==1?"remote":"service",disabled:!i.enable});return e}onDocumentEnter(e){let{sources:t}=this;for(let i of t)i.enable&&typeof i.onEnter=="function"&&i.onEnter(e)}createSource(e){if(!e.name||!e.doComplete)throw new Error("name and doComplete required for createSource");let t=new xr(Object.assign({sourceType:2},e));return this.addSource(t)}dispose(){$(this.disposables)}},ct=new YR});var Jo,nit,iie,j,Te=_(()=>{"use strict";Jo=x(q());fu();u$();d$();p$();m$();y$();v$();D$();x$();T$();E$();_$();L$();I$();A$();O$();B$();q$();W$();J$();X$();G$();Q$();V$();tX();nX();HE();aX();uX();re();nit=W()("languages"),iie=class{constructor(){this._onDidSemanticTokensRefresh=new Jo.Emitter;this._onDidInlayHintRefresh=new Jo.Emitter;this.onDidSemanticTokensRefresh=this._onDidSemanticTokensRefresh.event;this.onDidInlayHintRefresh=this._onDidInlayHintRefresh.event;this.onTypeFormatManager=new Ev;this.documentLinkManager=new vv;this.documentColorManager=new yv;this.foldingRangeManager=new Dv;this.renameManager=new _v;this.formatManager=new Cv;this.codeActionManager=new dv;this.workspaceSymbolsManager=new Mv;this.formatRangeManager=new xv;this.hoverManager=new Sv;this.signatureManager=new Iv;this.documentSymbolManager=new wv;this.documentHighlightManager=new bv;this.definitionManager=new mv;this.declarationManager=new pv;this.typeDefinitionManager=new jv;this.typeHierarchyManager=new Av;this.referenceManager=new Pv;this.implementationManager=new Tv;this.codeLensManager=new gv;this.selectionRangeManager=new Rv;this.callHierarchyManager=new cv;this.semanticTokensManager=new Lv;this.semanticTokensRangeManager=new Fv;this.linkedEditingManager=new kv;this.inlayHintManager=new Bv;this.inlineValueManager=new Hv;this.diagnosticManager=new qv}hasFormatProvider(e){return!!(this.formatManager.hasProvider(e)||this.formatRangeManager.hasProvider(e))}registerOnTypeFormattingEditProvider(e,t,i){return this.onTypeFormatManager.register(e,t,i)}registerCompletionItemProvider(e,t,i,r,o=[],s,a){return i=typeof i=="string"?[{language:i}]:i,(Io(),Uo(tie)).default.createLanguageSource(e,t,i,r,o,s,a)}registerCodeActionProvider(e,t,i,r){return this.codeActionManager.register(e,t,i,r)}registerHoverProvider(e,t){return this.hoverManager.register(e,t)}registerSelectionRangeProvider(e,t){return this.selectionRangeManager.register(e,t)}registerSignatureHelpProvider(e,t,i){return this.signatureManager.register(e,t,i)}registerDocumentSymbolProvider(e,t,i){return this.documentSymbolManager.register(e,t,i)}registerFoldingRangeProvider(e,t){return this.foldingRangeManager.register(e,t)}registerDocumentHighlightProvider(e,t){return this.documentHighlightManager.register(e,t)}registerCodeLensProvider(e,t){return this.codeLensManager.register(e,t)}registerDocumentLinkProvider(e,t){return this.documentLinkManager.register(e,t)}registerDocumentColorProvider(e,t){return this.documentColorManager.register(e,t)}registerDefinitionProvider(e,t){return this.definitionManager.register(e,t)}registerDeclarationProvider(e,t){return this.declarationManager.register(e,t)}registerTypeDefinitionProvider(e,t){return this.typeDefinitionManager.register(e,t)}registerTypeHierarchyProvider(e,t){return this.typeHierarchyManager.register(e,t)}registerImplementationProvider(e,t){return this.implementationManager.register(e,t)}registerReferencesProvider(e,t){return this.referenceManager.register(e,t)}registerRenameProvider(e,t){return this.renameManager.register(e,t)}registerWorkspaceSymbolProvider(e){return arguments.length>1&&typeof arguments[1].provideWorkspaceSymbols=="function"&&(e=arguments[1]),this.workspaceSymbolsManager.register(e)}registerDocumentFormatProvider(e,t,i=0){return this.formatManager.register(e,t,i)}registerDocumentRangeFormatProvider(e,t,i=0){return this.formatRangeManager.register(e,t,i)}registerCallHierarchyProvider(e,t){return this.callHierarchyManager.register(e,t)}registerDocumentSemanticTokensProvider(e,t,i){let r=setTimeout(()=>{this._onDidSemanticTokensRefresh.fire(e)},500),o=this.semanticTokensManager.register(e,t,i,()=>{clearTimeout(r),this._onDidSemanticTokensRefresh.fire(e)});return Jo.Disposable.create(()=>{clearTimeout(r),o.dispose()})}registerDocumentRangeSemanticTokensProvider(e,t,i){return this._onDidSemanticTokensRefresh.fire(e),this.semanticTokensRangeManager.register(e,t,i)}registerInlayHintsProvider(e,t){let i=[];return i.push(this.inlayHintManager.register(e,t)),this._onDidInlayHintRefresh.fire(e),typeof t.onDidChangeInlayHints=="function"&&t.onDidChangeInlayHints(()=>{this._onDidInlayHintRefresh.fire(e)},null,i),Jo.Disposable.create(()=>{$(i),this._onDidInlayHintRefresh.fire(e)})}registerInlineValuesProvider(e,t){return this.inlineValueManager.register(e,t)}registerDiagnosticsProvider(e,t){return this.diagnosticManager.register(e,t)}registerLinkedEditingRangeProvider(e,t){return this.linkedEditingManager.register(e,t)}shouldTriggerSignatureHelp(e,t){return this.signatureManager.shouldTrigger(e,t)}async getHover(e,t,i){return await this.hoverManager.provideHover(e,t,i)}async getSignatureHelp(e,t,i,r){return await this.signatureManager.provideSignatureHelp(e,t,i,r)}async getDefinition(e,t,i){return this.definitionManager.hasProvider(e)?await this.definitionManager.provideDefinition(e,t,i):null}async getDefinitionLinks(e,t,i){return this.definitionManager.hasProvider(e)?await this.definitionManager.provideDefinitionLinks(e,t,i):null}async getDeclaration(e,t,i){return this.declarationManager.hasProvider(e)?await this.declarationManager.provideDeclaration(e,t,i):null}async getTypeDefinition(e,t,i){return this.typeDefinitionManager.hasProvider(e)?await this.typeDefinitionManager.provideTypeDefinition(e,t,i):null}async getImplementation(e,t,i){return this.implementationManager.hasProvider(e)?await this.implementationManager.provideReferences(e,t,i):null}async getReferences(e,t,i,r){return this.referenceManager.hasProvider(e)?await this.referenceManager.provideReferences(e,i,t,r):null}async getDocumentSymbol(e,t){return await this.documentSymbolManager.provideDocumentSymbols(e,t)}getDocumentSymbolMetadata(e){return this.documentSymbolManager.getMetaData(e)}async getSelectionRanges(e,t,i){return await this.selectionRangeManager.provideSelectionRanges(e,t,i)}async getWorkspaceSymbols(e,t){return e=e||"",await this.workspaceSymbolsManager.provideWorkspaceSymbols(e,t)}async resolveWorkspaceSymbol(e,t){return await this.workspaceSymbolsManager.resolveWorkspaceSymbol(e,t)}async prepareRename(e,t,i){return await this.renameManager.prepareRename(e,t,i)}async provideRenameEdits(e,t,i,r){return await this.renameManager.provideRenameEdits(e,t,i,r)}async provideDocumentFormattingEdits(e,t,i){if(!this.formatManager.hasProvider(e)){if(!this.formatRangeManager.hasProvider(e))return null;let o=e.positionAt(e.getText().length),s=Jo.Range.create(Jo.Position.create(0,0),o);return await this.provideDocumentRangeFormattingEdits(e,s,t,i)}return await this.formatManager.provideDocumentFormattingEdits(e,t,i)}async provideDocumentRangeFormattingEdits(e,t,i,r){return this.formatRangeManager.hasProvider(e)?await this.formatRangeManager.provideDocumentRangeFormattingEdits(e,t,i,r):null}async getCodeActions(e,t,i,r){return await this.codeActionManager.provideCodeActions(e,t,i,r)}async getDocumentHighLight(e,t,i){return await this.documentHighlightManager.provideDocumentHighlights(e,t,i)}async getDocumentLinks(e,t){return this.documentLinkManager.hasProvider(e)?await this.documentLinkManager.provideDocumentLinks(e,t)||[]:null}async resolveDocumentLink(e,t){return await this.documentLinkManager.resolveDocumentLink(e,t)}async provideDocumentColors(e,t){return await this.documentColorManager.provideDocumentColors(e,t)}async provideFoldingRanges(e,t,i){return this.foldingRangeManager.hasProvider(e)?await this.foldingRangeManager.provideFoldingRanges(e,t,i):null}async provideColorPresentations(e,t,i){return await this.documentColorManager.provideColorPresentations(e,t,i)}async getCodeLens(e,t){return await this.codeLensManager.provideCodeLenses(e,t)}async resolveCodeLens(e,t){return e.command!=null?e:await this.codeLensManager.resolveCodeLens(e,t)}async resolveCodeAction(e,t){return await this.codeActionManager.resolveCodeAction(e,t)}async provideDocumentOnTypeEdits(e,t,i,r){return this.onTypeFormatManager.onCharacterType(e,t,i,r)}canFormatOnType(e,t){return this.onTypeFormatManager.getProvider(t,e)!=null}async prepareCallHierarchy(e,t,i){return this.callHierarchyManager.prepareCallHierarchy(e,t,i)}async provideIncomingCalls(e,t,i){return this.callHierarchyManager.provideCallHierarchyIncomingCalls(e,t,i)}async provideOutgoingCalls(e,t,i){return this.callHierarchyManager.provideCallHierarchyOutgoingCalls(e,t,i)}getLegend(e,t){return t?this.semanticTokensRangeManager.getLegend(e):this.semanticTokensManager.getLegend(e)}hasSemanticTokensEdits(e){return this.semanticTokensManager.hasSemanticTokensEdits(e)}async provideDocumentSemanticTokens(e,t){return this.semanticTokensManager.provideDocumentSemanticTokens(e,t)}async provideDocumentSemanticTokensEdits(e,t,i){return this.semanticTokensManager.provideDocumentSemanticTokensEdits(e,t,i)}async provideDocumentRangeSemanticTokens(e,t,i){return this.semanticTokensRangeManager.provideDocumentRangeSemanticTokens(e,t,i)}async provideInlayHints(e,t,i){return this.inlayHintManager.provideInlayHints(e,t,i)}async resolveInlayHint(e,t){return this.inlayHintManager.resolveInlayHint(e,t)}hasLinkedEditing(e){return this.linkedEditingManager.hasProvider(e)}async provideLinkedEdits(e,t,i){return this.linkedEditingManager.provideLinkedEditingRanges(e,t,i)}createDiagnosticCollection(e){return Yt.create(e)}hasProvider(e,t){switch(e){case"formatOnType":return this.onTypeFormatManager.hasProvider(t);case"rename":return this.renameManager.hasProvider(t);case"onTypeEdit":return this.onTypeFormatManager.hasProvider(t);case"documentLink":return this.documentLinkManager.hasProvider(t);case"documentColor":return this.documentColorManager.hasProvider(t);case"foldingRange":return this.foldingRangeManager.hasProvider(t);case"format":return this.formatManager.hasProvider(t)||this.formatRangeManager.hasProvider(t);case"codeAction":return this.codeActionManager.hasProvider(t);case"workspaceSymbols":return this.workspaceSymbolsManager.hasProvider();case"formatRange":return this.formatRangeManager.hasProvider(t);case"hover":return this.hoverManager.hasProvider(t);case"signature":return this.signatureManager.hasProvider(t);case"documentSymbol":return this.documentSymbolManager.hasProvider(t);case"documentHighlight":return this.documentHighlightManager.hasProvider(t);case"definition":return this.definitionManager.hasProvider(t);case"declaration":return this.declarationManager.hasProvider(t);case"typeDefinition":return this.typeDefinitionManager.hasProvider(t);case"reference":return this.referenceManager.hasProvider(t);case"implementation":return this.implementationManager.hasProvider(t);case"codeLens":return this.codeLensManager.hasProvider(t);case"selectionRange":return this.selectionRangeManager.hasProvider(t);case"callHierarchy":return this.callHierarchyManager.hasProvider(t);case"semanticTokens":return this.semanticTokensManager.hasProvider(t);case"semanticTokensRange":return this.semanticTokensRangeManager.hasProvider(t);case"linkedEditing":return this.linkedEditingManager.hasProvider(t);case"inlayHint":return this.inlayHintManager.hasProvider(t);default:throw new Error(`Invalid provider name: ${e}`)}}},j=new iie});var nie,uit,tC,rie=_(()=>{"use strict";nie=x(q());we();re();uit=W()("model-dialog"),tC=class{constructor(e,t){this.nvim=e;this.config=t;this.disposables=[];this._onDidClose=new nie.Emitter;this.onDidClose=this._onDidClose.event;P.on("BufWinLeave",i=>{i==this.bufnr&&(this.dispose(),t.callback&&t.callback(-1))},null,this.disposables),P.on("FloatBtnClick",(i,r)=>{if(i==this.bufnr){this.dispose();let o=t==null?void 0:t.buttons.filter(s=>s.disabled!=!0);t.callback&&t.callback(o[r].index)}},null,this.disposables)}get lines(){return[...this.config.content.split(/\r?\n/)]}async show(e){let{nvim:t}=this,{title:i,close:r,highlights:o,buttons:s}=this.config,a=this.config.borderhighlight||e.floatBorderHighlight,l=this.config.highlight||e.floatHighlight,u={maxwidth:e.maxWidth||80};i&&(u.title=i),(r||typeof r>"u")&&(u.close=1),e.maxHeight&&(u.maxHeight=e.maxHeight),e.maxWidth&&(u.maxWidth=e.maxWidth),l&&(u.highlight=l),o&&(u.highlights=o),a&&(u.borderhighlight=[a]),s&&(u.buttons=s.filter(h=>!h.disabled).map(h=>h.text)),e.rounded&&(u.rounded=1),Array.isArray(u.buttons)&&(u.getchar=1);let c=await t.call("coc#dialog#create_dialog",[this.lines,u]);if(!c)throw new Error("Unable to open dialog window.");this.bufnr=c[1],t.command("redraw",!0)}get winid(){return this.bufnr?this.nvim.call("bufwinid",[this.bufnr]):Promise.resolve(null)}dispose(){this._onDidClose.fire(),this.bufnr=void 0,$(this.disposables),this.disposables=[]}}});var WR,fit,vu,ZR=_(()=>{"use strict";WR=x(q());we();re();fit=W()("model-input"),vu=class{constructor(e,t){this.nvim=e;this.disposables=[];this.accepted=!1;this._dimension=[0,0,0,0];this._onDidFinish=new WR.Emitter;this._onDidChange=new WR.Emitter;this.onDidFinish=this._onDidFinish.event;this.onDidChange=this._onDidChange.event;this._input=t,this.disposables.push(this._onDidFinish),this.disposables.push(this._onDidChange);let i;Object.defineProperty(this,"title",{set:s=>{i=s,this._winid&&e.call("coc#dialog#change_title",[this._winid,s],!0)},get:()=>i});let r=!1;Object.defineProperty(this,"loading",{set:s=>{r=s,this._winid&&e.call("coc#dialog#change_loading",[this._winid,s],!0)},get:()=>r});let o;Object.defineProperty(this,"borderhighlight",{set:s=>{o=s,this._winid&&e.call("coc#dialog#change_border_hl",[this._winid,s],!0)},get:()=>o}),P.on("BufWinLeave",s=>{s==this._bufnr&&(this._winid=void 0,this.dispose())},null,this.disposables),P.on("PromptInsert",(s,a)=>{a==this._bufnr&&(this._input=s,this.accepted=!0,this.dispose())},null,this.disposables),P.on("TextChangedI",(s,a)=>{s==this._bufnr&&(this._input=a.line,this._onDidChange.fire(a.line))},null,this.disposables)}get dimension(){let{_dimension:e}=this;return{width:e[0],height:e[1],row:e[2],col:e[3]}}get bufnr(){return this._bufnr}get winid(){return this._winid}get value(){return this._input}async show(e,t){this.title=e,this.borderhighlight=t.borderhighlight??"CocFloating",this.loading=!1;let i=await this.nvim.call("coc#dialog#create_prompt_win",[e,this._input,t]);if(!i)throw new Error("Unable to open input window");return this._bufnr=i[0],this._winid=i[1],this._dimension=i[2],!0}dispose(){this._onDidFinish.fire(this.accepted?this._input:null),this._winid&&this.nvim.call("coc#float#close",[this._winid],!0),this._winid=void 0,this._bufnr=void 0,$(this.disposables)}}});var JR,Xa,iC=_(()=>{"use strict";JR=process.env.VIM_NODE_RPC=="1",Xa=class{constructor(e,t,i,r,o=0){this.nvim=e;this.winid=t;this.bufnr=i;this.linecount=r;this._currIndex=o}get currIndex(){return this._currIndex}get valid(){return this.nvim.call("coc#float#valid",[this.winid]).then(e=>!!e)}close(){this.nvim.call("coc#float#close",[this.winid],!0)}refreshScrollbar(){JR||this.nvim.call("coc#float#nvim_scrollbar",[this.winid],!0)}execute(e){this.nvim.call("coc#compat#execute",[this.winid,e],!0)}async scrollForward(){let{nvim:e,bufnr:t,winid:i}=this,o=await e.createBuffer(t).length,s;if(JR)s=await e.eval(`get(popup_getpos(${i}), 'lastline', 0)`);else{let a=await e.call("getwininfo",[i]);if(!a||!a.length)return;s=a[0].botline}s>=o||s==0||(e.pauseNotification(),this.setCursor(s-1),this.execute("silent! noa setl scrolloff=0"),this.execute(`normal! ${s}Gzt`),this.refreshScrollbar(),e.command("redraw",!0),e.resumeNotification(!1,!0))}async scrollBackward(){let{nvim:e,winid:t}=this,i;if(JR)i=await e.eval(`get(popup_getpos(${t}), 'firstline', 0)`);else{let r=await e.call("getwininfo",[t]);if(!r||!r.length)return;i=r[0].topline}i!=1&&(e.pauseNotification(),this.setCursor(i-1),this.execute(`normal! ${i}Gzb`),this.refreshScrollbar(),e.command("redraw",!0),e.resumeNotification(!1,!0))}setCursor(e,t=!1){let{nvim:i,bufnr:r,winid:o,linecount:s}=this;e<0?e=0:e>s-1&&(e=s-1),this._currIndex=e,i.call("coc#dialog#set_cursor",[o,r,e+1],!0),t&&(this.refreshScrollbar(),i.command("redraw",!0))}}});function wu(n){return n?typeof n.text=="string":!1}var oie,qke,nC,sie=_(()=>{"use strict";oie=x(q());we();re();Ne();iC();qke=W()("model-menu");nC=class{constructor(e,t,i){this.nvim=e;this.config=t;this.currIndex=0;this.contentHeight=0;this.disposables=[];this.keyMappings=new Map;this.shortcutIndexes=new Set;this._disposed=!1;this._onDidClose=new oie.Emitter;this.onDidClose=this._onDidClose.event;this.total=t.items.length,i&&i.onCancellationRequested(()=>{var r;this.win?(r=this.win)==null||r.close():(this._onDidClose.fire(-1),this.dispose())}),this.disposables.push(this._onDidClose),this.addKeymappings()}attachEvents(){P.on("InputChar",this.onInputChar.bind(this),null,this.disposables),P.on("BufWinLeave",e=>{e==this.bufnr&&(this._onDidClose.fire(-1),this.dispose())},null,this.disposables)}addKeymappings(){let{nvim:e}=this;this.addKeys(["",""],()=>{this._onDidClose.fire(-1),this.dispose()}),this.addKeys(["\r",""],()=>{this.selectCurrent()});let t=s=>{var a;!this.win||(e.pauseNotification(),this.setCursor(s+this.contentHeight),(a=this.win)==null||a.refreshScrollbar(),e.command("redraw",!0),e.resumeNotification(!1,!0))};this.addKeys("",async()=>{var s;await((s=this.win)==null?void 0:s.scrollForward())}),this.addKeys("",async()=>{var s;await((s=this.win)==null?void 0:s.scrollBackward())}),this.addKeys(["j","","",""],()=>{let s=this.currIndex==this.total-1?0:this.currIndex+1;t(s)}),this.addKeys(["k","","",""],()=>{let s=this.currIndex==0?this.total-1:this.currIndex-1;t(s)}),this.addKeys(["g"],()=>{t(0)}),this.addKeys(["G"],()=>{t(this.total-1)});let i,r,o=s=>{this.isDisabled(s)||(this._onDidClose.fire(s),this.dispose())};this.addKeys(["0","1","2","3","4","5","6","7","8","9"],s=>{i&&clearTimeout(i);let a=parseInt(s,10);if(!(isNaN(a)||a>this.total)&&!(r==null&&a==0)){if(r){let l=r*10+a;r=void 0,o(l-1);return}if(this.total<10||a*10>this.total){o(a-1);return}i=setTimeout(async()=>{o(a-1)},200),r=a}}),this.config.shortcuts&&this.addShortcuts(o)}addShortcuts(e){let{items:t}=this.config;t.map(r=>wu(r)?r.text:r).forEach((r,o)=>{if(r.length){let s=r[0];_T(s.charCodeAt(0))&&!this.keyMappings.has(s)&&(this.shortcutIndexes.add(o),this.addKeys(s,()=>{e(o)}))}})}isDisabled(e){let{items:t}=this.config,i=t[e];return!!(wu(i)&&i.disabled)}async show(e={}){let{nvim:t,shortcutIndexes:i}=this,{title:r,items:o,borderhighlight:s,position:a,content:l}=this.config,u={};r&&(u.title=r),a==="center"&&(u.relative="editor"),e.maxHeight&&(u.maxHeight=e.maxHeight),e.maxWidth&&(u.maxWidth=e.maxWidth),e.floatHighlight&&(u.highlight=e.floatHighlight),s?u.borderhighlight=s:e.floatBorderHighlight&&(u.borderhighlight=e.floatBorderHighlight),e.rounded&&(u.rounded=1),typeof l=="string"&&(u.content=l);let c=[],h=o.map((g,p)=>{let f=wu(g)?g.text:g,m=p<99?`${p+1}. `:"";return i.has(p)&&c.push({lnum:p,hlGroup:e.shortcutHighlight||"MoreMsg",colStart:V(m),colEnd:V(m)+1}),m+f.trim()});h.forEach((g,p)=>{let f=o[p];wu(f)&&f.disabled&&c.push({hlGroup:"CocDisabled",lnum:p,colStart:0,colEnd:V(g)})}),c.length&&(u.highlights=c),e.confirmKey&&e.confirmKey!=""&&this.addKeys(e.confirmKey,()=>{this.selectCurrent()});let d=await t.call("coc#dialog#create_menu",[h,u]);if(!d)throw new Error("Unable to create menu window");t.command("redraw",!0),!this._disposed&&(this.win=new Xa(t,d[0],d[1],h.length+d[2],d[2]),this.bufnr=d[1],this.contentHeight=d[2],this.attachEvents(),t.call("coc#prompt#start_prompt",["menu"],!0))}selectCurrent(){if(this.isDisabled(this.currIndex)){let e=this.config.items[this.currIndex];e.disabled.reason&&this.nvim.outWriteLine(`Item disabled: ${e.disabled.reason}`);return}this._onDidClose.fire(this.currIndex),this.dispose()}get buffer(){return this.bufnr?this.nvim.createBuffer(this.bufnr):void 0}dispose(){var e;this._disposed=!0,$(this.disposables),this.shortcutIndexes.clear(),this.keyMappings.clear(),this.nvim.call("coc#prompt#stop_prompt",["menu"],!0),(e=this.win)==null||e.close(),this.bufnr=void 0,this.win=void 0}async onInputChar(e,t){if(e!="menu"||!this.win)return;let i=this.keyMappings.get(t);i?await Promise.resolve(i(t)):qke.warn(`Ignored key press: ${t}`)}setCursor(e){!this.win||(this.currIndex=e-this.contentHeight,this.win.setCursor(e))}addKeys(e,t){if(Array.isArray(e))for(let i of e)this.keyMappings.set(i,t);else this.keyMappings.set(e,t)}}});var Pit,Du,$R=_(()=>{"use strict";we();re();Pit=W()("model-notification"),Du=class{constructor(e,t,i=!0){this.nvim=e;this.config=t;this.disposables=[];this._disposed=!1;i&&(P.on("BufWinLeave",r=>{r==this.bufnr&&(this.dispose(),t.callback&&t.callback(-1))},null,this.disposables),P.on("FloatBtnClick",(r,o)=>{if(r==this.bufnr){this.dispose();let s=t==null?void 0:t.buttons.filter(a=>a.disabled!=!0);t.callback&&t.callback(s[o].index)}},null,this.disposables))}get lines(){return this.config.content?this.config.content.split(/\r?\n/):[]}async show(e){let{nvim:t}=this,{buttons:i,kind:r,title:o}=this.config,s=Object.assign({},e);if(s.kind=r??"",o&&(s.title=o),e.broder&&(s.borderhighlight=r?`CocNotification${r[0].toUpperCase()}${r.slice(1)}`:e.highlight),Array.isArray(i)){let l=i.filter(u=>!u.disabled).map(u=>u.text);l.length&&(s.actions=l)}let a=await t.call("coc#notify#create",[this.lines,s]);if(!a)throw new Error("Unable to create notification window");this._winid=a[0],this.bufnr=a[1]}get winid(){return this._winid}dispose(){if(this._disposed)return;this._disposed=!0;let{winid:e}=this;e&&(this.nvim.call("coc#notify#close",[e],!0),this.nvim.redrawVim()),this.bufnr=void 0,this._winid=void 0,$(this.disposables)}}});var aie,Yke,Wke,rC,lie=_(()=>{"use strict";aie=x(q());we();re();Ne();iC();Yke=W()("model-dialog"),Wke=process.env.VIM_NODE_RPC=="1",rC=class{constructor(e,t,i){this.nvim=e;this.config=t;this.picked=new Set;this.disposables=[];this.keyMappings=new Map;this._onDidClose=new aie.Emitter;this.onDidClose=this._onDidClose.event;for(let r=0;r{var r;(r=this.win)==null||r.close()}),this.disposables.push(this._onDidClose),this.addKeymappings()}get currIndex(){return this.win?this.win.currIndex:0}attachEvents(){P.on("InputChar",this.onInputChar.bind(this),null,this.disposables),P.on("BufWinLeave",e=>{e==this.bufnr&&(this._onDidClose.fire(void 0),this.bufnr=void 0,this.win=void 0,this.dispose())},null,this.disposables),P.on("FloatBtnClick",(e,t)=>{if(e==this.bufnr){if(t==0){let i=Array.from(this.picked);this._onDidClose.fire(i.length?i:void 0)}else this._onDidClose.fire(void 0);this.dispose()}},null,this.disposables)}addKeymappings(){let{nvim:e}=this,t=i=>{this.picked.has(i)?this.picked.delete(i):this.picked.add(i)};this.addKeys("",async()=>{if(Wke||!this.win)return;let[i,r,o]=await e.eval("[v:mouse_winid,v:mouse_lnum,v:mouse_col]");if(global.hasOwnProperty("__TEST__")){let s=await e.getVar("mouse_position");i=s[0],r=s[1],o=s[2]}e.pauseNotification(),i==this.win.winid&&(o<=3?(t(r-1),this.changeLine(r-1)):this.setCursor(r-1)),e.call("win_gotoid",[i],!0),e.call("cursor",[r,o],!0),e.call("coc#float#nvim_float_click",[],!0),e.command("redraw",!0),await e.resumeNotification()}),this.addKeys(["",""],()=>{this._onDidClose.fire(void 0),this.dispose()}),this.addKeys("",()=>{if(this.picked.size==0)this._onDidClose.fire(void 0);else{let i=Array.from(this.picked);this._onDidClose.fire(i)}this.dispose()}),this.addKeys(["j","","",""],()=>{this.win.setCursor(this.currIndex+1,!0)}),this.addKeys(["k","","",""],()=>{this.win.setCursor(this.currIndex-1,!0)}),this.addKeys(["g"],()=>{this.win.setCursor(0,!0)}),this.addKeys(["G"],()=>{this.win.setCursor(this.total-1,!0)}),this.addKeys(" ",async()=>{let i=this.currIndex;t(i),e.pauseNotification(),this.changeLine(i),this.setCursor(this.currIndex+1),e.command("redraw",!0),await e.resumeNotification()}),this.addKeys("",async()=>{var i;await((i=this.win)==null?void 0:i.scrollForward())}),this.addKeys("",async()=>{var i;await((i=this.win)==null?void 0:i.scrollBackward())})}async show(e={}){let{nvim:t}=this,{title:i,items:r}=this.config,o={close:1,cursorline:1};if(e.maxHeight&&(o.maxHeight=e.maxHeight),e.maxWidth&&(o.maxWidth=e.maxWidth),i&&(o.title=i),e.floatHighlight&&(o.highlight=e.floatHighlight),e.floatBorderHighlight&&(o.borderhighlight=[e.floatBorderHighlight]),e.pickerButtons){let u=e.pickerButtonShortcut;o.buttons=["Submit"+(u?" ":""),"Cancel"+(u?" ":"")]}e.rounded&&(o.rounded=1),e.confirmKey&&e.confirmKey!=""&&this.addKeys(e.confirmKey,()=>{this._onDidClose.fire(void 0),this.dispose()});let s=[],a=[];for(let u=0;u{"use strict";$R();oC=x(q());we();Zke=W()("model-progress"),sC=class extends Du{constructor(e,t){super(e,{kind:"progress",title:t.title,buttons:t.cancellable?[{index:1,text:"Cancel"}]:void 0},!1);this.option=t;this._onDidFinish=new oC.Emitter;this.onDidFinish=this._onDidFinish.event;this.disposables.push(this._onDidFinish),P.on("BufWinLeave",i=>{i==this.bufnr&&(this.tokenSource&&this.tokenSource.cancel(),this._onDidFinish.fire(void 0),this.dispose())},null,this.disposables)}async show(e){let{task:t}=this.option,i=this.tokenSource=new oC.CancellationTokenSource;this.disposables.push(i);let r=0;this.config.buttons||!e.disabled?await super.show(e):Zke.warn('progress window disabled by "notification.disabledProgressSources"'),t({report:o=>{if(!this.winid)return;let{nvim:s}=this;o.increment&&(r+=o.increment,s.call("coc#window#set_var",[this.winid,"percent",`${r}%`],!0)),o.message&&s.call("coc#window#set_var",[this.winid,"message",o.message.replace(/\r?\n/g," ")],!0)}},i.token).then(o=>{this._disposed||(this._onDidFinish.fire(o),this.dispose())},o=>{this.nvim.echoError(o),!this._disposed&&(this._onDidFinish.fire(void 0),this.dispose())})}}});var hie=y((Zit,XR)=>{var Ua={};typeof XR>"u"?window.eastasianwidth=Ua:XR.exports=Ua;Ua.eastAsianWidth=function(n){var e=n.charCodeAt(0),t=n.length==2?n.charCodeAt(1):0,i=e;return 55296<=e&&e<=56319&&56320<=t&&t<=57343&&(e&=1023,t&=1023,i=e<<10|t,i+=65536),i==12288||65281<=i&&i<=65376||65504<=i&&i<=65510?"F":i==8361||65377<=i&&i<=65470||65474<=i&&i<=65479||65482<=i&&i<=65487||65490<=i&&i<=65495||65498<=i&&i<=65500||65512<=i&&i<=65518?"H":4352<=i&&i<=4447||4515<=i&&i<=4519||4602<=i&&i<=4607||9001<=i&&i<=9002||11904<=i&&i<=11929||11931<=i&&i<=12019||12032<=i&&i<=12245||12272<=i&&i<=12283||12289<=i&&i<=12350||12353<=i&&i<=12438||12441<=i&&i<=12543||12549<=i&&i<=12589||12593<=i&&i<=12686||12688<=i&&i<=12730||12736<=i&&i<=12771||12784<=i&&i<=12830||12832<=i&&i<=12871||12880<=i&&i<=13054||13056<=i&&i<=19903||19968<=i&&i<=42124||42128<=i&&i<=42182||43360<=i&&i<=43388||44032<=i&&i<=55203||55216<=i&&i<=55238||55243<=i&&i<=55291||63744<=i&&i<=64255||65040<=i&&i<=65049||65072<=i&&i<=65106||65108<=i&&i<=65126||65128<=i&&i<=65131||110592<=i&&i<=110593||127488<=i&&i<=127490||127504<=i&&i<=127546||127552<=i&&i<=127560||127568<=i&&i<=127569||131072<=i&&i<=194367||177984<=i&&i<=196605||196608<=i&&i<=262141?"W":32<=i&&i<=126||162<=i&&i<=163||165<=i&&i<=166||i==172||i==175||10214<=i&&i<=10221||10629<=i&&i<=10630?"Na":i==161||i==164||167<=i&&i<=168||i==170||173<=i&&i<=174||176<=i&&i<=180||182<=i&&i<=186||188<=i&&i<=191||i==198||i==208||215<=i&&i<=216||222<=i&&i<=225||i==230||232<=i&&i<=234||236<=i&&i<=237||i==240||242<=i&&i<=243||247<=i&&i<=250||i==252||i==254||i==257||i==273||i==275||i==283||294<=i&&i<=295||i==299||305<=i&&i<=307||i==312||319<=i&&i<=322||i==324||328<=i&&i<=331||i==333||338<=i&&i<=339||358<=i&&i<=359||i==363||i==462||i==464||i==466||i==468||i==470||i==472||i==474||i==476||i==593||i==609||i==708||i==711||713<=i&&i<=715||i==717||i==720||728<=i&&i<=731||i==733||i==735||768<=i&&i<=879||913<=i&&i<=929||931<=i&&i<=937||945<=i&&i<=961||963<=i&&i<=969||i==1025||1040<=i&&i<=1103||i==1105||i==8208||8211<=i&&i<=8214||8216<=i&&i<=8217||8220<=i&&i<=8221||8224<=i&&i<=8226||8228<=i&&i<=8231||i==8240||8242<=i&&i<=8243||i==8245||i==8251||i==8254||i==8308||i==8319||8321<=i&&i<=8324||i==8364||i==8451||i==8453||i==8457||i==8467||i==8470||8481<=i&&i<=8482||i==8486||i==8491||8531<=i&&i<=8532||8539<=i&&i<=8542||8544<=i&&i<=8555||8560<=i&&i<=8569||i==8585||8592<=i&&i<=8601||8632<=i&&i<=8633||i==8658||i==8660||i==8679||i==8704||8706<=i&&i<=8707||8711<=i&&i<=8712||i==8715||i==8719||i==8721||i==8725||i==8730||8733<=i&&i<=8736||i==8739||i==8741||8743<=i&&i<=8748||i==8750||8756<=i&&i<=8759||8764<=i&&i<=8765||i==8776||i==8780||i==8786||8800<=i&&i<=8801||8804<=i&&i<=8807||8810<=i&&i<=8811||8814<=i&&i<=8815||8834<=i&&i<=8835||8838<=i&&i<=8839||i==8853||i==8857||i==8869||i==8895||i==8978||9312<=i&&i<=9449||9451<=i&&i<=9547||9552<=i&&i<=9587||9600<=i&&i<=9615||9618<=i&&i<=9621||9632<=i&&i<=9633||9635<=i&&i<=9641||9650<=i&&i<=9651||9654<=i&&i<=9655||9660<=i&&i<=9661||9664<=i&&i<=9665||9670<=i&&i<=9672||i==9675||9678<=i&&i<=9681||9698<=i&&i<=9701||i==9711||9733<=i&&i<=9734||i==9737||9742<=i&&i<=9743||9748<=i&&i<=9749||i==9756||i==9758||i==9792||i==9794||9824<=i&&i<=9825||9827<=i&&i<=9829||9831<=i&&i<=9834||9836<=i&&i<=9837||i==9839||9886<=i&&i<=9887||9918<=i&&i<=9919||9924<=i&&i<=9933||9935<=i&&i<=9953||i==9955||9960<=i&&i<=9983||i==10045||i==10071||10102<=i&&i<=10111||11093<=i&&i<=11097||12872<=i&&i<=12879||57344<=i&&i<=63743||65024<=i&&i<=65039||i==65533||127232<=i&&i<=127242||127248<=i&&i<=127277||127280<=i&&i<=127337||127344<=i&&i<=127386||917760<=i&&i<=917999||983040<=i&&i<=1048573||1048576<=i&&i<=1114109?"A":"N"};Ua.characterLength=function(n){var e=this.eastAsianWidth(n);return e=="F"||e=="W"||e=="A"?2:1};function cie(n){return n.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g)||[]}Ua.length=function(n){for(var e=cie(n),t=0,i=0;i=e-(l==2?1:0))if(r+l<=t)i+=a;else break;r+=l}return i}});var gie=y((Jit,die)=>{"use strict";die.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});var UR=y(($it,pie)=>{var Jke=jg(),$ke=hie(),Xke=gie();pie.exports=function(e,t={}){if(typeof e!="string"||e.length===0||(t=ve({ambiguousIsNarrow:!0},t),e=Jke(e),e.length===0))return 0;e=e.replace(Xke()," ");let i=t.ambiguousIsNarrow?1:2,r=0;for(let o of e){let s=o.codePointAt(0);if(s<=31||s>=127&&s<=159||s>=768&&s<=879)continue;switch($ke.eastAsianWidth(o)){case"F":case"W":r+=2;break;case"A":r+=i;break;default:r+=1}}return r}});var fie,aC,tnt,Pf,mie=_(()=>{"use strict";fie=x(UR()),aC=x(q());we();re();ff();Ne();ZR();iC();tnt=W()("model-quickpick"),Pf=class{constructor(e,t){this.nvim=e;this.config=t;this.disposables=[];this._changed=!1;this._onDidFinish=new aC.Emitter;this._onDidChangeSelection=new aC.Emitter;this._onDidChangeValue=new aC.Emitter;this.onDidFinish=this._onDidFinish.event;this.onDidChangeSelection=this._onDidChangeSelection.event;this.onDidChangeValue=this._onDidChangeValue.event;let i=t.items??[];Object.defineProperty(this,"items",{set:r=>{this._changed=!0,i=r,this.filterItems("")},get:()=>i}),Object.defineProperty(this,"activeItems",{set:r=>{this._changed=!0,this.filteredItems=r,this.showFilteredItems()},get:()=>this.filteredItems}),Object.defineProperty(this,"title",{set:r=>{this.input&&(this.input.title=r)},get:()=>this.input?this.input.title:t.title}),Object.defineProperty(this,"loading",{set:r=>{this.input&&(this.input.loading=r)},get:()=>this.input?this.input.loading:!1})}get value(){return this.input?this.input.value:this.config.value??""}get currIndex(){return this.win?this.win.currIndex:0}get buffer(){return this.bufnr?this.nvim.createBuffer(this.bufnr):void 0}setCursor(e){var t;(t=this.win)==null||t.setCursor(e,!0)}attachEvents(e){P.on("BufWinLeave",t=>{t==this.bufnr&&this.dispose()},null,this.disposables),P.on("PromptKeyPress",async(t,i)=>{var r,o;t==e&&(i=="C-f"?await((r=this.win)==null?void 0:r.scrollForward()):i=="C-b"?await((o=this.win)==null?void 0:o.scrollBackward()):["C-j","C-n","down"].includes(i)?this.setCursor(this.currIndex+1):["C-k","C-p","up"].includes(i)?this.setCursor(this.currIndex-1):this.config.canSelectMany&&i=="C-@"&&this.toggePicked(this.currIndex))},null,this.disposables)}async show(e={}){let{nvim:t,items:i}=this,{title:r,canSelectMany:o,value:s}=this.config,a=[],l=[],u=[];for(let m=0;m{if(this._onDidChangeValue.fire(m),this._changed){this._changed=!1;return}this.filterItems(m)},this),c.onDidFinish(this.onFinish,this);let h=Math.max(40,Math.min(80,a.reduce((m,b)=>Math.max(m,(0,fie.default)(b)),0)));await c.show(r??"",{position:"center",marginTop:10,border:[1,1,0,1],list:!0,minWidth:h,maxWidth:e.maxWidth||80,rounded:!!e.rounded,highlight:e.floatHighlight,borderhighlight:e.floatBorderHighlight}),this.selectedItems=u;let d={lines:a,rounded:!!e.rounded};d.highlights=l,e.floatHighlight&&(d.highlight=e.floatHighlight),e.floatBorderHighlight&&(d.borderhighlight=e.floatBorderHighlight);let g=this.config.maxHeight||e.maxHeight;g&&(d.maxHeight=g);let p=await t.call("coc#dialog#create_list",[c.winid,c.dimension,d]);if(!p)throw new Error("Unable to open list window.");this.filteredItems=i,this.win=new Xa(t,p[0],p[1],a.length),this.win.refreshScrollbar(),this.bufnr=p[1];let f=o||u.length==0?0:i.indexOf(u[0]);this.setCursor(f),this.attachEvents(c.bufnr)}filterItems(e){let{items:t,win:i,selectedItems:r}=this;if(!i)return;let{canSelectMany:o}=this.config,s=[],a=[],l=0,u=[];for(let c of t){let h=this.toFilterText(c);if(e.length>0&&!Bh(e,h))continue;let d=r.includes(c),g=o?`[${d?"x":" "}] ${c.label}`:c.label;if(c.description){let f=V(g);g=g+` ${c.description}`,a.push({hlGroup:"Comment",lnum:l,colStart:f,colEnd:V(g)})}gu(e,h).forEach(f=>{let m=We(h,f);a.push({hlGroup:"CocSearch",colStart:m,colEnd:m+1,lnum:l})}),u.push(c),s.push(g),l+=1}this.filteredItems=u,this.win.linecount=s.length,this.nvim.call("coc#dialog#update_list",[this.win.winid,this.win.bufnr,s,a],!0),this.setCursor(0)}showFilteredItems(){let{win:e,input:t,filteredItems:i}=this;if(!e)return;let{canSelectMany:r}=this.config,o=[],s=[],a=0,l=[];for(let u of i){let c=this.toFilterText(u),h=r?`[${u.picked?"x":" "}] ${u.label}`:u.label;if(u.picked&&l.push(u),u.description){let g=V(h);h=h+` ${u.description}`,s.push({hlGroup:"Comment",lnum:a,colStart:g,colEnd:V(h)})}gu(t.value,c).forEach(g=>{let p=We(c,g);s.push({hlGroup:"CocSearch",colStart:p,colEnd:p+1,lnum:a})}),o.push(h),a+=1}this.selectedItems=l,this.win.linecount=o.length,this.nvim.call("coc#dialog#update_list",[this.win.winid,this.win.bufnr,o,s],!0),this.setCursor(r||l.length==0?0:i.indexOf(l[0]))}onFinish(e){if(e==null){this._onDidChangeSelection.fire([]),this._onDidFinish.fire(null);return}let t=this.getSelectedItems();this.config.canSelectMany||this._onDidChangeSelection.fire(t),this._onDidFinish.fire(t)}getSelectedItems(){let{win:e}=this,{canSelectMany:t}=this.config;if(t)return this.selectedItems;let i=this.filteredItems[e.currIndex];return i==null?[]:[i]}toggePicked(e){let{nvim:t,filteredItems:i,selectedItems:r}=this,o=i[e];if(!o)return;let s=r.indexOf(o);s!=-1?r.splice(s,1):r.push(o);let a=s==-1?"x":" ";t.pauseNotification(),this.win.execute(`normal! ^1lr${a}`),this.win.setCursor(this.win.currIndex+1),t.resumeNotification(!0,!0),this._onDidChangeSelection.fire(r)}toFilterText(e){let{label:t,description:i}=e,{canSelectMany:r}=this.config,o=`${r?" ":""}${t.replace(/\r?\n/,"")}`;return this.matchOnDescription?o+" "+(i??""):o}dispose(){var e,t;this.bufnr=void 0,(e=this.input)==null||e.dispose(),(t=this.win)==null||t.close(),this._onDidFinish.dispose(),this._onDidChangeSelection.dispose(),$(this.disposables)}}});var lC,Wh,uC,yie=_(()=>{"use strict";we();lC=x(q());re();Wh="filter",uC=class{constructor(e,t){this.nvim=e;this._activated=!1;this.history=[];this.disposables=[];this._onDidUpdate=new lC.Emitter;this._onDidExit=new lC.Emitter;this._onDidKeyPress=new lC.Emitter;this.onDidKeyPress=this._onDidKeyPress.event;this.onDidUpdate=this._onDidUpdate.event;this.onDidExit=this._onDidExit.event;this.text="",P.on("InputChar",(i,r)=>{if(!(i!==Wh||!this._activated)){if(!t.includes(r)){if(r.length==1){this.text=this.text+r,this._onDidUpdate.fire(this.text);return}if(r==""||r==""){this.text=this.text.slice(0,-1),this._onDidUpdate.fire(this.text);return}if(r==""){this.text="",this._onDidUpdate.fire(this.text);return}if(r==""){let o=this.history.indexOf(this.text),s=this.history[o+1]||this.history[0];s&&(this.text=s,this._onDidUpdate.fire(this.text));return}if(r==""){let o=this.history.indexOf(this.text),s=this.history[o-1]||this.history[this.history.length-1];s&&(this.text=s,this._onDidUpdate.fire(this.text))}if(r==""||r==""){this.deactivate();return}}this._onDidKeyPress.fire(r)}},null,this.disposables)}active(){this._activated||(this._activated=!0,this.text="",this.nvim.call("coc#prompt#start_prompt",[Wh],!0))}deactivate(e){if(!this._activated)return;this.nvim.call("coc#prompt#stop_prompt",[Wh],!0),this._activated=!1;let{text:t}=this;this.text="",this._onDidExit.fire(e),t&&!this.history.includes(t)&&this.history.push(t)}get activated(){return this._activated}dispose(){this.deactivate(),this.history=[],this._onDidKeyPress.dispose(),this._onDidUpdate.dispose(),this._onDidExit.dispose(),$(this.disposables)}}});var vie={};Ms(vie,{default:()=>Cu});var Ki,bie,GR,KR,QR,Cu,cC=_(()=>{"use strict";Ki=x(q());Ei();we();cs();re();ff();Do();oi();Ne();Ae();ne();yie();ZD();bie=W()("BasicTreeView"),GR="tree",KR=3e3,QR=1,Cu=class{constructor(e,t){this.viewId=e;this.opts=t;this._selection=[];this._onDispose=new Ki.Emitter;this._onDidRefrash=new Ki.Emitter;this._onDidExpandElement=new Ki.Emitter;this._onDidCollapseElement=new Ki.Emitter;this._onDidChangeSelection=new Ki.Emitter;this._onDidChangeVisibility=new Ki.Emitter;this.onDidRefrash=this._onDidRefrash.event;this.onDispose=this._onDispose.event;this.onDidExpandElement=this._onDidExpandElement.event;this.onDidCollapseElement=this._onDidCollapseElement.event;this.onDidChangeSelection=this._onDidChangeSelection.event;this.onDidChangeVisibility=this._onDidChangeVisibility.event;this.retryTimers=0;this.renderedItems=[];this.nodesMap=new Map;this.mutex=new si;this.disposables=[];this.lineState={titleCount:0,messageCount:0};this.loadConfiguration(),v.onDidChangeConfiguration(this.loadConfiguration,this,this.disposables),t.enableFilter&&(this.filter=new uC(this.nvim,[this.keys.selectNext,this.keys.selectPrevious,this.keys.invoke])),this.tooltipFactory=new fi(v.nvim),this.provider=t.treeDataProvider,this.leafIndent=t.disableLeafIndent!==!0,this.winfixwidth=t.winfixwidth!==!1,this.autoWidth=t.autoWidth===!0;let i;Object.defineProperty(this,"message",{set:a=>{i=a?a.replace(/\r?\n/g," "):void 0,this.updateHeadLines()},get:()=>i});let r=e.replace(/\r?\n/g," ");Object.defineProperty(this,"title",{set:a=>{r=a?a.replace(/\r?\n/g," "):void 0,this.updateHeadLines()},get:()=>r});let o;Object.defineProperty(this,"description",{set:a=>{o=a?a.replace(/\r?\n/g," "):void 0,this.updateHeadLines()},get:()=>o});let s;Object.defineProperty(this,"filterText",{set:a=>{let{titleCount:l,messageCount:u}=this.lineState,c=l+u;if(a!=null){let h=[{lnum:c,colStart:V(a),colEnd:V(a)+1,hlGroup:"Cursor"}];this.renderedItems=[],this.updateUI([a+" "],h,c,-1,!0),this.doFilter(a)}else s!=null&&this.updateUI([],[],c,c+1);s=a},get:()=>s}),this.provider.onDidChangeTreeData&&this.provider.onDidChangeTreeData(this.onDataChange,this,this.disposables),P.on("BufUnload",a=>{if(a!=this.bufnr)return;let l=this.winid!=null;this.winid=void 0,this.bufnr=void 0,l&&this._onDidChangeVisibility.fire({visible:!1}),this.dispose()},null,this.disposables),P.on("WinClosed",a=>{this.winid==a&&(this.winid=void 0,this._onDidChangeVisibility.fire({visible:!1}))},null,this.disposables),P.on("BufWinLeave",(a,l)=>{a==this.bufnr&&l==this.winid&&(this.winid=void 0,this._onDidChangeVisibility.fire({visible:!1}))},null,this.disposables),k.onDidTabClose(a=>{this._targetTabId===a&&this.dispose()},null,this.disposables),P.on("CursorHold",async a=>{a==this.bufnr&&await this.onHover()},null,this.disposables),P.on(["CursorMoved","BufEnter"],()=>{this.cancelResolve()},null,this.disposables),P.on("WinEnter",a=>{var d;if(a!=this.windowId||!((d=this.filter)!=null&&d.activated))return;let l=this.nvim.createBuffer(this.bufnr),u=this.startLnum-1,c=this.filterText?this.filterText.length:0,h=Ki.Range.create(u,c,u,c+1);l.highlightRanges(GR,"Cursor",[h]),this.nvim.call("coc#prompt#start_prompt",[Wh],!0),this.redraw()},null,this.disposables),P.on("WinLeave",a=>{var u;if(a!=this.windowId||!((u=this.filter)!=null&&u.activated))return;let l=this.nvim.createBuffer(this.bufnr);this.nvim.call("coc#prompt#stop_prompt",[Wh],!0),l.clearNamespace(GR,this.startLnum-1,this.startLnum)},null,this.disposables),this.disposables.push(this._onDidChangeVisibility,this._onDidChangeSelection,this._onDidCollapseElement,this._onDidExpandElement),this.filter&&(this.filter.onDidExit(a=>{this.nodesMap.clear(),this.filterText=void 0,this.itemsToFilter=void 0,a&&typeof this.provider.getParent=="function"?(this.renderedItems=[],this.reveal(a,{focus:!0})):(this.clearSelection(),this.render())}),this.filter.onDidUpdate(a=>{this.filterText=a}),this.filter.onDidKeyPress(async a=>{var c,h;let l=this.renderedItems;if(!(l!=null&&l.length))return;let u=this.selection[0];if(a==""||a==this.keys.selectPrevious){let d=l.findIndex(f=>f.node==u),g=d==-1||d==0?l.length-1:d-1,p=(c=l[g])==null?void 0:c.node;p&&this.selectItem(p,!0)}if(a==""||a==this.keys.selectNext){let d=l.findIndex(f=>f.node==u),g=d==-1||d==l.length-1?0:d+1,p=(h=l[g])==null?void 0:h.node;p&&this.selectItem(p,!0)}if(a==""||a==this.keys.invoke){if(!u)return;await this.invokeCommand(u),this.filter.deactivate(u)}}))}get windowId(){return this.winid}get targetTabnr(){return k.getTabNumber(this._targetTabId)}get targetWinId(){return this._targetWinId}get targetBufnr(){return this._targetBufnr}get startLnum(){let e=this.filterText==null?0:1;return this.lineState.messageCount+this.lineState.titleCount+e}get nvim(){return v.nvim}loadConfiguration(e){if(!e||e.affectsConfiguration("tree")){let t=v.getConfiguration("tree");this.config={openedIcon:t.get("openedIcon"," "),closedIcon:t.get("closedIcon"," ")},this.keys={close:t.get("key.close"),invoke:t.get("key.invoke"),toggle:t.get("key.toggle"),actions:t.get("key.actions"),collapseAll:t.get("key.collapseAll"),toggleSelection:t.get("key.toggleSelection"),activeFilter:t.get("key.activeFilter"),selectNext:t.get("key.selectNext"),selectPrevious:t.get("key.selectPrevious")},e&&this.render()}}async doFilter(e){let t=[],i=0,r=await this.mutex.acquire();try{if(!this.itemsToFilter){let l=[],u=async h=>{for(let d of h){l.push(d);let g=await Promise.resolve(this.provider.getChildren(d));g!=null&&g.length&&await u(g)}},c=await Promise.resolve(this.provider.getChildren());await u(c),this.itemsToFilter=l}for(let l of this.itemsToFilter){let u=await this.getTreeItem(l),c=kf.is(u.label)?u.label.label:u.label;if(!e||Bh(e,c)){let h=e?gu(e,c):[];u.collapsibleState=0,u.label={label:c,highlights:e?_K(h):[]};let{line:d,highlights:g}=this.getRenderedLine(u,i,0);t.push({level:0,node:l,line:d,index:i,score:e?Nh(e,c):0,highlights:g}),i+=1}}t.sort((l,u)=>l.score!=u.score?u.score-l.score:l.index-u.index);let o=this.startLnum,s=[],a=this.renderedItems=t.map((l,u)=>(s.push(...l.highlights.map(c=>(c.lnum=o+u,c))),delete l.index,delete l.score,delete l.highlights,l));this.updateUI(a.map(l=>l.line),s,o,-1,!0),a.length?this.selectItem(a[0].node,!0):this.clearSelection(),this.redraw(),r()}catch(o){r(),bie.error("Error on tree filter:",o)}}async onHover(){let{nvim:e}=this,t=await e.call("line",["."]),i=this.getElementByLnum(t-1);if(!i)return;let r=this.nodesMap.get(i);if(!r)return;let o=r.item;if(!r.resolved&&(o=await this.resolveItem(i,o),!o)||!o.tooltip||!this.bufnr)return;let a={filetype:Ki.MarkupContent.is(o.tooltip)&&o.tooltip.kind==Ki.MarkupKind.Markdown?"markdown":"txt",content:Ki.MarkupContent.is(o.tooltip)?o.tooltip.value:o.tooltip};await this.tooltipFactory.show([a],{modes:["n"]})}async onClick(e){let{nvim:t}=this,[i,r]=await t.eval("[getline('.'),col('.')]"),o=at(i,0,r-1),s=i[o.length];if(!s)return;let{openedIcon:a,closedIcon:l}=this.config;/^\s*$/.test(o)&&[a,l].includes(s)?await this.toggleExpand(e):await this.invokeCommand(e)}async invokeCommand(e){let t=this.nodesMap.get(e);if(!t)return;this.selectItem(e);let i=t.item;if(!(!i.command&&(i=await this.resolveItem(e,i),!i))){if(!i.command)throw new Error("Failed to resolve command from TreeItem.");await he.execute(i.command)}}async invokeActions(e){if(this.selectItem(e),typeof this.provider.resolveActions!="function"){await k.showWarningMessage("No actions");return}let t=this.nodesMap.get(e),i=await Promise.resolve(this.provider.resolveActions(t.item,e));if(!i||i.length==0){await k.showWarningMessage("No actions available");return}let r=i.map(s=>s.title),o=await k.showMenuPicker(r,"Choose action");o!=-1&&await Promise.resolve(i[o].handler(e))}async onDataChange(e){var i;if((i=this.filter)!=null&&i.activated){this.itemsToFilter=void 0,await this.doFilter(this.filterText);return}if(this.clearSelection(),!e){await this.render();return}let t=await this.mutex.acquire();try{let r=this.renderedItems,o=r.findIndex(s=>s.node===e);if(o!=-1&&this.bufnr){let a=r[o].level,l=0;for(let d=o;da)&&(l+=1)}let u=[],c=[],h=o+this.startLnum;await this.appendTreeNode(e,a,h,u,c),r.splice(o,l,...u),this.updateUI(u.map(d=>d.line),c,h,h+l)}t()}catch(r){let o=`Error on tree refresh: ${r}`;bie.error(o,r),this.nvim.errWriteLine("[coc.nvim] "+o),t()}}async resolveItem(e,t){if(typeof this.provider.resolveTreeItem=="function"){let i=this.resolveTokenSource=new Ki.CancellationTokenSource,r=i.token;if(t=await Promise.resolve(this.provider.resolveTreeItem(t,e,r)),i.dispose(),this.resolveTokenSource=void 0,r.isCancellationRequested)return}return this.nodesMap.set(e,{item:t,resolved:!0}),t}get visible(){return this.bufnr?this.winid!=null:!1}get valid(){return typeof this.bufnr=="number"}get selection(){return this._selection.slice()}async checkLines(){if(!this.bufnr)return;let t=await this.nvim.createBuffer(this.bufnr).lines,{titleCount:i,messageCount:r}=this.lineState;t=t.slice(i+r);let o=this.renderedItems.map(s=>s.line);return Xe(t,o)}async toggleExpand(e){let t=this.nodesMap.get(e);if(!t)return;let i=t.item,r=this.getItemLnum(e),o=r-this.startLnum,s=this.renderedItems[o];if(!s||i.collapsibleState==0){if(typeof this.provider.getParent=="function"){let c=await Promise.resolve(this.provider.getParent(e));c&&(await this.toggleExpand(c),this.focusItem(c))}return}let a=0;if(i.collapsibleState==2){let c=s.level;for(let h=o+1;hc.line),u,r,r+a+1),this.refreshSigns(),i.collapsibleState==1?this._onDidCollapseElement.fire({element:e}):this._onDidExpandElement.fire({element:e})}toggleSelection(e){let t=this._selection.findIndex(i=>i===e);t!==-1?this.unselectItem(t):this.selectItem(e)}clearSelection(){if(!this.bufnr)return;this._selection=[],this.nvim.createBuffer(this.bufnr).unplaceSign({group:"CocTree"}),this._onDidChangeSelection.fire({selection:[]})}selectItem(e,t,i){let{nvim:r}=this;if(!this.bufnr||!v.env.sign)return;let o=this.getItemLnum(e);if(o==null)return;let s=r.createBuffer(this.bufnr),a=this._selection.includes(e);!this.opts.canSelectMany||t?this._selection=[e]:a||this._selection.push(e),r.pauseNotification(),(!this.opts.canSelectMany||t)&&s.unplaceSign({group:"CocTree"}),r.call("coc#compat#execute",[this.winid,`normal! ${o+1}G`],!0),s.placeSign({id:KR+o,lnum:o+1,name:"CocTreeSelected",group:"CocTree"}),i||this.redraw(),r.resumeNotification(!1,!0),a||this._onDidChangeSelection.fire({selection:this._selection})}unselectItem(e){let t=this._selection[e],i=this.getItemLnum(t);if(i==null||!this.bufnr||!v.env.sign)return;this._selection.splice(e,1),this.nvim.createBuffer(this.bufnr).unplaceSign({group:"CocTree",id:KR+i}),this._onDidChangeSelection.fire({selection:this._selection})}focusItem(e){if(!this.winid)return;let t=this.getItemLnum(e);t!=null&&this.nvim.call("coc#compat#execute",[this.winid,`exe ${t+1}`],!0)}getElementByLnum(e){let t=this.renderedItems[e-this.startLnum];return t?t.node:void 0}getItemLnum(e){let t=this.renderedItems.findIndex(i=>i.node===e);if(t!=-1)return this.startLnum+t}async getTreeItem(e){let t,i=!1,r=this.nodesMap.get(e);r!=null&&(t=r.item,i=r.resolved);let o=await Promise.resolve(this.provider.getTreeItem(e));if(o.id&&!t){for(let s of this.nodesMap.values())if(s.item.id===o.id){i=s.resolved,t=s.item;break}}return t&&t.collapsibleState!=0&&o.collapsibleState!=0&&(o.collapsibleState=t.collapsibleState),this.nodesMap.set(e,{item:o,resolved:i}),o}getRenderedLine(e,t,i){let{openedIcon:r,closedIcon:o}=this.config,s=[],{label:a,deprecated:l,description:u}=e,c=" ".repeat(i),h=(g,p)=>{let f=V(c);s.push({lnum:t,hlGroup:p,colStart:f,colEnd:f+V(g)})};switch(e.collapsibleState){case 2:{h(r,"CocTreeOpenClose"),c+=r+" ";break}case 1:{h(o,"CocTreeOpenClose"),c+=o+" ";break}default:c+=this.leafIndent?" ":""}if(e.icon){let{text:g,hlGroup:p}=e.icon;h(g,p),c+=g+" "}if(kf.is(a)&&Array.isArray(a.highlights)){let g=V(c);for(let p of a.highlights)s.push({lnum:t,hlGroup:"CocSearch",colStart:g+p[0],colEnd:g+p[1]})}let d=typeof a=="string"?a:a.label;return l&&h(d,"CocDeprecatedHighlight"),c+=d,u&&u.indexOf(` +`)==-1&&(c+=" ",h(u,"CocTreeDescription"),c+=u),{line:c,highlights:s}}async appendTreeNode(e,t,i,r,o){let s=1,a=await this.getTreeItem(e),l=this.getRenderedLine(a,i,t);if(o.push(...l.highlights),r.push({level:t,line:l.line,node:e}),a.collapsibleState==2){let u=t+1,c=await Promise.resolve(this.provider.getChildren(e))||[];for(let h of c){let d=await this.appendTreeNode(h,u,i+s,r,o);s=s+d}}return s}updateUI(e,t,i=0,r=-1,o=!1){if(!this.bufnr)return;let{nvim:s,winid:a}=this,l=s.createBuffer(this.bufnr);if(s.pauseNotification(),l.setOption("modifiable",!0,!0),l.setLines(e,{start:i,end:r,strictIndexing:!1},!0),this.autoWidth&&this.nvim.call("coc#window#adjust_width",[a],!0),t.length){let u=r==-1?-1:i+e.length;s.call("coc#highlight#update_highlights",[this.bufnr,GR,t,i,u],!0)}l.setOption("modifiable",!1,!0),o||this.redraw(),s.resumeNotification(!1,!0)}async reveal(e,t={}){var l;if((l=this.filter)!=null&&l.activated)return;let i=this.getItemLnum(e)!=null,{select:r,focus:o,expand:s}=t,a=e;if(typeof this.provider.getParent!="function")throw new Error("missing getParent function from provider for reveal.");if(!i)for(;a;){let u=await Promise.resolve(this.provider.getParent(a));if(u){let c=await this.getTreeItem(u);c.collapsibleState=2,a=u}else break}if(s){let u=await this.getTreeItem(e);if(u.collapsibleState==0)return;if(u.collapsibleState=2,typeof s=="number"&&s>1){let c=Math.min(s,2),h=await Promise.resolve(this.provider.getChildren(e));for(;(h==null?void 0:h.length)>0;){let d=[];for(let g of h){let p=await this.getTreeItem(g);if(p.collapsibleState!=0&&(p.collapsibleState=2,c>1)){let f=await Promise.resolve(this.provider.getChildren(g));d.push(...f)}}h=d,c=c-1}}}(!i||s)&&await this.render(),r!==!1&&this.selectItem(e),o&&this.focusItem(e)}updateHeadLines(e=!1){let{titleCount:t,messageCount:i}=this.lineState,r=e?-1:t+i,o=[],s=[];try{if(this.message&&(s.push({hlGroup:"MoreMsg",colStart:0,colEnd:V(this.message),lnum:0}),o.push(this.message),o.push("")),this.title){if(s.push({hlGroup:"CocTreeTitle",colStart:0,colEnd:V(this.title),lnum:o.length}),this.description){let a=V(this.title)+1;s.push({hlGroup:"Comment",colStart:a,colEnd:a+V(this.description),lnum:o.length})}o.push(this.title+(this.description?" "+this.description:""))}this.lineState.messageCount=this.message?2:0,this.lineState.titleCount=this.title?1:0,this.updateUI(o,s,0,r),e||this.refreshSigns()}catch(a){this.nvim.echoError(a)}}refreshSigns(){let{selection:e,nvim:t,bufnr:i}=this;if(!e.length||!i||!v.env.sign)return;let r=t.createBuffer(i);t.pauseNotification(),r.unplaceSign({group:"CocTree"});for(let o of e){let s=this.getItemLnum(o);s!=null&&r.placeSign({id:KR+s,lnum:s+1,name:"CocTreeSelected",group:"CocTree"})}t.resumeNotification(!1,!0)}async render(){if(!this.bufnr)return;let e=await this.mutex.acquire();try{let t=[],i=[],{startLnum:r}=this,o=await Promise.resolve(this.provider.getChildren()),s=0,a=r,l=[];if(!(o!=null&&o.length))this.message="No results";else{this.message=="No results"&&(this.message="");for(let c of o)a+=await this.appendTreeNode(c,s,a,l,i)}t.push(...l.map(c=>c.line)),this.renderedItems=l;let u=this.startLnum-r;u&&i.forEach(c=>c.lnum=c.lnum+u),this.updateUI(t,i,this.startLnum,-1),this._onDidRefrash.fire(),this.retryTimers=0,e()}catch(t){this.renderedItems=[],this.nodesMap.clear(),this.lineState={titleCount:0,messageCount:1},e();let i=`${t}`.replace(/\r?\n/g," ");if(this.updateUI([i],[{hlGroup:"WarningMsg",colStart:0,colEnd:V(i),lnum:0}]),this.retryTimers==5)return;this.timer=setTimeout(()=>{this.retryTimers=this.retryTimers+1,this.render()},500)}}async show(e="belowright 30vs"){if(this._creating)return!1;this._creating=!0;let{nvim:t}=this,i=this.winid,[r,o,s,a]=await t.eval(`[bufnr("%"),win_getid(),tabpagenr(),bufloaded(${this.bufnr||-1})]`);this._targetBufnr=r,this._targetWinId=o,this._targetTabId=k.getTabId(s),a||(this.bufnr=void 0);let l=await t.call("coc#window#find",["cocViewId",this.viewId]);if(this.bufnr&&l!==-1&&await t.call("winbufnr",[l])==this.bufnr){this._creating=!1;return}if(t.pauseNotification(),this.bufnr)l!=-1?(t.call("win_gotoid",[l],!0),t.command(`b ${this.bufnr}`,!0)):t.command(`silent keepalt ${e} ${this.bufname}`,!0);else{let h=QR;QR=QR+1,l!=-1?(t.call("win_gotoid",[l],!0),t.command(`silent edit +setl\\ buftype=nofile CocTree${h}`,!0)):t.command(`silent keepalt ${e} +setl\\ buftype=nofile CocTree${h}`,!0)}t.command(`setl bufhidden=${this.opts.bufhidden||"wipe"} nolist nonumber norelativenumber foldcolumn=0`,!0),t.command(`setl signcolumn=${this.opts.canSelectMany?"yes":"no"}${this.winfixwidth?" winfixwidth":""}`,!0),t.command("setl nocursorline nobuflisted wrap undolevels=-1 filetype=coctree nomodifiable noswapfile",!0),t.command(`let w:cocViewId = "${this.viewId.replace(/"/g,'\\"')}"`,!0),t.call("bufname",["%"],!0),t.call("bufnr",["%"],!0),t.call("win_getid",[],!0);let u=await t.resumeNotification();this.bufnr||this.registerKeymaps();let c=u[0];return this.bufname=c[c.length-3],this.bufnr=c[c.length-2],this.winid=c[c.length-1],i||this._onDidChangeVisibility.fire({visible:!0}),i&&i!==this.winid&&t.call("coc#window#close",[i],!0),this._creating=!1,this.updateHeadLines(!0),this.render(),!0}registerLocalKeymap(e,t,i,r=!1){this.disposables.push(v.registerLocalKeymap(e,t,async()=>{let o=await this.nvim.call("line",["."]),s=this.getElementByLnum(o-1);await Promise.resolve(i(s))},r))}registerKeymaps(){let{toggleSelection:e,actions:t,close:i,invoke:r,toggle:o,collapseAll:s,activeFilter:a}=this.keys,{nvim:l}=this,u=(c,h,d)=>{this.registerLocalKeymap(c,h,async g=>{g&&!this.nodesMap.has(g)||await Promise.resolve(d(g))},!0)};this.disposables.push(v.registerLocalKeymap("n","",()=>{l.call("win_gotoid",[this._targetWinId],!0)},!0)),u("n","",async c=>{c&&await this.onClick(c)}),this.filter&&a&&u("n",a,async()=>{this.nvim.command(`exe ${this.startLnum}`,!0),this.filter.active(),this.filterText=""}),e&&u("n",e,async c=>{c&&this.toggleSelection(c)}),r&&u("n",r,async c=>{c&&await this.invokeCommand(c)}),t&&u("n",t,async c=>{c&&await this.invokeActions(c)}),o&&u("n",o,async c=>{c&&await this.toggleExpand(c)}),s&&u("n",s,async()=>{for(let c of this.nodesMap.values()){let h=c.item;h.collapsibleState==2&&(h.collapsibleState=1)}await this.render()}),i&&u("n",i,async()=>{this.hide()})}hide(){let{winid:e}=this;!e||(this.nvim.call("coc#window#close",[e],!0),this.redraw(),this.winid=void 0,this._onDidChangeVisibility.fire({visible:!1}))}redraw(){var e;(v.isVim||((e=this.filter)==null?void 0:e.activated))&&this.nvim.command("redraw",!0)}cancelResolve(){this.resolveTokenSource&&(this.resolveTokenSource.cancel(),this.resolveTokenSource=void 0)}dispose(){var t;if(!this.provider)return;this.timer&&clearTimeout(this.timer),this.cancelResolve();let{bufnr:e}=this;this.winid&&this._onDidChangeVisibility.fire({visible:!1}),e&&this.nvim.command(`silent! bwipeout! ${e}`,!0),this.winid=void 0,this.bufnr=void 0,(t=this.filter)==null||t.dispose(),this._selection=[],this.itemsToFilter=[],this.tooltipFactory.dispose(),this.renderedItems=[],this.nodesMap.clear(),this.provider=void 0,this._onDispose.fire(),this._onDispose.dispose(),$(this.disposables)}}});function wie(){return Gke++}function zR(n){return[n.hlGroup,n.lnum,n.colStart,n.colEnd,n.combine?1:0,n.start_incl?1:0,n.end_incl?1:0]}function Qke(n,e){let t=[n.hlGroup,n.lnum,n.colStart,n.colEnd];return Xe(t,e.slice(0,4))}var VR,Zh,hC,wrt,Uke,Gke,Kke,Die,k,Ae=_(()=>{"use strict";VR=x(require("fs")),Zh=x(require("path")),hC=x(q());Ee();Xy();tW();zy();we();Te();rie();ba();ZR();sie();$R();lie();uie();mie();YE();$r();re();et();Do();oi();Cc();ne();wrt=W()("window"),Uke=Zh.default.dirname(__dirname),Gke=3e3,Kke=["formatOnType","rename","onTypeEdit","documentLink","documentColor","foldingRange","format","codeAction","formatRange","hover","signature","documentSymbol","documentHighlight","definition","declaration","typeDefinition","reference","implementation","codeLens","selectionRange","callHierarchy","semanticTokens","semanticTokensRange","linkedEditing"];Die=class{constructor(){this.mutex=new si;this.tabIds=[];this.terminalManager=new Gy;this._onDidTabClose=new hC.Emitter;this.onDidTabClose=this._onDidTabClose.event}init(e){for(let t=1;t<=e.tabCount;t++)this.tabIds.push(wie());P.on("TabNew",t=>{this.tabIds.splice(t-1,0,wie())}),P.on("TabClosed",t=>{let i=this.tabIds[t-1];this.tabIds.splice(t-1,1),i&&this._onDidTabClose.fire(i)})}getTabNumber(e){if(!!this.tabIds.includes(e))return this.tabIds.indexOf(e)+1}getTabId(e){return this.tabIds[e-1]}get nvim(){return v.nvim}dispose(){var e;this.terminalManager.dispose(),(e=this.statusLine)==null||e.dispose()}get activeTextEditor(){return v.editors.activeTextEditor}get visibleTextEditors(){return v.editors.visibleTextEditors}get onDidChangeActiveTextEditor(){return v.editors.onDidChangeActiveTextEditor}get onDidChangeVisibleTextEditors(){return v.editors.onDidChangeVisibleTextEditors}get terminals(){return this.terminalManager.terminals}get onDidOpenTerminal(){return this.terminalManager.onDidOpenTerminal}get onDidCloseTerminal(){return this.terminalManager.onDidCloseTerminal}async createTerminal(e){return await this.terminalManager.createTerminal(this.nvim,e)}showMessage(e,t="more"){let{messageLevel:i}=this,r="Error",o=2;switch(t){case"more":o=0,r="MoreMsg";break;case"warning":o=1,r="WarningMsg";break}o>=i&&oW(this.nvim,e,r)}async runTerminalCommand(e,t,i=!1){return t=t||v.cwd,await this.nvim.callAsync("coc#ui#run_terminal",{cmd:e,cwd:t,keepfocus:i?1:0})}async openTerminal(e,t={}){return await this.nvim.call("coc#ui#open_terminal",ve({cmd:e},t))}async showQuickpick(e,t="Choose by number"){return await this.showMenuPicker(e,{title:t,position:"center"})}async showQuickPick(e,t,i=hC.CancellationToken.None){this.checkDialog("showQuickPick"),t=t||{};let r=await Promise.resolve(e),o=r.some(s=>typeof s=="string");if(!i.isCancellationRequested)return await this.mutex.use(()=>new Promise((s,a)=>{if(i.isCancellationRequested)return s(void 0);let l=new Pf(this.nvim,{items:r.map(u=>typeof u=="string"?{label:u}:u),title:t.title??"",canSelectMany:t.canPickMany});l.matchOnDescription=t.matchOnDescription,l.onDidFinish(u=>{if(u==null)return s(void 0);let c=o?u.map(h=>h.label):u;if(t.canPickMany)return s(c);s(c[0])}),l.show(this.dialogPreference).catch(a)}))}async createQuickPick(e){return this.checkDialog("createQuickPick"),await this.mutex.use(async()=>{let t=new Pf(this.nvim,e);return await t.show(this.dialogPreference),t})}async showMenuPicker(e,t,i){return v.env.dialog?await this.mutex.use(async()=>{if(i&&i.isCancellationRequested)return-1;t=t||{},typeof t=="string"&&(t={title:t});let r=new nC(this.nvim,ve({items:e},t),i),o=new Promise(s=>{r.onDidClose(a=>{s(a)})});return await r.show(this.dialogPreference),await o}):await this.mutex.use(async()=>{let o=(typeof t=="string"?t:t.title??(t.content??"")+"Choose by number")+":",s=[],a=1;for(let c of e)wu(c)&&c.disabled||(s.push(`${a}. ${wu(c)?c.text:c}`),a++);let l=await this.nvim.callAsync("coc#ui#quickpick",[o,s.map(c=>c.trim())]),u=parseInt(l,10);return isNaN(u)||u<=0||u>e.length?-1:u-1})}async openLocalConfig(){let e=await this.nvim.call("expand",["%:p"]),t=await this.nvim.eval("&filetype");if(!e||!Zh.default.isAbsolute(e))throw new Error("current buffer doesn't have valid file path.");let i=v.getWorkspaceFolder(I.file(e).toString());if(!i){let l=v.getConfiguration("coc.preferences").get("rootPatterns",[]);throw v.getConfiguration("workspace").get("ignoredFiletypes",[]).includes(t)?new Error("Can't resolve workspace folder for current file, current filetype exclude for workspace folder resolve."):new Error(`Can't resolve workspace folder for current file, consider create one of ${l.join(", ")} in your project root.`)}let r=I.parse(i.uri).fsPath,o=Zh.default.join(r,".vim");if(!VR.default.existsSync(o)){if(!await this.showPrompt(`Would you like to create folder'${r}/.vim'?`))return;VR.default.mkdirSync(o)}let s=Zh.default.join(o,qr);await this.nvim.call("coc#util#open_file",["edit",s])}async showPrompt(e){return await this.mutex.use(()=>Qy(this.nvim,e))}async showDialog(e){return this.checkDialog("showDialog"),await this.mutex.use(async()=>{let t=new tC(this.nvim,e);return await t.show(this.dialogPreference),t})}async requestInput(e,t,i){let{nvim:r}=this,o=v.getConfiguration("coc.preferences");return v.env.dialog&&o.get("promptInput",!0)&&!an?await this.mutex.use(async()=>{let s=new vu(r,t??"");return await s.show(e,Object.assign(this.inputPreference,i??{})),await new Promise(a=>{s.onDidFinish(l=>{a(l)})})}):await this.mutex.use(async()=>{let s=await v.callAsync("input",[e+": ",t||""]);return r.command("normal! :",!0),s})}async createInputBox(e,t,i){this.checkDialog("createInputBox");let r=new vu(this.nvim,t??"");return await r.show(e,Object.assign(this.inputPreference,i)),r}createStatusBarItem(e=0,t={}){if(!v.env){let i=()=>{};return{text:"",show:i,dispose:i,hide:i,priority:0,isProgress:!1}}return this.statusLine||(this.statusLine=new Yv(this.nvim)),this.statusLine.createStatusBarItem(e,t.progress||!1)}createOutputChannel(e){return ds.create(e,this.nvim)}showOutputChannel(e,t){let r=v.getConfiguration("workspace").get("openOutputCommand","vs");ds.show(e,r,t)}async echoLines(e,t=!1){let{nvim:i}=this,r=v.env.cmdheight;e.length>r&&t&&(e=e.slice(0,r));let o=v.env.columns-12;if(e=e.map(s=>(s=s.replace(/\n/g," "),t&&(s=s.slice(0,o)),s)),t&&e.length==r){let s=e[e.length-1];e[r-1]=`${s.length==o?s.slice(0,-4):s} ...`}await i.call("coc#ui#echo_lines",[e])}getCursorPosition(){return Ky(this.nvim)}async moveTo(e){await iW(this.nvim,e,v.env.isVim)}getSelectedRange(e){return sW(this.nvim,e)}async selectRange(e){await aW(this.nvim,e,this.nvim.isVim)}getOffset(){return nW(this.nvim)}getCursorScreenPosition(){return rW(this.nvim)}async showPickerDialog(e,t,i){return this.checkDialog("showPickerDialog"),await this.mutex.use(async()=>{if(i&&i.isCancellationRequested)return;let r=typeof e[0]=="string",o=new rC(this.nvim,{title:t,items:r?e.map(u=>({label:u})):e},i),s=new Promise(u=>{o.onDidClose(c=>{u(c)})});await o.show(this.dialogPreference);let a=await s;return a==null?void 0:e.filter((u,c)=>a.includes(c))})}async showInformationMessage(e,...t){let i=Error().stack;return await this._showMessage("Info",e,t,i)}async showWarningMessage(e,...t){let i=Error().stack;return await this._showMessage("Warning",e,t,i)}async showErrorMessage(e,...t){let i=Error().stack;return await this._showMessage("Error",e,t,i)}async showMessagePicker(e,t,i,r){let o=r.map(a=>typeof a=="string"?a:a.title),s=await this.showMenuPicker(o,{position:"center",content:t,title:e.replace(/\r?\n/," "),borderhighlight:i});return r[s]}async _showMessage(e,t,i,r){if(!this.enableMessageDialog)return await this.showConfirm(t,i,e);if(i.length>0){let a=this.parseSource(r);return await this.showMessagePicker(`Choose action (${a})`,t,`Coc${e}Float`,i)}let o=typeof i[0]=="string"?i:i.map(a=>a.title),s=await this.createNotification(e.toLowerCase(),t,o,r);return s==-1?void 0:i[s]}async showNotification(e){this.checkDialog("showNotification");let t=Error().stack;await new Du(this.nvim,e).show(this.getNotificationPreference(t))}async showConfirm(e,t,i){if(!t||t.length==0){let a=i=="Info"?"more":i=="Error"?"error":"warning";this.showMessage(e,a);return}let o=(typeof t[0]=="string"?t.slice():t.map(a=>a.title)).map((a,l)=>`${l+1}${a}`),s=await this.nvim.callAsync("coc#util#with_callback",["confirm",[e,o.join(` +`),0,i]]);return t[s-1]}async withProgress(e,t){this.checkDialog("withProgress");let i=Error().stack,r=new sC(this.nvim,{task:t,title:e.title,cancellable:e.cancellable}),s=v.getConfiguration("notification").get("minProgressWidth",30),a=new Promise(l=>{r.onDidFinish(l)});return await r.show(Object.assign(this.getNotificationPreference(i,e.source),{minWidth:s})),await a}createTreeView(e,t){let i=(cC(),Uo(vie)).default;return new i(e,t)}async diffHighlights(e,t,i,r,o){let s=[e,t];Array.isArray(r)&&s.push(r[0],r[1]);let a=await this.nvim.call("coc#highlight#get_highlights",s);if(!a||(o==null?void 0:o.isCancellationRequested))return null;i.sort((m,b)=>m.lnum-b.lnum);let l=[],u=v.has("nvim-0.5.1")||v.isVim,c=[],h=[],d=0,g=i.length-1,p=0,f=new Map;if(a.forEach(m=>{p=Math.max(p,m[1]);let b=f.get(m[1]);b?b.push(m):f.set(m[1],[m])}),a.length>0){let m=Array.isArray(r)?r[0]:0;for(let b=m;b<=p;b++){let w=f.get(b)||[],D=[];for(let T=d;T<=g;T++){let R=i[T];if(R.lnum==b)d=T+1,D.push(R);else{d=T;break}}D.length==0?w.length&&(u?c.push(...w.map(T=>T[4])):l.push(b)):w.length==0?h.push(...D.map(T=>zR(T))):(D.length!=w.length||!D.every((T,R)=>Qke(T,w[R])))&&(u?c.push(...w.map(T=>T[4])):l.push(b),h.push(...D.map(T=>zR(T))))}}for(let m=d;m<=g;m++)h.push(zR(i[m]));return{remove:l,add:h,removeMarkers:c}}async applyDiffHighlights(e,t,i,r,o=!1){let{nvim:s}=this,{remove:a,add:l,removeMarkers:u}=r;a.length===0&&l.length===0&&u.length===0||(s.pauseNotification(),u.length&&s.call("coc#highlight#del_markers",[e,t,u],!0),a.length&&s.call("coc#highlight#clear",[e,t,a],!0),l.length&&s.call("coc#highlight#set",[e,t,l,i],!0),o?s.resumeNotification(!0,!0):await s.resumeNotification(!0))}async bufferCheck(){let e=await v.document,t;if(e.attached||(e.enabled?e.buftype!==""&&e.buftype!=="acwrite"?t=`Document not attached with buftype '${e.buftype}'`:t="Document not attached, file size exceed coc.preferences.maxFileSize":t="Document not attached, b:coc_enabled is 0"),t){await this.showDialog({title:"Buffer check result",content:t,highlight:"WarningMsg"});return}let i=new Hi;i.addLine("Provider state","Title"),i.addLine("");for(let r of Kke){let o=j.hasProvider(r,e.textDocument);i.addTexts([{text:"-",hlGroup:"Comment"},{text:" "},o?{text:"\u2713",hlGroup:"CocListFgGreen"}:{text:"\u2717",hlGroup:"CocListFgRed"},{text:" "},{text:r,hlGroup:o?"Normal":"CocFadeOut"}])}await this.showDialog({title:"Buffer check result",content:i.content,highlights:i.highlights})}createNotification(e,t,i,r){return new Promise((o,s)=>{let a={kind:e,content:t,buttons:i.map((u,c)=>({text:u,index:c})),callback:u=>{o(u)}};new Du(this.nvim,a).show(this.getNotificationPreference(r)).catch(s)})}parseSource(e,t=2){let i=e.split(/\r?\n/).slice(t)[0];if(!i)return;i=i.replace(/^\s*at\s*/,"");let r;if(i.endsWith(")")){let a=i.match(/(\((.*?):\d+:\d+\))$/);a&&(r=a[2])}else{let a=i.match(/(.*?):\d+:\d+$/);a&&(r=a[1])}if(!r)return;let o=(Oo(),Uo(Ate)).default.getExtensionsInfo(),s=o.find(a=>li(a.filepath,r));if(s)return s.name.startsWith("single")?Zh.default.basename(s.filepath):s.name;if(s=o.find(a=>Je(a.directory,r)),s)return s.name;if(Je(Uke,r))return"coc.nvim"}get dialogPreference(){let e=v.getConfiguration("dialog");return{rounded:e.get("rounded",!0),maxWidth:e.get("maxWidth"),maxHeight:e.get("maxHeight"),floatHighlight:e.get("floatHighlight"),floatBorderHighlight:e.get("floatBorderHighlight"),pickerButtons:e.get("pickerButtons"),pickerButtonShortcut:e.get("pickerButtonShortcut"),confirmKey:e.get("confirmKey"),shortcutHighlight:e.get("shortcutHighlight")}}get inputPreference(){let e=v.getConfiguration("dialog");return{rounded:e.get("rounded",!0),maxWidth:e.get("maxWidth"),highlight:e.get("floatHighlight"),borderhighlight:e.get("floatBorderHighlight")}}getNotificationPreference(e,t){t||(t=this.parseSource(e));let i=v.getConfiguration("notification"),r=i.get("disabledProgressSources",[]),o=Array.isArray(r)&&(r.includes("*")||r.includes(t));return{broder:i.get("border",!0),focusable:i.get("focusable",!0),marginRight:i.get("marginRight",10),timeout:i.get("timeout",10),maxWidth:i.get("maxWidth"),maxHeight:i.get("maxHeight"),highlight:i.get("highlightGroup"),winblend:i.get("winblend"),disabled:o,source:t}}checkDialog(e){if(!v.env.dialog)throw new Error(`API window.${e} requires vim >= 8.2.0750 or neovim >= 0.4.0, please upgrade your vim`)}get enableMessageDialog(){return v.env.dialog?v.getConfiguration("coc.preferences").get("enableMessageDialog",!1):!1}get messageLevel(){switch(v.getConfiguration("coc.preferences").get("messageLevel","more")){case"error":return 2;case"warning":return 1;default:return 0}}},k=new Die});function Jh(n){switch(n){case Mt.DiagnosticSeverity.Warning:return"Warning";case Mt.DiagnosticSeverity.Information:return"Information";case Mt.DiagnosticSeverity.Hint:return"Hint";default:return"Error"}}function Cie(n){switch(n){case Mt.DiagnosticSeverity.Warning:return"W";case Mt.DiagnosticSeverity.Information:return"I";case Mt.DiagnosticSeverity.Hint:return"I";default:return"E"}}function xu(n){if(n!=null)switch(n){case"hint":return Mt.DiagnosticSeverity.Hint;case"information":return Mt.DiagnosticSeverity.Information;case"warning":return Mt.DiagnosticSeverity.Warning;case"error":return Mt.DiagnosticSeverity.Error;default:return Mt.DiagnosticSeverity.Hint}}function eL(n){switch(n){case Mt.DiagnosticSeverity.Error:return"CocError";case Mt.DiagnosticSeverity.Warning:return"CocWarning";case Mt.DiagnosticSeverity.Information:return"CocInfo";case Mt.DiagnosticSeverity.Hint:return"CocHint";default:return"CocError"}}function xie(n,e,t){let{start:i,end:r}=e.range,o=e.source||"coc.nvim",s=e.message.split(` +`)[0],a=Jh(e.severity).slice(0,1).toUpperCase();return{bufnr:n,lnum:i.line+1,end_lnum:r.line+1,col:Array.isArray(t)?We(t[i.line]??"",i.character)+1:i.character+1,end_col:Array.isArray(t)?We(t[r.line]??"",r.character)+1:r.character+1,text:`[${o}${e.code?" "+e.code:""}] ${s} [${a}]`,type:a}}function dC(n,e){if((n.severity||1)!=(e.severity||1))return(n.severity||1)-(e.severity||1);let t=Fe(n.range.start,e.range.start);return t!=0?t:n.source>e.source?1:-1}function Sie(n){let e=n.tags||[];if(e.includes(Mt.DiagnosticTag.Deprecated))return"CocDeprecatedHighlight";if(e.includes(Mt.DiagnosticTag.Unnecessary))return"CocUnusedHighlight";switch(n.severity){case Mt.DiagnosticSeverity.Warning:return"CocWarningHighlight";case Mt.DiagnosticSeverity.Information:return"CocInfoHighlight";case Mt.DiagnosticSeverity.Hint:return"CocHintHighlight";default:return"CocErrorHighlight"}}function Tie(n,e){let t=[],{range:i}=e;for(let r of n){let o=r.range;if(!Oc(i,o)){if(Fe(o.start,i.end)>0){let s=vb(o.start,e),a=vb(o.end,e);s.line>=0&&s.character>=0&&a.line>=0&&a.character>=0&&(r.range=Mt.Range.create(s,a))}t.push(r)}}return t}var Mt,tL=_(()=>{"use strict";Mt=x(q());_t();Ne();Ur()});var Lie,$h,Art,kie,Eie,Pie,_ie,Rie,iL,Fie=_(()=>{"use strict";Lie=x(Oi()),$h=x(q());we();_t();ne();tL();Art=W()("diagnostic-buffer"),kie="CocDiagnostic",Eie="diagnostic",Pie=["CocErrorHighlight","CocWarningHighlight","CocInfoHighlight","CocHintHighlight","CocDeprecatedHighlight","CocUnusedHighlight"],_ie=global.__TEST__?10:500,Rie=global.__TEST__?"MockAleResults":"ale#other_source#ShowResults",iL=class{constructor(e,t,i,r){this.nvim=e;this.doc=t;this.config=i;this.onRefresh=r;this.diagnosticsMap=new Map;this._disposed=!1;this._dirty=!1;this._changeTs=0;this.refreshHighlights=(0,Lie.debounce)(this._refresh.bind(this),_ie)}get dirty(){return this._dirty}get bufnr(){return this.doc.bufnr}get uri(){return this.doc.uri}onChange(e){let t=e.contentChanges;if(t.length>0){this._changeTs=Date.now();let i=$h.TextEdit.replace(t[0].range,t[0].text);for(let[r,o]of this.diagnosticsMap.entries())if(o.length){let s=Tie(o,i);this.diagnosticsMap.set(r,s)}}this.refreshHighlights()}onTextChange(){this._dirty=!0,this.refreshHighlights.clear()}get displayByAle(){return this.config.displayByAle}clearHighlight(e){this.buffer.clearNamespace(Eie+e)}clearSigns(e){this.buffer.unplaceSign({group:kie+e})}get diagnostics(){let e=[];for(let t of this.diagnosticsMap.values())e.push(...t);return e}get buffer(){return this.nvim.createBuffer(this.bufnr)}refreshAle(e,t){let i=t.map(r=>{let o=r.range;return{text:r.message,code:r.code,lnum:o.start.line+1,col:o.start.character+1,end_lnum:o.end.line+1,end_col:o.end.character,type:Cie(r.severity)}});this.nvim.call(Rie,[this.bufnr,"coc"+e,i],!0)}async update(e,t){let{diagnosticsMap:i}=this,r=i.get(e)||[];if(!this._dirty&&t.length==0&&r.length==0)return;if(i.set(e,t),this._dirty||Date.now()-this._changeTs<_ie){this._dirty=!0;return}let o=await this.getDiagnosticInfo();if(this._dirty||!o||o.winid==-1){this._dirty=!0;return}let s=new Map;s.set(e,t),this.refresh(s,o)}async reset(e,t){this._changeTs=Date.now();let{diagnosticsMap:i}=this;for(let o of i.keys())e[o]==null&&(e[o]=[]);for(let[o,s]of Object.entries(e))this.diagnosticsMap.set(o,s);let r=await this.getDiagnosticInfo(t);if(!r){this._dirty=!0;return}this.refresh(this.diagnosticsMap,r)}async getDiagnosticInfo(e){let{refreshOnInsertMode:t}=this.config,{nvim:i,bufnr:r}=this,o=!t;if(e)o=!1;else if(P.insertMode&&!t)return;return await i.call("coc#util#diagnostic_info",[r,o])}refresh(e,t){let{nvim:i,displayByAle:r}=this;if(this._dirty=!1,r){i.pauseNotification();for(let[o,s]of e.entries())this.refreshAle(o,s);i.resumeNotification(!0,!0)}else{let o=[];i.pauseNotification();for(let[s,a]of e.entries())a.length==0&&o.push(s),this.addSigns(s,a),this.updateHighlights(s,a);this.showVirtualText(t.lnum,t.bufnr),this.updateLocationList(t.winid,t.locationlist),this.setDiagnosticInfo(),i.resumeNotification(!0,!0),o.forEach(s=>{this.diagnosticsMap.delete(s)}),this.onRefresh(this.diagnostics)}}updateLocationList(e,t){if(!this.config.locationlistUpdate||e==-1||t!=="Diagnostics of coc")return;let i=this.toLocationListItems(this.diagnostics);this.nvim.call("setloclist",[e,[],"r",{title:"Diagnostics of coc",items:i}],!0)}toLocationListItems(e){let{locationlistLevel:t}=this.config,i=[],r=this.doc.textDocument.lines;e.sort(dC);for(let o of e)t&&o.severity&&o.severity>t||i.push(xie(this.bufnr,o,r));return i}addSigns(e,t){let{enableSign:i,signLevel:r}=this.config;if(!i)return;let o=kie+e,s=[],a=new Map;for(let l of t){let{range:u,severity:c}=l;if(!c||r&&c>r)continue;let h=u.start.line,d=a.get(h)||[];if(d.includes(c))continue;d.push(c),a.set(h,d);let g=this.config.signPriority+4-c;s.push({name:eL(c),lnum:h+1,priority:g})}this.nvim.call("coc#ui#update_signs",[this.bufnr,o,s],!0)}setDiagnosticInfo(){let e=[0,0,0,0],t={error:0,warning:0,information:0,hint:0,lnums:e};for(let r of this.diagnosticsMap.values())for(let o of r){let s=o.range.start.line+1;switch(o.severity){case $h.DiagnosticSeverity.Warning:t.warning=t.warning+1,e[1]=e[1]?Math.min(e[1],s):s;break;case $h.DiagnosticSeverity.Information:t.information=t.information+1,e[2]=e[2]?Math.min(e[2],s):s;break;case $h.DiagnosticSeverity.Hint:t.hint=t.hint+1,e[3]=e[3]?Math.min(e[3],s):s;break;default:e[0]=e[0]?Math.min(e[0],s):s,t.error=t.error+1}}this.nvim.createBuffer(this.bufnr).setVar("coc_diagnostic_info",t,!0),this.nvim.call("coc#util#do_autocmd",["CocDiagnosticChange"],!0)}showVirtualText(e,t){let{config:i}=this,{virtualText:r,virtualTextLevel:o}=i;if(!r)return;let{virtualTextSrcId:s,virtualTextPrefix:a,virtualTextCurrentLineOnly:l}=this.config,{diagnostics:u,buffer:c}=this;if(l){if(t&&this.bufnr!=t)return;u=u.filter(h=>{let{start:d,end:g}=h.range;return d.line<=e-1&&g.line>=e-1})}u.sort(dC),c.clearNamespace(s);for(let h=u.length-1;h>=0;h--){let d=u[h];if(o&&d.severity&&d.severity>o)continue;let{line:g}=d.range.start,p=eL(d.severity)+"VirtualText",f=d.message.split(/\n/).map(m=>m.trim()).filter(m=>m.length>0).slice(0,this.config.virtualTextLines).join(this.config.virtualTextLineSeparator);if(v.has("nvim-0.5.1")){let m={virt_text:[[a+f,p]],hl_mode:"combine"};i.virtualTextAlignRight||typeof i.virtualTextWinCol=="number"&&(m.virt_text_win_col=i.virtualTextWinCol),c.setExtMark(s,g,0,m)}else c.setVirtualText(s,g,[[a+f,p]],{})}}updateHighlights(e,t){if(!t.length)this.clearHighlight(e);else{let i=this.getHighlightItems(t),r=this.config.highlightPriority;this.buffer.updateHighlights(Eie+e,i,{priority:r})}}async _refresh(){if(!this._dirty)return;let e=await this.getDiagnosticInfo();!e||e.winid==-1||this.refresh(this.diagnosticsMap,e)}getHighlightItems(e){let t=v.getDocument(this.uri);if(!t)return[];let i=[];for(let r of e.slice(0,this.config.highlighLimit)){let o=Sie(r);t.addHighlights(i,o,r.range)}return i.sort((r,o)=>r.lnum!=o.lnum?r.lnum-o.lnum:r.colStart!=o.colStart?r.colStart-o.colStart:Pie.indexOf(o.hlGroup)-Pie.indexOf(r.hlGroup)),i}clear(){let{nvim:e}=this,t=Array.from(this.diagnosticsMap.keys());if(this.refreshHighlights.clear(),this.diagnosticsMap.clear(),this.displayByAle)for(let i of t)this.nvim.call(Rie,[this.bufnr,i,[]],!0);else{e.pauseNotification(),this.buffer.deleteVar("coc_diagnostic_info");for(let i of t)this.clearHighlight(i),this.clearSigns(i);this.config.virtualText&&this.buffer.clearNamespace(this.config.virtualTextSrcId),e.resumeNotification(!0,!0)}}getDiagnosticsAt(e,t){let i=[];for(let r of this.diagnosticsMap.values())t?i.push(...r.filter(o=>KY(e.line,o.range))):i.push(...r.filter(o=>mt(e,o.range)==0));return i.sort(dC),i}async isEnabled(){return this._disposed?!1:await this.nvim.createBuffer(this.bufnr).getVar("coc_diagnostic_disable")!=1}dispose(){this.clear(),this._disposed=!0,this.refreshHighlights.clear()}}});var Ls,Yrt,zke,gC,Iie=_(()=>{"use strict";Ls=x(q());Ee();ne();So();Yrt=W()("diagnostic-collection"),zke=[Ls.DiagnosticTag.Deprecated,Ls.DiagnosticTag.Unnecessary],gC=class{constructor(e,t){this.name=e;this.onDispose=t;this.diagnosticsMap=new Map;this._onDidDiagnosticsChange=new Ls.Emitter;this.onDidDiagnosticsChange=this._onDidDiagnosticsChange.event}set(e,t){let i=new Map;if(Array.isArray(e))for(let r of e){let[o,s]=r,a=v.getDocument(o);o=a?a.uri:o,s==null?s=[]:s=(i.get(o)||[]).concat(s),i.set(o,s)}else{let r=v.getDocument(e),o=r?r.uri:e;i.set(o,t||[])}for(let r of i){let[o,s]=r;o=I.parse(o).toString(),s.forEach(a=>{a.range=a.range||Ls.Range.create(0,0,0,0),a.message=a.message||"",a.source=a.source||this.name,!a.severity&&Array.isArray(a.tags)&&ap(a.tags,zke)&&(a.severity=Ls.DiagnosticSeverity.Hint)}),this.diagnosticsMap.set(o,s),this._onDidDiagnosticsChange.fire(o)}}delete(e){this.diagnosticsMap.delete(e),this._onDidDiagnosticsChange.fire(e)}clear(){let e=Array.from(this.diagnosticsMap.keys());e=e.filter(t=>this.diagnosticsMap.get(t).length>0),this.diagnosticsMap.clear();for(let t of e)this._onDidDiagnosticsChange.fire(t)}forEach(e,t){for(let i of this.diagnosticsMap.keys()){let r=this.diagnosticsMap.get(i);e.call(t,i,r,this)}}entries(){return this.diagnosticsMap.entries()}get(e){let t=this.diagnosticsMap.get(e);return t==null?[]:t.slice()}has(e){return this.diagnosticsMap.has(e)}dispose(){this.clear(),this.onDispose&&this.onDispose(),this._onDidDiagnosticsChange.dispose()}}});var jie,Xt,oot,Aie,Yt,fu=_(()=>{"use strict";jie=x(Oi()),Xt=x(q());Ee();we();cs();re();et();_t();Ne();Ae();ne();Fie();Iie();tL();oot=W()("diagnostic-manager"),Aie=class{constructor(){this.enabled=!0;this._onDidRefresh=new Xt.Emitter;this.onDidRefresh=this._onDidRefresh.event;this.collections=[];this.disposables=[]}init(){this.setConfiguration(),v.isNvim&&this.nvim.createNamespace("coc-diagnostic-virtualText").then(r=>{this.config.virtualTextSrcId=r}).logError(),v.onDidChangeConfiguration(this.setConfiguration,this,this.disposables),this.floatFactory=new fi(this.nvim),this.buffers=v.registerBufferSync(r=>{if(!this.enabled)return;let o=new iL(this.nvim,r,this.config,a=>{this._onDidRefresh.fire({diagnostics:a,uri:o.uri,bufnr:o.bufnr}),o.bufnr===v.bufnr&&this.config.messageTarget==="float"&&this.getCurrentDiagnostics().then(l=>this.showFloat(l))}),s=this.getDiagnostics(r.uri);return Object.keys(s).length>0&&o.reset(s),o}),v.onDidCloseTextDocument(r=>{for(let o of this.collections)o.delete(r.uri)},null,this.disposables);let e;P.on("CursorMoved",r=>{this.config.enableMessage=="always"&&(e&&clearTimeout(e),e=setTimeout(async()=>{let o=this.buffers.getItem(r);!o||o.dirty||await this.echoMessage(!0)},this.config.messageDelay))},null,this.disposables);let t=(0,jie.default)(async(r,o)=>{if(!this.config.virtualTextCurrentLineOnly||P.insertMode&&!this.config.refreshOnInsertMode)return;let s=this.buffers.getItem(r);s&&await s.isEnabled()&&s.showVirtualText(o[0])},global.__TEST__?10:100);this.disposables.push(Xt.Disposable.create(()=>{t.clear()})),P.on("CursorMoved",t,null,this.disposables),P.on("InsertLeave",async()=>{if(!(this.config.refreshOnInsertMode||!this.autoRefresh))for(let r of this.buffers.items)r.dirty&&r.refreshHighlights()},null,this.disposables),P.on("BufWinEnter",r=>{let o=this.buffers.getItem(r);o&&o.dirty&&o.refreshHighlights()},null,this.disposables),this.clearTimers=()=>{e&&clearTimeout(e),e=void 0,t.clear()},P.on("InsertEnter",this.clearTimers,this,this.disposables);let i=v.configurations.errorItems;this.setConfigurationErrors(i),v.configurations.onError(r=>{this.setConfigurationErrors(r)},null,this.disposables)}defineSigns(){let{nvim:e}=this,{enableHighlightLineNumber:t,enableSign:i}=this.config;if(!!i){e.pauseNotification();for(let r of["Error","Warning","Info","Hint"]){let o=this.config[r.toLowerCase()+"Sign"],s=`sign define Coc${r} linehl=Coc${r}Line`;o&&(s+=` texthl=Coc${r}Sign text=${o}`),t&&(s+=` numhl=Coc${r}Sign`),e.command(s,!0)}e.resumeNotification(!1,!0)}}async setLocationlist(e){if(!this.enabled)throw new Error("Diagnostic not enabled.");let t=this.buffers.getItem(e);if(!t)throw new Error(`buffer ${e} not attached.`);let i=[];for(let a of Object.values(this.getDiagnostics(t.uri)))i.push(...a);let r=t.toLocationListItems(i),o=await this.nvim.call("getloclist",[0,{title:1}]),s=o.title&&o.title.indexOf("Diagnostics of coc")!=-1?"r":" ";await this.nvim.call("setloclist",[0,[],s,{title:"Diagnostics of coc",items:r}])}setConfigurationErrors(e){let t=this.create("config");if(e!=null&&e.length){let i=I.parse(e[0].location.uri).fsPath;k.showErrorMessage(`Error detected for config file ${i}, please check diagnostics list.`);let r=new Map;for(let o of e){let{uri:s}=o.location,a=r.get(s)||[];a.push(Xt.Diagnostic.create(o.location.range,o.message,Xt.DiagnosticSeverity.Error)),r.set(s,a)}t.set(Array.from(r))}else t.clear()}create(e){let t=this.getCollectionByName(e);return t||(t=new gC(e,()=>{let i=this.collections.findIndex(r=>r==t);i!==-1&&this.collections.splice(i,1)}),this.collections.push(t),t.onDidDiagnosticsChange(i=>{let r=this.buffers.getItem(i);!this.autoRefresh||!r||r.update(e,this.getDiagnosticsByCollection(i,t))}),t)}getSortedRanges(e,t){let i=this.getCollections(e),r=[],o=t?xu(t):0;for(let s of i){let a=s.get(e);if(o)a=a.filter(u=>u.severity==o);else{let u=this.config.level;u&&u!(c.severity&&c.severity>u)))}let l=a.map(u=>u.range);r.push(...l)}return r.sort((s,a)=>s.start.line!=a.start.line?s.start.line-a.start.line:s.start.character-a.start.character),r}getDiagnostics(e){let t={},i=this.getCollections(e);for(let r of i)!r||(t[r.name]=this.getDiagnosticsByCollection(e,r));return t}getDiagnosticsByCollection(e,t){let{level:i,showUnused:r,showDeprecated:o}=this.config,s=t.get(e)||[];return s.length&&(s=s.filter(a=>{var l,u;return!(i&&a.severity&&a.severity>i||!r&&((l=a.tags)==null?void 0:l.includes(Xt.DiagnosticTag.Unnecessary))||!o&&((u=a.tags)==null?void 0:u.includes(Xt.DiagnosticTag.Deprecated)))}),s.sort((a,l)=>Fe(a.range.start,l.range.start))),s}getDiagnosticsInRange(e,t){let i=this.getCollections(e.uri),r=[];for(let o of i){let s=o.get(e.uri);if(!!s)for(let a of s)Ml(a.range,t)&&r.push(a)}return r}async preview(){let e=await this.getCurrentDiagnostics();if(e.length==0){this.nvim.command("pclose",!0);return}let t=[];for(let i of e){let{source:r,code:o,severity:s,message:a}=i,l=Jh(s)[0];t.push(`[${r}${o?" "+o:""}] [${l}]`),t.push(...a.split(/\r?\n/)),t.push("")}this.nvim.call("coc#ui#preview_info",[t,"txt"],!0)}async jumpPrevious(e){let t=await this.nvim.buffer,i=this.buffers.getItem(t.id);if(!i)return;let r=await k.getCursorPosition(),o=this.getSortedRanges(i.uri,e),s;for(let a=o.length-1;a>=0;a--){let l=o[a].end;if(Fe(l,r)<0){s=o[a].start;break}else a==0&&await this.nvim.getOption("wrapscan")&&(s=o[o.length-1].start)}if(s){if(await k.moveTo(s),this.config.enableMessage=="never")return;await this.echoMessage(!1)}}async jumpNext(e){let t=await this.nvim.buffer,i=this.buffers.getItem(t.id);if(!i)return;let r=await k.getCursorPosition(),o=this.getSortedRanges(i.uri,e),s;for(let a=0;a<=o.length-1;a++){let l=o[a].start;if(Fe(l,r)>0){s=o[a].start;break}else a==o.length-1&&await this.nvim.getOption("wrapscan")&&(s=o[0].start)}if(s){if(await k.moveTo(s),this.config.enableMessage=="never")return;await this.echoMessage(!1)}}async getDiagnosticList(){let e=[],{level:t}=this.config;for(let i of this.collections)for(let[r,o]of i.entries()){if(o.length==0)continue;let s=I.parse(r),a=v.getDocument(r),l=a&&a.attached?a.textDocument.lines:void 0;if(!l&&s.scheme==="file")try{let u=o.reduce((c,h)=>Math.max(h.range.end.line,c),0);l=await fa(s.fsPath,0,u)}catch{}for(let u of o){if(u.severity&&u.severity>t)continue;let{start:c,end:h}=u.range,d={file:s.fsPath,lnum:c.line+1,end_lnum:h.line+1,col:Array.isArray(l)?We(l[c.line]??"",c.character)+1:c.character+1,end_col:Array.isArray(l)?We(l[h.line]??"",h.character)+1:h.character+1,code:u.code,source:u.source||i.name,message:u.message,severity:Jh(u.severity),level:u.severity||0,location:Xt.Location.create(r,u.range)};e.push(d)}}return e.sort((i,r)=>i.level!==r.level?i.level-r.level:i.file!==r.file?i.file>r.file?1:-1:i.lnum!=r.lnum?i.lnum-r.lnum:i.col-r.col),e}getDiagnosticsAt(e,t,i=!1,r=!1){let o=this.buffers.getItem(e);if(!o)return[];let s=Xt.Position.create(t[0],t[1]),a=o.getDiagnosticsAt(s,this.config.checkCurrentLine);return this.config.checkCurrentLine||a.length||i&&(s=Xt.Position.create(t[0],t[1]+1),a=o.getDiagnosticsAt(s,!1),a.length)||r&&t[1]==0&&(s=Xt.Position.create(t[0]+1,0),a=o.getDiagnosticsAt(s,!1)),a}async getCurrentDiagnostics(){let[e,t,i,r]=await this.nvim.eval(`[bufnr("%"),coc#cursor#position(),col('.')==col('$')-1,line('.')==line('$')]`);return this.getDiagnosticsAt(e,t,i==1,r==1)}async echoMessage(e=!1){let t=this.config;if(!this.enabled||t.displayByAle)return;let i=t.messageTarget=="float",r=await this.getCurrentDiagnostics();if(t.messageLevel&&(r=r.filter(o=>o.severity&&o.severity<=t.messageLevel)),i)await this.showFloat(r);else{if(e&&P.insertMode)return;let o=[];r.forEach(s=>{let{source:a,code:l,severity:u,message:c}=s,h=Jh(u)[0],d=l?" "+l:"",g=t.format.replace("%source",a).replace("%code",d).replace("%severity",h).split("%message").join(c);o.push(g)}),o.length&&(await this.nvim.command('echo ""'),await k.echoLines(o,e))}}async showFloat(e){if(this.config.messageTarget!=="float")return;let{config:t}=this;if(e.length==0){this.floatFactory.close();return}if(P.insertMode)return;let i="",r=[];if(Object.keys(t.filetypeMap).length>0){let s=v.getDocument(v.bufnr),a=s?s.filetype:"",l=t.filetypeMap.default||"";i=t.filetypeMap[a]||(l=="bufferType"?a:l)}e.forEach(s=>{var f;let{source:a,code:l,severity:u,message:c}=s,h=Jh(u)[0],d=l?" "+l:"",g=t.format.replace("%source",a).replace("%code",d).replace("%severity",h).split("%message").join(c),p="Error";if(i==="")switch(u){case Xt.DiagnosticSeverity.Hint:p="Hint";break;case Xt.DiagnosticSeverity.Warning:p="Warning";break;case Xt.DiagnosticSeverity.Information:p="Info";break}else p=i;r.push({filetype:p,content:g}),(f=s.codeDescription)!=null&&f.href&&r.push({filetype:"txt",content:s.codeDescription.href})});let o=this.floatFactory.applyFloatConfig({modes:["n"],maxWidth:80},this.config.floatConfig);await this.floatFactory.show(r,o)}async jumpRelated(){let t=(await this.getCurrentDiagnostics()).find(r=>r.relatedInformation!=null),i=t?t.relatedInformation.map(r=>r.location):[];i.length==1?await v.jumpTo(i[0].uri,i[0].range.start):i.length>1?await v.showLocations(i):k.showWarningMessage("No related information found.")}reset(){this.clearTimers&&this.clearTimers(),this.buffers.reset();for(let e of this.collections)e.dispose();this.collections=[]}dispose(){var e;this.clearTimers&&this.clearTimers(),this.buffers.dispose();for(let t of this.collections)t.dispose();(e=this.floatFactory)==null||e.close(),this.collections=[],$(this.disposables)}get nvim(){return v.nvim}setConfiguration(e){if(e&&!e.affectsConfiguration("diagnostic"))return;let t=v.getConfiguration("diagnostic"),i=t.get("messageTarget","float");i=="float"&&!v.env.floating&&!v.env.textprop&&(i="echo");let r=t.get("enableHighlightLineNumber",!0);v.isNvim||(r=!1),this.config=Object.assign(this.config||{},{floatConfig:t.get("floatConfig",{}),messageTarget:i,enableHighlightLineNumber:r,highlighLimit:t.get("highlighLimit",1e3),highlightPriority:t.get("highlightPriority"),autoRefresh:t.get("autoRefresh",!0),checkCurrentLine:t.get("checkCurrentLine",!1),enableSign:v.env.sign&&t.get("enableSign",!0),locationlistUpdate:t.get("locationlistUpdate",!0),enableMessage:t.get("enableMessage","always"),messageDelay:t.get("messageDelay",200),virtualText:t.get("virtualText",!1)&&this.nvim.hasFunction("nvim_buf_set_virtual_text"),virtualTextAlignRight:v.has("nvim-0.5.1")&&t.get("virtualTextAlignRight",!1),virtualTextWinCol:v.has("nvim-0.5.1")?t.get("virtualTextWinCol",null):null,virtualTextCurrentLineOnly:t.get("virtualTextCurrentLineOnly",!0),virtualTextPrefix:t.get("virtualTextPrefix"," "),virtualTextLineSeparator:t.get("virtualTextLineSeparator"," \\ "),virtualTextLines:t.get("virtualTextLines",3),displayByAle:t.get("displayByAle",!1),level:xu(t.get("level","hint")),locationlistLevel:xu(t.get("locationlistLevel")),signLevel:xu(t.get("signLevel")),virtualTextLevel:xu(t.get("virtualTextLevel")),messageLevel:xu(t.get("messageLevel")),signPriority:t.get("signPriority",10),errorSign:t.get("errorSign",">>"),warningSign:t.get("warningSign",">>"),infoSign:t.get("infoSign",">>"),hintSign:t.get("hintSign",">>"),refreshOnInsertMode:t.get("refreshOnInsertMode",!1),filetypeMap:t.get("filetypeMap",{}),showUnused:t.get("showUnused",!0),showDeprecated:t.get("showDeprecated",!0),format:t.get("format","[%source%code] [%severity] %message")}),this.enabled=t.get("enable",!0),this.defineSigns()}getCollectionByName(e){return this.collections.find(t=>t.name==e)}getCollections(e){return this.collections.filter(t=>t.has(e))}toggleDiagnostic(e){let t=e==null?this.enabled:e==0;this.enabled=!t;for(let i of this.buffers.items)this.enabled?this.refreshBuffer(i.uri):i.clear()}async toggleDiagnosticBuffer(e,t){if(!this.enabled)return;e=e||v.bufnr;let i=this.buffers.getItem(e);if(i){let r=t==null?await i.isEnabled():t==0;await this.nvim.call("setbufvar",[e,"coc_diagnostic_disable",r?1:0]),r?i.clear():this.refreshBuffer(e)}}get autoRefresh(){return this.enabled&&this.config.autoRefresh}async refreshBuffer(e,t){let i=this.buffers.getItem(e);return i?(await i.reset(this.getDiagnostics(i.uri),t),!0):!1}refresh(e){let t;if(!e)t=this.buffers.items;else{let i=this.buffers.getItem(e);t=i?[i]:[]}for(let i of t)this.refreshBuffer(i.uri,!0)}},Yt=new Aie});var Ga,vot,Mie,Oie,he,Ei=_(()=>{"use strict";Ga=x(q());Ee();fu();yu();re();Ae();ne();we();vot=W()("commands"),Mie=class{constructor(e,t,i,r=!1){this.id=e;this.impl=t;this.thisArg=i;this.internal=r}execute(...e){let{impl:t,thisArg:i}=this;return t.apply(i,e||[])}dispose(){this.thisArg=null,this.impl=null}},Oie=class{constructor(){this.commands=new Map;this.titles=new Map;this.onCommandList=[]}init(e,t){this.mru=v.createMru("commands"),this.register({id:"vscode.open",execute:async i=>{e.call("coc#ui#open_url",i.toString(),!0)}},!0),this.register({id:"workbench.action.reloadWindow",execute:async()=>{e.command("CocRestart",!0)}},!0),this.register({id:"editor.action.insertSnippet",execute:async(i,r)=>{let o=r===!0?{}:r;return await ei.insertSnippet(i.newText,!0,i.range,Ga.InsertTextMode.adjustIndentation,o||void 0)}},!0),this.register({id:"editor.action.doCodeAction",execute:async i=>{await t.cocAction("doCodeAction",i)}},!0),this.register({id:"editor.action.triggerSuggest",execute:async()=>{let i=v.getDocument(v.bufnr);i&&await i.synchronize(),e.call("coc#pum#refresh",[],!0)}},!0),this.register({id:"editor.action.triggerParameterHints",execute:async()=>{let i=v.getDocument(v.bufnr);i&&await i.synchronize(),await t.cocAction("showSignatureHelp")}},!0),this.register({id:"editor.action.addRanges",execute:async i=>{await t.cocAction("addRanges",i)}},!0),this.register({id:"editor.action.restart",execute:async()=>{await Pt(30),e.command("CocRestart",!0)}},!0),this.register({id:"editor.action.showReferences",execute:async(i,r,o)=>{await v.showLocations(o)}},!0),this.register({id:"editor.action.rename",execute:async(i,r)=>{await v.jumpTo(i,r),await t.cocAction("rename")}},!0),this.register({id:"editor.action.format",execute:async()=>{await t.cocAction("format")}},!0),this.register({id:"workspace.refactor",execute:async i=>{let r=i.filter(o=>Ga.Location.is(o));await t.getHandler().refactor.fromLocations(r)}},!0),this.register({id:"workspace.clearWatchman",execute:async()=>{(await k.runTerminalCommand("watchman watch-del-all")).success&&k.showMessage("Cleared watchman watching directories.")}},!1,"run watch-del-all for watchman to free up memory."),this.register({id:"workspace.workspaceFolders",execute:async()=>{let r=v.workspaceFolders.map(o=>I.parse(o.uri).fsPath);await k.echoLines(r)}},!1,"show opened workspaceFolders."),this.register({id:"workspace.renameCurrentFile",execute:async()=>{await v.renameCurrent()}},!1,"change current filename to a new name and reload it."),this.register({id:"extensions.toggleAutoUpdate",execute:async()=>{let i=v.getConfiguration("coc.preferences");i.get("extensionUpdateCheck","daily")=="never"?(i.update("extensionUpdateCheck","daily",!0),k.showMessage("Extension auto update enabled.","more")):(i.update("extensionUpdateCheck","never",!0),k.showMessage("Extension auto update disabled.","more"))}},!1,"toggle auto update of extensions."),this.register({id:"workspace.diagnosticRelated",execute:()=>Yt.jumpRelated()},!1,"jump to related locations of current diagnostic."),this.register({id:"workspace.showOutput",execute:async i=>{if(i)k.showOutputChannel(i);else{let r=v.channelNames;if(r.length==0)return;if(r.length==1)k.showOutputChannel(r[0]);else{let o=await k.showQuickpick(r);if(o==-1)return;let s=r[o];k.showOutputChannel(s)}}}},!1,"open output buffer to show output from languageservers or extensions."),this.register({id:"document.showIncomingCalls",execute:async()=>{await t.cocAction("showIncomingCalls")}},!1,"show incoming calls in tree view."),this.register({id:"document.showOutgoingCalls",execute:async()=>{await t.cocAction("showOutgoingCalls")}},!1,"show outgoing calls in tree view."),this.register({id:"document.echoFiletype",execute:async()=>{let i=await e.call("bufnr","%"),r=v.getDocument(i);!r||await k.echoLines([r.filetype])}},!1,"echo the mapped filetype of the current buffer"),this.register({id:"document.renameCurrentWord",execute:async()=>{let i=await e.call("bufnr","%"),r=v.getDocument(i);if(!r)return;let o=await t.cocAction("getWordEdit");if(!o){k.showMessage("Invalid position","warning");return}let s=[],{changes:a,documentChanges:l}=o;if(a){let u=a[r.uri];u&&(s=u.map(c=>c.range))}else if(l)for(let u of l)Ga.TextDocumentEdit.is(u)&&u.textDocument.uri==r.uri&&(s=u.edits.map(c=>c.range));s.length&&await t.cocAction("addRanges",s)}},!1,"rename word under cursor in current buffer by use multiple cursors."),this.register({id:"document.jumpToNextSymbol",execute:async()=>{let i=await v.document;if(!i)return;let r=await t.cocAction("symbolRanges");if(!r)return;let{textDocument:o}=i,s=await k.getOffset();r.sort((a,l)=>a.start.line!=l.start.line?a.start.line-l.start.line:a.start.character-l.start.character);for(let a=0;a<=r.length-1;a++)if(o.offsetAt(r[a].start)>s){await k.moveTo(r[a].start);return}await k.moveTo(r[0].start)}},!1,"Jump to next symbol highlight position."),this.register({id:"workspace.undo",execute:async()=>{await v.files.undoWorkspaceEdit()}},!1,"Undo previous workspace edit"),this.register({id:"workspace.redo",execute:async()=>{await v.files.redoWorkspaceEdit()}},!1,"Redo previous workspace edit"),this.register({id:"workspace.inspectEdit",execute:async()=>{await v.files.inspectEdit()}},!1,"Inspect previous workspace edit in new tab"),this.register({id:"workspace.openLocation",execute:async(i,r,o)=>{i&&await e.call("win_gotoid",[i]),await v.jumpTo(r.uri,r.range.start,o)}},!0),this.register({id:"document.jumpToPrevSymbol",execute:async()=>{let i=await v.document;if(!i)return;let r=await t.cocAction("symbolRanges");if(!r)return;let{textDocument:o}=i,s=await k.getOffset();r.sort((a,l)=>a.start.line!=l.start.line?a.start.line-l.start.line:a.start.character-l.start.character);for(let a=r.length-1;a>=0;a--)if(o.offsetAt(r[a].end){await t.cocAction("bufferCheck")}},!1,"Check providers for current buffer.")}get commandList(){let e=[];for(let t of this.commands.values())t.internal||e.push(t);return e}dispose(){for(let e of this.commands.values())e.dispose();this.commands.clear()}execute(e){return this.executeCommand(e.command,...e.arguments??[])}register(e,t=!1,i){for(let r of Array.isArray(e.id)?e.id:[e.id])this.registerCommand(r,e.execute,e,t),i&&this.titles.set(r,i);return e}has(e){return this.commands.has(e)}unregister(e){let t=this.commands.get(e);!t||(t.dispose(),this.commands.delete(e))}registerCommand(e,t,i,r=!1){return e.startsWith("_")&&(r=!0),this.commands.set(e,new Mie(e,t,i,r)),Ga.Disposable.create(()=>{this.commands.delete(e)})}executeCommand(e,...t){let i=this.commands.get(e);if(!i)throw new Error(`Command: ${e} not found`);return Promise.resolve(i.execute.apply(i,t))}async fireCommand(e,...t){await P.fire("Command",[e]);let i=Date.now(),r=await this.executeCommand(e,...t);return t.length==0&&await this.addRecent(e,P.lastChangeTs>i),r}async addRecent(e,t){await this.mru.add(e),t&&await v.nvim.command('silent! call repeat#set("\\(coc-command-repeat)", -1)')}async repeatCommand(){let t=(await this.mru.load())[0];t&&(await this.executeCommand(t),await v.nvim.command('silent! call repeat#set("\\(coc-command-repeat)", -1)'))}},he=new Oie});iS();var Ene=x(YN()),Pne=x(Hx());we();var kne=require("events"),gL=x(q());Ei();var Kie=x(q());Ee();we();Io();re();Ne();ne();var Ka=x(q());re();Es();Ne();So();Es();Ne();function nL(n,e,t=1){return n===e?1/t:e+32===n?.5/t:0}function Nie(n,e){if(!(e.length==0||n.length=r)return;let o=t[0],s=t.slice(1);if(!wK(o)){let d=g3(n,o,e);if(d==-1)return;let g=d==0?5:1,p=Xh(n,d+1,s,[...i,d]);return p===void 0?void 0:[g+p[0],p[1]]}let a=i.length==0,l=nL(o,n[e],a?.2:1);if(l>0){let d=Xh(n,e+1,s,[...i,e]);return d===void 0?void 0:[l+d[0],d[1]]}let u=new Map,c=Pq(n,e+1);if(c!=null){let d=nL(o,c[1],a?.5:1);if(d>0){let g=[...i,c[0]];d===.5&&(d=.75);let p=Xh(n,c[0]+1,s,g);p!==void 0&&u.set(d+p[0],p[1])}}for(let d=e+1;d0){let p=Xh(n,d+1,s,[...i,d]);p!==void 0&&u.set(g+p[0],p[1]);break}}if(u.size==0){if(i.length>0){let d=i[i.length-1];if(d>0&&n[d]!==o&&n[d-1]===o){let g=i.slice();g.splice(i.length-1,0,d-1);let p=Xh(n,d+1,s,g);return p===void 0?void 0:[.5+p[0],p[1]]}}return}let h=Math.max(...u.keys());return[h,u.get(h)]}var Uh=W()("completion-complete"),pC=class{constructor(e,t,i,r,o){this.option=e;this.document=t;this.config=i;this.sources=r;this.nvim=o;this.results=new Map;this._input="";this._completing=!1;this.localBonus=new Map;this.names=[];this.inputOffset=0;this._onDidRefresh=new Ka.Emitter;this.onDidRefresh=this._onDidRefresh.event;this.tokenSource=new Ka.CancellationTokenSource,r.sort((s,a)=>a.priority-s.priority),this.names=r.map(s=>s.name)}fireRefresh(e){this.timer&&clearTimeout(this.timer),this.timer=setTimeout(()=>{this._onDidRefresh.fire()},e)}get isCompleting(){return this._completing}get input(){return this._input}get isEmpty(){let e=!0;for(let t of this.results.values())if(t.items.length>0){e=!1;break}return e}getIncompleteSources(){let e=[];for(let[t,i]of this.results.entries())i.isIncomplete&&e.push(t);return e}async doComplete(){var u,c;let e=this.tokenSource.token,t=await Promise.all([this.nvim.call("coc#util#synname",[]),this.nvim.call("coc#util#suggest_variables",[this.option.bufnr]),this.document.patchChange()]);if(e.isCancellationRequested)return;this.option.synname=t[0];let i=t[1];if(i.disable)return Uh.warn("suggest cancelled by b:coc_suggest_disable"),!0;if((u=i.disabled_sources)!=null&&u.length&&(this.sources=this.sources.filter(h=>!i.disabled_sources.includes(h.name)),this.sources.length===0))return Uh.warn("suggest cancelled by b:coc_disabled_sources"),!0;if((c=i.blacklist)!=null&&c.length&&i.blacklist.includes(this.option.input))return Uh.warn("suggest cancelled by b:coc_suggest_blacklist"),!0;let{triggerCompletionWait:r,localityBonus:o}=this.config;if(await Pt(Math.min(r??0,50)),e.isCancellationRequested)return;let{colnr:s,linenr:a,col:l}=this.option;if(o){let h=a-1;this.localBonus=this.document.getLocalifyBonus(Ka.Position.create(h,l-1),Ka.Position.create(h,s))}await this.completeSources(this.sources,!1)}async completeSources(e,t){let{timeout:i}=this.config,{results:r,tokenSource:o}=this,s=this.option.col,a=e.map(g=>g.name),l=a.length;this._completing=!0;let u=o.token,c,h=new Promise(g=>{c=setTimeout(()=>{o.token.isCancellationRequested||(a=a.filter(p=>!d.includes(p)),o.cancel(),Uh.warn(`Complete timeout after ${i}ms`,a),this.nvim.setVar("coc_timeout_sources",a,!0)),g()},typeof i=="number"?i:500)}),d=[];await Promise.race([h,Promise.all(e.map(g=>this.completeSource(g,u).then(()=>{if(d.push(g.name),u.isCancellationRequested||t)return;let p=this.option.col!==s;p&&this.cancel(),p||d.length===l?this.fireRefresh(0):r.has(g.name)&&this.fireRefresh(16)})))]),clearTimeout(c),this._completing=!1}async completeSource(e,t){let i=Object.assign({},this.option),{name:r}=e;try{if(typeof e.shouldComplete=="function"&&(!await Promise.resolve(e.shouldComplete(i))||t.isCancellationRequested))return;let o=e.priority??0,s=Date.now();await new Promise((a,l)=>{Promise.resolve(e.doComplete(i,t)).then(u=>{if(t.isCancellationRequested){a(void 0);return}let c=u?u.items.length:0;Uh.debug(`Source "${r}" finished with ${c} items ${Date.now()-s}ms`),c>0?(u.items.forEach(h=>{h.word=h.word??"",h.abbr=h.abbr??h.word,h.source=r,h.priority=o,h.filterText=h.filterText??h.word,r!=="snippets"&&(h.localBonus=this.localBonus.get(h.filterText)??0)}),this.setResult(r,u)):this.results.delete(r),a()},u=>{l(u)})})}catch(o){this.nvim.echoError(o),Uh.error("Complete error:",e.name,o)}}async completeInComplete(e,t){let{document:i}=this;this.cancel(),this.tokenSource=new Ka.CancellationTokenSource;let r=this.tokenSource.token;if(await i.patchChange(!0),r.isCancellationRequested)return;let{input:o,colnr:s,linenr:a}=this.option,l=e[e.length-1];Object.assign(this.option,{input:e,line:i.getline(a-1),colnr:s+(e.length-o.length),triggerCharacter:!l||Sc(l)?void 0:l,triggerForInComplete:!0});let u=this.sources.filter(c=>t.includes(c.name));if(await this.completeSources(u,!0),!r.isCancellationRequested)return this.filterItems(e)}filterItems(e){let{results:t,names:i,inputOffset:r}=this;if(r>0&&(e=at(e,r)),this._input=e,t.size==0)return[];let o=e.length,s=o==0,{maxItemCount:a,defaultSortMethod:l,removeDuplicateItems:u}=this.config,c=[],h=Ln(e),d=new Set;for(let g of i){let p=t.get(g);if(!p)continue;let f=g==="snippets",m=p.items;for(let b=0;bM);else{let B=Nie(T,h);X=B==null?0:B[0],B!=null&&(H=B[1])}if(X===0)continue;if(R==T)w.positions=H;else if(H&&H.length>0){let B=R.indexOf(T.slice(0,H[H.length-1]+1));B!==-1&&(w.positions=H.map(M=>M+B))}f&&D===e?w.score=99:w.score=X*(w.sourceScore||1)}d.add(D),c.push(w)}}}return c.sort((g,p)=>{let f=g.sortText,m=p.sortText;if(g.score!==p.score)return p.score-g.score;if(g.priority!==p.priority)return p.priority-g.priority;if(g.localBonus!==p.localBonus)return p.localBonus-g.localBonus;if(g.source===p.source&&f!==m)return f{let{priority:s,source:a}=o,l=s<90,u=r.get(a)||0;return i&&l&&u==i||t&&!l&&u==t?!1:(r.set(a,u+1),!0)})}setResult(e,t){let{results:i}=this,{line:r,colnr:o,col:s}=this.option;if(typeof t.startcol=="number"&&t.startcol!=s){let{startcol:a}=t;ai.content.trim().length>0),e.length===0)this.close();else{let{lines:i,codes:r,highlights:o}=Ay(e,{excludeImages:t.excludeImages}),s={codes:r,highlights:o,highlight:t.highlight??"CocFloating",maxWidth:t.maxWidth||80,rounded:t.rounded?1:0,focusable:t.focusable===!0?1:0};t.shadow&&(s.shadow=1),t.border&&(s.border=[1,1,1,1]),t.borderhighlight&&(s.borderhighlight=t.borderhighlight),typeof t.winblend=="number"&&(s.winblend=t.winblend),this.nvim.call("coc#dialog#create_pum_float",[i,s],!0),this.nvim.redrawVim()}}doCompleteResolve(e,t,i){let r=ct.getSource(e.source);return new Promise(o=>{if(r&&typeof r.onCompleteResolve=="function"){let s=setTimeout(()=>{i.token.isCancellationRequested||(i.cancel(),this.close()),Bie.warn(`Resolve timeout after 500ms: ${r.name}`),o()},global.__TEST__?100:500);Promise.resolve(r.onCompleteResolve(e,t,i.token)).then(()=>{clearTimeout(s),o()},a=>{Bie.error("Error on complete resolve:",a),clearTimeout(s),o()})}else o()})}cancel(){this.tokenSource&&(this.tokenSource.cancel(),this.tokenSource=void 0)}close(){this.nvim.call("coc#pum#close_detail",[],!0)}};var Mot=W()("completion-mru"),mC=class{constructor(e){this.selection=e;this.max=0;this.items=new Map;this.itemsNoPrefex=new Map}getScore(e,t){let i=qie(t);return e.length==0?this.itemsNoPrefex.get(i)??-1:(this.selection==="recentlyUsedByPrefix"&&(i=`${e}|${i}`),(this.selection==="recentlyUsed"?this.itemsNoPrefex:this.items).get(i)??-1)}add(e,t){if(this.selection=="first"||["around","buffer","word"].includes(t.source))return;let i=qie(t);t.word.toLowerCase().startsWith(e.toLowerCase())||(e="");let r=`${e}|${i}`;this.items.set(r,this.max),this.itemsNoPrefex.set(i,this.max),this.max+=1}};function qie(n){let e=n.filterText,t=n.source,i=n.kind??"";return`${e}|${t}|${i}`}var Gie=x(UR());Io();Ne();Io();Ne();var Hot=W()("completion-util");function Yie(n){return n?{word:n.word,abbr:n.abbr,kind:n.kind,source:n.source,isSnippet:n.isSnippet===!0,menu:n.menu??`[${n.source}]`,user_data:typeof n.index=="number"?`${n.source}:${n.index}`:n.user_data}:{}}function Wie(n,e,t,i){let{pre:r}=t;if(r.length===0||r[r.length-1]===" "||r.length=0;r--){let o=e[r];if(n.isWord(o)&&(t?o.charCodeAt(0)<255:!0))i+=1;else break}return i==0?"":e.slice(-i)}function $ie(n){let{source:e}=n;if(e){let t=ct.getSource(e);return t?[t]:[]}return ct.getCompleteSources(n)}function Xie(n,e){let t=0;for(let i=0;io.length&&!/^\s/.test(e.slice(-o.length-1))||!(r.startsWith("~")?e.toLowerCase().endsWith(o):e.endsWith(o)))continue;if(i==""||i=="0"&&(e.length==o.length||/^\s*$/.test(e.slice(0,e.length-o.length))))return!0}return!1}var Jot=W()("completion-pum"),yC=class{constructor(e,t,i){this.nvim=e;this.config=t;this.mruLoader=i;this._search=""}get search(){return this._search}get pumConfig(){let{floatConfig:e,pumFloatConfig:t}=this.config;t||(t=e);let i={};return typeof t.highlight=="string"&&(i.highlight=t.highlight),typeof t.winblend=="number"&&(i.winblend=t.winblend),t.shadow&&(i.shadow=t.shadow),t.border&&(i.border=[1,1,1,1],i.rounded=t.rounded?1:0,i.borderhighlight=t.borderhighlight??"CocFloating"),i}stringWidth(e){return(0,Gie.default)(e,{ambiguousIsNarrow:this.config.ambiguousIsNarrow})}show(e,t,i){var B;this._search=t;let{noselect:r,fixInsertedWord:o,enablePreselect:s,selection:a,floatConfig:l,virtualText:u}=this.config,c=Zie(i);c.length===0&&(o=!1);let h=r||!s?-1:e.findIndex(M=>M.preselect);h!==-1&&t.length>0&&((B=e[h].word)!=null&&B.startsWith(t)||(h=-1));let d=-1,g=0,p=0,f=0,m=0,b=!r&&h==-1&&a!="first";for(let M=0;Md&&(d=Z,h=M)}let O=ct.getShortcut(F.source);g=Math.max(this.stringWidth(this.getAbbr(F)),g),F.kind&&(f=1),F.menu&&(p=Math.max(this.stringWidth(F.menu),p)),O&&(m=Math.max(this.stringWidth(O)+2,m))}!r&&h==-1&&(h=0);let w={input:t,index:h,bufnr:i.bufnr,line:i.linenr,col:i.col,virtualText:u,words:e.map(M=>Vke(o,t,M.word,c))},D=this.pumConfig,T=[],R=[],N=0,H={border:!!D.border,menuWidth:p,abbrWidth:g,kindWidth:f,shortcutWidth:m};this.adjustAbbrWidth(H);for(let M=0;Mi?r.slice(0,i-1)+".":r}adjustAbbrWidth(e){let{formatItems:t,pumwidth:i}=this.config,r=0;for(let o of t)o=="abbr"?r+=e.abbrWidth+1:o=="menu"&&e.menuWidth?r+=e.menuWidth+1:o=="kind"&&e.kindWidth?r+=e.kindWidth+1:o=="shortcut"&&e.shortcutWidth&&(r+=e.shortcutWidth+1);r0){let d=e.positions.filter(p=>p0){let c=V(a);a+=this.fillWidth(e.menu??"",r.menuWidth+1),e.menu&&t.push({hlGroup:"CocPumMenu",lnum:i,colStart:c,colEnd:c+V(e.menu)})}break}case"kind":if(r.kindWidth>0){let c=V(a);a+=this.fillWidth(e.kind??"",r.kindWidth+1),e.kind&&e.kindHighlight&&t.push({hlGroup:e.kindHighlight,lnum:i,colStart:c,colEnd:c+V(e.kind)})}break;case"shortcut":if(r.shortcutWidth>0){let c=V(a),h=ct.getShortcut(e.source);a+=this.fillWidth(h?`[${h}]`:"",r.shortcutWidth+1),h&&t.push({hlGroup:"CocPumShortcut",lnum:i,colStart:c,colEnd:c+V(h)+2})}break}return a}fillWidth(e,t){let i=t-this.stringWidth(e);return i<=0?e:e+" ".repeat(i)}};function Vke(n,e,t,i){return!n||t.length<=i.length||!t.endsWith(i)||t.length0;){let o=e.shift(),s=o;for(;e.length>0;){let a=e[0];if(a-s==1)s=a,e.shift();else break}r.push({hlGroup:"CocPumSearch",lnum:i,colStart:t+We(n,o),colEnd:t+We(n,s+1)})}return r}var bC=W()("completion"),Qie=class{constructor(){this._activated=!1;this.disposables=[];this.complete=null}init(){this.nvim=v.nvim,this.getCompleteConfig(),this.mru=new mC(this.config.selection),this.pum=new yC(this.nvim,this.config,this.mru),v.onDidChangeConfiguration(this.getCompleteConfig,this,this.disposables),this.floating=new fC(v.nvim),this.config.autoTrigger!=="none"&&v.nvim.call("coc#ui#check_pum_keymappings",[],!0),P.on("CursorMovedI",(e,t,i)=>{var r;if(this.triggerTimer&&clearTimeout(this.triggerTimer),!(i||!this.option||e!==this.option.bufnr)){if(this.option.linenr===t[0]){if(t[1]==this.option.colnr&&t[1]===V(this.pretext??"")+1)return;let o=v.getDocument(e).getline(t[0]-1),s=ln(o,t[1]-1),a=ln(o,this.option.col);if(a{this.stop(!0)},null,this.disposables),P.on("CompleteStop",(e,t)=>{this.stop(!1,e,t)},null,this.disposables),P.on("InsertEnter",this.onInsertEnter,this,this.disposables),P.on("TextChangedI",this.onTextChangedI,this,this.disposables),P.on("TextChangedP",this.onTextChangedP,this,this.disposables),P.on("MenuPopupChanged",async e=>{var r;if(!this.option)return;this.popupEvent=e,this.floating.cancel();let t=this.selectedItem;if(!t||!e.move&&((r=this.complete)==null?void 0:r.isCompleting))return;let i=this.config.floatConfig;await this.floating.resolveItem(t,i,this.option)},null,this.disposables)}get option(){return this.complete?this.complete.option:null}get isActivated(){return this._activated}get inserted(){return this.popupEvent!=null&&this.popupEvent.inserted}get document(){return this.option?v.getDocument(this.option.bufnr):null}get selectedItem(){if(!(!this.popupEvent||!this.activeItems))return this.activeItems[this.popupEvent.index]}getCompleteConfig(e){if(e&&!e.affectsConfiguration("suggest"))return;let t=v.getConfiguration("suggest");function i(r,o){return t.get(r,o)}this.config=Object.assign(this.config??{},{ambiguousIsNarrow:v.env.ambiguousIsNarrow,pumwidth:v.env.pumwidth||15,noselect:i("noselect",!1),enablePreselect:i("enablePreselect",!0),formatItems:i("formatItems",["abbr","menu","kind","shortcut"]),autoTrigger:i("autoTrigger","always"),virtualText:i("virtualText",!1),selection:i("selection","first"),floatConfig:i("floatConfig",{}),pumFloatConfig:i("pumFloatConfig",null),defaultSortMethod:i("defaultSortMethod","length"),removeDuplicateItems:i("removeDuplicateItems",!1),acceptSuggestionOnCommitCharacter:i("acceptSuggestionOnCommitCharacter",!1),triggerCompletionWait:i("triggerCompletionWait",0),labelMaxLength:i("labelMaxLength",200),triggerAfterInsertEnter:i("triggerAfterInsertEnter",!1),maxItemCount:i("maxCompleteItemCount",50),timeout:i("timeout",500),minTriggerInputLength:i("minTriggerInputLength",1),snippetIndicator:i("snippetIndicator","~"),fixInsertedWord:i("fixInsertedWord",!0),localityBonus:i("localityBonus",!0),highPrioritySourceLimit:i("highPrioritySourceLimit",null),lowPrioritySourceLimit:i("lowPrioritySourceLimit",null),ignoreRegexps:i("ignoreRegexps",[]),asciiCharactersOnly:i("asciiCharactersOnly",!1)})}async startCompletion(e,t){let i=v.getAttachedDocument(e.bufnr);if(e.filetype=i.filetype,bC.debug("trigger completion with",e),this.stop(!0),this.pretext=at(e.line,0,e.colnr-1),t=t??$ie(e),!t||t.length===0)return;let r=this.complete=new pC(e,i,this.config,t,this.nvim);this._activated=!0,P.completing=!0,r.onDidRefresh(async()=>{if(this.triggerTimer!=null&&clearTimeout(this.triggerTimer),r.isEmpty){this.stop(!1);return}this.inserted||await this.filterResults()}),await r.doComplete()&&this.stop(!1)}showCompletion(e,t){let{option:i}=this;!i||(e.length==0?this.stop(!0):(this.activeItems=e,this.pum.show(e,t,i)))}async onTextChangedP(e,t){this.option&&e===this.option.bufnr&&(this.pretext=t.pre)}async onTextChangedI(e,t){if(!v.isAttached(e))return;let{option:i}=this;if(!t.insertChar&&i){let s=at(i.line,0,i.col);if(this.selectedItem){if(s+this.popupEvent.word==t.pre){this.pretext=t.pre;return}}else if(s+this.pum.search==t.pre)return}if(i&&t.pre.match(/^\s*/)[0]!==i.line.match(/^\s*/)[0]){await this.triggerCompletion(this.document,t);return}if(i&&Wie(e,this.pretext,t,i)&&(this.stop(!0),!t.insertChar)||t.pre===this.pretext)return;this.triggerTimer&&clearTimeout(this.triggerTimer);let r=this.pretext=t.pre,o=v.getDocument(e);if(t.insertChar&&this.config.acceptSuggestionOnCommitCharacter&&this.selectedItem){let s=r.slice(-1),a=this.selectedItem;if(ct.shouldCommit(a,s)){bC.debug("commit by commit character.");let{linenr:l,col:u,line:c,colnr:h}=this.option;this.stop(!0);let{word:d}=a,g=`${c.slice(0,u)}${d}${t.insertChar}${c.slice(h-1)}`;await this.nvim.call("coc#util#setline",[l,g]);let p=u+d.length+2;await this.nvim.call("cursor",[l,p]),await o.patchChange();return}}if(t.insertChar&&!Sc(t.insertChar)){let s=o.getVar("disabled_sources",[]),a=ct.getTriggerSources(r,o.filetype,o.uri,s);if(a.length>0){await this.triggerCompletion(o,t,a);return}}if(!this.complete){if(!t.insertChar)return;await this.triggerCompletion(o,t);return}if(t.insertChar&&this.complete.isEmpty){this.triggerTimer=setTimeout(async()=>{await this.triggerCompletion(o,t)},200);return}await this.filterResults()}async triggerCompletion(e,t,i){let{minTriggerInputLength:r,asciiCharactersOnly:o,autoTrigger:s}=this.config;if(s==="none")return!1;let{pre:a}=t;if(!i&&!this.shouldTrigger(e,a))return!1;let l=Jie(e,a,o),u={input:l,line:t.line,filetype:e.filetype,linenr:t.lnum,col:t.col-1-V(l),colnr:t.col,bufnr:e.bufnr,word:l+Xie(e,t.line.slice(a.length)),changedtick:t.changedtick,indentkeys:e.indentkeys,synname:"",filepath:e.schema==="file"?I.parse(e.uri).fsPath:"",triggerCharacter:a.length?a.slice(-1):void 0};return i==null&&l.length0&&u.input.length>0&&this.config.ignoreRegexps.some(h=>{if(new RegExp(h).test(u.input))return bC.warn(`Suggest disabled by ignore regexp: ${h}`),!0})?!1:(await this.startCompletion(u,i),!0)}stop(e,t="",i){var c;if(!this._activated)return;let r=t==="confirm"||((c=this.popupEvent)==null?void 0:c.inserted)&&t!="cancel";this._activated=!1,i=i??this.pretext;let o=this.document,s=this.complete.input,a=this.complete.option,l=this.selectedItem;P.completing=!1,this.cancel();let u=!1;P.fire("CompleteDone",[Yie(l)]),l&&r&&(this.mru.add(s,l),u=i&&Uie(a.indentkeys,i)),e&&this.nvim.call("coc#pum#_close",[],!0),!(!o||!o.attached)&&(o._forceSync(),t=="confirm"&&l&&this.confirmCompletion(l,a).then(()=>{u&&this.nvim.call("coc#complete_indent",[],!0)}))}async confirmCompletion(e,t){let i=new Kie.CancellationTokenSource,{token:r}=i;await this.floating.doCompleteResolve(e,t,i),!r.isCancellationRequested&&await this.doCompleteDone(e,t)}async doCompleteDone(e,t){let i=ct.getSource(e.source);i&&typeof i.onCompleteDone=="function"&&await Promise.resolve(i.onCompleteDone(e,t))}async onInsertEnter(e){if(!this.config.triggerAfterInsertEnter||this.config.autoTrigger!=="always"||!v.isAttached(e))return;let t=await this.nvim.call("coc#util#change_info");if(t.pre=at(t.line,0,t.col-1),!t.pre)return;let i=v.getDocument(e);await this.triggerCompletion(i,t)}shouldTrigger(e,t){let{autoTrigger:i}=this.config;return i=="none"?!1:ct.shouldTrigger(t,e.filetype,e.uri)?!0:i==="always"}getResumeInput(){let{option:e,pretext:t,document:i}=this;if(!e||!i)return null;let r=Buffer.from(t,"utf8");if(r.lengthr}};var Lf=W()("cursors-session"),DC=class{constructor(e,t){this.nvim=e;this.doc=t;this._onDidCancel=new Fs.Emitter;this._onDidUpdate=new Fs.Emitter;this.onDidCancel=this._onDidCancel.event;this.onDidUpdate=this._onDidUpdate.event;this.disposables=[];this.ranges=[];this.activated=!0;this.changing=!1;t.buffer.setVar("coc_cursors_activated",1,!0),this.loadConfig();let{cancelKey:i,nextKey:r,previousKey:o}=this.config;this.disposables.push(v.registerLocalKeymap("n",i,()=>{this.cancel()})),this.disposables.push(v.registerLocalKeymap("n",r,async()=>{let s=this.ranges.map(u=>u.range),a=await k.getCursorPosition();for(let u of s)if(Fe(u.start,a)>0){await k.moveTo(u.start);return}let l=this.config.wrapscan;s.length&&l&&await k.moveTo(s[0].start)})),this.disposables.push(v.registerLocalKeymap("n",o,async()=>{let s=this.ranges.map(u=>u.range),a=await k.getCursorPosition();for(let u=s.length-1;u>=0;u--){let c=s[u];if(Fe(c.end,a)<0){await k.moveTo(c.start);return}}let l=this.config.wrapscan;s.length&&l&&await k.moveTo(s[s.length-1].start)})),this.doc.onDocumentChange(async s=>{await this.onChange(s),this.activated&&!this.changing&&this._onDidUpdate.fire()},this,this.disposables)}loadConfig(){let e=v.getConfiguration("cursors",this.doc.uri);this.config={nextKey:e.get("nextKey",""),previousKey:e.get("previousKey",""),cancelKey:e.get("cancelKey",""),wrapscan:e.get("wrapscan",!0)}}addRange(e){let{ranges:t}=this,i=t.findIndex(r=>Ml(r.range,e));i!==-1?t.splice(i,1):(this.createRange(e),t.sort((r,o)=>Fe(r.range.start,o.range.start))),this.ranges.length==0?this.cancel():this.doHighlights()}addRanges(e){this.doc._forceSync(),this.ranges=this.ranges.filter(t=>!e.some(i=>Oc(i,t.range)));for(let t of e)this.createRange(t);return this.ranges.sort((t,i)=>Fe(t.range.start,i.range.start)),this.doHighlights(),!0}createRange(e){let{textDocument:t}=this.doc,{line:i,character:r}=e.start,o=t.getText(e);this.ranges.push(new Gh(i,r,o))}async onChange(e){if(!this.activated||this.changing)return;if(e.contentChanges.length===0){this.doHighlights();return}let t=e.contentChanges[0],{text:i,range:r}=t,o=this.ranges.filter(s=>!(!Ml(r,s.range)||Jy(r,s.range)&&(i.includes(` +`)||!jt(r))));if(jt(r)&&o.length>0&&(o=o.slice(0,1)),o.length==0)Lf.debug("no affected ranges"),this.ranges.forEach(s=>{s.adjustFromEdit({range:r,newText:i})}),this.doHighlights();else if(o.length==1&&Ni(r,o[0].range)){if(Lf.debug("affected single range"),i.includes(` +`)){this.cancel();return}await this.applySingleEdit(o[0],{range:r,newText:i})}else if(!i.length||!this.validChange(r,i)){Lf.debug("filter affected ranges.");let s=this.ranges.filter(a=>!o.includes(a));s.length>0?(this.ranges=s,s.forEach(a=>{a.adjustFromEdit({range:r,newText:i})}),this.doHighlights()):this.cancel()}else{Lf.debug("Check undo & redo");let s=this.ranges[0],a=this.ranges[this.ranges.length-1],l=e.originalLines.slice(s.line,a.line+1),u=this.doc.textDocument.lines.slice(s.line,a.line+1);this.applyComposedEdit(l,u)}}validChange(e,t){if(ya(Fs.TextEdit.replace(e,t))!=0||!Ni(e,this.range))return!1;let i=this.ranges[0],r=this.ranges[this.ranges.length-1];return!(e.start.line!=i.position.line||e.end.line!=r.position.line)}get range(){let e=this.ranges[0],t=this.ranges[this.ranges.length-1];return Fs.Range.create(e.position,t.range.end)}doHighlights(){let{nvim:e,ranges:t,doc:i}=this,r=i.buffer,o=[];t.forEach(s=>{i.addHighlights(o,"CocCursorRange",s.range,{combine:!1,start_incl:!0,end_incl:!0})}),o.sort((s,a)=>s.lnum!=a.lnum?s.lnum-a.lnum:s.colStart!=a.colStart?s.colStart-a.colStart:0),r.updateHighlights("cursors",o,{priority:4096}),e.redrawVim()}get currentRanges(){return this.ranges.map(e=>e.range)}cancel(){if(!this.activated)return;Lf.debug("cursors cancel");let{nvim:e,doc:t}=this,i=t.buffer;this.activated=!1,this.ranges=[],e.pauseNotification(),i.clearNamespace("cursors"),i.setVar("coc_cursors_activated",0,!0),e.resumeNotification(!0,!0),this._onDidUpdate.fire(),this._onDidCancel.fire()}dispose(){!this.doc||(this._onDidCancel.dispose(),this._onDidUpdate.dispose(),$(this.disposables),this.ranges=[],this.doc=null)}async applySingleEdit(e,t){let{doc:i,ranges:r}=this;r.filter(u=>u!==e&&u.position.line==e.position.line).forEach(u=>u.adjustFromEdit(t));let s=wC(e,t.range,t.newText),a=_f(s);r.forEach(u=>u.applyChange(s));let l=r.filter(u=>u!==e).map(u=>u.textEdit);if(this.changing=!0,await i.applyEdits(l,!0,!0),this.changing=!1,a!=0)for(let u of r){let c=Rf(u,this.ranges,e);u.move(c*a)}this.doHighlights()}applyComposedEdit(e,t){let i=(0,Kh.default)(e[0],t[0]),r=this.ranges[0],o=r.position.character,s=r.position.line,a=r.text.length,l=i[0];if(o>0&&(l[0]!=Kh.default.EQUAL||!l[1].startsWith(e[0].slice(0,o))))return this.cancel(),!1;let u=0,c=!1,h=[];for(let b=0;b0&&(D=D.slice(o)),w==Kh.default.EQUAL){if(u+=D.length,u>a)break}else if(w==Kh.default.DELETE){let T=u;if(u+=D.length,u>a){c=!0;break}h.push({offset:T,remove:D})}else{let T=i[b-1];T&&T[0]==Kh.default.DELETE?h[h.length-1].add=D:h.push({offset:u,add:D})}}if(c||!h.length)return this.cancel(),!1;let d=Wn.create("file:///1","",0,e.join(` +`)),g;if(h.length==1)g={offset:h[0].offset,remove:h[0].remove?h[0].remove.length:0,insert:h[0].add??""};else if(tEe(h,a))g={prepend:[h[0].remove?h[0].remove.length:0,h[0].add??""],append:[h[1].remove?h[1].remove.length:0,h[1].add??""]};else{let b=r.text,w="",D="",T=h[0].offset;for(let R of h){if(R.offset>T+w.length){let N=b.slice(T+w.length,R.offset);w+=N,D+=N}R.add&&(D+=R.add),R.remove&&(w+=R.remove)}g={offset:T,remove:w.length,insert:D}}let p=this.ranges.map(b=>{let w=b.position.line-s,{start:D,end:T}=b.range,R=Fs.Range.create(w,D.character,w,T.character);return b.applyChange(g),Fs.TextEdit.replace(R,b.text)});if(Wn.applyEdits(d,p)!==t.join(` +`))return this.cancel(),!1;let m=_f(g);if(m!=0)for(let b of this.ranges){let w=Rf(b,this.ranges);b.move(w*m)}return this.doHighlights(),!0}};function tEe(n,e){return!(n.length!=2||n[0].offset!=0||n[1].offset+(n[1].remove?n[1].remove.length:0)!==e)}var qst=W()("cursors"),CC=class{constructor(e){this.nvim=e;this.sessionsMap=new Map;this.disposables=[];v.onDidCloseTextDocument(t=>{let i=this.getSession(t.bufnr);!i||(this.sessionsMap.delete(t.bufnr),i.cancel())},null,this.disposables)}cancel(e){let t=v.getDocument(e);if(!t)return;let i=this.getSession(t.bufnr);i&&i.cancel()}getSession(e){return this.sessionsMap.get(e)}async isActivated(){let e=await this.nvim.call("bufnr",["%"]);return this.sessionsMap.get(e)!=null}async select(e,t,i){let r=v.getAttachedDocument(e),{nvim:o}=this,s=this.createSession(r),a=await k.getCursorPosition(),l;if(t=="operator"){await o.command(`normal! ${i=="line"?"'[":"`["}`);let u=await k.getCursorPosition();await o.command(`normal! ${i=="line"?"']":"`]"}`);let c=await k.getCursorPosition();await k.moveTo(a);let h=Fe(u,c);if(h==0)return;h>=0&&([u,c]=[c,u]);let d=r.getline(c.line);c.character(coc-cursors-${t})", -1)`)}else if(t=="position"){let u=r.getline(a.line);a.character>=u.length?l=Qh.Range.create(a.line,u.length-1,a.line,u.length):l=Qh.Range.create(a.line,a.character,a.line,a.character+1),s.addRange(l),await o.command(`silent! call repeat#set("\\(coc-cursors-${t})", -1)`)}else if(t=="range"){await o.call("eval",'feedkeys("\\", "in")');let u=await k.getSelectedRange(i);if(!u)return;let c=i==""?zie(r,u):oL(r,u);for(let h of c)s.addRange(h)}else throw new Error(`select kind "${t}" not supported`)}createSession(e){let{bufnr:t}=e,i=this.getSession(t);return i||(i=new DC(this.nvim,e),this.sessionsMap.set(t,i),i.onDidCancel(()=>{i.dispose(),this.sessionsMap.delete(t)}),i)}async addRanges(e){let{nvim:t}=this,i=await t.call("bufnr",["%"]),r=v.getAttachedDocument(i);return this.createSession(r).addRanges(e)}reset(){for(let e of this.sessionsMap.values())e.cancel();this.sessionsMap.clear()}};fu();we();Oo();var tx=x(q());we();Te();re();Ae();ne();var zh=x(q());Ei();fu();Te();Ae();ne();var Gst=W()("handler-codeActions"),xC=class{constructor(e,t){this.nvim=e;this.handler=t;t.addDisposable(he.registerCommand("editor.action.organizeImport",async i=>{await this.organizeImport(i)})),he.titles.set("editor.action.organizeImport","run organize import code action.")}async codeActionRange(e,t,i){let{doc:r}=await this.handler.getCurrentState();await r.synchronize();let o=r.getline(t-1),s=zh.Range.create(e-1,0,t-1,o.length),a=await this.getCodeActions(r,s,i?[i]:null);if(a=a.filter(c=>!c.disabled),!a||a.length==0){k.showMessage(`No${i?" "+i:""} code action available`,"warning");return}let l=await k.showMenuPicker(a.map(c=>c.title),"Choose action"),u=a[l];u&&await this.applyCodeAction(u)}async organizeImport(e){let{doc:t}=await this.handler.getCurrentState();if(e&&t.bufnr!=e)return;await t.synchronize();let i=await this.getCodeActions(t,void 0,[zh.CodeActionKind.SourceOrganizeImports]);if(i&&i.length){await this.applyCodeAction(i[0]);return}throw new Error("Organize import action not found.")}async getCodeActions(e,t,i){t=t||zh.Range.create(0,0,e.lineCount,0);let o={diagnostics:Yt.getDiagnosticsInRange(e.textDocument,t)};i&&Array.isArray(i)&&(o.only=i);let s=await this.handler.withRequestToken("code action",a=>j.getCodeActions(e.textDocument,t,o,a));return!s||s.length==0?[]:(s.sort((a,l)=>a.isPreferred&&!l.isPreferred?-1:l.isPreferred&&!a.isPreferred||a.disabled&&!l.disabled?1:l.disabled&&!a.disabled?-1:0),s)}get floatActions(){return v.floatSupported?v.getConfiguration("coc.preferences").get("floatActions",!0):!1}async doCodeAction(e,t){let{doc:i}=await this.handler.getCurrentState(),r;e&&(r=await k.getSelectedRange(e)),await i.synchronize();let o=await this.getCodeActions(i,r,Array.isArray(t)?t:null);if(typeof t=="string"?o=o.filter(l=>l.title==t||l.command&&l.command.title==t):Array.isArray(t)&&(o=o.filter(l=>t.some(u=>l.kind&&l.kind.startsWith(u)))),!o||o.length==0){k.showMessage(`No${t?" "+t:""} code action available`,"warning");return}if(t&&o.length==1&&!o[0].disabled){await this.applyCodeAction(o[0]);return}this.floatActions||(o=o.filter(l=>!l.disabled));let s=this.floatActions?await k.showMenuPicker(o.map(l=>({text:l.title,disabled:l.disabled})),"Choose action"):await k.showQuickpick(o.map(l=>l.title)),a=o[s];a&&await this.applyCodeAction(a)}async getCurrentCodeActions(e,t){let{doc:i}=await this.handler.getCurrentState(),r;return e&&(r=await k.getSelectedRange(e)),(await this.getCodeActions(i,r,t)).filter(s=>!s.disabled)}async doQuickfix(){let e=await this.getCurrentCodeActions("line",[zh.CodeActionKind.QuickFix]);if(!e||e.length==0)throw new Error("No quickfix action available");await this.applyCodeAction(e[0]),this.nvim.command('silent! call repeat#set("\\(coc-fix-current)", -1)',!0)}async applyCodeAction(e){if(e.disabled)throw new Error(`Action "${e.title}" is disabled: ${e.disabled.reason}`);if(!e.providerId)throw new Error("providerId not found with codeAction");let t=await this.handler.withRequestToken("resolve codeAction",o=>j.resolveCodeAction(e,o)),{edit:i,command:r}=t;i&&await v.applyEdit(i),r&&await he.execute(r)}};we();re();ne();var Vie=x(Oi()),aL=x(q());Ei();Te();Ae();ne();var nat=W()("codelens-buffer"),SC=class{constructor(e,t,i){this.nvim=e;this.document=t;this.config=i;this.resolveCodeLens=(0,Vie.default)(()=>{this._resolveCodeLenses()},global.__TEST__?20:200),this.fetchCodeLenses()}get bufnr(){return this.document.bufnr}onChange(e){e.contentChanges.length===0&&this.codeLenses!=null?this._resolveCodeLenses():(this.cancel(),this.fetchCodeLenses())}get currentCodeLens(){var e;return(e=this.codeLenses)==null?void 0:e.codeLenses}get enabled(){var e;return(e=this.document)!=null&&e.attached?this.config.enabled&&j.hasProvider("codeLens",this.document.textDocument):!1}async forceFetch(){!this.enabled||(await this.document.synchronize(),this.cancel(),await this.fetchCodeLenses())}async fetchCodeLenses(){var t;if(!this.enabled)return;if(this.cancel(),!(((t=this.codeLenses)==null?void 0:t.version)==this.document.version)){let{textDocument:i}=this.document,r=i.version,s=(this.tokenSource=new aL.CancellationTokenSource).token,a=await j.getCodeLens(i,s);if(a=Array.isArray(a)?a.filter(l=>l!=null):[],this.tokenSource=void 0,s.isCancellationRequested||a.length==0)return;this.codeLenses={version:r,codeLenses:a}}await this._resolveCodeLenses()}async _resolveCodeLenses(){if(!this.enabled||!this.codeLenses||this.isChanged)return;let{codeLenses:e}=this.codeLenses,[t,i,r]=await this.nvim.eval("[bufnr('%'),line('w0'),line('w$')]");if(!(this.isChanged||t!=this.bufnr)){if(this.resolveTokenSource&&this.resolveTokenSource.cancel(),e=e.filter(o=>{let s=o.range.start.line+1;return s>=i&&s<=r}),e.length){let s=(this.resolveTokenSource=new aL.CancellationTokenSource).token;if(await Promise.all(e.map(a=>j.resolveCodeLens(a,s))),this.resolveTokenSource=void 0,s.isCancellationRequested||this.isChanged)return}this.nvim.pauseNotification(),this.clear(i-1,r),this.setVirtualText(e),this.nvim.resumeNotification(!1,!0)}}get isChanged(){if(!this.codeLenses||this.document.dirty)return!0;let{version:e}=this.codeLenses;return this.document.textDocument.version!==e}setVirtualText(e){let{document:t}=this;if(!t||!e.length)return;let i=new Map,{position:r}=this.config;for(let o of e){let{range:s,command:a}=o;if(!a)continue;let{line:l}=s.start;i.has(l)?i.get(l).push(o):i.set(l,[o])}for(let o of i.keys()){let a=i.get(o).map(h=>h.command);a=a.filter(h=>h&&h.title);let l=[],u=a.length;for(let h=0;h0&&l.unshift([g,"Normal"]),h.setExtMark(c,o,0,{virt_lines:[l],virt_lines_above:!0})}else h.setExtMark(c,o,0,{hl_mode:"combine",virt_text:l,virt_text_pos:r})}else this.nvim.call("nvim_buf_set_virtual_text",[this.bufnr,c,o,l,{}],!0)}}clear(e=0,t=-1){let{srcId:i}=this.config;if(!i)return;this.nvim.createBuffer(this.bufnr).clearNamespace(i,e,t)}async doAction(e){var i;let t=iEe(e,(i=this.codeLenses)==null?void 0:i.codeLenses);if(t.length==1)await he.execute(t[0]);else if(t.length>1){let r=await k.showMenuPicker(t.map(o=>o.title));r!=-1&&await he.execute(t[r])}}cancel(){this.resolveCodeLens.clear(),this.resolveTokenSource&&(this.resolveTokenSource.cancel(),this.resolveTokenSource.dispose(),this.resolveTokenSource=null),this.tokenSource&&(this.tokenSource.cancel(),this.tokenSource.dispose(),this.tokenSource=null)}dispose(){this.cancel(),this.codeLenses=void 0}};function iEe(n,e){if(!(e!=null&&e.length))return[];let t=[];for(let i of e){let{range:r,command:o}=i;!o||n==r.start.line&&t.push(o)}return t}var cat=W()("codelens"),TC=class{constructor(e){this.nvim=e;this.disposables=[];this.setConfiguration(),this.nvim.createNamespace("coc-codelens").then(t=>{this.config.srcId=t}).logError(),v.onDidChangeConfiguration(this.setConfiguration,this,this.disposables),this.buffers=v.registerBufferSync(t=>{if(t.buftype=="")return new SC(e,t,this.config)}),this.disposables.push(this.buffers),this.listen()}listen(){P.on("CursorMoved",e=>{let t=this.buffers.getItem(e);t&&t.resolveCodeLens()},null,this.disposables),P.on("CursorHold",async e=>{let t=this.buffers.getItem(e);t&&await t.forceFetch()},this,this.disposables)}async checkProvider(){for(let e of this.buffers.items)await e.forceFetch()}setConfiguration(e){if(e&&!e.affectsConfiguration("codeLens"))return;let t=v.getConfiguration("codeLens"),i=this.nvim.hasFunction("nvim_buf_set_virtual_text")&&t.get("enable",!1);this.config=Object.assign(this.config||{},{enabled:i,position:t.get("position","top"),separator:t.get("separator","\u2023"),subseparator:t.get("subseparator"," ")})}async doAction(){let[e,t]=await this.nvim.eval('[bufnr("%"),line(".")-1]'),i=this.buffers.getItem(e);await(i==null?void 0:i.doAction(t))}dispose(){$(this.disposables)}};var rne=x(q());Ei();Oo();Te();re();function lL(n){return n.length==1?`0${n}`:n}function Ff(n){let e=nEe(n);return`${lL(e.red.toString(16))}${lL(e.green.toString(16))}${lL(e.blue.toString(16))}`}function nEe(n){let{red:e,green:t,blue:i}=n;return{red:Math.round(e*255),green:Math.round(t*255),blue:Math.round(i*255)}}function ene(n){let e=[n.red,n.green,n.blue],t=[];for(let r=0;r{this.doHighlight().logError()},global.hasOwnProperty("__TEST__")?10:300),this.highlight()}get enabled(){let{filetypes:e}=this.config,t=v.getDocument(this.bufnr);return t?e.includes("*")?!0:j.hasProvider("documentColor",t.textDocument)?e.includes(t.filetype):!1:!1}onChange(){this.cancel(),this.highlight()}get buffer(){return this.nvim.createBuffer(this.bufnr)}get colors(){return this._colors}hasColor(){return this._colors.length>0}async doHighlight(){if(!this.enabled)return;let{nvim:e}=this,t=v.getDocument(this.bufnr);this.tokenSource=new nne.CancellationTokenSource;let{token:i}=this.tokenSource,r;if(r=await j.provideDocumentColors(t.textDocument,i),i.isCancellationRequested)return;r=r||[],r.sort((a,l)=>Fe(a.range.start,l.range.start)),this._colors=r;let o=[];r.forEach(a=>{let l=rEe(a.color);t.addHighlights(o,l,a.range,{combine:!1})});let s=await k.diffHighlights(this.bufnr,tne,o);i.isCancellationRequested||!s||(e.pauseNotification(),this.defineColors(r),e.resumeNotification(!1,!0),await k.applyDiffHighlights(this.bufnr,tne,this.config.highlightPriority,s,!0))}defineColors(e){for(let t of e){let i=Ff(t.color);this.usedColors.has(i)||(this.nvim.command(`hi BG${i} guibg=#${i} guifg=#${ene(t.color)?"ffffff":"000000"}`,!0),this.usedColors.add(i))}}hasColorAtPosition(e){return this.colors.some(t=>mt(e,t.range)==0)}clearHighlight(){this.highlight.clear(),this._colors=[],this.buffer.clearNamespace("color")}cancel(){this.tokenSource&&(this.tokenSource.cancel(),this.tokenSource.dispose(),this.tokenSource=null)}dispose(){this._colors=[],this.highlight.clear(),this.cancel()}};function rEe(n){return`BG${Ff(n)}`}var Mat=W()("colors-index"),EC=class{constructor(e,t){this.nvim=e;this.handler=t;this.disposables=[];this.setConfiguration();let i=new Set;this.highlighters=v.registerBufferSync(r=>new kC(this.nvim,r.bufnr,this.config,i)),Pe.onDidActiveExtension(()=>{this.highlightAll()},null,this.disposables),v.onDidChangeConfiguration(this.setConfiguration,this,this.disposables),this.disposables.push(he.registerCommand("editor.action.pickColor",()=>this.pickColor())),he.titles.set("editor.action.pickColor","pick color from system color picker when possible."),this.disposables.push(he.registerCommand("editor.action.colorPresentation",()=>this.pickPresentation())),he.titles.set("editor.action.colorPresentation","change color presentation.")}setConfiguration(e){if(!e||e.affectsConfiguration("colors")){let t=v.getConfiguration("colors");this.config=Object.assign(this.config||{},{filetypes:t.get("filetypes",[]),highlightPriority:t.get("highlightPriority",1e3)})}}async pickPresentation(){let{doc:e}=await this.handler.getCurrentState();this.handler.checkProvier("documentColor",e.textDocument);let t=await this.getColorInformation(e.bufnr);if(!t)return k.showMessage("Color not found at current position","warning");let i=new rne.CancellationTokenSource,r=await j.provideColorPresentations(t,e.textDocument,i.token);if(!(r!=null&&r.length))return;let o=await k.showMenuPicker(r.map(c=>c.label),"choose color:");if(o==-1)return;let s=r[o],{textEdit:a,additionalTextEdits:l,label:u}=s;a||(a={range:t.range,newText:u}),await e.applyEdits([a]),l&&await e.applyEdits(l)}async pickColor(){let{doc:e}=await this.handler.getCurrentState();this.handler.checkProvier("documentColor",e.textDocument);let t=await this.getColorInformation(e.bufnr);if(!t)return k.showMessage("Color not found at current position","warning");let{color:i}=t,r=[(i.red*255).toFixed(0),(i.green*255).toFixed(0),(i.blue*255).toFixed(0)],o=await this.nvim.call("coc#color#pick_color",[r]);if(!o)return;let s=Ff({red:o[0]/65535,green:o[1]/65535,blue:o[2]/65535,alpha:1});await e.applyEdits([{range:t.range,newText:`#${s}`}])}isEnabled(e){let t=this.highlighters.getItem(e);return t!=null&&t.enabled===!0}clearHighlight(e){let t=this.highlighters.getItem(e);t&&t.clearHighlight()}hasColor(e){let t=this.highlighters.getItem(e);return t?t.hasColor():!1}hasColorAtPosition(e,t){let i=this.highlighters.getItem(e);return i?i.hasColorAtPosition(t):!1}highlightAll(){for(let e of this.highlighters.items)e.highlight()}async doHighlight(e){let t=this.highlighters.getItem(e);t&&await t.doHighlight()}async getColorInformation(e){let t=this.highlighters.getItem(e);if(!t)return null;let i=await k.getCursorPosition();for(let r of t.colors){let{range:o}=r,{start:s,end:a}=o;if(i.line==s.line&&i.character>=s.character&&i.character<=a.character)return r}return null}dispose(){this.highlighters.dispose(),$(this.disposables)}};Ei();OD();var Hat=W()("handler-commands"),PC=class{constructor(e,t){this.nvim=e;this.env=t;for(let i of t.vimCommands)this.addVimCommand(i)}addVimCommand(e){let t=`vim.${e.id}`;he.registerCommand(t,()=>{this.nvim.command(e.cmd,!0),this.nvim.redrawVim()}),e.title&&he.titles.set(t,e.title)}getCommandList(){return he.commandList.map(e=>e.id)}async repeat(){await he.repeatCommand()}async runCommand(e,...t){if(e)return await he.fireCommand(e,...t);await Pi.start(["commands"])}getCommands(){let e=he.commandList,t=[],{titles:i}=he;for(let r of e)t.push({id:r.id,title:i.get(r.id)||""});return t}};Te();var _C=class{constructor(e,t){this.nvim=e;this.handler=t}async fold(e){let{doc:t,winid:i}=await this.handler.getCurrentState();this.handler.checkProvier("foldingRange",t.textDocument),await t.synchronize();let r=this.nvim.createWindow(i),o=await this.nvim.eval("&foldlevel"),s=await this.handler.withRequestToken("foldingrange",a=>j.provideFoldingRanges(t.textDocument,{},a),!0);if(!s||!s.length)return!1;e&&(s=s.filter(a=>a.kind==e)),s.sort((a,l)=>l.startLine-a.startLine),this.nvim.pauseNotification(),r.setOption("foldmethod","manual",!0),this.nvim.command("normal! zE",!0);for(let a of s){let{startLine:l,endLine:u}=a,c=`${l+1}, ${u+1}fold`;this.nvim.command(c,!0)}return r.setOption("foldenable",!0,!0),r.setOption("foldlevel",o,!0),await this.nvim.resumeNotification(!0),!0}};var Is=x(q());Ei();we();Te();yu();Ne();Ae();ne();var uL=W()("handler-format"),one=new Map([["<",">"],[">","<"],["{","}"],["[","]"],["(",")"]]),RC=class{constructor(e,t){this.nvim=e;this.handler=t;this.loadPreferences(),t.addDisposable(v.onDidChangeConfiguration(this.loadPreferences,this)),t.addDisposable(v.onWillSaveTextDocument(o=>{let{languageId:s}=o.document,a=this.preferences.formatOnSaveFiletypes;if(a.includes(s)||a.includes("*")){let l=async()=>{if(!j.hasFormatProvider(o.document)){uL.warn(`Format provider not found for ${o.document.uri}`);return}let u=await v.getFormatOptions(o.document.uri),c=new Is.CancellationTokenSource,h,d=new Promise(f=>{h=setTimeout(()=>{uL.warn(`Format on save ${o.document.uri} timeout after 0.5s`),c.cancel(),f(void 0)},500)}),g=j.provideDocumentFormattingEdits(o.document,u,c.token),p=await Promise.race([d,g]);return clearTimeout(h),Array.isArray(p)?p:void 0};o.waitUntil(l())}}));let i,r;t.addDisposable(P.on("Enter",async o=>{i=Date.now(),r=o})),t.addDisposable(P.on("CursorMovedI",async o=>{o==r&&Date.now()-i<100&&(r=void 0,await this.handleEnter(o))})),t.addDisposable(P.on("TextInsert",async(o,s,a)=>{P.pumvisible||await this.tryFormatOnType(a,o)})),t.addDisposable(he.registerCommand("editor.action.formatDocument",async o=>{let s=o?v.getDocument(o):(await this.handler.getCurrentState()).doc;await this.documentFormat(s)})),he.titles.set("editor.action.formatDocument","Format Document")}loadPreferences(e){if(!e||e.affectsConfiguration("coc.preferences")){let t=v.getConfiguration("coc.preferences");this.preferences={formatOnType:t.get("formatOnType",!1),formatOnSaveFiletypes:t.get("formatOnSaveFiletypes",[]),formatOnTypeFiletypes:t.get("formatOnTypeFiletypes",[]),bracketEnterImprove:t.get("bracketEnterImprove",!0)}}}async tryFormatOnType(e,t,i=!1){if(!e||Sc(e)||!this.preferences.formatOnType||ei.getSession(t)!=null)return;let r=v.getDocument(t);if(!r||!r.attached||r.isCommandLine)return;let o=this.preferences.formatOnTypeFiletypes;if(o.length&&!o.includes(r.filetype)&&!o.includes("*"))return;if(!j.hasProvider("formatOnType",r.textDocument)){uL.warn(`Format on type provider not found for buffer: ${r.uri}`);return}if(!j.canFormatOnType(e,r.textDocument))return;let s,a=await this.handler.withRequestToken("Format on type",async l=>{s=await k.getCursorPosition();let u=r.getline(s.line-1);if(!(i&&/^\s*$/.test(u)))return await r.synchronize(),await j.provideDocumentOnTypeEdits(e,r.textDocument,s,l)});!a||!a.length||await r.applyEdits(a,!1,!0)}async formatCurrentBuffer(){let{doc:e}=await this.handler.getCurrentState();return await this.documentFormat(e)}async formatCurrentRange(e){let{doc:t}=await this.handler.getCurrentState();return await this.documentRangeFormat(t,e)}async documentFormat(e){if(await e.synchronize(),!j.hasFormatProvider(e.textDocument))throw new Error(`Format provider not found for buffer: ${e.bufnr}`);let t=await v.getFormatOptions(e.uri),i=await this.handler.withRequestToken("format",r=>j.provideDocumentFormattingEdits(e.textDocument,t,r));return i&&i.length>0?(await e.applyEdits(i,!1,!0),!0):!1}async handleEnter(e){let{nvim:t}=this,{bracketEnterImprove:i}=this.preferences;if(await this.tryFormatOnType(` +`,e),i){let r=await t.call("line",".")-1,o=v.getDocument(e);if(!o)return;await o.patchChange();let s=o.getline(r-1),a=o.getline(r),l=s[s.length-1];if(l&&one.has(l)){let u=a.trim()[0];if(u&&one.get(l)==u){let c=[],h=await v.getFormatOptions(o.uri),d=h.insertSpaces?" ".repeat(h.tabSize):" ",g=a.match(/^\s*/)[0],p=Is.Position.create(r-1,s.length);if(o.filetype=="vim"){let f=` +`+g+d;c.push({range:Is.Range.create(r,g.length,r,g.length),newText:" \\ "}),f=f+"\\ ",c.push({range:Is.Range.create(p,p),newText:f}),await o.applyEdits(c),await k.moveTo(Is.Position.create(r,f.length-1))}else await t.eval(`feedkeys("\\O", 'in')`)}}}}async documentRangeFormat(e,t){this.handler.checkProvier("formatRange",e.textDocument),await e.synchronize();let i;if(t){if(i=await k.getSelectedRange(t),!i)return-1}else{let[s,a,l]=await this.nvim.eval("[v:lnum,v:count,mode()]");if(a==0||l=="i"||l=="R")return-1;i=Is.Range.create(s-1,0,s-1+a,0)}let r=await v.getFormatOptions(e.uri),o=await this.handler.withRequestToken("Format range",s=>j.provideDocumentRangeFormattingEdits(e.textDocument,i,r,s));return o&&o.length>0?(await e.applyEdits(o,!1,!0),0):-1}};var Su=x(q());we();Te();re();ne();var slt=W()("documentHighlight"),LC=class{constructor(e,t){this.nvim=e;this.handler=t;this.disposables=[];this.highlights=new Map;P.on(["CursorMoved","CursorMovedI"],()=>{this.cancel(),this.clearHighlights()},null,this.disposables),this.getConfiguration(),v.onDidChangeConfiguration(this.getConfiguration,this,this.disposables)}getConfiguration(e){let t=v.getConfiguration("documentHighlight");(!e||e.affectsConfiguration("documentHighlight"))&&(this.config=Object.assign(this.config||{},{priority:t.get("priority",-1),timeout:t.get("timeout",300)}))}isEnabled(e,t){let i=v.getDocument(e);return!(!i||!i.attached||t||!j.hasProvider("documentHighlight",i.textDocument))}clearHighlights(){if(this.highlights.size!=0){for(let e of this.highlights.keys())this.nvim.createWindow(e).clearMatchGroup("^CocHighlight");this.highlights.clear()}}async highlight(){let{nvim:e}=this;this.cancel();let[t,i,r,o]=await e.eval(`[bufnr("%"),win_getid(),coc#cursor#position(),get(b:,'coc_cursors_activated',0)]`);if(!this.isEnabled(t,o))return;let s=v.getDocument(t),a=await this.getHighlights(s,Su.Position.create(r[0],r[1]));if(!a)return;let l={};for(let c of a){if(!c.range)continue;let h=c.kind==Su.DocumentHighlightKind.Text?"CocHighlightText":c.kind==Su.DocumentHighlightKind.Read?"CocHighlightRead":"CocHighlightWrite";l[h]=l[h]||[],l[h].push(c.range)}let u=e.createWindow(i);e.pauseNotification(),u.clearMatchGroup("^CocHighlight");for(let c of Object.keys(l))u.highlightRanges(c,l[c],this.config.priority,!0);e.resumeNotification(!0,!0),this.highlights.set(i,a)}async getSymbolsRanges(){let{doc:e,position:t}=await this.handler.getCurrentState();this.handler.checkProvier("documentHighlight",e.textDocument);let i=await this.getHighlights(e,t);return i?i.map(r=>r.range):null}hasHighlights(e){return this.highlights.get(e)!=null}async getHighlights(e,t){let r=e.getline(t.line)[t.character];if(!r||!e.isWord(r))return null;await e.synchronize(),this.cancel();let o=this.tokenSource=new Su.CancellationTokenSource,s=this.timer=setTimeout(()=>{o.token.isCancellationRequested||o.cancel()},this.config.timeout),a=await j.getDocumentHighLight(e.textDocument,t,o.token);return clearTimeout(s),o.token.isCancellationRequested?null:a}cancel(){this.tokenSource&&(this.tokenSource.cancel(),this.tokenSource.dispose(),this.tokenSource=null)}dispose(){this.timer&&clearTimeout(this.timer),this.cancel(),this.highlights.clear(),$(this.disposables)}};var sne=x(require("fs")),Sr=x(q());Ee();Te();cs();re();et();ne();var flt=W()("handler-hover"),FC=class{constructor(e,t){this.nvim=e;this.handler=t;this.disposables=[];this.documentLines=[];this.hasProvider=!1;this.excludeImages=!0;this.loadConfiguration(),v.onDidChangeConfiguration(this.loadConfiguration,this,this.disposables),this.hoverFactory=new fi(e),this.disposables.push(this.hoverFactory)}registerProvider(){if(this.hasProvider)return;this.hasProvider=!0;let{nvim:e}=this,t={onDidChange:null,provideTextDocumentContent:async()=>(e.pauseNotification(),e.command("setlocal conceallevel=2 nospell nofoldenable wrap",!0),e.command("setlocal bufhidden=wipe nobuflisted",!0),e.command("setfiletype markdown",!0),e.command(`if winnr('j') != winnr('k') | exe "normal! z${Math.min(this.documentLines.length,this.config.previewMaxHeight)}\\ | endif"`,!0),await e.resumeNotification(),this.documentLines.join(` +`))};this.disposables.push(v.registerTextDocumentContentProvider("coc",t))}loadConfiguration(e){if(!e||e.affectsConfiguration("hover")){let t=v.getConfiguration("hover"),i=t.get("target","float");this.config={floatConfig:t.get("floatConfig",{}),autoHide:t.get("autoHide",!0),target:i=="float"&&!v.floatSupported?"preview":i,previewMaxHeight:t.get("previewMaxHeight",12)},this.config.target=="preview"&&this.registerProvider();let r=v.getConfiguration("coc.preferences");this.excludeImages=r.get("excludeImageLinksInMarkdownDocument",!0)}}async onHover(e){let{doc:t,position:i,winid:r}=await this.handler.getCurrentState();e=="preview"&&this.registerProvider(),this.handler.checkProvier("hover",t.textDocument),await t.synchronize();let o=await this.handler.withRequestToken("hover",a=>j.getHover(t.textDocument,i,a),!0);if(o==null||!o.length)return!1;let s=o.find(a=>Sr.Range.is(a.range));if(s!=null&&s.range){let a=this.nvim.createWindow(r);a.highlightRanges("CocHoverRange",[s.range],99,!0),this.timer=setTimeout(()=>{a.clearMatchGroup("CocHoverRange"),this.nvim.redrawVim()},500)}return await this.previewHover(o,e),!0}async definitionHover(e){let{doc:t,position:i,winid:r}=await this.handler.getCurrentState();e=="preview"&&this.registerProvider(),this.handler.checkProvier("hover",t.textDocument),await t.synchronize();let o=await this.handler.withRequestToken("hover",l=>j.getHover(t.textDocument,i,l),!0);if(!(o!=null&&o.length))return!1;let s=await this.handler.withRequestToken("definitionHover",l=>j.getDefinitionLinks(t.textDocument,i,l),!1);if(s!=null&&s.length)for(let l of s){if(!l.targetRange)continue;let{start:u,end:c}=l.targetRange,h=c.line-u.line>=100?u.line+100:c.character==0?c.line-1:c.line,d=await sEe(l.targetUri,u.line,h);if(d.length){let g=d[0].match(/^\s*/)[0];g&&(d=d.map(p=>p.startsWith(g)?p.substring(g.length):p)),o.push({content:d.join(` +`),filetype:t.filetype})}}let a=o.find(l=>Sr.Hover.is(l)&&Sr.Range.is(l.range));if(a!=null&&a.range){let l=this.nvim.createWindow(r);l.highlightRanges("CocHoverRange",[a.range],99,!0),this.timer=setTimeout(()=>{l.clearMatchGroup("CocHoverRange"),this.nvim.redrawVim()},500)}return await this.previewHover(o,e),!0}async previewHover(e,t){let i=[];t=t||this.config.target;let r=t==="preview";for(let s of e){if(oEe(s)){i.push(s);continue}let{contents:a}=s;if(Array.isArray(a))for(let l of a)typeof l=="string"?If(i,l,"markdown",r):If(i,l.value,l.language,r);else Sr.MarkedString.is(a)?typeof a=="string"?If(i,a,"markdown",r):If(i,a.value,a.language,r):Sr.MarkupContent.is(a)&&If(i,a.value,kg(a)?"markdown":"txt",r)}if(t=="float"){let s=this.hoverFactory.applyFloatConfig({modes:["n"],autoHide:this.config.autoHide,excludeImages:this.excludeImages,maxWidth:80},this.config.floatConfig);await this.hoverFactory.show(i,s);return}let o=i.reduce((s,a)=>{let l=a.content.split(/\r?\n/);return s.length>0&&s.push(""),s.push(...l),s},[]);if(t=="echo"){let s=o.join(` +`).trim();await this.nvim.call("coc#ui#echo_hover",[s])}else this.documentLines=o,await this.nvim.command("noswapfile pedit coc://document")}async getHover(){let e=[],{doc:t,position:i}=await this.handler.getCurrentState();this.handler.checkProvier("hover",t.textDocument),await t.synchronize();let r=new Sr.CancellationTokenSource,o=await j.getHover(t.textDocument,i,r.token);if(Array.isArray(o))for(let s of o){let{contents:a}=s;Array.isArray(a)?a.forEach(l=>{e.push(typeof l=="string"?l:l.value)}):Sr.MarkupContent.is(a)?e.push(a.value):e.push(typeof a=="string"?a:a.value)}return e=e.filter(s=>s!=null&&s.length>0),e}dispose(){this.timer&&clearTimeout(this.timer),$(this.disposables)}};function If(n,e,t,i=!1){let r=e.trim();!r.length||(i&&t!=="markdown"&&(r="``` "+t+` +`+r+"\n```"),n.push({content:r,filetype:t}))}function oEe(n){return n?typeof n.filetype=="string"&&typeof n.content=="string":!1}async function sEe(n,e,t){let i=v.getDocument(n);if(i)return i.getLines(e,t+1);let r=I.parse(n).fsPath;return sne.default.existsSync(r)?await fa(r,e,t):[]}var Tu=x(q());we();Te();cs();re();_t();Ae();ne();var Tlt=W()("handler-links"),aEe=/CocAction(Async)?\(["']openLink["']\)/,IC=class{constructor(e,t){this.nvim=e;this.handler=t;this.disposables=[];this.setConfiguration(),v.onDidChangeConfiguration(this.setConfiguration,this,this.disposables),this.floatFactory=new fi(e),P.on("CursorHold",async()=>{!this._tooltip||!e.hasFunction("nvim_get_keymap")||await this.showTooltip()},null,this.disposables),P.on(["CursorMoved","InsertEnter"],()=>{this.cancel()},null,this.disposables)}setConfiguration(e){if(!e||e.affectsConfiguration("links")){let t=v.getConfiguration("links");this._tooltip=t.get("tooltip",!1)}}async showTooltip(){let{nvim:e,floatFactory:t}=this,r=(await e.getKeymap("n")).find(u=>aEe.test(u.rhs)),o=r?r.lhs:void 0,s=await this.getCurrentLink();if(!s||!s.target)return;let a="";if(s.tooltip&&(a=s.tooltip+" "),o&&(a+=`Press "${o}" to open link`),!a.length)return;let l={content:a,filetype:"txt"};await t.show([l],{autoHide:!0})}async getLinks(){try{let{doc:e}=await this.handler.getCurrentState();if(!j.hasProvider("documentLink",e.textDocument))return[];let t=this.tokenSource=new Tu.CancellationTokenSource,i=await j.getDocumentLinks(e.textDocument,t.token);return t.token.isCancellationRequested?[]:i}catch{return[]}}async openLink(e){if(!e.target)throw new Error("Failed to resolve link target");await v.openResource(e.target)}async getCurrentLink(){let e=await this.getLinks(),t=await k.getCursorPosition();if(e&&e.length){for(let a of e)if(mt(t,a.range)==0){if(!a.target){let l=this.tokenSource=this.tokenSource||new Tu.CancellationTokenSource;if(a=await j.resolveDocumentLink(a,this.tokenSource.token),!a.target||l.token.isCancellationRequested)continue}return a}}let i=await this.nvim.call("getline",["."]),r=/\w+?:\/\/[^)\]'" ]+/g,o,s;for(;(o=r.exec(i))!==null;){let a=o.index;if(a<=t.character&&a+o[0].length>=t.character){s=Tu.DocumentLink.create(Tu.Range.create(t.line,a,t.line,a+o[0].length),o[0]);break}}return s}async openCurrentLink(){let e=await this.getCurrentLink();return e?(await this.openLink(e),!0):!1}cancel(){this.tokenSource&&(this.tokenSource.cancel(),this.tokenSource=null)}dispose(){var e;(e=this.floatFactory)==null||e.dispose(),$(this.disposables)}};var oo=x(q());Ee();Te();pf();ne();var jlt=W()("handler-hover"),jC=class{constructor(e,t){this.nvim=e;this.handler=t}async request(e,t){let{doc:i,position:r}=await this.handler.getCurrentState();return this.handler.checkProvier(e,i.textDocument),await i.synchronize(),await this.handler.withRequestToken(e,o=>t(i.textDocument,r,o),!0)}async definitions(){let{doc:e,position:t}=await this.handler.getCurrentState();this.handler.checkProvier("definition",e.textDocument),await e.synchronize();let i=new oo.CancellationTokenSource;return j.getDefinition(e.textDocument,t,i.token)}async declarations(){let{doc:e,position:t}=await this.handler.getCurrentState();this.handler.checkProvier("declaration",e.textDocument),await e.synchronize();let i=new oo.CancellationTokenSource;return j.getDeclaration(e.textDocument,t,i.token)}async typeDefinitions(){let{doc:e,position:t}=await this.handler.getCurrentState();this.handler.checkProvier("typeDefinition",e.textDocument),await e.synchronize();let i=new oo.CancellationTokenSource;return j.getTypeDefinition(e.textDocument,t,i.token)}async implementations(){let{doc:e,position:t}=await this.handler.getCurrentState();this.handler.checkProvier("implementation",e.textDocument),await e.synchronize();let i=new oo.CancellationTokenSource;return j.getImplementation(e.textDocument,t,i.token)}async references(e){let{doc:t,position:i}=await this.handler.getCurrentState();this.handler.checkProvier("reference",t.textDocument),await t.synchronize();let r=new oo.CancellationTokenSource;return j.getReferences(t.textDocument,{includeDeclaration:!e},i,r.token)}async gotoDefinition(e){let t=await this.request("definition",(i,r,o)=>j.getDefinition(i,r,o));return await this.handleLocations(t,e),t?t.length>0:!1}async gotoDeclaration(e){let t=await this.request("declaration",(i,r,o)=>j.getDeclaration(i,r,o));return await this.handleLocations(t,e),t?Array.isArray(t)?t.length>0:!0:!1}async gotoTypeDefinition(e){let t=await this.request("typeDefinition",(i,r,o)=>j.getTypeDefinition(i,r,o));return await this.handleLocations(t,e),t?t.length>0:!1}async gotoImplementation(e){let t=await this.request("implementation",(i,r,o)=>j.getImplementation(i,r,o));return await this.handleLocations(t,e),t?t.length>0:!1}async gotoReferences(e,t=!0){let i=await this.request("reference",(r,o,s)=>j.getReferences(r,{includeDeclaration:t},o,s));return await this.handleLocations(i,e),i?i.length>0:!1}async getTagList(){let{doc:e,position:t}=await this.handler.getCurrentState(),i=await this.nvim.call("expand","");if(!i||!j.hasProvider("definition",e.textDocument))return null;let r=new oo.CancellationTokenSource,o=await j.getDefinition(e.textDocument,t,r.token);return!o||!o.length?null:o.map(s=>{let a=I.parse(s.uri),l=a.scheme=="file"?a.fsPath:a.toString();return{name:i,cmd:`keepjumps ${s.range.start.line+1} | normal ${s.range.start.character+1}|`,filename:l}})}async findLocations(e,t,i,r){let{doc:o,position:s}=await this.handler.getCurrentState();i=i||{},Object.assign(i,{textDocument:{uri:o.uri},position:s});let a=await Ui.sendRequest(e,t,i);a=a||[];let l=[];if(Array.isArray(a))l=a;else if(a.hasOwnProperty("location")&&a.hasOwnProperty("children")){let u=c=>{if(l.push(c.location),c.children&&c.children.length)for(let h of c.children)u(h)};u(a)}return await this.handleLocations(l,r),l?l.length>0:!1}async handleLocations(e,t){if(!e)return;let i=Array.isArray(e)?e:[e];i=i.map(o=>oo.LocationLink.is(o)?oo.Location.create(o.targetUri,o.targetRange):o);let r=i.length;if(r!=0)if(r==1&&t!==!1){let{uri:o,range:s}=i[0];await v.jumpTo(o,s.start,t)}else await v.showLocations(i)}dispose(){}};var ed=x(q());Ee();we();Te();re();et();Ur();ne();var Vh=x(Vg()),jf=x(require("path")),nt=x(q());Hc();Ee();ba();re();et();bs();Do();oi();_t();Ne();Ur();Ae();ne();oi();var AC=class{constructor(){this.stack=[]}add(e){let t=new Map;for(let i of e)t.set(i.lnum,i);this.stack.push(t)}checkInsert(e){if(!this.stack.length)return;let t=this.stack[this.stack.length-1],i=Array.from(t.keys()).sort((r,o)=>r-o);if(!!Xe(i,e))return this.stack.pop(),Array.from(t.values())}};var lEe=W()("handler-refactorBuffer"),so="\u3000",MC=class{constructor(e,t,i,r,o){this.bufnr=e;this.srcId=t;this.nvim=i;this.config=r;this.opts=o;this._disposed=!1;this._fileItems=[];this.mutex=new si;this.disposables=[];this.matchIds=new Set;this.changing=!1;this.changes=new AC,this.disposables.push(v.registerLocalKeymap("n","",this.splitOpen.bind(this),!0)),r.showMenu&&this.disposables.push(v.registerLocalKeymap("n",r.showMenu,this.showMenu.bind(this),!0)),v.onDidChangeTextDocument(this.onDocumentChange,this,this.disposables)}async showMenu(){let e=await k.showMenuPicker(["Tab open","Remove block"]);if(e==-1)return;let t=await this.searchCurrentRange();if(!!t){if(e==0){let r=(await this.nvim.eval("strpart(getline('.'), 0 ,col('.') - 1)")).length,o=this.getAbsolutePath(t.filepath);this.nvim.call("coc#util#jump",["tabe",o,[t.line,r]],!0)}if(e==1){let i=this.getDeleteRange(t);await this.document.applyEdits([nt.TextEdit.del(i)])}}}get fileItems(){return this._fileItems}getFileItem(e){let t=I.parse(e).fsPath;return this._fileItems.find(i=>li(i.filepath,t))}getFileRange(e){for(let t of this._fileItems)for(let i of t.ranges)if(i.lnum==e)return Object.assign(dn(i,["highlights"]),{filepath:t.filepath});throw new Error(`File range not found at lnum: ${e}`)}onChange(e){if(this.changing)return;if(e.contentChanges.length===0){this.highlightLineNr(),this.nvim.redrawVim();return}let{nvim:t}=this;e=cEe(e);let i=e.contentChanges[0],{original:r}=e;i.range.end.line>2&&t.call("setbufvar",[e.bufnr,"&modified",1],!0);let{range:o,text:s}=i;if(ya(nt.TextEdit.replace(o,s))==0)return;let l=[nt.TextEdit.replace(o,s)],u=[];if(!jt(o)&&!s.includes("\u3000")){let c=o.start.line,h=[],d=r.split(/\r?\n/);for(let g=0;g1&&p.includes("\u3000")&&h.push(c+g+1)}if(h.length){let g=h.map(p=>this.getFileRange(p));for(let p of this._fileItems)p.ranges=p.ranges.filter(f=>!h.includes(f.lnum));this.changes.add(g)}}else if(jt(o)&&s.includes("\u3000")){let c=s.split(/\r?\n/),h=[],d=o.start.line;for(let g=0;g1&&p.includes("\u3000")&&h.push(d+g+1)}if(h.length){let g=this.changes.checkInsert(h);g&&(u=g)}}else s.includes("\u3000")&&(l=this.diffChanges(r,s),l.forEach(c=>{c.range=GY(c.range,o.start)}));this.adjustLnums(l),t.pauseNotification(),this.highlightLineNr(),t.resumeNotification(!0,!0),u.length&&u.forEach(c=>{this._fileItems.find(d=>d.filepath==c.filepath).ranges.push(c)})}diffChanges(e,t){let i=[],r=(0,Vh.default)(e,t),o=0,s=Wn.create("file:///1","",0,e);for(let a=0;a=c.start+c.lines.length)continue;if(r.end.line!l.includes(c))),this._fileItems=this._fileItems.filter(u=>u.ranges&&u.ranges.length>0),a.length&&(this.adjustLnums(a),this.changing=!0,await this.document.applyEdits(a),this.changing=!1),this.nvim.pauseNotification(),this.highlightLineNr(),this.buffer.setOption("modified",!1,!0),await this.nvim.resumeNotification(!0)}adjustLnums(e){for(let t of this._fileItems)for(let i of t.ranges){let r=i.lnum-1;i.lnum+=Wk(nt.Position.create(r,0),e)}}async getFileChanges(){let e=[],t=await this.buffer.lines;t.push(so);let i=[],r,o;for(let s=0;s1){let l=a.match(/^\u3000(.*)/);l&&(r=this.getAbsolutePath(l[1].replace(/\s+$/,"")),o=s+1,i=[])}}else i.push(a)}return e}async splitOpen(){let{nvim:e}=this,i=await e.createWindow(this.opts.fromWinid).valid,o=(await e.eval("strpart(getline('.'), 0 ,col('.') - 1)")).length,s=await this.searchCurrentRange();if(s){let a=this.getAbsolutePath(s.filepath);e.pauseNotification(),i?(e.call("win_gotoid",[this.opts.fromWinid],!0),this.nvim.call("coc#util#jump",["edit",a,[s.line,o]],!0)):this.nvim.call("coc#util#jump",["belowright vs",a,[s.line,o]],!0),e.command("normal! zz",!0),await e.resumeNotification(!0),i||(this.opts.fromWinid=await e.call("win_getid"))}}async searchCurrentRange(){let{nvim:e}=this,t=await e.eval('getline(1,line("."))'),i=t.length;for(let r=0;ruEe(T,f)));let{lines:m,start:b,end:w,highlights:D}=d;m||(m=await this.getLines(c.filepath,b,w)),h.push({lines:m,lnum:g,start:b,highlights:D}),s.addLines(m)}if(h.length){let d={filepath:c.filepath,ranges:h},g=this._fileItems.find(p=>p.filepath==c.filepath);g?g.ranges.push(...d.ranges):this._fileItems.push(d)}}let{nvim:l,buffer:u}=this;if(this.changing=!0,l.pauseNotification(),s.render(u,o),this.highlightLineNr(),u.setOption("modified",!1,!0),u.setOption("undolevels",1e3,!0),o==2&&a.length){let c=a[0].start;l.call("coc#cursor#move_to",[c.line,c.character],!0)}await l.resumeNotification(!0),await i.patchChange(),this.changing=!1,await k.cursors.addRanges(a)}catch(o){this.changing=!1,lEe.error("Error on add file item:",o)}r()}findRange(e,t){let r=this.fileItems.find(o=>li(this.getAbsolutePath(o.filepath),e)).ranges.find(o=>o.lnum==t);if(!r)throw new Error(`File range not found at lnum: ${t}`);return r}async save(){let{nvim:e}=this,t=this.document,{buffer:i}=t;await t.patchChange();let r=await this.getFileChanges();if(!r)return;r.sort((a,l)=>a.lnum-l.lnum);let o=[];for(let a=0;a0&&a.ranges.forEach(c=>{c.start+=XT(Ge.Position.create(c.start,0),u)})}return e.pauseNotification(),i.setOption("modified",!1,!0),this.config.saveToFile&&e.command("silent noa wa",!0),this.highlightLineNr(),await e.resumeNotification(),!0}async getLines(e,t,i){let r=O.file(e).toString(),o=y.getDocument(r);return o?o.getLines(t,i):await ia(e,t,i-1)}getAbsolutePath(e){return gp.default.isAbsolute(e)?e:gp.default.join(this.opts.cwd,e)}highlightLineNr(){let{fileItems:e,nvim:t,srcId:i,bufnr:r}=this,{winid:o,cwd:s}=this.opts,a={};if(i){t.call("nvim_buf_clear_namespace",[r,i,0,-1],!0);for(let l of e)for(let u of l.ranges){let c=u.start+u.lines.length,h=`${u.start+1}:${c}`;a[u.lnum]=[u.start+1,c],t.call("nvim_buf_set_virtual_text",[r,i,u.lnum-1,[[h,"LineNr"]],{}],!0)}}else{this.matchIds.size&&(t.call("coc#highlight#clear_matches",[o,Array.from(this.matchIds)],!0),this.matchIds.clear());let l=2e3;for(let u of e){let c=`${s?gp.default.relative(s,u.filepath):u.filepath}`,h=Q(c)+1;for(let d of u.ranges){let g=d.start+d.lines.length,f=`:${d.start+1}:${g}`;for(let p=0;p0&&a.ranges.forEach(c=>{c.start+=Wk(nt.Position.create(c.start,0),u)})}return e.pauseNotification(),i.setOption("modified",!1,!0),this.config.saveToFile&&e.command("silent noa wa",!0),this.highlightLineNr(),await e.resumeNotification(),!0}async getLines(e,t,i){let r=I.file(e).toString(),o=v.getDocument(r);return o?o.getLines(t,i):await fa(e,t,i-1)}getAbsolutePath(e){return jf.default.isAbsolute(e)?e:jf.default.join(this.opts.cwd,e)}highlightLineNr(){let{fileItems:e,nvim:t,srcId:i,bufnr:r}=this,{winid:o,cwd:s}=this.opts,a={};if(i){t.call("nvim_buf_clear_namespace",[r,i,0,-1],!0);for(let l of e)for(let u of l.ranges){let c=u.start+u.lines.length,h=`${u.start+1}:${c}`;a[u.lnum]=[u.start+1,c],t.call("nvim_buf_set_virtual_text",[r,i,u.lnum-1,[[h,"LineNr"]],{}],!0)}}else{this.matchIds.size&&(t.call("coc#highlight#clear_matches",[o,Array.from(this.matchIds)],!0),this.matchIds.clear());let l=2e3;for(let u of e){let c=`${s?jf.default.relative(s,u.filepath):u.filepath}`,h=V(c)+1;for(let d of u.ranges){let g=d.start+d.lines.length,p=`:${d.start+1}:${g}`;for(let f=0;f1?u[u.length-2]:"";if(c==""&&d.startsWith(Zr)&&h==d&&s.start.character==0&&s.end.character==0){r=h+` +`;let{start:p,end:f}=s;l[0].range=nt.Range.create(p.line,0,f.line,0)}}let h=o[s.start.line-1],d=u.length>1?u[u.length-2]:"";if(c==""&&d.startsWith(so)&&h==d&&s.start.character==0&&s.end.character==0){r=h+` `+u.slice(0,-2).join(` `)+` -`;let{start:g,end:f}=s;l[0].range=Ge.Range.create(g.line-1,0,f.line-1,0)}}else if(Ct(s)&&s.start.character!=0){let u=a.split(/\r?\n/),c=u[u.length-1],h=o[s.start.line].slice(0,s.start.character);if(c.startsWith(Zr)&&h==c){l[0].text=h+u.slice(0,-1).join(` +`;let{start:g,end:p}=s;l[0].range=nt.Range.create(g.line-1,0,p.line-1,0)}}else if(jt(s)&&s.start.character!=0){let u=a.split(/\r?\n/),c=u[u.length-1],h=o[s.start.line].slice(0,s.start.character);if(c.startsWith(so)&&h==c){l[0].text=h+u.slice(0,-1).join(` `)+` -`;let{start:d,end:g}=s;l[0].range=Ge.Range.create(d.line,0,g.line,0)}}return{contentChanges:l,bufnr:t,textDocument:i,original:r,originalLines:o}}var Ete=require("child_process"),Pte=require("events"),hR=C(require("path")),_te=C(require("readline"));Kr();oa();bc();no();ke();var LTe=q()("handler-search"),FTe=["--color","ansi","--colors","path:fg:black","--colors","line:fg:green","--colors","match:fg:red","--no-messages","--heading","-n"],ITe="\x1B",Rte=class extends Pte.EventEmitter{start(e,t,i){this.process=(0,Ete.spawn)(e,t,{cwd:i}),this.process.on("error",c=>{this.emit("error",c.message)});let r=_te.default.createInterface(this.process.stdout),o,s,a=[],l=[],u=!0;r.on("line",c=>{if(c.includes(ITe)){let h=hg(c);if(h[0].foreground=="black"){s={filepath:hR.default.join(i,h[0].text),ranges:[]};return}if(h[0].foreground=="green"){let g=parseInt(h[0].text,10)-1,f=h[0].text.length+1;u&&(o=g,u=!1);let p="";for(let v of h){if(v.foreground=="red"){let w=g-o,D=p.length-f;l.push(Ne.create(w,D,w,D+v.text.length))}p+=v.text}let b=p.slice(f);a.push(b)}}else{let h=c.trim().length==0;s&&(h||c.trim()=="--")&&s.ranges.push({lines:a,highlights:l,start:o}),h&&(this.emit("item",s),s=null),a=[],l=[],u=!0}}),r.on("close",()=>{s&&(a.length&&s.ranges.push({lines:a,highlights:l,start:o}),this.emit("item",s)),a=l=s=null,this.emit("end")})}dispose(){this.process&&this.process.kill()}},ix=class{constructor(e,t="rg"){this.nvim=e;this.cmd=t}run(e,t,i){let{nvim:r,cmd:o}=this,{afterContext:s,beforeContext:a}=i.config,l=["-A",s.toString(),"-B",a.toString()].concat(FTe,e),u=jTe(e);u&&l.pop(),l.push("--",u?hR.default.isAbsolute(u)?u:`./${u.replace(/^\.\//,"")}`:"./"),this.task=new Rte,this.task.start(o,l,t);let c=new ei,h=0,d=0,g=Date.now(),f=[],p=async()=>{if(f.length==0)return;let b=f.slice();f=[];let v=await c.acquire();try{await i.addFileItems(b)}catch(w){LTe.error(w)}v()};return new Promise((b,v)=>{let w=setInterval(p,300);this.task.on("item",async D=>{h++,d=d+D.ranges.reduce((S,F)=>S+F.highlights.length,0),f.push(D)}),this.task.on("error",D=>{clearInterval(w),k.showMessage(`Error on command "${o}": ${D}`,"error"),this.task=null,v(new Error(D))}),this.task.on("end",async()=>{clearInterval(w);try{await p(),(await c.acquire())(),this.task.removeAllListeners(),this.task=null;let S=i.buffer;if(S){if(r.pauseNotification(),h==0)S.setLines(["No match found"],{start:1,end:2,strictIndexing:!1},!0),S.addHighlight({line:1,srcId:-1,colEnd:-1,colStart:0,hlGroup:"Error"}),S.setOption("modified",!1,!0);else{let F=new Ri;F.addText("Files","MoreMsg"),F.addText(": "),F.addText(`${h} `,"Number"),F.addText("Matches","MoreMsg"),F.addText(": "),F.addText(`${d} `,"Number"),F.addText("Duration","MoreMsg"),F.addText(": "),F.addText(`${Date.now()-g}ms`,"Number"),F.render(S,1,2)}S.setOption("modified",!1,!0),r.resumeNotification(!1,!0)}}catch(D){v(D);return}b()})})}abort(){var e;(e=this.task)==null||e.dispose()}};function jTe(n){if(n.length<2)return;let e=n.length;if(!n[e-1].startsWith("-")&&!n[e-2].startsWith("-"))return n[e-1]}var not=q()("handler-refactor"),ATe="__coc_refactor__",OTe=0,nx=class{constructor(e,t){this.nvim=e;this.handler=t;this.buffers=new Map;this.disposables=[];this._onCreate=new Bh.Emitter;this.onCreate=this._onCreate.event;this.setConfiguration(),y.onDidChangeConfiguration(this.setConfiguration,this,this.disposables),E.on("BufUnload",i=>{let r=this.buffers.get(i);r&&(r.dispose(),this.buffers.delete(i))},null,this.disposables),y.onDidChangeTextDocument(i=>{let r=this.buffers.get(i.bufnr);r&&r.onChange(i)},null,this.disposables)}async init(){y.isNvim&&this.nvim.hasFunction("nvim_create_namespace")&&(this.srcId=await this.nvim.createNamespace("coc-refactor"))}has(e){return this.buffers.has(e)}setConfiguration(e){if(e&&!e.affectsConfiguration("refactor"))return;let t=y.getConfiguration("refactor");this.config=Object.assign(this.config||{},{afterContext:t.get("afterContext",3),beforeContext:t.get("beforeContext",3),openCommand:t.get("openCommand","edit"),saveToFile:t.get("saveToFile",!0),showMenu:t.get("showMenu","")})}async doRefactor(){let{doc:e,position:t}=await this.handler.getCurrentState();if(!A.hasProvider("rename",e.textDocument))throw new Error("Rename provider not found for current buffer");await e.synchronize();let i=await this.handler.withRequestToken("refactor",async r=>{let o=await A.prepareRename(e.textDocument,t,r);if(r.isCancellationRequested)return null;if(o===!1)throw new Error("Provider returns null on prepare, unable to rename at current position");let s=await A.provideRenameEdits(e.textDocument,t,"NewName",r);if(r.isCancellationRequested)return null;if(!s)throw new Error("Provider returns null for rename edits.");return s});i&&await this.fromWorkspaceEdit(i,e.filetype)}async search(e){let t=await this.createRefactorBuffer(),i=await this.nvim.call("getcwd",[]);await new ix(this.nvim).run(e,i,t)}async save(e){let t=this.buffers.get(e);if(t)return await t.save()}getBuffer(e){return this.buffers.get(e)}async createRefactorBuffer(e,t=!1){let{nvim:i}=this,[r,o]=await i.eval("[win_getid(),getcwd()]"),{openCommand:s}=this.config;i.pauseNotification(),i.command(`${s} ${ATe}${OTe++}`,!0),i.command("setl buftype=acwrite nobuflisted bufhidden=wipe nofen wrap conceallevel=2 concealcursor=n",!0),i.command("setl undolevels=-1 nolist nospell noswapfile foldmethod=expr foldexpr=coc#util#refactor_foldlevel(v:lnum)",!0),i.command("setl foldtext=coc#util#refactor_fold_text(v:foldstart)",!0),i.call("setline",[1,["Save current buffer to make changes",Zr]],!0),i.call("matchadd",["Comment","\\%1l"],!0),i.call("matchadd",["Conceal","^\\%u3000"],!0),i.call("matchadd",["Label","^\\%u3000\\zs\\S\\+"],!0),i.command("setl nomod",!0),e&&i.command(`runtime! syntax/${e}.vim`,!0),i.call("coc#util#do_autocmd",["CocRefactorOpen"],!0),await i.resumeNotification();let[a,l]=await i.eval('[bufnr("%"),win_getid()]'),u={fromWinid:r,winid:l,cwd:o};await y.document;let c=new tx(a,t?void 0:this.srcId,this.nvim,this.config,u);return this.buffers.set(a,c),c}async fromLines(e){let t=await this.createRefactorBuffer();return await t.buffer.setLines(e,{start:0,end:-1,strictIndexing:!1}),t}async fromLocations(e,t){if(!e||e.length==0)return;let i={},r={changes:i};for(let o of e){let s=i[o.uri]||[];s.push({range:o.range,newText:""}),i[o.uri]=s}return await this.fromWorkspaceEdit(r,t)}async fromWorkspaceEdit(e,t){if(!e||jY(e))return;let i=[],{beforeContext:r,afterContext:o}=this.config,{changes:s,documentChanges:a}=e;if(!s){s={};for(let u of a||[])if(Bh.TextDocumentEdit.is(u)){let{textDocument:c,edits:h}=u;s[c.uri]=h}}for(let u of Object.keys(s)){let c=await this.getLineCount(u),h=s[u],d=[],g=null,f=null,p=[];h.sort((b,v)=>b.range.start.line-v.range.start.line);for(let b of h){let{line:v}=b.range.start,w=Math.max(0,v-r);g!=null&&w({range:s,newText:r}))}}}async rename(e){let{doc:t,position:i}=await this.handler.getCurrentState();this.handler.checkProvier("rename",t.textDocument),await t.synchronize();let r=new fp.CancellationTokenSource().token,o=await A.prepareRename(t.textDocument,i,r);if(o===!1)return k.showWarningMessage("Invalid position for rename"),!1;let s;if(!e){fp.Range.is(o)?(s=t.textDocument.getText(o),await k.moveTo(o.start)):o&&typeof o.placeholder=="string"?s=o.placeholder:s=await this.nvim.eval('expand("")');let l=y.getConfiguration("coc.preferences");e=await k.requestInput("New name",l.get("renameFillCurrent",!0)?s:void 0)}if(e===""&&k.showWarningMessage("Empty word, rename canceled"),!e)return!1;let a=await A.provideRenameEdits(t.textDocument,i,e,r);return r.isCancellationRequested||!a?!1:(await y.applyEdit(a),this.nvim.redrawVim(),!0)}};we();var dR=C(require("fs")),Ite=C(require("path"));yo();Ir();V();iu();var Fte=q()("handler-workspace"),ox=class{constructor(e,t){this.nvim=e;this.handler=t}async openLog(){let e=Fte.logfile;await y.jumpTo(O.file(e).toString())}async doAutocmd(e,t){await y.autocmds.doAutocmd(e,t)}async getConfiguration(e){let t=await y.document;return y.getConfiguration(e,t?t.uri:void 0)}getRootPatterns(e){let t=y.getDocument(e);return t?{buffer:y.workspaceFolderControl.getRootPatterns(t,0),server:y.workspaceFolderControl.getRootPatterns(t,1)||[],global:y.workspaceFolderControl.getRootPatterns(t,2)}:null}async ensureDocument(){let e=await y.document;return e&&!e.isCommandLine&&e.attached}async doKeymap(e,t="",i){return await y.keymaps.doKeymap(e,t,i)}async snippetCheck(e,t){if(e&&!ye.has("coc-snippets"))return this.nvim.echoError("coc-snippets required for check expand status!"),!1;if(t&&Ut.jumpable())return!0;if(e){let i=ye.getExtensionApi("coc-snippets");if(i&&i.hasOwnProperty("expandable")&&await Promise.resolve(i.expandable()))return!0}return!1}async showInfo(){let e=[],t=y.version+"-43744ba8 2022-07-05 17:36:48 +0900";e.push("## versions"),e.push("");let r=(await this.nvim.call("execute",["version"])).trim().split(/\r?\n/,2)[0].replace(/\(.*\)/,"").trim();e.push("vim version: "+r+`${y.isVim?" "+y.env.version:""}`),e.push("node version: "+process.version),e.push("coc.nvim version: "+t),e.push("coc.nvim directory: "+Ite.default.dirname(__dirname)),e.push("term: "+(process.env.TERM_PROGRAM||process.env.TERM)),e.push("platform: "+process.platform),e.push(""),e.push("## Log of coc.nvim"),e.push("");let o=Fte.logfile;if(dR.default.existsSync(o)){let a=dR.default.readFileSync(o,{encoding:"utf8"});e.push(...a.split(/\r?\n/))}await this.nvim.command("vnew +setl\\ buftype=nofile\\ bufhidden=wipe\\ nobuflisted"),await(await this.nvim.buffer).setLines(e,{start:0,end:-1,strictIndexing:!1})}};var gR=C(H());Ce();Jt();yt();ke();var sx=class{constructor(e,t){this.nvim=e;this.handler=t;this.selectionRange=null}async getSelectionRanges(){let{doc:e,position:t}=await this.handler.getCurrentState();return this.handler.checkProvier("selectionRange",e.textDocument),await e.synchronize(),await this.handler.withRequestToken("selection ranges",r=>A.getSelectionRanges(e.textDocument,[t],r))}async selectRange(e,t){let{nvim:i}=this,{doc:r}=await this.handler.getCurrentState();this.handler.checkProvier("selectionRange",r.textDocument);let o=[];if(!t&&(!this.selectionRange||!e))return;if(e){let u=await k.getSelectedRange(e);o.push(u.start,u.end)}else{let u=await k.getCursorPosition();o.push(u)}if(!t){let u=gR.Range.create(o[0],o[1]),{selectionRange:c}=this;for(;c&&c.parent&&!Fe(c.parent.range,u);)c=c.parent;c&&c.parent&&await k.selectRange(c.range);return}await r.synchronize();let s=await this.handler.withRequestToken("selection ranges",u=>A.getSelectionRanges(r.textDocument,o,u));if(!s||s.length==0)return;await i.eval("mode()")!="n"&&await i.eval(`feedkeys("\\", 'in')`);let l;if(s.length==1)l=s[0];else{let u=o[1]||o[0],c=gR.Range.create(o[0],u);for(l=s[0];l;){if(Fe(c,l.range)){l=l.parent;continue}if(ut(o[0],l.range)==0&&ut(u,l.range)==0)break;l=l.parent}}!l||(this.selectionRange=s[0],await k.selectRange(l.range))}};var jte=C(require("path")),bs=C(H());we();wi();le();Ce();H_();FD();z();es();V();var Wot=q()("Handler-callHierarchy");function MTe(n){return!!(n&&n.name&&n.kind&&bs.Range.is(n.range)&&n.uri)}var Eo=class{constructor(e,t){this.nvim=e;this.handler=t;this.disposables=[];this.highlightWinids=new Set;this.loadConfiguration(),y.onDidChangeConfiguration(this.loadConfiguration,this,this.disposables),this.disposables.push(oe.registerCommand(Eo.commandId,async(i,r,o)=>{var l;let{nvim:s}=this;await s.call("win_gotoid",[i]),await y.jumpTo(r.uri,r.selectionRange.start,o);let a=await s.window;if(a.clearMatchGroup(Eo.rangesHighlight),a.highlightRanges(Eo.rangesHighlight,[r.selectionRange],10,!0),!!((l=r.ranges)!=null&&l.length)){if(r.sourceUri){let u=y.getDocument(r.sourceUri);if(!u)return;let c=await s.call("coc#compat#buf_win_id",[u.bufnr]);if(c==-1)return;c!=a.id&&(a=s.createWindow(c),a.clearMatchGroup(Eo.rangesHighlight))}a.highlightRanges(Eo.rangesHighlight,r.ranges,100,!0),this.highlightWinids.add(a.id)}},null,!0)),E.on("BufWinEnter",(i,r)=>{this.highlightWinids.has(r)&&(this.highlightWinids.delete(r),e.createWindow(r).clearMatchGroup(Eo.rangesHighlight))},null,this.disposables)}loadConfiguration(e){if(!e||e.affectsConfiguration("callHierarchy")){let t=y.getConfiguration("callHierarchy");this.config={splitCommand:t.get("splitCommand"),openCommand:t.get("openCommand"),enableTooltip:t.get("enableTooltip")}}}createProvider(e,t,i,r){let o=new bs.Emitter,s,a,l=()=>{s&&(s.cancel(),s.dispose(),s=null)},u=(h,d)=>{let g=h.children;if(!Array.isArray(g))return;if(g.find(p=>p==d))return h;for(let p of g){let b=u(p,d);if(b)return b}},c={kind:r,onDidChangeTreeData:o.event,getTreeItem:h=>{var g;let d=new So(h.name,h.children?2:1);return this.config.enableTooltip&&(d.tooltip=jte.default.relative(y.cwd,O.parse(h.uri).fsPath)),d.description=h.detail,d.deprecated=(g=h.tags)==null?void 0:g.includes(bs.SymbolTag.Deprecated),d.icon=this.handler.getIcon(h.kind),d.command={command:Eo.commandId,title:"open location",arguments:[t,h,this.config.openCommand]},d},getChildren:async h=>{l(),s=new bs.CancellationTokenSource;let{token:d}=s;if(!h){if(!a&&(a=await this.prepare(e,i,d),!(a!=null&&a.length)))return;for(let f of a){let p=await this.getChildren(e,f,c.kind,d);if(d.isCancellationRequested)break;Array.isArray(p)&&(f.children=p)}return a}if(h.children)return h.children;let g=await this.getChildren(e,h,c.kind,d);return s=null,d.isCancellationRequested?[]:(h.children=g,g)},resolveActions:()=>[{title:"Open in new tab",handler:async h=>{await oe.executeCommand(Eo.commandId,t,h,"tabe")}},{title:"Show Incoming Calls",handler:h=>{a=[zi(h,["children","ranges","sourceUri"])],c.kind="incoming",o.fire(void 0)}},{title:"Show Outgoing Calls",handler:h=>{a=[zi(h,["children","ranges","sourceUri"])],c.kind="outgoing",o.fire(void 0)}},{title:"Dismiss",handler:async h=>{let d;for(let f of a)if(d=u(f,h),d)break;if(!d)return;let g=d.children.findIndex(f=>f===h);d.children.splice(g,1),o.fire(d)}}],dispose:()=>{l(),o.dispose(),a=void 0,o=void 0}};return c}async getChildren(e,t,i,r){let o=[];if(i=="incoming"){let s=await A.provideIncomingCalls(e,t,r);s&&(o=s.map(a=>Object.assign(a.from,{ranges:a.fromRanges})))}else{let s=await A.provideOutgoingCalls(e,t,r);s&&(o=s.map(a=>Object.assign(a.to,{ranges:a.fromRanges,sourceUri:t.uri})))}return o}async prepare(e,t,i){this.handler.checkProvier("callHierarchy",e);let r=await A.prepareCallHierarchy(e,t,i);return MTe(r)?[r]:r}async getCallHierarchyItems(e,t){let{doc:i,position:r}=await this.handler.getCurrentState(),o=new bs.CancellationTokenSource;if(!e){await i.synchronize();let a=await this.prepare(i.textDocument,r,o.token);if(e=a?a[0]:void 0,!a)return}let s=t=="incoming"?"provideIncomingCalls":"provideOutgoingCalls";return await A[s](i.textDocument,e,o.token)}async getIncoming(e){return await this.getCallHierarchyItems(e,"incoming")}async getOutgoing(e){return await this.getCallHierarchyItems(e,"outgoing")}async showCallHierarchyTree(e){let{doc:t,position:i,winid:r}=await this.handler.getCurrentState();await t.synchronize();let o=this.createProvider(t.textDocument,r,i,e),s=new au("calls",{treeDataProvider:o});s.title=`${e.toUpperCase()} CALLS`,o.onDidChangeTreeData(a=>{a||(s.title=`${o.kind.toUpperCase()} CALLS`)}),s.onDidChangeVisibility(a=>{a.visible||o.dispose()}),this.disposables.push(s),await s.show(this.config.splitCommand)}dispose(){this.highlightWinids.clear(),Z(this.disposables)}},Hh=Eo;Hh.commandId="callHierarchy.reveal",Hh.rangesHighlight="CocSelectedRange";wi();le();Ce();Jo();oa();z();Qo();Pe();V();var Ate=C(Ei()),Jr=C(H());Ce();var hu=class{constructor(){this.ranges=[]}get current(){let e=[];return this.ranges.sort((t,i)=>t[0]-i[0]),this.ranges.forEach(t=>{e.push(t[0],t[1])}),e}clear(){this.ranges=[]}add(e,t){e>t&&([e,t]=[t,e]);let{ranges:i}=this;if(i.length==0)i.push([e,t]);else{i.sort((l,u)=>l[0]-u[0]);let r,o,s=[];for(let l=0;lt||(s.push(l),r==null&&(r=Math.min(e,u[0])),o=Math.max(t,u[1]))}let a=s.length?i.filter((l,u)=>!s.includes(u)):i;this.ranges=a,r!=null&&o!=null?this.ranges.push([r,o]):this.ranges.push([e,t])}}has(e,t){return this.ranges.findIndex(r=>r[0]<=e&&r[1]>=t)!==-1}static mergeSpans(e){let t=[];for(let i of e){let r=t.findIndex(o=>!(i[1]o[1]));if(r==-1)t.push(i);else{let o=t[r];t[r]=[Math.min(i[0],o[0]),Math.max(i[1],o[1])]}}return t}};z();Pe();ke();V();var nst=q()("semanticTokens-buffer"),NTe=15,qh="CocSem",Po="semanticTokens",BTe=50,ax=class{constructor(e,t,i){this.nvim=e;this.doc=t;this.config=i;this._dirty=!1;this.regions=new hu;this._onDidRefresh=new Jr.Emitter;this.onDidRefresh=this._onDidRefresh.event;this.highlight=(0,Ate.default)(()=>{this.doHighlight()},BTe),this.highlight()}get bufnr(){return this.doc.bufnr}onChange(){this.highlight()}onTextChange(){this.cancel()}async forceHighlight(){this.previousResults=void 0,this._highlights=void 0,this.clearHighlight(),this.cancel(),await this.doHighlight(!0)}async onShown(){if(this.shouldRangeHighlight)return;let{doc:e}=this;e.dirty||e.version===this._version||await this.doHighlight(!1,!0)}get hasProvider(){let{textDocument:e}=this.doc;return A.hasProvider("semanticTokens",e)||A.hasProvider("semanticTokensRange",e)}get hasLegend(){let{textDocument:e}=this.doc;return A.getLegend(e)!=null||A.getLegend(e,!0)!=null}get rangeProviderOnly(){let{textDocument:e}=this.doc;return!A.hasProvider("semanticTokens",e)&&A.hasProvider("semanticTokensRange",e)}get shouldRangeHighlight(){let{textDocument:e}=this.doc;return A.hasProvider("semanticTokensRange",e)&&this.previousResults==null}get lineCount(){return this.doc.lineCount}get highlights(){if(!!this._highlights&&this._highlights[0]==this.doc.version)return this._highlights[1]}get buffer(){return this.nvim.createBuffer(this.bufnr)}get enabled(){var e;return!this.config.filetypes.length||!y.env.updateHighlight||!((e=this.doc)!=null&&e.attached)||!this.hasLegend||!this.config.filetypes.includes("*")&&!this.config.filetypes.includes(this.doc.filetype)?!1:this.hasProvider}checkState(){if(!y.env.updateHighlight)throw new Error("Can't perform highlight update, highlight update requires vim >= 8.1.1719 or neovim >= 0.5.0");if(!this.doc.attached)throw new Error("Document not attached");let{filetypes:e}=this.config;if(!(e!=null&&e.includes("*"))&&!e.includes(this.doc.filetype))throw new Error(`Semantic tokens highlight not enabled for current filetype: ${this.doc.filetype}`);if(!this.hasProvider)throw new Error("SemanticTokens provider not found, your languageserver may not support it")}async getTokenRanges(e,t,i){let r=0,o=0,s=Date.now(),a=[];for(let l=0;lNTe){if(await Vr(),i.isCancellationRequested)break;s=Date.now()}let u=e[l],c=e[l+1],h=e[l+2],d=t.tokenTypes[e[l+3]],g=t.tokenModifiers.filter((v,w)=>e[l+4]&1<=i))continue;let u={lnum:l,hlGroup:a.hlGroup,colStart:a.range[1],colEnd:a.range[2],combine:a.combine};r.includes(a.tokenType)&&(u.end_incl=!0,u.start_incl=!0),s.push(u)}return s}async doHighlight(e=!1,t=!1){var l;if(this.cancel(),!this.enabled)return;let r=(this.tokenSource=new Jr.CancellationTokenSource).token;if(!t&&(await this.nvim.eval(`get(get(getbufinfo(${this.bufnr}),0,{}),'hidden',0)`)==1||r.isCancellationRequested))return;if(this.shouldRangeHighlight){let u=this.rangeTokenSource=new Jr.CancellationTokenSource;if(await this.doRangeHighlight(u.token),r.isCancellationRequested||this.rangeProviderOnly)return}let{doc:o}=this,s=o.version,a;if(s===((l=this.previousResults)==null?void 0:l.version))if(this._highlights&&this._highlights[0]==s)a=this._highlights[1];else{let u=this.previousResults.tokens,c=A.getLegend(o.textDocument);a=await this.getTokenRanges(u,c,r),a&&(this._highlights=[s,a])}else a=await this.requestAllHighlights(r,e),a&&(this._highlights=[s,a]);if(!(!a||r.isCancellationRequested)){if(!this._dirty||a.length<200){let u=this.toHighlightItems(a),c=await k.diffHighlights(this.bufnr,Po,u,void 0,r);if(r.isCancellationRequested||!c)return;this._dirty=!0,this._version=s;let h=this.config.highlightPriority;await k.applyDiffHighlights(this.bufnr,Po,h,c)}else this.regions.clear(),await this.highlightRegions(r);this._onDidRefresh.fire()}}async waitRefresh(){return new Promise((e,t)=>{let i=setTimeout(()=>{r.dispose(),t(new Error("Timeout after 500ms"))},500),r=this.onDidRefresh(()=>{r.dispose(),clearTimeout(i),e()})})}async doRangeHighlight(e){if(!this.enabled)return;let{version:t}=this.doc,i=await this.requestRangeHighlights(e);if(!i||e.isCancellationRequested)return;let{highlights:r,start:o,end:s}=i;if(this.rangeProviderOnly||!this.previousResults){(!this._highlights||t!==this._highlights[0])&&(this._highlights=[t,[]]);let c=this._highlights[1],h=c.reduce((d,g)=>d.add(g.range[0]),new Set);r.forEach(d=>{h.has(d.range[0])||c.push(d)})}let a=this.toHighlightItems(r),l=this.config.highlightPriority,u=await k.diffHighlights(this.bufnr,Po,a,[o,s],e);u&&(await k.applyDiffHighlights(this.bufnr,Po,l,u,!0),this._dirty=!0)}async highlightRegions(e){let{regions:t,highlights:i,config:r,lineCount:o,bufnr:s}=this;if(!i)return;let a=r.highlightPriority,l=await this.nvim.call("coc#window#visible_ranges",[s]);if(e.isCancellationRequested||l.length===0)return;let u=y.env.lines;l.forEach(c=>{let h=c[0];c[0]=Math.max(0,Math.floor(h-u*1.5)),c[1]=Math.min(o,Math.ceil(c[1]+u*1.5),h+u*2)});for(let[c,h]of hu.mergeSpans(l)){if(t.has(c,h))continue;let d=this.toHighlightItems(i,c,h),g=await k.diffHighlights(s,Po,d,[c,h],e);if(e.isCancellationRequested)break;t.add(c,h),g&&k.applyDiffHighlights(s,Po,a,g,!0)}}async onCursorMoved(){if(this.cancel(!0),!this.enabled||this.doc.dirty)return;let t=(this.rangeTokenSource=new Jr.CancellationTokenSource).token;await bt(global.__TEST__?10:100),!t.isCancellationRequested&&(this.shouldRangeHighlight?await this.doRangeHighlight(t):await this.highlightRegions(t))}async requestRangeHighlights(e){let{nvim:t,doc:i}=this,r=await t.call("coc#window#visible_range",[this.bufnr]);if(!r||e.isCancellationRequested)return null;let o=Math.min(r[0]+y.env.lines*2,r[1]),s=Jr.Range.create(r[0]-1,0,o,0),a=await A.provideDocumentRangeSemanticTokens(i.textDocument,s,e);if(!a||!Jr.SemanticTokens.is(a)||e.isCancellationRequested)return null;let l=A.getLegend(i.textDocument,!0),u=await this.getTokenRanges(a.data,l,e);return e.isCancellationRequested?null:{highlights:u,start:r[0]-1,end:r[1]}}async requestAllHighlights(e,t){let{doc:i}=this,r=A.getLegend(i.textDocument),o=A.hasSemanticTokensEdits(i.textDocument),s=t?null:this.previousResults,a=i.version,l;if(o&&(s==null?void 0:s.resultId)?l=await A.provideDocumentSemanticTokensEdits(i.textDocument,s.resultId,e):l=await A.provideDocumentSemanticTokens(i.textDocument,e),e.isCancellationRequested||l==null)return;let u=[];return Jr.SemanticTokens.is(l)?u=l.data:s&&Array.isArray(l.edits)&&(u=s.tokens,l.edits.forEach(c=>{var h;u.splice(c.start,c.deleteCount?c.deleteCount:0,...(h=c.data)!=null?h:[])})),this.previousResults={resultId:l.resultId,tokens:u,version:a},await this.getTokenRanges(u,r,e)}clearHighlight(){this.buffer.clearNamespace(Po)}abandonResult(){this.previousResults=void 0}cancel(e=!1){this.rangeTokenSource&&(this.rangeTokenSource.cancel(),this.rangeTokenSource.dispose(),this.rangeTokenSource=null),!e&&(this.regions.clear(),this.highlight.clear(),this.tokenSource&&(this.tokenSource.cancel(),this.tokenSource.dispose(),this.tokenSource=null))}dispose(){this.cancel(),this.previousResults=void 0,this._highlights=void 0,this._onDidRefresh.dispose(),this.regions.clear()}};var mst=q()("semanticTokens"),lx="Statement",ux=class{constructor(e,t){this.nvim=e;this.handler=t;this.disposables=[];this.loadConfiguration(),this.floatFactory=new ci(e),y.onDidChangeConfiguration(this.loadConfiguration,this,this.disposables),oe.register({id:"semanticTokens.checkCurrent",execute:async()=>{await this.showHighlightInfo()}},!1,"show semantic tokens highlight information of current buffer"),oe.register({id:"semanticTokens.refreshCurrent",execute:()=>this.highlightCurrent()},!1,"refresh semantic tokens highlight of current buffer."),oe.register({id:"semanticTokens.inspect",execute:()=>this.inspectSemanticToken()},!1,"Inspect semantic token information at cursor position."),oe.register({id:"semanticTokens.clearCurrent",execute:async()=>{(await e.buffer).clearNamespace(Po,0,-1)}},!1,"clear semantic tokens highlight of current buffer"),oe.register({id:"semanticTokens.clearAll",execute:async()=>{let i=await e.buffers;for(let r of i)r.clearNamespace(Po,0,-1)}},!1,"clear semantic tokens highlight of all buffers"),this.highlighters=y.registerBufferSync(i=>new ax(this.nvim,i,this.config)),A.onDidSemanticTokensRefresh(async i=>{let r=await this.nvim.call("coc#window#bufnrs");for(let o of this.highlighters.items){let s=y.getDocument(o.bufnr);!s||!y.match(i,s.textDocument)||(o.abandonResult(),r.includes(o.bufnr)&&o.highlight())}},null,this.disposables),E.on("BufWinEnter",async i=>{let r=this.highlighters.getItem(i);r&&await r.onShown()},null,this.disposables),E.on("CursorMoved",async i=>{let r=this.highlighters.getItem(i);r&&await r.onCursorMoved()},null,this.disposables)}loadConfiguration(e){var t;if(!e||e.affectsConfiguration("semanticTokens")){let i=[];(t=this.config)!=null&&t.highlightGroups?i=this.config.highlightGroups:i=y.env.semanticHighlights||[];let r=y.getConfiguration("semanticTokens");this.config=Object.assign(this.config||{},{highlightGroups:i,filetypes:r.get("filetypes",[]),highlightPriority:r.get("highlightPriority",2048),incrementTypes:r.get("incrementTypes",[]),combinedModifiers:r.get("combinedModifiers",[])})}}async inspectSemanticToken(){var a;let e=await this.getCurrentItem();if(!e||!e.enabled){this.floatFactory.close();return}let[t,i,r]=await this.nvim.call("getcurpos",[]),s=((a=e.highlights)!=null?a:[]).find(l=>{let u=r-1;return l.range[0]===i-1&&u>=l.range[1]&&ug.hlGroup!=null).map(({hlGroup:g})=>g));for(let g of c)r.addTexts([{text:"-",hlGroup:"Comment"},{text:" "},{text:g,hlGroup:g}]);r.addLine(""),r.addLine("Tokens types that current Language Server supported:",lx),r.addLine("");let h=y.getDocument(i.bufnr),d=(l=A.getLegend(h.textDocument))!=null?l:A.getLegend(h.textDocument,!0);if(d.tokenTypes.length){for(let g of[...new Set(d.tokenTypes)]){let f=qh+hn(g);r.addTexts([{text:"-",hlGroup:"Comment"},{text:" "},{text:f,hlGroup:f}])}r.addLine("")}else r.addLine("No token types supported","Comment"),r.addLine("");if(r.addLine("Tokens modifiers that current Language Server supported:",lx),r.addLine(""),d.tokenModifiers.length){for(let g of[...new Set(d.tokenModifiers)]){let f=qh+hn(g);r.addTexts([{text:"-",hlGroup:"Comment"},{text:" "},{text:f,hlGroup:f}])}r.addLine("")}else r.addLine("No token modifiers exist","Comment"),r.addLine("")}catch(u){r.addLine(u instanceof Error?u.message:u.toString(),"Error")}t.pauseNotification();let s=o[0][2];r.render(t.createBuffer(s)),t.resumeNotification(!0,!0)}dispose(){this.floatFactory.dispose(),this.highlighters.dispose(),Z(this.disposables)}};var pp=C(H());le();Ce();Jo();z();Pe();V();var Pst=q()("handler-signature"),cx=class{constructor(e,t){this.nvim=e;this.handler=t;this.disposables=[];this.signatureFactory=new ci(e),this.loadConfiguration(),this.disposables.push(this.signatureFactory),y.onDidChangeConfiguration(this.loadConfiguration,this,this.disposables),E.on("CursorMovedI",async(i,r)=>{let o=this.lastPosition;!o||o.bufnr==i&&o.lnum==r[0]&&o.col<=r[1]||this.signatureFactory.close()},null,this.disposables),E.on(["InsertLeave","BufEnter"],()=>{var i;(i=this.tokenSource)==null||i.cancel()},null,this.disposables),E.on("TextChangedI",()=>{this.config.hideOnChange&&this.signatureFactory.close()},null,this.disposables),E.on("TextInsert",async(i,r,o)=>{if(!this.config.trigger)return;let s=this.getTextDocument(i);!s||!A.shouldTriggerSignatureHelp(s.textDocument,o)||await this._triggerSignatureHelp(s,{line:r.lnum-1,character:r.pre.length},!1)},null,this.disposables)}getTextDocument(e){let t=y.getDocument(e);if(!(!t||t.isCommandLine||!t.attached))return t}loadConfiguration(e){if(!e||e.affectsConfiguration("signature")){let t=y.getConfiguration("signature"),i=t.get("target","float");i=="float"&&!y.floatSupported&&(i="echo"),this.config={target:i,floatConfig:t.get("floatConfig",{}),trigger:t.get("enable",!0),wait:Math.max(t.get("triggerSignatureWait",500),200),preferAbove:t.get("preferShownAbove",!0),hideOnChange:t.get("hideOnTextChange",!1)}}}async triggerSignatureHelp(){let{doc:e,position:t}=await this.handler.getCurrentState();return A.hasProvider("signature",e.textDocument)?await this._triggerSignatureHelp(e,t,!0,0):!1}async _triggerSignatureHelp(e,t,i=!0,r=0){var d;(d=this.tokenSource)==null||d.cancel();let o=this.tokenSource=new pp.CancellationTokenSource,s=o.token;s.onCancellationRequested(()=>{o.dispose(),this.tokenSource=void 0});let{target:a}=this.config,l=this.timer=setTimeout(()=>{o.cancel()},this.config.wait);await e.patchChange(!0);let u=await A.getSignatureHelp(e.textDocument,t,s,{isRetrigger:this.signatureFactory.checkRetrigger(e.bufnr),triggerKind:i?pp.SignatureHelpTriggerKind.Invoked:pp.SignatureHelpTriggerKind.TriggerCharacter});if(clearTimeout(l),s.isCancellationRequested)return!1;if(!u||u.signatures.length==0)return this.signatureFactory.close(),!1;let{activeSignature:c,signatures:h}=u;if(c){let[g]=h.splice(c,1);g&&h.unshift(g)}return a=="echo"?this.echoSignature(u):await this.showSignatureHelp(e,t,u,r),!0}async showSignatureHelp(e,t,i,r){let{signatures:o,activeParameter:s}=i,a=null,l=r,u=o.reduce((g,f,p)=>{var D,S,F;let b=null,v=((D=f.activeParameter)!=null?D:typeof s=="number")?s:void 0;v===void 0&&((S=f.parameters)==null?void 0:S.length)>0&&(v=0);let w=f.label.indexOf("(");if(p==0&&typeof v=="number"){let L=(F=f.parameters)==null?void 0:F[v];if(L){let j=f.label.slice(w==-1?0:w);if(a=L.documentation,typeof L.label=="string"){let W=j.slice(0),B=W.match(new RegExp("\\b"+L.label.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")+"\\b")),N=B?B.index:W.indexOf(L.label);N!=-1&&(b=[N+w,N+L.label.length+w])}else b=L.label}}if(b==null&&(b=[w+1,w+1]),r==l&&(r=r+b[0]+1),g.push({content:f.label,filetype:e.filetype,active:b}),a){let L=typeof a=="string"?a:a.value;L.trim().length&&g.push({content:L,filetype:og(f.documentation)?"markdown":"txt"})}if(p==0&&f.documentation){let{documentation:L}=f,j=typeof L=="string"?L:L.value;j.trim().length&&g.push({content:j,filetype:og(f.documentation)?"markdown":"txt"})}return g},[]),c=e.getline(t.line,!1).slice(0,t.character);this.lastPosition={bufnr:e.bufnr,lnum:t.line+1,col:Q(c)+1};let h=y.getConfiguration("coc.preferences").get("excludeImageLinksInMarkdownDocument"),d=this.signatureFactory.applyFloatConfig({preferTop:this.config.preferAbove,autoHide:!1,offsetX:r,modes:["i","ic","s"],excludeImages:h},this.config.floatConfig);await this.signatureFactory.show(u,d)}echoSignature(e){var s;let{signatures:t,activeParameter:i}=e,r=y.env.columns;t=t.slice(0,y.env.cmdheight);let o=[];for(let a of t){let l=[],{label:u}=a;u=u.replace(/\n/g," "),u.length>=r-16&&(u=u.slice(0,r-16)+"...");let c=u.indexOf("(");if(c==-1)l=[{text:u,type:"Normal"}];else{l.push({text:u.slice(0,c),type:"Label"});let h=u.slice(c);if(o.length==0&&i!=null){let d=(s=a.parameters)==null?void 0:s[i];if(d){let g,f;if(typeof d.label=="string"){let p=h.slice(0),b=p.match(new RegExp("\\b"+d.label.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")+"\\b")),v=b?b.index:p.indexOf(d.label);v==-1?l.push({text:h,type:"Normal"}):(g=v,f=v+d.label.length)}else[g,f]=d.label,g=g-c,f=f-c;g!=null&&f!=null&&(l.push({text:h.slice(0,g),type:"Normal"}),l.push({text:h.slice(g,f),type:"MoreMsg"}),l.push({text:h.slice(f),type:"Normal"}))}}else l.push({text:h,type:"Normal"})}o.push(l)}this.nvim.callTimer("coc#ui#echo_signatures",[o],!0)}dispose(){Z(this.disposables),this.timer&&clearTimeout(this.timer)}};var Yh=C(H());le();Ce();z();Jt();yt();ke();V();var qte=C(Ei()),Ma=C(H());Ce();z();V();var Ote=C(H());Kf();yt();function Mte(n){let e=[],t=n.slice();return t.sort(Nte),t.forEach(i=>Bte(e,i,0)),e}function Nte(n,e){let t=n.selectionRange,i=e.selectionRange;return De(t.start,i.start)}function Bte(n,e,t){let{name:i,selectionRange:r,detail:o,kind:s,children:a,range:l,tags:u}=e,{start:c}=r||l,h={col:c.character+1,lnum:c.line+1,text:i,level:t,kind:Do(s),range:l,selectionRange:r};if(o&&(h.detail=o),u&&u.includes(Ote.SymbolTag.Deprecated)&&(h.deprecated=!0),n.push(h),a&&a.length){a.sort(Nte);for(let d of a)Bte(n,d,t+1)}}function HTe(n){return n&&!n.hasOwnProperty("location")}function Hte(n){return HTe(n[0])}var hx=class{constructor(e,t){this.bufnr=e;this.autoUpdateBufnrs=t;this.disposables=[];this._onDidUpdate=new Ma.Emitter;this.onDidUpdate=this._onDidUpdate.event;this.fetchSymbols=(0,qte.default)(()=>{this._fetchSymbols().logError()},global.hasOwnProperty("__TEST__")?10:500)}async getSymbols(){var t;let e=y.getDocument(this.bufnr);return e?(await e.patchChange(),this.autoUpdateBufnrs.add(this.bufnr),e.version==this.version&&((t=this.symbols)==null?void 0:t.length)?this.symbols:(this.cancel(),await this._fetchSymbols(),this.symbols)):[]}onChange(e){e.contentChanges.length!==0&&(this.cancel(),this.autoUpdateBufnrs.has(this.bufnr)&&this.fetchSymbols())}get textDocument(){var e;return(e=y.getDocument(this.bufnr))==null?void 0:e.textDocument}async _fetchSymbols(){let{textDocument:e}=this;if(!e)return;let{version:t}=e,i=this.tokenSource=new Ma.CancellationTokenSource,{token:r}=i,o=await A.getDocumentSymbol(e,r);if(this.tokenSource=void 0,o==null||r.isCancellationRequested)return;let s;Hte(o)?s=o:s=o.map(a=>{let l=Ma.DocumentSymbol.create(a.name,"",a.kind,a.location.range,a.location.range);return a.deprecated&&(l.tags=[Ma.SymbolTag.Deprecated]),l}),this.version=t,this.symbols=s,this._onDidUpdate.fire(s)}cancel(){this.fetchSymbols.clear(),this.tokenSource&&(this.tokenSource.cancel(),this.tokenSource.dispose(),this.tokenSource=null)}dispose(){this.cancel(),this.symbols=void 0,this._onDidUpdate.dispose(),Z(this.disposables)}};var gx=C(H());le();Ce();Oe();var Yte=C(H());wi();z();dD();function qTe(n){return n?typeof n.text=="string"&&typeof n.hlGroup=="string":!1}function YTe(n,e){return n.label===e.label&&n.deprecated===e.deprecated&&n.key===e.key}function WTe(n,e){return n.length!==e.length?!1:n.every((t,i)=>YTe(t,e[i]))}var dx=class{constructor(e){this.opts=e;this.disposables=[];this._onDidChangeTreeData=new Yte.Emitter;this.onDidChangeTreeData=this._onDidChangeTreeData.event;this.invokeCommand=`_invoke_${re()}`,this.disposables.push(oe.registerCommand(this.invokeCommand,async t=>{typeof e.handleClick=="function"?await e.handleClick(t):console.error("Handler not found")},null,!0)),typeof e.resolveActions=="function"&&(this.resolveActions=e.resolveActions.bind(this))}iterate(e,t,i,r){let o=r(e,t,i);if(o===!1)return!1;if(Array.isArray(e.children)){for(let s of e.children)if(this.iterate(s,e,i+1,r)===!1)return!1}return o}updateNodes(e,t,i,r=!0){let o=WTe(e,t),s=(a,l,u)=>{var h,d,g,f,p,b;let c=!1;for(let v of Object.keys(l))["children","key"].includes(v)||(a[v]=l[v]);if(((h=a.children)==null?void 0:h.length)&&!((d=l.children)!=null&&d.length)&&(delete a.children,c=!0),!((g=a.children)!=null&&g.length)&&((f=l.children)==null?void 0:f.length)&&(a.children=l.children,c=!0),c){u&&this._onDidChangeTreeData.fire(a);return}((p=a.children)==null?void 0:p.length)&&((b=l.children)==null?void 0:b.length)&&this.updateNodes(a.children,l.children,a,u)};if(o)for(let a=0;a!l.has(g)&&d.key==c.key):h=a.findIndex((d,g)=>!l.has(g)&&d.label==c.label),h===-1)e[u]=c;else{l.add(h);let d=a[h];s(d,c,!1),e[u]=d}}r&&this._onDidChangeTreeData.fire(i)}}update(e,t){if(!!this.data)return t?(this.data=e||[],this._onDidChangeTreeData.fire(void 0)):this.updateNodes(this.data,e||[],void 0),this.data}getTreeItem(e){var o;let t=e.label,{expandLevel:i}=this.opts,r;if(!((o=e.children)!=null&&o.length))r=new So(t);else if(i&&i>0){let s=this.getLevel(e),a=s&&s<=i?2:1;r=new So(t,a)}else r=new So(t,1);if(r.description=e.description,e.deprecated&&(r.deprecated=!0),e.tooltip&&(r.tooltip=e.tooltip),qTe(e.icon))r.icon=e.icon;else if(typeof this.opts.resolveIcon=="function"){let s=this.opts.resolveIcon(e);s&&(r.icon=s)}return r}async getChildren(e){if(e)return e.children||[];if(this.data)return this.data;let t=await Promise.resolve(this.opts.provideData());if(!Array.isArray(t))throw new Error("Unable to fetch data");return this.data=t,t}getParent(e){if(!this.data)return;let t;for(let i of this.data)if(this.iterate(i,null,0,(o,s)=>{if(o===e)return t=s,!1})===!1)break;return t}getLevel(e){if(!this.data)return;let t=0;for(let i of this.data)if(this.iterate(i,null,1,(o,s,a)=>{if(o===e)return t=a,!1})===!1)break;return t}async resolveTreeItem(e,t,i){if(typeof this.opts.resolveItem=="function"){let r=await Promise.resolve(this.opts.resolveItem(e,t,i));r&&Object.assign(e,r)}return e.command||(e.command={title:`invoke ${t.label}`,command:this.invokeCommand,arguments:[t]}),e}dispose(){this.data=[],this._onDidChangeTreeData.dispose(),typeof this.opts.onDispose=="function"&&this.opts.onDispose(),Z(this.disposables)}};FD();z();yt();ke();V();var pat=q()("symbols-outline"),fx=class{constructor(e,t,i){this.nvim=e;this.buffers=t;this.handler=i;this.treeViewList=[];this.providersMap=new Map;this.sortByMap=new Map;this.disposables=[];this.loadConfiguration(),y.onDidChangeConfiguration(this.loadConfiguration,this,this.disposables),y.onDidCloseTextDocument(async r=>{let{bufnr:o}=r,s=this.providersMap.get(o);!s||await e.call("bufloaded",[o])||(this.providersMap.delete(o),s.dispose())},null,this.disposables),k.onDidChangeActiveTextEditor(async r=>{if(!this.config.checkBufferSwitch)return;this.treeViewList.find(s=>s.visible&&s.targetTabnr==r.tabpagenr)&&(await this.showOutline(r.document.bufnr,r.tabpagenr),await e.command(`noa call win_gotoid(${r.winid})`))},null,this.disposables),E.on("CursorHold",async r=>{if(!this.config.followCursor||!this.providersMap.get(r))return;let s=await e.call("tabpagenr"),a=this.treeViewList.find(u=>u.visible&&u.targetBufnr==r&&u.targetTabnr==s);if(!a)return;let l=await k.getCursorPosition();await this.revealPosition(a,l)},null,this.disposables)}async revealPosition(e,t){let i,r=a=>{if(ut(t,a.range)!=0)return!1;if(i=a,Array.isArray(a.children)){for(let l of a.children)if(l.kind!==gx.SymbolKind.Variable&&r(l))break}return!0},o=this.providersMap.get(e.targetBufnr);if(!o)return;let s=await Promise.resolve(o.getChildren());for(let a of s)if(r(a))break;i&&await e.reveal(i)}loadConfiguration(e){if(!e||e.affectsConfiguration("outline")){let t=y.getConfiguration("outline");this.config={splitCommand:t.get("splitCommand"),switchSortKey:t.get("switchSortKey"),followCursor:t.get("followCursor"),keepWindow:t.get("keepWindow"),expandLevel:t.get("expandLevel"),autoWidth:t.get("autoWidth"),checkBufferSwitch:t.get("checkBufferSwitch"),detailAsDescription:t.get("detailAsDescription"),sortBy:t.get("sortBy"),showLineNumber:t.get("showLineNumber"),codeActionKinds:t.get("codeActionKinds")}}}convertSymbolToNode(e,t){var s;let i=[],{detailAsDescription:r,showLineNumber:o}=this.config;return r&&e.detail&&i.push(e.detail),o&&i.push(`${e.selectionRange.start.line+1}`),{label:e.name,tooltip:r?void 0:e.detail,description:i.join(" "),icon:this.handler.getIcon(e.kind),deprecated:(s=e.tags)==null?void 0:s.includes(gx.SymbolTag.Deprecated),kind:e.kind,range:e.range,selectRange:e.selectionRange,children:Array.isArray(e.children)?e.children.map(a=>this.convertSymbolToNode(a,t)).sort(t):void 0}}setMessage(e,t){let i=this.treeViewList.filter(r=>r.valid&&r.targetBufnr==e);i&&i.forEach(r=>{r.message=t})}convertSymbols(e,t){let i=this.getSortBy(e),r=(o,s)=>i==="name"?o.labelthis.convertSymbolToNode(o,r)).sort(r)}onSymbolsUpdate(e,t){let i=this.providersMap.get(e);i&&i.update(this.convertSymbols(e,t))}createProvider(e){let{nvim:t}=this,i,r=new dx({expandLevel:this.config.expandLevel,provideData:async()=>{let o=this.buffers.getItem(e);if(!o)throw new Error("Document not attached");let s=y.getDocument(e);if(!A.hasProvider("documentSymbol",s.textDocument))throw new Error("Document symbol provider not found");let a=A.getDocumentSymbolMetadata(s.textDocument);a&&a.label&&this.treeViewList.filter(c=>c.valid&&c.targetBufnr==e).forEach(c=>c.description=a.label),this.setMessage(e,"Loading document symbols");let l=await o.getSymbols();if(!l||l.length==0)throw new Error("Empty symbols returned from language server. ");return this.setMessage(e,void 0),this.convertSymbols(e,l)},handleClick:async o=>{let s=await t.call("bufwinnr",[e]);if(s==-1)return;t.pauseNotification(),t.command(`${s}wincmd w`,!0);let a=o.selectRange.start;t.call("coc#cursor#move_to",[a.line,a.character],!0),t.command("normal! zz",!0);let l=t.createBuffer(e);l.highlightRanges("outline-hover","CocHoverRange",[o.selectRange]),t.command("redraw",!0),await t.resumeNotification(),setTimeout(()=>{l.clearNamespace("outline-hover"),t.command("redraw",!0)},global.hasOwnProperty("__TEST__")?10:300)},resolveActions:async(o,s)=>{let a=await t.call("bufwinnr",[e]);if(a==-1)return;let l=y.getDocument(e);return[...(await this.handler.getCodeActions(l,s.range,this.config.codeActionKinds)).map(h=>({title:h.title,handler:async()=>{let d=s.range.start;await t.command(`${a}wincmd w`),await this.nvim.call("coc#cursor#move_to",[d.line,d.character]),await this.handler.applyCodeAction(h)}})),{title:"Visual Select",handler:async h=>{await t.command(`${a}wincmd w`),await k.selectRange(h.range)}}]},onDispose:()=>{i&&i.dispose();for(let o of this.treeViewList)o.provider===r&&o.dispose()}});return r}getSortBy(e){var t;return(t=this.sortByMap.get(e))!=null?t:this.config.sortBy}async showOutline(e,t){this.providersMap.has(e)||this.providersMap.set(e,this.createProvider(e));let i=this.treeViewList.find(o=>o.valid&&o.targetBufnr==e&&o.targetTabnr==t);if(!i){i=new au("OUTLINE",{autoWidth:this.config.autoWidth,bufhidden:"hide",enableFilter:!0,treeDataProvider:this.providersMap.get(e)});let o=this.getSortBy(e);i.description=`${o[0].toUpperCase()}${o.slice(1)}`,this.treeViewList.push(i),i.onDispose(()=>{let s=this.treeViewList.findIndex(a=>a===i);s!==-1&&this.treeViewList.splice(s,1)})}return await i.show(this.config.splitCommand)&&i.registerLocalKeymap("n",this.config.switchSortKey,async()=>{let o=["category","name","position"],s=this.getSortBy(e),a=o.map(d=>({text:d,disabled:d===s})),l=await k.showMenuPicker(a,{title:"Choose sort method"});if(l<0)return;let u=o[l];this.sortByMap.set(e,u),this.treeViewList.filter(d=>d.targetBufnr==e).forEach(d=>{d.description=`${u[0].toUpperCase()}${u.slice(1)}`});let h=this.buffers.getItem(e);h&&h.symbols&&this.onSymbolsUpdate(e,h.symbols)}),i}async show(e){let[t,i,r,o]=await this.nvim.eval('[&filetype,bufnr("%"),tabpagenr(),win_getid()]');if(t==="coctree")return;let s=await k.getCursorPosition(),a=await this.showOutline(i,r);if(e==1||e===void 0&&this.config.keepWindow)await this.nvim.command(`noa call win_gotoid(${o})`);else if(this.config.followCursor){let l=a.onDidRefrash(async()=>{l.dispose(),await this.nvim.eval("&filetype")=="coctree"&&a.visible&&await this.revealPosition(a,s)})}}has(e){return this.providersMap.has(e)}async hide(){let e=await this.nvim.call("coc#window#find",["cocViewId","OUTLINE"]);e!=-1&&await this.nvim.call("coc#window#close",[e])}dispose(){for(let e of this.treeViewList)e.dispose();this.treeViewList=[];for(let e of this.providersMap.values())e.dispose();this.providersMap.clear(),Z(this.disposables)}};var px=class{constructor(e,t){this.nvim=e;this.handler=t;this.disposables=[];this.autoUpdateBufnrs=new Set;this.buffers=y.registerBufferSync(i=>{if(i.buftype!="")return;let r=new hx(i.bufnr,this.autoUpdateBufnrs);return r.onDidUpdate(o=>{!this.outline||this.outline.onSymbolsUpdate(r.bufnr,o)}),r}),this.outline=new fx(e,this.buffers,t),E.on("CursorHold",async i=>{!this.functionUpdate||!this.buffers.getItem(i)||await this.getCurrentFunctionSymbol(i)},null,this.disposables),E.on("InsertEnter",i=>{let r=this.buffers.getItem(i);r&&r.cancel()},null,this.disposables)}get functionUpdate(){return y.getConfiguration("coc.preferences").get("currentFunctionSymbolAutoUpdate",!1)}get labels(){return y.getConfiguration("suggest").get("completionItemKindLabels",{})}async getWorkspaceSymbols(e){this.handler.checkProvier("workspaceSymbols",null);let t=new Yh.CancellationTokenSource;return await A.getWorkspaceSymbols(e,t.token)}async resolveWorkspaceSymbol(e){var i;if((i=e.location)!=null&&i.uri)return e;let t=new Yh.CancellationTokenSource;return await A.resolveWorkspaceSymbol(e,t.token)}async getDocumentSymbols(e){if(!e){let r=await y.document;if(!r||r.isCommandLine||!r.attached)return;await bt(1),e=r.bufnr}let t=this.buffers.getItem(e);if(!t)return;let i=await t.getSymbols();return i?Mte(i):void 0}async getCurrentFunctionSymbol(e){e||(e=await this.nvim.call("bufnr",["%"]));let t=y.getDocument(e);if(!t||!t.attached||!A.hasProvider("documentSymbol",t.textDocument))return;let i=await k.getCursorPosition(),r=await this.getDocumentSymbols(e),o=this.nvim.createBuffer(e);if(!r||r.length===0)return o.setVar("coc_current_function","",!0),this.nvim.call("coc#util#do_autocmd",["CocStatusChange"],!0),"";r=r.filter(a=>["Class","Method","Function","Struct"].includes(a.kind));let s="";for(let a of r.reverse())if(a.range&&ut(i,a.range)==0&&!a.text.endsWith(") callback")){s=a.text;let l=this.labels[a.kind.toLowerCase()];l&&(s=`${l} ${s}`);break}return this.functionUpdate&&(o.setVar("coc_current_function",s,!0),this.nvim.call("coc#util#do_autocmd",["CocStatusChange"],!0)),s}async selectSymbolRange(e,t,i){let{doc:r}=await this.handler.getCurrentState();this.handler.checkProvier("documentSymbol",r.textDocument);let o;if(t)o=await k.getSelectedRange(t);else{let l=await k.getCursorPosition();o=Yh.Range.create(l,l)}let s=await this.getDocumentSymbols(r.bufnr);if(!s||s.length===0){k.showMessage("No symbols found","warning");return}s=s.filter(l=>i.includes(l.kind));let a;for(let l of s.reverse())if(l.range&&!Fe(l.range,o)&&Pi(o,l.range)){a=l.range;break}if(e&&a){let{start:l,end:u}=a,c=r.getline(l.line+1),h=r.getline(u.line-1);a=Yh.Range.create(l.line+1,c.match(/^\s*/)[0].length,u.line-1,h.length)}a?await k.selectRange(a):["v","V",""].includes(t)&&await this.nvim.command("normal! gv")}async showOutline(e){await this.outline.show(e)}async hideOutline(){await this.outline.hide()}hasOutline(e){return this.outline.has(e)}dispose(){this.outline.dispose(),this.buffers.dispose(),Z(this.disposables)}};Kf();var Wte=C(Ei()),mx=C(H());le();Ce();yt();Pe();ke();V();var ZTe=q()("handler-linkedEditing"),bx=class{constructor(e,t){this.nvim=e;this.changing=!1;this.checkPosition=(0,Wte.default)(this._checkPosition,global.__TEST__?10:100),t.addDisposable(E.on("CursorMoved",(i,r)=>{this.cancel(),this.checkPosition(i,r)})),t.addDisposable(E.on("CursorMovedI",(i,r)=>{this.cancel(),this.checkPosition(i,r)})),t.addDisposable(k.onDidChangeActiveTextEditor(()=>{this.cancel(),this.cancelEdit()})),t.addDisposable(E.on("InsertCharPre",(i,r)=>{if(r!==this.bufnr)return;let o=y.getDocument(r);this.wordPattern?new RegExp(this.wordPattern).test(i)||this.cancelEdit():o.isWord(i)||this.cancelEdit()})),t.addDisposable(y.onDidChangeTextDocument(async i=>{await this.onChange(i)}))}cancelEdit(){var e;(e=this.window)==null||e.clearMatchGroup("^CocLinkedEditing"),this.ranges=void 0,this.window=void 0,this.bufnr=void 0}async onChange(e){if(e.bufnr!==this.bufnr||this.changing||!this.ranges)return;if(e.contentChanges.length===0){this.doHighlights();return}let t=e.contentChanges[0],{text:i,range:r}=t,o=this.ranges.filter(s=>!(!Dl(r,s.range)||yb(r,s.range)&&(i.includes(` -`)||!Ct(r))));if(o.length==1&&Pi(r,o[0].range)){if(i.includes(` -`)){this.cancelEdit();return}ZTe.debug("affected single range"),await this.applySingleEdit(o[0],{range:r,newText:i})}else this.cancelEdit()}async applySingleEdit(e,t){let{bufnr:i,ranges:r}=this,o=y.getDocument(i);r.filter(c=>c!==e&&c.position.line==e.position.line).forEach(c=>c.adjustFromEdit(t));let a=BD(e,t.range,t.newText),l=lp(a);r.forEach(c=>c.applyChange(a));let u=r.filter(c=>c!==e).map(c=>c.textEdit);if(this.changing=!0,await o.applyEdits(u,!0,!0),this.changing=!1,l!=0)for(let c of r){let h=up(c,this.ranges,e);c.move(h*l)}this.doHighlights()}doHighlights(){let{window:e,ranges:t}=this;e&&t&&(this.nvim.pauseNotification(),e.clearMatchGroup("^CocLinkedEditing"),e.highlightRanges("CocLinkedEditing",t.map(i=>i.range),99,!0),this.nvim.resumeNotification(!0,!0))}_checkPosition(e,t){if(E.pumvisible||!y.isAttached(e))return;let i=y.getDocument(e);if(!y.getConfiguration("coc.preferences",i.uri).get("enableLinkedEditing",!1)||!A.hasProvider("linkedEditing",i.textDocument))return;let s=Ui(i.getline(t[0]-1),t[1]-1),a=mx.Position.create(t[0]-1,s);if(this.ranges){if(this.ranges.some(l=>ut(a,l.range)==0))return;this.cancelEdit()}this.enable(i,a)}async enable(e,t){let i=e.textDocument,o=(this.tokenSource=new mx.CancellationTokenSource).token,s=await this.nvim.window,a=await A.provideLinkedEdits(i,t,o);if(o.isCancellationRequested||!a||a.ranges.length==0)return;let l=a.ranges.map(u=>new jh(u.start.line,u.start.character,i.getText(u)));this.wordPattern=a.wordPattern,this.bufnr=e.bufnr,this.window=s,this.ranges=l,this.doHighlights()}cancel(){this.tokenSource&&(this.tokenSource.cancel(),this.tokenSource=null)}};le();Ce();V();var Zte=C(Ei()),Wh=C(H());Ce();Jk();yt();var JTe=global.hasOwnProperty("__TEST__")?10:100,$Te="CocInlayHint",yx=class{constructor(e,t,i){this.nvim=e;this.doc=t;this.config=i;this.regions=new hu;this.currentHints=[];this._onDidRefresh=new Wh.Emitter;this.onDidRefresh=this._onDidRefresh.event;this.render=(0,Zte.default)(()=>{this.renderRange()},JTe),this.render()}get current(){return this.currentHints}clearCache(){this.currentHints=[],this.regions.clear(),this.render.clear()}onChange(){this.clearCache(),this.cancel(),this.render()}cancel(){this.render.clear(),this.tokenSource&&(this.tokenSource.cancel(),this.tokenSource=null)}async renderRange(){if(this.cancel(),!A.hasProvider("inlayHint",this.doc.textDocument))return;this.tokenSource=new Wh.CancellationTokenSource;let e=this.tokenSource.token,t=await this.nvim.call("coc#window#visible_range",[this.doc.bufnr]);if(t==null||this.doc.dirty||e.isCancellationRequested||this.regions.has(t[0],t[1]))return;let i=Wh.Range.create(t[0]-1,0,t[1],0),r=await A.provideInlayHints(this.doc.textDocument,i,e);r==null||e.isCancellationRequested||(this.regions.add(t[0],t[1]),this.currentHints=this.currentHints.filter(o=>ut(o.position,i)!==0),this.currentHints.push(...r),this.setVirtualText(i,r))}setVirtualText(e,t){let{nvim:i,doc:r}=this,o=this.config.srcId,s=r.buffer,a={};for(let l of t){let u=[[uv(l),$Te]];a[l.position.line]===void 0?a[l.position.line]=u:(a[l.position.line].push([" ","Normal"]),a[l.position.line].push(u[0]))}i.pauseNotification(),s.clearNamespace(o,e.start.line,e.end.line+1);for(let l of Object.keys(a))s.setExtMark(o,Number(l),0,{virt_text:a[l],virt_text_pos:"eol",hl_mode:"combine"});i.resumeNotification(!1,!0),this._onDidRefresh.fire()}clearVirtualText(){let e=this.config.srcId;this.doc.buffer.clearNamespace(e)}dispose(){this.cancel()}};var vx=class{constructor(e,t){this.config={};e.createNamespace("coc-inlayHint").then(i=>{this.config.srcId=i}),this.buffers=y.registerBufferSync(i=>{if(!!y.has("nvim-0.5.0"))return new yx(e,i,this.config)}),t.addDisposable(this.buffers),t.addDisposable(A.onDidInlayHintRefresh(async i=>{for(let r of this.buffers.items)y.match(i,r.doc.textDocument)&&(r.clearCache(),A.hasProvider("inlayHint",r.doc.textDocument)?await r.renderRange():r.clearVirtualText())})),t.addDisposable(E.on("CursorMoved",i=>{this.refresh(i)})),t.addDisposable(E.on("WinScrolled",async i=>{let r=await e.call("winbufnr",[i]);r!=-1&&this.refresh(r)}))}getItem(e){return this.buffers.getItem(e)}refresh(e){let t=this.buffers.getItem(e);t&&t.render()}};var Llt=q()("Handler"),Dx=class{constructor(e){this.nvim=e;this.disposables=[];this.requestStatusItem=k.createStatusBarItem(0,{progress:!0}),E.on(["CursorMoved","CursorMovedI","InsertEnter","InsertSnippet","InsertLeave"],()=>{this.requestTokenSource&&(this.requestTokenSource.cancel(),this.requestTokenSource=null)},null,this.disposables),this.labels=y.getConfiguration("suggest").get("completionItemKindLabels",{}),this.fold=new UD(e,this),this.links=new zD(e,this),this.codeLens=new ZD(e),this.colors=new $D(e,this),this.format=new GD(e,this),this.symbols=new px(e,this),this.refactor=new nx(e,this),this.hover=new KD(e,this),this.locations=new VD(e,this),this.signature=new cx(e,this),this.rename=new rx(e,this),this.workspace=new ox(e,this),this.codeActions=new YD(e,this),this.commands=new XD(e,y.env),this.callHierarchy=new Hh(e,this),this.documentHighlighter=new QD(e,this),this.semanticHighlighter=new ux(e,this),this.selectionRange=new sx(e,this),this.linkedEditingHandler=new bx(e,this),this.inlayHintHandler=new vx(e,this),this.disposables.push({dispose:()=>{this.callHierarchy.dispose(),this.codeLens.dispose(),this.links.dispose(),this.refactor.dispose(),this.signature.dispose(),this.symbols.dispose(),this.hover.dispose(),this.locations.dispose(),this.colors.dispose(),this.documentHighlighter.dispose(),this.semanticHighlighter.dispose()}}),this.refactor.init()}async getCurrentState(){let{nvim:e}=this,[t,[i,r],o,s]=await e.eval("[bufnr('%'),coc#cursor#position(),win_getid(),mode()]");return{doc:y.getAttachedDocument(t),mode:s,position:wx.Position.create(i,r),winid:o}}addDisposable(e){this.disposables.push(e)}checkProvier(e,t){if(!A.hasProvider(e,t))throw new Error(`${e} provider not found for current buffer, your language server doesn't support it.`)}async withRequestToken(e,t,i){this.requestTokenSource&&(this.requestTokenSource.cancel(),this.requestTokenSource.dispose()),this.requestTimer&&clearTimeout(this.requestTimer);let r=this.requestStatusItem;this.requestTokenSource=new wx.CancellationTokenSource;let{token:o}=this.requestTokenSource;o.onCancellationRequested(()=>{r.text=`${e} request canceled`,r.isProgress=!1,this.requestTimer=setTimeout(()=>{r.hide()},500)}),r.isProgress=!0,r.text=`requesting ${e}`,r.show();let s;try{s=await Promise.resolve(t(o))}catch(a){this.nvim.echoError(a)}return this.requestTokenSource&&(this.requestTokenSource.dispose(),this.requestTokenSource=void 0),o.isCancellationRequested?null:(r.hide(),i&&(!s||Array.isArray(s)&&s.length==0)?(k.showMessage(`${e} not found`,"warning"),null):s)}getIcon(e){let{labels:t}=this,i=Do(e),r=typeof t.default=="string"?t.default:i[0].toLowerCase(),o=i=="Unknown"?"":t[i[0].toLowerCase()+i.slice(1)];return(!o||typeof o!="string")&&(o=r),{text:o,hlGroup:i=="Unknown"?"CocSymbolDefault":`CocSymbol${i}`}}async getCodeActions(e,t,i){return(await this.codeActions.getCodeActions(e,t,i)).filter(o=>!o.disabled)}async applyCodeAction(e){await this.codeActions.applyCodeAction(e)}async hasProvider(e){let t=await this.nvim.call("bufnr","%"),i=y.getDocument(t);return i?A.hasProvider(e,i.textDocument):!1}dispose(){this.requestTimer&&clearTimeout(this.requestTimer),Z(this.disposables)}};oD();$f();iu();Ul();z();ke();V();var Jte=q()("plugin"),xx=class extends $te.EventEmitter{constructor(e){super();this.nvim=e;this._ready=!1;this.actions=new Map;this.disposables=[];this.disposables.push(y.registerTextDocumentContentProvider("output",Xo.getProvider(e))),Object.defineProperty(y,"nvim",{get:()=>this.nvim}),Object.defineProperty(k,"cursors",{get:()=>this.cursors}),y.onDidChangeWorkspaceFolders(()=>{e.setVar("WorkspaceFolders",y.folderPaths,!0)},null,this.disposables),E.on("VimResized",(t,i)=>{y.env&&Object.assign(y.env,{columns:t,lines:i})},null,this.disposables),this.cursors=new qD(e),oe.init(e,this),this.addAction("checkJsonExtension",()=>{ye.has("coc-json")||k.showMessage("Run :CocInstall coc-json for json intellisense","more")}),this.addAction("rootPatterns",t=>this.handler.workspace.getRootPatterns(t)),this.addAction("ensureDocument",()=>this.handler.workspace.ensureDocument()),this.addAction("getConfig",async t=>this.handler.workspace.getConfiguration(t)),this.addAction("doAutocmd",async(t,...i)=>this.handler.workspace.doAutocmd(t,i)),this.addAction("openLog",async()=>this.handler.workspace.openLog()),this.addAction("attach",()=>y.attach()),this.addAction("detach",()=>y.detach()),this.addAction("doKeymap",async(t,i,r)=>this.handler.workspace.doKeymap(t,i,r)),this.addAction("registExtensions",(...t)=>ye.loadExtension(t)),this.addAction("snippetCheck",async(t,i)=>this.handler.workspace.snippetCheck(t,i)),this.addAction("snippetNext",()=>Ut.nextPlaceholder()),this.addAction("snippetPrev",()=>Ut.previousPlaceholder()),this.addAction("snippetCancel",()=>Ut.cancel()),this.addAction("openLocalConfig",()=>k.openLocalConfig()),this.addAction("bufferCheck",()=>k.bufferCheck()),this.addAction("showInfo",()=>this.handler.workspace.showInfo()),this.addAction("hasProvider",t=>this.handler.hasProvider(t)),this.addAction("hasSelected",()=>Ih.hasSelected()),this.addAction("listNames",()=>Di.names),this.addAction("listDescriptions",()=>Di.descriptions),this.addAction("listLoadItems",t=>Di.loadItems(t)),this.addAction("search",(...t)=>this.handler.refactor.search(t)),this.addAction("cursorsSelect",(t,i,r)=>this.cursors.select(t,i,r)),this.addAction("fillDiagnostics",t=>Ft.setLocationlist(t)),this.addAction("saveRefactor",t=>this.handler.refactor.save(t)),this.addAction("commandList",()=>this.handler.commands.getCommandList()),this.addAction("selectSymbolRange",(t,i,r)=>this.handler.symbols.selectSymbolRange(t,i,r)),this.addAction("openList",(...t)=>Di.start(t)),this.addAction("listResume",t=>Di.resume(t)),this.addAction("listCancel",()=>Di.cancel(!0)),this.addAction("listPrev",t=>Di.previous(t)),this.addAction("listNext",t=>Di.next(t)),this.addAction("listFirst",t=>Di.first(t)),this.addAction("listLast",t=>Di.last(t)),this.addAction("sendRequest",(t,i,r)=>Mi.sendRequest(t,i,r)),this.addAction("sendNotification",(t,i,r)=>Mi.sendNotification(t,i,r)),this.addAction("registNotification",(t,i)=>Mi.registNotification(t,i)),this.addAction("updateConfig",(t,i)=>y.configurations.updateUserConfig({[t]:i})),this.addAction("links",()=>this.handler.links.getLinks()),this.addAction("openLink",()=>this.handler.links.openCurrentLink()),this.addAction("pickColor",()=>this.handler.colors.pickColor()),this.addAction("colorPresentation",()=>this.handler.colors.pickPresentation()),this.addAction("highlight",()=>this.handler.documentHighlighter.highlight()),this.addAction("fold",t=>this.handler.fold.fold(t)),this.addAction("startCompletion",t=>Ih.startCompletion(t)),this.addAction("stopCompletion",()=>Ih.stop()),this.addAction("sourceStat",()=>Lt.sourceStats()),this.addAction("refreshSource",t=>Lt.refresh(t)),this.addAction("toggleSource",t=>Lt.toggleSource(t)),this.addAction("diagnosticRefresh",t=>Ft.refresh(t)),this.addAction("diagnosticInfo",()=>Ft.echoMessage()),this.addAction("diagnosticToggle",t=>Ft.toggleDiagnostic(t)),this.addAction("diagnosticToggleBuffer",(t,i)=>Ft.toggleDiagnosticBuffer(t,i)),this.addAction("diagnosticNext",t=>Ft.jumpNext(t)),this.addAction("diagnosticPrevious",t=>Ft.jumpPrevious(t)),this.addAction("diagnosticPreview",()=>Ft.preview()),this.addAction("diagnosticList",async()=>Ft.getDiagnosticList()),this.addAction("findLocations",(t,i,r,o)=>this.handler.locations.findLocations(t,i,r,o)),this.addAction("getTagList",()=>this.handler.locations.getTagList()),this.addAction("jumpDefinition",t=>this.handler.locations.gotoDefinition(t)),this.addAction("definitions",()=>this.handler.locations.definitions()),this.addAction("jumpDeclaration",t=>this.handler.locations.gotoDeclaration(t)),this.addAction("declarations",()=>this.handler.locations.declarations()),this.addAction("jumpImplementation",t=>this.handler.locations.gotoImplementation(t)),this.addAction("implementations",()=>this.handler.locations.implementations()),this.addAction("jumpTypeDefinition",t=>this.handler.locations.gotoTypeDefinition(t)),this.addAction("typeDefinitions",()=>this.handler.locations.typeDefinitions()),this.addAction("jumpReferences",t=>this.handler.locations.gotoReferences(t)),this.addAction("references",t=>this.handler.locations.references(t)),this.addAction("jumpUsed",t=>this.handler.locations.gotoReferences(t,!1)),this.addAction("doHover",t=>this.handler.hover.onHover(t)),this.addAction("definitionHover",t=>this.handler.hover.definitionHover(t)),this.addAction("getHover",()=>this.handler.hover.getHover()),this.addAction("showSignatureHelp",()=>this.handler.signature.triggerSignatureHelp()),this.addAction("documentSymbols",t=>this.handler.symbols.getDocumentSymbols(t)),this.addAction("symbolRanges",()=>this.handler.documentHighlighter.getSymbolsRanges()),this.addAction("selectionRanges",()=>this.handler.selectionRange.getSelectionRanges()),this.addAction("rangeSelect",(t,i)=>this.handler.selectionRange.selectRange(t,i)),this.addAction("rename",t=>this.handler.rename.rename(t)),this.addAction("getWorkspaceSymbols",t=>this.handler.symbols.getWorkspaceSymbols(t)),this.addAction("resolveWorkspaceSymbol",t=>this.handler.symbols.resolveWorkspaceSymbol(t)),this.addAction("formatSelected",t=>this.handler.format.formatCurrentRange(t)),this.addAction("format",()=>this.handler.format.formatCurrentBuffer()),this.addAction("commands",()=>this.handler.commands.getCommands()),this.addAction("services",()=>Mi.getServiceStats()),this.addAction("toggleService",t=>Mi.toggle(t)),this.addAction("codeAction",(t,i)=>this.handler.codeActions.doCodeAction(t,i)),this.addAction("organizeImport",()=>this.handler.codeActions.organizeImport()),this.addAction("fixAll",()=>this.handler.codeActions.doCodeAction(null,[fR.CodeActionKind.SourceFixAll])),this.addAction("doCodeAction",t=>this.handler.codeActions.applyCodeAction(t)),this.addAction("codeActions",(t,i)=>this.handler.codeActions.getCurrentCodeActions(t,i)),this.addAction("quickfixes",t=>this.handler.codeActions.getCurrentCodeActions(t,[fR.CodeActionKind.QuickFix])),this.addAction("codeLensAction",()=>this.handler.codeLens.doAction()),this.addAction("runCommand",(...t)=>this.handler.commands.runCommand(...t)),this.addAction("doQuickfix",()=>this.handler.codeActions.doQuickfix()),this.addAction("refactor",()=>this.handler.refactor.doRefactor()),this.addAction("repeatCommand",()=>this.handler.commands.repeat()),this.addAction("installExtensions",(...t)=>ye.installExtensions(t)),this.addAction("updateExtensions",t=>ye.updateExtensions(t)),this.addAction("extensionStats",()=>ye.getExtensionStates()),this.addAction("loadedExtensions",()=>ye.loadedExtensions()),this.addAction("watchExtension",t=>ye.watchExtension(t)),this.addAction("activeExtension",t=>ye.activate(t)),this.addAction("deactivateExtension",t=>ye.deactivate(t)),this.addAction("reloadExtension",t=>ye.reloadExtension(t)),this.addAction("toggleExtension",t=>ye.toggleExtension(t)),this.addAction("uninstallExtension",(...t)=>ye.uninstallExtension(t)),this.addAction("getCurrentFunctionSymbol",()=>this.handler.symbols.getCurrentFunctionSymbol()),this.addAction("showOutline",t=>this.handler.symbols.showOutline(t)),this.addAction("hideOutline",()=>this.handler.symbols.hideOutline()),this.addAction("getWordEdit",()=>this.handler.rename.getWordEdit()),this.addAction("addCommand",t=>this.handler.commands.addVimCommand(t)),this.addAction("addRanges",t=>this.cursors.addRanges(t)),this.addAction("currentWorkspacePath",()=>y.rootPath),this.addAction("selectCurrentPlaceholder",t=>Ut.selectCurrentPlaceholder(!!t)),this.addAction("codeActionRange",(t,i,r)=>this.handler.codeActions.codeActionRange(t,i,r)),this.addAction("incomingCalls",t=>this.handler.callHierarchy.getIncoming(t)),this.addAction("outgoingCalls",t=>this.handler.callHierarchy.getOutgoing(t)),this.addAction("showIncomingCalls",()=>this.handler.callHierarchy.showCallHierarchyTree("incoming")),this.addAction("showOutgoingCalls",()=>this.handler.callHierarchy.showCallHierarchyTree("outgoing")),this.addAction("inspectSemanticToken",()=>this.handler.semanticHighlighter.inspectSemanticToken()),this.addAction("semanticHighlight",()=>this.handler.semanticHighlighter.highlightCurrent()),this.addAction("showSemanticHighlightInfo",()=>this.handler.semanticHighlighter.showHighlightInfo())}addAction(e,t){if(this.actions.has(e))throw new Error(`Action ${e} already exists`);this.actions.set(e,t)}async init(){let{nvim:e}=this,t=Date.now();try{await ye.init(),await y.init(k),e.setVar("coc_workspace_initialized",!0,!0),Ut.init(),Ih.init(),Ft.init(),Di.init(e),Lt.init(),this.handler=new Dx(e),Mi.init(),ye.activateExtensions(),y.autocmds.setupDynamicAutocmd(!0),e.pauseNotification(),e.setVar("WorkspaceFolders",y.folderPaths,!0),e.setVar("coc_service_initialized",1,!0),e.call("coc#util#do_autocmd",["CocNvimInit"],!0),e.resumeNotification(!1,!0),this._ready=!0,await E.fire("ready",[]),Jte.info(`coc.nvim initialized with node: ${process.version} after ${Date.now()-t}ms`),this.emit("ready")}catch(i){e.echoError(i)}}get isReady(){return this._ready}get ready(){return this._ready?Promise.resolve():new Promise(e=>{this.once("ready",()=>{e()})})}hasAction(e){return this.actions.has(e)}async cocAction(e,...t){let i=this.actions.get(e);if(!i)throw new Error(`Action "${e}" doesn't exist`);let r=Date.now(),o=await Promise.resolve(i.apply(null,t)),s=Date.now()-r;return s>500&&Jte.warn(`Slow action "${e}" cost ${s}ms`),o}getHandler(){return this.handler}dispose(){this.removeAllListeners(),Z(this.disposables),ye.dispose(),Di.dispose(),y.dispose(),Xo.dispose(),k.dispose(),Lt.dispose(),Mi.stopAll(),Mi.dispose(),this.handler&&this.handler.dispose(),Ut.dispose(),oe.dispose(),Ih.dispose(),Ft.dispose()}};var Gte=C(nf());In();we();TT();var $r=q()("attach"),XTe=global.hasOwnProperty("__TEST__"),UTe=["installExtensions","updateExtensions"],Qte=(n,e=!0)=>{let t=(0,Xte.attach)(n,Ute.default.getLogger("node-client"),e);global.hasOwnProperty("__TEST__")||t.call("coc#util#path_replace_patterns").then(s=>{if(_t(s)){let a=O.file;O.file=l=>(l=l.replace(/\\/g,"/"),Object.keys(s).forEach(u=>l=l.replace(new RegExp("^"+u),s[u])),a(l))}}).logError(),t.setVar("coc_process_pid",process.pid,!0);let i=new xx(t),r=!1,o=!1;return t.on("notification",async(s,a)=>{switch(s){case"VimEnter":{!o&&r&&(o=!0,await i.init());break}case"Log":{$r.debug(...a);break}case"TaskExit":case"TaskStderr":case"TaskStdout":case"GlobalChange":case"PromptInsert":case"InputChar":case"MenuInput":case"OptionSet":case"PromptKeyPress":case"FloatBtnClick":$r.trace("Event: ",s,...a),await E.fire(s,a);break;case"CocAutocmd":$r.trace("Notification autocmd:",...a),await E.fire(a[0],a.slice(1));break;case"redraw":break;default:{if(!i.hasAction(s)){console.error(`action "${s}" does not exist`);return}try{i.isReady?$r.info("receive notification:",s,a):$r.warn(`Plugin not ready when received "${s}"`,a),await i.ready,await i.cocAction(s,...a)}catch(u){t.echoError(`Error on notification "${s}": ${u instanceof Error?u.message:u}`),$r.error(u)}}}}),t.on("request",async(s,a,l)=>{if(s=="redraw"){l.send();return}let u=setTimeout(()=>{$r.error("Request cost more than 3s",s,a)},3e3);try{if(s=="CocAutocmd")$r.trace("Request autocmd:",...a),await E.fire(a[0],a.slice(1)),l.send(void 0);else{if(!i.isReady&&!UTe.includes(s)){$r.warn(`Plugin not ready on request "${s}"`,a),l.send("Plugin not ready",!0);return}$r.info("Request action:",s,a);let c=await i.cocAction(s,...a);l.send(c)}clearTimeout(u)}catch(c){clearTimeout(u),l.send(c instanceof Error?c.message:c.toString(),!0),$r.error("Request error:",s,a,c)}}),t.channelId.then(async s=>{r=!0,XTe&&t.call("coc#rpc#set_channel",[s],!0);let{major:a,minor:l,patch:u}=Gte.default.parse(kb);t.setClientInfo("coc",{major:a,minor:l,patch:u},"remote",{},{}),await t.getVvar("vim_did_enter")&&!o&&(o=!0,await i.init())}).catch(s=>{console.error(`Channel create error: ${s.message}`)}),i};Object.defineProperty(console,"log",{value(){Cx&&Cx.info(...arguments)}});var Cx=q()("server");Qte({reader:process.stdin,writer:process.stdout});process.on("uncaughtException",function(n){let e="Uncaught exception: "+n.message;console.error(e),Cx.error("uncaughtException",n.stack)});process.on("unhandledRejection",function(n,e){n instanceof Error?console.error("UnhandledRejection: "+n.message+` -`+n.stack):console.error("UnhandledRejection: "+n),Cx.error("unhandledRejection ",e,n)}); +`;let{start:d,end:g}=s;l[0].range=nt.Range.create(d.line,0,g.line,0)}}return{contentChanges:l,bufnr:t,textDocument:i,original:r,originalLines:o}}var ane=require("child_process"),lne=require("events"),cL=x(require("path")),une=x(require("readline"));or();ba();Rc();Do();Ae();var hEe=W()("handler-search"),dEe=["--color","ansi","--colors","path:fg:black","--colors","line:fg:green","--colors","match:fg:red","--no-messages","--heading","-n"],gEe="\x1B",cne=class extends lne.EventEmitter{start(e,t,i){this.process=(0,ane.spawn)(e,t,{cwd:i}),this.process.on("error",c=>{this.emit("error",c.message)});let r=une.default.createInterface(this.process.stdout),o,s,a=[],l=[],u=!0;r.on("line",c=>{if(c.includes(gEe)){let h=Ig(c);if(h[0].foreground=="black"){s={filepath:cL.default.join(i,h[0].text),ranges:[]};return}if(h[0].foreground=="green"){let g=parseInt(h[0].text,10)-1,p=h[0].text.length+1;u&&(o=g,u=!1);let f="";for(let b of h){if(b.foreground=="red"){let w=g-o,D=f.length-p;l.push(Ye.create(w,D,w,D+b.text.length))}f+=b.text}let m=f.slice(p);a.push(m)}}else{let h=c.trim().length==0;s&&(h||c.trim()=="--")&&s.ranges.push({lines:a,highlights:l,start:o}),h&&(this.emit("item",s),s=null),a=[],l=[],u=!0}}),r.on("close",()=>{s&&(a.length&&s.ranges.push({lines:a,highlights:l,start:o}),this.emit("item",s)),a=l=s=null,this.emit("end")})}dispose(){this.process&&this.process.kill()}},OC=class{constructor(e,t="rg"){this.nvim=e;this.cmd=t}run(e,t,i){let{nvim:r,cmd:o}=this,{afterContext:s,beforeContext:a}=i.config,l=["-A",s.toString(),"-B",a.toString()].concat(dEe,e),u=pEe(e);u&&l.pop(),l.push("--",u?cL.default.isAbsolute(u)?u:`./${u.replace(/^\.\//,"")}`:"./"),this.task=new cne,this.task.start(o,l,t);let c=new si,h=0,d=0,g=Date.now(),p=[],f=async()=>{if(p.length==0)return;let m=p.slice();p=[];let b=await c.acquire();try{await i.addFileItems(m)}catch(w){hEe.error(w)}b()};return new Promise((m,b)=>{let w=setInterval(f,300);this.task.on("item",async D=>{h++,d=d+D.ranges.reduce((T,R)=>T+R.highlights.length,0),p.push(D)}),this.task.on("error",D=>{clearInterval(w),k.showMessage(`Error on command "${o}": ${D}`,"error"),this.task=null,b(new Error(D))}),this.task.on("end",async()=>{clearInterval(w);try{await f(),(await c.acquire())(),this.task.removeAllListeners(),this.task=null;let T=i.buffer;if(T){if(r.pauseNotification(),h==0)T.setLines(["No match found"],{start:1,end:2,strictIndexing:!1},!0),T.addHighlight({line:1,srcId:-1,colEnd:-1,colStart:0,hlGroup:"Error"}),T.setOption("modified",!1,!0);else{let R=new Hi;R.addText("Files","MoreMsg"),R.addText(": "),R.addText(`${h} `,"Number"),R.addText("Matches","MoreMsg"),R.addText(": "),R.addText(`${d} `,"Number"),R.addText("Duration","MoreMsg"),R.addText(": "),R.addText(`${Date.now()-g}ms`,"Number"),R.render(T,1,2)}T.setOption("modified",!1,!0),r.resumeNotification(!1,!0)}}catch(D){b(D);return}m()})})}abort(){var e;(e=this.task)==null||e.dispose()}};function pEe(n){if(n.length<2)return;let e=n.length;if(!n[e-1].startsWith("-")&&!n[e-2].startsWith("-"))return n[e-1]}var Tut=W()("handler-refactor"),fEe="__coc_refactor__",mEe=0,NC=class{constructor(e,t){this.nvim=e;this.handler=t;this.buffers=new Map;this.disposables=[];this._onCreate=new ed.Emitter;this.onCreate=this._onCreate.event;this.setConfiguration(),v.onDidChangeConfiguration(this.setConfiguration,this,this.disposables),P.on("BufUnload",i=>{let r=this.buffers.get(i);r&&(r.dispose(),this.buffers.delete(i))},null,this.disposables),v.onDidChangeTextDocument(i=>{let r=this.buffers.get(i.bufnr);r&&r.onChange(i)},null,this.disposables)}async init(){v.isNvim&&this.nvim.hasFunction("nvim_create_namespace")&&(this.srcId=await this.nvim.createNamespace("coc-refactor"))}has(e){return this.buffers.has(e)}setConfiguration(e){if(e&&!e.affectsConfiguration("refactor"))return;let t=v.getConfiguration("refactor");this.config=Object.assign(this.config||{},{afterContext:t.get("afterContext",3),beforeContext:t.get("beforeContext",3),openCommand:t.get("openCommand","edit"),saveToFile:t.get("saveToFile",!0),showMenu:t.get("showMenu","")})}async doRefactor(){let{doc:e,position:t}=await this.handler.getCurrentState();if(!j.hasProvider("rename",e.textDocument))throw new Error("Rename provider not found for current buffer");await e.synchronize();let i=await this.handler.withRequestToken("refactor",async r=>{let o=await j.prepareRename(e.textDocument,t,r);if(r.isCancellationRequested)return null;if(o===!1)throw new Error("Provider returns null on prepare, unable to rename at current position");let s=await j.provideRenameEdits(e.textDocument,t,"NewName",r);if(r.isCancellationRequested)return null;if(!s)throw new Error("Provider returns null for rename edits.");return s});i&&await this.fromWorkspaceEdit(i,e.filetype)}async search(e){let t=await this.createRefactorBuffer(),i=await this.nvim.call("getcwd",[]);await new OC(this.nvim).run(e,i,t)}async save(e){let t=this.buffers.get(e);if(t)return await t.save()}getBuffer(e){return this.buffers.get(e)}async createRefactorBuffer(e,t=!1){let{nvim:i}=this,[r,o]=await i.eval("[win_getid(),getcwd()]"),{openCommand:s}=this.config;i.pauseNotification(),i.command(`${s} ${fEe}${mEe++}`,!0),i.command("setl buftype=acwrite nobuflisted bufhidden=wipe nofen wrap conceallevel=2 concealcursor=n",!0),i.command("setl undolevels=-1 nolist nospell noswapfile foldmethod=expr foldexpr=coc#util#refactor_foldlevel(v:lnum)",!0),i.command("setl foldtext=coc#util#refactor_fold_text(v:foldstart)",!0),i.call("setline",[1,["Save current buffer to make changes",so]],!0),i.call("matchadd",["Comment","\\%1l"],!0),i.call("matchadd",["Conceal","^\\%u3000"],!0),i.call("matchadd",["Label","^\\%u3000\\zs\\S\\+"],!0),i.command("setl nomod",!0),e&&i.command(`runtime! syntax/${e}.vim`,!0),i.call("coc#util#do_autocmd",["CocRefactorOpen"],!0),await i.resumeNotification();let[a,l]=await i.eval('[bufnr("%"),win_getid()]'),u={fromWinid:r,winid:l,cwd:o};await v.document;let c=new MC(a,t?void 0:this.srcId,this.nvim,this.config,u);return this.buffers.set(a,c),c}async fromLines(e){let t=await this.createRefactorBuffer();return await t.buffer.setLines(e,{start:0,end:-1,strictIndexing:!1}),t}async fromLocations(e,t){if(!e||e.length==0)return;let i={},r={changes:i};for(let o of e){let s=i[o.uri]||[];s.push({range:o.range,newText:""}),i[o.uri]=s}return await this.fromWorkspaceEdit(r,t)}async fromWorkspaceEdit(e,t){if(!e||ZW(e))return;let i=[],{beforeContext:r,afterContext:o}=this.config,{changes:s,documentChanges:a}=e;if(!s){s={};for(let u of a||[])if(ed.TextDocumentEdit.is(u)){let{textDocument:c,edits:h}=u;s[c.uri]=h}}for(let u of Object.keys(s)){let c=await this.getLineCount(u),h=s[u],d=[],g=null,p=null,f=[];h.sort((m,b)=>m.range.start.line-b.range.start.line);for(let m of h){let{line:b}=m.range.start,w=Math.max(0,b-r);g!=null&&w({range:s,newText:r}))}}}async rename(e){let{doc:t,position:i}=await this.handler.getCurrentState();this.handler.checkProvier("rename",t.textDocument),await t.synchronize();let r=new Af.CancellationTokenSource().token,o=await j.prepareRename(t.textDocument,i,r);if(o===!1)return k.showWarningMessage("Invalid position for rename"),!1;let s;if(!e){Af.Range.is(o)?(s=t.textDocument.getText(o),await k.moveTo(o.start)):o&&typeof o.placeholder=="string"?s=o.placeholder:s=await this.nvim.eval('expand("")');let l=v.getConfiguration("coc.preferences");e=await k.requestInput("New name",l.get("renameFillCurrent",!0)?s:void 0)}if(e===""&&k.showWarningMessage("Empty word, rename canceled"),!e)return!1;let a=await j.provideRenameEdits(t.textDocument,i,e,r);return r.isCancellationRequested||!a?!1:(await v.applyEdit(a),this.nvim.redrawVim(),!0)}};Ee();var hL=x(require("fs")),gne=x(require("path"));Oo();$r();ne();yu();var dne=W()("handler-workspace"),HC=class{constructor(e,t){this.nvim=e;this.handler=t}async openLog(){let e=dne.logfile;await v.jumpTo(I.file(e).toString())}async doAutocmd(e,t){await v.autocmds.doAutocmd(e,t)}async getConfiguration(e){let t=await v.document;return v.getConfiguration(e,t?t.uri:void 0)}getRootPatterns(e){let t=v.getDocument(e);return t?{buffer:v.workspaceFolderControl.getRootPatterns(t,0),server:v.workspaceFolderControl.getRootPatterns(t,1)||[],global:v.workspaceFolderControl.getRootPatterns(t,2)}:null}async ensureDocument(){let e=await v.document;return e&&!e.isCommandLine&&e.attached}async doKeymap(e,t="",i){return await v.keymaps.doKeymap(e,t,i)}async snippetCheck(e,t){if(e&&!Pe.has("coc-snippets"))return this.nvim.echoError("coc-snippets required for check expand status!"),!1;if(t&&ei.jumpable())return!0;if(e){let i=Pe.getExtensionApi("coc-snippets");if(i&&i.hasOwnProperty("expandable")&&await Promise.resolve(i.expandable()))return!0}return!1}async showInfo(){let e=[],t=v.version+"-578d2e34 2022-08-10 02:05:48 +0800";e.push("## versions"),e.push("");let r=(await this.nvim.call("execute",["version"])).trim().split(/\r?\n/,2)[0].replace(/\(.*\)/,"").trim();e.push("vim version: "+r+`${v.isVim?" "+v.env.version:""}`),e.push("node version: "+process.version),e.push("coc.nvim version: "+t),e.push("coc.nvim directory: "+gne.default.dirname(__dirname)),e.push("term: "+(process.env.TERM_PROGRAM||process.env.TERM)),e.push("platform: "+process.platform),e.push(""),e.push("## Log of coc.nvim"),e.push("");let o=dne.logfile;if(hL.default.existsSync(o)){let a=hL.default.readFileSync(o,{encoding:"utf8"});e.push(...a.split(/\r?\n/))}await this.nvim.command("vnew +setl\\ buftype=nofile\\ bufhidden=wipe\\ nobuflisted"),await(await this.nvim.buffer).setLines(e,{start:0,end:-1,strictIndexing:!1})}};var dL=x(q());Te();oi();_t();Ae();var qC=class{constructor(e,t){this.nvim=e;this.handler=t;this.selectionRange=null}async getSelectionRanges(){let{doc:e,position:t}=await this.handler.getCurrentState();return this.handler.checkProvier("selectionRange",e.textDocument),await e.synchronize(),await this.handler.withRequestToken("selection ranges",r=>j.getSelectionRanges(e.textDocument,[t],r))}async selectRange(e,t){let{nvim:i}=this,{doc:r}=await this.handler.getCurrentState();this.handler.checkProvier("selectionRange",r.textDocument);let o=[];if(!t&&(!this.selectionRange||!e))return;if(e){let u=await k.getSelectedRange(e);o.push(u.start,u.end)}else{let u=await k.getCursorPosition();o.push(u)}if(!t){let u=dL.Range.create(o[0],o[1]),{selectionRange:c}=this;for(;c&&c.parent&&!Xe(c.parent.range,u);)c=c.parent;c&&c.parent&&await k.selectRange(c.range);return}await r.synchronize();let s=await this.handler.withRequestToken("selection ranges",u=>j.getSelectionRanges(r.textDocument,o,u));if(!s||s.length==0)return;await i.eval("mode()")!="n"&&await i.eval(`feedkeys("\\", 'in')`);let l;if(s.length==1)l=s[0];else{let u=o[1]||o[0],c=dL.Range.create(o[0],u);for(l=s[0];l;){if(Xe(c,l.range)){l=l.parent;continue}if(mt(o[0],l.range)==0&&mt(u,l.range)==0)break;l=l.parent}}!l||(this.selectionRange=s[0],await k.selectRange(l.range))}};var pne=x(require("path")),js=x(q());Ee();Ei();we();Te();HR();cC();re();bs();ne();var hct=W()("Handler-callHierarchy");function yEe(n){return!!(n&&n.name&&n.kind&&js.Range.is(n.range)&&n.uri)}var $o=class{constructor(e,t){this.nvim=e;this.handler=t;this.disposables=[];this.highlightWinids=new Set;this.loadConfiguration(),v.onDidChangeConfiguration(this.loadConfiguration,this,this.disposables),this.disposables.push(he.registerCommand($o.commandId,async(i,r,o)=>{var l;let{nvim:s}=this;await s.call("win_gotoid",[i]),await v.jumpTo(r.uri,r.selectionRange.start,o);let a=await s.window;if(a.clearMatchGroup($o.rangesHighlight),a.highlightRanges($o.rangesHighlight,[r.selectionRange],10,!0),!!((l=r.ranges)!=null&&l.length)){if(r.sourceUri){let u=v.getDocument(r.sourceUri);if(!u)return;let c=await s.call("coc#compat#buf_win_id",[u.bufnr]);if(c==-1)return;c!=a.id&&(a=s.createWindow(c),a.clearMatchGroup($o.rangesHighlight))}a.highlightRanges($o.rangesHighlight,r.ranges,100,!0),this.highlightWinids.add(a.id)}},null,!0)),P.on("BufWinEnter",(i,r)=>{this.highlightWinids.has(r)&&(this.highlightWinids.delete(r),e.createWindow(r).clearMatchGroup($o.rangesHighlight))},null,this.disposables)}loadConfiguration(e){if(!e||e.affectsConfiguration("callHierarchy")){let t=v.getConfiguration("callHierarchy");this.config={splitCommand:t.get("splitCommand"),openCommand:t.get("openCommand"),enableTooltip:t.get("enableTooltip")}}}createProvider(e,t,i,r){let o=new js.Emitter,s,a,l=()=>{s&&(s.cancel(),s.dispose(),s=null)},u=(h,d)=>{let g=h.children;if(!Array.isArray(g))return;if(g.find(f=>f==d))return h;for(let f of g){let m=u(f,d);if(m)return m}},c={kind:r,onDidChangeTreeData:o.event,getTreeItem:h=>{var g;let d=new Wo(h.name,h.children?2:1);return this.config.enableTooltip&&(d.tooltip=pne.default.relative(v.cwd,I.parse(h.uri).fsPath)),d.description=h.detail,d.deprecated=(g=h.tags)==null?void 0:g.includes(js.SymbolTag.Deprecated),d.icon=this.handler.getIcon(h.kind),d.command={command:$o.commandId,title:"open location",arguments:[t,h,this.config.openCommand]},d},getChildren:async h=>{l(),s=new js.CancellationTokenSource;let{token:d}=s;if(!h){if(!a&&(a=await this.prepare(e,i,d),!(a!=null&&a.length)))return;for(let p of a){let f=await this.getChildren(e,p,c.kind,d);if(d.isCancellationRequested)break;Array.isArray(f)&&(p.children=f)}return a}if(h.children)return h.children;let g=await this.getChildren(e,h,c.kind,d);return s=null,d.isCancellationRequested?[]:(h.children=g,g)},resolveActions:()=>[{title:"Open in new tab",handler:async h=>{await he.executeCommand($o.commandId,t,h,"tabe")}},{title:"Show Incoming Calls",handler:h=>{a=[dn(h,["children","ranges","sourceUri"])],c.kind="incoming",o.fire(void 0)}},{title:"Show Outgoing Calls",handler:h=>{a=[dn(h,["children","ranges","sourceUri"])],c.kind="outgoing",o.fire(void 0)}},{title:"Dismiss",handler:async h=>{let d;for(let p of a)if(d=u(p,h),d)break;if(!d)return;let g=d.children.findIndex(p=>p===h);d.children.splice(g,1),o.fire(d)}}],dispose:()=>{l(),o.dispose(),a=void 0,o=void 0}};return c}async getChildren(e,t,i,r){let o=[];if(i=="incoming"){let s=await j.provideIncomingCalls(e,t,r);s&&(o=s.map(a=>Object.assign(a.from,{ranges:a.fromRanges})))}else{let s=await j.provideOutgoingCalls(e,t,r);s&&(o=s.map(a=>Object.assign(a.to,{ranges:a.fromRanges,sourceUri:t.uri})))}return o}async prepare(e,t,i){this.handler.checkProvier("callHierarchy",e);let r=await j.prepareCallHierarchy(e,t,i);return yEe(r)?[r]:r}async getCallHierarchyItems(e,t){let{doc:i,position:r}=await this.handler.getCurrentState(),o=new js.CancellationTokenSource;if(!e){await i.synchronize();let a=await this.prepare(i.textDocument,r,o.token);if(e=a?a[0]:void 0,!a)return}let s=t=="incoming"?"provideIncomingCalls":"provideOutgoingCalls";return await j[s](i.textDocument,e,o.token)}async getIncoming(e){return await this.getCallHierarchyItems(e,"incoming")}async getOutgoing(e){return await this.getCallHierarchyItems(e,"outgoing")}async showCallHierarchyTree(e){let{doc:t,position:i,winid:r}=await this.handler.getCurrentState();await t.synchronize();let o=this.createProvider(t.textDocument,r,i,e),s=new Cu("calls",{treeDataProvider:o});s.title=`${e.toUpperCase()} CALLS`,o.onDidChangeTreeData(a=>{a||(s.title=`${o.kind.toUpperCase()} CALLS`)}),s.onDidChangeVisibility(a=>{a.visible||o.dispose()}),this.disposables.push(s),await s.show(this.config.splitCommand)}dispose(){this.highlightWinids.clear(),$(this.disposables)}},td=$o;td.commandId="callHierarchy.reveal",td.rangesHighlight="CocSelectedRange";Ei();we();Te();cs();ba();re();So();Ne();ne();var fne=x(Oi()),ao=x(q());Te();var ku=class{constructor(){this.ranges=[]}get current(){let e=[];return this.ranges.sort((t,i)=>t[0]-i[0]),this.ranges.forEach(t=>{e.push(t[0],t[1])}),e}clear(){this.ranges=[]}add(e,t){e>t&&([e,t]=[t,e]);let{ranges:i}=this;if(i.length==0)i.push([e,t]);else{i.sort((l,u)=>l[0]-u[0]);let r,o,s=[];for(let l=0;lt||(s.push(l),r==null&&(r=Math.min(e,u[0])),o=Math.max(t,u[1]))}let a=s.length?i.filter((l,u)=>!s.includes(u)):i;this.ranges=a,r!=null&&o!=null?this.ranges.push([r,o]):this.ranges.push([e,t])}}has(e,t){return this.ranges.findIndex(r=>r[0]<=e&&r[1]>=t)!==-1}static mergeSpans(e){let t=[];for(let i of e){let r=t.findIndex(o=>!(i[1]o[1]));if(r==-1)t.push(i);else{let o=t[r];t[r]=[Math.min(i[0],o[0]),Math.max(i[1],o[1])]}}return t}};re();Ne();Ae();ne();var Tct=W()("semanticTokens-buffer"),bEe=15,id="CocSem",Xo="semanticTokens",vEe=50,YC=class{constructor(e,t,i){this.nvim=e;this.doc=t;this.config=i;this._dirty=!1;this.regions=new ku;this._onDidRefresh=new ao.Emitter;this.onDidRefresh=this._onDidRefresh.event;this.highlight=(0,fne.default)(()=>{this.doHighlight()},vEe),this.highlight()}get bufnr(){return this.doc.bufnr}onChange(){this.highlight()}onTextChange(){this.cancel()}async forceHighlight(){this.previousResults=void 0,this._highlights=void 0,this.clearHighlight(),this.cancel(),await this.doHighlight(!0)}async onShown(){if(this.shouldRangeHighlight)return;let{doc:e}=this;e.dirty||e.version===this._version||await this.doHighlight(!1,!0)}get hasProvider(){let{textDocument:e}=this.doc;return j.hasProvider("semanticTokens",e)||j.hasProvider("semanticTokensRange",e)}get hasLegend(){let{textDocument:e}=this.doc;return j.getLegend(e)!=null||j.getLegend(e,!0)!=null}get rangeProviderOnly(){let{textDocument:e}=this.doc;return!j.hasProvider("semanticTokens",e)&&j.hasProvider("semanticTokensRange",e)}get shouldRangeHighlight(){let{textDocument:e}=this.doc;return j.hasProvider("semanticTokensRange",e)&&this.previousResults==null}get lineCount(){return this.doc.lineCount}get highlights(){if(!!this._highlights&&this._highlights[0]==this.doc.version)return this._highlights[1]}get buffer(){return this.nvim.createBuffer(this.bufnr)}get enabled(){var e;return!this.config.filetypes.length||!v.env.updateHighlight||!((e=this.doc)!=null&&e.attached)||!this.hasLegend||!this.config.filetypes.includes("*")&&!this.config.filetypes.includes(this.doc.filetype)?!1:this.hasProvider}checkState(){if(!v.env.updateHighlight)throw new Error("Can't perform highlight update, highlight update requires vim >= 8.1.1719 or neovim >= 0.5.0");if(!this.doc.attached)throw new Error("Document not attached");let{filetypes:e}=this.config;if(!(e!=null&&e.includes("*"))&&!e.includes(this.doc.filetype))throw new Error(`Semantic tokens highlight not enabled for current filetype: ${this.doc.filetype}`);if(!this.hasProvider)throw new Error("SemanticTokens provider not found, your languageserver may not support it")}async getTokenRanges(e,t,i){let r=0,o=0,s=Date.now(),a=[];for(let l=0;lbEe){if(await yo(),i.isCancellationRequested)break;s=Date.now()}let u=e[l],c=e[l+1],h=e[l+2],d=t.tokenTypes[e[l+3]],g=t.tokenModifiers.filter((b,w)=>e[l+4]&1<=i))continue;let u={lnum:l,hlGroup:a.hlGroup,colStart:a.range[1],colEnd:a.range[2],combine:a.combine};r.includes(a.tokenType)&&(u.end_incl=!0,u.start_incl=!0),s.push(u)}return s}async doHighlight(e=!1,t=!1){var l;if(this.cancel(),!this.enabled)return;let r=(this.tokenSource=new ao.CancellationTokenSource).token;if(!t&&(await this.nvim.eval(`get(get(getbufinfo(${this.bufnr}),0,{}),'hidden',0)`)==1||r.isCancellationRequested))return;if(this.shouldRangeHighlight){let u=this.rangeTokenSource=new ao.CancellationTokenSource;if(await this.doRangeHighlight(u.token),r.isCancellationRequested||this.rangeProviderOnly)return}let{doc:o}=this,s=o.version,a;if(s===((l=this.previousResults)==null?void 0:l.version))if(this._highlights&&this._highlights[0]==s)a=this._highlights[1];else{let u=this.previousResults.tokens,c=j.getLegend(o.textDocument);a=await this.getTokenRanges(u,c,r),a&&(this._highlights=[s,a])}else a=await this.requestAllHighlights(r,e),a&&(this._highlights=[s,a]);if(!(!a||r.isCancellationRequested)){if(!this._dirty||a.length<200){let u=this.toHighlightItems(a),c=await k.diffHighlights(this.bufnr,Xo,u,void 0,r);if(r.isCancellationRequested||!c)return;this._dirty=!0,this._version=s;let h=this.config.highlightPriority;await k.applyDiffHighlights(this.bufnr,Xo,h,c)}else this.regions.clear(),await this.highlightRegions(r);this._onDidRefresh.fire()}}async waitRefresh(){return new Promise((e,t)=>{let i=setTimeout(()=>{r.dispose(),t(new Error("Timeout after 500ms"))},500),r=this.onDidRefresh(()=>{r.dispose(),clearTimeout(i),e()})})}async doRangeHighlight(e){if(!this.enabled)return;let{version:t}=this.doc,i=await this.requestRangeHighlights(e);if(!i||e.isCancellationRequested)return;let{highlights:r,start:o,end:s}=i;if(this.rangeProviderOnly||!this.previousResults){(!this._highlights||t!==this._highlights[0])&&(this._highlights=[t,[]]);let c=this._highlights[1],h=c.reduce((d,g)=>d.add(g.range[0]),new Set);r.forEach(d=>{h.has(d.range[0])||c.push(d)})}let a=this.toHighlightItems(r),l=this.config.highlightPriority,u=await k.diffHighlights(this.bufnr,Xo,a,[o,s],e);u&&(await k.applyDiffHighlights(this.bufnr,Xo,l,u,!0),this._dirty=!0)}async highlightRegions(e){let{regions:t,highlights:i,config:r,lineCount:o,bufnr:s}=this;if(!i)return;let a=r.highlightPriority,l=await this.nvim.call("coc#window#visible_ranges",[s]);if(e.isCancellationRequested||l.length===0)return;let u=v.env.lines;l.forEach(c=>{let h=c[0];c[0]=Math.max(0,Math.floor(h-u*1.5)),c[1]=Math.min(o,Math.ceil(c[1]+u*1.5),h+u*2)});for(let[c,h]of ku.mergeSpans(l)){if(t.has(c,h))continue;let d=this.toHighlightItems(i,c,h),g=await k.diffHighlights(s,Xo,d,[c,h],e);if(e.isCancellationRequested)break;t.add(c,h),g&&k.applyDiffHighlights(s,Xo,a,g,!0)}}async onCursorMoved(){if(this.cancel(!0),!this.enabled||this.doc.dirty)return;let t=(this.rangeTokenSource=new ao.CancellationTokenSource).token;await Pt(global.__TEST__?10:100),!t.isCancellationRequested&&(this.shouldRangeHighlight?await this.doRangeHighlight(t):await this.highlightRegions(t))}async requestRangeHighlights(e){let{nvim:t,doc:i}=this,r=await t.call("coc#window#visible_range",[this.bufnr]);if(!r||e.isCancellationRequested)return null;let o=Math.min(r[0]+v.env.lines*2,r[1]),s=ao.Range.create(r[0]-1,0,o,0),a=await j.provideDocumentRangeSemanticTokens(i.textDocument,s,e);if(!a||!ao.SemanticTokens.is(a)||e.isCancellationRequested)return null;let l=j.getLegend(i.textDocument,!0),u=await this.getTokenRanges(a.data,l,e);return e.isCancellationRequested?null:{highlights:u,start:r[0]-1,end:r[1]}}async requestAllHighlights(e,t){let{doc:i}=this,r=j.getLegend(i.textDocument),o=j.hasSemanticTokensEdits(i.textDocument),s=t?null:this.previousResults,a=i.version,l;if(o&&(s==null?void 0:s.resultId)?l=await j.provideDocumentSemanticTokensEdits(i.textDocument,s.resultId,e):l=await j.provideDocumentSemanticTokens(i.textDocument,e),e.isCancellationRequested||l==null)return;let u=[];return ao.SemanticTokens.is(l)?u=l.data:s&&Array.isArray(l.edits)&&(u=s.tokens,l.edits.forEach(c=>{u.splice(c.start,c.deleteCount?c.deleteCount:0,...c.data??[])})),this.previousResults={resultId:l.resultId,tokens:u,version:a},await this.getTokenRanges(u,r,e)}clearHighlight(){this.buffer.clearNamespace(Xo)}abandonResult(){this.previousResults=void 0}cancel(e=!1){this.rangeTokenSource&&(this.rangeTokenSource.cancel(),this.rangeTokenSource.dispose(),this.rangeTokenSource=null),!e&&(this.regions.clear(),this.highlight.clear(),this.tokenSource&&(this.tokenSource.cancel(),this.tokenSource.dispose(),this.tokenSource=null))}dispose(){this.cancel(),this.previousResults=void 0,this._highlights=void 0,this._onDidRefresh.dispose(),this.regions.clear()}};var Nct=W()("semanticTokens"),WC="Statement",ZC=class{constructor(e,t){this.nvim=e;this.handler=t;this.disposables=[];this.loadConfiguration(),this.floatFactory=new fi(e),v.onDidChangeConfiguration(this.loadConfiguration,this,this.disposables),he.register({id:"semanticTokens.checkCurrent",execute:async()=>{await this.showHighlightInfo()}},!1,"show semantic tokens highlight information of current buffer"),he.register({id:"semanticTokens.refreshCurrent",execute:()=>this.highlightCurrent()},!1,"refresh semantic tokens highlight of current buffer."),he.register({id:"semanticTokens.inspect",execute:()=>this.inspectSemanticToken()},!1,"Inspect semantic token information at cursor position."),he.register({id:"semanticTokens.clearCurrent",execute:async()=>{(await e.buffer).clearNamespace(Xo,0,-1)}},!1,"clear semantic tokens highlight of current buffer"),he.register({id:"semanticTokens.clearAll",execute:async()=>{let i=await e.buffers;for(let r of i)r.clearNamespace(Xo,0,-1)}},!1,"clear semantic tokens highlight of all buffers"),this.highlighters=v.registerBufferSync(i=>new YC(this.nvim,i,this.config)),j.onDidSemanticTokensRefresh(async i=>{let r=await this.nvim.call("coc#window#bufnrs");for(let o of this.highlighters.items){let s=v.getDocument(o.bufnr);!s||!v.match(i,s.textDocument)||(o.abandonResult(),r.includes(o.bufnr)&&o.highlight())}},null,this.disposables),P.on("BufWinEnter",async i=>{let r=this.highlighters.getItem(i);r&&await r.onShown()},null,this.disposables),P.on("CursorMoved",async i=>{let r=this.highlighters.getItem(i);r&&await r.onCursorMoved()},null,this.disposables)}loadConfiguration(e){var t;if(!e||e.affectsConfiguration("semanticTokens")){let i=[];(t=this.config)!=null&&t.highlightGroups?i=this.config.highlightGroups:i=v.env.semanticHighlights||[];let r=v.getConfiguration("semanticTokens");this.config=Object.assign(this.config||{},{highlightGroups:i,filetypes:r.get("filetypes",[]),highlightPriority:r.get("highlightPriority",2048),incrementTypes:r.get("incrementTypes",[]),combinedModifiers:r.get("combinedModifiers",[])})}}async inspectSemanticToken(){let e=await this.getCurrentItem();if(!e||!e.enabled){this.floatFactory.close();return}let[t,i,r]=await this.nvim.call("getcurpos",[]),s=(e.highlights??[]).find(a=>{let l=r-1;return a.range[0]===i-1&&l>=a.range[1]&&lh.hlGroup!=null).map(({hlGroup:h})=>h));for(let h of l)r.addTexts([{text:"-",hlGroup:"Comment"},{text:" "},{text:h,hlGroup:h}]);r.addLine(""),r.addLine("Tokens types that current Language Server supported:",WC),r.addLine("");let u=v.getDocument(i.bufnr),c=j.getLegend(u.textDocument)??j.getLegend(u.textDocument,!0);if(c.tokenTypes.length){for(let h of[...new Set(c.tokenTypes)]){let d=id+Cn(h);r.addTexts([{text:"-",hlGroup:"Comment"},{text:" "},{text:d,hlGroup:d}])}r.addLine("")}else r.addLine("No token types supported","Comment"),r.addLine("");if(r.addLine("Tokens modifiers that current Language Server supported:",WC),r.addLine(""),c.tokenModifiers.length){for(let h of[...new Set(c.tokenModifiers)]){let d=id+Cn(h);r.addTexts([{text:"-",hlGroup:"Comment"},{text:" "},{text:d,hlGroup:d}])}r.addLine("")}else r.addLine("No token modifiers exist","Comment"),r.addLine("")}catch(a){r.addLine(a instanceof Error?a.message:a.toString(),"Error")}t.pauseNotification();let s=o[0][2];r.render(t.createBuffer(s)),t.resumeNotification(!0,!0)}dispose(){this.floatFactory.dispose(),this.highlighters.dispose(),$(this.disposables)}};var Mf=x(q());we();Te();cs();re();Ne();ne();var Kct=W()("handler-signature"),JC=class{constructor(e,t){this.nvim=e;this.handler=t;this.disposables=[];this.signatureFactory=new fi(e),this.loadConfiguration(),this.disposables.push(this.signatureFactory),v.onDidChangeConfiguration(this.loadConfiguration,this,this.disposables),P.on("CursorMovedI",async(i,r)=>{let o=this.lastPosition;!o||o.bufnr==i&&o.lnum==r[0]&&o.col<=r[1]||this.signatureFactory.close()},null,this.disposables),P.on(["InsertLeave","BufEnter"],()=>{var i;(i=this.tokenSource)==null||i.cancel()},null,this.disposables),P.on("TextChangedI",()=>{this.config.hideOnChange&&this.signatureFactory.close()},null,this.disposables),P.on("TextInsert",async(i,r,o)=>{if(!this.config.trigger)return;let s=this.getTextDocument(i);!s||!j.shouldTriggerSignatureHelp(s.textDocument,o)||await this._triggerSignatureHelp(s,{line:r.lnum-1,character:r.pre.length},!1)},null,this.disposables)}getTextDocument(e){let t=v.getDocument(e);if(!(!t||t.isCommandLine||!t.attached))return t}loadConfiguration(e){if(!e||e.affectsConfiguration("signature")){let t=v.getConfiguration("signature"),i=t.get("target","float");i=="float"&&!v.floatSupported&&(i="echo"),this.config={target:i,floatConfig:t.get("floatConfig",{}),trigger:t.get("enable",!0),wait:Math.max(t.get("triggerSignatureWait",500),200),preferAbove:t.get("preferShownAbove",!0),hideOnChange:t.get("hideOnTextChange",!1)}}}async triggerSignatureHelp(){let{doc:e,position:t}=await this.handler.getCurrentState();return j.hasProvider("signature",e.textDocument)?await this._triggerSignatureHelp(e,t,!0,0):!1}async _triggerSignatureHelp(e,t,i=!0,r=0){var d;(d=this.tokenSource)==null||d.cancel();let o=this.tokenSource=new Mf.CancellationTokenSource,s=o.token;s.onCancellationRequested(()=>{o.dispose(),this.tokenSource=void 0});let{target:a}=this.config,l=this.timer=setTimeout(()=>{o.cancel()},this.config.wait);await e.patchChange(!0);let u=await j.getSignatureHelp(e.textDocument,t,s,{isRetrigger:this.signatureFactory.checkRetrigger(e.bufnr),triggerKind:i?Mf.SignatureHelpTriggerKind.Invoked:Mf.SignatureHelpTriggerKind.TriggerCharacter});if(clearTimeout(l),s.isCancellationRequested)return!1;if(!u||u.signatures.length==0)return this.signatureFactory.close(),!1;let{activeSignature:c,signatures:h}=u;if(c){let[g]=h.splice(c,1);g&&h.unshift(g)}return a=="echo"?this.echoSignature(u):await this.showSignatureHelp(e,t,u,r),!0}async showSignatureHelp(e,t,i,r){let{signatures:o,activeParameter:s}=i;s=typeof s=="number"?s:void 0;let a=null,l=r,u=o.reduce((g,p,f)=>{var D,T;let m=null,b=p.activeParameter??s;b===void 0&&((D=p.parameters)==null?void 0:D.length)>0&&(b=0);let w=p.label.indexOf("(");if(f==0&&typeof b=="number"){let R=(T=p.parameters)==null?void 0:T[b];if(R){let N=p.label.slice(w==-1?0:w);if(a=R.documentation,typeof R.label=="string"){let H=N.slice(0),X=H.match(new RegExp("\\b"+R.label.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")+"\\b")),B=X?X.index:H.indexOf(R.label);B!=-1&&(m=[B+w,B+R.label.length+w])}else m=R.label}}if(m==null&&(m=[w+1,w+1]),r==l&&(r=r+m[0]+1),g.push({content:p.label,filetype:e.filetype,active:m}),a){let R=typeof a=="string"?a:a.value;R.trim().length&&g.push({content:R,filetype:kg(p.documentation)?"markdown":"txt"})}if(f==0&&p.documentation){let{documentation:R}=p,N=typeof R=="string"?R:R.value;N.trim().length&&g.push({content:N,filetype:kg(p.documentation)?"markdown":"txt"})}return g},[]),c=e.getline(t.line,!1).slice(0,t.character);this.lastPosition={bufnr:e.bufnr,lnum:t.line+1,col:V(c)+1};let h=v.getConfiguration("coc.preferences").get("excludeImageLinksInMarkdownDocument"),d=this.signatureFactory.applyFloatConfig({preferTop:this.config.preferAbove,autoHide:!1,offsetX:r,modes:["i","ic","s"],excludeImages:h},this.config.floatConfig);await this.signatureFactory.show(u,d)}echoSignature(e){var s;let{signatures:t,activeParameter:i}=e,r=v.env.columns;t=t.slice(0,v.env.cmdheight);let o=[];for(let a of t){let l=[],{label:u}=a;u=u.replace(/\n/g," "),u.length>=r-16&&(u=u.slice(0,r-16)+"...");let c=u.indexOf("(");if(c==-1)l=[{text:u,type:"Normal"}];else{l.push({text:u.slice(0,c),type:"Label"});let h=u.slice(c);if(o.length==0&&i!=null){let d=(s=a.parameters)==null?void 0:s[i];if(d){let g,p;if(typeof d.label=="string"){let f=h.slice(0),m=f.match(new RegExp("\\b"+d.label.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")+"\\b")),b=m?m.index:f.indexOf(d.label);b==-1?l.push({text:h,type:"Normal"}):(g=b,p=b+d.label.length)}else[g,p]=d.label,g=g-c,p=p-c;g!=null&&p!=null&&(l.push({text:h.slice(0,g),type:"Normal"}),l.push({text:h.slice(g,p),type:"MoreMsg"}),l.push({text:h.slice(p),type:"Normal"}))}}else l.push({text:h,type:"Normal"})}o.push(l)}this.nvim.callTimer("coc#ui#echo_signatures",[o],!0)}dispose(){$(this.disposables),this.timer&&clearTimeout(this.timer)}};var nd=x(q());we();Te();re();oi();_t();Ae();ne();var Dne=x(Oi()),Qa=x(q());Te();re();ne();var mne=x(q());bf();_t();function yne(n){let e=[],t=n.slice();return t.sort(bne),t.forEach(i=>vne(e,i,0)),e}function bne(n,e){let t=n.selectionRange,i=e.selectionRange;return Fe(t.start,i.start)}function vne(n,e,t){let{name:i,selectionRange:r,detail:o,kind:s,children:a,range:l,tags:u}=e,{start:c}=r||l,h={col:c.character+1,lnum:c.line+1,text:i,level:t,kind:Ho(s),range:l,selectionRange:r};if(o&&(h.detail=o),u&&u.includes(mne.SymbolTag.Deprecated)&&(h.deprecated=!0),n.push(h),a&&a.length){a.sort(bne);for(let d of a)vne(n,d,t+1)}}function wEe(n){return n&&!n.hasOwnProperty("location")}function wne(n){return wEe(n[0])}var $C=class{constructor(e,t){this.bufnr=e;this.autoUpdateBufnrs=t;this.disposables=[];this._onDidUpdate=new Qa.Emitter;this.onDidUpdate=this._onDidUpdate.event;this.fetchSymbols=(0,Dne.default)(()=>{this._fetchSymbols().logError()},global.hasOwnProperty("__TEST__")?10:500)}async getSymbols(){var t;let e=v.getDocument(this.bufnr);return e?(await e.patchChange(),this.autoUpdateBufnrs.add(this.bufnr),e.version==this.version&&((t=this.symbols)==null?void 0:t.length)?this.symbols:(this.cancel(),await this._fetchSymbols(),this.symbols)):[]}onChange(e){e.contentChanges.length!==0&&(this.cancel(),this.autoUpdateBufnrs.has(this.bufnr)&&this.fetchSymbols())}get textDocument(){var e;return(e=v.getDocument(this.bufnr))==null?void 0:e.textDocument}async _fetchSymbols(){let{textDocument:e}=this;if(!e)return;let{version:t}=e,i=this.tokenSource=new Qa.CancellationTokenSource,{token:r}=i,o=await j.getDocumentSymbol(e,r);if(this.tokenSource=void 0,o==null||r.isCancellationRequested)return;let s;wne(o)?s=o:s=o.map(a=>{let l=Qa.DocumentSymbol.create(a.name,"",a.kind,a.location.range,a.location.range);return a.deprecated&&(l.tags=[Qa.SymbolTag.Deprecated]),l}),this.version=t,this.symbols=s,this._onDidUpdate.fire(s)}cancel(){this.fetchSymbols.clear(),this.tokenSource&&(this.tokenSource.cancel(),this.tokenSource.dispose(),this.tokenSource=null)}dispose(){this.cancel(),this.symbols=void 0,this._onDidUpdate.dispose(),$(this.disposables)}};var UC=x(q());we();Te();He();var Cne=x(q());Ei();re();ZD();function DEe(n){return n?typeof n.text=="string"&&typeof n.hlGroup=="string":!1}function CEe(n,e){return n.label===e.label&&n.deprecated===e.deprecated&&n.key===e.key}function xEe(n,e){return n.length!==e.length?!1:n.every((t,i)=>CEe(t,e[i]))}var XC=class{constructor(e){this.opts=e;this.disposables=[];this._onDidChangeTreeData=new Cne.Emitter;this.onDidChangeTreeData=this._onDidChangeTreeData.event;this.invokeCommand=`_invoke_${se()}`,this.disposables.push(he.registerCommand(this.invokeCommand,async t=>{typeof e.handleClick=="function"?await e.handleClick(t):console.error("Handler not found")},null,!0)),typeof e.resolveActions=="function"&&(this.resolveActions=e.resolveActions.bind(this))}iterate(e,t,i,r){let o=r(e,t,i);if(o===!1)return!1;if(Array.isArray(e.children)){for(let s of e.children)if(this.iterate(s,e,i+1,r)===!1)return!1}return o}updateNodes(e,t,i,r=!0){let o=xEe(e,t),s=(a,l,u)=>{var h,d,g,p,f,m;let c=!1;for(let b of Object.keys(l))["children","key"].includes(b)||(a[b]=l[b]);if(((h=a.children)==null?void 0:h.length)&&!((d=l.children)!=null&&d.length)&&(delete a.children,c=!0),!((g=a.children)!=null&&g.length)&&((p=l.children)==null?void 0:p.length)&&(a.children=l.children,c=!0),c){u&&this._onDidChangeTreeData.fire(a);return}((f=a.children)==null?void 0:f.length)&&((m=l.children)==null?void 0:m.length)&&this.updateNodes(a.children,l.children,a,u)};if(o)for(let a=0;a!l.has(g)&&d.key==c.key):h=a.findIndex((d,g)=>!l.has(g)&&d.label==c.label),h===-1)e[u]=c;else{l.add(h);let d=a[h];s(d,c,!1),e[u]=d}}r&&this._onDidChangeTreeData.fire(i)}}update(e,t){if(!!this.data)return t?(this.data=e||[],this._onDidChangeTreeData.fire(void 0)):this.updateNodes(this.data,e||[],void 0),this.data}getTreeItem(e){var o;let t=e.label,{expandLevel:i}=this.opts,r;if(!((o=e.children)!=null&&o.length))r=new Wo(t);else if(i&&i>0){let s=this.getLevel(e),a=s&&s<=i?2:1;r=new Wo(t,a)}else r=new Wo(t,1);if(r.description=e.description,e.deprecated&&(r.deprecated=!0),e.tooltip&&(r.tooltip=e.tooltip),DEe(e.icon))r.icon=e.icon;else if(typeof this.opts.resolveIcon=="function"){let s=this.opts.resolveIcon(e);s&&(r.icon=s)}return r}async getChildren(e){if(e)return e.children||[];if(this.data)return this.data;let t=await Promise.resolve(this.opts.provideData());if(!Array.isArray(t))throw new Error("Unable to fetch data");return this.data=t,t}getParent(e){if(!this.data)return;let t;for(let i of this.data)if(this.iterate(i,null,0,(o,s)=>{if(o===e)return t=s,!1})===!1)break;return t}getLevel(e){if(!this.data)return;let t=0;for(let i of this.data)if(this.iterate(i,null,1,(o,s,a)=>{if(o===e)return t=a,!1})===!1)break;return t}async resolveTreeItem(e,t,i){if(typeof this.opts.resolveItem=="function"){let r=await Promise.resolve(this.opts.resolveItem(e,t,i));r&&Object.assign(e,r)}return e.command||(e.command={title:`invoke ${t.label}`,command:this.invokeCommand,arguments:[t]}),e}dispose(){this.data=[],this._onDidChangeTreeData.dispose(),typeof this.opts.onDispose=="function"&&this.opts.onDispose(),$(this.disposables)}};cC();re();_t();Ae();ne();var Oht=W()("symbols-outline"),GC=class{constructor(e,t,i){this.nvim=e;this.buffers=t;this.handler=i;this.treeViewList=[];this.providersMap=new Map;this.sortByMap=new Map;this.disposables=[];this.loadConfiguration(),v.onDidChangeConfiguration(this.loadConfiguration,this,this.disposables),v.onDidCloseTextDocument(async r=>{let{bufnr:o}=r,s=this.providersMap.get(o);!s||await e.call("bufloaded",[o])||(this.providersMap.delete(o),s.dispose())},null,this.disposables),k.onDidChangeActiveTextEditor(async r=>{if(!this.config.checkBufferSwitch)return;this.treeViewList.find(s=>s.visible&&s.targetTabnr==r.tabpagenr)&&(await this.showOutline(r.document.bufnr,r.tabpagenr),await e.command(`noa call win_gotoid(${r.winid})`))},null,this.disposables),P.on("CursorHold",async r=>{if(!this.config.followCursor||!this.providersMap.get(r))return;let s=await e.call("tabpagenr"),a=this.treeViewList.find(u=>u.visible&&u.targetBufnr==r&&u.targetTabnr==s);if(!a)return;let l=await k.getCursorPosition();await this.revealPosition(a,l)},null,this.disposables)}async revealPosition(e,t){let i,r=a=>{if(mt(t,a.range)!=0)return!1;if(i=a,Array.isArray(a.children)){for(let l of a.children)if(l.kind!==UC.SymbolKind.Variable&&r(l))break}return!0},o=this.providersMap.get(e.targetBufnr);if(!o)return;let s=await Promise.resolve(o.getChildren());for(let a of s)if(r(a))break;i&&await e.reveal(i)}loadConfiguration(e){if(!e||e.affectsConfiguration("outline")){let t=v.getConfiguration("outline");this.config={splitCommand:t.get("splitCommand"),switchSortKey:t.get("switchSortKey"),followCursor:t.get("followCursor"),keepWindow:t.get("keepWindow"),expandLevel:t.get("expandLevel"),autoWidth:t.get("autoWidth"),checkBufferSwitch:t.get("checkBufferSwitch"),detailAsDescription:t.get("detailAsDescription"),sortBy:t.get("sortBy"),showLineNumber:t.get("showLineNumber"),codeActionKinds:t.get("codeActionKinds")}}}convertSymbolToNode(e,t){var s;let i=[],{detailAsDescription:r,showLineNumber:o}=this.config;return r&&e.detail&&i.push(e.detail),o&&i.push(`${e.selectionRange.start.line+1}`),{label:e.name,tooltip:r?void 0:e.detail,description:i.join(" "),icon:this.handler.getIcon(e.kind),deprecated:(s=e.tags)==null?void 0:s.includes(UC.SymbolTag.Deprecated),kind:e.kind,range:e.range,selectRange:e.selectionRange,children:Array.isArray(e.children)?e.children.map(a=>this.convertSymbolToNode(a,t)).sort(t):void 0}}setMessage(e,t){let i=this.treeViewList.filter(r=>r.valid&&r.targetBufnr==e);i&&i.forEach(r=>{r.message=t})}convertSymbols(e,t){let i=this.getSortBy(e),r=(o,s)=>i==="name"?o.labelthis.convertSymbolToNode(o,r)).sort(r)}onSymbolsUpdate(e,t){let i=this.providersMap.get(e);i&&i.update(this.convertSymbols(e,t))}createProvider(e){let{nvim:t}=this,i,r=new XC({expandLevel:this.config.expandLevel,provideData:async()=>{let o=this.buffers.getItem(e);if(!o)throw new Error("Document not attached");let s=v.getDocument(e);if(!j.hasProvider("documentSymbol",s.textDocument))throw new Error("Document symbol provider not found");let a=j.getDocumentSymbolMetadata(s.textDocument);a&&a.label&&this.treeViewList.filter(c=>c.valid&&c.targetBufnr==e).forEach(c=>c.description=a.label),this.setMessage(e,"Loading document symbols");let l=await o.getSymbols();if(!l||l.length==0)throw new Error("Empty symbols returned from language server. ");return this.setMessage(e,void 0),this.convertSymbols(e,l)},handleClick:async o=>{let s=await t.call("bufwinnr",[e]);if(s==-1)return;t.pauseNotification(),t.command(`${s}wincmd w`,!0);let a=o.selectRange.start;t.call("coc#cursor#move_to",[a.line,a.character],!0),t.command("normal! zz",!0);let l=t.createBuffer(e);l.highlightRanges("outline-hover","CocHoverRange",[o.selectRange]),t.command("redraw",!0),await t.resumeNotification(),setTimeout(()=>{l.clearNamespace("outline-hover"),t.command("redraw",!0)},global.hasOwnProperty("__TEST__")?10:300)},resolveActions:async(o,s)=>{let a=await t.call("bufwinnr",[e]);if(a==-1)return;let l=v.getDocument(e);return[...(await this.handler.getCodeActions(l,s.range,this.config.codeActionKinds)).map(h=>({title:h.title,handler:async()=>{let d=s.range.start;await t.command(`${a}wincmd w`),await this.nvim.call("coc#cursor#move_to",[d.line,d.character]),await this.handler.applyCodeAction(h)}})),{title:"Visual Select",handler:async h=>{await t.command(`${a}wincmd w`),await k.selectRange(h.range)}}]},onDispose:()=>{i&&i.dispose();for(let o of this.treeViewList)o.provider===r&&o.dispose()}});return r}getSortBy(e){return this.sortByMap.get(e)??this.config.sortBy}async showOutline(e,t){this.providersMap.has(e)||this.providersMap.set(e,this.createProvider(e));let i=this.treeViewList.find(o=>o.valid&&o.targetBufnr==e&&o.targetTabnr==t);if(!i){i=new Cu("OUTLINE",{autoWidth:this.config.autoWidth,bufhidden:"hide",enableFilter:!0,treeDataProvider:this.providersMap.get(e)});let o=this.getSortBy(e);i.description=`${o[0].toUpperCase()}${o.slice(1)}`,this.treeViewList.push(i),i.onDispose(()=>{let s=this.treeViewList.findIndex(a=>a===i);s!==-1&&this.treeViewList.splice(s,1)})}return await i.show(this.config.splitCommand)&&i.registerLocalKeymap("n",this.config.switchSortKey,async()=>{let o=["category","name","position"],s=this.getSortBy(e),a=o.map(d=>({text:d,disabled:d===s})),l=await k.showMenuPicker(a,{title:"Choose sort method"});if(l<0)return;let u=o[l];this.sortByMap.set(e,u),this.treeViewList.filter(d=>d.targetBufnr==e).forEach(d=>{d.description=`${u[0].toUpperCase()}${u.slice(1)}`});let h=this.buffers.getItem(e);h&&h.symbols&&this.onSymbolsUpdate(e,h.symbols)}),i}async show(e){let[t,i,r,o]=await this.nvim.eval('[&filetype,bufnr("%"),tabpagenr(),win_getid()]');if(t==="coctree")return;let s=await k.getCursorPosition(),a=await this.showOutline(i,r);if(e==1||e===void 0&&this.config.keepWindow)await this.nvim.command(`noa call win_gotoid(${o})`);else if(this.config.followCursor){let l=a.onDidRefrash(async()=>{l.dispose(),await this.nvim.eval("&filetype")=="coctree"&&a.visible&&await this.revealPosition(a,s)})}}has(e){return this.providersMap.has(e)}async hide(){let e=await this.nvim.call("coc#window#find",["cocViewId","OUTLINE"]);e!=-1&&await this.nvim.call("coc#window#close",[e])}dispose(){for(let e of this.treeViewList)e.dispose();this.treeViewList=[];for(let e of this.providersMap.values())e.dispose();this.providersMap.clear(),$(this.disposables)}};var KC=class{constructor(e,t){this.nvim=e;this.handler=t;this.disposables=[];this.autoUpdateBufnrs=new Set;this.buffers=v.registerBufferSync(i=>{if(i.buftype!="")return;let r=new $C(i.bufnr,this.autoUpdateBufnrs);return r.onDidUpdate(o=>{!this.outline||this.outline.onSymbolsUpdate(r.bufnr,o)}),r}),this.outline=new GC(e,this.buffers,t),P.on("CursorHold",async i=>{!this.functionUpdate||!this.buffers.getItem(i)||await this.getCurrentFunctionSymbol(i)},null,this.disposables),P.on("InsertEnter",i=>{let r=this.buffers.getItem(i);r&&r.cancel()},null,this.disposables)}get functionUpdate(){return v.getConfiguration("coc.preferences").get("currentFunctionSymbolAutoUpdate",!1)}get labels(){return v.getConfiguration("suggest").get("completionItemKindLabels",{})}async getWorkspaceSymbols(e){this.handler.checkProvier("workspaceSymbols",null);let t=new nd.CancellationTokenSource;return await j.getWorkspaceSymbols(e,t.token)}async resolveWorkspaceSymbol(e){var i;if((i=e.location)!=null&&i.uri)return e;let t=new nd.CancellationTokenSource;return await j.resolveWorkspaceSymbol(e,t.token)}async getDocumentSymbols(e){if(!e){let r=await v.document;if(!r||r.isCommandLine||!r.attached)return;await Pt(1),e=r.bufnr}let t=this.buffers.getItem(e);if(!t)return;let i=await t.getSymbols();return i?yne(i):void 0}async getCurrentFunctionSymbol(e){e||(e=await this.nvim.call("bufnr",["%"]));let t=v.getDocument(e);if(!t||!t.attached||!j.hasProvider("documentSymbol",t.textDocument))return;let i=await k.getCursorPosition(),r=await this.getDocumentSymbols(e),o=this.nvim.createBuffer(e);if(!r||r.length===0)return o.setVar("coc_current_function","",!0),this.nvim.call("coc#util#do_autocmd",["CocStatusChange"],!0),"";r=r.filter(a=>["Class","Method","Function","Struct"].includes(a.kind));let s="";for(let a of r.reverse())if(a.range&&mt(i,a.range)==0&&!a.text.endsWith(") callback")){s=a.text;let l=this.labels[a.kind.toLowerCase()];l&&(s=`${l} ${s}`);break}return this.functionUpdate&&(o.setVar("coc_current_function",s,!0),this.nvim.call("coc#util#do_autocmd",["CocStatusChange"],!0)),s}async selectSymbolRange(e,t,i){let{doc:r}=await this.handler.getCurrentState();this.handler.checkProvier("documentSymbol",r.textDocument);let o;if(t)o=await k.getSelectedRange(t);else{let l=await k.getCursorPosition();o=nd.Range.create(l,l)}let s=await this.getDocumentSymbols(r.bufnr);if(!s||s.length===0){k.showMessage("No symbols found","warning");return}s=s.filter(l=>i.includes(l.kind));let a;for(let l of s.reverse())if(l.range&&!Xe(l.range,o)&&Ni(o,l.range)){a=l.range;break}if(e&&a){let{start:l,end:u}=a,c=r.getline(l.line+1),h=r.getline(u.line-1);a=nd.Range.create(l.line+1,c.match(/^\s*/)[0].length,u.line-1,h.length)}a?await k.selectRange(a):["v","V",""].includes(t)&&await this.nvim.command("normal! gv")}async showOutline(e){await this.outline.show(e)}async hideOutline(){await this.outline.hide()}hasOutline(e){return this.outline.has(e)}dispose(){this.outline.dispose(),this.buffers.dispose(),$(this.disposables)}};bf();var xne=x(Oi()),QC=x(q());we();Te();_t();Ne();Ae();ne();var SEe=W()("handler-linkedEditing"),zC=class{constructor(e,t){this.nvim=e;this.changing=!1;this.checkPosition=(0,xne.default)(this._checkPosition,global.__TEST__?10:100),t.addDisposable(P.on("CursorMoved",(i,r)=>{this.cancel(),this.checkPosition(i,r)})),t.addDisposable(P.on("CursorMovedI",(i,r)=>{this.cancel(),this.checkPosition(i,r)})),t.addDisposable(k.onDidChangeActiveTextEditor(()=>{this.cancel(),this.cancelEdit()})),t.addDisposable(P.on("InsertCharPre",(i,r)=>{if(r!==this.bufnr)return;let o=v.getDocument(r);this.wordPattern?new RegExp(this.wordPattern).test(i)||this.cancelEdit():o.isWord(i)||this.cancelEdit()})),t.addDisposable(v.onDidChangeTextDocument(async i=>{await this.onChange(i)}))}cancelEdit(){var e;(e=this.window)==null||e.clearMatchGroup("^CocLinkedEditing"),this.ranges=void 0,this.window=void 0,this.bufnr=void 0}async onChange(e){if(e.bufnr!==this.bufnr||this.changing||!this.ranges)return;if(e.contentChanges.length===0){this.doHighlights();return}let t=e.contentChanges[0],{text:i,range:r}=t,o=this.ranges.filter(s=>!(!Ml(r,s.range)||Jy(r,s.range)&&(i.includes(` +`)||!jt(r))));if(o.length==1&&Ni(r,o[0].range)){if(i.includes(` +`)){this.cancelEdit();return}SEe.debug("affected single range"),await this.applySingleEdit(o[0],{range:r,newText:i})}else this.cancelEdit()}async applySingleEdit(e,t){let{bufnr:i,ranges:r}=this,o=v.getDocument(i);r.filter(c=>c!==e&&c.position.line==e.position.line).forEach(c=>c.adjustFromEdit(t));let a=wC(e,t.range,t.newText),l=_f(a);r.forEach(c=>c.applyChange(a));let u=r.filter(c=>c!==e).map(c=>c.textEdit);if(this.changing=!0,await o.applyEdits(u,!0,!0),this.changing=!1,l!=0)for(let c of r){let h=Rf(c,this.ranges,e);c.move(h*l)}this.doHighlights()}doHighlights(){let{window:e,ranges:t}=this;e&&t&&(this.nvim.pauseNotification(),e.clearMatchGroup("^CocLinkedEditing"),e.highlightRanges("CocLinkedEditing",t.map(i=>i.range),99,!0),this.nvim.resumeNotification(!0,!0))}_checkPosition(e,t){if(P.pumvisible||!v.isAttached(e))return;let i=v.getDocument(e);if(!v.getConfiguration("coc.preferences",i.uri).get("enableLinkedEditing",!1)||!j.hasProvider("linkedEditing",i.textDocument))return;let s=ln(i.getline(t[0]-1),t[1]-1),a=QC.Position.create(t[0]-1,s);if(this.ranges){if(this.ranges.some(l=>mt(a,l.range)==0))return;this.cancelEdit()}this.enable(i,a)}async enable(e,t){let i=e.textDocument,o=(this.tokenSource=new QC.CancellationTokenSource).token,s=await this.nvim.window,a=await j.provideLinkedEdits(i,t,o);if(o.isCancellationRequested||!a||a.ranges.length==0)return;let l=a.ranges.map(u=>new Gh(u.start.line,u.start.character,i.getText(u)));this.wordPattern=a.wordPattern,this.bufnr=e.bufnr,this.window=s,this.ranges=l,this.doHighlights()}cancel(){this.tokenSource&&(this.tokenSource.cancel(),this.tokenSource=null)}};we();Te();ne();var Sne=x(Oi()),rd=x(q());Te();HE();_t();var TEe=global.hasOwnProperty("__TEST__")?10:100,kEe="CocInlayHint",VC=class{constructor(e,t,i){this.nvim=e;this.doc=t;this.config=i;this.regions=new ku;this.currentHints=[];this._onDidRefresh=new rd.Emitter;this.onDidRefresh=this._onDidRefresh.event;this.render=(0,Sne.default)(()=>{this.renderRange()},TEe),this.render()}get current(){return this.currentHints}clearCache(){this.currentHints=[],this.regions.clear(),this.render.clear()}onChange(){this.clearCache(),this.cancel(),this.render()}cancel(){this.render.clear(),this.tokenSource&&(this.tokenSource.cancel(),this.tokenSource=null)}async renderRange(){if(this.cancel(),!j.hasProvider("inlayHint",this.doc.textDocument))return;this.tokenSource=new rd.CancellationTokenSource;let e=this.tokenSource.token,t=await this.nvim.call("coc#window#visible_range",[this.doc.bufnr]);if(t==null||this.doc.dirty||e.isCancellationRequested||this.regions.has(t[0],t[1]))return;let i=rd.Range.create(t[0]-1,0,t[1],0),r=await j.provideInlayHints(this.doc.textDocument,i,e);r==null||e.isCancellationRequested||(this.regions.add(t[0],t[1]),this.currentHints=this.currentHints.filter(o=>mt(o.position,i)!==0),this.currentHints.push(...r),this.setVirtualText(i,r))}setVirtualText(e,t){let{nvim:i,doc:r}=this,o=this.config.srcId,s=r.buffer,a={};for(let l of t){let u=[[Nv(l),kEe]];a[l.position.line]===void 0?a[l.position.line]=u:(a[l.position.line].push([" ","Normal"]),a[l.position.line].push(u[0]))}i.pauseNotification(),s.clearNamespace(o,e.start.line,e.end.line+1);for(let l of Object.keys(a))s.setExtMark(o,Number(l),0,{virt_text:a[l],virt_text_pos:"eol",hl_mode:"combine"});i.resumeNotification(!1,!0),this._onDidRefresh.fire()}clearVirtualText(){let e=this.config.srcId;this.doc.buffer.clearNamespace(e)}dispose(){this.cancel()}};var ex=class{constructor(e,t){this.config={};e.createNamespace("coc-inlayHint").then(i=>{this.config.srcId=i}),this.buffers=v.registerBufferSync(i=>{if(!!v.has("nvim-0.5.0"))return new VC(e,i,this.config)}),t.addDisposable(this.buffers),t.addDisposable(j.onDidInlayHintRefresh(async i=>{for(let r of this.buffers.items)v.match(i,r.doc.textDocument)&&(r.clearCache(),j.hasProvider("inlayHint",r.doc.textDocument)?await r.renderRange():r.clearVirtualText())})),t.addDisposable(P.on("CursorMoved",i=>{this.refresh(i)})),t.addDisposable(P.on("WinScrolled",async i=>{let r=await e.call("winbufnr",[i]);r!=-1&&this.refresh(r)}))}getItem(e){return this.buffers.getItem(e)}refresh(e){let t=this.buffers.getItem(e);t&&t.render()}};var Vdt=W()("Handler"),ix=class{constructor(e){this.nvim=e;this.disposables=[];this.requestStatusItem=k.createStatusBarItem(0,{progress:!0}),P.on(["CursorMoved","CursorMovedI","InsertEnter","InsertSnippet","InsertLeave"],()=>{this.requestTokenSource&&(this.requestTokenSource.cancel(),this.requestTokenSource=null)},null,this.disposables),this.labels=v.getConfiguration("suggest").get("completionItemKindLabels",{}),this.fold=new _C(e,this),this.links=new IC(e,this),this.codeLens=new TC(e),this.colors=new EC(e,this),this.format=new RC(e,this),this.symbols=new KC(e,this),this.refactor=new NC(e,this),this.hover=new FC(e,this),this.locations=new jC(e,this),this.signature=new JC(e,this),this.rename=new BC(e,this),this.workspace=new HC(e,this),this.codeActions=new xC(e,this),this.commands=new PC(e,v.env),this.callHierarchy=new td(e,this),this.documentHighlighter=new LC(e,this),this.semanticHighlighter=new ZC(e,this),this.selectionRange=new qC(e,this),this.linkedEditingHandler=new zC(e,this),this.inlayHintHandler=new ex(e,this),this.disposables.push({dispose:()=>{this.callHierarchy.dispose(),this.codeLens.dispose(),this.links.dispose(),this.refactor.dispose(),this.signature.dispose(),this.symbols.dispose(),this.hover.dispose(),this.locations.dispose(),this.colors.dispose(),this.documentHighlighter.dispose(),this.semanticHighlighter.dispose()}}),this.refactor.init()}async getCurrentState(){let{nvim:e}=this,[t,[i,r],o,s]=await e.eval("[bufnr('%'),coc#cursor#position(),win_getid(),mode()]");return{doc:v.getAttachedDocument(t),mode:s,position:tx.Position.create(i,r),winid:o}}addDisposable(e){this.disposables.push(e)}checkProvier(e,t){if(!j.hasProvider(e,t))throw new Error(`${e} provider not found for current buffer, your language server doesn't support it.`)}async withRequestToken(e,t,i){this.requestTokenSource&&(this.requestTokenSource.cancel(),this.requestTokenSource.dispose()),this.requestTimer&&clearTimeout(this.requestTimer);let r=this.requestStatusItem;this.requestTokenSource=new tx.CancellationTokenSource;let{token:o}=this.requestTokenSource;o.onCancellationRequested(()=>{r.text=`${e} request canceled`,r.isProgress=!1,this.requestTimer=setTimeout(()=>{r.hide()},500)}),r.isProgress=!0,r.text=`requesting ${e}`,r.show();let s;try{s=await Promise.resolve(t(o))}catch(a){this.nvim.echoError(a)}return this.requestTokenSource&&(this.requestTokenSource.dispose(),this.requestTokenSource=void 0),o.isCancellationRequested?null:(r.hide(),i&&(!s||Array.isArray(s)&&s.length==0)?(k.showMessage(`${e} not found`,"warning"),null):s)}getIcon(e){let{labels:t}=this,i=Ho(e),r=typeof t.default=="string"?t.default:i[0].toLowerCase(),o=i=="Unknown"?"":t[i[0].toLowerCase()+i.slice(1)];return(!o||typeof o!="string")&&(o=r),{text:o,hlGroup:i=="Unknown"?"CocSymbolDefault":`CocSymbol${i}`}}async getCodeActions(e,t,i){return(await this.codeActions.getCodeActions(e,t,i)).filter(o=>!o.disabled)}async applyCodeAction(e){await this.codeActions.applyCodeAction(e)}async hasProvider(e){let t=await this.nvim.call("bufnr","%"),i=v.getDocument(t);return i?j.hasProvider(e,i.textDocument):!1}dispose(){this.requestTimer&&clearTimeout(this.requestTimer),$(this.disposables)}};OD();pf();yu();Io();re();Ae();ne();var Tne=W()("plugin"),nx=class extends kne.EventEmitter{constructor(e){super();this.nvim=e;this._ready=!1;this.actions=new Map;this.disposables=[];this.disposables.push(v.registerTextDocumentContentProvider("output",ds.getProvider(e))),Object.defineProperty(v,"nvim",{get:()=>this.nvim}),Object.defineProperty(k,"cursors",{get:()=>this.cursors}),v.onDidChangeWorkspaceFolders(()=>{e.setVar("WorkspaceFolders",v.folderPaths,!0)},null,this.disposables),P.on("VimResized",(t,i)=>{v.env&&Object.assign(v.env,{columns:t,lines:i})},null,this.disposables),this.cursors=new CC(e),he.init(e,this),this.addAction("checkJsonExtension",()=>{Pe.has("coc-json")||k.showMessage("Run :CocInstall coc-json for json intellisense","more")}),this.addAction("rootPatterns",t=>this.handler.workspace.getRootPatterns(t)),this.addAction("ensureDocument",()=>this.handler.workspace.ensureDocument()),this.addAction("getConfig",async t=>this.handler.workspace.getConfiguration(t)),this.addAction("doAutocmd",async(t,...i)=>this.handler.workspace.doAutocmd(t,i)),this.addAction("openLog",async()=>this.handler.workspace.openLog()),this.addAction("attach",()=>v.attach()),this.addAction("detach",()=>v.detach()),this.addAction("doKeymap",async(t,i,r)=>this.handler.workspace.doKeymap(t,i,r)),this.addAction("registExtensions",(...t)=>Pe.loadExtension(t)),this.addAction("snippetCheck",async(t,i)=>this.handler.workspace.snippetCheck(t,i)),this.addAction("snippetNext",()=>ei.nextPlaceholder()),this.addAction("snippetPrev",()=>ei.previousPlaceholder()),this.addAction("snippetCancel",()=>ei.cancel()),this.addAction("openLocalConfig",()=>k.openLocalConfig()),this.addAction("bufferCheck",()=>k.bufferCheck()),this.addAction("showInfo",()=>this.handler.workspace.showInfo()),this.addAction("hasProvider",t=>this.handler.hasProvider(t)),this.addAction("listNames",()=>Pi.names),this.addAction("listDescriptions",()=>Pi.descriptions),this.addAction("listLoadItems",t=>Pi.loadItems(t)),this.addAction("search",(...t)=>this.handler.refactor.search(t)),this.addAction("cursorsSelect",(t,i,r)=>this.cursors.select(t,i,r)),this.addAction("fillDiagnostics",t=>Yt.setLocationlist(t)),this.addAction("saveRefactor",t=>this.handler.refactor.save(t)),this.addAction("commandList",()=>this.handler.commands.getCommandList()),this.addAction("selectSymbolRange",(t,i,r)=>this.handler.symbols.selectSymbolRange(t,i,r)),this.addAction("openList",(...t)=>Pi.start(t)),this.addAction("listResume",t=>Pi.resume(t)),this.addAction("listCancel",()=>Pi.cancel(!0)),this.addAction("listPrev",t=>Pi.previous(t)),this.addAction("listNext",t=>Pi.next(t)),this.addAction("listFirst",t=>Pi.first(t)),this.addAction("listLast",t=>Pi.last(t)),this.addAction("sendRequest",(t,i,r)=>Ui.sendRequest(t,i,r)),this.addAction("sendNotification",(t,i,r)=>Ui.sendNotification(t,i,r)),this.addAction("registNotification",(t,i)=>Ui.registNotification(t,i)),this.addAction("updateConfig",(t,i)=>v.configurations.updateUserConfig({[t]:i})),this.addAction("links",()=>this.handler.links.getLinks()),this.addAction("openLink",()=>this.handler.links.openCurrentLink()),this.addAction("pickColor",()=>this.handler.colors.pickColor()),this.addAction("colorPresentation",()=>this.handler.colors.pickPresentation()),this.addAction("highlight",()=>this.handler.documentHighlighter.highlight()),this.addAction("fold",t=>this.handler.fold.fold(t)),this.addAction("startCompletion",t=>vC.startCompletion(t)),this.addAction("sourceStat",()=>ct.sourceStats()),this.addAction("refreshSource",t=>ct.refresh(t)),this.addAction("toggleSource",t=>ct.toggleSource(t)),this.addAction("diagnosticRefresh",t=>Yt.refresh(t)),this.addAction("diagnosticInfo",()=>Yt.echoMessage()),this.addAction("diagnosticToggle",t=>Yt.toggleDiagnostic(t)),this.addAction("diagnosticToggleBuffer",(t,i)=>Yt.toggleDiagnosticBuffer(t,i)),this.addAction("diagnosticNext",t=>Yt.jumpNext(t)),this.addAction("diagnosticPrevious",t=>Yt.jumpPrevious(t)),this.addAction("diagnosticPreview",()=>Yt.preview()),this.addAction("diagnosticList",async()=>Yt.getDiagnosticList()),this.addAction("findLocations",(t,i,r,o)=>this.handler.locations.findLocations(t,i,r,o)),this.addAction("getTagList",()=>this.handler.locations.getTagList()),this.addAction("jumpDefinition",t=>this.handler.locations.gotoDefinition(t)),this.addAction("definitions",()=>this.handler.locations.definitions()),this.addAction("jumpDeclaration",t=>this.handler.locations.gotoDeclaration(t)),this.addAction("declarations",()=>this.handler.locations.declarations()),this.addAction("jumpImplementation",t=>this.handler.locations.gotoImplementation(t)),this.addAction("implementations",()=>this.handler.locations.implementations()),this.addAction("jumpTypeDefinition",t=>this.handler.locations.gotoTypeDefinition(t)),this.addAction("typeDefinitions",()=>this.handler.locations.typeDefinitions()),this.addAction("jumpReferences",t=>this.handler.locations.gotoReferences(t)),this.addAction("references",t=>this.handler.locations.references(t)),this.addAction("jumpUsed",t=>this.handler.locations.gotoReferences(t,!1)),this.addAction("doHover",t=>this.handler.hover.onHover(t)),this.addAction("definitionHover",t=>this.handler.hover.definitionHover(t)),this.addAction("getHover",()=>this.handler.hover.getHover()),this.addAction("showSignatureHelp",()=>this.handler.signature.triggerSignatureHelp()),this.addAction("documentSymbols",t=>this.handler.symbols.getDocumentSymbols(t)),this.addAction("symbolRanges",()=>this.handler.documentHighlighter.getSymbolsRanges()),this.addAction("selectionRanges",()=>this.handler.selectionRange.getSelectionRanges()),this.addAction("rangeSelect",(t,i)=>this.handler.selectionRange.selectRange(t,i)),this.addAction("rename",t=>this.handler.rename.rename(t)),this.addAction("getWorkspaceSymbols",t=>this.handler.symbols.getWorkspaceSymbols(t)),this.addAction("resolveWorkspaceSymbol",t=>this.handler.symbols.resolveWorkspaceSymbol(t)),this.addAction("formatSelected",t=>this.handler.format.formatCurrentRange(t)),this.addAction("format",()=>this.handler.format.formatCurrentBuffer()),this.addAction("commands",()=>this.handler.commands.getCommands()),this.addAction("services",()=>Ui.getServiceStats()),this.addAction("toggleService",t=>Ui.toggle(t)),this.addAction("codeAction",(t,i)=>this.handler.codeActions.doCodeAction(t,i)),this.addAction("organizeImport",()=>this.handler.codeActions.organizeImport()),this.addAction("fixAll",()=>this.handler.codeActions.doCodeAction(null,[gL.CodeActionKind.SourceFixAll])),this.addAction("doCodeAction",t=>this.handler.codeActions.applyCodeAction(t)),this.addAction("codeActions",(t,i)=>this.handler.codeActions.getCurrentCodeActions(t,i)),this.addAction("quickfixes",t=>this.handler.codeActions.getCurrentCodeActions(t,[gL.CodeActionKind.QuickFix])),this.addAction("codeLensAction",()=>this.handler.codeLens.doAction()),this.addAction("runCommand",(...t)=>this.handler.commands.runCommand(...t)),this.addAction("doQuickfix",()=>this.handler.codeActions.doQuickfix()),this.addAction("refactor",()=>this.handler.refactor.doRefactor()),this.addAction("repeatCommand",()=>this.handler.commands.repeat()),this.addAction("installExtensions",(...t)=>Pe.installExtensions(t)),this.addAction("updateExtensions",t=>Pe.updateExtensions(t)),this.addAction("extensionStats",()=>Pe.getExtensionStates()),this.addAction("loadedExtensions",()=>Pe.loadedExtensions()),this.addAction("watchExtension",t=>Pe.watchExtension(t)),this.addAction("activeExtension",t=>Pe.activate(t)),this.addAction("deactivateExtension",t=>Pe.deactivate(t)),this.addAction("reloadExtension",t=>Pe.reloadExtension(t)),this.addAction("toggleExtension",t=>Pe.toggleExtension(t)),this.addAction("uninstallExtension",(...t)=>Pe.uninstallExtension(t)),this.addAction("getCurrentFunctionSymbol",()=>this.handler.symbols.getCurrentFunctionSymbol()),this.addAction("showOutline",t=>this.handler.symbols.showOutline(t)),this.addAction("hideOutline",()=>this.handler.symbols.hideOutline()),this.addAction("getWordEdit",()=>this.handler.rename.getWordEdit()),this.addAction("addCommand",t=>this.handler.commands.addVimCommand(t)),this.addAction("addRanges",t=>this.cursors.addRanges(t)),this.addAction("currentWorkspacePath",()=>v.rootPath),this.addAction("selectCurrentPlaceholder",t=>ei.selectCurrentPlaceholder(!!t)),this.addAction("codeActionRange",(t,i,r)=>this.handler.codeActions.codeActionRange(t,i,r)),this.addAction("incomingCalls",t=>this.handler.callHierarchy.getIncoming(t)),this.addAction("outgoingCalls",t=>this.handler.callHierarchy.getOutgoing(t)),this.addAction("showIncomingCalls",()=>this.handler.callHierarchy.showCallHierarchyTree("incoming")),this.addAction("showOutgoingCalls",()=>this.handler.callHierarchy.showCallHierarchyTree("outgoing")),this.addAction("inspectSemanticToken",()=>this.handler.semanticHighlighter.inspectSemanticToken()),this.addAction("semanticHighlight",()=>this.handler.semanticHighlighter.highlightCurrent()),this.addAction("showSemanticHighlightInfo",()=>this.handler.semanticHighlighter.showHighlightInfo())}addAction(e,t){if(this.actions.has(e))throw new Error(`Action ${e} already exists`);this.actions.set(e,t)}async init(){let{nvim:e}=this,t=Date.now();try{await Pe.init(),await v.init(k),e.setVar("coc_workspace_initialized",!0,!0),ei.init(),vC.init(),Yt.init(),Pi.init(e),ct.init(),this.handler=new ix(e),Ui.init(),Pe.activateExtensions(),v.autocmds.setupDynamicAutocmd(!0),e.pauseNotification(),e.setVar("WorkspaceFolders",v.folderPaths,!0),e.setVar("coc_service_initialized",1,!0),e.call("coc#util#do_autocmd",["CocNvimInit"],!0),e.resumeNotification(!1,!0),this._ready=!0,await P.fire("ready",[]),Tne.info(`coc.nvim initialized with node: ${process.version} after ${Date.now()-t}ms`),this.emit("ready")}catch(i){e.echoError(i)}}get isReady(){return this._ready}get ready(){return this._ready?Promise.resolve():new Promise(e=>{this.once("ready",()=>{e()})})}hasAction(e){return this.actions.has(e)}async cocAction(e,...t){let i=this.actions.get(e);if(!i)throw new Error(`Action "${e}" doesn't exist`);let r=Date.now(),o=await Promise.resolve(i.apply(null,t)),s=Date.now()-r;return s>500&&Tne.warn(`Slow action "${e}" cost ${s}ms`),o}getHandler(){return this.handler}dispose(){this.removeAllListeners(),$(this.disposables),Pe.dispose(),Pi.dispose(),v.dispose(),ds.dispose(),k.dispose(),ct.dispose(),Ui.stopAll(),Ui.dispose(),this.handler&&this.handler.dispose(),ei.dispose(),he.dispose(),vC.dispose(),Yt.dispose()}};var _ne=x(Tp());lr();Ee();Dk();var lo=W()("attach"),EEe=global.hasOwnProperty("__TEST__"),PEe=["installExtensions","updateExtensions"],Rne=(n,e=!0)=>{let t=(0,Ene.attach)(n,Pne.default.getLogger("node-client"),e);global.hasOwnProperty("__TEST__")||t.call("coc#util#path_replace_patterns").then(s=>{if(Ht(s)){let a=I.file;I.file=l=>(l=l.replace(/\\/g,"/"),Object.keys(s).forEach(u=>l=l.replace(new RegExp("^"+u),s[u])),a(l))}}).logError(),t.setVar("coc_process_pid",process.pid,!0);let i=new nx(t),r=!1,o=!1;return t.on("notification",async(s,a)=>{switch(s){case"VimEnter":{!o&&r&&(o=!0,await i.init());break}case"Log":{lo.debug(...a);break}case"TaskExit":case"TaskStderr":case"TaskStdout":case"GlobalChange":case"PromptInsert":case"InputChar":case"MenuInput":case"OptionSet":case"PromptKeyPress":case"FloatBtnClick":case"CompleteStop":lo.trace("Event: ",s,...a),await P.fire(s,a);break;case"CocAutocmd":lo.trace("Notification autocmd:",...a),await P.fire(a[0],a.slice(1));break;case"redraw":break;default:{if(!i.hasAction(s)){console.error(`action "${s}" does not exist`);return}try{i.isReady?lo.info("receive notification:",s,a):lo.warn(`Plugin not ready when received "${s}"`,a),await i.ready,await i.cocAction(s,...a)}catch(u){t.echoError(`Error on notification "${s}": ${u instanceof Error?u.message:u}`),lo.error(u)}}}}),t.on("request",async(s,a,l)=>{if(s=="redraw"){l.send();return}let u=setTimeout(()=>{lo.error("Request cost more than 3s",s,a)},3e3);try{if(s=="CocAutocmd")lo.trace("Request autocmd:",...a),await P.fire(a[0],a.slice(1)),l.send(void 0);else{if(!i.isReady&&!PEe.includes(s)){lo.warn(`Plugin not ready on request "${s}"`,a),l.send("Plugin not ready",!0);return}lo.info("Request action:",s,a);let c=await i.cocAction(s,...a);l.send(c)}clearTimeout(u)}catch(c){clearTimeout(u),l.send(c instanceof Error?c.message:c.toString(),!0),lo.error("Request error:",s,a,c)}}),t.channelId.then(async s=>{r=!0,EEe&&t.call("coc#rpc#set_channel",[s],!0);let{major:a,minor:l,patch:u}=_ne.default.parse(Vy);t.setClientInfo("coc",{major:a,minor:l,patch:u},"remote",{},{}),await t.getVvar("vim_did_enter")&&!o&&(o=!0,await i.init())}).catch(s=>{console.error(`Channel create error: ${s.message}`)}),i};Object.defineProperty(console,"log",{value(){rx&&rx.info(...arguments)}});var rx=W()("server");Rne({reader:process.stdin,writer:process.stdout});process.on("uncaughtException",function(n){let e="Uncaught exception: "+n.message;console.error(e),rx.error("uncaughtException",n.stack)});process.on("unhandledRejection",function(n,e){n instanceof Error?console.error("UnhandledRejection: "+n.message+` +`+n.stack):console.error("UnhandledRejection: "+n),rx.error("unhandledRejection ",e,n)}); /*! * bytes * Copyright(c) 2012-2014 TJ Holowaychuk diff --git a/sources_non_forked/coc.nvim/data/schema.json b/sources_non_forked/coc.nvim/data/schema.json index 69816426..e2c8ed11 100644 --- a/sources_non_forked/coc.nvim/data/schema.json +++ b/sources_non_forked/coc.nvim/data/schema.json @@ -127,6 +127,10 @@ "progress", "callHierarchy", "linkedEditing", + "inlayHint", + "inlineValue", + "typeHierarchy", + "pullDiagnostic", "fileEvents", "semanticTokens" ] @@ -385,39 +389,62 @@ "default": "npm", "description": "Command or absolute path to npm or yarn." }, + "suggest.noselect": { + "type": "boolean", + "description": "Not make vim select first item on completion start", + "default": false + }, + "suggest.formatItems": { + "type": "array", + "items": { + "enum": ["abbr", "menu", "kind", "shortcut"] + }, + "contains": { + "enum": ["abbr"] + }, + "uniqueItems": true, + "description": "Items shown in popup menu in order.", + "default": ["abbr", "menu", "kind", "shortcut"] + }, "suggest.selection": { "type": "string", - "default": "none", + "default": "first", "description": "Controls how suggestions are pre-selected when showing the suggest list.", - "enum": ["none", "recentlyUsed", "recentlyUsedByPrefix"] + "enum": ["first", "recentlyUsed", "recentlyUsedByPrefix"] }, "suggest.enablePreselect": { "type": "boolean", - "description": "Enable preselect feature of LSP, only works on neovim, required for suggest.selection config.", - "default": false - }, - "suggest.enablePreview": { - "type": "boolean", - "description": "Add preview option to completeopt, default: false.", - "default": false - }, - "suggest.floatEnable": { - "type": "boolean", - "description": "Enable floating window for documentation when possible.", + "description": "Enable preselect feature of LSP, works when suggest.noselect is false.", "default": true }, "suggest.floatConfig": { "type": "object", - "description": "Configure style of documentation window for complete item.", + "description": "Configure style of popup menu and documentation window of completion.", "allOf": [{ "$ref": "#/definitions/float" }], "additionalProperties": false, "properties": { "border": {}, + "rounded": {}, + "highlight": {}, + "borderhighlight": {}, + "maxWidth": {}, + "winblend": {}, + "shadow": {} + } + }, + "suggest.pumFloatConfig": { + "type": ["object", "null"], + "description": "Configure style of popup menu, suggest.floatConfig is used when not specified.", + "allOf": [{ "$ref": "#/definitions/float" }], + "additionalProperties": false, + "default": null, + "properties": { + "border": {}, + "rounded": {}, "highlight": {}, "borderhighlight": {}, "maxWidth": {}, "winblend": {}, - "focusable": {}, "shadow": {} } }, @@ -435,7 +462,7 @@ "type": "string", "default": "preview", "description": "Where to show the detail text of CompleteItem from LS.", - "enum": ["abbr", "menu", "preview"] + "enum": ["abbr", "preview"] }, "suggest.autoTrigger": { "type": "string", @@ -448,21 +475,6 @@ "default": 99, "description": "Priority of language sources." }, - "suggest.disableKind": { - "type": "boolean", - "description": "Remove kind field from vim complete item.", - "default": false - }, - "suggest.disableMenu": { - "type": "boolean", - "description": "Remove menu field from vim complete item.", - "default": false - }, - "suggest.disableMenuShortcut": { - "type": "boolean", - "description": "Disable shortcut of completion source in menu.", - "default": false - }, "suggest.snippetIndicator": { "type": "string", "default": "~", @@ -517,16 +529,6 @@ "default": false, "description": "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. Requires CompleteChanged event to work." }, - "suggest.noselect": { - "type": "boolean", - "description": "Not make vim select first item on completion start", - "default": true - }, - "suggest.keepCompleteopt": { - "type": "boolean", - "description": "When enabled, completeopt is not overridden, auto completion will be disabled if completeopt doesn't have noinsert and noselect.", - "default": false - }, "suggest.lowPrioritySourceLimit": { "type": "integer", "minimum": 1, @@ -610,6 +612,11 @@ "description": "Regexps to ignore when trigger suggest", "default": [] }, + "suggest.virtualText": { + "type": "boolean", + "description": "Show virtual text for insert word of selected item, works on neovim >= 0.5.0", + "default": false + }, "documentHighlight.priority": { "type": "number", "default": -1, @@ -1041,11 +1048,6 @@ "default": 10, "description": "Maximum content height of notification dialog." }, - "notification.preferMenuPicker": { - "type": "boolean", - "default": false, - "description": "Use menu picker for message notification with actions." - }, "notification.disabledProgressSources": { "type": "array", "default": [], diff --git a/sources_non_forked/coc.nvim/doc/coc-config.txt b/sources_non_forked/coc.nvim/doc/coc-config.txt index 4d682447..f917a54b 100644 --- a/sources_non_forked/coc.nvim/doc/coc-config.txt +++ b/sources_non_forked/coc.nvim/doc/coc-config.txt @@ -56,36 +56,50 @@ Http request~ ------------------------------------------------------------------------------ Completion related~ *coc-config-suggest* +"suggest.noselect" *coc-config-suggest-noselect* + + Avoid select complete item on completion start, default: `false`. + + Note: default changed to `false` on coc.nvim 0.0.82 to provide preselect + item. + "suggest.selection" *coc-config-suggest-selection* Controls how suggestions are pre-selected when showing the suggest - list. Default: "none". + list. Default: "recentlyUsed". - Could be "none", "recentlyUsed" and "recentlyUsedByPrefix". + Could be "first", "recentlyUsed" and "recentlyUsedByPrefix". - Note: the selected item would be moved to first place when - "suggest.enablePreselect" is not enabled. +"suggest.formatItems" *coc-config-suggest-formatItems* -"suggest.enablePreselect" *coc-config-suggest-enablePreselect* + Items shown in popup menu in order. + Default to : `["abbr", "menu", "kind", "shortcut"]` - Enable preselect feature on Neovim, default: `false` +"suggest.enablePreselect" *coc-config-suggest-enablePreselect* + + Enable preselect feature of LSP, works when "suggest.noselect" is false. + Default: `true`. "suggest.labelMaxLength" *coc-config-suggest-labelMaxLength* - Maximum length of label shown in 'pum', default: `200` - -"suggest.enablePreview" *coc-config-suggest-enablePreview* - - Add preview option to 'completeopt', default: `false` - -"suggest.floatEnable" *coc-config-suggest-floatEnable* - - Enable floating window for documentation when possible, default: `true` + Maximum length of label shown in popup menu, default: `200` "suggest.floatConfig" *coc-config-suggest-floatConfig* - Configuration of floating window/popup, see |coc-config-float|. - Excludes properties: "title", "close" and "maxHeight". + Configure style of popup menu and documentation window for completion, + see |coc-config-float|. + + Note: some properties not work, including: "title", "focusable", + "close" and "maxHeight" (use 'pumheight' option for maximum height of + popup menu). + + Note: "maxWidth" not works for popup menu, use + |coc-config-suggest-detailMaxLength| instead. + +"suggest.pumFloatConfig" *coc-config-suggest-pumFloatConfig* + + Configure style of popup menu, suggest.floatConfig is used when not + specified. Default: `null`. "suggest.detailMaxLength" *coc-config-suggest-detailMaxLength* @@ -113,18 +127,10 @@ Completion related~ Priority of language sources, default: `99` -"suggest.disableKind" *coc-config-suggest-disableKind* - - Remove kind field from Vim complete item, default: `false` - -"suggest.disableMenu" *coc-config-suggest-disableMenu* - - Remove menu field from Vim complete item, default: `false` - "suggest.snippetIndicator" *coc-config-suggest-snippetIndicator* The character used in completion item abbreviation to indicate it - expands as code snippet, default: `"~"` + expands as code snippet, default: `~`. "suggest.maxCompleteItemCount" *coc-config-suggest-maxCompleteItemCount* @@ -180,17 +186,6 @@ Completion related~ after the completion item text. Requires `CompleteChanged` event to work, default: `false` -"suggest.noselect" *coc-config-suggest-noselect* - - Prevent Vim from selecting the first item on completion start, - default: `true` - -"suggest.keepCompleteopt" *coc-config-suggest-keepCompleteopt* - - When enabled, 'completeopt' is not overridden during completion. Won't - work if 'completeopt' doesn't includes 'noinsert' and 'noselect' which - are required by auto completion, default: `false` - "suggest.lowPrioritySourceLimit" *coc-config-suggest-lowPrioritySourceLimit* Max items count for source priority lower than `90`. @@ -199,10 +194,6 @@ Completion related~ Max items count for source priority bigger than or equal to `90`. -"suggest.disableMenuShortcut" *coc-config-suggest-disableMenuShortcut* - - Disable shortcut of completion source in menu, default: `false` - "suggest.removeDuplicateItems" *coc-config-suggest-removeDuplicateItems* Remove completion items with duplicated word for all sources, snippet @@ -222,6 +213,16 @@ Completion related~ Trigger suggest with ASCII characters only, default: `false` +"suggest.ignoreRegexps" *coc-config-suggest-ignoreRegexps* + + Array of regexps, when input matched one of them, not trigger + completion, default: `[]` + +"suggest.virtualText" *coc-config-suggest-virtualText* + + Show virtual text for insert word of selected item, works on neovim >= + 0.5.0, default: `false` + "suggest.completionItemKindLabels" *coc-config-suggest-completionItemKindLabels* Set custom labels to completion item kinds, default: `{}`. @@ -610,11 +611,6 @@ Dialog~ Notification~ *coc-config-notification* -"notification.preferMenuPicker" *coc-config-notification-preferMenuPicker* - - Use menu picker for message notifications with actions, default - `false`. - "notification.maxWidth" *coc-config-notification-maxWidth* Maximum content width of notification dialog, default to `60`. @@ -743,7 +739,7 @@ List~ "list.height" *coc-config-list-height* - Height of split list window, default: `10` + Height of list window (when splited), default: `10` "list.signOffset" *coc-config-list-signOffset* @@ -1170,7 +1166,8 @@ Languageserver~ initialization. - "trace.server": Trace level of communication between server and - client that showed with output channel. + client that showed with output channel, open output channel by + command `:CocCommand workspace.showOutput` - "stdioEncoding": Encoding used for stdio of child process. diff --git a/sources_non_forked/coc.nvim/doc/coc.txt b/sources_non_forked/coc.nvim/doc/coc.txt index be6e0b50..689422e1 100644 --- a/sources_non_forked/coc.nvim/doc/coc.txt +++ b/sources_non_forked/coc.nvim/doc/coc.txt @@ -1,6 +1,6 @@ *coc-nvim.txt* NodeJS client for Vim & Neovim. -Version: 0.0.81 +Version: 0.0.82 Author: Qiming Zhao License: Anti 996 license @@ -9,11 +9,13 @@ CONTENTS *coc-contents* Introduction |coc-introduction| Requirements |coc-requirements| Installation |coc-installation| +Extensions |coc-extensions| Configuration |coc-configuration| LSP features |coc-lsp| Document |coc-document| Completion |coc-completion| Diagnostics |coc-diagnostics| + Locations |coc-locations| Signature help |coc-signature| Format |coc-format| Code action |coc-code-actions| @@ -79,8 +81,8 @@ Note: This plugin doesn't come with support for any specific language. You will need to install a coc.nvim extension or set up the language server by configuration. -Note: This plugin doesn't change any of your existing key-mappings. You will -need to create key-mappings by yourself, see README.md for examples. +Note: multiple language servers for same document is allowed, but you should +avoid configure same language server that already used by coc.nvim extension. Note: Automatic completion plugins can't play nicely together, you can disable automatic completion of coc.nvim through `"suggest.autoTrigger": "none"` (or @@ -89,10 +91,9 @@ automatic completion of coc.nvim through `"suggest.autoTrigger": "none"` (or ============================================================================== REQUIREMENTS *coc-requirements* -Neovim >= 0.3.2 or Vim >= 8.0.1453, for best experience, use neovim >= 0.4.0 -or vim >= 8.2.0750. +Neovim >= 0.4.0 or Vim >= 8.1.1719. -NodeJS https://nodejs.org/ >= 12.12.0. +NodeJS https://nodejs.org/ >= 14.14.0. Yarn https://yarnpkg.com/ required to build coc.nvim from typescript source code. @@ -111,26 +112,96 @@ And run: > For other plugin managers, make sure to use code from the release branch. -You can also use Vim's native package management like: > +To use Vim's native |packages| on Linux or MaxOS, use script like: > #!/bin/sh # for vim8 mkdir -p ~/.vim/pack/coc/start cd ~/.vim/pack/coc/start curl --fail -L https://github.com/neoclide/coc.nvim/archive/release.tar.gz|tar xzfv - + vim -c 'helptags ~/.vim/pack/coc/start/doc|q' # for neovim mkdir -p ~/.local/share/nvim/site/pack/coc/start cd ~/.local/share/nvim/site/pack/coc/start curl --fail -L https://github.com/neoclide/coc.nvim/archive/release.tar.gz|tar xzfv - + nvim -c 'helptags ~/.local/share/nvim/site/pack/coc/start|q' +when using source code of coc.nvim, you'll have to install +https://yarnpkg.com/ and run `yarn install` in project root of coc.nvim. + +============================================================================== +EXTENSIONS *coc-extensions* + +To provide LSP features for buffers, the user have to config +|coc-config-languageserver| or install coc extensions. + +Coc extensions are more powerful since they could contribute json schemes, +commands, and use middleware methods of languageserver to provide better +results. It's also possible to provide features that not part of LSP. + +Install extensions from git (not recommended):~ + +- Download to code by `git clone` command. +- In project root, install dependencies and compile the code by `yarn install` + (needed by most coc extensions). +- Add the project root to vim's runtimepath by `set runtimepath^=/path/to/project` + +Plugin manager like [vim-plug] can be used as well. + +Note: use coc extensions from source code requires install dependencies which +may take buge disk usage. + +Install global extensions from npm (recommended):~ + +Use |:CocInstall| to install coc extensions from vim's command line. + +To make coc.nvim install extensions on startup, use |g:coc_global_extensions|. + +To use package manager other than npm (like `yarn` or `pnpm`), use +|coc-config-npm-binPath|. + +To customize npm registry for coc.nvim add `coc.nvim:registry` in your +`~/.npmrc`, like: +> + coc.nvim:registry=https://registry.mycompany.org/ +< +To customize extensions folder, user |g:coc_data_home|. + +Uninstall global extensions:~ + +Use |:CocUninstall|. + +Update global extensions:~ + +Use |:CocUpdate| or |:CocUpdateSync|. + +To update extensions automatically, config |coc-preferences-extensionUpdateCheck|. + +Manage extensions list:~ + +Use |coc-list-extensions| or other list plugin that request extensions list by +|CocAction('extensionStats')|. + +Single file extensions:~ + +All javascript files that ends with `.js` inside the folder +|g:coc_config_home| + '/coc-extensions' are considered as coc extensions, for +example: +> + const {window} = require('coc.nvim') + + exports.activate = context => { + window.showInformationMessage("message from extension") + } +< ============================================================================== CONFIGURATION *coc-configuration* The configuration of coc.nvim is stored in file `coc-settings.json`. Command |:CocConfig| will open (create when necessary) a user settings -file in the folder returned by |coc#util#get_config_home()| +file in the folder returned by |coc#util#get_config_home()|. To create a local configuration file for a specific workspace, use |:CocLocalConfig|. @@ -140,8 +211,9 @@ The global configuration file can be created in another directory by setting let g:coc_config_home = '/path/to/folder' -The configuration files are all in JSON format, it's recommended to -enable JSON completion and validation by install the `coc-json` extension: > +The configuration files are all in JSON format (with comment supported), it's +recommended to enable JSON completion and validation by install the `coc-json` +extension: > :CocInstall coc-json < @@ -157,8 +229,10 @@ All features (except for telemetry) of LSP 3.16 are supported, checkout the specification at https://microsoft.github.io/language-server-protocol/specifications/specification-3-16/ -Use `:CocCommand document.checkBuffer` to check exists providers used by -current buffer. Or use API |CocHasProvider()|. +LSP features only works with attached document, see |coc-document-attached|. + +To check exists providers of current buffer, use command +`:CocCommand document.checkBuffer` or |CocHasProvider()|. For historic reason, some features just works, but some are not. @@ -170,8 +244,8 @@ Features automatically work by default:~ - Inlay hints (only works with some coc extensions, but not |coc-config-languageserver| yet). -Note the features could be disabled by |coc-configuration| and some vim -variables. +Note all features could be disabled/enabled by |coc-configuration| and some +vim variables. Features require enabled by configuration:~ @@ -184,23 +258,20 @@ Features require enabled by configuration:~ Features requested by user:~ +- Locations related (including definitions, references etc.) |coc-locations| - Invoke code action |coc-code-actions|. - Show call hierarchy tree |coc-callHierarchy|. - Format, range format and on type format |coc-format|. - Highlight same symbol ranges |coc-document-highlights|. - Outline of document symbols |coc-outline| and |coc-list-symbols|. -- Show hover message |CocAction('doHover')| and |CocAction('definitionHover')|. -- Rename current symbol |CocAction('rename')|. -- Jump to definition locations |CocAction('jumpDefinition')|. -- Jump to declaration locations |CocAction('jumpDeclaration')|. -- Jump to implementation locations |CocAction('jumpImplementation')|. -- Jump to type definition locations |CocAction('jumpTypeDefinition')|. -- Jump to references |CocAction('jumpReferences')| and |CocAction('jumpUsed')|. +- Show hover information |CocAction('doHover')| and |CocAction('definitionHover')|. +- Rename symbol under cursor |CocAction('rename')|. - Open link under cursor |CocAction('openlink')|. - Range selection |CocAction('rangeSelect').| - Create folds |CocAction('fold')|. For convenient, some actions have associated |coc-key-mappings| provided. +Prefer |CocAction()| for more options. Features triggered by languageserver or extension:~ @@ -220,7 +291,8 @@ https://github.com/neoclide/coc.nvim/wiki/Debug-language-server DOCUMENT *coc-document* -A document is created on buffer create, and disposed on buffer unload. +An associated document is created on buffer create, and disposed on buffer +unload. Attached document:~ *coc-document-attached* @@ -234,7 +306,7 @@ LSP features could be provided for the attached buffer. The buffer may not be attached by following reasons: - The 'buftype' is neither nor 'acwrite'. -- Buffer variable |b:coc_enabled| should is `1`. +- Buffer variable |b:coc_enabled| is `0`. - Byte length of buffer exceed |coc-preferences-maxFileSize|. - Buffer is used for command line window. @@ -262,82 +334,133 @@ Note make sure use mapped filetypes for configurations that expect filetypes. ============================================================================== COMPLETION *coc-completion* -Default behavior of coc.nvim's completion: +The builtin completion of vim is no longer used, the default completion +behavior works like VSCode: -- Completion is automatically triggered. -- 'completeopt' is temporarily changed to `noinsert,menuone`. -- Snippet complete item would only be expanded after confirm completion. +- Completion is automatically triggered by default. +- Item selection is enabled by default, use |coc-config-suggest-noselect| to + disable default selection. +- When selection enabled and no preselect item exists, recent used item that + matched will be selected by default. +- Snippet and additional edits only work after confirm completion. +- 'completeopt' is not used and APIs of builtin popupmenu not work. -Use configurations |coc-config-suggest| to change behavior of completion. +Default Key-mappings:~ +To make the completion work like builtin completion without configuration, +following key-mappings are used when the {lhs} is not mapped: + +Use , , and to navigate completion list: > + + inoremap coc#pum#visible() ? coc#pum#next(1) : "\" + inoremap coc#pum#visible() ? coc#pum#prev(1) : "\" + inoremap coc#pum#visible() ? coc#pum#next(0) : "\" + inoremap coc#pum#visible() ? coc#pum#prev(0) : "\" +< +Use and to scroll: > + + inoremap coc#pum#visible() ? coc#pum#scroll(1) : "\" + inoremap coc#pum#visible() ? coc#pum#scroll(0) : "\" +< +Use and to cancel and confirm completion: > + + inoremap coc#pum#visible() ? coc#pum#cancel() : "\" + inoremap coc#pum#visible() ? coc#pum#confirm() : "\" + +Note: and are not remapped by coc.nvim. +> Related variables:~ -- |b:coc_suggest_disable| -- |b:coc_disabled_sources| -- |b:coc_suggest_blacklist| -- |b:coc_additional_keywords| +- Disable completion for buffer: |b:coc_suggest_disable| +- Disable specific sources for buffer: |b:coc_disabled_sources| +- Disable words for trigger completion: |b:coc_suggest_blacklist| +- Add additional keyword characters: |b:coc_additional_keywords| -Related APIs:~ +Related functions:~ -- |coc#start()| -- |coc#refresh()| -- |coc#_select_confirm()| +- Trigger completion with options: |coc#start()|. +- Trigger completion refresh: |coc#refresh()|. +- Select and confirm completion: |coc#_select_confirm()|. +- Check if customized popupmenu is visible: |coc#pum#visible()|. +- Select next complete item: |coc#pum#next()|. +- Select previous complete item: |coc#pum#prev()|. +- Cancel completion and reset trigger text: |coc#pum#cancel()|. +- Confirm completion: |coc#pum#confirm()|. +- Close the popupmenu only: |coc#pum#stop()|. +- Get information of the popupmenu: |coc#pum#info()|. +- Select specific complete item: |coc#pum#select()|. +- Insert word of selected item and finish completion: |coc#pum#insert()|. +- Scroll popupmenu: |coc#pum#scroll()|. -Tips:~ +Customize completion:~ -- 'completeopt' used by coc.nvim default to `noselect,menuone`. -- Your 'completeopt' option would be changed and restored during completion, - so you can still use `menu,preview` for Vim's built in completion. -- Snippet expand and additional edit feature of LSP requires confirm - completion by to work. +Use |coc-config-suggest| to change behavior of completion. ------------------------------------------------------------------------------- +Use 'pumwidth' for configure minimal width of popupmenu and 'pumheight' +for maximum height. -Example completion key-mappings:~ +Related Highlight groups: + |CocPum| for highlight groups of customized pum. + |CocSymbol| for kind icons. + |CocMenuSel| for background highlight of selected item. -Map to trigger completion and navigate to the next item: > +Note: background, border and winblend are configured by +|coc-config-suggest-floatConfig|. - function! s:check_back_space() abort - let col = col('.') - 1 - return !col || getline('.')[col - 1] =~ '\s' - endfunction +Example user key-mappings:~ + *coc-completion-example* - inoremap - \ pumvisible() ? "\" : - \ check_back_space() ? "\" : - \ coc#refresh() +Note: use command `:verbose imap` to check current insert +key-mappings when your key-mappings not work. +Use and to navigate completion list: > -Map to trigger completion: > + function! s:check_back_space() abort + let col = col('.') - 1 + return !col || getline('.')[col - 1] =~ '\s' + endfunction - inoremap coc#refresh() + " Insert when previous text is space, refresh completion if not. + inoremap + \ coc#pum#visible() ? coc#pum#next(1): + \ check_back_space() ? "\" : + \ coc#refresh() + inoremap coc#pum#visible() ? coc#pum#prev(1) : "\" + +Use to trigger completion: > + + if has('nvim') + inoremap coc#refresh() + else + inoremap coc#refresh() + endif < - to confirm completion, use: > +Use to confirm completion, use: > - inoremap pumvisible() ? "\" : "\" + inoremap coc#pum#visible() ? coc#_select_confirm() : "\" < -To make auto-select the first completion item and notify coc.nvim to -format on enter, use: > +To make to confirm selection of selected complete item or notify coc.nvim +to format on enter, use: > - inoremap pumvisible() ? coc#_select_confirm() + inoremap coc#pum#visible() ? coc#_select_confirm() \: "\u\\=coc#on_enter()\" Map for trigger completion, completion confirm, snippet expand and jump -like VSCode. > +like VSCode: > - inoremap - \ pumvisible() ? coc#_select_confirm() : - \ coc#expandableOrJumpable() ? - \ "\=coc#rpc#request('doKeymap', ['snippets-expand-jump',''])\" : - \ check_back_space() ? "\" : - \ coc#refresh() + inoremap + \ coc#pum#visible() ? coc#_select_confirm() : + \ coc#expandableOrJumpable() ? + \ "\=coc#rpc#request('doKeymap', ['snippets-expand-jump',''])\" : + \ check_back_space() ? "\" : + \ coc#refresh() - function! s:check_back_space() abort - let col = col('.') - 1 - return !col || getline('.')[col - 1] =~# '\s' - endfunction + function! s:check_back_space() abort + let col = col('.') - 1 + return !col || getline('.')[col - 1] =~# '\s' + endfunction - let g:coc_snippet_next = '' + let g:coc_snippet_next = '' < Note: the `coc-snippets` extension is required for this to work. @@ -397,10 +520,72 @@ Use key-mappings: Check all diagnostics~ -Use |coc-list-diagnostics| to open |CocList| with all diagnostics. +Use |coc-list-diagnostics| to open |coc-list| with all available diagnostics. Use API |CocAction('diagnosticList')| to get list of all diagnostics. +============================================================================== +LOCATIONS SUPPORT *coc-locations* + +There're different kinds of locations, including "definitions", "declarations", +"implementations", "typeDefinitions" and "references", the languageserver used +by current document may support some of them. + +Key-mappings for invoke locations request~ + +- |(coc-definition)| +- |(coc-declaration)| +- |(coc-implementation)| +- |(coc-type-definition)| +- |(coc-references)| +- |(coc-references-used)| + +Error will be shown when the buffer not attached |coc-document-attached|. + +Location jump behavior~ + +When there's only one location returned, the location is opened by command +specified by |coc-preferences-jumpCommand| ("edit" by default), context mark +is added by |m'|, so you can jump back previous location by . + +When multiple locations returned, |coc-list-location| is opened for preview +and other further actions. + +To use |coc-list-location| for single location as well, use +|coc-locations-api| (instead key-mappings provided by coc.nvim). + +To change default options of |coc-list-location| or use other plugin for +list of locations, see |g:coc_enable_locationlist|. + +To use vim's quickfix for locations, use configuration +|coc-preferences-useQuickfixForLocations|. + +To use vim's tag list for definitions, use |CocTagFunc()|. + + *coc-locations-api* +Related APIs~ + +APIs for jump locations: + +- Jump to definition locations |CocAction('jumpDefinition')|. +- Jump to declaration locations |CocAction('jumpDeclaration')|. +- Jump to implementation locations |CocAction('jumpImplementation')|. +- Jump to type definition locations |CocAction('jumpTypeDefinition')|. +- Jump to references |CocAction('jumpReferences')| and |CocAction('jumpUsed')|. + +APIs for get location list: + +- |CocAction('definitions')| +- |CocAction('declarations')| +- |CocAction('implementations')| +- |CocAction('typeDefinitions')| +- |CocAction('references')| + +Send custom locations request to languageserver: + +- |CocLocations()| +- |CocLocationsAsync()| + ============================================================================== SIGNATURE HELP *coc-signature* @@ -461,6 +646,12 @@ Or create |BufWritePre| autocmd like: > < Note avoid use |CocActionAsync| with |BufWritePre|. +Format on enter:~ + +Use |coc#on_enter()| is required to notify coc.nvim the press on enter key. + +Configure |coc-preferences-bracketEnterImprove| + ============================================================================== CODE ACTION *coc-code-actions* @@ -547,8 +738,8 @@ Snippets engine of coc.nvim support both VSCode snippets and ultisnips snippets format. The complete item with snippet format has label ends with `~` by default. -Select the complete item and confirm the completion by to expand the -snippet. +Select the complete item and confirm the completion by |coc#pum#confirm()| to +expand the snippet. A snippet session would be deactivated under the following conditions: @@ -561,7 +752,7 @@ A snippet session would be deactivated under the following conditions: To load and expand custom snippets, install `coc-snippets` extension is recommended. -Related configurations: +Related configurations:~ - |g:coc_snippet_prev| - |g:coc_snippet_next| @@ -570,7 +761,7 @@ Related configurations: - |coc-preferences-snippetStatusText| - |coc-preferences-snippetHighlight| -Related functions: +Related functions:~ - |coc#snippet#next()| - |coc#snippet#prev()| @@ -578,16 +769,19 @@ Related functions: - |coc#jumpable()| - |coc#expandableOrJumpable()| -Related variables: |b:coc_snippet_active| -Related highlights: |CocSnippetVisual| -Related autocmds: |CocJumpPlaceholder| +Related variables, highlights and autocmds:~ + +- |b:coc_snippet_active| +- |CocSnippetVisual| +- |CocJumpPlaceholder| ============================================================================== WROKSPACE SUPPORT *coc-workspace* Workspace folders~ -Unlike VSCode, workspace folders are resolved from filepath after buffer load. +Unlike VSCode, workspace folders are resolved from filepath after buffer +creation. A list of file/folder names is used for resolve workspace folder, the patterns could comes from: @@ -1379,10 +1573,22 @@ coc#start([{option}]) *coc#start()* < Use `:CocList sources` to get available sources. +coc#refresh() *coc#refresh()* + + Start or refresh completion at current cursor position, bind this to + 'imap' to trigger completion, example: > + + inoremap coc#refresh() + +coc#_select_confirm() *coc#_select_confirm()* + + Select first completion item if no completion item is selected, then + confirm the completion. + coc#config({section}, {value}) *coc#config()* - Change user configuration by Vim script, no changes would be made to - user configuration file. Example: > + Change user configuration, overwrite configurations from + user config file and default values. Example: > call coc#config('coc.preferences', { \ 'timeout': 1000, @@ -1397,10 +1603,7 @@ coc#config({section}, {value}) *coc#config()* < Note: this function can be called multiple times. - - Note: this function can be called before the service has been - initialized. - + Note: this function can be called before coc.nvim started. Note: this function can work alongside the user configuration file, but it's not recommended to use both. @@ -1426,13 +1629,6 @@ coc#add_command({id}, {command}, [{title}]) *coc#add_command()* call coc#add_command('mundoToggle', 'MundoToggle', \ 'toggle mundo window') < -coc#refresh() *coc#refresh()* - - Start or refresh completion at current cursor position, bind this to - 'imap' to trigger completion, example: > - - inoremap coc#refresh() -< coc#expandable() *coc#expandable()* Check if a snippet is expandable at the current position. @@ -1453,10 +1649,12 @@ coc#on_enter() *coc#on_enter()* Used for the format on type and improvement of brackets, example: > - inoremap pumvisible() ? coc#_select_confirm() - \: "\u\\=coc#on_enter()\" + " Confirm the completion when popupmenu is visible, insert and + " notify coc.nvim otherwise. + inoremap coc#pum#visible() ? coc#pum#confirm() + \: "\u\\=coc#on_enter()\" < - Note:to enable formatOnType, add ` "coc.preferences.formatOnType": true` + Note:to enable format on type, add ` "coc.preferences.formatOnType": true` in your settings file. coc#status() *coc#status()* @@ -1466,15 +1664,6 @@ coc#status() *coc#status()* extension contributed statuses from `g:coc_status`. For statusline integration, see |coc-status| -coc#_select_confirm() *coc#_select_confirm()* - - Select first completion item if no completion item is selected, then - confirm the completion. - - Note: for this function to work as expected, either |CompleteChanged| - autocmd should exist or only and should be used to select - a completion item. - coc#util#api_version() *coc#util#api_version()* Get coc.nvim's vim api version number, start from `1`. @@ -1522,6 +1711,99 @@ coc#snippet#prev() *coc#snippet#prev()* Jump to previous placeholder, does nothing when |coc#jumpable| is 0. + *coc#pum* +coc#pum#visible() *coc#pum#visible()* + + Check if customized popupmenu is visible. + +coc#pum#next({insert}) *coc#pum#next()* + + Select next item of customized popupmenu, insert word when {insert} is + truth value. + +coc#pum#prev({insert}) *coc#pum#prev()* + + Select previous item of customized popupmenu, insert word when {insert} + is truth value. + +coc#pum#stop() *coc#pum#stop()* + + Close the customized popupmenu, works like of vim. + Return + +coc#pum#cancel() *coc#pum#cancel()* + + Cancel the customized popupmenu and revert trigger input, like + of vim. Return empty string. + +coc#pum#confirm() *coc#pum#confirm()* + + Confirm completion and close the customized pum, like of vim. + Return empty string. + +coc#pum#info() *coc#pum#info()* + + Return information of the customized popupmenu, should only be used + when |coc#pum#visible()| is 1. + + Result contains: + index Current select item index, 0 based. + scrollbar Non-zero if a scrollbar is displayed. + row Screen row count, 0 based. + col Screen column count, 0 based. + width Width of pum, including padding and border. + height Height of pum, including padding and border. + size Count of displayed complete items. + inserted Is |v:true| when there is item inserted. + +coc#pum#select({index}, {insert}, {confirm}) *coc#pum#select()* + + Selects an item in the completion popupmenu. + Return empty string. + + Parameters:~ + {index} Index (zero-based) of the item to select. + {insert} Whether the selection should be inserted + in the buffer. + {confirm} Confirm the completion and dismis the + popupmenu, implies `insert`. + +coc#pum#insert() *coc#pum#insert()* + + Insert word of current selected item and finish completion. + Timer is used to make it works as rhs of key-mappings. + +coc#pum#scroll({forward}) *coc#pum#scroll()* + + Scroll the popupmenu forward or backward by page. + Timer is used to make it works as rhs of key-mappings. + Return empty string. + + Parameters:~ + {forward} Scroll forward when none zero. + + *coc#notify* +coc#notify#close_all() *coc#notify#close_all()* + + Close all notification windows. + +coc#notify#do_action([{winid}]) *coc#notify#do_action()* + + Invoke action for all notification windows, or particular window with + winid. + +coc#notify#copy() *coc#notify#copy()* + + Copy all content from notifications to system clipboard. + +coc#notify#show_sources() *coc#notify#show_sources()* + + Show source name (extension name) in notification windows. + +coc#notify#keep() *coc#notify#keep()* + + Stop auto hide timer of notification windows. + coc#float#has_float([{all}]) *coc#float#has_float()* Check if float window/popup exists, check coc.nvim's float @@ -1663,36 +1945,11 @@ CocTagFunc({pattern}, {flags}, {info}) *CocTagFunc()* > :echo exists('&tagfunc') < - *coc#notify* -coc#notify#close_all() *coc#notify#close_all()* - - Close all notification windows. - -coc#notify#do_action([{winid}]) *coc#notify#do_action()* - - Invoke action for all notification windows, or particular window with - winid. - - Use `"notification.preferMenuPicker": true` if you would like to - choose action on notification shown. - -coc#notify#copy() *coc#notify#copy()* - - Copy all content from notifications to system clipboard. - -coc#notify#show_sources() *coc#notify#show_sources()* - - Show source name (extension name) in notification windows. - -coc#notify#keep() *coc#notify#keep()* - - Stop auto hide timer of notification windows. - ------------------------------------------------------------------------------ *coc-actions* Available Actions ~ -Acceptable {action} names for |CocAction()| and |CocActionAsync|. +Acceptable {action} names for |CocAction()| and |CocActionAsync()|. "ensureDocument" *CocAction('ensureDocument')* @@ -1740,6 +1997,34 @@ Acceptable {action} names for |CocAction()| and |CocActionAsync|. enable/disable {source}. +"definitions" *CocAction('definitions')* + + Get definition locations of symbol under cursor. + Return LSP `Location[]` + +"declarations" *CocAction('declarations')* + + Get declaration location(s) of symbol under cursor. + Return LSP `Location | Location[] | LocationLink[]` + +"implementations" *CocAction('implementations')* + + Get implementation locations of symbol under cursor. + Return LSP `Location[]` + +"typeDefinitions" *CocAction('typeDefinitions')* + + Get type definition locations of symbol under cursor. + Return LSP `Location[]` + +"references" [{excludeDeclaration}] *CocAction('references')* + + Get references location list of symbol under cursor. + + {excludeDeclaration}: exclude declaration locations when not zero. + + Return LSP `Location[]` + "jumpDefinition" [{openCommand}] *CocAction('jumpDefinition')* jump to definition locations of the current symbol. @@ -1811,11 +2096,6 @@ Acceptable {action} names for |CocAction()| and |CocActionAsync|. Same as |CocAction('doHover')|, but includes definition contents from definition provider when possible. -"references" [{excludeDeclaration}] *CocAction('references')* - - Get references location list, declaration locations are included by - default. - "showSignatureHelp" *CocAction('showSignatureHelp')* Echo signature help of current function, return `v:false` when @@ -1887,10 +2167,10 @@ Acceptable {action} names for |CocAction()| and |CocActionAsync|. Run code action for range. - {start} start line number of range. - {end} end line number of range. - {kind} code action kind, see |CocAction('codeActions')| for available - action kind. + {start} Start line number of range. + {end} End line number of range. + {kind} Code action kind, see |CocAction('codeActions')| for available + action kind. Can be used to create commands like: > @@ -2406,7 +2686,8 @@ cursor position. Float window/popup related~ *CocFloating* default highlight group of floating windows/popups. -Default link to |NormalFloat| on neovim and|`Pmenu| on vim. +Default links to |NormalFloat| on neovim and|`Pmenu| on vim. +*CocFloatDividingLine* for dividing lines, links to |NonText| by default. *CocErrorFloat* for errors in floating windows/popups. *CocWarningFloat* for warnings in floating windows/popups. *CocInfoFloat* for infos in floating windows/popups. @@ -2441,12 +2722,32 @@ CocTree *CocTree* *CocTreeOpenClose* for open and close icon in tree view. *CocTreeSelected* for highlight lines contains selected node. +Popup menu related~ + *CocPum* +*CocPumSearch* for matched input characters, linked to |CocSearch| by default. +*CocPumMenu* for menu of complete item. +*CocPumShortcut* for shortcut text of source. +*CocPumDeprecated* for deprecated label. +*CocPumVirtualText* for virtual text which enabled by +|coc-config-suggest-virtualText| + Symbol icons~ CocSymbol *CocSymbol* -Highlight groups for symbol icons, including: +Highlight groups for symbol icons, including `CompletionItemKind` and +`SymbolKind` of LSP. The highlight groups link to related |nvim-treesitter| +highlight groups when possible and fallback to builtin highlight groups. +*CocSymbolDefault* linked to |hl-MoreMsg| by default. +*CocSymbolText* +*CocSymbolUnit* +*CocSymbolValue* +*CocSymbolKeyword* +*CocSymbolSnippet* +*CocSymbolColor* +*CocSymbolReference* +*CocSymbolFolder* *CocSymbolFile* *CocSymbolModule* *CocSymbolNamespace* @@ -2473,15 +2774,14 @@ Highlight groups for symbol icons, including: *CocSymbolEvent* *CocSymbolOperator* *CocSymbolTypeParameter* -*CocSymbolDefault* -Note: Use configuration `suggest.completionItemKindLabels` for customized icon +Note: Use configuration |coc-config-suggest-completionItemKindLabels| for customized icon characters. Semantic token highlight groups~ *CocSem* -Semantic highlight groups are starts with `CocSem` which links to related +Semantic highlight groups are starts with `CocSem` which link to related |nvim-treesitter| highlight groups when possible and fallback to builtin highlight groups, use variable |g:coc_default_semantic_highlight_groups| to disable creation of these highlight groups. @@ -2518,7 +2818,8 @@ Others~ *CocCursorRange* for highlight of activated cursors ranges. *CocLinkedEditing* for highlight of activated linked editing ranges. *CocHoverRange* for range of current hovered symbol. -*CocMenuSel* for current menu item in menu dialog. +*CocMenuSel* for current menu item in menu dialog (should only provide +background color). *CocSelectedRange* for highlight ranges of outgoing calls. *CocSnippetVisual* for highlight snippet placeholders. *CocInlayHint* for highlight inlay hint virtual text block, default linked to @@ -2704,13 +3005,12 @@ Options of CocList command~ Use interactive mode, list items would be reloaded on input change, filter and sort would be done by list implementation. + Note: only works when the list support interactive mode. + Note: filtering and sorting would be done by underlying task, which means options including `--strict`, `--no-sort`, `--regex`, `--ignore-case` would not work at all. - Note: it requires list implementation have support for interactive - mode. - --auto-preview -A @@ -2737,9 +3037,9 @@ LIST CONFIGURATION *coc-list-configuration* Use `coc-settings.json` for configuration of lists. -The general configuration of list starts with 'list.'. +Configuration of list starts with 'list.'. -Checkout |coc-config-list| or type `list.` in your settings file to get completion +See |coc-config-list| or type `list.` in your settings file to get completion list (requires coc-json installed). For configuration of a specified list, use section that starts with: @@ -2822,7 +3122,7 @@ Default mappings on normal mode: - Select action. - Scroll preview window down. - Scroll preview window up. - - Toggle select of current item. + - Toggle selection of current item. i,I,o,O,a,A - Change to insert mode. p - Preview action. : - Cancel list session without closing window. @@ -3166,8 +3466,7 @@ result (same as ). NOTIFICATION SUPPORT *coc-notification* -Notification windows are shown from bottom right of the screen. Notifications -behavior like notifications on VSCode. +Notification windows are created at the bottom right of the screen. Notifications are created by javascript APIs: `window.showErrorMessage()`, `window.showWarningMessage()`, `window.showInformationMessage()`, @@ -3176,26 +3475,24 @@ Notifications are created by javascript APIs: `window.showErrorMessage()`, Possible kind of notifications: 'error', 'warning', 'info' and 'progress'. Message notifications (not progress) requires -|coc-preferences-enableMessageDialog| to be `true`. Message notifications -without actions would be automatically closed after milliseconds specified by -|coc-config-notification-timeout|. +|coc-preferences-enableMessageDialog| to be `true`. -Features: +Message notifications without actions would be automatically closed after +milliseconds specified by |coc-config-notification-timeout|. -- Animated position and 'winblend' on show and hide. -- Reposition current tab notification windows when notification dismissed. -- Notification with same options will be replaced to avoid duplicated windows. -- Percent and message update for progress notification. -- Click the button (neovim only) or use |coc#notify#do_action()| to invoke - actions. -- Click the window would cancel auto close (on neovim and focusable is true). -- For customize icons, see |g:coc_notify|. -- For customize highlights, see |CocNotification|. -- For customize other behaviors, see |coc-config-notification|. -- For available user actions (ex: "close_all", "do_action" "show_sources"), see - |coc#notify|. +Customize notifications:~ -Note notification feature requires neovim >= 0.4.0 or vim >= 8.2.0750 to work. +- Customize icons: |g:coc_notify| +- Customize highlights: |CocNotification| +- Customize configurations: |coc-config-notification| + +Related functions:~ + +- |coc#notify#close_all()| +- |coc#notify#do_action()| +- |coc#notify#copy()| +- |coc#notify#show_sources()| +- |coc#notify#keep()| ============================================================================== diff --git a/sources_non_forked/coc.nvim/history.md b/sources_non_forked/coc.nvim/history.md index 8f0a635c..32474286 100644 --- a/sources_non_forked/coc.nvim/history.md +++ b/sources_non_forked/coc.nvim/history.md @@ -1,3 +1,22 @@ +# 2022-08-07 + +- Add configuration 'suggest.pumFloatConfig'. + +# 2022-08-04 + +- Make diagnostic float window with the same background as CocFloating. + +# 2022-08-03 + +- Add highlight group 'CocFloatingDividingLine'. + +# 2022-08-01 + +- Use custom popup menu, #3862. +- Use "first" instead of "none" for configuration `suggest.selection`. +- Make "first" default for `suggest.selection`, like VSCode. +- Add default blue color for hlgroup `CocMenuSel`. + # 2022-06-14 - Add highlight groups `CocListLine` and `CocListSearch`. diff --git a/sources_non_forked/coc.nvim/package.json b/sources_non_forked/coc.nvim/package.json index b1398eca..3285f308 100644 --- a/sources_non_forked/coc.nvim/package.json +++ b/sources_non_forked/coc.nvim/package.json @@ -1,6 +1,6 @@ { "name": "coc.nvim-release", - "version": "0.0.81", + "version": "0.0.82", "description": "LSP based intellisense engine for neovim & vim8.", "engines": { "node": ">=12.12.0" diff --git a/sources_non_forked/coc.nvim/plugin/coc.vim b/sources_non_forked/coc.nvim/plugin/coc.vim index a7548a48..39514537 100644 --- a/sources_non_forked/coc.nvim/plugin/coc.vim +++ b/sources_non_forked/coc.nvim/plugin/coc.vim @@ -7,25 +7,25 @@ function! s:checkVersion() abort let l:unsupported = 0 if get(g:, 'coc_disable_startup_warning', 0) != 1 if has('nvim') - let l:unsupported = !has('nvim-0.3.2') + let l:unsupported = !has('nvim-0.4.0') else - let l:unsupported = !has('patch-8.0.1453') + let l:unsupported = !has('patch-8.1.1719') endif if l:unsupported == 1 echohl Error - echom "coc.nvim requires at least Vim 8.0.1453 or Neovim 0.3.2, but you're using an older version." + echom "coc.nvim requires at least Vim 8.1.1719 or Neovim 0.4.0, but you're using an older version." echom "Please upgrade your (neo)vim." echom "You can add this to your vimrc to avoid this message:" echom " let g:coc_disable_startup_warning = 1" echom "Note that some features may error out or behave incorrectly." - echom "Please do not report bugs unless you're using at least Vim 8.0.1453 or Neovim 0.3.2." + echom "Please do not report bugs unless you're using at least Vim 8.1.1719 or Neovim 0.4.0." echohl None sleep 2 else - if !has('nvim-0.4.0') && !has('patch-8.1.1719') + if !has('nvim-0.5.0') && !has('patch-8.2.0750') echohl WarningMsg - echom "coc.nvim works best on vim >= 8.1.1719 and neovim >= 0.4.0, consider upgrade your vim." + echom "coc.nvim works best on vim >= 8.2.0750 and neovim >= 0.5.0, consider upgrade your vim." echom "You can add this to your vimrc to avoid this message:" echom " let g:coc_disable_startup_warning = 1" echom "Note that some features may behave incorrectly." @@ -277,19 +277,6 @@ function! s:HandleCharInsert(char, bufnr) abort call s:Autocmd('InsertCharPre', a:char, a:bufnr) endfunction -function! s:HandleCompleteDone(complete_item) abort - let item = copy(a:complete_item) - if get(g:, 'coc_hide_pum', 0) - let item['close'] = v:true - let g:coc_hide_pum = 0 - endif - if get(g:, 'coc_disable_complete_done', 0) - let g:coc_disable_complete_done = 0 - let item['closed'] = v:true - endif - call s:Autocmd('CompleteDone', item) -endfunction - function! s:HandleWinScrolled(winid) abort if getwinvar(a:winid, 'float', 0) call coc#float#nvim_scrollbar(a:winid) @@ -313,13 +300,6 @@ function! s:Enable(initialize) augroup coc_nvim autocmd! - if exists('##MenuPopupChanged') && exists('*nvim_open_win') - autocmd MenuPopupChanged * call s:Autocmd('MenuPopupChanged', get(v:, 'event', {}), win_screenpos(winnr())[0] + winline() - 2) - endif - if exists('##CompleteChanged') - autocmd CompleteChanged * call s:Autocmd('MenuPopupChanged', get(v:, 'event', {}), win_screenpos(winnr())[0] + winline() - 2) - endif - if coc#rpc#started() autocmd VimEnter * call coc#rpc#notify('VimEnter', []) elseif get(g:, 'coc_start_at_startup', 1) @@ -337,16 +317,17 @@ function! s:Enable(initialize) autocmd TermOpen * call s:Autocmd('TermOpen', +expand('')) autocmd WinEnter * call coc#float#nvim_win_enter(win_getid()) endif + if exists('##CompleteChanged') + autocmd CompleteChanged * call coc#pum#stop() + endif autocmd CursorMoved list:///* call coc#list#select(bufnr('%'), line('.')) + autocmd CursorHold * call coc#float#check_related() if exists('##WinClosed') autocmd WinClosed * call coc#float#on_close(+expand('')) autocmd WinClosed * call coc#notify#on_close(+expand('')) elseif exists('##TabEnter') autocmd TabEnter * call coc#notify#reflow() endif - if has('nvim-0.4.0') || has('patch-8.1.1719') - autocmd CursorHold * call coc#float#check_related() - endif if exists('##WinScrolled') autocmd WinScrolled * call s:HandleWinScrolled(+expand('')) endif @@ -357,7 +338,6 @@ function! s:Enable(initialize) autocmd BufWinLeave * call s:Autocmd('BufWinLeave', +expand(''), bufwinid(+expand(''))) autocmd BufWinEnter * call s:Autocmd('BufWinEnter', +expand(''), win_getid()) autocmd FileType * call s:Autocmd('FileType', expand(''), +expand('')) - autocmd CompleteDone * call s:HandleCompleteDone(get(v:, 'completed_item', {})) autocmd InsertCharPre * call s:HandleCharInsert(v:char, bufnr('%')) if exists('##TextChangedP') autocmd TextChangedP * call s:Autocmd('TextChangedP', +expand(''), coc#util#change_info()) @@ -371,7 +351,7 @@ function! s:Enable(initialize) autocmd BufWritePost * call s:Autocmd('BufWritePost', +expand(''), getbufvar(+expand(''), 'changedtick')) autocmd CursorMoved * call s:Autocmd('CursorMoved', +expand(''), [line('.'), col('.')]) autocmd CursorMovedI * call s:Autocmd('CursorMovedI', +expand(''), [line('.'), col('.')]) - autocmd CursorHold * call s:Autocmd('CursorHold', +expand(''), [line('.'), col('.')], coc#util#suggest_variables(bufnr('%'))) + autocmd CursorHold * call s:Autocmd('CursorHold', +expand(''), [line('.'), col('.')]) autocmd CursorHoldI * call s:Autocmd('CursorHoldI', +expand(''), [line('.'), col('.')]) autocmd BufNewFile,BufReadPost * call s:Autocmd('BufCreate', +expand('')) autocmd BufUnload * call s:Autocmd('BufUnload', +expand('')) @@ -393,6 +373,15 @@ function! s:Enable(initialize) endif endfunction +function! s:FgColor(hlGroup) abort + let fgId = synIDtrans(hlID(a:hlGroup)) + let ctermfg = synIDattr(fgId, 'reverse', 'cterm') ==# '1' ? synIDattr(fgId, 'bg', 'cterm') : synIDattr(fgId, 'fg', 'cterm') + let guifg = synIDattr(fgId, 'reverse', 'gui') ==# '1' ? synIDattr(fgId, 'bg', 'gui') : synIDattr(fgId, 'fg', 'gui') + let cmd = ' ctermfg=' . (empty(ctermfg) ? '223' : ctermfg) + let cmd .= ' guifg=' . (empty(guifg) ? '#ebdbb2' : guifg) + return cmd +endfunction + function! s:Hi() abort hi default CocErrorSign ctermfg=Red guifg=#ff0000 guibg=NONE hi default CocWarningSign ctermfg=Brown guifg=#ff922b guibg=NONE @@ -403,22 +392,14 @@ function! s:Hi() abort hi default CocUnderline term=underline cterm=underline gui=underline hi default CocBold term=bold cterm=bold gui=bold hi default CocItalic term=italic cterm=italic gui=italic - if s:is_vim || has('nvim-0.4.0') - hi default CocStrikeThrough term=strikethrough cterm=strikethrough gui=strikethrough - else - hi default CocStrikeThrough guifg=#989898 ctermfg=gray - endif + hi default CocStrikeThrough term=strikethrough cterm=strikethrough gui=strikethrough hi default CocMarkdownLink ctermfg=Blue guifg=#15aabf guibg=NONE hi default CocDisabled guifg=#999999 ctermfg=gray hi default CocSearch ctermfg=Blue guifg=#15aabf guibg=NONE + hi default CocMenuSel ctermbg=237 guibg=#13354A hi default link CocFadeOut Conceal hi default link CocMarkdownCode markdownCode hi default link CocMarkdownHeader markdownH1 - hi default link CocMenuSel PmenuSel - hi default link CocErrorFloat CocErrorSign - hi default link CocWarningFloat CocWarningSign - hi default link CocInfoFloat CocInfoSign - hi default link CocHintFloat CocHintSign hi default link CocErrorHighlight CocUnderline hi default link CocWarningHighlight CocUnderline hi default link CocInfoHighlight CocUnderline @@ -452,38 +433,19 @@ function! s:Hi() abort hi default link CocSelectedRange CocHighlightText " Symbol highlights hi default link CocSymbolDefault MoreMsg - hi default link CocSymbolFile Statement - hi default link CocSymbolModule Statement - hi default link CocSymbolNamespace Statement - hi default link CocSymbolPackage Statement - hi default link CocSymbolClass Statement - hi default link CocSymbolMethod Function - hi default link CocSymbolProperty Keyword - hi default link CocSymbolField CocSymbolDefault - hi default link CocSymbolConstructor Function - hi default link CocSymbolEnum CocSymbolDefault - hi default link CocSymbolInterface CocSymbolDefault - hi default link CocSymbolFunction Function - hi default link CocSymbolVariable CocSymbolDefault - hi default link CocSymbolConstant Constant - hi default link CocSymbolString String - hi default link CocSymbolNumber Number - hi default link CocSymbolBoolean Boolean - hi default link CocSymbolArray CocSymbolDefault - hi default link CocSymbolObject CocSymbolDefault - hi default link CocSymbolKey Keyword - hi default link CocSymbolNull Type - hi default link CocSymbolEnumMember CocSymbolDefault - hi default link CocSymbolStruct Keyword - hi default link CocSymbolEvent Keyword - hi default link CocSymbolOperator Operator - hi default link CocSymbolTypeParameter Operator + "Pum + hi default link CocPumSearch CocSearch + hi default link CocPumMenu CocFloating + hi default link CocPumShortcut Comment + hi default link CocPumDeprecated CocStrikeThrough + hi default CocPumVirtualText ctermfg=239 guifg=#504945 if has('nvim') hi default link CocFloating NormalFloat else hi default link CocFloating Pmenu endif + hi default link CocFloatDividingLine NonText if !exists('*sign_getdefined') || empty(sign_getdefined('CocCurrentLine')) sign define CocCurrentLine linehl=CocMenuSel endif @@ -500,10 +462,23 @@ function! s:Hi() abort if has('nvim') let names = ['Error', 'Warning', 'Info', 'Hint'] for name in names - if !hlexists('Coc'.name.'VirtualText') + let suffix = name ==# 'Warning' ? 'Warn' : name + if hlexists('DiagnosticVirtualText'.suffix) + exe 'hi default link Coc'.name.'VirtualText DiagnosticVirtualText'.suffix + else exe 'hi default link Coc'.name.'VirtualText Coc'.name.'Sign' endif + if hlexists('Diagnostic'.suffix) + exe 'hi default link Coc'.name.'Float Diagnostic'.suffix + else + exe 'hi default link Coc'.name.'Float '.coc#highlight#compose_hlgroup('Coc'.name.'Sign', 'CocFloating') + endif endfor + else + execute 'hi default link CocErrorFloat '.coc#highlight#compose_hlgroup('CocErrorSign', 'CocFloating') + execute 'hi default link CocWarningFloat '.coc#highlight#compose_hlgroup('CocWarningSign', 'CocFloating') + execute 'hi default link CocInfoFloat '.coc#highlight#compose_hlgroup('CocInfoSign', 'CocFloating') + execute 'hi default link CocHintFloat '.coc#highlight#compose_hlgroup('CocHintSign', 'CocFloating') endif call s:AddAnsiGroups() @@ -541,6 +516,48 @@ function! s:Hi() abort execute 'hi default link CocSem'.key.' '.(hlexists(ts) ? ts : fallback) endfor endif + let symbolMap = { + \ 'Keyword': ['TSKeyword', 'Keyword'], + \ 'Namespace': ['TSNamespace', 'Include'], + \ 'Class': ['TSConstructor', 'Special'], + \ 'Method': ['TSMethod', 'Function'], + \ 'Property': ['TSProperty', 'Identifier'], + \ 'Text': ['TSText', 'CocSymbolDefault'], + \ 'Unit': ['TSUnit', 'CocSymbolDefault'], + \ 'Value': ['TSValue', 'CocSymbolDefault'], + \ 'Snippet': ['TSSnippet', 'CocSymbolDefault'], + \ 'Color': ['TSColor', 'Float'], + \ 'Reference': ['TSTextReference', 'Constant'], + \ 'Folder': ['TSFolder', 'CocSymbolDefault'], + \ 'File': ['TSFile', 'Statement'], + \ 'Module': ['TSModule', 'Statement'], + \ 'Package': ['TSPackage', 'Statement'], + \ 'Field': ['TSField', 'Identifier'], + \ 'Constructor': ['TSConstructor', 'Special'], + \ 'Enum': ['TSEnum', 'CocSymbolDefault'], + \ 'Interface': ['TSInterface', 'CocSymbolDefault'], + \ 'Function': ['TSFunction', 'Function'], + \ 'Variable': ['TSVariableBuiltin', 'Special'], + \ 'Constant': ['TSConstant', 'Constant'], + \ 'String': ['TSString', 'String'], + \ 'Number': ['TSNumber', 'Number'], + \ 'Boolean': ['TSBoolean', 'Boolean'], + \ 'Array': ['TSArray', 'CocSymbolDefault'], + \ 'Object': ['TSObject', 'CocSymbolDefault'], + \ 'Key': ['TSKey', 'Identifier'], + \ 'Null': ['TSNull', 'Type'], + \ 'EnumMember': ['TSEnumMember', 'Identifier'], + \ 'Struct': ['TSStruct', 'Keyword'], + \ 'Event': ['TSEvent', 'Constant'], + \ 'Operator': ['TSOperator', 'Operator'], + \ 'TypeParameter': ['TSParameter', 'Identifier'], + \ } + for [key, value] in items(symbolMap) + let hlGroup = hlexists(value[0]) ? value[0] : get(value, 1, 'CocSymbolDefault') + if hlexists(hlGroup) + execute 'hi default CocSymbol'.key.' '.s:FgColor(hlGroup) + endif + endfor endfunction function! s:FormatFromSelected(type) @@ -563,8 +580,8 @@ function! s:ShowInfo() else let output = trim(system(node . ' --version')) let ms = matchlist(output, 'v\(\d\+\).\(\d\+\).\(\d\+\)') - if empty(ms) || str2nr(ms[1]) < 12 || (str2nr(ms[1]) == 12 && str2nr(ms[2]) < 12) - call add(lines, 'Error: Node version '.output.' < 12.12.0, please upgrade node.js') + if empty(ms) || str2nr(ms[1]) < 14 || (str2nr(ms[1]) == 14 && str2nr(ms[2]) < 14) + call add(lines, 'Error: Node version '.output.' < 14.14.0, please upgrade node.js') endif endif " check bundle @@ -615,6 +632,32 @@ command! -nargs=* -bar -complete=custom,s:InstallOptions CocInstall :call coc# call s:Enable(1) call s:Hi() +" Default key-mappings for completion +if empty(mapcheck('', 'i')) + inoremap coc#pum#visible() ? coc#pum#next(1) : "\" +endif +if empty(mapcheck('', 'i')) + inoremap coc#pum#visible() ? coc#pum#prev(1) : "\" +endif +if empty(mapcheck('', 'i')) + inoremap coc#pum#visible() ? coc#pum#next(0) : "\" +endif +if empty(mapcheck('', 'i')) + inoremap coc#pum#visible() ? coc#pum#prev(0) : "\" +endif +if empty(mapcheck('', 'i')) + inoremap coc#pum#visible() ? coc#pum#cancel() : "\" +endif +if empty(mapcheck('', 'i')) + inoremap coc#pum#visible() ? coc#pum#confirm() : "\" +endif +if empty(mapcheck('', 'i')) + inoremap coc#pum#visible() ? coc#pum#scroll(1) : "\" +endif +if empty(mapcheck('', 'i')) + inoremap coc#pum#visible() ? coc#pum#scroll(0) : "\" +endif + vnoremap (coc-range-select) :call CocActionAsync('rangeSelect', visualmode(), v:true) vnoremap (coc-range-select-backward) :call CocActionAsync('rangeSelect', visualmode(), v:false) nnoremap (coc-range-select) :call CocActionAsync('rangeSelect', '', v:true) @@ -645,7 +688,6 @@ nnoremap (coc-float-hide) :call coc#float#c nnoremap (coc-float-jump) :call coc#float#jump() nnoremap (coc-command-repeat) :call CocAction('repeatCommand') nnoremap (coc-refactor) :call CocActionAsync('refactor') -inoremap CocRefresh =coc#_complete() nnoremap (coc-cursors-operator) :set operatorfunc=CursorRangeFromSelectedg@ vnoremap (coc-cursors-range) :call CocAction('cursorsSelect', bufnr('%'), 'range', visualmode()) diff --git a/sources_non_forked/rainbow/.github/ISSUE_TEMPLATE/bug_report.md b/sources_non_forked/rainbow/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 00000000..9144a5ae --- /dev/null +++ b/sources_non_forked/rainbow/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,32 @@ +--- +name: Bug report +about: Create a report to help us improve +title: "[Bug] " +labels: '' +assignees: '' + +--- + +### **Describe the bug** +A clear and concise description of what the bug is. + +### **To Reproduce** +Steps to reproduce the behavior, **Please provide a minimal piece of code to produce this issue**, along with it's filename and it's filetype detected by vim (via `:set ft?`), a piece of text is better than a picture here. For example: + +File: `bug.js`, filetype=javascript +``` +var pair = {x: 1, y: 2} +``` + +Steps: +1. Open file via `vim bug.js` +2. See the color of `{` and `}` around text `{x: 1, y: 2}` + +### **Expected behavior** +A clear and concise description of what you expected to happen. + +### **Screenshots** +Provide a screenshot to describe what you got. + +### **Additional context** +**Are you using some third-party syntax plugins?** Add any other context about the problem here. diff --git a/sources_non_forked/rainbow/.github/ISSUE_TEMPLATE/feature_request.md b/sources_non_forked/rainbow/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 00000000..e301d68c --- /dev/null +++ b/sources_non_forked/rainbow/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,20 @@ +--- +name: Feature request +about: Suggest an idea for this project +title: '' +labels: feature request +assignees: '' + +--- + +**Is your feature request related to a problem? Please describe.** +A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] + +**Describe the solution you'd like** +A clear and concise description of what you want to happen. + +**Describe alternatives you've considered** +A clear and concise description of any alternative solutions or features you've considered. + +**Additional context** +Add any other context or screenshots about the feature request here. diff --git a/sources_non_forked/rainbow/.github/ISSUE_TEMPLATE/not-issue.md b/sources_non_forked/rainbow/.github/ISSUE_TEMPLATE/not-issue.md new file mode 100644 index 00000000..0a7fabd0 --- /dev/null +++ b/sources_non_forked/rainbow/.github/ISSUE_TEMPLATE/not-issue.md @@ -0,0 +1,10 @@ +--- +name: Not Issue +about: Start a conversation which is not about bug report or feature request +title: '' +labels: '' +assignees: '' + +--- + +This is not an Issue. You can type anything here except bug report and feature request. diff --git a/sources_non_forked/rainbow/.gitignore b/sources_non_forked/rainbow/.gitignore new file mode 100644 index 00000000..926ccaaf --- /dev/null +++ b/sources_non_forked/rainbow/.gitignore @@ -0,0 +1 @@ +doc/tags diff --git a/sources_non_forked/rainbow/LICENSE b/sources_non_forked/rainbow/LICENSE new file mode 100644 index 00000000..261eeb9e --- /dev/null +++ b/sources_non_forked/rainbow/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/sources_non_forked/rainbow/NOTICE b/sources_non_forked/rainbow/NOTICE new file mode 100644 index 00000000..93cb6183 --- /dev/null +++ b/sources_non_forked/rainbow/NOTICE @@ -0,0 +1,2 @@ +Rainbow Parentheses Improved +Copyright 2013 LuoChen (luochen1990@gmail.com). Licensed under the Apache License 2.0. diff --git a/sources_non_forked/rainbow/README.md b/sources_non_forked/rainbow/README.md new file mode 100644 index 00000000..19ef9744 --- /dev/null +++ b/sources_non_forked/rainbow/README.md @@ -0,0 +1,189 @@ +Rainbow Parentheses Improved +=== +> help you read complex code by showing diff level of parentheses in diff color !! + +Description [(这里有中文版)](https://github.com/luochen1990/rainbow/blob/master/README_zh.md) +--------------------------------------------------------------------------------------------------- + +As everyone knows, the most complex codes were composed of a mass of different kinds of parentheses (typically: lisp). +This plugin will help you read these codes by showing different levels of parentheses in different colors. +You can also find this plugin in **[www.vim.org](http://www.vim.org/scripts/script.php?script_id=4176)**. + +#### lisp +![lisp](https://raw.githubusercontent.com/luochen1990/rainbow/demo/lisp.png) +#### html +![html](https://raw.githubusercontent.com/luochen1990/rainbow/demo/html.png) +#### [more](https://github.com/luochen1990/rainbow/blob/demo/more.md) + +### What is improved ? + +- no limit of parentheses levels. +- separately edit guifgs and ctermfgs (the colors used for highlighting). +- now you can design your own parentheses such as 'begin' and 'end'. +- you can also configure anything separately for different types of files. +- now you can even decide to let some operators (like + - * / , ==) highlighted with the parentheses together. +- dot separated combined filetype support (`:h ft`). +- json style configuration used, more understandable and readable, easier for advanced configuration. +- the code is shorter and easier to read now. +- smoother and faster. +- the Chinese document is added. + +### Referenced: +- http://www.vim.org/scripts/script.php?script_id=1561 (Martin Krischik) +- http://www.vim.org/scripts/script.php?script_id=3772 (kien) + +Install +------- + +#### install via Plug: + +```vim +Plug 'luochen1990/rainbow' +let g:rainbow_active = 1 "set to 0 if you want to enable it later via :RainbowToggle +``` + +#### install manually: + +- first, execute the following commands (for windows users, use `~/vimfiles` instead of `~/.vim`) + + ```sh + git clone https://github.com/luochen1990/rainbow.git + cd rainbow + mkdir -p ~/.vim/plugin ~/.vim/autoload + cp plugin/* ~/.vim/plugin + cp autoload/* ~/.vim/autoload + ``` + +- second, add the follow sentences to your `.vimrc` or `_vimrc` : + + ```vim + let g:rainbow_active = 1 "set to 0 if you want to enable it later via :RainbowToggle + ``` + +- third, restart your vim and enjoy coding. + +Configure +--------- + +There is an example for advanced configuration, add it to your vimrc and edit it as you wish (just keep the format). + +Note: you can remove these lines safely since they are all included by the [source code](https://github.com/luochen1990/rainbow/blob/master/autoload/rainbow_main.vim)). + +```vim +let g:rainbow_conf = { +\ 'guifgs': ['royalblue3', 'darkorange3', 'seagreen3', 'firebrick'], +\ 'ctermfgs': ['lightblue', 'lightyellow', 'lightcyan', 'lightmagenta'], +\ 'guis': [''], +\ 'cterms': [''], +\ 'operators': '_,_', +\ 'parentheses': ['start=/(/ end=/)/ fold', 'start=/\[/ end=/\]/ fold', 'start=/{/ end=/}/ fold'], +\ 'separately': { +\ '*': {}, +\ 'markdown': { +\ 'parentheses_options': 'containedin=markdownCode contained', "enable rainbow for code blocks only +\ }, +\ 'lisp': { +\ 'guifgs': ['royalblue3', 'darkorange3', 'seagreen3', 'firebrick', 'darkorchid3'], "lisp needs more colors for parentheses :) +\ }, +\ 'haskell': { +\ 'parentheses': ['start=/(/ end=/)/ fold', 'start=/\[/ end=/\]/ fold', 'start=/\v\{\ze[^-]/ end=/}/ fold'], "the haskell lang pragmas should be excluded +\ }, +\ 'vim': { +\ 'parentheses_options': 'containedin=vimFuncBody', "enable rainbow inside vim function body +\ }, +\ 'perl': { +\ 'syn_name_prefix': 'perlBlockFoldRainbow', "solve the [perl indent-depending-on-syntax problem](https://github.com/luochen1990/rainbow/issues/20) +\ }, +\ 'stylus': { +\ 'parentheses': ['start=/{/ end=/}/ fold contains=@colorableGroup'], "[vim css color](https://github.com/ap/vim-css-color) compatibility +\ }, +\ 'css': 0, "disable this plugin for css files +\ } +\} +``` + +- 'guifgs': a list of `guifg` (`:h highlight-guifg`), i.e. colors for gui interface, will be used in order +- 'guis': a list of `gui` (`:h highlight-gui`), will be used in order +- 'ctermfgs': a list of `ctermfg` (`:h highlight-ctermfg`) +- 'cterms': a list of `cterm` (`:h highlight-cterm`) +- 'operators': describe the operators you want to highlight (note: be careful about special characters which needs escaping, you can find more examples [here](https://github.com/luochen1990/rainbow/issues/3), and you can also read the [vim help about syn-pattern](http://vimdoc.sourceforge.net/htmldoc/syntax.html#:syn-pattern)). note that this option will be overwritten by the `step` part of `parentheses`. +- 'parentheses': a list of parentheses definitions, a parentheses definition contains parts like `start=/(/`, `step=/,/`, `stop=/)/`, `fold`, `contained`, `containedin=someSynNames`, `contains=@Spell`, see `:h syntax` for more details. notice that the `step` part is defined by this plugin so it is not described by the official vim doc. +- 'parentheses_options': parentheses options shared between different parentheses, things like `containedin=xxxFuncBody`, `contains=@Spell` (or 'contains=@NoSpell') often appears here. this option is often used to solve [3rd-party-plugin-compatibility]() problems. +- 'separately': configure for specific filetypes (decided by &ft), key `*` for filetypes without separate configuration, value `0` means disable rainbow only for this type of files, value `"default"` means keep the default shim for this filetype (notice: the default shim config will change between plugin version). +- 'syn_name_prefix': add a prefix to name of the syntax definition, this option is often used to solve [3rd-party-plugin-compatibility]() problems. +- 'after': execute some vim commands after the rainbow syntax rules is defined. it is often used like `['syn clear xxx']` to solve [3rd-party-plugin-compatibility]() problems. +- keep a field empty to use the default setting. + +To get more advanced config examples, try to search throught this [tag](https://github.com/luochen1990/rainbow/issues?utf8=%E2%9C%93&q=label%3A%22config+reference%22+). + +User Command +------------ + +- **:RainbowToggle** --you can use it to toggle this plugin. + +3rd Party Plugin Compatibility +------------------------------ + +You should notice that this plugin is very special, Vim plugins is expected to provide syntax definitions vertically, i.e. one filetype, one syntax definition set: + +``` +---------------------------------------------------- +| cpp | java | python | +| | | | +| syn cppKeyword | syn javaKeyword | syn pyKeyword | +| syn cppFunc | syn javaFunc | syn pyLambda | +| syn cppParen | syn javaParen | syn pyParen | +| ... | ... | ... | +---------------------------------------------------- +``` + +But this plugin provide syntax definitions horizontally, i.e. parentheses syntax for all filetypes: + +``` +---------------------------------------------------- +| cpp | java | python | +| | | | +| syn cppKeyword | syn javaKeyword | syn pyKeyword | +| syn cppFunc | syn javaFunc | syn pyLambda | +| ... | ... | ... | +---------------------------------------------------- +| rainbow | +| | +| syn cppRainbow syn javaRainbow syn pyRainbow | +---------------------------------------------------- +``` + +You can notice that, to provide rainbow parentheses, this plugin have to define it's own syntax rules, and these rules will overwrite the parentheses syntax provided by the filetype plugin. + +It works well at most of the time, but in some special cases, when the parentheses syntax rule is depended somewhere else (e.g. indent, spell checking, nested syntax rules), the things depend on the original syntax rules will be broken. + +This plugin has provide some mechanisms to solve the compatibility problems, and have provided default configurations to solve compatibility problems with the default vim syntax files. + +But if this plugin is conflicted with some other plugins, you will probably have to solve them by yourself. First, you can search on [this issue tag](https://github.com/luochen1990/rainbow/issues?utf8=%E2%9C%93&q=label%3A%22confliction+with+other+third-party+syntax+plugins%22+) to find whether there is somebody else had the same problem and solved it. Second, you can read the following content about troubleshooting. + +Troubleshooting +--------------- + +- rainbow doesn't work at all: find out the current parentheses syntax name, and use the `after` mechanism to clear these syntax. +- rainbow doesn't work inside some structure: find out the syntax region name, and use the `parentheses_options` mechanism like `'containedin=xxx'`. +- spell checking doesn't work inside parentheses: use the `parentheses_options` mechanism like `'contains=@Spell'`. +- spell checking works inside parentheses but you don't want it: use the `parentheses_options` mechanism like `'contains=@NoSpell'`. +- indent not works correctly: check the indent script you are using and search `synID` inside it to find which syntax name prefix it depends on, and use the `syn_name_prefix` mechanism to solve it. + +The following keymappings will help you to check the syntax name and definitions under the cursor, add them to your vimrc and restart vim: + +```vim +nnoremap :echo synIDattr(synID(line('.'), col('.'), 0), 'name') +nnoremap :echo ("hi<" . synIDattr(synID(line("."),col("."),1),"name") . '> trans<' +\ . synIDattr(synID(line("."),col("."),0),"name") . "> lo<" +\ . synIDattr(synIDtrans(synID(line("."),col("."),1)),"name") . ">") +nnoremap :echo map(synstack(line('.'), col('.')), 'synIDattr(v:val, "name")') +nnoremap :exec 'syn list '.synIDattr(synID(line('.'), col('.'), 0), 'name') +``` + +Move your cursor to a parentheses and press the keys to use them. + +------------------------------------------------------------------ +**Rate this script if you like it, and I'll appreciate it and improve this plugin for you because of your support! + +Just go to [this page](http://www.vim.org/scripts/script.php?script_id=4176) and choose `Life Changing` and click `rate`** diff --git a/sources_non_forked/rainbow/README_zh.md b/sources_non_forked/rainbow/README_zh.md new file mode 100644 index 00000000..a5c7d868 --- /dev/null +++ b/sources_non_forked/rainbow/README_zh.md @@ -0,0 +1,103 @@ +彩虹括号增强版 (Rainbow Parentheses Improved) +============================================= +> 通过将不同层次的括号高亮为不同的颜色, 帮助你阅读世界上最复杂的代码 + +插件简介: +--------- + +众所周知,最复杂的代码都是由一堆乱七八糟的括号组成。这款插件通过以不同的颜色展示不同层次的括号,致力于帮助你阅读这样的复杂代码。 你同样可以在[Vim官网](http://www.vim.org/scripts/script.php?script_id=4176)里看到这款插件 + +#### lisp +![lisp](https://raw.githubusercontent.com/luochen1990/rainbow/demo/lisp.png) +#### html +![html](https://raw.githubusercontent.com/luochen1990/rainbow/demo/html.png) +#### [more](https://github.com/luochen1990/rainbow/blob/demo/more.md) + +### 有哪些改进? + +- 更快速和流畅的体验。 +- 简短,高质量,并且易读的源代码。 +- 现在的版本将不再限制括号的嵌套层数。 +- 现在你可以分别自定义图形界面下和终端上所使用的各种括号颜色。 +- 现在你可以自定义括号的形式,不过在这之前你最好了解vim脚本的正则表达式。 +- 现在你甚至可以为不同类型的文件设定不同的配置。 +- 现在你甚至可以决定是否让某些符号跟着它们所在的括号一起高亮,你也可以对不同类型的文件分别设置。 +- 支持点分隔的复合文件类型 (`:h ft`) +- 现在采用json风格的配置文件,更加可读,更易于进行高级配置。 +- 最后但并非不重要的一点是,如你所见,现在增加了中文说明。 + +### 以下是本插件所参考的旧版本: +- http://www.vim.org/scripts/script.php?script_id=1561 (Martin Krischik) +- http://www.vim.org/scripts/script.php?script_id=3772 (kien) + +安装说明: +--------- + +### 使用Vundle安装: + +```vim +Bundle 'luochen1990/rainbow' +let g:rainbow_active = 1 "0 if you want to enable it later via :RainbowToggle +``` + +### 手动安装: + +- 首先,执行以下命令 (Windows用户需要使用 `~/vimfiles` 替代 `~/.vim`) 。 + + ```sh + git clone https://github.com/luochen1990/rainbow.git + cd rainbow + cp plugin/* ~/.vim/plugin + cp autoload/* ~/.vim/autoload + ``` + +- 然后,将以下句子,加入到你的vim配置文件中(windows下配置文件是`_vimrc`,而linux下是`.vimrc`) + + ```vim + let g:rainbow_active = 1 "0 if you want to enable it later via :RainbowToggle + ``` + +- 最后,重新启动你的vim,你就可以享受coding了。 + +高级配置: +--------- + +以下是一个配置的样例(也是我在用的配置),将它加入到你的vimrc并按照你喜欢的方式修改它(但是保持格式)你就可以精确地控制插件的行为了。 + +```vim + let g:rainbow_conf = { + \ 'guifgs': ['royalblue3', 'darkorange3', 'seagreen3', 'firebrick'], + \ 'ctermfgs': ['lightblue', 'lightyellow', 'lightcyan', 'lightmagenta'], + \ 'operators': '_,_', + \ 'parentheses': ['start=/(/ end=/)/ fold', 'start=/\[/ end=/\]/ fold', 'start=/{/ end=/}/ fold'], + \ 'separately': { + \ '*': {}, + \ 'tex': { + \ 'parentheses': ['start=/(/ end=/)/', 'start=/\[/ end=/\]/'], + \ }, + \ 'lisp': { + \ 'guifgs': ['royalblue3', 'darkorange3', 'seagreen3', 'firebrick', 'darkorchid3'], + \ }, + \ 'vim': { + \ 'parentheses': ['start=/(/ end=/)/', 'start=/\[/ end=/\]/', 'start=/{/ end=/}/ fold', 'start=/(/ end=/)/ containedin=vimFuncBody', 'start=/\[/ end=/\]/ containedin=vimFuncBody', 'start=/{/ end=/}/ fold containedin=vimFuncBody'], + \ }, + \ 'html': { + \ 'parentheses': ['start=/\v\<((area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr)[ >])@!\z([-_:a-zA-Z0-9]+)(\s+[-_:a-zA-Z0-9]+(\=("[^"]*"|'."'".'[^'."'".']*'."'".'|[^ '."'".'"><=`]*))?)*\>/ end=## fold'], + \ }, + \ 'css': 0, + \ } + \} +``` + +- 'guifgs': 一个`guifg`的列表 (`:h highlight-guifg`), 即GUI界面的括号颜色, 将按顺序循环使用 +- 'guis': 一个`gui`的列表 (`:h highlight-gui`), 将按顺序循环使用 +- 'ctermfgs': 一个`ctermfg`的列表 (`:h highlight-ctermfg`), 即终端下的括号颜色 +- 'cterms': 一个`cterm`的列表 (`:h highlight-cterm`) +- 'operators': 描述你希望哪些运算符跟着与它同级的括号一起高亮(注意:留意需要转义的特殊字符,更多样例见[这里](https://github.com/luochen1990/rainbow/issues/3), 你也可以读[vim帮助 :syn-pattern](http://vimdoc.sourceforge.net/htmldoc/syntax.html#:syn-pattern)) +- 'parentheses': 一个关于括号定义的列表, 每一个括号的定义包含形如以下的部分: `start=/(/`, `step=/,/`, `stop=/)/`, `fold`, `contained`, `containedin=someSynNames`, `contains=@Spell`. 各个部分具体含义可参考 `:h syntax`, 其中 `step` 为本插件的扩展定义, 表示括号中间需要高亮的运算符. +- 'separately': 针对文件类型(由&ft决定)作不同的配置,未被单独设置的文件类型使用`*`下的配置,值为`0`表示仅对该类型禁用插件,值为`"default"`表示使用针对该类型的默认兼容配置 (注意, 默认兼容配置可能随着该插件版本的更新而改变, 如果你不希望它改变, 那么你应该将它拷贝一份放到你的vimrc文件里). +- 省略某个字段以使用默认设置 + +------------------------------------------------------------------- +**最后,如果你喜欢这个插件,给它一个评价,我会心存感激,并且因为你的肯定继续改进这个插件!(从[该页面](http://www.vim.org/scripts/script.php?script_id=4176)下方,选择`Life Changing`选项,然后点击`rate`)** + diff --git a/sources_non_forked/rainbow/autoload/rainbow.vim b/sources_non_forked/rainbow/autoload/rainbow.vim new file mode 100644 index 00000000..10551c52 --- /dev/null +++ b/sources_non_forked/rainbow/autoload/rainbow.vim @@ -0,0 +1,128 @@ +" Copyright 2013 LuoChen (luochen1990@gmail.com). Licensed under the Apache License 2.0. + +if exists('s:loaded') | finish | endif | let s:loaded = 1 + +fun s:trim(s) + return substitute(a:s, '\v^\s*(.{-})\s*$', '\1', '') +endfun + +fun s:concat(strs) + return join(filter(a:strs, "v:val !~ '^[ ]*$'"), ',') +endfun + +fun s:resolve_parenthesis_with(init_state, p) + let [paren, contained, containedin, contains_prefix, contains, op] = a:init_state + let p = (type(a:p) == type([])) ? ((len(a:p) == 3) ? printf('start=#%s# step=%s end=#%s#', a:p[0], op, a:p[-1]) : printf('start=#%s# end=#%s#', a:p[0], a:p[-1])) : a:p "NOTE: preprocess the old style parentheses config + + let ls = split(p, '\v%(%(start|step|end)\=(.)%(\1@!.)*\1[^ ]*|\w+%(\=[^ ]*)?) ?\zs', 0) + for s in ls + let [k, v] = [matchstr(s, '^[^=]\+\ze\(=\|$\)'), matchstr(s, '^[^=]\+=\zs.*')] + if k == 'step' + let op = s:trim(v) + elseif k == 'contains_prefix' + let contains_prefix = s:trim(v) + elseif k == 'contains' + let contains = s:concat([contains, s:trim(v)]) + elseif k == 'containedin' + let containedin = s:concat([containedin, s:trim(v)]) + elseif k == 'contained' + let contained = 1 + else + let paren .= s + endif + endfor + let rst = [paren, contained, containedin, contains_prefix, contains, op] + "echom json_encode(rst) + return rst +endfun + +fun s:resolve_parenthesis_from_config(config) + return s:resolve_parenthesis_with(['', 0, '', a:config.contains_prefix, '', a:config.operators], a:config.parentheses_options) +endfun + +fun s:synID(prefix, group, lv, id) + return a:prefix.'_lv'.a:lv.'_'.a:group.a:id +endfun + +fun s:synGroupID(prefix, group, lv) + return a:prefix.a:group.'_lv'.a:lv +endfun + +fun rainbow#syn(config) + let conf = a:config + let prefix = conf.syn_name_prefix + let cycle = conf.cycle + + let glob_paran_opts = s:resolve_parenthesis_from_config(conf) + let b:rainbow_loaded = cycle + for id in range(len(conf.parentheses)) + let [paren, contained, containedin, contains_prefix, contains, op] = s:resolve_parenthesis_with(glob_paran_opts, conf.parentheses[id]) + for lv in range(cycle) + let lv2 = ((lv + cycle - 1) % cycle) + let [rid, pid, gid2] = [s:synID(prefix, 'r', lv, id), s:synID(prefix, 'p', lv, id), s:synGroupID(prefix, 'Regions', lv2)] + + if len(op) > 2 + exe 'syn match '.s:synID(prefix, 'o', lv, id).' '.op.' containedin='.s:synID(prefix, 'r', lv, id).' contained' + endif + + let real_contained = (lv == 0)? (contained? 'contained ' : '') : 'contained ' + let real_containedin = (lv == 0)? s:concat([containedin, '@'.gid2]) : '@'.gid2 + let real_contains = s:concat([contains_prefix, contains]) + exe 'syn region '.rid.' matchgroup='.pid.' '.real_contained.'containedin='.real_containedin.' contains='.real_contains.' '.paren + endfor + endfor + for lv in range(cycle) + exe 'syn cluster '.s:synGroupID(prefix, 'Regions', lv).' contains='.join(map(range(len(conf.parentheses)), 's:synID(prefix, "r", lv, v:val)'), ',') + exe 'syn cluster '.s:synGroupID(prefix, 'Parentheses', lv).' contains='.join(map(range(len(conf.parentheses)), 's:synID(prefix, "p", lv, v:val)'), ',') + exe 'syn cluster '.s:synGroupID(prefix, 'Operators', lv).' contains='.join(map(range(len(conf.parentheses)), 's:synID(prefix, "o", lv, v:val)'), ',') + endfor + exe 'syn cluster '.prefix.'Regions contains='.join(map(range(cycle), '"@".s:synGroupID(prefix, "Regions", v:val)'), ',') + exe 'syn cluster '.prefix.'Parentheses contains='.join(map(range(cycle), '"@".s:synGroupID(prefix, "Parentheses", v:val)'), ',') + exe 'syn cluster '.prefix.'Operators contains='.join(map(range(cycle), '"@".s:synGroupID(prefix, "Operators", v:val)'), ',') + if has_key(conf, 'after') | for cmd in conf.after | exe cmd | endfor | endif +endfun + +fun rainbow#syn_clear(config) + let conf = a:config + let prefix = conf.syn_name_prefix + + for id in range(len(conf.parentheses)) + for lv in range(conf.cycle) + let [rid, oid] = [s:synID(prefix, 'r', lv, id), s:synID(prefix, 'o', lv, id)] + exe 'syn clear '.rid + exe 'syn clear '.oid + endfor + endfor +endfun + +fun rainbow#hi(config) + let conf = a:config + let prefix = conf.syn_name_prefix + + for id in range(len(conf.parentheses)) + for lv in range(conf.cycle) + let [pid, oid] = [s:synID(prefix, 'p', lv, id), s:synID(prefix, 'o', lv, id)] + let ctermfg = conf.ctermfgs[lv % len(conf.ctermfgs)] + let guifg = conf.guifgs[lv % len(conf.guifgs)] + let cterm = conf.cterms[lv % len(conf.cterms)] + let gui = conf.guis[lv % len(conf.guis)] + let hi_style = 'ctermfg='.ctermfg.' guifg='.guifg.(len(cterm) > 0 ? ' cterm='.cterm : '').(len(gui) > 0 ? ' gui='.gui : '') + exe 'hi '.pid.' '.hi_style + exe 'hi '.oid.' '.hi_style + endfor + endfor +endfun + +fun rainbow#hi_clear(config) + let conf = a:config + let prefix = conf.syn_name_prefix + + for id in range(len(conf.parentheses)) + for lv in range(conf.cycle) + let [pid, oid] = [s:synID(prefix, 'p', lv, id), s:synID(prefix, 'o', lv, id)] + exe 'hi clear '.pid + exe 'hi clear '.oid + endfor + endfor +endfun + diff --git a/sources_non_forked/rainbow/autoload/rainbow_main.vim b/sources_non_forked/rainbow/autoload/rainbow_main.vim new file mode 100644 index 00000000..a68a3caf --- /dev/null +++ b/sources_non_forked/rainbow/autoload/rainbow_main.vim @@ -0,0 +1,136 @@ +" Copyright 2013 LuoChen (luochen1990@gmail.com). Licensed under the Apache License 2.0. + +let s:rainbow_conf = { +\ 'guifgs': ['royalblue3', 'darkorange3', 'seagreen3', 'firebrick'], +\ 'ctermfgs': ['lightblue', 'lightyellow', 'lightcyan', 'lightmagenta'], +\ 'guis': [''], +\ 'cterms': [''], +\ 'operators': '_,_', +\ 'contains_prefix': 'TOP', +\ 'parentheses_options': '', +\ 'parentheses': ['start=/(/ end=/)/ fold', 'start=/\[/ end=/\]/ fold', 'start=/{/ end=/}/ fold'], +\ 'separately': { +\ '*': {}, +\ 'markdown': { +\ 'parentheses_options': 'containedin=markdownCode contained', +\ }, +\ 'lisp': { +\ 'guifgs': ['royalblue3', 'darkorange3', 'seagreen3', 'firebrick', 'darkorchid3'], +\ }, +\ 'haskell': { +\ 'parentheses': ['start=/(/ end=/)/ fold', 'start=/\[/ end=/\]/ fold', 'start=/\v\{\ze[^-]/ end=/}/ fold'], +\ }, +\ 'ocaml': { +\ 'parentheses': ['start=/(\ze[^*]/ end=/)/ fold', 'start=/\[/ end=/\]/ fold', 'start=/\[|/ end=/|\]/ fold', 'start=/{/ end=/}/ fold'], +\ }, +\ 'tex': { +\ 'parentheses_options': 'containedin=texDocZone', +\ 'parentheses': ['start=/(/ end=/)/', 'start=/\[/ end=/\]/'], +\ }, +\ 'vim': { +\ 'parentheses_options': 'containedin=vimFuncBody,vimExecute', +\ 'parentheses': ['start=/(/ end=/)/', 'start=/\[/ end=/\]/', 'start=/{/ end=/}/ fold'], +\ }, +\ 'xml': { +\ 'syn_name_prefix': 'xmlRainbow', +\ 'parentheses': ['start=/\v\<\z([-_:a-zA-Z0-9]+)(\s+[-_:a-zA-Z0-9]+(\=("[^"]*"|'."'".'[^'."'".']*'."'".'))?)*\>/ end=## fold'], +\ }, +\ 'xhtml': { +\ 'parentheses': ['start=/\v\<\z([-_:a-zA-Z0-9]+)(\s+[-_:a-zA-Z0-9]+(\=("[^"]*"|'."'".'[^'."'".']*'."'".'))?)*\>/ end=## fold'], +\ }, +\ 'html': { +\ 'parentheses': ['start=/\v\<((script|style|area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr)[ >])@!\z([-_:a-zA-Z0-9]+)(\s+[-_:a-zA-Z0-9]+(\=("[^"]*"|'."'".'[^'."'".']*'."'".'|[^ '."'".'"><=`]*))?)*\>/ end=## fold'], +\ }, +\ 'lua': { +\ 'parentheses': ["start=/(/ end=/)/", "start=/{/ end=/}/", "start=/\\v\\[\\ze($|[^[])/ end=/\\]/"], +\ }, +\ 'perl': { +\ 'syn_name_prefix': 'perlBlockFoldRainbow', +\ }, +\ 'php': { +\ 'syn_name_prefix': 'phpBlockRainbow', +\ 'contains_prefix': '', +\ 'parentheses': ['start=/(/ end=/)/ containedin=@htmlPreproc contains=@phpClTop', 'start=/\[/ end=/\]/ containedin=@htmlPreproc contains=@phpClTop', 'start=/{/ end=/}/ containedin=@htmlPreproc contains=@phpClTop', 'start=/\v\<((area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr)[ >])@!\z([-_:a-zA-Z0-9]+)(\s+[-_:a-zA-Z0-9]+(\=("[^"]*"|'."'".'[^'."'".']*'."'".'|[^ '."'".'"><=`]*))?)*\>/ end=## fold contains_prefix=TOP'], +\ }, +\ 'stylus': { +\ 'parentheses': ['start=/{/ end=/}/ fold contains=@colorableGroup'], +\ }, +\ 'css': 0, +\ 'sh': 0, +\ 'vimwiki': 0, +\ } +\} + +fun s:eq(x, y) + return type(a:x) == type(a:y) && a:x == a:y +endfun + +fun s:gcd(a, b) + let [a, b, t] = [a:a, a:b, 0] + while b != 0 + let t = b + let b = a % b + let a = t + endwhile + return a +endfun + +fun s:lcm(a, b) + return (a:a / s:gcd(a:a, a:b)) * a:b +endfun + +fun rainbow_main#gen_config(ft) + let g = exists('g:rainbow_conf')? g:rainbow_conf : {} + "echom 'g:rainbow_conf:' string(g) + let s = get(g, 'separately', {}) + "echom 'g:rainbow_conf.separately:' string(s) + let dft_conf = extend(copy(s:rainbow_conf), g) | unlet dft_conf.separately + "echom 'default config options:' string(dft_conf) + let dx_conf = s:rainbow_conf.separately['*'] + "echom 'default star config:' string(dx_conf) + let ds_conf = get(s:rainbow_conf.separately, a:ft, dx_conf) + "echom 'default separately config:' string(ds_conf) + let ux_conf = get(s, '*', ds_conf) + "echom 'user star config:' string(ux_conf) + let us_conf = get(s, a:ft, ux_conf) + "echom 'user separately config:' string(us_conf) + let af_conf = (s:eq(us_conf, 'default') ? ds_conf : us_conf) + "echom 'almost finally config:' string(af_conf) + if s:eq(af_conf, 0) + return 0 + else + let conf = extend(extend({'syn_name_prefix': substitute(a:ft, '\v\A+(\a)', '\u\1', 'g').'Rainbow'}, dft_conf), af_conf) + let conf.cycle = (has('gui_running') || (has('termguicolors') && &termguicolors)) ? s:lcm(len(conf.guifgs), len(conf.guis)) : s:lcm(len(conf.ctermfgs), len(conf.cterms)) + return conf + endif +endfun + +fun rainbow_main#gen_configs(ft) + return filter(map(split(a:ft, '\v\.'), 'rainbow_main#gen_config(v:val)'), 'type(v:val) == type({})') +endfun + +fun rainbow_main#load() + let b:rainbow_confs = rainbow_main#gen_configs(&filetype) + for conf in b:rainbow_confs + call rainbow#syn(conf) + call rainbow#hi(conf) + endfor +endfun + +fun rainbow_main#clear() + if !exists('b:rainbow_confs') | return | endif + for conf in b:rainbow_confs + call rainbow#hi_clear(conf) + call rainbow#syn_clear(conf) + endfor + unlet b:rainbow_confs +endfun + +fun rainbow_main#toggle() + if exists('b:rainbow_confs') + call rainbow_main#clear() + else + call rainbow_main#load() + endif +endfun + diff --git a/sources_non_forked/rainbow/doc/rainbow.txt b/sources_non_forked/rainbow/doc/rainbow.txt new file mode 100644 index 00000000..3b14327e --- /dev/null +++ b/sources_non_forked/rainbow/doc/rainbow.txt @@ -0,0 +1,18 @@ +Rainbow Parentheses Improved *rainbow* +========================================================================== + +Commands: *rainbow-commands* +-------------------------------------------------------------------------- + +*RainbowToggle* --- toggle this plugin on/off +*RainbowToggleOn* --- toggle this plugin on +*RainbowToggleOff* --- toggle this plugin off + +Configurations: *rainbow-config* +-------------------------------------------------------------------------- + +*g:rainbow_active* --- 1 to auto enable this plugin + 0 to enable it later via :RainbowToggle +*g:rainbow_conf* --- https://github.com/luochen1990/rainbow#configure + +vim:tw=78:ts=8:ft=help:norl: diff --git a/sources_non_forked/rainbow/plugin/rainbow_main.vim b/sources_non_forked/rainbow/plugin/rainbow_main.vim new file mode 100644 index 00000000..340ca200 --- /dev/null +++ b/sources_non_forked/rainbow/plugin/rainbow_main.vim @@ -0,0 +1,12 @@ +" Copyright 2013 LuoChen (luochen1990@gmail.com). Licensed under the Apache License 2.0. + +if exists('s:loaded') || !(exists('g:rainbow_active') || exists('g:rainbow_conf')) | finish | endif | let s:loaded = 1 + +command! RainbowToggle call rainbow_main#toggle() +command! RainbowToggleOn call rainbow_main#load() +command! RainbowToggleOff call rainbow_main#clear() + +if (exists('g:rainbow_active') && g:rainbow_active) + auto syntax * call rainbow_main#load() + auto colorscheme * call rainbow_main#load() +endif diff --git a/sources_non_forked/rainbow/tests/test.c b/sources_non_forked/rainbow/tests/test.c new file mode 100644 index 00000000..031776de --- /dev/null +++ b/sources_non_forked/rainbow/tests/test.c @@ -0,0 +1,11 @@ +#ifdef __cplusplus +extern "C" { +#endif + +typoo +(typoo) + +int main() { + printf("hello, world"); + return 0; +} diff --git a/sources_non_forked/rainbow/tests/test.css b/sources_non_forked/rainbow/tests/test.css new file mode 100644 index 00000000..b8702241 --- /dev/null +++ b/sources_non_forked/rainbow/tests/test.css @@ -0,0 +1,3 @@ +div { + color: red +} diff --git a/sources_non_forked/rainbow/tests/test.csv b/sources_non_forked/rainbow/tests/test.csv new file mode 100644 index 00000000..94e58615 --- /dev/null +++ b/sources_non_forked/rainbow/tests/test.csv @@ -0,0 +1,14 @@ +a,b,c,d +1,2,3,4 +1,,3,4 +1,,,4 +1 , , , 4 +1,2,3,4,5 +1, 2, 3, 4 +1 ,2 ,3, 4, 5 +1 , 2 , 3 , 4 +1 , 2 , 3 , 4 +1, 3 +1,2,3 +1,3,4,5 + diff --git a/sources_non_forked/rainbow/tests/test.go b/sources_non_forked/rainbow/tests/test.go new file mode 100644 index 00000000..b9c3d721 --- /dev/null +++ b/sources_non_forked/rainbow/tests/test.go @@ -0,0 +1,4 @@ +typoo +(typoo) + +client := &http.Client{} diff --git a/sources_non_forked/rainbow/tests/test.hs b/sources_non_forked/rainbow/tests/test.hs new file mode 100644 index 00000000..b01c4e7b --- /dev/null +++ b/sources_non_forked/rainbow/tests/test.hs @@ -0,0 +1,5 @@ +{- this is a comment block -} + +xs = [1, 2, 3] +ps = [(1, 2), (3, 1 / 4)] + diff --git a/sources_non_forked/rainbow/tests/test.html b/sources_non_forked/rainbow/tests/test.html new file mode 100644 index 00000000..91510522 --- /dev/null +++ b/sources_non_forked/rainbow/tests/test.html @@ -0,0 +1,22 @@ + + + + + + +
+ + (1 + (2 + 3)) +
+ + + + diff --git a/sources_non_forked/rainbow/tests/test.html.txt b/sources_non_forked/rainbow/tests/test.html.txt new file mode 100644 index 00000000..495388e7 --- /dev/null +++ b/sources_non_forked/rainbow/tests/test.html.txt @@ -0,0 +1,8 @@ + +
+ + (1 + (2 + 3)) +
+ + + diff --git a/sources_non_forked/rainbow/tests/test.js b/sources_non_forked/rainbow/tests/test.js new file mode 100644 index 00000000..912966f5 --- /dev/null +++ b/sources_non_forked/rainbow/tests/test.js @@ -0,0 +1,5 @@ +typoo +(typoo) + +console.log({w: 200, h: 100, pos: [{x: 1, y: 2}, {x: 3, y: 4}]}) + diff --git a/sources_non_forked/rainbow/tests/test.lua b/sources_non_forked/rainbow/tests/test.lua new file mode 100644 index 00000000..15e369d1 --- /dev/null +++ b/sources_non_forked/rainbow/tests/test.lua @@ -0,0 +1,12 @@ +(function(args) + lst = { a=function(arg) print("hello") end, + b=(1+2)*3/4, + [3+5]={ ["hello"]=("hi") }, + } + lst[ + (function() return 0 end)()] = 1 +end)("blah") + +[[ +Special lua string... +]] diff --git a/sources_non_forked/rainbow/tests/test.php b/sources_non_forked/rainbow/tests/test.php new file mode 100644 index 00000000..bad0d4c7 --- /dev/null +++ b/sources_non_forked/rainbow/tests/test.php @@ -0,0 +1,13 @@ + 0) + { + echo "Error: " . $_FILES["file"]["error"] . "
"; + } +else + { + echo "Size: " . ($_FILES["file"]["size"] / 1024) . " Kb
"; + } +?> + +hello (world) + diff --git a/sources_non_forked/rainbow/tests/test.pl b/sources_non_forked/rainbow/tests/test.pl new file mode 100644 index 00000000..ac48bb33 --- /dev/null +++ b/sources_non_forked/rainbow/tests/test.pl @@ -0,0 +1,10 @@ +typoo +(typoo) + +sub test { +correct indent; +} + +if ($test) { +incorrect indent; +} diff --git a/sources_non_forked/rainbow/tests/test.rb b/sources_non_forked/rainbow/tests/test.rb new file mode 100644 index 00000000..c2cd371a --- /dev/null +++ b/sources_non_forked/rainbow/tests/test.rb @@ -0,0 +1,15 @@ +{{{}}} +((())) +[[[]]] +[[[[]]]] + +def sample_function(a, b) + ((())) + [[[]]] +end + +class SampleClass + def sample_method(a, b) + [[[]]] + end +end diff --git a/sources_non_forked/rainbow/tests/test.sh b/sources_non_forked/rainbow/tests/test.sh new file mode 100644 index 00000000..5a765dcb --- /dev/null +++ b/sources_non_forked/rainbow/tests/test.sh @@ -0,0 +1,52 @@ +#!/bin/bash +typoo +(typoo) + +if stuff +then + somestuff + test = (()) + (()) + a = (1 + (2 + 3)) + if + then + elif + then + else + fi +else + otherstuff +fi + +if stuff + then + somestuff + else + otherstuff +fi + +function f() { + if + fi +} + + +# check if command exists +command_exists () { + type "${1}" > /dev/null 2>&1; + a = (1 + (2 + 3)) +} + +# Fetch the update +fetch() { + if type wget > /dev/null 2>&1 ; then + $debug && echo "fetching update via wget" + wget --no-check-certificate -O "${2}" "${1}" >/dev/null 2>&1 + elif type curl > /dev/null 2>&1 ; then + $debug && echo "fetching update via curl" + curl --insecure --remote-name -o "${2}" "${1}" >/dev/null 2>&1 + else + echo 'Warning: Neither wget nor curl is available. online updates unavailable' >&2 + exit 1 + fi +} diff --git a/sources_non_forked/rainbow/tests/test.special-ft b/sources_non_forked/rainbow/tests/test.special-ft new file mode 100644 index 00000000..ad5e11d1 --- /dev/null +++ b/sources_non_forked/rainbow/tests/test.special-ft @@ -0,0 +1,5 @@ +(((()))) +[[[[]]]] +{{{{}}}} + +# vim: set ft=this-is-a--very-SPECIAL-filetype : diff --git a/sources_non_forked/rainbow/tests/test.styl b/sources_non_forked/rainbow/tests/test.styl new file mode 100644 index 00000000..b8702241 --- /dev/null +++ b/sources_non_forked/rainbow/tests/test.styl @@ -0,0 +1,3 @@ +div { + color: red +} diff --git a/sources_non_forked/rainbow/tests/test.tex b/sources_non_forked/rainbow/tests/test.tex new file mode 100644 index 00000000..a72760cc --- /dev/null +++ b/sources_non_forked/rainbow/tests/test.tex @@ -0,0 +1,11 @@ +\documentclass[]{article} + +{{{{}}}} +((((((())))))) +[[[[[[]]]]]] +\begin{document} +((((())))) +${{{{}}}}$ +{{{{}}}} +[[[[[[]]]]]] +\end{document} diff --git a/sources_non_forked/rainbow/tests/test.xml b/sources_non_forked/rainbow/tests/test.xml new file mode 100644 index 00000000..a851d9a8 --- /dev/null +++ b/sources_non_forked/rainbow/tests/test.xml @@ -0,0 +1,6 @@ + +
+ +
+ + diff --git a/sources_non_forked/rainbow_parentheses.vim b/sources_non_forked/rainbow_parentheses.vim deleted file mode 160000 index eb8baa54..00000000 --- a/sources_non_forked/rainbow_parentheses.vim +++ /dev/null @@ -1 +0,0 @@ -Subproject commit eb8baa5428bde10ecc1cb14eed1d6e16f5f24695 diff --git a/vimrcs/plugins_config.vim b/vimrcs/plugins_config.vim index 71244053..f6324ba7 100644 --- a/vimrcs/plugins_config.vim +++ b/vimrcs/plugins_config.vim @@ -121,23 +121,23 @@ au FileType mako vmap Si S"i${ _(2f"a) } let g:lightline = { \ 'colorscheme': 'wombat', \ 'active': { - \ 'left': [ ['mode', 'paste'], - \ ['fugitive', 'readonly', 'filename', 'modified'] ], - \ 'right': [ [ 'lineinfo' ], ['percent'] ] - \ }, - \ 'component': { - \ 'readonly': '%{&filetype=="help"?"":&readonly?"🔒":""}', - \ 'modified': '%{&filetype=="help"?"":&modified?"+":&modifiable?"":"-"}', - \ 'fugitive': '%{exists("*FugitiveHead")?FugitiveHead():""}' - \ }, - \ 'component_visible_condition': { - \ 'readonly': '(&filetype!="help"&& &readonly)', - \ 'modified': '(&filetype!="help"&&(&modified||!&modifiable))', - \ 'fugitive': '(exists("*FugitiveHead") && ""!=FugitiveHead())' - \ }, - \ 'separator': { 'left': ' ', 'right': ' ' }, - \ 'subseparator': { 'left': ' ', 'right': ' ' } - \ } + \ 'left': [ ['mode', 'paste'], + \ ['fugitive', 'readonly', 'filename', 'modified'] ], + \ 'right': [ [ 'lineinfo' ], ['percent'] ] + \ }, + \ 'component': { + \ 'readonly': '%{&filetype=="help"?"":&readonly?"🔒":""}', + \ 'modified': '%{&filetype=="help"?"":&modified?"+":&modifiable?"":"-"}', + \ 'fugitive': '%{exists("*FugitiveHead")?FugitiveHead():""}' + \ }, + \ 'component_visible_condition': { + \ 'readonly': '(&filetype!="help"&& &readonly)', + \ 'modified': '(&filetype!="help"&&(&modified||!&modifiable))', + \ 'fugitive': '(exists("*FugitiveHead") && ""!=FugitiveHead())' + \ }, + \ 'separator': { 'left': ' ', 'right': ' ' }, + \ 'subseparator': { 'left': ' ', 'right': ' ' } + \ } """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " => Vimroom @@ -213,26 +213,5 @@ autocmd BufWrite * :Autoformat """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " => Rainbow Parentheses """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" -let g:rbpt_colorpairs = [ - \ ['brown', 'RoyalBlue3'], - \ ['Darkblue', 'SeaGreen3'], - \ ['darkgray', 'DarkOrchid3'], - \ ['darkgreen', 'firebrick3'], - \ ['darkcyan', 'RoyalBlue3'], - \ ['darkred', 'SeaGreen3'], - \ ['darkmagenta', 'DarkOrchid3'], - \ ['brown', 'firebrick3'], - \ ['gray', 'RoyalBlue3'], - \ ['black', 'SeaGreen3'], - \ ['darkmagenta', 'DarkOrchid3'], - \ ['Darkblue', 'firebrick3'], - \ ['darkgreen', 'RoyalBlue3'], - \ ['darkcyan', 'SeaGreen3'], - \ ['darkred', 'DarkOrchid3'], - \ ['red', 'firebrick3'], - \ ] -au VimEnter * RainbowParenthesesToggle -au Syntax * RainbowParenthesesLoadRound -au Syntax * RainbowParenthesesLoadSquare -au Syntax * RainbowParenthesesLoadBraces +let g:rainbow_active = 1