@usearazzo/validator 1.0.1-alpha.5 → 1.0.1-alpha.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.arazzoValidator=t():e.arazzoValidator=t()}(self,()=>(()=>{var __webpack_modules__={863(e,t){"use strict";function n(e){return"string"==typeof e||e instanceof String}function s(e){return Array.isArray(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.boolean=function(e){return!0===e||!1===e},t.string=n,t.number=function(e){return"number"==typeof e||e instanceof Number},t.error=function(e){return e instanceof Error},t.func=function(e){return"function"==typeof e},t.array=s,t.stringArray=function(e){return s(e)&&e.every(e=>n(e))}},104(e,t){"use strict";let n;function s(){if(void 0===n)throw new Error("No runtime abstraction layer installed");return n}Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.install=function(e){if(void 0===e)throw new Error("No runtime abstraction layer provided");n=e}}(s||(s={})),t.default=s},444(e,t){"use strict";function n(e){return"string"==typeof e||e instanceof String}function s(e){return Array.isArray(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.boolean=function(e){return!0===e||!1===e},t.string=n,t.number=function(e){return"number"==typeof e||e instanceof Number},t.error=function(e){return e instanceof Error},t.func=function(e){return"function"==typeof e},t.array=s,t.stringArray=function(e){return s(e)&&e.every(e=>n(e))},t.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)},t.objectLiteral=function(e){return null!==e&&"object"==typeof e}},838(e,t){var n=/~/,s=/~[01]/g;function r(e){switch(e){case"~1":return"/";case"~0":return"~"}throw new Error("Invalid tilde escape: "+e)}function i(e){return n.test(e)?e.replace(s,r):e}function a(e){if("string"==typeof e){if(""===(e=e.split("/"))[0])return e;throw new Error("Invalid JSON pointer.")}if(Array.isArray(e)){for(const t of e)if("string"!=typeof t&&"number"!=typeof t)throw new Error("Invalid JSON pointer. Must be of type string or number.");return e}throw new Error("Invalid JSON pointer.")}function o(e,t){if("object"!=typeof e)throw new Error("Invalid input object.");var n=(t=a(t)).length;if(1===n)return e;for(var s=1;s<n;){if(e=e[i(t[s++])],n===s)return e;if("object"!=typeof e||null===e)return}}function c(e,t,n){if("object"!=typeof e)throw new Error("Invalid input object.");if(0===(t=a(t)).length)throw new Error("Invalid JSON pointer for set.");return function(e,t,n){for(var s,r,a=1,o=t.length;a<o;){if("constructor"===t[a]||"prototype"===t[a]||"__proto__"===t[a])return e;if(s=i(t[a++]),r=o>a,void 0===e[s]&&(Array.isArray(e)&&"-"===s&&(s=e.length),r&&(""!==t[a]&&t[a]<1/0||"-"===t[a]?e[s]=[]:e[s]={})),!r)break;e=e[s]}var c=e[s];return void 0===n?delete e[s]:e[s]=n,c}(e,t,n)}t.get=o,t.set=c,t.compile=function(e){var t=a(e);return{get:function(e){return o(e,t)},set:function(e,n){return c(e,t,n)}}}},841(){},907(e){var t,n,s=e.exports={};function r(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===r||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:r}catch(e){t=r}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var o,c=[],l=!1,p=-1;function u(){l&&o&&(l=!1,o.length?c=o.concat(c):p=-1,c.length&&d())}function d(){if(!l){var e=a(u);l=!0;for(var t=c.length;t;){for(o=c,c=[];++p<t;)o&&o[p].run();p=-1,t=c.length}o=null,l=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function h(){}s.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new m(e,t)),1!==c.length||l||a(d)},m.prototype.run=function(){this.fun.apply(null,this.array)},s.title="browser",s.browser=!0,s.env={},s.argv=[],s.version="",s.versions={},s.on=h,s.addListener=h,s.once=h,s.off=h,s.removeListener=h,s.removeAllListeners=h,s.emit=h,s.prependListener=h,s.prependOnceListener=h,s.listeners=function(e){return[]},s.binding=function(e){throw new Error("process.binding is not supported")},s.cwd=function(){return"/"},s.chdir=function(e){throw new Error("process.chdir is not supported")},s.umask=function(){return 0}},167(){},451(){},333(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{TM:()=>Language,iX:()=>Parser});var __defProp=Object.defineProperty,__name=(e,t)=>__defProp(e,"name",{value:t,configurable:!0}),Edit=class{static{__name(this,"Edit")}startPosition;oldEndPosition;newEndPosition;startIndex;oldEndIndex;newEndIndex;constructor({startIndex:e,oldEndIndex:t,newEndIndex:n,startPosition:s,oldEndPosition:r,newEndPosition:i}){this.startIndex=e>>>0,this.oldEndIndex=t>>>0,this.newEndIndex=n>>>0,this.startPosition=s,this.oldEndPosition=r,this.newEndPosition=i}editPoint(e,t){let n=t;const s={...e};if(t>=this.oldEndIndex){n=this.newEndIndex+(t-this.oldEndIndex);const r=e.row;s.row=this.newEndPosition.row+(e.row-this.oldEndPosition.row),s.column=r===this.oldEndPosition.row?this.newEndPosition.column+(e.column-this.oldEndPosition.column):e.column}else t>this.startIndex&&(n=this.newEndIndex,s.row=this.newEndPosition.row,s.column=this.newEndPosition.column);return{point:s,index:n}}editRange(e){const t={startIndex:e.startIndex,startPosition:{...e.startPosition},endIndex:e.endIndex,endPosition:{...e.endPosition}};return e.endIndex>=this.oldEndIndex?e.endIndex!==Number.MAX_SAFE_INTEGER&&(t.endIndex=this.newEndIndex+(e.endIndex-this.oldEndIndex),t.endPosition={row:this.newEndPosition.row+(e.endPosition.row-this.oldEndPosition.row),column:e.endPosition.row===this.oldEndPosition.row?this.newEndPosition.column+(e.endPosition.column-this.oldEndPosition.column):e.endPosition.column},t.endIndex<this.newEndIndex&&(t.endIndex=Number.MAX_SAFE_INTEGER,t.endPosition={row:Number.MAX_SAFE_INTEGER,column:Number.MAX_SAFE_INTEGER})):e.endIndex>this.startIndex&&(t.endIndex=this.startIndex,t.endPosition={...this.startPosition}),e.startIndex>=this.oldEndIndex?(t.startIndex=this.newEndIndex+(e.startIndex-this.oldEndIndex),t.startPosition={row:this.newEndPosition.row+(e.startPosition.row-this.oldEndPosition.row),column:e.startPosition.row===this.oldEndPosition.row?this.newEndPosition.column+(e.startPosition.column-this.oldEndPosition.column):e.startPosition.column},t.startIndex<this.newEndIndex&&(t.startIndex=Number.MAX_SAFE_INTEGER,t.startPosition={row:Number.MAX_SAFE_INTEGER,column:Number.MAX_SAFE_INTEGER})):e.startIndex>this.startIndex&&(t.startIndex=this.startIndex,t.startPosition={...this.startPosition}),t}},SIZE_OF_SHORT=2,SIZE_OF_INT=4,SIZE_OF_CURSOR=4*SIZE_OF_INT,SIZE_OF_NODE=5*SIZE_OF_INT,SIZE_OF_POINT=2*SIZE_OF_INT,SIZE_OF_RANGE=2*SIZE_OF_INT+2*SIZE_OF_POINT,ZERO_POINT={row:0,column:0},INTERNAL=Symbol("INTERNAL"),C;function assertInternal(e){if(e!==INTERNAL)throw new Error("Illegal constructor")}function isPoint(e){return!!e&&"number"==typeof e.row&&"number"==typeof e.column}function setModule(e){C=e}__name(assertInternal,"assertInternal"),__name(isPoint,"isPoint"),__name(setModule,"setModule");var LookaheadIterator=class{static{__name(this,"LookaheadIterator")}0=0;language;constructor(e,t,n){assertInternal(e),this[0]=t,this.language=n}get currentTypeId(){return C._ts_lookahead_iterator_current_symbol(this[0])}get currentType(){return this.language.types[this.currentTypeId]||"ERROR"}delete(){C._ts_lookahead_iterator_delete(this[0]),this[0]=0}reset(e,t){return!!C._ts_lookahead_iterator_reset(this[0],e[0],t)&&(this.language=e,!0)}resetState(e){return Boolean(C._ts_lookahead_iterator_reset_state(this[0],e))}[Symbol.iterator](){return{next:__name(()=>C._ts_lookahead_iterator_next(this[0])?{done:!1,value:this.currentType}:{done:!0,value:""},"next")}}};function getText(e,t,n,s){const r=n-t;let i=e.textCallback(t,s);if(i){for(t+=i.length;t<n;){const n=e.textCallback(t,s);if(!(n&&n.length>0))break;t+=n.length,i+=n}t>n&&(i=i.slice(0,r))}return i??""}__name(getText,"getText");var Tree=class e{static{__name(this,"Tree")}0=0;textCallback;language;constructor(e,t,n,s){assertInternal(e),this[0]=t,this.language=n,this.textCallback=s}copy(){const t=C._ts_tree_copy(this[0]);return new e(INTERNAL,t,this.language,this.textCallback)}delete(){C._ts_tree_delete(this[0]),this[0]=0}get rootNode(){return C._ts_tree_root_node_wasm(this[0]),unmarshalNode(this)}rootNodeWithOffset(e,t){const n=TRANSFER_BUFFER+SIZE_OF_NODE;return C.setValue(n,e,"i32"),marshalPoint(n+SIZE_OF_INT,t),C._ts_tree_root_node_with_offset_wasm(this[0]),unmarshalNode(this)}edit(e){marshalEdit(e),C._ts_tree_edit_wasm(this[0])}walk(){return this.rootNode.walk()}getChangedRanges(t){if(!(t instanceof e))throw new TypeError("Argument must be a Tree");C._ts_tree_get_changed_ranges_wasm(this[0],t[0]);const n=C.getValue(TRANSFER_BUFFER,"i32"),s=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),r=new Array(n);if(n>0){let e=s;for(let t=0;t<n;t++)r[t]=unmarshalRange(e),e+=SIZE_OF_RANGE;C._free(s)}return r}getIncludedRanges(){C._ts_tree_included_ranges_wasm(this[0]);const e=C.getValue(TRANSFER_BUFFER,"i32"),t=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),n=new Array(e);if(e>0){let s=t;for(let t=0;t<e;t++)n[t]=unmarshalRange(s),s+=SIZE_OF_RANGE;C._free(t)}return n}},TreeCursor=class e{static{__name(this,"TreeCursor")}0=0;1=0;2=0;3=0;tree;constructor(e,t){assertInternal(e),this.tree=t,unmarshalTreeCursor(this)}copy(){const t=new e(INTERNAL,this.tree);return C._ts_tree_cursor_copy_wasm(this.tree[0]),unmarshalTreeCursor(t),t}delete(){marshalTreeCursor(this),C._ts_tree_cursor_delete_wasm(this.tree[0]),this[0]=this[1]=this[2]=0}get currentNode(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_wasm(this.tree[0]),unmarshalNode(this.tree)}get currentFieldId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_field_id_wasm(this.tree[0])}get currentFieldName(){return this.tree.language.fields[this.currentFieldId]}get currentDepth(){return marshalTreeCursor(this),C._ts_tree_cursor_current_depth_wasm(this.tree[0])}get currentDescendantIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_current_descendant_index_wasm(this.tree[0])}get nodeType(){return this.tree.language.types[this.nodeTypeId]||"ERROR"}get nodeTypeId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_type_id_wasm(this.tree[0])}get nodeStateId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_state_id_wasm(this.tree[0])}get nodeId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_id_wasm(this.tree[0])}get nodeIsNamed(){return marshalTreeCursor(this),1===C._ts_tree_cursor_current_node_is_named_wasm(this.tree[0])}get nodeIsMissing(){return marshalTreeCursor(this),1===C._ts_tree_cursor_current_node_is_missing_wasm(this.tree[0])}get nodeText(){marshalTreeCursor(this);const e=C._ts_tree_cursor_start_index_wasm(this.tree[0]),t=C._ts_tree_cursor_end_index_wasm(this.tree[0]);C._ts_tree_cursor_start_position_wasm(this.tree[0]);const n=unmarshalPoint(TRANSFER_BUFFER);return getText(this.tree,e,t,n)}get startPosition(){return marshalTreeCursor(this),C._ts_tree_cursor_start_position_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get endPosition(){return marshalTreeCursor(this),C._ts_tree_cursor_end_position_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get startIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_start_index_wasm(this.tree[0])}get endIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_end_index_wasm(this.tree[0])}gotoFirstChild(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_first_child_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoLastChild(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_last_child_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoParent(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_parent_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoNextSibling(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_next_sibling_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoPreviousSibling(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_previous_sibling_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoDescendant(e){marshalTreeCursor(this),C._ts_tree_cursor_goto_descendant_wasm(this.tree[0],e),unmarshalTreeCursor(this)}gotoFirstChildForIndex(e){marshalTreeCursor(this),C.setValue(TRANSFER_BUFFER+SIZE_OF_CURSOR,e,"i32");const t=C._ts_tree_cursor_goto_first_child_for_index_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===t}gotoFirstChildForPosition(e){marshalTreeCursor(this),marshalPoint(TRANSFER_BUFFER+SIZE_OF_CURSOR,e);const t=C._ts_tree_cursor_goto_first_child_for_position_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===t}reset(e){marshalNode(e),marshalTreeCursor(this,TRANSFER_BUFFER+SIZE_OF_NODE),C._ts_tree_cursor_reset_wasm(this.tree[0]),unmarshalTreeCursor(this)}resetTo(e){marshalTreeCursor(this,TRANSFER_BUFFER),marshalTreeCursor(e,TRANSFER_BUFFER+SIZE_OF_CURSOR),C._ts_tree_cursor_reset_to_wasm(this.tree[0],e.tree[0]),unmarshalTreeCursor(this)}},Node=class{static{__name(this,"Node")}0=0;_children;_namedChildren;constructor(e,{id:t,tree:n,startIndex:s,startPosition:r,other:i}){assertInternal(e),this[0]=i,this.id=t,this.tree=n,this.startIndex=s,this.startPosition=r}id;startIndex;startPosition;tree;get typeId(){return marshalNode(this),C._ts_node_symbol_wasm(this.tree[0])}get grammarId(){return marshalNode(this),C._ts_node_grammar_symbol_wasm(this.tree[0])}get type(){return this.tree.language.types[this.typeId]||"ERROR"}get grammarType(){return this.tree.language.types[this.grammarId]||"ERROR"}get isNamed(){return marshalNode(this),1===C._ts_node_is_named_wasm(this.tree[0])}get isExtra(){return marshalNode(this),1===C._ts_node_is_extra_wasm(this.tree[0])}get isError(){return marshalNode(this),1===C._ts_node_is_error_wasm(this.tree[0])}get isMissing(){return marshalNode(this),1===C._ts_node_is_missing_wasm(this.tree[0])}get hasChanges(){return marshalNode(this),1===C._ts_node_has_changes_wasm(this.tree[0])}get hasError(){return marshalNode(this),1===C._ts_node_has_error_wasm(this.tree[0])}get endIndex(){return marshalNode(this),C._ts_node_end_index_wasm(this.tree[0])}get endPosition(){return marshalNode(this),C._ts_node_end_point_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get text(){return getText(this.tree,this.startIndex,this.endIndex,this.startPosition)}get parseState(){return marshalNode(this),C._ts_node_parse_state_wasm(this.tree[0])}get nextParseState(){return marshalNode(this),C._ts_node_next_parse_state_wasm(this.tree[0])}equals(e){return this.tree===e.tree&&this.id===e.id}child(e){return marshalNode(this),C._ts_node_child_wasm(this.tree[0],e),unmarshalNode(this.tree)}namedChild(e){return marshalNode(this),C._ts_node_named_child_wasm(this.tree[0],e),unmarshalNode(this.tree)}childForFieldId(e){return marshalNode(this),C._ts_node_child_by_field_id_wasm(this.tree[0],e),unmarshalNode(this.tree)}childForFieldName(e){const t=this.tree.language.fields.indexOf(e);return-1!==t?this.childForFieldId(t):null}fieldNameForChild(e){marshalNode(this);const t=C._ts_node_field_name_for_child_wasm(this.tree[0],e);return t?C.AsciiToString(t):null}fieldNameForNamedChild(e){marshalNode(this);const t=C._ts_node_field_name_for_named_child_wasm(this.tree[0],e);return t?C.AsciiToString(t):null}childrenForFieldName(e){const t=this.tree.language.fields.indexOf(e);return-1!==t&&0!==t?this.childrenForFieldId(t):[]}childrenForFieldId(e){marshalNode(this),C._ts_node_children_by_field_id_wasm(this.tree[0],e);const t=C.getValue(TRANSFER_BUFFER,"i32"),n=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),s=new Array(t);if(t>0){let e=n;for(let n=0;n<t;n++)s[n]=unmarshalNode(this.tree,e),e+=SIZE_OF_NODE;C._free(n)}return s}firstChildForIndex(e){marshalNode(this);const t=TRANSFER_BUFFER+SIZE_OF_NODE;return C.setValue(t,e,"i32"),C._ts_node_first_child_for_byte_wasm(this.tree[0]),unmarshalNode(this.tree)}firstNamedChildForIndex(e){marshalNode(this);const t=TRANSFER_BUFFER+SIZE_OF_NODE;return C.setValue(t,e,"i32"),C._ts_node_first_named_child_for_byte_wasm(this.tree[0]),unmarshalNode(this.tree)}get childCount(){return marshalNode(this),C._ts_node_child_count_wasm(this.tree[0])}get namedChildCount(){return marshalNode(this),C._ts_node_named_child_count_wasm(this.tree[0])}get firstChild(){return this.child(0)}get firstNamedChild(){return this.namedChild(0)}get lastChild(){return this.child(this.childCount-1)}get lastNamedChild(){return this.namedChild(this.namedChildCount-1)}get children(){if(!this._children){marshalNode(this),C._ts_node_children_wasm(this.tree[0]);const e=C.getValue(TRANSFER_BUFFER,"i32"),t=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32");if(this._children=new Array(e),e>0){let n=t;for(let t=0;t<e;t++)this._children[t]=unmarshalNode(this.tree,n),n+=SIZE_OF_NODE;C._free(t)}}return this._children}get namedChildren(){if(!this._namedChildren){marshalNode(this),C._ts_node_named_children_wasm(this.tree[0]);const e=C.getValue(TRANSFER_BUFFER,"i32"),t=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32");if(this._namedChildren=new Array(e),e>0){let n=t;for(let t=0;t<e;t++)this._namedChildren[t]=unmarshalNode(this.tree,n),n+=SIZE_OF_NODE;C._free(t)}}return this._namedChildren}descendantsOfType(e,t=ZERO_POINT,n=ZERO_POINT){Array.isArray(e)||(e=[e]);const s=[],r=this.tree.language.types;for(const t of e)"ERROR"==t&&s.push(65535);for(let t=0,n=r.length;t<n;t++)e.includes(r[t])&&s.push(t);const i=C._malloc(SIZE_OF_INT*s.length);for(let e=0,t=s.length;e<t;e++)C.setValue(i+e*SIZE_OF_INT,s[e],"i32");marshalNode(this),C._ts_node_descendants_of_type_wasm(this.tree[0],i,s.length,t.row,t.column,n.row,n.column);const a=C.getValue(TRANSFER_BUFFER,"i32"),o=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),c=new Array(a);if(a>0){let e=o;for(let t=0;t<a;t++)c[t]=unmarshalNode(this.tree,e),e+=SIZE_OF_NODE}return C._free(o),C._free(i),c}get nextSibling(){return marshalNode(this),C._ts_node_next_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get previousSibling(){return marshalNode(this),C._ts_node_prev_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get nextNamedSibling(){return marshalNode(this),C._ts_node_next_named_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get previousNamedSibling(){return marshalNode(this),C._ts_node_prev_named_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get descendantCount(){return marshalNode(this),C._ts_node_descendant_count_wasm(this.tree[0])}get parent(){return marshalNode(this),C._ts_node_parent_wasm(this.tree[0]),unmarshalNode(this.tree)}childWithDescendant(e){return marshalNode(this),marshalNode(e,1),C._ts_node_child_with_descendant_wasm(this.tree[0]),unmarshalNode(this.tree)}descendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");marshalNode(this);const n=TRANSFER_BUFFER+SIZE_OF_NODE;return C.setValue(n,e,"i32"),C.setValue(n+SIZE_OF_INT,t,"i32"),C._ts_node_descendant_for_index_wasm(this.tree[0]),unmarshalNode(this.tree)}namedDescendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");marshalNode(this);const n=TRANSFER_BUFFER+SIZE_OF_NODE;return C.setValue(n,e,"i32"),C.setValue(n+SIZE_OF_INT,t,"i32"),C._ts_node_named_descendant_for_index_wasm(this.tree[0]),unmarshalNode(this.tree)}descendantForPosition(e,t=e){if(!isPoint(e)||!isPoint(t))throw new Error("Arguments must be {row, column} objects");marshalNode(this);const n=TRANSFER_BUFFER+SIZE_OF_NODE;return marshalPoint(n,e),marshalPoint(n+SIZE_OF_POINT,t),C._ts_node_descendant_for_position_wasm(this.tree[0]),unmarshalNode(this.tree)}namedDescendantForPosition(e,t=e){if(!isPoint(e)||!isPoint(t))throw new Error("Arguments must be {row, column} objects");marshalNode(this);const n=TRANSFER_BUFFER+SIZE_OF_NODE;return marshalPoint(n,e),marshalPoint(n+SIZE_OF_POINT,t),C._ts_node_named_descendant_for_position_wasm(this.tree[0]),unmarshalNode(this.tree)}walk(){return marshalNode(this),C._ts_tree_cursor_new_wasm(this.tree[0]),new TreeCursor(INTERNAL,this.tree)}edit(e){if(this.startIndex>=e.oldEndIndex){let t,n;this.startIndex=e.newEndIndex+(this.startIndex-e.oldEndIndex),this.startPosition.row>e.oldEndPosition.row?(t=this.startPosition.row-e.oldEndPosition.row,n=this.startPosition.column):(t=0,n=this.startPosition.column,this.startPosition.column>=e.oldEndPosition.column&&(n=this.startPosition.column-e.oldEndPosition.column)),t>0?(this.startPosition.row+=t,this.startPosition.column=n):this.startPosition.column+=n}else this.startIndex>e.startIndex&&(this.startIndex=e.newEndIndex,this.startPosition.row=e.newEndPosition.row,this.startPosition.column=e.newEndPosition.column)}toString(){marshalNode(this);const e=C._ts_node_to_string_wasm(this.tree[0]),t=C.AsciiToString(e);return C._free(e),t}};function unmarshalCaptures(e,t,n,s,r){for(let i=0,a=r.length;i<a;i++){const a=C.getValue(n,"i32"),o=unmarshalNode(t,n+=SIZE_OF_INT);n+=SIZE_OF_NODE,r[i]={patternIndex:s,name:e.captureNames[a],node:o}}return n}function marshalNode(e,t=0){let n=TRANSFER_BUFFER+t*SIZE_OF_NODE;C.setValue(n,e.id,"i32"),n+=SIZE_OF_INT,C.setValue(n,e.startIndex,"i32"),n+=SIZE_OF_INT,C.setValue(n,e.startPosition.row,"i32"),n+=SIZE_OF_INT,C.setValue(n,e.startPosition.column,"i32"),n+=SIZE_OF_INT,C.setValue(n,e[0],"i32")}function unmarshalNode(e,t=TRANSFER_BUFFER){const n=C.getValue(t,"i32");if(t+=SIZE_OF_INT,0===n)return null;const s=C.getValue(t,"i32");t+=SIZE_OF_INT;const r=C.getValue(t,"i32");t+=SIZE_OF_INT;const i=C.getValue(t,"i32");t+=SIZE_OF_INT;const a=C.getValue(t,"i32");return new Node(INTERNAL,{id:n,tree:e,startIndex:s,startPosition:{row:r,column:i},other:a})}function marshalTreeCursor(e,t=TRANSFER_BUFFER){C.setValue(t+0*SIZE_OF_INT,e[0],"i32"),C.setValue(t+1*SIZE_OF_INT,e[1],"i32"),C.setValue(t+2*SIZE_OF_INT,e[2],"i32"),C.setValue(t+3*SIZE_OF_INT,e[3],"i32")}function unmarshalTreeCursor(e){e[0]=C.getValue(TRANSFER_BUFFER+0*SIZE_OF_INT,"i32"),e[1]=C.getValue(TRANSFER_BUFFER+1*SIZE_OF_INT,"i32"),e[2]=C.getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),e[3]=C.getValue(TRANSFER_BUFFER+3*SIZE_OF_INT,"i32")}function marshalPoint(e,t){C.setValue(e,t.row,"i32"),C.setValue(e+SIZE_OF_INT,t.column,"i32")}function unmarshalPoint(e){return{row:C.getValue(e,"i32")>>>0,column:C.getValue(e+SIZE_OF_INT,"i32")>>>0}}function marshalRange(e,t){marshalPoint(e,t.startPosition),marshalPoint(e+=SIZE_OF_POINT,t.endPosition),e+=SIZE_OF_POINT,C.setValue(e,t.startIndex,"i32"),e+=SIZE_OF_INT,C.setValue(e,t.endIndex,"i32"),e+=SIZE_OF_INT}function unmarshalRange(e){const t={};return t.startPosition=unmarshalPoint(e),e+=SIZE_OF_POINT,t.endPosition=unmarshalPoint(e),e+=SIZE_OF_POINT,t.startIndex=C.getValue(e,"i32")>>>0,e+=SIZE_OF_INT,t.endIndex=C.getValue(e,"i32")>>>0,t}function marshalEdit(e,t=TRANSFER_BUFFER){marshalPoint(t,e.startPosition),marshalPoint(t+=SIZE_OF_POINT,e.oldEndPosition),marshalPoint(t+=SIZE_OF_POINT,e.newEndPosition),t+=SIZE_OF_POINT,C.setValue(t,e.startIndex,"i32"),t+=SIZE_OF_INT,C.setValue(t,e.oldEndIndex,"i32"),t+=SIZE_OF_INT,C.setValue(t,e.newEndIndex,"i32"),t+=SIZE_OF_INT}function unmarshalLanguageMetadata(e){return{major_version:C.getValue(e,"i32"),minor_version:C.getValue(e+=SIZE_OF_INT,"i32"),patch_version:C.getValue(e+=SIZE_OF_INT,"i32")}}__name(unmarshalCaptures,"unmarshalCaptures"),__name(marshalNode,"marshalNode"),__name(unmarshalNode,"unmarshalNode"),__name(marshalTreeCursor,"marshalTreeCursor"),__name(unmarshalTreeCursor,"unmarshalTreeCursor"),__name(marshalPoint,"marshalPoint"),__name(unmarshalPoint,"unmarshalPoint"),__name(marshalRange,"marshalRange"),__name(unmarshalRange,"unmarshalRange"),__name(marshalEdit,"marshalEdit"),__name(unmarshalLanguageMetadata,"unmarshalLanguageMetadata");var LANGUAGE_FUNCTION_REGEX=/^tree_sitter_\w+$/,Language=class e{static{__name(this,"Language")}0=0;types;fields;constructor(e,t){assertInternal(e),this[0]=t,this.types=new Array(C._ts_language_symbol_count(this[0]));for(let e=0,t=this.types.length;e<t;e++)C._ts_language_symbol_type(this[0],e)<2&&(this.types[e]=C.UTF8ToString(C._ts_language_symbol_name(this[0],e)));this.fields=new Array(C._ts_language_field_count(this[0])+1);for(let e=0,t=this.fields.length;e<t;e++){const t=C._ts_language_field_name_for_id(this[0],e);this.fields[e]=0!==t?C.UTF8ToString(t):null}}get name(){const e=C._ts_language_name(this[0]);return 0===e?null:C.UTF8ToString(e)}get abiVersion(){return C._ts_language_abi_version(this[0])}get metadata(){C._ts_language_metadata_wasm(this[0]);return 0===C.getValue(TRANSFER_BUFFER,"i32")?null:unmarshalLanguageMetadata(TRANSFER_BUFFER+SIZE_OF_INT)}get fieldCount(){return this.fields.length-1}get stateCount(){return C._ts_language_state_count(this[0])}fieldIdForName(e){const t=this.fields.indexOf(e);return-1!==t?t:null}fieldNameForId(e){return this.fields[e]??null}idForNodeType(e,t){const n=C.lengthBytesUTF8(e),s=C._malloc(n+1);C.stringToUTF8(e,s,n+1);const r=C._ts_language_symbol_for_name(this[0],s,n,t?1:0);return C._free(s),r||null}get nodeTypeCount(){return C._ts_language_symbol_count(this[0])}nodeTypeForId(e){const t=C._ts_language_symbol_name(this[0],e);return t?C.UTF8ToString(t):null}nodeTypeIsNamed(e){return!!C._ts_language_type_is_named_wasm(this[0],e)}nodeTypeIsVisible(e){return!!C._ts_language_type_is_visible_wasm(this[0],e)}get supertypes(){C._ts_language_supertypes_wasm(this[0]);const e=C.getValue(TRANSFER_BUFFER,"i32"),t=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),n=new Array(e);if(e>0){let s=t;for(let t=0;t<e;t++)n[t]=C.getValue(s,"i16"),s+=SIZE_OF_SHORT}return n}subtypes(e){C._ts_language_subtypes_wasm(this[0],e);const t=C.getValue(TRANSFER_BUFFER,"i32"),n=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),s=new Array(t);if(t>0){let e=n;for(let n=0;n<t;n++)s[n]=C.getValue(e,"i16"),e+=SIZE_OF_SHORT}return s}nextState(e,t){return C._ts_language_next_state(this[0],e,t)}lookaheadIterator(e){const t=C._ts_lookahead_iterator_new(this[0],e);return t?new LookaheadIterator(INTERNAL,t,this):null}static async load(t){let n;if(t instanceof Uint8Array)n=t;else if(globalThis.process?.versions.node){const e=await Promise.resolve().then(()=>__webpack_require__.t(167,19));n=await e.readFile(t)}else{const e=await fetch(t);if(!e.ok){const t=await e.text();throw new Error(`Language.load failed with status ${e.status}.\n\n${t}`)}const s=e.clone();try{n=await WebAssembly.compileStreaming(e)}catch(e){console.error("wasm streaming compile failed:",e),console.error("falling back to ArrayBuffer instantiation"),n=new Uint8Array(await s.arrayBuffer())}}const s=await C.loadWebAssemblyModule(n,{loadAsync:!0}),r=Object.keys(s),i=r.find(e=>LANGUAGE_FUNCTION_REGEX.test(e)&&!e.includes("external_scanner_"));if(!i)throw console.log(`Couldn't find language function in Wasm file. Symbols:\n${JSON.stringify(r,null,2)}`),new Error("Language.load failed: no language function found in Wasm file");const a=s[i]();return new e(INTERNAL,a)}};async function Module2(moduleArg={}){var moduleRtn,Module=moduleArg,ENVIRONMENT_IS_WEB="object"==typeof window,ENVIRONMENT_IS_WORKER="undefined"!=typeof WorkerGlobalScope,ENVIRONMENT_IS_NODE="object"==typeof process&&process.versions?.node&&"renderer"!=process.type;if(ENVIRONMENT_IS_NODE){const{createRequire:e}=await Promise.resolve().then(()=>__webpack_require__.t(451,19));var require=e("file:///home/char0n/Documents/GitHub/usearazzo/arazzo-toolkit/node_modules/web-tree-sitter/web-tree-sitter.js")}Module.currentQueryProgressCallback=null,Module.currentProgressCallback=null,Module.currentLogCallback=null,Module.currentParseCallback=null;var arguments_=[],thisProgram="./this.program",quit_=__name((e,t)=>{throw t},"quit_"),_scriptName="file:///home/char0n/Documents/GitHub/usearazzo/arazzo-toolkit/node_modules/web-tree-sitter/web-tree-sitter.js",scriptDirectory="",readAsync,readBinary;function locateFile(e){return Module.locateFile?Module.locateFile(e,scriptDirectory):scriptDirectory+e}if(__name(locateFile,"locateFile"),ENVIRONMENT_IS_NODE){var fs=require("fs");_scriptName.startsWith("file:")&&(scriptDirectory=require("path").dirname(require("url").fileURLToPath(_scriptName))+"/"),readBinary=__name(e=>(e=isFileURI(e)?new URL(e):e,fs.readFileSync(e)),"readBinary"),readAsync=__name(async(e,t=!0)=>(e=isFileURI(e)?new URL(e):e,fs.readFileSync(e,t?void 0:"utf8")),"readAsync"),process.argv.length>1&&(thisProgram=process.argv[1].replace(/\\/g,"/")),arguments_=process.argv.slice(2),quit_=__name((e,t)=>{throw process.exitCode=e,t},"quit_")}else if(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER){try{scriptDirectory=new URL(".",_scriptName).href}catch{}ENVIRONMENT_IS_WORKER&&(readBinary=__name(e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)},"readBinary")),readAsync=__name(async e=>{if(isFileURI(e))return new Promise((t,n)=>{var s=new XMLHttpRequest;s.open("GET",e,!0),s.responseType="arraybuffer",s.onload=()=>{200==s.status||0==s.status&&s.response?t(s.response):n(s.status)},s.onerror=n,s.send(null)});var t=await fetch(e,{credentials:"same-origin"});if(t.ok)return t.arrayBuffer();throw new Error(t.status+" : "+t.url)},"readAsync")}var out=console.log.bind(console),err=console.error.bind(console),dynamicLibraries=[],wasmBinary,ABORT=!1,EXITSTATUS,isFileURI=__name(e=>e.startsWith("file://"),"isFileURI"),readyPromiseResolve,readyPromiseReject,wasmMemory,HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64,HEAP64,HEAPU64,HEAP_DATA_VIEW,runtimeInitialized=!1;function updateMemoryViews(){var e=wasmMemory.buffer;Module.HEAP8=HEAP8=new Int8Array(e),Module.HEAP16=HEAP16=new Int16Array(e),Module.HEAPU8=HEAPU8=new Uint8Array(e),Module.HEAPU16=HEAPU16=new Uint16Array(e),Module.HEAP32=HEAP32=new Int32Array(e),Module.HEAPU32=HEAPU32=new Uint32Array(e),Module.HEAPF32=HEAPF32=new Float32Array(e),Module.HEAPF64=HEAPF64=new Float64Array(e),Module.HEAP64=HEAP64=new BigInt64Array(e),Module.HEAPU64=HEAPU64=new BigUint64Array(e),Module.HEAP_DATA_VIEW=HEAP_DATA_VIEW=new DataView(e),LE_HEAP_UPDATE()}function initMemory(){if(Module.wasmMemory)wasmMemory=Module.wasmMemory;else{var e=Module.INITIAL_MEMORY||33554432;wasmMemory=new WebAssembly.Memory({initial:e/65536,maximum:32768})}updateMemoryViews()}__name(updateMemoryViews,"updateMemoryViews"),__name(initMemory,"initMemory");var __RELOC_FUNCS__=[],wasmBinaryFile;function preRun(){if(Module.preRun)for("function"==typeof Module.preRun&&(Module.preRun=[Module.preRun]);Module.preRun.length;)addOnPreRun(Module.preRun.shift());callRuntimeCallbacks(onPreRuns)}function initRuntime(){runtimeInitialized=!0,callRuntimeCallbacks(__RELOC_FUNCS__),wasmExports.__wasm_call_ctors(),callRuntimeCallbacks(onPostCtors)}function preMain(){}function postRun(){if(Module.postRun)for("function"==typeof Module.postRun&&(Module.postRun=[Module.postRun]);Module.postRun.length;)addOnPostRun(Module.postRun.shift());callRuntimeCallbacks(onPostRuns)}function abort(e){Module.onAbort?.(e),err(e="Aborted("+e+")"),ABORT=!0,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw readyPromiseReject?.(t),t}function findWasmBinary(){return Module.locateFile?locateFile("web-tree-sitter.wasm"):new URL(__webpack_require__(841),__webpack_require__.b).href}function getBinarySync(e){if(e==wasmBinaryFile&&wasmBinary)return new Uint8Array(wasmBinary);if(readBinary)return readBinary(e);throw"both async and sync fetching of the wasm failed"}async function getWasmBinary(e){if(!wasmBinary)try{var t=await readAsync(e);return new Uint8Array(t)}catch{}return getBinarySync(e)}async function instantiateArrayBuffer(e,t){try{var n=await getWasmBinary(e);return await WebAssembly.instantiate(n,t)}catch(e){err(`failed to asynchronously prepare wasm: ${e}`),abort(e)}}async function instantiateAsync(e,t,n){if(!e&&!isFileURI(t)&&!ENVIRONMENT_IS_NODE)try{var s=fetch(t,{credentials:"same-origin"});return await WebAssembly.instantiateStreaming(s,n)}catch(e){err(`wasm streaming compile failed: ${e}`),err("falling back to ArrayBuffer instantiation")}return instantiateArrayBuffer(t,n)}function getWasmImports(){return{env:wasmImports,wasi_snapshot_preview1:wasmImports,"GOT.mem":new Proxy(wasmImports,GOTHandler),"GOT.func":new Proxy(wasmImports,GOTHandler)}}async function createWasm(){function e(e,t){wasmExports=e.exports,wasmExports=relocateExports(wasmExports,1024);var n=getDylinkMetadata(t);return n.neededDynlibs&&(dynamicLibraries=n.neededDynlibs.concat(dynamicLibraries)),mergeLibSymbols(wasmExports,"main"),LDSO.init(),loadDylibs(),__RELOC_FUNCS__.push(wasmExports.__wasm_apply_data_relocs),assignWasmExports(wasmExports),wasmExports}function t(t){return e(t.instance,t.module)}__name(e,"receiveInstance"),__name(t,"receiveInstantiationResult");var n=getWasmImports();return Module.instantiateWasm?new Promise((t,s)=>{Module.instantiateWasm(n,(n,s)=>{t(e(n,s))})}):(wasmBinaryFile??=findWasmBinary(),t(await instantiateAsync(wasmBinary,wasmBinaryFile,n)))}__name(preRun,"preRun"),__name(initRuntime,"initRuntime"),__name(preMain,"preMain"),__name(postRun,"postRun"),__name(abort,"abort"),__name(findWasmBinary,"findWasmBinary"),__name(getBinarySync,"getBinarySync"),__name(getWasmBinary,"getWasmBinary"),__name(instantiateArrayBuffer,"instantiateArrayBuffer"),__name(instantiateAsync,"instantiateAsync"),__name(getWasmImports,"getWasmImports"),__name(createWasm,"createWasm");class ExitStatus{static{__name(this,"ExitStatus")}name="ExitStatus";constructor(e){this.message=`Program terminated with exit(${e})`,this.status=e}}var GOT={},currentModuleWeakSymbols=new Set([]),GOTHandler={get(e,t){var n=GOT[t];return n||(n=GOT[t]=new WebAssembly.Global({value:"i32",mutable:!0})),currentModuleWeakSymbols.has(t)||(n.required=!0),n}},LE_ATOMICS_NATIVE_BYTE_ORDER=[],LE_HEAP_LOAD_F32=__name(e=>HEAP_DATA_VIEW.getFloat32(e,!0),"LE_HEAP_LOAD_F32"),LE_HEAP_LOAD_F64=__name(e=>HEAP_DATA_VIEW.getFloat64(e,!0),"LE_HEAP_LOAD_F64"),LE_HEAP_LOAD_I16=__name(e=>HEAP_DATA_VIEW.getInt16(e,!0),"LE_HEAP_LOAD_I16"),LE_HEAP_LOAD_I32=__name(e=>HEAP_DATA_VIEW.getInt32(e,!0),"LE_HEAP_LOAD_I32"),LE_HEAP_LOAD_I64=__name(e=>HEAP_DATA_VIEW.getBigInt64(e,!0),"LE_HEAP_LOAD_I64"),LE_HEAP_LOAD_U32=__name(e=>HEAP_DATA_VIEW.getUint32(e,!0),"LE_HEAP_LOAD_U32"),LE_HEAP_STORE_F32=__name((e,t)=>HEAP_DATA_VIEW.setFloat32(e,t,!0),"LE_HEAP_STORE_F32"),LE_HEAP_STORE_F64=__name((e,t)=>HEAP_DATA_VIEW.setFloat64(e,t,!0),"LE_HEAP_STORE_F64"),LE_HEAP_STORE_I16=__name((e,t)=>HEAP_DATA_VIEW.setInt16(e,t,!0),"LE_HEAP_STORE_I16"),LE_HEAP_STORE_I32=__name((e,t)=>HEAP_DATA_VIEW.setInt32(e,t,!0),"LE_HEAP_STORE_I32"),LE_HEAP_STORE_I64=__name((e,t)=>HEAP_DATA_VIEW.setBigInt64(e,t,!0),"LE_HEAP_STORE_I64"),LE_HEAP_STORE_U32=__name((e,t)=>HEAP_DATA_VIEW.setUint32(e,t,!0),"LE_HEAP_STORE_U32"),callRuntimeCallbacks=__name(e=>{for(;e.length>0;)e.shift()(Module)},"callRuntimeCallbacks"),onPostRuns=[],addOnPostRun=__name(e=>onPostRuns.push(e),"addOnPostRun"),onPreRuns=[],addOnPreRun=__name(e=>onPreRuns.push(e),"addOnPreRun"),UTF8Decoder="undefined"!=typeof TextDecoder?new TextDecoder:void 0,findStringEnd=__name((e,t,n,s)=>{var r=t+n;if(s)return r;for(;e[t]&&!(t>=r);)++t;return t},"findStringEnd"),UTF8ArrayToString=__name((e,t=0,n,s)=>{var r=findStringEnd(e,t,n,s);if(r-t>16&&e.buffer&&UTF8Decoder)return UTF8Decoder.decode(e.subarray(t,r));for(var i="";t<r;){var a=e[t++];if(128&a){var o=63&e[t++];if(192!=(224&a)){var c=63&e[t++];if((a=224==(240&a)?(15&a)<<12|o<<6|c:(7&a)<<18|o<<12|c<<6|63&e[t++])<65536)i+=String.fromCharCode(a);else{var l=a-65536;i+=String.fromCharCode(55296|l>>10,56320|1023&l)}}else i+=String.fromCharCode((31&a)<<6|o)}else i+=String.fromCharCode(a)}return i},"UTF8ArrayToString"),getDylinkMetadata=__name(e=>{var t=0,n=0;function s(){return e[t++]}function r(){for(var n=0,s=1;;){var r=e[t++];if(n+=(127&r)*s,s*=128,!(128&r))break}return n}function i(){var n=r();return UTF8ArrayToString(e,(t+=n)-n,n)}function a(){for(var e=r(),t=[];e--;)t.push(i());return t}function o(e,t){if(e)throw new Error(t)}if(__name(s,"getU8"),__name(r,"getLEB"),__name(i,"getString"),__name(a,"getStringList"),__name(o,"failIf"),e instanceof WebAssembly.Module){var c=WebAssembly.Module.customSections(e,"dylink.0");o(0===c.length,"need dylink section"),n=(e=new Uint8Array(c[0])).length}else{var l=new Uint32Array(new Uint8Array(e.subarray(0,24)).buffer);o(!(1836278016==l[0]||6386541==l[0]),"need to see wasm magic number"),o(0!==e[8],"need the dylink section to be first"),t=9;var p=r();n=t+p,o("dylink.0"!==i())}for(var u={neededDynlibs:[],tlsExports:new Set,weakImports:new Set,runtimePaths:[]};t<n;){var d=s(),m=r();if(1===d)u.memorySize=r(),u.memoryAlign=r(),u.tableSize=r(),u.tableAlign=r();else if(2===d)u.neededDynlibs=a();else if(3===d)for(var h=r();h--;){var f=i();256&r()&&u.tlsExports.add(f)}else if(4===d)for(h=r();h--;){i(),f=i();1==(3&r())&&u.weakImports.add(f)}else 5===d?u.runtimePaths=a():t+=m}return u},"getDylinkMetadata");function getValue(e,t="i8"){switch(t.endsWith("*")&&(t="*"),t){case"i1":case"i8":return HEAP8[e];case"i16":return LE_HEAP_LOAD_I16(2*(e>>1));case"i32":return LE_HEAP_LOAD_I32(4*(e>>2));case"i64":return LE_HEAP_LOAD_I64(8*(e>>3));case"float":return LE_HEAP_LOAD_F32(4*(e>>2));case"double":return LE_HEAP_LOAD_F64(8*(e>>3));case"*":return LE_HEAP_LOAD_U32(4*(e>>2));default:abort(`invalid type for getValue: ${t}`)}}__name(getValue,"getValue");var newDSO=__name((e,t,n)=>{var s={refcount:1/0,name:e,exports:n,global:!0};return LDSO.loadedLibsByName[e]=s,null!=t&&(LDSO.loadedLibsByHandle[t]=s),s},"newDSO"),LDSO={loadedLibsByName:{},loadedLibsByHandle:{},init(){newDSO("__main__",0,wasmImports)}},___heap_base=78240,alignMemory=__name((e,t)=>Math.ceil(e/t)*t,"alignMemory"),getMemory=__name(e=>{if(runtimeInitialized)return _calloc(e,1);var t=___heap_base,n=t+alignMemory(e,16);return ___heap_base=n,GOT.__heap_base.value=n,t},"getMemory"),isInternalSym=__name(e=>["__cpp_exception","__c_longjmp","__wasm_apply_data_relocs","__dso_handle","__tls_size","__tls_align","__set_stack_limits","_emscripten_tls_init","__wasm_init_tls","__wasm_call_ctors","__start_em_asm","__stop_em_asm","__start_em_js","__stop_em_js"].includes(e)||e.startsWith("__em_js__"),"isInternalSym"),uleb128EncodeWithLen=__name(e=>{const t=e.length;return[t%128|128,t>>7,...e]},"uleb128EncodeWithLen"),wasmTypeCodes={i:127,p:127,j:126,f:125,d:124,e:111},generateTypePack=__name(e=>uleb128EncodeWithLen(Array.from(e,e=>wasmTypeCodes[e])),"generateTypePack"),convertJsFunctionToWasm=__name((e,t)=>{var n=Uint8Array.of(0,97,115,109,1,0,0,0,1,...uleb128EncodeWithLen([1,96,...generateTypePack(t.slice(1)),...generateTypePack("v"===t[0]?"":t[0])]),2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0),s=new WebAssembly.Module(n);return new WebAssembly.Instance(s,{e:{f:e}}).exports.f},"convertJsFunctionToWasm"),wasmTableMirror=[],wasmTable=new WebAssembly.Table({initial:31,element:"anyfunc"}),getWasmTableEntry=__name(e=>{var t=wasmTableMirror[e];return t||(wasmTableMirror[e]=t=wasmTable.get(e)),t},"getWasmTableEntry"),updateTableMap=__name((e,t)=>{if(functionsInTableMap)for(var n=e;n<e+t;n++){var s=getWasmTableEntry(n);s&&functionsInTableMap.set(s,n)}},"updateTableMap"),functionsInTableMap,getFunctionAddress=__name(e=>(functionsInTableMap||(functionsInTableMap=new WeakMap,updateTableMap(0,wasmTable.length)),functionsInTableMap.get(e)||0),"getFunctionAddress"),freeTableIndexes=[],getEmptyTableSlot=__name(()=>freeTableIndexes.length?freeTableIndexes.pop():wasmTable.grow(1),"getEmptyTableSlot"),setWasmTableEntry=__name((e,t)=>{wasmTable.set(e,t),wasmTableMirror[e]=wasmTable.get(e)},"setWasmTableEntry"),addFunction=__name((e,t)=>{var n=getFunctionAddress(e);if(n)return n;var s=getEmptyTableSlot();try{setWasmTableEntry(s,e)}catch(n){if(!(n instanceof TypeError))throw n;var r=convertJsFunctionToWasm(e,t);setWasmTableEntry(s,r)}return functionsInTableMap.set(e,s),s},"addFunction"),updateGOT=__name((e,t)=>{for(var n in e)if(!isInternalSym(n)){var s=e[n];GOT[n]||=new WebAssembly.Global({value:"i32",mutable:!0}),(t||0==GOT[n].value)&&("function"==typeof s?GOT[n].value=addFunction(s):"number"==typeof s?GOT[n].value=s:err(`unhandled export type for '${n}': ${typeof s}`))}},"updateGOT"),relocateExports=__name((e,t,n)=>{var s={};for(var r in e){var i=e[r];"object"==typeof i&&(i=i.value),"number"==typeof i&&(i+=t),s[r]=i}return updateGOT(s,n),s},"relocateExports"),isSymbolDefined=__name(e=>{var t=wasmImports[e];return!(!t||t.stub)},"isSymbolDefined"),dynCall=__name((e,t,n=[],s=!1)=>{var r=getWasmTableEntry(t)(...n);function i(e){return e}return __name(i,"convert"),r},"dynCall"),stackSave=__name(()=>_emscripten_stack_get_current(),"stackSave"),stackRestore=__name(e=>__emscripten_stack_restore(e),"stackRestore"),createInvokeFunction=__name(e=>(t,...n)=>{var s=stackSave();try{return dynCall(e,t,n)}catch(t){if(stackRestore(s),t!==t+0)throw t;if(_setThrew(1,0),"j"==e[0])return 0n}},"createInvokeFunction"),resolveGlobalSymbol=__name((e,t=!1)=>{var n;return isSymbolDefined(e)?n=wasmImports[e]:e.startsWith("invoke_")&&(n=wasmImports[e]=createInvokeFunction(e.split("_")[1])),{sym:n,name:e}},"resolveGlobalSymbol"),onPostCtors=[],addOnPostCtor=__name(e=>onPostCtors.push(e),"addOnPostCtor"),UTF8ToString=__name((e,t,n)=>e?UTF8ArrayToString(HEAPU8,e,t,n):"","UTF8ToString"),loadWebAssemblyModule=__name((binary,flags,libName,localScope,handle)=>{var metadata=getDylinkMetadata(binary);function loadModule(){var memAlign=Math.pow(2,metadata.memoryAlign),memoryBase=metadata.memorySize?alignMemory(getMemory(metadata.memorySize+memAlign),memAlign):0,tableBase=metadata.tableSize?wasmTable.length:0,moduleExports;function resolveSymbol(e){var t=resolveGlobalSymbol(e).sym;return!t&&localScope&&(t=localScope[e]),t||(t=moduleExports[e]),t}handle&&(HEAP8[handle+8]=1,LE_HEAP_STORE_U32(4*(handle+12>>2),memoryBase),LE_HEAP_STORE_I32(4*(handle+16>>2),metadata.memorySize),LE_HEAP_STORE_U32(4*(handle+20>>2),tableBase),LE_HEAP_STORE_I32(4*(handle+24>>2),metadata.tableSize)),metadata.tableSize&&wasmTable.grow(metadata.tableSize),__name(resolveSymbol,"resolveSymbol");var proxyHandler={get(e,t){switch(t){case"__memory_base":return memoryBase;case"__table_base":return tableBase}var n;if(t in wasmImports&&!wasmImports[t].stub)return wasmImports[t];t in e||(e[t]=(...e)=>(n||=resolveSymbol(t),n(...e)));return e[t]}},proxy=new Proxy({},proxyHandler);currentModuleWeakSymbols=metadata.weakImports;var info={"GOT.mem":new Proxy({},GOTHandler),"GOT.func":new Proxy({},GOTHandler),env:proxy,wasi_snapshot_preview1:proxy};function postInstantiation(module,instance){function addEmAsm(addr,body){for(var args=[],arity=0;arity<16&&-1!=body.indexOf("$"+arity);arity++)args.push("$"+arity);args=args.join(",");var func=`(${args}) => { ${body} };`;ASM_CONSTS[start]=eval(func)}if(updateTableMap(tableBase,metadata.tableSize),moduleExports=relocateExports(instance.exports,memoryBase),flags.allowUndefined||reportUndefinedSymbols(),__name(addEmAsm,"addEmAsm"),"__start_em_asm"in moduleExports)for(var start=moduleExports.__start_em_asm,stop=moduleExports.__stop_em_asm;start<stop;){var jsString=UTF8ToString(start);addEmAsm(start,jsString),start=HEAPU8.indexOf(0,start)+1}function addEmJs(name,cSig,body){var jsArgs=[];if(cSig=cSig.slice(1,-1),"void"!=cSig)for(var i in cSig=cSig.split(","),cSig){var jsArg=cSig[i].split(" ").pop();jsArgs.push(jsArg.replace("*",""))}var func=`(${jsArgs}) => ${body};`;moduleExports[name]=eval(func)}for(var name in __name(addEmJs,"addEmJs"),moduleExports)if(name.startsWith("__em_js__")){var start=moduleExports[name],jsString=UTF8ToString(start),parts=jsString.split("<::>");addEmJs(name.replace("__em_js__",""),parts[0],parts[1]),delete moduleExports[name]}var applyRelocs=moduleExports.__wasm_apply_data_relocs;applyRelocs&&(runtimeInitialized?applyRelocs():__RELOC_FUNCS__.push(applyRelocs));var init=moduleExports.__wasm_call_ctors;return init&&(runtimeInitialized?init():addOnPostCtor(init)),moduleExports}if(__name(postInstantiation,"postInstantiation"),flags.loadAsync)return(async()=>{var e;return binary instanceof WebAssembly.Module?e=new WebAssembly.Instance(binary,info):({module:binary,instance:e}=await WebAssembly.instantiate(binary,info)),postInstantiation(binary,e)})();var module=binary instanceof WebAssembly.Module?binary:new WebAssembly.Module(binary),instance=new WebAssembly.Instance(module,info);return postInstantiation(module,instance)}return __name(loadModule,"loadModule"),flags={...flags,rpath:{parentLibPath:libName,paths:metadata.runtimePaths}},flags.loadAsync?metadata.neededDynlibs.reduce((e,t)=>e.then(()=>loadDynamicLibrary(t,flags,localScope)),Promise.resolve()).then(loadModule):(metadata.neededDynlibs.forEach(e=>loadDynamicLibrary(e,flags,localScope)),loadModule())},"loadWebAssemblyModule"),mergeLibSymbols=__name((e,t)=>{for(var[n,s]of Object.entries(e)){const e=__name(e=>{isSymbolDefined(e)||(wasmImports[e]=s)},"setImport");e(n);const t="__main_argc_argv";"main"==n&&e(t),n==t&&e("main")}},"mergeLibSymbols"),asyncLoad=__name(async e=>{var t=await readAsync(e);return new Uint8Array(t)},"asyncLoad");function loadDynamicLibrary(e,t={global:!0,nodelete:!0},n,s){var r=LDSO.loadedLibsByName[e];if(r)return t.global?r.global||(r.global=!0,mergeLibSymbols(r.exports,e)):n&&Object.assign(n,r.exports),t.nodelete&&r.refcount!==1/0&&(r.refcount=1/0),r.refcount++,s&&(LDSO.loadedLibsByHandle[s]=r),!t.loadAsync||Promise.resolve(!0);function i(){if(s){var n=LE_HEAP_LOAD_U32(4*(s+28>>2)),r=LE_HEAP_LOAD_U32(4*(s+32>>2));if(n&&r){var i=HEAP8.slice(n,n+r);return t.loadAsync?Promise.resolve(i):i}}var a=locateFile(e);if(t.loadAsync)return asyncLoad(a);if(!readBinary)throw new Error(`${a}: file not found, and synchronous loading of external files is not available`);return readBinary(a)}function a(){return t.loadAsync?i().then(r=>loadWebAssemblyModule(r,t,e,n,s)):loadWebAssemblyModule(i(),t,e,n,s)}function o(t){r.global?mergeLibSymbols(t,e):n&&Object.assign(n,t),r.exports=t}return(r=newDSO(e,s,"loading")).refcount=t.nodelete?1/0:1,r.global=t.global,__name(i,"loadLibData"),__name(a,"getExports"),__name(o,"moduleLoaded"),t.loadAsync?a().then(e=>(o(e),!0)):(o(a()),!0)}__name(loadDynamicLibrary,"loadDynamicLibrary");var reportUndefinedSymbols=__name(()=>{for(var[e,t]of Object.entries(GOT))if(0==t.value){var n=resolveGlobalSymbol(e,!0).sym;if(!n&&!t.required)continue;if("function"==typeof n)t.value=addFunction(n,n.sig);else{if("number"!=typeof n)throw new Error(`bad export type for '${e}': ${typeof n}`);t.value=n}}},"reportUndefinedSymbols"),runDependencies=0,dependenciesFulfilled=null,removeRunDependency=__name(e=>{if(runDependencies--,Module.monitorRunDependencies?.(runDependencies),0==runDependencies&&dependenciesFulfilled){var t=dependenciesFulfilled;dependenciesFulfilled=null,t()}},"removeRunDependency"),addRunDependency=__name(e=>{runDependencies++,Module.monitorRunDependencies?.(runDependencies)},"addRunDependency"),loadDylibs=__name(async()=>{if(dynamicLibraries.length){for(var e of(addRunDependency("loadDylibs"),dynamicLibraries))await loadDynamicLibrary(e,{loadAsync:!0,global:!0,nodelete:!0,allowUndefined:!0});reportUndefinedSymbols(),removeRunDependency("loadDylibs")}else reportUndefinedSymbols()},"loadDylibs"),noExitRuntime=!0;function setValue(e,t,n="i8"){switch(n.endsWith("*")&&(n="*"),n){case"i1":case"i8":HEAP8[e]=t;break;case"i16":LE_HEAP_STORE_I16(2*(e>>1),t);break;case"i32":LE_HEAP_STORE_I32(4*(e>>2),t);break;case"i64":LE_HEAP_STORE_I64(8*(e>>3),BigInt(t));break;case"float":LE_HEAP_STORE_F32(4*(e>>2),t);break;case"double":LE_HEAP_STORE_F64(8*(e>>3),t);break;case"*":LE_HEAP_STORE_U32(4*(e>>2),t);break;default:abort(`invalid type for setValue: ${n}`)}}__name(setValue,"setValue");var ___memory_base=new WebAssembly.Global({value:"i32",mutable:!1},1024),___stack_high=78240,___stack_low=12704,___stack_pointer=new WebAssembly.Global({value:"i32",mutable:!0},78240),___table_base=new WebAssembly.Global({value:"i32",mutable:!1},1),__abort_js=__name(()=>abort(""),"__abort_js");__abort_js.sig="v";var getHeapMax=__name(()=>2147483648,"getHeapMax"),growMemory=__name(e=>{var t=(e-wasmMemory.buffer.byteLength+65535)/65536|0;try{return wasmMemory.grow(t),updateMemoryViews(),1}catch(e){}},"growMemory"),_emscripten_resize_heap=__name(e=>{var t=HEAPU8.length;e>>>=0;var n=getHeapMax();if(e>n)return!1;for(var s=1;s<=4;s*=2){var r=t*(1+.2/s);r=Math.min(r,e+100663296);var i=Math.min(n,alignMemory(Math.max(e,r),65536));if(growMemory(i))return!0}return!1},"_emscripten_resize_heap");_emscripten_resize_heap.sig="ip";var _fd_close=__name(e=>52,"_fd_close");_fd_close.sig="ii";var INT53_MAX=9007199254740992,INT53_MIN=-9007199254740992,bigintToI53Checked=__name(e=>e<INT53_MIN||e>INT53_MAX?NaN:Number(e),"bigintToI53Checked");function _fd_seek(e,t,n,s){return t=bigintToI53Checked(t),70}__name(_fd_seek,"_fd_seek"),_fd_seek.sig="iijip";var printCharBuffers=[null,[],[]],printChar=__name((e,t)=>{var n=printCharBuffers[e];0===t||10===t?((1===e?out:err)(UTF8ArrayToString(n)),n.length=0):n.push(t)},"printChar"),_fd_write=__name((e,t,n,s)=>{for(var r=0,i=0;i<n;i++){var a=LE_HEAP_LOAD_U32(4*(t>>2)),o=LE_HEAP_LOAD_U32(4*(t+4>>2));t+=8;for(var c=0;c<o;c++)printChar(e,HEAPU8[a+c]);r+=o}return LE_HEAP_STORE_U32(4*(s>>2),r),0},"_fd_write");function _tree_sitter_log_callback(e,t){if(Module.currentLogCallback){const n=UTF8ToString(t);Module.currentLogCallback(n,0!==e)}}function _tree_sitter_parse_callback(e,t,n,s,r){const i=Module.currentParseCallback(t,{row:n,column:s});"string"==typeof i?(setValue(r,i.length,"i32"),stringToUTF16(i,e,10240)):setValue(r,0,"i32")}function _tree_sitter_progress_callback(e,t){return!!Module.currentProgressCallback&&Module.currentProgressCallback({currentOffset:e,hasError:t})}function _tree_sitter_query_progress_callback(e){return!!Module.currentQueryProgressCallback&&Module.currentQueryProgressCallback({currentOffset:e})}_fd_write.sig="iippp",__name(_tree_sitter_log_callback,"_tree_sitter_log_callback"),__name(_tree_sitter_parse_callback,"_tree_sitter_parse_callback"),__name(_tree_sitter_progress_callback,"_tree_sitter_progress_callback"),__name(_tree_sitter_query_progress_callback,"_tree_sitter_query_progress_callback");var runtimeKeepaliveCounter=0,keepRuntimeAlive=__name(()=>noExitRuntime||runtimeKeepaliveCounter>0,"keepRuntimeAlive"),_proc_exit=__name(e=>{EXITSTATUS=e,keepRuntimeAlive()||(Module.onExit?.(e),ABORT=!0),quit_(e,new ExitStatus(e))},"_proc_exit");_proc_exit.sig="vi";var exitJS=__name((e,t)=>{EXITSTATUS=e,_proc_exit(e)},"exitJS"),handleException=__name(e=>{if(e instanceof ExitStatus||"unwind"==e)return EXITSTATUS;quit_(1,e)},"handleException"),lengthBytesUTF8=__name(e=>{for(var t=0,n=0;n<e.length;++n){var s=e.charCodeAt(n);s<=127?t++:s<=2047?t+=2:s>=55296&&s<=57343?(t+=4,++n):t+=3}return t},"lengthBytesUTF8"),stringToUTF8Array=__name((e,t,n,s)=>{if(!(s>0))return 0;for(var r=n,i=n+s-1,a=0;a<e.length;++a){var o=e.codePointAt(a);if(o<=127){if(n>=i)break;t[n++]=o}else if(o<=2047){if(n+1>=i)break;t[n++]=192|o>>6,t[n++]=128|63&o}else if(o<=65535){if(n+2>=i)break;t[n++]=224|o>>12,t[n++]=128|o>>6&63,t[n++]=128|63&o}else{if(n+3>=i)break;t[n++]=240|o>>18,t[n++]=128|o>>12&63,t[n++]=128|o>>6&63,t[n++]=128|63&o,a++}}return t[n]=0,n-r},"stringToUTF8Array"),stringToUTF8=__name((e,t,n)=>stringToUTF8Array(e,HEAPU8,t,n),"stringToUTF8"),stackAlloc=__name(e=>__emscripten_stack_alloc(e),"stackAlloc"),stringToUTF8OnStack=__name(e=>{var t=lengthBytesUTF8(e)+1,n=stackAlloc(t);return stringToUTF8(e,n,t),n},"stringToUTF8OnStack"),AsciiToString=__name(e=>{for(var t="";;){var n=HEAPU8[e++];if(!n)return t;t+=String.fromCharCode(n)}},"AsciiToString"),stringToUTF16=__name((e,t,n)=>{if(n??=2147483647,n<2)return 0;for(var s=t,r=(n-=2)<2*e.length?n/2:e.length,i=0;i<r;++i){var a=e.charCodeAt(i);LE_HEAP_STORE_I16(2*(t>>1),a),t+=2}return LE_HEAP_STORE_I16(2*(t>>1),0),t-s},"stringToUTF16");function LE_HEAP_UPDATE(){HEAPU16.unsigned=e=>65535&e,HEAPU32.unsigned=e=>e>>>0}if(LE_ATOMICS_NATIVE_BYTE_ORDER=1===new Int8Array(new Int16Array([1]).buffer)[0]?[e=>e,e=>e,void 0,e=>e]:[e=>e,e=>((65280&e)<<8|(255&e)<<24)>>16,void 0,e=>e>>24&255|e>>8&65280|(65280&e)<<8|(255&e)<<24],__name(LE_HEAP_UPDATE,"LE_HEAP_UPDATE"),initMemory(),Module.noExitRuntime&&(noExitRuntime=Module.noExitRuntime),Module.print&&(out=Module.print),Module.printErr&&(err=Module.printErr),Module.dynamicLibraries&&(dynamicLibraries=Module.dynamicLibraries),Module.wasmBinary&&(wasmBinary=Module.wasmBinary),Module.arguments&&(arguments_=Module.arguments),Module.thisProgram&&(thisProgram=Module.thisProgram),Module.preInit)for("function"==typeof Module.preInit&&(Module.preInit=[Module.preInit]);Module.preInit.length>0;)Module.preInit.shift()();Module.setValue=setValue,Module.getValue=getValue,Module.UTF8ToString=UTF8ToString,Module.stringToUTF8=stringToUTF8,Module.lengthBytesUTF8=lengthBytesUTF8,Module.AsciiToString=AsciiToString,Module.stringToUTF16=stringToUTF16,Module.loadWebAssemblyModule=loadWebAssemblyModule,Module.LE_HEAP_STORE_I64=LE_HEAP_STORE_I64;var ASM_CONSTS={},_malloc,_calloc,_realloc,_free,_ts_range_edit,_memcmp,_ts_language_symbol_count,_ts_language_state_count,_ts_language_abi_version,_ts_language_name,_ts_language_field_count,_ts_language_next_state,_ts_language_symbol_name,_ts_language_symbol_for_name,_strncmp,_ts_language_symbol_type,_ts_language_field_name_for_id,_ts_lookahead_iterator_new,_ts_lookahead_iterator_delete,_ts_lookahead_iterator_reset_state,_ts_lookahead_iterator_reset,_ts_lookahead_iterator_next,_ts_lookahead_iterator_current_symbol,_ts_point_edit,_ts_parser_delete,_ts_parser_reset,_ts_parser_set_language,_ts_parser_set_included_ranges,_ts_query_new,_ts_query_delete,_iswspace,_iswalnum,_ts_query_pattern_count,_ts_query_capture_count,_ts_query_string_count,_ts_query_capture_name_for_id,_ts_query_capture_quantifier_for_id,_ts_query_string_value_for_id,_ts_query_predicates_for_pattern,_ts_query_start_byte_for_pattern,_ts_query_end_byte_for_pattern,_ts_query_is_pattern_rooted,_ts_query_is_pattern_non_local,_ts_query_is_pattern_guaranteed_at_step,_ts_query_disable_capture,_ts_query_disable_pattern,_ts_tree_copy,_ts_tree_delete,_ts_init,_ts_parser_new_wasm,_ts_parser_enable_logger_wasm,_ts_parser_parse_wasm,_ts_parser_included_ranges_wasm,_ts_language_type_is_named_wasm,_ts_language_type_is_visible_wasm,_ts_language_metadata_wasm,_ts_language_supertypes_wasm,_ts_language_subtypes_wasm,_ts_tree_root_node_wasm,_ts_tree_root_node_with_offset_wasm,_ts_tree_edit_wasm,_ts_tree_included_ranges_wasm,_ts_tree_get_changed_ranges_wasm,_ts_tree_cursor_new_wasm,_ts_tree_cursor_copy_wasm,_ts_tree_cursor_delete_wasm,_ts_tree_cursor_reset_wasm,_ts_tree_cursor_reset_to_wasm,_ts_tree_cursor_goto_first_child_wasm,_ts_tree_cursor_goto_last_child_wasm,_ts_tree_cursor_goto_first_child_for_index_wasm,_ts_tree_cursor_goto_first_child_for_position_wasm,_ts_tree_cursor_goto_next_sibling_wasm,_ts_tree_cursor_goto_previous_sibling_wasm,_ts_tree_cursor_goto_descendant_wasm,_ts_tree_cursor_goto_parent_wasm,_ts_tree_cursor_current_node_type_id_wasm,_ts_tree_cursor_current_node_state_id_wasm,_ts_tree_cursor_current_node_is_named_wasm,_ts_tree_cursor_current_node_is_missing_wasm,_ts_tree_cursor_current_node_id_wasm,_ts_tree_cursor_start_position_wasm,_ts_tree_cursor_end_position_wasm,_ts_tree_cursor_start_index_wasm,_ts_tree_cursor_end_index_wasm,_ts_tree_cursor_current_field_id_wasm,_ts_tree_cursor_current_depth_wasm,_ts_tree_cursor_current_descendant_index_wasm,_ts_tree_cursor_current_node_wasm,_ts_node_symbol_wasm,_ts_node_field_name_for_child_wasm,_ts_node_field_name_for_named_child_wasm,_ts_node_children_by_field_id_wasm,_ts_node_first_child_for_byte_wasm,_ts_node_first_named_child_for_byte_wasm,_ts_node_grammar_symbol_wasm,_ts_node_child_count_wasm,_ts_node_named_child_count_wasm,_ts_node_child_wasm,_ts_node_named_child_wasm,_ts_node_child_by_field_id_wasm,_ts_node_next_sibling_wasm,_ts_node_prev_sibling_wasm,_ts_node_next_named_sibling_wasm,_ts_node_prev_named_sibling_wasm,_ts_node_descendant_count_wasm,_ts_node_parent_wasm,_ts_node_child_with_descendant_wasm,_ts_node_descendant_for_index_wasm,_ts_node_named_descendant_for_index_wasm,_ts_node_descendant_for_position_wasm,_ts_node_named_descendant_for_position_wasm,_ts_node_start_point_wasm,_ts_node_end_point_wasm,_ts_node_start_index_wasm,_ts_node_end_index_wasm,_ts_node_to_string_wasm,_ts_node_children_wasm,_ts_node_named_children_wasm,_ts_node_descendants_of_type_wasm,_ts_node_is_named_wasm,_ts_node_has_changes_wasm,_ts_node_has_error_wasm,_ts_node_is_error_wasm,_ts_node_is_missing_wasm,_ts_node_is_extra_wasm,_ts_node_parse_state_wasm,_ts_node_next_parse_state_wasm,_ts_query_matches_wasm,_ts_query_captures_wasm,_memset,_memcpy,_memmove,_iswalpha,_iswblank,_iswdigit,_iswlower,_iswupper,_iswxdigit,_memchr,_strlen,_strcmp,_strncat,_strncpy,_towlower,_towupper,_setThrew,__emscripten_stack_restore,__emscripten_stack_alloc,_emscripten_stack_get_current,___wasm_apply_data_relocs;function assignWasmExports(e){Module._malloc=_malloc=e.malloc,Module._calloc=_calloc=e.calloc,Module._realloc=_realloc=e.realloc,Module._free=_free=e.free,Module._ts_range_edit=_ts_range_edit=e.ts_range_edit,Module._memcmp=_memcmp=e.memcmp,Module._ts_language_symbol_count=_ts_language_symbol_count=e.ts_language_symbol_count,Module._ts_language_state_count=_ts_language_state_count=e.ts_language_state_count,Module._ts_language_abi_version=_ts_language_abi_version=e.ts_language_abi_version,Module._ts_language_name=_ts_language_name=e.ts_language_name,Module._ts_language_field_count=_ts_language_field_count=e.ts_language_field_count,Module._ts_language_next_state=_ts_language_next_state=e.ts_language_next_state,Module._ts_language_symbol_name=_ts_language_symbol_name=e.ts_language_symbol_name,Module._ts_language_symbol_for_name=_ts_language_symbol_for_name=e.ts_language_symbol_for_name,Module._strncmp=_strncmp=e.strncmp,Module._ts_language_symbol_type=_ts_language_symbol_type=e.ts_language_symbol_type,Module._ts_language_field_name_for_id=_ts_language_field_name_for_id=e.ts_language_field_name_for_id,Module._ts_lookahead_iterator_new=_ts_lookahead_iterator_new=e.ts_lookahead_iterator_new,Module._ts_lookahead_iterator_delete=_ts_lookahead_iterator_delete=e.ts_lookahead_iterator_delete,Module._ts_lookahead_iterator_reset_state=_ts_lookahead_iterator_reset_state=e.ts_lookahead_iterator_reset_state,Module._ts_lookahead_iterator_reset=_ts_lookahead_iterator_reset=e.ts_lookahead_iterator_reset,Module._ts_lookahead_iterator_next=_ts_lookahead_iterator_next=e.ts_lookahead_iterator_next,Module._ts_lookahead_iterator_current_symbol=_ts_lookahead_iterator_current_symbol=e.ts_lookahead_iterator_current_symbol,Module._ts_point_edit=_ts_point_edit=e.ts_point_edit,Module._ts_parser_delete=_ts_parser_delete=e.ts_parser_delete,Module._ts_parser_reset=_ts_parser_reset=e.ts_parser_reset,Module._ts_parser_set_language=_ts_parser_set_language=e.ts_parser_set_language,Module._ts_parser_set_included_ranges=_ts_parser_set_included_ranges=e.ts_parser_set_included_ranges,Module._ts_query_new=_ts_query_new=e.ts_query_new,Module._ts_query_delete=_ts_query_delete=e.ts_query_delete,Module._iswspace=_iswspace=e.iswspace,Module._iswalnum=_iswalnum=e.iswalnum,Module._ts_query_pattern_count=_ts_query_pattern_count=e.ts_query_pattern_count,Module._ts_query_capture_count=_ts_query_capture_count=e.ts_query_capture_count,Module._ts_query_string_count=_ts_query_string_count=e.ts_query_string_count,Module._ts_query_capture_name_for_id=_ts_query_capture_name_for_id=e.ts_query_capture_name_for_id,Module._ts_query_capture_quantifier_for_id=_ts_query_capture_quantifier_for_id=e.ts_query_capture_quantifier_for_id,Module._ts_query_string_value_for_id=_ts_query_string_value_for_id=e.ts_query_string_value_for_id,Module._ts_query_predicates_for_pattern=_ts_query_predicates_for_pattern=e.ts_query_predicates_for_pattern,Module._ts_query_start_byte_for_pattern=_ts_query_start_byte_for_pattern=e.ts_query_start_byte_for_pattern,Module._ts_query_end_byte_for_pattern=_ts_query_end_byte_for_pattern=e.ts_query_end_byte_for_pattern,Module._ts_query_is_pattern_rooted=_ts_query_is_pattern_rooted=e.ts_query_is_pattern_rooted,Module._ts_query_is_pattern_non_local=_ts_query_is_pattern_non_local=e.ts_query_is_pattern_non_local,Module._ts_query_is_pattern_guaranteed_at_step=_ts_query_is_pattern_guaranteed_at_step=e.ts_query_is_pattern_guaranteed_at_step,Module._ts_query_disable_capture=_ts_query_disable_capture=e.ts_query_disable_capture,Module._ts_query_disable_pattern=_ts_query_disable_pattern=e.ts_query_disable_pattern,Module._ts_tree_copy=_ts_tree_copy=e.ts_tree_copy,Module._ts_tree_delete=_ts_tree_delete=e.ts_tree_delete,Module._ts_init=_ts_init=e.ts_init,Module._ts_parser_new_wasm=_ts_parser_new_wasm=e.ts_parser_new_wasm,Module._ts_parser_enable_logger_wasm=_ts_parser_enable_logger_wasm=e.ts_parser_enable_logger_wasm,Module._ts_parser_parse_wasm=_ts_parser_parse_wasm=e.ts_parser_parse_wasm,Module._ts_parser_included_ranges_wasm=_ts_parser_included_ranges_wasm=e.ts_parser_included_ranges_wasm,Module._ts_language_type_is_named_wasm=_ts_language_type_is_named_wasm=e.ts_language_type_is_named_wasm,Module._ts_language_type_is_visible_wasm=_ts_language_type_is_visible_wasm=e.ts_language_type_is_visible_wasm,Module._ts_language_metadata_wasm=_ts_language_metadata_wasm=e.ts_language_metadata_wasm,Module._ts_language_supertypes_wasm=_ts_language_supertypes_wasm=e.ts_language_supertypes_wasm,Module._ts_language_subtypes_wasm=_ts_language_subtypes_wasm=e.ts_language_subtypes_wasm,Module._ts_tree_root_node_wasm=_ts_tree_root_node_wasm=e.ts_tree_root_node_wasm,Module._ts_tree_root_node_with_offset_wasm=_ts_tree_root_node_with_offset_wasm=e.ts_tree_root_node_with_offset_wasm,Module._ts_tree_edit_wasm=_ts_tree_edit_wasm=e.ts_tree_edit_wasm,Module._ts_tree_included_ranges_wasm=_ts_tree_included_ranges_wasm=e.ts_tree_included_ranges_wasm,Module._ts_tree_get_changed_ranges_wasm=_ts_tree_get_changed_ranges_wasm=e.ts_tree_get_changed_ranges_wasm,Module._ts_tree_cursor_new_wasm=_ts_tree_cursor_new_wasm=e.ts_tree_cursor_new_wasm,Module._ts_tree_cursor_copy_wasm=_ts_tree_cursor_copy_wasm=e.ts_tree_cursor_copy_wasm,Module._ts_tree_cursor_delete_wasm=_ts_tree_cursor_delete_wasm=e.ts_tree_cursor_delete_wasm,Module._ts_tree_cursor_reset_wasm=_ts_tree_cursor_reset_wasm=e.ts_tree_cursor_reset_wasm,Module._ts_tree_cursor_reset_to_wasm=_ts_tree_cursor_reset_to_wasm=e.ts_tree_cursor_reset_to_wasm,Module._ts_tree_cursor_goto_first_child_wasm=_ts_tree_cursor_goto_first_child_wasm=e.ts_tree_cursor_goto_first_child_wasm,Module._ts_tree_cursor_goto_last_child_wasm=_ts_tree_cursor_goto_last_child_wasm=e.ts_tree_cursor_goto_last_child_wasm,Module._ts_tree_cursor_goto_first_child_for_index_wasm=_ts_tree_cursor_goto_first_child_for_index_wasm=e.ts_tree_cursor_goto_first_child_for_index_wasm,Module._ts_tree_cursor_goto_first_child_for_position_wasm=_ts_tree_cursor_goto_first_child_for_position_wasm=e.ts_tree_cursor_goto_first_child_for_position_wasm,Module._ts_tree_cursor_goto_next_sibling_wasm=_ts_tree_cursor_goto_next_sibling_wasm=e.ts_tree_cursor_goto_next_sibling_wasm,Module._ts_tree_cursor_goto_previous_sibling_wasm=_ts_tree_cursor_goto_previous_sibling_wasm=e.ts_tree_cursor_goto_previous_sibling_wasm,Module._ts_tree_cursor_goto_descendant_wasm=_ts_tree_cursor_goto_descendant_wasm=e.ts_tree_cursor_goto_descendant_wasm,Module._ts_tree_cursor_goto_parent_wasm=_ts_tree_cursor_goto_parent_wasm=e.ts_tree_cursor_goto_parent_wasm,Module._ts_tree_cursor_current_node_type_id_wasm=_ts_tree_cursor_current_node_type_id_wasm=e.ts_tree_cursor_current_node_type_id_wasm,Module._ts_tree_cursor_current_node_state_id_wasm=_ts_tree_cursor_current_node_state_id_wasm=e.ts_tree_cursor_current_node_state_id_wasm,Module._ts_tree_cursor_current_node_is_named_wasm=_ts_tree_cursor_current_node_is_named_wasm=e.ts_tree_cursor_current_node_is_named_wasm,Module._ts_tree_cursor_current_node_is_missing_wasm=_ts_tree_cursor_current_node_is_missing_wasm=e.ts_tree_cursor_current_node_is_missing_wasm,Module._ts_tree_cursor_current_node_id_wasm=_ts_tree_cursor_current_node_id_wasm=e.ts_tree_cursor_current_node_id_wasm,Module._ts_tree_cursor_start_position_wasm=_ts_tree_cursor_start_position_wasm=e.ts_tree_cursor_start_position_wasm,Module._ts_tree_cursor_end_position_wasm=_ts_tree_cursor_end_position_wasm=e.ts_tree_cursor_end_position_wasm,Module._ts_tree_cursor_start_index_wasm=_ts_tree_cursor_start_index_wasm=e.ts_tree_cursor_start_index_wasm,Module._ts_tree_cursor_end_index_wasm=_ts_tree_cursor_end_index_wasm=e.ts_tree_cursor_end_index_wasm,Module._ts_tree_cursor_current_field_id_wasm=_ts_tree_cursor_current_field_id_wasm=e.ts_tree_cursor_current_field_id_wasm,Module._ts_tree_cursor_current_depth_wasm=_ts_tree_cursor_current_depth_wasm=e.ts_tree_cursor_current_depth_wasm,Module._ts_tree_cursor_current_descendant_index_wasm=_ts_tree_cursor_current_descendant_index_wasm=e.ts_tree_cursor_current_descendant_index_wasm,Module._ts_tree_cursor_current_node_wasm=_ts_tree_cursor_current_node_wasm=e.ts_tree_cursor_current_node_wasm,Module._ts_node_symbol_wasm=_ts_node_symbol_wasm=e.ts_node_symbol_wasm,Module._ts_node_field_name_for_child_wasm=_ts_node_field_name_for_child_wasm=e.ts_node_field_name_for_child_wasm,Module._ts_node_field_name_for_named_child_wasm=_ts_node_field_name_for_named_child_wasm=e.ts_node_field_name_for_named_child_wasm,Module._ts_node_children_by_field_id_wasm=_ts_node_children_by_field_id_wasm=e.ts_node_children_by_field_id_wasm,Module._ts_node_first_child_for_byte_wasm=_ts_node_first_child_for_byte_wasm=e.ts_node_first_child_for_byte_wasm,Module._ts_node_first_named_child_for_byte_wasm=_ts_node_first_named_child_for_byte_wasm=e.ts_node_first_named_child_for_byte_wasm,Module._ts_node_grammar_symbol_wasm=_ts_node_grammar_symbol_wasm=e.ts_node_grammar_symbol_wasm,Module._ts_node_child_count_wasm=_ts_node_child_count_wasm=e.ts_node_child_count_wasm,Module._ts_node_named_child_count_wasm=_ts_node_named_child_count_wasm=e.ts_node_named_child_count_wasm,Module._ts_node_child_wasm=_ts_node_child_wasm=e.ts_node_child_wasm,Module._ts_node_named_child_wasm=_ts_node_named_child_wasm=e.ts_node_named_child_wasm,Module._ts_node_child_by_field_id_wasm=_ts_node_child_by_field_id_wasm=e.ts_node_child_by_field_id_wasm,Module._ts_node_next_sibling_wasm=_ts_node_next_sibling_wasm=e.ts_node_next_sibling_wasm,Module._ts_node_prev_sibling_wasm=_ts_node_prev_sibling_wasm=e.ts_node_prev_sibling_wasm,Module._ts_node_next_named_sibling_wasm=_ts_node_next_named_sibling_wasm=e.ts_node_next_named_sibling_wasm,Module._ts_node_prev_named_sibling_wasm=_ts_node_prev_named_sibling_wasm=e.ts_node_prev_named_sibling_wasm,Module._ts_node_descendant_count_wasm=_ts_node_descendant_count_wasm=e.ts_node_descendant_count_wasm,Module._ts_node_parent_wasm=_ts_node_parent_wasm=e.ts_node_parent_wasm,Module._ts_node_child_with_descendant_wasm=_ts_node_child_with_descendant_wasm=e.ts_node_child_with_descendant_wasm,Module._ts_node_descendant_for_index_wasm=_ts_node_descendant_for_index_wasm=e.ts_node_descendant_for_index_wasm,Module._ts_node_named_descendant_for_index_wasm=_ts_node_named_descendant_for_index_wasm=e.ts_node_named_descendant_for_index_wasm,Module._ts_node_descendant_for_position_wasm=_ts_node_descendant_for_position_wasm=e.ts_node_descendant_for_position_wasm,Module._ts_node_named_descendant_for_position_wasm=_ts_node_named_descendant_for_position_wasm=e.ts_node_named_descendant_for_position_wasm,Module._ts_node_start_point_wasm=_ts_node_start_point_wasm=e.ts_node_start_point_wasm,Module._ts_node_end_point_wasm=_ts_node_end_point_wasm=e.ts_node_end_point_wasm,Module._ts_node_start_index_wasm=_ts_node_start_index_wasm=e.ts_node_start_index_wasm,Module._ts_node_end_index_wasm=_ts_node_end_index_wasm=e.ts_node_end_index_wasm,Module._ts_node_to_string_wasm=_ts_node_to_string_wasm=e.ts_node_to_string_wasm,Module._ts_node_children_wasm=_ts_node_children_wasm=e.ts_node_children_wasm,Module._ts_node_named_children_wasm=_ts_node_named_children_wasm=e.ts_node_named_children_wasm,Module._ts_node_descendants_of_type_wasm=_ts_node_descendants_of_type_wasm=e.ts_node_descendants_of_type_wasm,Module._ts_node_is_named_wasm=_ts_node_is_named_wasm=e.ts_node_is_named_wasm,Module._ts_node_has_changes_wasm=_ts_node_has_changes_wasm=e.ts_node_has_changes_wasm,Module._ts_node_has_error_wasm=_ts_node_has_error_wasm=e.ts_node_has_error_wasm,Module._ts_node_is_error_wasm=_ts_node_is_error_wasm=e.ts_node_is_error_wasm,Module._ts_node_is_missing_wasm=_ts_node_is_missing_wasm=e.ts_node_is_missing_wasm,Module._ts_node_is_extra_wasm=_ts_node_is_extra_wasm=e.ts_node_is_extra_wasm,Module._ts_node_parse_state_wasm=_ts_node_parse_state_wasm=e.ts_node_parse_state_wasm,Module._ts_node_next_parse_state_wasm=_ts_node_next_parse_state_wasm=e.ts_node_next_parse_state_wasm,Module._ts_query_matches_wasm=_ts_query_matches_wasm=e.ts_query_matches_wasm,Module._ts_query_captures_wasm=_ts_query_captures_wasm=e.ts_query_captures_wasm,Module._memset=_memset=e.memset,Module._memcpy=_memcpy=e.memcpy,Module._memmove=_memmove=e.memmove,Module._iswalpha=_iswalpha=e.iswalpha,Module._iswblank=_iswblank=e.iswblank,Module._iswdigit=_iswdigit=e.iswdigit,Module._iswlower=_iswlower=e.iswlower,Module._iswupper=_iswupper=e.iswupper,Module._iswxdigit=_iswxdigit=e.iswxdigit,Module._memchr=_memchr=e.memchr,Module._strlen=_strlen=e.strlen,Module._strcmp=_strcmp=e.strcmp,Module._strncat=_strncat=e.strncat,Module._strncpy=_strncpy=e.strncpy,Module._towlower=_towlower=e.towlower,Module._towupper=_towupper=e.towupper,_setThrew=e.setThrew,__emscripten_stack_restore=e._emscripten_stack_restore,__emscripten_stack_alloc=e._emscripten_stack_alloc,_emscripten_stack_get_current=e.emscripten_stack_get_current,___wasm_apply_data_relocs=e.__wasm_apply_data_relocs}__name(assignWasmExports,"assignWasmExports");var wasmImports={__heap_base:___heap_base,__indirect_function_table:wasmTable,__memory_base:___memory_base,__stack_high:___stack_high,__stack_low:___stack_low,__stack_pointer:___stack_pointer,__table_base:___table_base,_abort_js:__abort_js,emscripten_resize_heap:_emscripten_resize_heap,fd_close:_fd_close,fd_seek:_fd_seek,fd_write:_fd_write,memory:wasmMemory,tree_sitter_log_callback:_tree_sitter_log_callback,tree_sitter_parse_callback:_tree_sitter_parse_callback,tree_sitter_progress_callback:_tree_sitter_progress_callback,tree_sitter_query_progress_callback:_tree_sitter_query_progress_callback},wasmExports;function callMain(e=[]){var t=resolveGlobalSymbol("main").sym;if(t){e.unshift(thisProgram);var n=e.length,s=stackAlloc(4*(n+1)),r=s;e.forEach(e=>{LE_HEAP_STORE_U32(4*(r>>2),stringToUTF8OnStack(e)),r+=4}),LE_HEAP_STORE_U32(4*(r>>2),0);try{var i=t(n,s);return exitJS(i,!0),i}catch(e){return handleException(e)}}}function run(e=arguments_){function t(){(Module.calledRun=!0,ABORT)||(initRuntime(),preMain(),readyPromiseResolve?.(Module),Module.onRuntimeInitialized?.(),Module.noInitialRun||!1||callMain(e),postRun())}runDependencies>0?dependenciesFulfilled=run:(preRun(),runDependencies>0?dependenciesFulfilled=run:(__name(t,"doRun"),Module.setStatus?(Module.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>Module.setStatus(""),1),t()},1)):t()))}return __name(callMain,"callMain"),__name(run,"run"),wasmExports=await createWasm(),run(),moduleRtn=runtimeInitialized?Module:new Promise((e,t)=>{readyPromiseResolve=e,readyPromiseReject=t}),moduleRtn}__name(Module2,"Module");var web_tree_sitter_default=Module2,Module3=null,TRANSFER_BUFFER,LANGUAGE_VERSION,MIN_COMPATIBLE_VERSION;async function initializeBinding(e){return Module3??=await web_tree_sitter_default(e)}function checkModule(){return!!Module3}__name(initializeBinding,"initializeBinding"),__name(checkModule,"checkModule");var Parser=class{static{__name(this,"Parser")}0=0;1=0;logCallback=null;language=null;static async init(e){setModule(await initializeBinding(e)),TRANSFER_BUFFER=C._ts_init(),LANGUAGE_VERSION=C.getValue(TRANSFER_BUFFER,"i32"),MIN_COMPATIBLE_VERSION=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32")}constructor(){this.initialize()}initialize(){if(!checkModule())throw new Error("cannot construct a Parser before calling `init()`");C._ts_parser_new_wasm(),this[0]=C.getValue(TRANSFER_BUFFER,"i32"),this[1]=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32")}delete(){C._ts_parser_delete(this[0]),C._free(this[1]),this[0]=0,this[1]=0}setLanguage(e){let t;if(e){if(e.constructor!==Language)throw new Error("Argument must be a Language");{t=e[0];const n=C._ts_language_abi_version(t);if(n<MIN_COMPATIBLE_VERSION||LANGUAGE_VERSION<n)throw new Error(`Incompatible language version ${n}. Compatibility range ${MIN_COMPATIBLE_VERSION} through ${LANGUAGE_VERSION}.`);this.language=e}}else t=0,this.language=null;return C._ts_parser_set_language(this[0],t),this}parse(e,t,n){if("string"==typeof e)C.currentParseCallback=t=>e.slice(t);else{if("function"!=typeof e)throw new Error("Argument must be a string or a function");C.currentParseCallback=e}C.currentProgressCallback=n?.progressCallback?n.progressCallback:null,this.logCallback?(C.currentLogCallback=this.logCallback,C._ts_parser_enable_logger_wasm(this[0],1)):(C.currentLogCallback=null,C._ts_parser_enable_logger_wasm(this[0],0));let s=0,r=0;if(n?.includedRanges){s=n.includedRanges.length,r=C._calloc(s,SIZE_OF_RANGE);let e=r;for(let t=0;t<s;t++)marshalRange(e,n.includedRanges[t]),e+=SIZE_OF_RANGE}const i=C._ts_parser_parse_wasm(this[0],this[1],t?t[0]:0,r,s);if(!i)return C.currentParseCallback=null,C.currentLogCallback=null,C.currentProgressCallback=null,null;if(!this.language)throw new Error("Parser must have a language to parse");const a=new Tree(INTERNAL,i,this.language,C.currentParseCallback);return C.currentParseCallback=null,C.currentLogCallback=null,C.currentProgressCallback=null,a}reset(){C._ts_parser_reset(this[0])}getIncludedRanges(){C._ts_parser_included_ranges_wasm(this[0]);const e=C.getValue(TRANSFER_BUFFER,"i32"),t=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),n=new Array(e);if(e>0){let s=t;for(let t=0;t<e;t++)n[t]=unmarshalRange(s),s+=SIZE_OF_RANGE;C._free(t)}return n}setLogger(e){if(e){if("function"!=typeof e)throw new Error("Logger callback must be a function");this.logCallback=e}else this.logCallback=null;return this}getLogger(){return this.logCallback}},PREDICATE_STEP_TYPE_CAPTURE=1,PREDICATE_STEP_TYPE_STRING=2,QUERY_WORD_REGEX=/[\w-]+/g,CaptureQuantifier={Zero:0,ZeroOrOne:1,ZeroOrMore:2,One:3,OneOrMore:4},isCaptureStep=__name(e=>"capture"===e.type,"isCaptureStep"),isStringStep=__name(e=>"string"===e.type,"isStringStep"),QueryErrorKind={Syntax:1,NodeName:2,FieldName:3,CaptureName:4,PatternStructure:5},QueryError=class e extends Error{constructor(t,n,s,r){super(e.formatMessage(t,n)),this.kind=t,this.info=n,this.index=s,this.length=r,this.name="QueryError"}static{__name(this,"QueryError")}static formatMessage(e,t){switch(e){case QueryErrorKind.NodeName:return`Bad node name '${t.word}'`;case QueryErrorKind.FieldName:return`Bad field name '${t.word}'`;case QueryErrorKind.CaptureName:return`Bad capture name @${t.word}`;case QueryErrorKind.PatternStructure:return`Bad pattern structure at offset ${t.suffix}`;case QueryErrorKind.Syntax:return`Bad syntax at offset ${t.suffix}`}}};function parseAnyPredicate(e,t,n,s){if(3!==e.length)throw new Error(`Wrong number of arguments to \`#${n}\` predicate. Expected 2, got ${e.length-1}`);if(!isCaptureStep(e[1]))throw new Error(`First argument of \`#${n}\` predicate must be a capture. Got "${e[1].value}"`);const r="eq?"===n||"any-eq?"===n,i=!n.startsWith("any-");if(isCaptureStep(e[2])){const n=e[1].name,a=e[2].name;s[t].push(e=>{const t=[],s=[];for(const r of e)r.name===n&&t.push(r.node),r.name===a&&s.push(r.node);const o=__name((e,t,n)=>n?e.text===t.text:e.text!==t.text,"compare");return i?t.every(e=>s.some(t=>o(e,t,r))):t.some(e=>s.some(t=>o(e,t,r)))})}else{const n=e[1].name,a=e[2].value,o=__name(e=>e.text===a,"matches"),c=__name(e=>e.text!==a,"doesNotMatch");s[t].push(e=>{const t=[];for(const s of e)s.name===n&&t.push(s.node);const s=r?o:c;return i?t.every(s):t.some(s)})}}function parseMatchPredicate(e,t,n,s){if(3!==e.length)throw new Error(`Wrong number of arguments to \`#${n}\` predicate. Expected 2, got ${e.length-1}.`);if("capture"!==e[1].type)throw new Error(`First argument of \`#${n}\` predicate must be a capture. Got "${e[1].value}".`);if("string"!==e[2].type)throw new Error(`Second argument of \`#${n}\` predicate must be a string. Got @${e[2].name}.`);const r="match?"===n||"any-match?"===n,i=!n.startsWith("any-"),a=e[1].name,o=new RegExp(e[2].value);s[t].push(e=>{const t=[];for(const n of e)n.name===a&&t.push(n.node.text);const n=__name((e,t)=>t?o.test(e):!o.test(e),"test");return 0===t.length?!r:i?t.every(e=>n(e,r)):t.some(e=>n(e,r))})}function parseAnyOfPredicate(e,t,n,s){if(e.length<2)throw new Error(`Wrong number of arguments to \`#${n}\` predicate. Expected at least 1. Got ${e.length-1}.`);if("capture"!==e[1].type)throw new Error(`First argument of \`#${n}\` predicate must be a capture. Got "${e[1].value}".`);const r="any-of?"===n,i=e[1].name,a=e.slice(2);if(!a.every(isStringStep))throw new Error(`Arguments to \`#${n}\` predicate must be strings.".`);const o=a.map(e=>e.value);s[t].push(e=>{const t=[];for(const n of e)n.name===i&&t.push(n.node.text);return 0===t.length?!r:t.every(e=>o.includes(e))===r})}function parseIsPredicate(e,t,n,s,r){if(e.length<2||e.length>3)throw new Error(`Wrong number of arguments to \`#${n}\` predicate. Expected 1 or 2. Got ${e.length-1}.`);if(!e.every(isStringStep))throw new Error(`Arguments to \`#${n}\` predicate must be strings.".`);const i="is?"===n?s:r;i[t]||(i[t]={}),i[t][e[1].value]=e[2]?.value??null}function parseSetDirective(e,t,n){if(e.length<2||e.length>3)throw new Error(`Wrong number of arguments to \`#set!\` predicate. Expected 1 or 2. Got ${e.length-1}.`);if(!e.every(isStringStep))throw new Error('Arguments to `#set!` predicate must be strings.".');n[t]||(n[t]={}),n[t][e[1].value]=e[2]?.value??null}function parsePattern(e,t,n,s,r,i,a,o,c,l,p){if(t===PREDICATE_STEP_TYPE_CAPTURE){const e=s[n];i.push({type:"capture",name:e})}else if(t===PREDICATE_STEP_TYPE_STRING)i.push({type:"string",value:r[n]});else if(i.length>0){if("string"!==i[0].type)throw new Error("Predicates must begin with a literal value");const t=i[0].value;switch(t){case"any-not-eq?":case"not-eq?":case"any-eq?":case"eq?":parseAnyPredicate(i,e,t,a);break;case"any-not-match?":case"not-match?":case"any-match?":case"match?":parseMatchPredicate(i,e,t,a);break;case"not-any-of?":case"any-of?":parseAnyOfPredicate(i,e,t,a);break;case"is?":case"is-not?":parseIsPredicate(i,e,t,l,p);break;case"set!":parseSetDirective(i,e,c);break;default:o[e].push({operator:t,operands:i.slice(1)})}i.length=0}}__name(parseAnyPredicate,"parseAnyPredicate"),__name(parseMatchPredicate,"parseMatchPredicate"),__name(parseAnyOfPredicate,"parseAnyOfPredicate"),__name(parseIsPredicate,"parseIsPredicate"),__name(parseSetDirective,"parseSetDirective"),__name(parsePattern,"parsePattern");var Query=class{static{__name(this,"Query")}0=0;exceededMatchLimit;textPredicates;captureNames;captureQuantifiers;predicates;setProperties;assertedProperties;refutedProperties;matchLimit;constructor(e,t){const n=C.lengthBytesUTF8(t),s=C._malloc(n+1);C.stringToUTF8(t,s,n+1);const r=C._ts_query_new(e[0],s,n,TRANSFER_BUFFER,TRANSFER_BUFFER+SIZE_OF_INT);if(!r){const e=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),n=C.getValue(TRANSFER_BUFFER,"i32"),r=C.UTF8ToString(s,n).length,i=t.slice(r,r+100).split("\n")[0],a=i.match(QUERY_WORD_REGEX)?.[0]??"";switch(C._free(s),e){case QueryErrorKind.Syntax:throw new QueryError(QueryErrorKind.Syntax,{suffix:`${r}: '${i}'...`},r,0);case QueryErrorKind.NodeName:case QueryErrorKind.FieldName:case QueryErrorKind.CaptureName:throw new QueryError(e,{word:a},r,a.length);case QueryErrorKind.PatternStructure:throw new QueryError(e,{suffix:`${r}: '${i}'...`},r,0)}}const i=C._ts_query_string_count(r),a=C._ts_query_capture_count(r),o=C._ts_query_pattern_count(r),c=new Array(a),l=new Array(o),p=new Array(i);for(let e=0;e<a;e++){const t=C._ts_query_capture_name_for_id(r,e,TRANSFER_BUFFER),n=C.getValue(TRANSFER_BUFFER,"i32");c[e]=C.UTF8ToString(t,n)}for(let e=0;e<o;e++){const t=new Array(a);for(let n=0;n<a;n++){const s=C._ts_query_capture_quantifier_for_id(r,e,n);t[n]=s}l[e]=t}for(let e=0;e<i;e++){const t=C._ts_query_string_value_for_id(r,e,TRANSFER_BUFFER),n=C.getValue(TRANSFER_BUFFER,"i32");p[e]=C.UTF8ToString(t,n)}const u=new Array(o),d=new Array(o),m=new Array(o),h=new Array(o),f=new Array(o);for(let e=0;e<o;e++){const t=C._ts_query_predicates_for_pattern(r,e,TRANSFER_BUFFER),n=C.getValue(TRANSFER_BUFFER,"i32");h[e]=[],f[e]=[];const s=new Array;let i=t;for(let t=0;t<n;t++){const t=C.getValue(i,"i32");i+=SIZE_OF_INT;const n=C.getValue(i,"i32");i+=SIZE_OF_INT,parsePattern(e,t,n,c,p,s,f,h,u,d,m)}Object.freeze(f[e]),Object.freeze(h[e]),Object.freeze(u[e]),Object.freeze(d[e]),Object.freeze(m[e])}C._free(s),this[0]=r,this.captureNames=c,this.captureQuantifiers=l,this.textPredicates=f,this.predicates=h,this.setProperties=u,this.assertedProperties=d,this.refutedProperties=m,this.exceededMatchLimit=!1}delete(){C._ts_query_delete(this[0]),this[0]=0}matches(e,t={}){const n=t.startPosition??ZERO_POINT,s=t.endPosition??ZERO_POINT,r=t.startIndex??0,i=t.endIndex??0,a=t.startContainingPosition??ZERO_POINT,o=t.endContainingPosition??ZERO_POINT,c=t.startContainingIndex??0,l=t.endContainingIndex??0,p=t.matchLimit??4294967295,u=t.maxStartDepth??4294967295,d=t.progressCallback;if("number"!=typeof p)throw new Error("Arguments must be numbers");if(this.matchLimit=p,0!==i&&r>i)throw new Error("`startIndex` cannot be greater than `endIndex`");if(s!==ZERO_POINT&&(n.row>s.row||n.row===s.row&&n.column>s.column))throw new Error("`startPosition` cannot be greater than `endPosition`");if(0!==l&&c>l)throw new Error("`startContainingIndex` cannot be greater than `endContainingIndex`");if(o!==ZERO_POINT&&(a.row>o.row||a.row===o.row&&a.column>o.column))throw new Error("`startContainingPosition` cannot be greater than `endContainingPosition`");d&&(C.currentQueryProgressCallback=d),marshalNode(e),C._ts_query_matches_wasm(this[0],e.tree[0],n.row,n.column,s.row,s.column,r,i,a.row,a.column,o.row,o.column,c,l,p,u);const m=C.getValue(TRANSFER_BUFFER,"i32"),h=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),f=C.getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),g=new Array(m);this.exceededMatchLimit=Boolean(f);let y=0,E=h;for(let t=0;t<m;t++){const t=C.getValue(E,"i32");E+=SIZE_OF_INT;const n=C.getValue(E,"i32");E+=SIZE_OF_INT;const s=new Array(n);if(E=unmarshalCaptures(this,e.tree,E,t,s),this.textPredicates[t].every(e=>e(s))){g[y]={patternIndex:t,captures:s};const e=this.setProperties[t];g[y].setProperties=e;const n=this.assertedProperties[t];g[y].assertedProperties=n;const r=this.refutedProperties[t];g[y].refutedProperties=r,y++}}return g.length=y,C._free(h),C.currentQueryProgressCallback=null,g}captures(e,t={}){const n=t.startPosition??ZERO_POINT,s=t.endPosition??ZERO_POINT,r=t.startIndex??0,i=t.endIndex??0,a=t.startContainingPosition??ZERO_POINT,o=t.endContainingPosition??ZERO_POINT,c=t.startContainingIndex??0,l=t.endContainingIndex??0,p=t.matchLimit??4294967295,u=t.maxStartDepth??4294967295,d=t.progressCallback;if("number"!=typeof p)throw new Error("Arguments must be numbers");if(this.matchLimit=p,0!==i&&r>i)throw new Error("`startIndex` cannot be greater than `endIndex`");if(s!==ZERO_POINT&&(n.row>s.row||n.row===s.row&&n.column>s.column))throw new Error("`startPosition` cannot be greater than `endPosition`");if(0!==l&&c>l)throw new Error("`startContainingIndex` cannot be greater than `endContainingIndex`");if(o!==ZERO_POINT&&(a.row>o.row||a.row===o.row&&a.column>o.column))throw new Error("`startContainingPosition` cannot be greater than `endContainingPosition`");d&&(C.currentQueryProgressCallback=d),marshalNode(e),C._ts_query_captures_wasm(this[0],e.tree[0],n.row,n.column,s.row,s.column,r,i,a.row,a.column,o.row,o.column,c,l,p,u);const m=C.getValue(TRANSFER_BUFFER,"i32"),h=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),f=C.getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),g=new Array;this.exceededMatchLimit=Boolean(f);const y=new Array;let E=h;for(let t=0;t<m;t++){const t=C.getValue(E,"i32");E+=SIZE_OF_INT;const n=C.getValue(E,"i32");E+=SIZE_OF_INT;const s=C.getValue(E,"i32");if(E+=SIZE_OF_INT,y.length=n,E=unmarshalCaptures(this,e.tree,E,t,y),this.textPredicates[t].every(e=>e(y))){const e=y[s],n=this.setProperties[t];e.setProperties=n;const r=this.assertedProperties[t];e.assertedProperties=r;const i=this.refutedProperties[t];e.refutedProperties=i,g.push(e)}}return C._free(h),C.currentQueryProgressCallback=null,g}predicatesForPattern(e){return this.predicates[e]}disableCapture(e){const t=C.lengthBytesUTF8(e),n=C._malloc(t+1);C.stringToUTF8(e,n,t+1),C._ts_query_disable_capture(this[0],n,t),C._free(n)}disablePattern(e){if(e>=this.predicates.length)throw new Error(`Pattern index is ${e} but the pattern count is ${this.predicates.length}`);C._ts_query_disable_pattern(this[0],e)}didExceedMatchLimit(){return this.exceededMatchLimit}startIndexForPattern(e){if(e>=this.predicates.length)throw new Error(`Pattern index is ${e} but the pattern count is ${this.predicates.length}`);return C._ts_query_start_byte_for_pattern(this[0],e)}endIndexForPattern(e){if(e>=this.predicates.length)throw new Error(`Pattern index is ${e} but the pattern count is ${this.predicates.length}`);return C._ts_query_end_byte_for_pattern(this[0],e)}patternCount(){return C._ts_query_pattern_count(this[0])}captureIndexForName(e){return this.captureNames.indexOf(e)}isPatternRooted(e){return 1===C._ts_query_is_pattern_rooted(this[0],e)}isPatternNonLocal(e){return 1===C._ts_query_is_pattern_non_local(this[0],e)}isPatternGuaranteedAtStep(e){return 1===C._ts_query_is_pattern_guaranteed_at_step(this[0],e)}}},928(e){"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')}};const __webpack_module_cache__={};function __webpack_require__(e){const t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;const n=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](n,n.exports,__webpack_require__),n.exports}__webpack_require__.cw=e=>{var t;return()=>{if(e){var n=e;e=0,t={exports:{}},n.call(t.exports,t,t.exports)}return t.exports}},(()=>{const e=Object.getPrototypeOf;let t;__webpack_require__.t=function(n,s){if(1&s&&(n=this(n)),8&s)return n;if("object"==typeof n&&n){if(4&s&&n.__esModule)return n;if(16&s&&"function"==typeof n.then)return n}const r=Object.create(null);__webpack_require__.r(r);const i={};t=t||[null,e({}),e([]),e(e)];for(var a=2&s&&n;("object"==typeof a||"function"==typeof a)&&!~t.indexOf(a);a=e(a))Object.getOwnPropertyNames(a).forEach(e=>i[e]=()=>n[e]);return i.default=()=>n,__webpack_require__.d(r,i),r}})(),__webpack_require__.d=(e,t)=>{if(Array.isArray(t))for(var n=0;n<t.length;){var s=t[n++],r=t[n++],i=0===r?{enumerable:!0,value:t[n++]}:{enumerable:!0,get:r};__webpack_require__.o(e,s)||Object.defineProperty(e,s,i)}else for(var s in t)__webpack_require__.o(t,s)&&!__webpack_require__.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.b="undefined"!=typeof document&&document.baseURI||self.location.href;let __webpack_exports__={};return(()=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{ARAZZO_LANGUAGE_ID:()=>"apidom",DEFAULT_DOCUMENT_VERSION:()=>1,Diagnostic:()=>xn,DiagnosticSeverity:()=>In,TextDocument:()=>kr,ValidateError:()=>Kr,createTextDocument:()=>Hr,defaultArazzoResolveOptions:()=>kFt,defaultLanguageServiceContext:()=>NFt,validate:()=>FFt,validateURI:()=>CFt});var e=__webpack_require__.cw(function(e,i){var d=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(i,"__esModule",{value:!0}),i.ProgressType=i.ProgressToken=i.createMessageConnection=i.NullLogger=i.ConnectionOptions=i.ConnectionStrategy=i.AbstractMessageBuffer=i.WriteableStreamMessageWriter=i.AbstractMessageWriter=i.MessageWriter=i.ReadableStreamMessageReader=i.AbstractMessageReader=i.MessageReader=i.SharedArrayReceiverStrategy=i.SharedArraySenderStrategy=i.CancellationToken=i.CancellationTokenSource=i.Emitter=i.Event=i.Disposable=i.LRUCache=i.Touch=i.LinkedMap=i.ParameterStructures=i.NotificationType9=i.NotificationType8=i.NotificationType7=i.NotificationType6=i.NotificationType5=i.NotificationType4=i.NotificationType3=i.NotificationType2=i.NotificationType1=i.NotificationType0=i.NotificationType=i.ErrorCodes=i.ResponseError=i.RequestType9=i.RequestType8=i.RequestType7=i.RequestType6=i.RequestType5=i.RequestType4=i.RequestType3=i.RequestType2=i.RequestType1=i.RequestType0=i.RequestType=i.Message=i.RAL=void 0,i.MessageStrategy=i.CancellationStrategy=i.CancellationSenderStrategy=i.RequestCancellationReceiverStrategy=i.IdCancellationReceiverStrategy=i.CancellationReceiverStrategy=i.ConnectionError=i.ConnectionErrors=i.LogTraceNotification=i.SetTraceNotification=i.TraceFormat=i.TraceValues=i.TraceValue=i.Trace=void 0;const h=p();Object.defineProperty(i,"Message",{enumerable:!0,get:function(){return h.Message}}),Object.defineProperty(i,"RequestType",{enumerable:!0,get:function(){return h.RequestType}}),Object.defineProperty(i,"RequestType0",{enumerable:!0,get:function(){return h.RequestType0}}),Object.defineProperty(i,"RequestType1",{enumerable:!0,get:function(){return h.RequestType1}}),Object.defineProperty(i,"RequestType2",{enumerable:!0,get:function(){return h.RequestType2}}),Object.defineProperty(i,"RequestType3",{enumerable:!0,get:function(){return h.RequestType3}}),Object.defineProperty(i,"RequestType4",{enumerable:!0,get:function(){return h.RequestType4}}),Object.defineProperty(i,"RequestType5",{enumerable:!0,get:function(){return h.RequestType5}}),Object.defineProperty(i,"RequestType6",{enumerable:!0,get:function(){return h.RequestType6}}),Object.defineProperty(i,"RequestType7",{enumerable:!0,get:function(){return h.RequestType7}}),Object.defineProperty(i,"RequestType8",{enumerable:!0,get:function(){return h.RequestType8}}),Object.defineProperty(i,"RequestType9",{enumerable:!0,get:function(){return h.RequestType9}}),Object.defineProperty(i,"ResponseError",{enumerable:!0,get:function(){return h.ResponseError}}),Object.defineProperty(i,"ErrorCodes",{enumerable:!0,get:function(){return h.ErrorCodes}}),Object.defineProperty(i,"NotificationType",{enumerable:!0,get:function(){return h.NotificationType}}),Object.defineProperty(i,"NotificationType0",{enumerable:!0,get:function(){return h.NotificationType0}}),Object.defineProperty(i,"NotificationType1",{enumerable:!0,get:function(){return h.NotificationType1}}),Object.defineProperty(i,"NotificationType2",{enumerable:!0,get:function(){return h.NotificationType2}}),Object.defineProperty(i,"NotificationType3",{enumerable:!0,get:function(){return h.NotificationType3}}),Object.defineProperty(i,"NotificationType4",{enumerable:!0,get:function(){return h.NotificationType4}}),Object.defineProperty(i,"NotificationType5",{enumerable:!0,get:function(){return h.NotificationType5}}),Object.defineProperty(i,"NotificationType6",{enumerable:!0,get:function(){return h.NotificationType6}}),Object.defineProperty(i,"NotificationType7",{enumerable:!0,get:function(){return h.NotificationType7}}),Object.defineProperty(i,"NotificationType8",{enumerable:!0,get:function(){return h.NotificationType8}}),Object.defineProperty(i,"NotificationType9",{enumerable:!0,get:function(){return h.NotificationType9}}),Object.defineProperty(i,"ParameterStructures",{enumerable:!0,get:function(){return h.ParameterStructures}});const f=a();Object.defineProperty(i,"LinkedMap",{enumerable:!0,get:function(){return f.LinkedMap}}),Object.defineProperty(i,"LRUCache",{enumerable:!0,get:function(){return f.LRUCache}}),Object.defineProperty(i,"Touch",{enumerable:!0,get:function(){return f.Touch}});const g=s();Object.defineProperty(i,"Disposable",{enumerable:!0,get:function(){return g.Disposable}});const y=r();Object.defineProperty(i,"Event",{enumerable:!0,get:function(){return y.Event}}),Object.defineProperty(i,"Emitter",{enumerable:!0,get:function(){return y.Emitter}});const E=t();Object.defineProperty(i,"CancellationTokenSource",{enumerable:!0,get:function(){return E.CancellationTokenSource}}),Object.defineProperty(i,"CancellationToken",{enumerable:!0,get:function(){return E.CancellationToken}});const b=m();Object.defineProperty(i,"SharedArraySenderStrategy",{enumerable:!0,get:function(){return b.SharedArraySenderStrategy}}),Object.defineProperty(i,"SharedArrayReceiverStrategy",{enumerable:!0,get:function(){return b.SharedArrayReceiverStrategy}});const _=c();Object.defineProperty(i,"MessageReader",{enumerable:!0,get:function(){return _.MessageReader}}),Object.defineProperty(i,"AbstractMessageReader",{enumerable:!0,get:function(){return _.AbstractMessageReader}}),Object.defineProperty(i,"ReadableStreamMessageReader",{enumerable:!0,get:function(){return _.ReadableStreamMessageReader}});const T=l();Object.defineProperty(i,"MessageWriter",{enumerable:!0,get:function(){return T.MessageWriter}}),Object.defineProperty(i,"AbstractMessageWriter",{enumerable:!0,get:function(){return T.AbstractMessageWriter}}),Object.defineProperty(i,"WriteableStreamMessageWriter",{enumerable:!0,get:function(){return T.WriteableStreamMessageWriter}});const v=o();Object.defineProperty(i,"AbstractMessageBuffer",{enumerable:!0,get:function(){return v.AbstractMessageBuffer}});const A=n();Object.defineProperty(i,"ConnectionStrategy",{enumerable:!0,get:function(){return A.ConnectionStrategy}}),Object.defineProperty(i,"ConnectionOptions",{enumerable:!0,get:function(){return A.ConnectionOptions}}),Object.defineProperty(i,"NullLogger",{enumerable:!0,get:function(){return A.NullLogger}}),Object.defineProperty(i,"createMessageConnection",{enumerable:!0,get:function(){return A.createMessageConnection}}),Object.defineProperty(i,"ProgressToken",{enumerable:!0,get:function(){return A.ProgressToken}}),Object.defineProperty(i,"ProgressType",{enumerable:!0,get:function(){return A.ProgressType}}),Object.defineProperty(i,"Trace",{enumerable:!0,get:function(){return A.Trace}}),Object.defineProperty(i,"TraceValue",{enumerable:!0,get:function(){return A.TraceValue}}),Object.defineProperty(i,"TraceFormat",{enumerable:!0,get:function(){return A.TraceFormat}}),Object.defineProperty(i,"SetTraceNotification",{enumerable:!0,get:function(){return A.SetTraceNotification}}),Object.defineProperty(i,"LogTraceNotification",{enumerable:!0,get:function(){return A.LogTraceNotification}}),Object.defineProperty(i,"ConnectionErrors",{enumerable:!0,get:function(){return A.ConnectionErrors}}),Object.defineProperty(i,"ConnectionError",{enumerable:!0,get:function(){return A.ConnectionError}}),Object.defineProperty(i,"CancellationReceiverStrategy",{enumerable:!0,get:function(){return A.CancellationReceiverStrategy}}),Object.defineProperty(i,"IdCancellationReceiverStrategy",{enumerable:!0,get:function(){return A.IdCancellationReceiverStrategy}}),Object.defineProperty(i,"RequestCancellationReceiverStrategy",{enumerable:!0,get:function(){return A.RequestCancellationReceiverStrategy}}),Object.defineProperty(i,"CancellationSenderStrategy",{enumerable:!0,get:function(){return A.CancellationSenderStrategy}}),Object.defineProperty(i,"CancellationStrategy",{enumerable:!0,get:function(){return A.CancellationStrategy}}),Object.defineProperty(i,"MessageStrategy",{enumerable:!0,get:function(){return A.MessageStrategy}}),Object.defineProperty(i,"TraceValues",{enumerable:!0,get:function(){return A.TraceValues}});const S=d(u());i.RAL=S.default}),t=__webpack_require__.cw(function(e,t){var n,s=this&&this.__createBinding||(Object.create?function(e,t,n,s){void 0===s&&(s=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,s,r)}:function(e,t,n,s){void 0===s&&(s=n),e[s]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||(n=function(e){return n=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},n(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=n(e),i=0;i<r.length;i++)"default"!==r[i]&&s(t,e,r[i]);return a(t,e),t}),c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CancellationTokenSource=t.CancellationToken=void 0;const l=c(u()),p=o(i()),d=r();var m;!function(e){e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:d.Event.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:d.Event.None}),e.is=function(t){const n=t;return n&&(n===e.None||n===e.Cancelled||p.boolean(n.isCancellationRequested)&&!!n.onCancellationRequested)}}(m||(t.CancellationToken=m={}));const h=Object.freeze(function(e,t){const n=(0,l.default)().timer.setTimeout(e.bind(t),0);return{dispose(){n.dispose()}}});class f{_isCancelled=!1;_emitter;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?h:(this._emitter||(this._emitter=new d.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}}t.CancellationTokenSource=class{_token;get token(){return this._token||(this._token=new f),this._token}cancel(){this._token?this._token.cancel():this._token=m.Cancelled}dispose(){this._token?this._token instanceof f&&this._token.dispose():this._token=m.None}}}),n=__webpack_require__.cw(function(e,n){var s,o=this&&this.__createBinding||(Object.create?function(e,t,n,s){void 0===s&&(s=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,s,r)}:function(e,t,n,s){void 0===s&&(s=n),e[s]=t[n]}),c=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||(s=function(e){return s=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},s(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=s(e),r=0;r<n.length;r++)"default"!==n[r]&&o(t,e,n[r]);return c(t,e),t}),d=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.ConnectionOptions=n.MessageStrategy=n.CancellationStrategy=n.CancellationSenderStrategy=n.CancellationReceiverStrategy=n.RequestCancellationReceiverStrategy=n.IdCancellationReceiverStrategy=n.ConnectionStrategy=n.ConnectionError=n.ConnectionErrors=n.LogTraceNotification=n.SetTraceNotification=n.TraceFormat=n.TraceValues=n.TraceValue=n.Trace=n.NullLogger=n.ProgressType=n.ProgressToken=void 0,n.createMessageConnection=function(e,t,s,r){const i=void 0!==s?s:n.NullLogger;let a=0,o=0,c=0;const l="2.0",p=r?.maxParallelism??-1;let u,d=0;const S=new Map;let w;const N=new Map,F=new Map;let R,L,U=new g.LinkedMap,Y=new Map,B=new Set,$=new Map,q=A.Off,V=I.Text,H=M.New;const Q=new y.Emitter,G=new y.Emitter,W=new y.Emitter,J=new y.Emitter,K=new y.Emitter,z=r&&r.cancellationStrategy?r.cancellationStrategy:k.Message;function Z(e){}function X(){return H===M.Listening}function ee(){return H===M.Closed}function te(){return H===M.Disposed}function ne(){H!==M.New&&H!==M.Listening||(H=M.Closed,G.fire(void 0))}function se(e){if(null===e)throw new Error("Can't send requests with id null since the response can't be correlated.");return"req-"+e.toString()}function re(e,t){var n;f.Message.isRequest(t)?e.set(se(t.id),t):f.Message.isResponse(t)?-1===p?e.set(null===(n=t.id)?"res-unknown-"+(++c).toString():"res-"+n.toString(),t):ce(t):e.set("not-"+(++o).toString(),t)}function ie(){R||0===U.size||-1!==p&&d>=p||(R=(0,m.default)().timer.setImmediate(async()=>{if(R=void 0,0===U.size)return;if(-1!==p&&d>=p)return;const e=U.shift();let t;try{d++;const n=r?.messageStrategy;t=C.is(n)?n.handleMessage(e,ae):ae(e)}catch(e){i.error(`Processing message queue failed: ${e.toString()}`)}finally{t instanceof Promise?t.then(()=>{d--,ie()}).catch(e=>{i.error(`Processing message queue failed: ${e.toString()}`)}):d--,ie()}}))}async function ae(e){return f.Message.isRequest(e)?async function(e){if(te())return Promise.resolve();function n(n,s,r){const i={jsonrpc:l,id:e.id};return n instanceof f.ResponseError?i.error=n.toJson():i.result=void 0===n?null:n,pe(i,s,r),t.write(i)}function s(n,s,r){const i={jsonrpc:l,id:e.id,error:n.toJson()};return pe(i,s,r),t.write(i)}!function(e){if(q===A.Off||!L)return;if(V===I.Text){let t;q!==A.Verbose&&q!==A.Compact||!e.params||(t=`Params: ${le(e.params)}`),L.log(`Received request '${e.method} - (${e.id})'.`,t)}else de("receive-request",e)}(e);const r=S.get(e.method);let i,a;r&&(i=r.type,a=r.handler);const o=Date.now();if(a||u){const t=e.id??String(Date.now()),r=x.is(z.receiver)?z.receiver.createCancellationTokenSource(t):z.receiver.createCancellationTokenSource(e);null!==e.id&&B.has(e.id)&&r.cancel(),null!==e.id&&$.set(t,r);try{let t;if(a)if(void 0===e.params){if(void 0!==i&&0!==i.numberOfParams)return s(new f.ResponseError(f.ErrorCodes.InvalidParams,`Request ${e.method} defines ${i.numberOfParams} params but received none.`),e.method,o);t=a(r.token)}else if(Array.isArray(e.params)){if(void 0!==i&&i.parameterStructures===f.ParameterStructures.byName)return s(new f.ResponseError(f.ErrorCodes.InvalidParams,`Request ${e.method} defines parameters by name but received parameters by position`),e.method,o);t=a(...e.params,r.token)}else{if(void 0!==i&&i.parameterStructures===f.ParameterStructures.byPosition)return s(new f.ResponseError(f.ErrorCodes.InvalidParams,`Request ${e.method} defines parameters by position but received parameters by name`),e.method,o);t=a(e.params,r.token)}else u&&(t=u(e.method,e.params,r.token));const c=await t;await n(c,e.method,o)}catch(t){t instanceof f.ResponseError?await n(t,e.method,o):t&&h.string(t.message)?await s(new f.ResponseError(f.ErrorCodes.InternalError,`Request ${e.method} failed with message: ${t.message}`),e.method,o):await s(new f.ResponseError(f.ErrorCodes.InternalError,`Request ${e.method} failed unexpectedly without providing any details.`),e.method,o)}finally{$.delete(t)}}else await s(new f.ResponseError(f.ErrorCodes.MethodNotFound,`Unhandled method ${e.method}`),e.method,o)}(e):f.Message.isNotification(e)?async function(e){if(te())return;let t,n;if(e.method===b.type.method){const t=e.params.id;return B.delete(t),void ue(e)}{const s=N.get(e.method);s&&(n=s.handler,t=s.type)}if(n||w)try{if(ue(e),n)if(void 0===e.params)void 0!==t&&0!==t.numberOfParams&&t.parameterStructures!==f.ParameterStructures.byName&&i.error(`Notification ${e.method} defines ${t.numberOfParams} params but received none.`),await n();else if(Array.isArray(e.params)){const s=e.params;e.method===T.type.method&&2===s.length&&_.is(s[0])?await n({token:s[0],value:s[1]}):(void 0!==t&&(t.parameterStructures===f.ParameterStructures.byName&&i.error(`Notification ${e.method} defines parameters by name but received parameters by position`),t.numberOfParams!==e.params.length&&i.error(`Notification ${e.method} defines ${t.numberOfParams} params but received ${s.length} arguments`)),await n(...s))}else void 0!==t&&t.parameterStructures===f.ParameterStructures.byPosition&&i.error(`Notification ${e.method} defines parameters by position but received parameters by name`),await n(e.params);else w&&await w(e.method,e.params)}catch(t){t.message?i.error(`Notification handler '${e.method}' failed with message: ${t.message}`):i.error(`Notification handler '${e.method}' failed unexpectedly.`)}else W.fire(e)}(e):f.Message.isResponse(e)?ce(e):function(e){if(!e)return void i.error("Received empty message.");i.error(`Received message which is neither a response nor a notification message:\n${JSON.stringify(e,null,4)}`);const t=e;if(h.string(t.id)||h.number(t.id)){const e=t.id,n=Y.get(e);n&&n.reject(new Error("The received response has neither a result nor an error property."))}}(e)}e.onClose(ne),e.onError(function(e){Q.fire([e,void 0,void 0])}),t.onClose(ne),t.onError(function(e){Q.fire(e)});const oe=e=>{try{if(f.Message.isNotification(e)&&e.method===b.type.method){const n=e.params.id,s=se(n),a=U.get(s);if(f.Message.isRequest(a)){const o=r?.connectionStrategy,c=o&&o.cancelUndispatched?o.cancelUndispatched(a,Z):void 0;if(c&&(void 0!==c.error||void 0!==c.result))return U.delete(s),$.delete(n),c.id=a.id,pe(c,e.method,Date.now()),void t.write(c).catch(()=>i.error("Sending response for canceled message failed."))}const o=$.get(n);if(void 0!==o)return o.cancel(),void ue(e);B.add(n)}re(U,e)}finally{ie()}};function ce(e){if(!te())if(null===e.id)e.error?i.error(`Received response message without id: Error is: \n${JSON.stringify(e.error,void 0,4)}`):i.error("Received response message without id. No further error information provided.");else{const t=e.id,n=Y.get(t);if(function(e,t){if(q===A.Off||!L)return;if(V===I.Text){let n;if(q!==A.Verbose&&q!==A.Compact||(e.error&&e.error.data?n=`Error data: ${le(e.error.data)}`:e.result?n=`Result: ${le(e.result)}`:void 0===e.error&&(n="No result returned.")),t){const s=e.error?` Request failed: ${e.error.message} (${e.error.code}).`:"";L.log(`Received response '${t.method} - (${e.id})' in ${Date.now()-t.timerStart}ms.${s}`,n)}else L.log(`Received response ${e.id} without active response promise.`,n)}else de("receive-response",e)}(e,n),void 0!==n){Y.delete(t);try{if(e.error){const t=e.error;n.reject(new f.ResponseError(t.code,t.message,t.data))}else{if(void 0===e.result)throw new Error("Should never happen.");n.resolve(e.result)}}catch(e){e.message?i.error(`Response handler '${n.method}' failed with message: ${e.message}`):i.error(`Response handler '${n.method}' failed unexpectedly.`)}}}}function le(e){if(null!=e)switch(q){case A.Verbose:return JSON.stringify(e,null,4);case A.Compact:return JSON.stringify(e);default:return}}function pe(e,t,n){if(q!==A.Off&&L)if(V===I.Text){let s;q!==A.Verbose&&q!==A.Compact||(e.error&&e.error.data?s=`Error data: ${le(e.error.data)}`:e.result?s=`Result: ${le(e.result)}`:void 0===e.error&&(s="No result returned.")),L.log(`Sending response '${t} - (${e.id})'. Processing request took ${Date.now()-n}ms`,s)}else de("send-response",e)}function ue(e){if(q!==A.Off&&L&&e.method!==O.type.method)if(V===I.Text){let t;q!==A.Verbose&&q!==A.Compact||(t=e.params?`Params: ${le(e.params)}`:"No parameters provided."),L.log(`Received notification '${e.method}'.`,t)}else de("receive-notification",e)}function de(e,t){if(!L||q===A.Off)return;const n={isLSPMessage:!0,type:e,message:t,timestamp:Date.now()};L.log(n)}function me(){if(ee())throw new j(D.Closed,"Connection is closed.");if(te())throw new j(D.Disposed,"Connection is disposed.")}function he(e){return void 0===e?null:e}function fe(e){return null===e?void 0:e}function ge(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function ye(e,t){switch(e){case f.ParameterStructures.auto:return ge(t)?fe(t):[he(t)];case f.ParameterStructures.byName:if(!ge(t))throw new Error("Received parameters by name but param is not an object literal.");return fe(t);case f.ParameterStructures.byPosition:return[he(t)];default:throw new Error(`Unknown parameter structure ${e.toString()}`)}}function Ee(e,t){let n;const s=e.numberOfParams;switch(s){case 0:n=void 0;break;case 1:n=ye(e.parameterStructures,t[0]);break;default:n=[];for(let e=0;e<t.length&&e<s;e++)n.push(he(t[e]));if(t.length<s)for(let e=t.length;e<s;e++)n.push(null)}return n}const be={sendNotification:(e,...n)=>{let s,r;if(me(),h.string(e)){s=e;const t=n[0];let i=0,a=f.ParameterStructures.auto;f.ParameterStructures.is(t)&&(i=1,a=t);const o=n.length,c=o-i;switch(c){case 0:r=void 0;break;case 1:r=ye(a,n[i]);break;default:if(a===f.ParameterStructures.byName)throw new Error(`Received ${c} parameters for 'by Name' notification parameter structure.`);r=n.slice(i,o).map(e=>he(e))}}else{const t=n;s=e.method,r=Ee(e,t)}const a={jsonrpc:l,method:s,params:r};return function(e){if(q!==A.Off&&L)if(V===I.Text){let t;q!==A.Verbose&&q!==A.Compact||(t=e.params?`Params: ${le(e.params)}`:"No parameters provided."),L.log(`Sending notification '${e.method}'.`,t)}else de("send-notification",e)}(a),t.write(a).catch(e=>{throw i.error("Sending notification failed."),e})},onNotification:(e,t)=>{let n;return me(),h.func(e)?w=e:t&&(h.string(e)?(n=e,N.set(e,{type:void 0,handler:t})):(n=e.method,N.set(e.method,{type:e,handler:t}))),{dispose:()=>{void 0!==n?N.get(n)?.handler===t&&N.delete(n):w===e&&(w=void 0)}}},onProgress:(e,t,n)=>{if(F.has(t))throw new Error(`Progress handler for token ${t} already registered`);return F.set(t,n),{dispose:()=>{F.get(t)===n&&F.delete(t)}}},sendProgress:(e,t,n)=>be.sendNotification(T.type,{token:t,value:n}),onUnhandledProgress:J.event,sendRequest:(e,...n)=>{function s(e,t){const n=z.sender.sendCancellation(e,t);void 0===n?i.log(`Received no promise from cancellation strategy when cancelling id ${t}`):n.catch(()=>{i.log(`Sending cancellation messages for id ${t} failed.`)})}let r,o,c;if(me(),function(){if(!X())throw new Error("Call listen() first.")}(),h.string(e)){r=e;const t=n[0],s=n[n.length-1];let i=0,a=f.ParameterStructures.auto;f.ParameterStructures.is(t)&&(i=1,a=t);let l=n.length;E.CancellationToken.is(s)&&(l-=1,c=s);const p=l-i;switch(p){case 0:o=void 0;break;case 1:o=ye(a,n[i]);break;default:if(a===f.ParameterStructures.byName)throw new Error(`Received ${p} parameters for 'by Name' request parameter structure.`);o=n.slice(i,l).map(e=>he(e))}}else{const t=n;r=e.method,o=Ee(e,t);const s=e.numberOfParams;c=E.CancellationToken.is(t[s])?t[s]:void 0}const p=a++;let u,d=!1;void 0!==c&&(c.isCancellationRequested?d=!0:u=c.onCancellationRequested(()=>{s(be,p)}));const m={jsonrpc:l,id:p,method:r,params:o};return function(e){if(q!==A.Off&&L)if(V===I.Text){let t;q!==A.Verbose&&q!==A.Compact||!e.params||(t=`Params: ${le(e.params)}`),L.log(`Sending request '${e.method} - (${e.id})'.`,t)}else de("send-request",e)}(m),"function"==typeof z.sender.enableCancellation&&z.sender.enableCancellation(m),new Promise(async(e,n)=>{const a={method:r,timerStart:Date.now(),resolve:t=>{e(t),z.sender.cleanup(p),u?.dispose()},reject:e=>{n(e),z.sender.cleanup(p),u?.dispose()}};try{Y.set(p,a),await t.write(m),d&&s(be,p)}catch(e){throw Y.delete(p),a.reject(new f.ResponseError(f.ErrorCodes.MessageWriteError,e.message?e.message:"Unknown reason")),i.error("Sending request failed."),e}})},onRequest:(e,t)=>{me();let n=null;return v.is(e)?(n=void 0,u=e):h.string(e)?(n=null,void 0!==t&&(n=e,S.set(e,{handler:t,type:void 0}))):void 0!==t&&(n=e.method,S.set(e.method,{type:e,handler:t})),{dispose:()=>{null!==n&&(void 0!==n?S.get(n)?.handler===t&&S.delete(n):u===e&&(u=void 0))}}},hasPendingResponse:()=>Y.size>0,trace:async(e,t,n)=>{let s=!1,r=I.Text;void 0!==n&&(h.boolean(n)?s=n:(s=n.sendNotification||!1,r=n.traceFormat||I.Text)),q=e,V=r,L=q===A.Off?void 0:t,!s||ee()||te()||await be.sendNotification(P.type,{value:A.toString(e)})},onError:Q.event,onClose:G.event,onUnhandledNotification:W.event,onDispose:K.event,end:()=>{t.end()},dispose:()=>{if(te())return;H=M.Disposed,K.fire(void 0);const n=new f.ResponseError(f.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(const e of Y.values())e.reject(n);Y=new Map,$=new Map,B=new Set,U=new g.LinkedMap,h.func(t.dispose)&&t.dispose(),h.func(e.dispose)&&e.dispose()},listen:()=>{me(),function(){if(X())throw new j(D.AlreadyListening,"Connection is already listening")}(),H=M.Listening,e.listen(oe)},inspect:()=>{(0,m.default)().console.log("inspect")}};return be.onNotification(O.type,e=>{if(q===A.Off||!L)return;const t=q===A.Verbose||q===A.Compact;L.log(e.message,t?e.verbose:void 0)}),be.onNotification(T.type,async e=>{const t=F.get(e.token);t?await t(e.value):J.fire(e)}),be};const m=d(u()),h=l(i()),f=p(),g=a(),y=r(),E=t();var b,_,T,v,A,S,I,P,O,D,w,x,N,F,R,k,C,L,M;!function(e){e.type=new f.NotificationType("$/cancelRequest")}(b||(b={})),function(e){e.is=function(e){return"string"==typeof e||"number"==typeof e}}(_||(n.ProgressToken=_={})),function(e){e.type=new f.NotificationType("$/progress")}(T||(T={}));n.ProgressType=class{__;_pr;constructor(){}},function(e){e.is=function(e){return h.func(e)}}(v||(v={})),n.NullLogger=Object.freeze({error:()=>{},warn:()=>{},info:()=>{},log:()=>{}}),function(e){e[e.Off=0]="Off",e[e.Messages=1]="Messages",e[e.Compact=2]="Compact",e[e.Verbose=3]="Verbose"}(A||(n.Trace=A={})),function(e){e.Off="off",e.Messages="messages",e.Compact="compact",e.Verbose="verbose"}(S||(n.TraceValue=S={})),n.TraceValues=S,function(e){e.fromString=function(t){if(!h.string(t))return e.Off;switch(t=t.toLowerCase()){case"off":default:return e.Off;case"messages":return e.Messages;case"compact":return e.Compact;case"verbose":return e.Verbose}},e.toString=function(t){switch(t){case e.Off:return"off";case e.Messages:return"messages";case e.Compact:return"compact";case e.Verbose:return"verbose";default:return"off"}}}(A||(n.Trace=A={})),function(e){e.Text="text",e.JSON="json"}(I||(n.TraceFormat=I={})),function(e){e.fromString=function(t){return h.string(t)&&"json"===(t=t.toLowerCase())?e.JSON:e.Text}}(I||(n.TraceFormat=I={})),function(e){e.type=new f.NotificationType("$/setTrace")}(P||(n.SetTraceNotification=P={})),function(e){e.type=new f.NotificationType("$/logTrace")}(O||(n.LogTraceNotification=O={})),function(e){e[e.Closed=1]="Closed",e[e.Disposed=2]="Disposed",e[e.AlreadyListening=3]="AlreadyListening"}(D||(n.ConnectionErrors=D={}));class j extends Error{code;constructor(e,t){super(t),this.code=e,Object.setPrototypeOf(this,j.prototype)}}n.ConnectionError=j,function(e){e.is=function(e){const t=e;return t&&h.func(t.cancelUndispatched)}}(w||(n.ConnectionStrategy=w={})),function(e){e.is=function(e){const t=e;return t&&(void 0===t.kind||"id"===t.kind)&&h.func(t.createCancellationTokenSource)&&(void 0===t.dispose||h.func(t.dispose))}}(x||(n.IdCancellationReceiverStrategy=x={})),function(e){e.is=function(e){const t=e;return t&&"request"===t.kind&&h.func(t.createCancellationTokenSource)&&(void 0===t.dispose||h.func(t.dispose))}}(N||(n.RequestCancellationReceiverStrategy=N={})),function(e){e.Message=Object.freeze({createCancellationTokenSource:e=>new E.CancellationTokenSource}),e.is=function(e){return x.is(e)||N.is(e)}}(F||(n.CancellationReceiverStrategy=F={})),function(e){e.Message=Object.freeze({sendCancellation:(e,t)=>e.sendNotification(b.type,{id:t}),cleanup(e){}}),e.is=function(e){const t=e;return t&&h.func(t.sendCancellation)&&h.func(t.cleanup)}}(R||(n.CancellationSenderStrategy=R={})),function(e){e.Message=Object.freeze({receiver:F.Message,sender:R.Message}),e.is=function(e){const t=e;return t&&F.is(t.receiver)&&R.is(t.sender)}}(k||(n.CancellationStrategy=k={})),function(e){e.is=function(e){const t=e;return t&&h.func(t.handleMessage)}}(C||(n.MessageStrategy=C={})),function(e){e.is=function(e){const t=e;return t&&(k.is(t.cancellationStrategy)||w.is(t.connectionStrategy)||C.is(t.messageStrategy)||h.number(t.maxParallelism))}}(L||(n.ConnectionOptions=L={})),function(e){e[e.New=1]="New",e[e.Listening=2]="Listening",e[e.Closed=3]="Closed",e[e.Disposed=4]="Disposed"}(M||(M={}))}),s=__webpack_require__.cw(function(e,t){var n;t.Disposable=void 0,function(e){e.create=function(e){return{dispose:e}}}(n||(t.Disposable=n={}))}),r=__webpack_require__.cw(function(e,t){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Emitter=t.Event=void 0;const s=n(u());var r;!function(e){const t={dispose(){}};e.None=function(){return t}}(r||(t.Event=r={}));class i{_callbacks;_contexts;add(e,t=null,n){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(t),Array.isArray(n)&&n.push({dispose:()=>this.remove(e,t)})}remove(e,t=null){if(!this._callbacks)return;let n=!1;for(let s=0,r=this._callbacks.length;s<r;s++)if(this._callbacks[s]===e){if(this._contexts[s]===t)return this._callbacks.splice(s,1),void this._contexts.splice(s,1);n=!0}if(n)throw new Error("When adding a listener with a context, you should remove it with the same context")}invoke(...e){if(!this._callbacks)return[];const t=[],n=this._callbacks.slice(0),r=this._contexts.slice(0);for(let i=0,a=n.length;i<a;i++)try{t.push(n[i].apply(r[i],e))}catch(e){(0,s.default)().console.error(e)}return t}isEmpty(){return!this._callbacks||0===this._callbacks.length}dispose(){this._callbacks=void 0,this._contexts=void 0}}class a{_options;static _noop=function(){};_event;_callbacks;constructor(e){this._options=e}get event(){return this._event||(this._event=(e,t,n)=>{this._callbacks||(this._callbacks=new i),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(e,t);const s={dispose:()=>{this._callbacks&&(this._callbacks.remove(e,t),s.dispose=a._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(n)&&n.push(s),s}),this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}}t.Emitter=a}),i=()=>__webpack_require__(863),a=__webpack_require__.cw(function(e,t){var n;t.LRUCache=t.LinkedMap=t.Touch=void 0,function(e){e.None=0,e.First=1,e.AsOld=e.First,e.Last=2,e.AsNew=e.Last}(n||(t.Touch=n={}));class s{[Symbol.toStringTag]="LinkedMap";_map;_head;_tail;_size;_state;constructor(){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(){return this._head?.value}get last(){return this._tail?.value}before(e){const t=this._map.get(e);return t?t.previous?.value:void 0}after(e){const t=this._map.get(e);return t?t.next?.value:void 0}has(e){return this._map.has(e)}get(e,t=n.None){const s=this._map.get(e);if(s)return t!==n.None&&this.touch(s,t),s.value}set(e,t,s=n.None){let r=this._map.get(e);if(r)r.value=t,s!==n.None&&this.touch(r,s);else{switch(r={key:e,value:t,next:void 0,previous:void 0},s){case n.None:this.addItemLast(r);break;case n.First:this.addItemFirst(r);break;case n.Last:default:this.addItemLast(r)}this._map.set(e,r),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const n=this._state;let s=this._head;for(;s;){if(t?e.bind(t)(s.value,s.key,this):e(s.value,s.key,this),this._state!==n)throw new Error("LinkedMap got modified during iteration.");s=s.next}}keys(){const e=this._state;let t=this._head;const n={[Symbol.iterator]:()=>n,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(t){const e={value:t.key,done:!1};return t=t.next,e}return{value:void 0,done:!0}}};return n}values(){const e=this._state;let t=this._head;const n={[Symbol.iterator]:()=>n,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(t){const e={value:t.value,done:!1};return t=t.next,e}return{value:void 0,done:!0}}};return n}entries(){const e=this._state;let t=this._head;const n={[Symbol.iterator]:()=>n,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(t){const e={value:[t.key,t.value],done:!1};return t=t.next,e}return{value:void 0,done:!0}}};return n}[Symbol.iterator](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._head,n=this.size;for(;t&&n>e;)this._map.delete(t.key),t=t.next,n--;this._head=t,this._size=n,t&&(t.previous=void 0),this._state++}addItemFirst(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,n=e.previous;if(!t||!n)throw new Error("Invalid list");t.previous=n,n.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(t===n.First||t===n.Last)if(t===n.First){if(e===this._head)return;const t=e.next,n=e.previous;e===this._tail?(n.next=void 0,this._tail=n):(t.previous=n,n.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(t===n.Last){if(e===this._tail)return;const t=e.next,n=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=n,n.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}toJSON(){const e=[];return this.forEach((t,n)=>{e.push([n,t])}),e}fromJSON(e){this.clear();for(const[t,n]of e)this.set(t,n)}}t.LinkedMap=s;t.LRUCache=class extends s{_limit;_ratio;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=n.AsNew){return super.get(e,t)}peek(e){return super.get(e,n.None)}set(e,t){return super.set(e,t,n.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}}),o=__webpack_require__.cw(function(e,t){t.AbstractMessageBuffer=void 0;t.AbstractMessageBuffer=class{_encoding;_chunks;_totalLength;constructor(e="utf-8"){this._encoding=e,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(e){const t="string"==typeof e?this.fromString(e,this._encoding):e;this._chunks.push(t),this._totalLength+=t.byteLength}tryReadHeaders(e=!1){if(0===this._chunks.length)return;let t=0,n=0,s=0,r=0;e:for(;n<this._chunks.length;){const e=this._chunks[n];for(s=0;s<e.length;){switch(e[s]){case 13:switch(t){case 0:t=1;break;case 2:t=3;break;default:t=0}break;case 10:switch(t){case 1:t=2;break;case 3:t=4,s++;break e;default:t=0}break;default:t=0}s++}r+=e.byteLength,n++}if(4!==t)return;const i=this._read(r+s),a=new Map,o=this.toString(i,"ascii").split("\r\n");if(o.length<2)return a;for(let t=0;t<o.length-2;t++){const n=o[t],s=n.indexOf(":");if(-1===s)throw new Error(`Message header must separate key and value using ':'\n${n}`);const r=n.substr(0,s),i=n.substr(s+1).trim();a.set(e?r.toLowerCase():r,i)}return a}tryReadBody(e){if(!(this._totalLength<e))return this._read(e)}get numberOfBytes(){return this._totalLength}_read(e){if(0===e)return this.emptyBuffer();if(e>this._totalLength)throw new Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===e){const t=this._chunks[0];return this._chunks.shift(),this._totalLength-=e,this.asNative(t)}if(this._chunks[0].byteLength>e){const t=this._chunks[0],n=this.asNative(t,e);return this._chunks[0]=t.slice(e),this._totalLength-=e,n}const t=this.allocNative(e);let n=0;for(;e>0;){const s=this._chunks[0];if(s.byteLength>e){const r=s.slice(0,e);t.set(r,n),n+=e,this._chunks[0]=s.slice(e),this._totalLength-=e,e-=e}else t.set(s,n),n+=s.byteLength,this._chunks.shift(),this._totalLength-=s.byteLength,e-=s.byteLength}return t}}}),c=__webpack_require__.cw(function(e,t){var n,s=this&&this.__createBinding||(Object.create?function(e,t,n,s){void 0===s&&(s=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,s,r)}:function(e,t,n,s){void 0===s&&(s=n),e[s]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||(n=function(e){return n=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},n(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=n(e),i=0;i<r.length;i++)"default"!==r[i]&&s(t,e,r[i]);return a(t,e),t}),c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ReadableStreamMessageReader=t.AbstractMessageReader=t.MessageReader=void 0;const l=c(u()),p=o(i()),m=r(),h=d();var f,g;!function(e){e.is=function(e){const t=e;return t&&p.func(t.listen)&&p.func(t.dispose)&&p.func(t.onError)&&p.func(t.onClose)&&p.func(t.onPartialMessage)}}(f||(t.MessageReader=f={}));class y{errorEmitter;closeEmitter;partialMessageEmitter;constructor(){this.errorEmitter=new m.Emitter,this.closeEmitter=new m.Emitter,this.partialMessageEmitter=new m.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose(),this.partialMessageEmitter.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: ${p.string(e.message)?e.message:"unknown"}`)}}t.AbstractMessageReader=y,function(e){e.fromOptions=function(e){let t,n;const s=new Map;let r;const i=new Map;if(void 0===e||"string"==typeof e)t=e??"utf-8";else{if(t=e.charset??"utf-8",void 0!==e.contentDecoder&&(n=e.contentDecoder,s.set(n.name,n)),void 0!==e.contentDecoders)for(const t of e.contentDecoders)s.set(t.name,t);if(void 0!==e.contentTypeDecoder&&(r=e.contentTypeDecoder,i.set(r.name,r)),void 0!==e.contentTypeDecoders)for(const t of e.contentTypeDecoders)i.set(t.name,t)}return void 0===r&&(r=(0,l.default)().applicationJson.decoder,i.set(r.name,r)),{charset:t,contentDecoder:n,contentDecoders:s,contentTypeDecoder:r,contentTypeDecoders:i}}}(g||(g={}));t.ReadableStreamMessageReader=class extends y{readable;options;callback;nextMessageLength;messageToken;buffer;partialMessageTimer;_partialMessageTimeout;readSemaphore;constructor(e,t){super(),this.readable=e,this.options=g.fromOptions(t),this.buffer=(0,l.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new h.Semaphore(1)}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;const t=this.readable.onData(e=>{this.onData(e)});return this.readable.onError(e=>this.fireError(e)),this.readable.onClose(()=>this.fireClose()),t}onData(e){try{for(this.buffer.append(e);;){if(-1===this.nextMessageLength){const e=this.buffer.tryReadHeaders(!0);if(!e)return;const t=e.get("content-length");if(!t)return void this.fireError(new Error(`Header must provide a Content-Length property.\n${JSON.stringify(Object.fromEntries(e))}`));const n=parseInt(t);if(isNaN(n))return void this.fireError(new Error(`Content-Length value must be a number. Got ${t}`));this.nextMessageLength=n}const e=this.buffer.tryReadBody(this.nextMessageLength);if(void 0===e)return void this.setPartialMessageTimer();this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock(async()=>{const t=void 0!==this.options.contentDecoder?await this.options.contentDecoder.decode(e):e,n=await this.options.contentTypeDecoder.decode(t,this.options);this.callback(n)}).catch(e=>{this.fireError(e)})}}catch(e){this.fireError(e)}}clearPartialMessageTimer(){this.partialMessageTimer&&(this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),this._partialMessageTimeout<=0||(this.partialMessageTimer=(0,l.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))}}}),l=__webpack_require__.cw(function(e,t){var n,s=this&&this.__createBinding||(Object.create?function(e,t,n,s){void 0===s&&(s=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,s,r)}:function(e,t,n,s){void 0===s&&(s=n),e[s]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||(n=function(e){return n=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},n(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=n(e),i=0;i<r.length;i++)"default"!==r[i]&&s(t,e,r[i]);return a(t,e),t}),c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WriteableStreamMessageWriter=t.AbstractMessageWriter=t.MessageWriter=void 0;const l=c(u()),p=o(i()),m=d(),h=r();var f,g;!function(e){e.is=function(e){const t=e;return t&&p.func(t.dispose)&&p.func(t.onClose)&&p.func(t.onError)&&p.func(t.write)}}(f||(t.MessageWriter=f={}));class y{errorEmitter;closeEmitter;constructor(){this.errorEmitter=new h.Emitter,this.closeEmitter=new h.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e,t,n){this.errorEmitter.fire([this.asError(e),t,n])}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: ${p.string(e.message)?e.message:"unknown"}`)}}t.AbstractMessageWriter=y,function(e){e.fromOptions=function(e){return void 0===e||"string"==typeof e?{charset:e??"utf-8",contentTypeEncoder:(0,l.default)().applicationJson.encoder}:{charset:e.charset??"utf-8",contentEncoder:e.contentEncoder,contentTypeEncoder:e.contentTypeEncoder??(0,l.default)().applicationJson.encoder}}}(g||(g={}));t.WriteableStreamMessageWriter=class extends y{writable;options;errorCount;writeSemaphore;constructor(e,t){super(),this.writable=e,this.options=g.fromOptions(t),this.errorCount=0,this.writeSemaphore=new m.Semaphore(1),this.writable.onError(e=>this.fireError(e)),this.writable.onClose(()=>this.fireClose())}async write(e){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(e,this.options).then(e=>void 0!==this.options.contentEncoder?this.options.contentEncoder.encode(e):e).then(t=>{const n=[];return n.push("Content-Length: ",t.byteLength.toString(),"\r\n"),n.push("\r\n"),this.doWrite(e,n,t)},e=>{throw this.fireError(e),e}))}async doWrite(e,t,n){try{return await this.writable.write(t.join(""),"ascii"),this.writable.write(n)}catch(t){return this.handleError(t,e),Promise.reject(t)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){this.writable.end()}}}),p=__webpack_require__.cw(function(e,t){var n,s=this&&this.__createBinding||(Object.create?function(e,t,n,s){void 0===s&&(s=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,s,r)}:function(e,t,n,s){void 0===s&&(s=n),e[s]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||(n=function(e){return n=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},n(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i=n(e),a=0;a<i.length;a++)"default"!==i[a]&&s(t,e,i[a]);return r(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.Message=t.NotificationType9=t.NotificationType8=t.NotificationType7=t.NotificationType6=t.NotificationType5=t.NotificationType4=t.NotificationType3=t.NotificationType2=t.NotificationType1=t.NotificationType0=t.NotificationType=t.RequestType9=t.RequestType8=t.RequestType7=t.RequestType6=t.RequestType5=t.RequestType4=t.RequestType3=t.RequestType2=t.RequestType1=t.RequestType=t.RequestType0=t.AbstractMessageSignature=t.ParameterStructures=t.ResponseError=t.ErrorCodes=void 0;const o=a(i());var c,l;!function(e){e.ParseError=-32700,e.InvalidRequest=-32600,e.MethodNotFound=-32601,e.InvalidParams=-32602,e.InternalError=-32603,e.jsonrpcReservedErrorRangeStart=-32099,e.serverErrorStart=-32099,e.MessageWriteError=-32099,e.MessageReadError=-32098,e.PendingResponseRejected=-32097,e.ConnectionInactive=-32096,e.ServerNotInitialized=-32002,e.UnknownErrorCode=-32001,e.jsonrpcReservedErrorRangeEnd=-32e3,e.serverErrorEnd=-32e3}(c||(t.ErrorCodes=c={}));class p extends Error{code;data;constructor(e,t,n){super(t),this.code=o.number(e)?e:c.UnknownErrorCode,this.data=n,Object.setPrototypeOf(this,p.prototype)}toJson(){const e={code:this.code,message:this.message};return void 0!==this.data&&(e.data=this.data),e}}t.ResponseError=p;class u{kind;static auto=new u("auto");static byPosition=new u("byPosition");static byName=new u("byName");constructor(e){this.kind=e}static is(e){return e===u.auto||e===u.byName||e===u.byPosition}toString(){return this.kind}}t.ParameterStructures=u;class d{method;numberOfParams;constructor(e,t){this.method=e,this.numberOfParams=t}get parameterStructures(){return u.auto}}t.AbstractMessageSignature=d;t.RequestType0=class extends d{_;constructor(e){super(e,0)}};t.RequestType=class extends d{_parameterStructures;_;constructor(e,t=u.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}};t.RequestType1=class extends d{_parameterStructures;_;constructor(e,t=u.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}};t.RequestType2=class extends d{_;constructor(e){super(e,2)}};t.RequestType3=class extends d{_;constructor(e){super(e,3)}};t.RequestType4=class extends d{_;constructor(e){super(e,4)}};t.RequestType5=class extends d{_;constructor(e){super(e,5)}};t.RequestType6=class extends d{_;constructor(e){super(e,6)}};t.RequestType7=class extends d{_;constructor(e){super(e,7)}};t.RequestType8=class extends d{_;constructor(e){super(e,8)}};t.RequestType9=class extends d{_;constructor(e){super(e,9)}};t.NotificationType=class extends d{_parameterStructures;_;constructor(e,t=u.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}};t.NotificationType0=class extends d{_;constructor(e){super(e,0)}};t.NotificationType1=class extends d{_parameterStructures;_;constructor(e,t=u.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}};t.NotificationType2=class extends d{_;constructor(e){super(e,2)}};t.NotificationType3=class extends d{_;constructor(e){super(e,3)}};t.NotificationType4=class extends d{_;constructor(e){super(e,4)}};t.NotificationType5=class extends d{_;constructor(e){super(e,5)}};t.NotificationType6=class extends d{_;constructor(e){super(e,6)}};t.NotificationType7=class extends d{_;constructor(e){super(e,7)}};t.NotificationType8=class extends d{_;constructor(e){super(e,8)}};t.NotificationType9=class extends d{_;constructor(e){super(e,9)}},function(e){e.isRequest=function(e){const t=e;return t&&o.string(t.method)&&(o.string(t.id)||o.number(t.id))},e.isNotification=function(e){const t=e;return t&&o.string(t.method)&&void 0===e.id},e.isResponse=function(e){const t=e;return t&&(void 0!==t.result||!!t.error)&&(o.string(t.id)||o.number(t.id)||null===t.id)}}(l||(t.Message=l={}))}),u=()=>__webpack_require__(104),d=__webpack_require__.cw(function(e,t){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Semaphore=void 0;const s=n(u());t.Semaphore=class{_capacity;_active;_waiting;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,n)=>{this._waiting.push({thunk:e,resolve:t,reject:n}),this.runNext()})}get active(){return this._active}runNext(){0!==this._waiting.length&&this._active!==this._capacity&&(0,s.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(0===this._waiting.length||this._active===this._capacity)return;const e=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("Too many thunks active");try{const t=e.thunk();t instanceof Promise?t.then(t=>{this._active--,e.resolve(t),this.runNext()},t=>{this._active--,e.reject(t),this.runNext()}):(this._active--,e.resolve(t),this.runNext())}catch(t){this._active--,e.reject(t),this.runNext()}}}}),m=__webpack_require__.cw(function(e,n){n.SharedArrayReceiverStrategy=n.SharedArraySenderStrategy=void 0;const s=t();var r;!function(e){e.Continue=0,e.Cancelled=1}(r||(r={}));n.SharedArraySenderStrategy=class{buffers;constructor(){this.buffers=new Map}enableCancellation(e){if(null===e.id)return;const t=new SharedArrayBuffer(4);new Int32Array(t,0,1)[0]=r.Continue,this.buffers.set(e.id,t),e.$cancellationData=t}async sendCancellation(e,t){const n=this.buffers.get(t);if(void 0===n)return;const s=new Int32Array(n,0,1);Atomics.store(s,0,r.Cancelled)}cleanup(e){this.buffers.delete(e)}dispose(){this.buffers.clear()}};class i{data;constructor(e){this.data=new Int32Array(e,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===r.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}}class a{token;constructor(e){this.token=new i(e)}cancel(){}dispose(){}}n.SharedArrayReceiverStrategy=class{kind="request";createCancellationTokenSource(e){const t=e.$cancellationData;return void 0===t?new s.CancellationTokenSource:new a(t)}}}),h=__webpack_require__.cw(function(t,n){var s=this&&this.__createBinding||(Object.create?function(e,t,n,s){void 0===s&&(s=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,s,r)}:function(e,t,n,s){void 0===s&&(s=n),e[s]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||s(t,e,n)};Object.defineProperty(n,"__esModule",{value:!0}),n.LSPErrorCodes=n.createProtocolConnection=void 0,r(e(),n),r(At(),n),r(g(),n),r(D(),n);var i,a=f();Object.defineProperty(n,"createProtocolConnection",{enumerable:!0,get:function(){return a.createProtocolConnection}}),function(e){e.lspReservedErrorRangeStart=-32899,e.RequestFailed=-32803,e.ServerCancelled=-32802,e.ContentModified=-32801,e.RequestCancelled=-32800,e.lspReservedErrorRangeEnd=-32800}(i||(n.LSPErrorCodes=i={}))}),f=__webpack_require__.cw(function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.createProtocolConnection=function(e,t,n,r){s.ConnectionStrategy.is(r)&&(r={connectionStrategy:r});return(0,s.createMessageConnection)(e,t,n,r)};const s=e()}),g=__webpack_require__.cw(function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.CM=n.ProtocolNotificationType=n.ProtocolNotificationType0=n.ProtocolRequestType=n.ProtocolRequestType0=n.RegistrationType=n.MessageDirection=void 0;const s=e();var r,i;!function(e){e.clientToServer="clientToServer",e.serverToClient="serverToClient",e.both="both"}(r||(n.MessageDirection=r={}));n.RegistrationType=class{____;method;constructor(e){this.method=e}};class a extends s.RequestType0{__;___;____;_pr;constructor(e){super(e)}}n.ProtocolRequestType0=a;class o extends s.RequestType{__;___;____;_pr;constructor(e){super(e,s.ParameterStructures.byName)}}n.ProtocolRequestType=o;class c extends s.NotificationType0{___;____;constructor(e){super(e)}}n.ProtocolNotificationType0=c;class l extends s.NotificationType{___;____;constructor(e){super(e,s.ParameterStructures.byName)}}n.ProtocolNotificationType=l,function(e){e.create=function(e,t){return{client:e,server:t}}}(i||(n.CM=i={}))}),y=__webpack_require__.cw(function(e,t){t.CallHierarchyOutgoingCallsRequest=t.CallHierarchyIncomingCallsRequest=t.CallHierarchyPrepareRequest=void 0;const n=g();var s,r,i;!function(e){e.method="textDocument/prepareCallHierarchy",e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method),e.capabilities=n.CM.create("textDocument.callHierarchy","callHierarchyProvider")}(s||(t.CallHierarchyPrepareRequest=s={})),function(e){e.method="callHierarchy/incomingCalls",e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method),e.capabilities=n.CM.create("textDocument.callHierarchy","callHierarchyProvider")}(r||(t.CallHierarchyIncomingCallsRequest=r={})),function(e){e.method="callHierarchy/outgoingCalls",e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method),e.capabilities=n.CM.create("textDocument.callHierarchy","callHierarchyProvider")}(i||(t.CallHierarchyOutgoingCallsRequest=i={}))}),E=__webpack_require__.cw(function(e,t){t.ColorPresentationRequest=t.DocumentColorRequest=void 0;const n=g();var s,r;!function(e){e.method="textDocument/documentColor",e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method),e.capabilities=n.CM.create("textDocument.colorProvider","colorProvider")}(s||(t.DocumentColorRequest=s={})),function(e){e.method="textDocument/colorPresentation",e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method),e.capabilities=n.CM.create("textDocument.colorProvider","colorProvider")}(r||(t.ColorPresentationRequest=r={}))}),b=__webpack_require__.cw(function(e,t){t.ConfigurationRequest=void 0;const n=g();var s;!function(e){e.method="workspace/configuration",e.messageDirection=n.MessageDirection.serverToClient,e.type=new n.ProtocolRequestType(e.method),e.capabilities=n.CM.create("workspace.configuration",void 0)}(s||(t.ConfigurationRequest=s={}))}),_=__webpack_require__.cw(function(e,t){t.DeclarationRequest=void 0;const n=g();var s;!function(e){e.method="textDocument/declaration",e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method),e.capabilities=n.CM.create("textDocument.declaration","declarationProvider")}(s||(t.DeclarationRequest=s={}))}),T=__webpack_require__.cw(function(t,n){var s,r=this&&this.__createBinding||(Object.create?function(e,t,n,s){void 0===s&&(s=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,s,r)}:function(e,t,n,s){void 0===s&&(s=n),e[s]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||(s=function(e){return s=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},s(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=s(e),a=0;a<n.length;a++)"default"!==n[a]&&r(t,e,n[a]);return i(t,e),t});Object.defineProperty(n,"__esModule",{value:!0}),n.DiagnosticRefreshRequest=n.WorkspaceDiagnosticRequest=n.DocumentDiagnosticRequest=n.DocumentDiagnosticReportKind=n.DiagnosticServerCancellationData=void 0;const o=e(),c=a(Y()),l=g();var p,u,d,m,h;!function(e){e.is=function(e){const t=e;return t&&c.boolean(t.retriggerRequest)}}(p||(n.DiagnosticServerCancellationData=p={})),function(e){e.Full="full",e.Unchanged="unchanged"}(u||(n.DocumentDiagnosticReportKind=u={})),function(e){e.method="textDocument/diagnostic",e.messageDirection=l.MessageDirection.clientToServer,e.type=new l.ProtocolRequestType(e.method),e.partialResult=new o.ProgressType,e.capabilities=l.CM.create("textDocument.diagnostic","diagnosticProvider")}(d||(n.DocumentDiagnosticRequest=d={})),function(e){e.method="workspace/diagnostic",e.messageDirection=l.MessageDirection.clientToServer,e.type=new l.ProtocolRequestType(e.method),e.partialResult=new o.ProgressType,e.capabilities=l.CM.create("workspace.diagnostics","diagnosticProvider.workspaceDiagnostics")}(m||(n.WorkspaceDiagnosticRequest=m={})),function(e){e.method="workspace/diagnostic/refresh",e.messageDirection=l.MessageDirection.serverToClient,e.type=new l.ProtocolRequestType0(e.method),e.capabilities=l.CM.create("workspace.diagnostics.refreshSupport",void 0)}(h||(n.DiagnosticRefreshRequest=h={}))}),v=__webpack_require__.cw(function(e,t){t.WillDeleteFilesRequest=t.DidDeleteFilesNotification=t.DidRenameFilesNotification=t.WillRenameFilesRequest=t.DidCreateFilesNotification=t.WillCreateFilesRequest=t.FileOperationPatternKind=void 0;const n=g();var s,r,i,a,o,c,l;!function(e){e.file="file",e.folder="folder"}(s||(t.FileOperationPatternKind=s={})),function(e){e.method="workspace/willCreateFiles",e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method),e.capabilities=n.CM.create("workspace.fileOperations.willCreate","workspace.fileOperations.willCreate")}(r||(t.WillCreateFilesRequest=r={})),function(e){e.method="workspace/didCreateFiles",e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolNotificationType(e.method),e.capabilities=n.CM.create("workspace.fileOperations.didCreate","workspace.fileOperations.didCreate")}(i||(t.DidCreateFilesNotification=i={})),function(e){e.method="workspace/willRenameFiles",e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method),e.capabilities=n.CM.create("workspace.fileOperations.willRename","workspace.fileOperations.willRename")}(a||(t.WillRenameFilesRequest=a={})),function(e){e.method="workspace/didRenameFiles",e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolNotificationType(e.method),e.capabilities=n.CM.create("workspace.fileOperations.didRename","workspace.fileOperations.didRename")}(o||(t.DidRenameFilesNotification=o={})),function(e){e.method="workspace/didDeleteFiles",e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolNotificationType(e.method),e.capabilities=n.CM.create("workspace.fileOperations.didDelete","workspace.fileOperations.didDelete")}(c||(t.DidDeleteFilesNotification=c={})),function(e){e.method="workspace/willDeleteFiles",e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method),e.capabilities=n.CM.create("workspace.fileOperations.willDelete","workspace.fileOperations.willDelete")}(l||(t.WillDeleteFilesRequest=l={}))}),A=__webpack_require__.cw(function(e,t){t.FoldingRangeRefreshRequest=t.FoldingRangeRequest=void 0;const n=g();var s,r;!function(e){e.method="textDocument/foldingRange",e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method),e.capabilities=n.CM.create("textDocument.foldingRange","foldingRangeProvider")}(s||(t.FoldingRangeRequest=s={})),function(e){e.method="workspace/foldingRange/refresh",e.messageDirection=n.MessageDirection.serverToClient,e.type=new n.ProtocolRequestType0(e.method),e.capabilities=n.CM.create("workspace.foldingRange.refreshSupport",void 0)}(r||(t.FoldingRangeRefreshRequest=r={}))}),S=__webpack_require__.cw(function(e,t){t.ImplementationRequest=void 0;const n=g();var s;!function(e){e.method="textDocument/implementation",e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method),e.capabilities=n.CM.create("textDocument.implementation","implementationProvider")}(s||(t.ImplementationRequest=s={}))}),I=__webpack_require__.cw(function(e,t){t.InlayHintRefreshRequest=t.InlayHintResolveRequest=t.InlayHintRequest=void 0;const n=g();var s,r,i;!function(e){e.method="textDocument/inlayHint",e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method),e.capabilities=n.CM.create("textDocument.inlayHint","inlayHintProvider")}(s||(t.InlayHintRequest=s={})),function(e){e.method="inlayHint/resolve",e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method),e.capabilities=n.CM.create("textDocument.inlayHint.resolveSupport","inlayHintProvider.resolveProvider")}(r||(t.InlayHintResolveRequest=r={})),function(e){e.method="workspace/inlayHint/refresh",e.messageDirection=n.MessageDirection.serverToClient,e.type=new n.ProtocolRequestType0(e.method),e.capabilities=n.CM.create("workspace.inlayHint.refreshSupport",void 0)}(i||(t.InlayHintRefreshRequest=i={}))}),P=__webpack_require__.cw(function(e,t){t.InlineCompletionRequest=void 0;const n=g();var s;!function(e){e.method="textDocument/inlineCompletion",e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method),e.capabilities=n.CM.create("textDocument.inlineCompletion","inlineCompletionProvider")}(s||(t.InlineCompletionRequest=s={}))}),O=__webpack_require__.cw(function(e,t){t.InlineValueRefreshRequest=t.InlineValueRequest=void 0;const n=g();var s,r;!function(e){e.method="textDocument/inlineValue",e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method),e.capabilities=n.CM.create("textDocument.inlineValue","inlineValueProvider")}(s||(t.InlineValueRequest=s={})),function(e){e.method="workspace/inlineValue/refresh",e.messageDirection=n.MessageDirection.serverToClient,e.type=new n.ProtocolRequestType0(e.method),e.capabilities=n.CM.create("workspace.inlineValue.refreshSupport",void 0)}(r||(t.InlineValueRefreshRequest=r={}))}),D=__webpack_require__.cw(function(e,t){var n,s=this&&this.__createBinding||(Object.create?function(e,t,n,s){void 0===s&&(s=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,s,r)}:function(e,t,n,s){void 0===s&&(s=n),e[s]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||(n=function(e){return n=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},n(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i=n(e),a=0;a<i.length;a++)"default"!==i[a]&&s(t,e,i[a]);return r(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),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.GlobPattern=t.RelativePattern=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.InitializeErrorCodes=t.InitializeRequest=t.WorkDoneProgressOptions=t.TextDocumentRegistrationOptions=t.StaticRegistrationOptions=t.PositionEncodingKind=t.RegularExpressionEngineKind=t.FailureHandlingKind=t.ResourceOperationKind=t.UnregistrationRequest=t.RegistrationRequest=t.DocumentSelector=t.NotebookCellTextDocumentFilter=t.NotebookDocumentFilter=t.TextDocumentFilter=void 0,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.CallHierarchyPrepareRequest=t.CallHierarchyOutgoingCallsRequest=t.CallHierarchyIncomingCallsRequest=t.WorkDoneProgressCancelNotification=t.WorkDoneProgressCreateRequest=t.WorkDoneProgress=t.SelectionRangeRequest=t.DeclarationRequest=t.FoldingRangeRefreshRequest=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.DocumentRangesFormattingRequest=t.DocumentRangeFormattingRequest=t.DocumentFormattingRequest=t.DocumentLinkResolveRequest=t.DocumentLinkRequest=t.CodeLensRefreshRequest=t.CodeLensResolveRequest=t.CodeLensRequest=t.WorkspaceSymbolResolveRequest=t.WorkspaceSymbolRequest=t.CodeActionResolveRequest=void 0,t.TextDocumentContentRefreshRequest=t.TextDocumentContentRequest=t.InlineCompletionRequest=t.DidCloseNotebookDocumentNotification=t.DidSaveNotebookDocumentNotification=t.DidChangeNotebookDocumentNotification=t.NotebookCellArrayChange=t.DidOpenNotebookDocumentNotification=t.NotebookDocumentSyncRegistrationType=t.NotebookDocument=t.NotebookCell=t.ExecutionSummary=t.NotebookCellKind=t.DiagnosticRefreshRequest=t.WorkspaceDiagnosticRequest=t.DocumentDiagnosticRequest=t.DocumentDiagnosticReportKind=t.DiagnosticServerCancellationData=t.InlayHintRefreshRequest=t.InlayHintResolveRequest=t.InlayHintRequest=t.InlineValueRefreshRequest=t.InlineValueRequest=t.TypeHierarchySupertypesRequest=t.TypeHierarchySubtypesRequest=t.TypeHierarchyPrepareRequest=t.MonikerRequest=t.MonikerKind=void 0;const a=g(),o=At(),c=i(Y()),l=S();Object.defineProperty(t,"ImplementationRequest",{enumerable:!0,get:function(){return l.ImplementationRequest}});const p=M();Object.defineProperty(t,"TypeDefinitionRequest",{enumerable:!0,get:function(){return p.TypeDefinitionRequest}});const u=U();Object.defineProperty(t,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return u.WorkspaceFoldersRequest}}),Object.defineProperty(t,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return u.DidChangeWorkspaceFoldersNotification}});const d=b();Object.defineProperty(t,"ConfigurationRequest",{enumerable:!0,get:function(){return d.ConfigurationRequest}});const m=E();Object.defineProperty(t,"DocumentColorRequest",{enumerable:!0,get:function(){return m.DocumentColorRequest}}),Object.defineProperty(t,"ColorPresentationRequest",{enumerable:!0,get:function(){return m.ColorPresentationRequest}});const h=A();Object.defineProperty(t,"FoldingRangeRequest",{enumerable:!0,get:function(){return h.FoldingRangeRequest}}),Object.defineProperty(t,"FoldingRangeRefreshRequest",{enumerable:!0,get:function(){return h.FoldingRangeRefreshRequest}});const f=_();Object.defineProperty(t,"DeclarationRequest",{enumerable:!0,get:function(){return f.DeclarationRequest}});const D=R();Object.defineProperty(t,"SelectionRangeRequest",{enumerable:!0,get:function(){return D.SelectionRangeRequest}});const B=F();Object.defineProperty(t,"WorkDoneProgress",{enumerable:!0,get:function(){return B.WorkDoneProgress}}),Object.defineProperty(t,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return B.WorkDoneProgressCreateRequest}}),Object.defineProperty(t,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return B.WorkDoneProgressCancelNotification}});const $=y();Object.defineProperty(t,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return $.CallHierarchyIncomingCallsRequest}}),Object.defineProperty(t,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return $.CallHierarchyOutgoingCallsRequest}}),Object.defineProperty(t,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return $.CallHierarchyPrepareRequest}});const q=k();Object.defineProperty(t,"TokenFormat",{enumerable:!0,get:function(){return q.TokenFormat}}),Object.defineProperty(t,"SemanticTokensRequest",{enumerable:!0,get:function(){return q.SemanticTokensRequest}}),Object.defineProperty(t,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return q.SemanticTokensDeltaRequest}}),Object.defineProperty(t,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return q.SemanticTokensRangeRequest}}),Object.defineProperty(t,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return q.SemanticTokensRefreshRequest}}),Object.defineProperty(t,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return q.SemanticTokensRegistrationType}});const V=C();Object.defineProperty(t,"ShowDocumentRequest",{enumerable:!0,get:function(){return V.ShowDocumentRequest}});const H=w();Object.defineProperty(t,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return H.LinkedEditingRangeRequest}});const Q=v();Object.defineProperty(t,"FileOperationPatternKind",{enumerable:!0,get:function(){return Q.FileOperationPatternKind}}),Object.defineProperty(t,"DidCreateFilesNotification",{enumerable:!0,get:function(){return Q.DidCreateFilesNotification}}),Object.defineProperty(t,"WillCreateFilesRequest",{enumerable:!0,get:function(){return Q.WillCreateFilesRequest}}),Object.defineProperty(t,"DidRenameFilesNotification",{enumerable:!0,get:function(){return Q.DidRenameFilesNotification}}),Object.defineProperty(t,"WillRenameFilesRequest",{enumerable:!0,get:function(){return Q.WillRenameFilesRequest}}),Object.defineProperty(t,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return Q.DidDeleteFilesNotification}}),Object.defineProperty(t,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return Q.WillDeleteFilesRequest}});const G=x();Object.defineProperty(t,"UniquenessLevel",{enumerable:!0,get:function(){return G.UniquenessLevel}}),Object.defineProperty(t,"MonikerKind",{enumerable:!0,get:function(){return G.MonikerKind}}),Object.defineProperty(t,"MonikerRequest",{enumerable:!0,get:function(){return G.MonikerRequest}});const W=j();Object.defineProperty(t,"TypeHierarchyPrepareRequest",{enumerable:!0,get:function(){return W.TypeHierarchyPrepareRequest}}),Object.defineProperty(t,"TypeHierarchySubtypesRequest",{enumerable:!0,get:function(){return W.TypeHierarchySubtypesRequest}}),Object.defineProperty(t,"TypeHierarchySupertypesRequest",{enumerable:!0,get:function(){return W.TypeHierarchySupertypesRequest}});const J=O();Object.defineProperty(t,"InlineValueRequest",{enumerable:!0,get:function(){return J.InlineValueRequest}}),Object.defineProperty(t,"InlineValueRefreshRequest",{enumerable:!0,get:function(){return J.InlineValueRefreshRequest}});const K=I();Object.defineProperty(t,"InlayHintRequest",{enumerable:!0,get:function(){return K.InlayHintRequest}}),Object.defineProperty(t,"InlayHintResolveRequest",{enumerable:!0,get:function(){return K.InlayHintResolveRequest}}),Object.defineProperty(t,"InlayHintRefreshRequest",{enumerable:!0,get:function(){return K.InlayHintRefreshRequest}});const z=T();Object.defineProperty(t,"DiagnosticServerCancellationData",{enumerable:!0,get:function(){return z.DiagnosticServerCancellationData}}),Object.defineProperty(t,"DocumentDiagnosticReportKind",{enumerable:!0,get:function(){return z.DocumentDiagnosticReportKind}}),Object.defineProperty(t,"DocumentDiagnosticRequest",{enumerable:!0,get:function(){return z.DocumentDiagnosticRequest}}),Object.defineProperty(t,"WorkspaceDiagnosticRequest",{enumerable:!0,get:function(){return z.WorkspaceDiagnosticRequest}}),Object.defineProperty(t,"DiagnosticRefreshRequest",{enumerable:!0,get:function(){return z.DiagnosticRefreshRequest}});const Z=N();Object.defineProperty(t,"NotebookCellKind",{enumerable:!0,get:function(){return Z.NotebookCellKind}}),Object.defineProperty(t,"ExecutionSummary",{enumerable:!0,get:function(){return Z.ExecutionSummary}}),Object.defineProperty(t,"NotebookCell",{enumerable:!0,get:function(){return Z.NotebookCell}}),Object.defineProperty(t,"NotebookDocument",{enumerable:!0,get:function(){return Z.NotebookDocument}}),Object.defineProperty(t,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:function(){return Z.NotebookDocumentSyncRegistrationType}}),Object.defineProperty(t,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:function(){return Z.DidOpenNotebookDocumentNotification}}),Object.defineProperty(t,"NotebookCellArrayChange",{enumerable:!0,get:function(){return Z.NotebookCellArrayChange}}),Object.defineProperty(t,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:function(){return Z.DidChangeNotebookDocumentNotification}}),Object.defineProperty(t,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:function(){return Z.DidSaveNotebookDocumentNotification}}),Object.defineProperty(t,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:function(){return Z.DidCloseNotebookDocumentNotification}});const X=P();Object.defineProperty(t,"InlineCompletionRequest",{enumerable:!0,get:function(){return X.InlineCompletionRequest}});const ee=L();var te,ne,se,re,ie,ae,oe,ce,le,pe,ue,de,me,he,fe,ge,ye,Ee,be,_e,Te,ve,Ae,Se,Ie,Pe,Oe,De,we,xe,Ne,Fe,Re,ke,Ce,Le,Me,je,Ue,Ye,Be,$e,qe,Ve,He,Qe,Ge,We,Je,Ke,ze,Ze,Xe,et,tt,nt,st,rt,it,at,ot,ct,lt,pt,ut,dt,mt;Object.defineProperty(t,"TextDocumentContentRequest",{enumerable:!0,get:function(){return ee.TextDocumentContentRequest}}),Object.defineProperty(t,"TextDocumentContentRefreshRequest",{enumerable:!0,get:function(){return ee.TextDocumentContentRefreshRequest}}),function(e){e.is=function(e){const t=e;return c.string(t)||c.string(t.language)||c.string(t.scheme)||Me.is(t.pattern)}}(te||(t.TextDocumentFilter=te={})),function(e){e.is=function(e){const t=e;return c.objectLiteral(t)&&(c.string(t.notebookType)||c.string(t.scheme)||c.string(t.pattern))}}(ne||(t.NotebookDocumentFilter=ne={})),function(e){e.is=function(e){const t=e;return c.objectLiteral(t)&&(c.string(t.notebook)||ne.is(t.notebook))&&(void 0===t.language||c.string(t.language))}}(se||(t.NotebookCellTextDocumentFilter=se={})),function(e){e.is=function(e){if(!Array.isArray(e))return!1;for(const t of e)if(!c.string(t)&&!te.is(t)&&!se.is(t))return!1;return!0}}(re||(t.DocumentSelector=re={})),function(e){e.method="client/registerCapability",e.messageDirection=a.MessageDirection.serverToClient,e.type=new a.ProtocolRequestType(e.method)}(ie||(t.RegistrationRequest=ie={})),function(e){e.method="client/unregisterCapability",e.messageDirection=a.MessageDirection.serverToClient,e.type=new a.ProtocolRequestType(e.method)}(ae||(t.UnregistrationRequest=ae={})),function(e){e.Create="create",e.Rename="rename",e.Delete="delete"}(oe||(t.ResourceOperationKind=oe={})),function(e){e.Abort="abort",e.Transactional="transactional",e.TextOnlyTransactional="textOnlyTransactional",e.Undo="undo"}(ce||(t.FailureHandlingKind=ce={})),function(e){e.ES2020="ES2020"}(le||(t.RegularExpressionEngineKind=le={})),function(e){e.UTF8="utf-8",e.UTF16="utf-16",e.UTF32="utf-32"}(pe||(t.PositionEncodingKind=pe={})),function(e){e.hasId=function(e){const t=e;return t&&c.string(t.id)&&t.id.length>0}}(ue||(t.StaticRegistrationOptions=ue={})),function(e){e.is=function(e){const t=e;return t&&(null===t.documentSelector||re.is(t.documentSelector))}}(de||(t.TextDocumentRegistrationOptions=de={})),function(e){e.is=function(e){const t=e;return c.objectLiteral(t)&&(void 0===t.workDoneProgress||c.boolean(t.workDoneProgress))},e.hasWorkDoneProgress=function(e){const t=e;return t&&c.boolean(t.workDoneProgress)}}(me||(t.WorkDoneProgressOptions=me={})),function(e){e.method="initialize",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method)}(he||(t.InitializeRequest=he={})),function(e){e.unknownProtocolVersion=1}(fe||(t.InitializeErrorCodes=fe={})),function(e){e.method="initialized",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolNotificationType(e.method)}(ge||(t.InitializedNotification=ge={})),function(e){e.method="shutdown",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType0(e.method)}(ye||(t.ShutdownRequest=ye={})),function(e){e.method="exit",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolNotificationType0(e.method)}(Ee||(t.ExitNotification=Ee={})),function(e){e.method="workspace/didChangeConfiguration",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolNotificationType(e.method),e.capabilities=a.CM.create("workspace.didChangeConfiguration",void 0)}(be||(t.DidChangeConfigurationNotification=be={})),function(e){e.Error=1,e.Warning=2,e.Info=3,e.Log=4,e.Debug=5}(_e||(t.MessageType=_e={})),function(e){e.method="window/showMessage",e.messageDirection=a.MessageDirection.serverToClient,e.type=new a.ProtocolNotificationType(e.method),e.capabilities=a.CM.create("window.showMessage",void 0)}(Te||(t.ShowMessageNotification=Te={})),function(e){e.method="window/showMessageRequest",e.messageDirection=a.MessageDirection.serverToClient,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("window.showMessage",void 0)}(ve||(t.ShowMessageRequest=ve={})),function(e){e.method="window/logMessage",e.messageDirection=a.MessageDirection.serverToClient,e.type=new a.ProtocolNotificationType(e.method)}(Ae||(t.LogMessageNotification=Ae={})),function(e){e.method="telemetry/event",e.messageDirection=a.MessageDirection.serverToClient,e.type=new a.ProtocolNotificationType(e.method)}(Se||(t.TelemetryEventNotification=Se={})),function(e){e.None=0,e.Full=1,e.Incremental=2}(Ie||(t.TextDocumentSyncKind=Ie={})),function(e){e.method="textDocument/didOpen",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolNotificationType(e.method),e.capabilities=a.CM.create("textDocument.synchronization","textDocumentSync.openClose")}(Pe||(t.DidOpenTextDocumentNotification=Pe={})),function(e){e.isIncremental=function(e){const t=e;return null!=t&&"string"==typeof t.text&&void 0!==t.range&&(void 0===t.rangeLength||"number"==typeof t.rangeLength)},e.isFull=function(e){const t=e;return null!=t&&"string"==typeof t.text&&void 0===t.range&&void 0===t.rangeLength}}(Oe||(t.TextDocumentContentChangeEvent=Oe={})),function(e){e.method="textDocument/didChange",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolNotificationType(e.method),e.capabilities=a.CM.create("textDocument.synchronization","textDocumentSync")}(De||(t.DidChangeTextDocumentNotification=De={})),function(e){e.method="textDocument/didClose",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolNotificationType(e.method),e.capabilities=a.CM.create("textDocument.synchronization","textDocumentSync.openClose")}(we||(t.DidCloseTextDocumentNotification=we={})),function(e){e.method="textDocument/didSave",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolNotificationType(e.method),e.capabilities=a.CM.create("textDocument.synchronization.didSave","textDocumentSync.save")}(xe||(t.DidSaveTextDocumentNotification=xe={})),function(e){e.Manual=1,e.AfterDelay=2,e.FocusOut=3}(Ne||(t.TextDocumentSaveReason=Ne={})),function(e){e.method="textDocument/willSave",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolNotificationType(e.method),e.capabilities=a.CM.create("textDocument.synchronization.willSave","textDocumentSync.willSave")}(Fe||(t.WillSaveTextDocumentNotification=Fe={})),function(e){e.method="textDocument/willSaveWaitUntil",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.synchronization.willSaveWaitUntil","textDocumentSync.willSaveWaitUntil")}(Re||(t.WillSaveTextDocumentWaitUntilRequest=Re={})),function(e){e.method="workspace/didChangeWatchedFiles",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolNotificationType(e.method),e.capabilities=a.CM.create("workspace.didChangeWatchedFiles",void 0)}(ke||(t.DidChangeWatchedFilesNotification=ke={})),function(e){e.Created=1,e.Changed=2,e.Deleted=3}(Ce||(t.FileChangeType=Ce={})),function(e){e.is=function(e){const t=e;return c.objectLiteral(t)&&(o.URI.is(t.baseUri)||o.WorkspaceFolder.is(t.baseUri))&&c.string(t.pattern)}}(Le||(t.RelativePattern=Le={})),function(e){e.is=function(e){const t=e;return c.string(t)||Le.is(t)}}(Me||(t.GlobPattern=Me={})),function(e){e.Create=1,e.Change=2,e.Delete=4}(je||(t.WatchKind=je={})),function(e){e.method="textDocument/publishDiagnostics",e.messageDirection=a.MessageDirection.serverToClient,e.type=new a.ProtocolNotificationType(e.method),e.capabilities=a.CM.create("textDocument.publishDiagnostics",void 0)}(Ue||(t.PublishDiagnosticsNotification=Ue={})),function(e){e.Invoked=1,e.TriggerCharacter=2,e.TriggerForIncompleteCompletions=3}(Ye||(t.CompletionTriggerKind=Ye={})),function(e){e.method="textDocument/completion",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.completion","completionProvider")}(Be||(t.CompletionRequest=Be={})),function(e){e.method="completionItem/resolve",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.completion.completionItem.resolveSupport","completionProvider.resolveProvider")}($e||(t.CompletionResolveRequest=$e={})),function(e){e.method="textDocument/hover",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.hover","hoverProvider")}(qe||(t.HoverRequest=qe={})),function(e){e.Invoked=1,e.TriggerCharacter=2,e.ContentChange=3}(Ve||(t.SignatureHelpTriggerKind=Ve={})),function(e){e.method="textDocument/signatureHelp",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.signatureHelp","signatureHelpProvider")}(He||(t.SignatureHelpRequest=He={})),function(e){e.method="textDocument/definition",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.definition","definitionProvider")}(Qe||(t.DefinitionRequest=Qe={})),function(e){e.method="textDocument/references",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.references","referencesProvider")}(Ge||(t.ReferencesRequest=Ge={})),function(e){e.method="textDocument/documentHighlight",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.documentHighlight","documentHighlightProvider")}(We||(t.DocumentHighlightRequest=We={})),function(e){e.method="textDocument/documentSymbol",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.documentSymbol","documentSymbolProvider")}(Je||(t.DocumentSymbolRequest=Je={})),function(e){e.method="textDocument/codeAction",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.codeAction","codeActionProvider")}(Ke||(t.CodeActionRequest=Ke={})),function(e){e.method="codeAction/resolve",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.codeAction.resolveSupport","codeActionProvider.resolveProvider")}(ze||(t.CodeActionResolveRequest=ze={})),function(e){e.method="workspace/symbol",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("workspace.symbol","workspaceSymbolProvider")}(Ze||(t.WorkspaceSymbolRequest=Ze={})),function(e){e.method="workspaceSymbol/resolve",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("workspace.symbol.resolveSupport","workspaceSymbolProvider.resolveProvider")}(Xe||(t.WorkspaceSymbolResolveRequest=Xe={})),function(e){e.method="textDocument/codeLens",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.codeLens","codeLensProvider")}(et||(t.CodeLensRequest=et={})),function(e){e.method="codeLens/resolve",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.codeLens.resolveSupport","codeLensProvider.resolveProvider")}(tt||(t.CodeLensResolveRequest=tt={})),function(e){e.method="workspace/codeLens/refresh",e.messageDirection=a.MessageDirection.serverToClient,e.type=new a.ProtocolRequestType0(e.method),e.capabilities=a.CM.create("workspace.codeLens",void 0)}(nt||(t.CodeLensRefreshRequest=nt={})),function(e){e.method="textDocument/documentLink",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.documentLink","documentLinkProvider")}(st||(t.DocumentLinkRequest=st={})),function(e){e.method="documentLink/resolve",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.documentLink","documentLinkProvider.resolveProvider")}(rt||(t.DocumentLinkResolveRequest=rt={})),function(e){e.method="textDocument/formatting",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.formatting","documentFormattingProvider")}(it||(t.DocumentFormattingRequest=it={})),function(e){e.method="textDocument/rangeFormatting",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.rangeFormatting","documentRangeFormattingProvider")}(at||(t.DocumentRangeFormattingRequest=at={})),function(e){e.method="textDocument/rangesFormatting",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.rangeFormatting.rangesSupport","documentRangeFormattingProvider.rangesSupport")}(ot||(t.DocumentRangesFormattingRequest=ot={})),function(e){e.method="textDocument/onTypeFormatting",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.onTypeFormatting","documentOnTypeFormattingProvider")}(ct||(t.DocumentOnTypeFormattingRequest=ct={})),function(e){e.Identifier=1}(lt||(t.PrepareSupportDefaultBehavior=lt={})),function(e){e.method="textDocument/rename",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.rename","renameProvider")}(pt||(t.RenameRequest=pt={})),function(e){e.method="textDocument/prepareRename",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.rename.prepareSupport","renameProvider.prepareProvider")}(ut||(t.PrepareRenameRequest=ut={})),function(e){e.method="workspace/executeCommand",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("workspace.executeCommand","executeCommandProvider")}(dt||(t.ExecuteCommandRequest=dt={})),function(e){e.method="workspace/applyEdit",e.messageDirection=a.MessageDirection.serverToClient,e.type=new a.ProtocolRequestType("workspace/applyEdit"),e.capabilities=a.CM.create("workspace.applyEdit",void 0)}(mt||(t.ApplyWorkspaceEditRequest=mt={}))}),w=__webpack_require__.cw(function(e,t){t.LinkedEditingRangeRequest=void 0;const n=g();var s;!function(e){e.method="textDocument/linkedEditingRange",e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method),e.capabilities=n.CM.create("textDocument.linkedEditingRange","linkedEditingRangeProvider")}(s||(t.LinkedEditingRangeRequest=s={}))}),x=__webpack_require__.cw(function(e,t){t.MonikerRequest=t.MonikerKind=t.UniquenessLevel=void 0;const n=g();var s,r,i;!function(e){e.document="document",e.project="project",e.group="group",e.scheme="scheme",e.global="global"}(s||(t.UniquenessLevel=s={})),function(e){e.$import="import",e.$export="export",e.local="local"}(r||(t.MonikerKind=r={})),function(e){e.method="textDocument/moniker",e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method),e.capabilities=n.CM.create("textDocument.moniker","monikerProvider")}(i||(t.MonikerRequest=i={}))}),N=__webpack_require__.cw(function(e,t){var n,s=this&&this.__createBinding||(Object.create?function(e,t,n,s){void 0===s&&(s=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,s,r)}:function(e,t,n,s){void 0===s&&(s=n),e[s]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||(n=function(e){return n=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},n(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i=n(e),a=0;a<i.length;a++)"default"!==i[a]&&s(t,e,i[a]);return r(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.DidCloseNotebookDocumentNotification=t.DidSaveNotebookDocumentNotification=t.DidChangeNotebookDocumentNotification=t.NotebookCellArrayChange=t.DidOpenNotebookDocumentNotification=t.NotebookDocumentSyncRegistrationType=t.NotebookDocument=t.NotebookCell=t.ExecutionSummary=t.NotebookCellKind=void 0;const a=At(),o=i(Y()),c=g();var l,p,u,d,m,h,f,y,E,b;!function(e){e.Markup=1,e.Code=2,e.is=function(e){return 1===e||2===e}}(l||(t.NotebookCellKind=l={})),function(e){e.create=function(e,t){const n={executionOrder:e};return!0!==t&&!1!==t||(n.success=t),n},e.is=function(e){const t=e;return o.objectLiteral(t)&&a.uinteger.is(t.executionOrder)&&(void 0===t.success||o.boolean(t.success))},e.equals=function(e,t){return e===t||null!=e&&null!=t&&(e.executionOrder===t.executionOrder&&e.success===t.success)}}(p||(t.ExecutionSummary=p={})),function(e){function t(e,n){if(e===n)return!0;if(null==e||null==n)return!1;if(typeof e!=typeof n)return!1;if("object"!=typeof e)return!1;const s=Array.isArray(e),r=Array.isArray(n);if(s!==r)return!1;if(s&&r){if(e.length!==n.length)return!1;for(let s=0;s<e.length;s++)if(!t(e[s],n[s]))return!1}if(o.objectLiteral(e)&&o.objectLiteral(n)){const s=Object.keys(e),r=Object.keys(n);if(s.length!==r.length)return!1;if(s.sort(),r.sort(),!t(s,r))return!1;for(let r=0;r<s.length;r++){const i=s[r];if(!t(e[i],n[i]))return!1}}return!0}e.create=function(e,t){return{kind:e,document:t}},e.is=function(e){const t=e;return o.objectLiteral(t)&&l.is(t.kind)&&a.DocumentUri.is(t.document)&&(void 0===t.metadata||o.objectLiteral(t.metadata))},e.diff=function(e,n){const s=new Set;return e.document!==n.document&&s.add("document"),e.kind!==n.kind&&s.add("kind"),e.executionSummary!==n.executionSummary&&s.add("executionSummary"),void 0===e.metadata&&void 0===n.metadata||t(e.metadata,n.metadata)||s.add("metadata"),void 0===e.executionSummary&&void 0===n.executionSummary||p.equals(e.executionSummary,n.executionSummary)||s.add("executionSummary"),s}}(u||(t.NotebookCell=u={})),function(e){e.create=function(e,t,n,s){return{uri:e,notebookType:t,version:n,cells:s}},e.is=function(e){const t=e;return o.objectLiteral(t)&&o.string(t.uri)&&a.integer.is(t.version)&&o.typedArray(t.cells,u.is)}}(d||(t.NotebookDocument=d={})),function(e){e.method="notebookDocument/sync",e.messageDirection=c.MessageDirection.clientToServer,e.type=new c.RegistrationType(e.method)}(m||(t.NotebookDocumentSyncRegistrationType=m={})),function(e){e.method="notebookDocument/didOpen",e.messageDirection=c.MessageDirection.clientToServer,e.type=new c.ProtocolNotificationType(e.method),e.registrationMethod=m.method}(h||(t.DidOpenNotebookDocumentNotification=h={})),function(e){e.is=function(e){const t=e;return o.objectLiteral(t)&&a.uinteger.is(t.start)&&a.uinteger.is(t.deleteCount)&&(void 0===t.cells||o.typedArray(t.cells,u.is))},e.create=function(e,t,n){const s={start:e,deleteCount:t};return void 0!==n&&(s.cells=n),s}}(f||(t.NotebookCellArrayChange=f={})),function(e){e.method="notebookDocument/didChange",e.messageDirection=c.MessageDirection.clientToServer,e.type=new c.ProtocolNotificationType(e.method),e.registrationMethod=m.method}(y||(t.DidChangeNotebookDocumentNotification=y={})),function(e){e.method="notebookDocument/didSave",e.messageDirection=c.MessageDirection.clientToServer,e.type=new c.ProtocolNotificationType(e.method),e.registrationMethod=m.method}(E||(t.DidSaveNotebookDocumentNotification=E={})),function(e){e.method="notebookDocument/didClose",e.messageDirection=c.MessageDirection.clientToServer,e.type=new c.ProtocolNotificationType(e.method),e.registrationMethod=m.method}(b||(t.DidCloseNotebookDocumentNotification=b={}))}),F=__webpack_require__.cw(function(t,n){n.WorkDoneProgressCancelNotification=n.WorkDoneProgressCreateRequest=n.WorkDoneProgress=void 0;const s=e(),r=g();var i,a,o;!function(e){e.type=new s.ProgressType,e.is=function(t){return t===e.type}}(i||(n.WorkDoneProgress=i={})),function(e){e.method="window/workDoneProgress/create",e.messageDirection=r.MessageDirection.serverToClient,e.type=new r.ProtocolRequestType(e.method),e.capabilities=r.CM.create("window.workDoneProgress",void 0)}(a||(n.WorkDoneProgressCreateRequest=a={})),function(e){e.method="window/workDoneProgress/cancel",e.messageDirection=r.MessageDirection.clientToServer,e.type=new r.ProtocolNotificationType(e.method)}(o||(n.WorkDoneProgressCancelNotification=o={}))}),R=__webpack_require__.cw(function(e,t){t.SelectionRangeRequest=void 0;const n=g();var s;!function(e){e.method="textDocument/selectionRange",e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method),e.capabilities=n.CM.create("textDocument.selectionRange","selectionRangeProvider")}(s||(t.SelectionRangeRequest=s={}))}),k=__webpack_require__.cw(function(e,t){t.SemanticTokensRefreshRequest=t.SemanticTokensRangeRequest=t.SemanticTokensDeltaRequest=t.SemanticTokensRequest=t.SemanticTokensRegistrationType=t.TokenFormat=void 0;const n=g();var s,r,i,a,o,c;!function(e){e.Relative="relative"}(s||(t.TokenFormat=s={})),function(e){e.method="textDocument/semanticTokens",e.type=new n.RegistrationType(e.method)}(r||(t.SemanticTokensRegistrationType=r={})),function(e){e.method="textDocument/semanticTokens/full",e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method),e.registrationMethod=r.method,e.capabilities=n.CM.create("textDocument.semanticTokens","semanticTokensProvider")}(i||(t.SemanticTokensRequest=i={})),function(e){e.method="textDocument/semanticTokens/full/delta",e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method),e.registrationMethod=r.method,e.capabilities=n.CM.create("textDocument.semanticTokens.requests.full.delta","semanticTokensProvider.full.delta")}(a||(t.SemanticTokensDeltaRequest=a={})),function(e){e.method="textDocument/semanticTokens/range",e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method),e.registrationMethod=r.method,e.capabilities=n.CM.create("textDocument.semanticTokens.requests.range","semanticTokensProvider.range")}(o||(t.SemanticTokensRangeRequest=o={})),function(e){e.method="workspace/semanticTokens/refresh",e.messageDirection=n.MessageDirection.serverToClient,e.type=new n.ProtocolRequestType0(e.method),e.capabilities=n.CM.create("workspace.semanticTokens.refreshSupport",void 0)}(c||(t.SemanticTokensRefreshRequest=c={}))}),C=__webpack_require__.cw(function(e,t){t.ShowDocumentRequest=void 0;const n=g();var s;!function(e){e.method="window/showDocument",e.messageDirection=n.MessageDirection.serverToClient,e.type=new n.ProtocolRequestType(e.method),e.capabilities=n.CM.create("window.showDocument.support",void 0)}(s||(t.ShowDocumentRequest=s={}))}),L=__webpack_require__.cw(function(e,t){t.TextDocumentContentRefreshRequest=t.TextDocumentContentRequest=void 0;const n=g();var s,r;!function(e){e.method="workspace/textDocumentContent",e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method),e.capabilities=n.CM.create("workspace.textDocumentContent","workspace.textDocumentContent")}(s||(t.TextDocumentContentRequest=s={})),function(e){e.method="workspace/textDocumentContent/refresh",e.messageDirection=n.MessageDirection.serverToClient,e.type=new n.ProtocolRequestType(e.method)}(r||(t.TextDocumentContentRefreshRequest=r={}))}),M=__webpack_require__.cw(function(e,t){t.TypeDefinitionRequest=void 0;const n=g();var s;!function(e){e.method="textDocument/typeDefinition",e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method),e.capabilities=n.CM.create("textDocument.typeDefinition","typeDefinitionProvider")}(s||(t.TypeDefinitionRequest=s={}))}),j=__webpack_require__.cw(function(e,t){t.TypeHierarchySubtypesRequest=t.TypeHierarchySupertypesRequest=t.TypeHierarchyPrepareRequest=void 0;const n=g();var s,r,i;!function(e){e.method="textDocument/prepareTypeHierarchy",e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method),e.capabilities=n.CM.create("textDocument.typeHierarchy","typeHierarchyProvider")}(s||(t.TypeHierarchyPrepareRequest=s={})),function(e){e.method="typeHierarchy/supertypes",e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method)}(r||(t.TypeHierarchySupertypesRequest=r={})),function(e){e.method="typeHierarchy/subtypes",e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method)}(i||(t.TypeHierarchySubtypesRequest=i={}))}),U=__webpack_require__.cw(function(e,t){t.DidChangeWorkspaceFoldersNotification=t.WorkspaceFoldersRequest=void 0;const n=g();var s,r;!function(e){e.method="workspace/workspaceFolders",e.messageDirection=n.MessageDirection.serverToClient,e.type=new n.ProtocolRequestType0(e.method),e.capabilities=n.CM.create("workspace.workspaceFolders","workspace.workspaceFolders")}(s||(t.WorkspaceFoldersRequest=s={})),function(e){e.method="workspace/didChangeWorkspaceFolders",e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolNotificationType(e.method),e.capabilities=n.CM.create(void 0,"workspace.workspaceFolders.changeNotifications")}(r||(t.DidChangeWorkspaceFoldersNotification=r={}))}),Y=()=>__webpack_require__(444),B=__webpack_require__.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n=Q(),s=W(),r=G(),i=oe(),a=K(),o=Z(),c="errorMessage",l=new n.Name("emUsed"),p={required:"missingProperty",dependencies:"property",dependentRequired:"property"},u=/\$\{[^}]+\}/,d=/\$\{([^}]+)\}/g,m=/^""\s*\+\s*|\s*\+\s*""$/g;function h(e){return{keyword:c,schemaType:["string","object"],post:!0,code(t){const{gen:h,data:f,schema:g,schemaValue:y,it:E}=t;if(!1===E.createErrors)return;const b=g,_=s.strConcat(o.default.instancePath,E.errorPath);function T(e,t){return s.and(n._`${e}.keyword !== ${c}`,n._`!${e}.${l}`,n._`${e}.instancePath === ${_}`,n._`${e}.keyword in ${t}`,n._`${e}.schemaPath.indexOf(${E.errSchemaPath}) === 0`,n._`/^\\/[^\\/]*$/.test(${e}.schemaPath.slice(${E.errSchemaPath.length}))`)}function v(e,t){const n=[];for(const s in e){const e=t[s];u.test(e)&&n.push([s,S(e)])}return h.object(...n)}function A(e){return u.test(e)?new r._Code(r.safeStringify(e).replace(d,(e,t)=>`" + JSON.stringify(${i.getData(t,E)}) + "`).replace(m,"")):n.stringify(e)}function S(e){return n._`function(){return ${A(e)}}`}h.if(n._`${o.default.errors} > 0`,()=>{if("object"==typeof b){const[r,i]=function(e){let t,n;for(const s in e){if("properties"===s||"items"===s)continue;const r=e[s];if("object"==typeof r){t||(t={});const e=t[s]={};for(const t in r)e[t]=[]}else n||(n={}),n[s]=[]}return[t,n]}(b);i&&function(s){const r=h.const("emErrors",n.stringify(s)),i=h.const("templates",v(s,g));h.forOf("err",o.default.vErrors,e=>h.if(T(e,r),()=>h.code(n._`${r}[${e}.keyword].push(${e})`).assign(n._`${e}.${l}`,!0)));const{singleError:c}=e;if(c){const e=h.let("message",n._`""`),s=h.let("paramsErrors",n._`[]`);p(t=>{h.if(e,()=>h.code(n._`${e} += ${"string"==typeof c?c:";"}`)),h.code(n._`${e} += ${u(t)}`),h.assign(s,n._`${s}.concat(${r}[${t}])`)}),a.reportError(t,{message:e,params:n._`{errors: ${s}}`})}else p(e=>a.reportError(t,{message:u(e),params:n._`{errors: ${r}[${e}]}`}));function p(e){h.forIn("key",r,t=>h.if(n._`${r}[${t}].length`,()=>e(t)))}function u(e){return n._`${e} in ${i} ? ${i}[${e}]() : ${y}[${e}]`}}(i),r&&function(e){const s=h.const("emErrors",n.stringify(e)),r=[];for(const t in e)r.push([t,v(e[t],g[t])]);const i=h.const("templates",h.object(...r)),c=h.scopeValue("obj",{ref:p,code:n.stringify(p)}),u=h.let("emPropParams"),d=h.let("emParamsErrors");h.forOf("err",o.default.vErrors,e=>h.if(T(e,s),()=>{h.assign(u,n._`${c}[${e}.keyword]`),h.assign(d,n._`${s}[${e}.keyword][${e}.params[${u}]]`),h.if(d,()=>h.code(n._`${d}.push(${e})`).assign(n._`${e}.${l}`,!0))})),h.forIn("key",s,e=>h.forIn("keyProp",n._`${s}[${e}]`,r=>{h.assign(d,n._`${s}[${e}][${r}]`),h.if(n._`${d}.length`,()=>{const s=h.const("tmpl",n._`${i}[${e}] && ${i}[${e}][${r}]`);a.reportError(t,{message:n._`${s} ? ${s}() : ${y}[${e}][${r}]`,params:n._`{errors: ${d}}`})})}))}(r),function(e){const{props:r,items:i}=e;if(!r&&!i)return;const p=n._`typeof ${f} == "object"`,u=n._`Array.isArray(${f})`,d=h.let("emErrors");let m,E;const b=h.let("templates");r&&i?(m=h.let("emChildKwd"),h.if(p),h.if(u,()=>{T(i,g.items),h.assign(m,n.str`items`)},()=>{T(r,g.properties),h.assign(m,n.str`properties`)}),E=n._`[${m}]`):i?(h.if(u),T(i,g.items),E=n._`.items`):r&&(h.if(s.and(p,s.not(u))),T(r,g.properties),E=n._`.properties`);function T(e,t){h.assign(d,n.stringify(e)),h.assign(b,v(e,t))}h.forOf("err",o.default.vErrors,e=>function(e,t,r){h.if(s.and(n._`${e}.keyword !== ${c}`,n._`!${e}.${l}`,n._`${e}.instancePath.indexOf(${_}) === 0`),()=>{const s=h.scopeValue("pattern",{ref:/^\/([^/]*)(?:\/|$)/,code:n._`new RegExp("^\\\/([^/]*)(?:\\\/|$)")`}),i=h.const("emMatches",n._`${s}.exec(${e}.instancePath.slice(${_}.length))`),a=h.const("emChild",n._`${i} && ${i}[1].replace(/~1/g, "/").replace(/~0/g, "~")`);h.if(n._`${a} !== undefined && ${a} in ${t}`,()=>r(a))})}(e,d,t=>h.code(n._`${d}[${t}].push(${e})`).assign(n._`${e}.${l}`,!0))),h.forIn("key",d,e=>h.if(n._`${d}[${e}].length`,()=>{a.reportError(t,{message:n._`${e} in ${b} ? ${b}[${e}]() : ${y}${E}[${e}]`,params:n._`{errors: ${d}[${e}]}`}),h.assign(n._`${o.default.vErrors}[${o.default.errors}-1].instancePath`,n._`${_} + "/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`)})),h.endIf()}(function({properties:e,items:t}){const n={};if(e){n.props={};for(const t in e)n.props[t]=[]}if(t){n.items={};for(let e=0;e<t.length;e++)n.items[e]=[]}return n}(b))}const r="string"==typeof b?b:b._;r&&function(e){const r=h.const("emErrs",n._`[]`);h.forOf("err",o.default.vErrors,e=>h.if(function(e){return s.and(n._`${e}.keyword !== ${c}`,n._`!${e}.${l}`,s.or(n._`${e}.instancePath === ${_}`,s.and(n._`${e}.instancePath.indexOf(${_}) === 0`,n._`${e}.instancePath[${_}.length] === "/"`)),n._`${e}.schemaPath.indexOf(${E.errSchemaPath}) === 0`,n._`${e}.schemaPath[${E.errSchemaPath}.length] === "/"`)}(e),()=>h.code(n._`${r}.push(${e})`).assign(n._`${e}.${l}`,!0))),h.if(n._`${r}.length`,()=>a.reportError(t,{message:A(e),params:n._`{errors: ${r}}`}))}(r),e.keepErrors||function(){const e=h.const("emErrs",n._`[]`);h.forOf("err",o.default.vErrors,t=>h.if(n._`!${t}.${l}`,()=>h.code(n._`${e}.push(${t})`))),h.assign(o.default.vErrors,e).assign(o.default.errors,n._`${e}.length`)}()})},metaSchema:{anyOf:[{type:"string"},{type:"object",properties:{properties:{$ref:"#/$defs/stringMap"},items:{$ref:"#/$defs/stringList"},required:{$ref:"#/$defs/stringOrMap"},dependencies:{$ref:"#/$defs/stringOrMap"}},additionalProperties:{type:"string"}}],$defs:{stringMap:{type:"object",additionalProperties:{type:"string"}},stringOrMap:{anyOf:[{type:"string"},{$ref:"#/$defs/stringMap"}]},stringList:{type:"array",items:{type:"string"}}}}}}const f=(e,t={})=>{if(!e.opts.allErrors)throw new Error("ajv-errors: Ajv option allErrors must be true");if(e.opts.jsPropertySyntax)throw new Error("ajv-errors: ajv option jsPropertySyntax is not supported");return e.addKeyword(h(t))};t.default=f,e.exports=f,e.exports.default=f}),$=__webpack_require__.cw(function(e,t){function n(e,t){return{validate:e,compare:t}}t.formatNames=t.fastFormats=t.fullFormats=void 0,t.fullFormats={date:n(i,a),time:n(c(!0),l),"date-time":n(d(!0),m),"iso-time":n(c(),p),"iso-date-time":n(d(),h),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:function(e){return f.test(e)&&g.test(e)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:function(e){if(T.test(e))return!1;try{return new RegExp(e),!0}catch(e){return!1}},uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:function(e){return y.lastIndex=0,y.test(e)},int32:{type:"number",validate:function(e){return Number.isInteger(e)&&e<=b&&e>=E}},int64:{type:"number",validate:function(e){return Number.isInteger(e)}},float:{type:"number",validate:_},double:{type:"number",validate:_},password:!0,binary:!0},t.fastFormats={...t.fullFormats,date:n(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,a),time:n(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,l),"date-time":n(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,m),"iso-time":n(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,p),"iso-date-time":n(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,h),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},t.formatNames=Object.keys(t.fullFormats);const s=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,r=[0,31,28,31,30,31,30,31,31,30,31,30,31];function i(e){const t=s.exec(e);if(!t)return!1;const n=+t[1],i=+t[2],a=+t[3];return i>=1&&i<=12&&a>=1&&a<=(2===i&&function(e){return e%4==0&&(e%100!=0||e%400==0)}(n)?29:r[i])}function a(e,t){if(e&&t)return e>t?1:e<t?-1:0}const o=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function c(e){return function(t){const n=o.exec(t);if(!n)return!1;const s=+n[1],r=+n[2],i=+n[3],a=n[4],c="-"===n[5]?-1:1,l=+(n[6]||0),p=+(n[7]||0);if(l>23||p>59||e&&!a)return!1;if(s<=23&&r<=59&&i<60)return!0;const u=r-p*c,d=s-l*c-(u<0?1:0);return(23===d||-1===d)&&(59===u||-1===u)&&i<61}}function l(e,t){if(!e||!t)return;const n=new Date("2020-01-01T"+e).valueOf(),s=new Date("2020-01-01T"+t).valueOf();return n&&s?n-s:void 0}function p(e,t){if(!e||!t)return;const n=o.exec(e),s=o.exec(t);return n&&s?(e=n[1]+n[2]+n[3])>(t=s[1]+s[2]+s[3])?1:e<t?-1:0:void 0}const u=/t|\s/i;function d(e){const t=c(e);return function(e){const n=e.split(u);return 2===n.length&&i(n[0])&&t(n[1])}}function m(e,t){if(!e||!t)return;const n=new Date(e).valueOf(),s=new Date(t).valueOf();return n&&s?n-s:void 0}function h(e,t){if(!e||!t)return;const[n,s]=e.split(u),[r,i]=t.split(u),o=a(n,r);return void 0!==o?o||l(s,i):void 0}const f=/\/|:/,g=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;const y=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;const E=-(2**31),b=2**31-1;function _(){return!0}const T=/[^\\]\\Z/}),q=__webpack_require__.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n=$(),s=V(),r=W(),i=new r.Name("fullFormats"),a=new r.Name("fastFormats"),o=(e,t={keywords:!0})=>{if(Array.isArray(t))return c(e,t,n.fullFormats,i),e;const[r,o]="fast"===t.mode?[n.fastFormats,a]:[n.fullFormats,i];return c(e,t.formats||n.formatNames,r,o),t.keywords&&(0,s.default)(e),e};function c(e,t,n,s){var i,a;null!==(i=(a=e.opts.code).formats)&&void 0!==i||(a.formats=r._`require("ajv-formats/dist/formats").${s}`);for(const s of t)e.addFormat(s,n[s])}o.get=(e,t="full")=>{const s=("fast"===t?n.fastFormats:n.fullFormats)[e];if(!s)throw new Error(`Unknown format "${e}"`);return s},e.exports=t=o,Object.defineProperty(t,"__esModule",{value:!0}),t.default=o}),V=__webpack_require__.cw(function(e,t){t.A=void 0;const n=Q(),s=W(),r=s.operators,i={formatMaximum:{okStr:"<=",ok:r.LTE,fail:r.GT},formatMinimum:{okStr:">=",ok:r.GTE,fail:r.LT},formatExclusiveMaximum:{okStr:"<",ok:r.LT,fail:r.GTE},formatExclusiveMinimum:{okStr:">",ok:r.GT,fail:r.LTE}},a={message:({keyword:e,schemaCode:t})=>s.str`should be ${i[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>s._`{comparison: ${i[e].okStr}, limit: ${t}}`};t.A={keyword:Object.keys(i),type:"string",schemaType:"string",$data:!0,error:a,code(e){const{gen:t,data:r,schemaCode:a,keyword:o,it:c}=e,{opts:l,self:p}=c;if(!l.validateFormats)return;const u=new n.KeywordCxt(c,p.RULES.all.format.definition,"format");function d(e){return s._`${e}.compare(${r}, ${a}) ${i[o].fail} 0`}u.$data?function(){const n=t.scopeValue("formats",{ref:p.formats,code:l.code.formats}),r=t.const("fmt",s._`${n}[${u.schemaCode}]`);e.fail$data((0,s.or)(s._`typeof ${r} != "object"`,s._`${r} instanceof RegExp`,s._`typeof ${r}.compare != "function"`,d(r)))}():function(){const n=u.schema,r=p.formats[n];if(!r||!0===r)return;if("object"!=typeof r||r instanceof RegExp||"function"!=typeof r.compare)throw new Error(`"${o}": format "${n}" does not define "compare" function`);const i=t.scopeValue("formats",{key:n,ref:r,code:l.code.formats?s._`${l.code.formats}${(0,s.getProperty)(n)}`:void 0});e.fail$data(d(i))}()},dependencies:["format"]};t.default=e=>(e.addKeyword(t.A),e)}),H=__webpack_require__.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv2020=void 0;const n=pe(),s=Ye(),r=je(),i=ue(),a="https://json-schema.org/draft/2020-12/schema";class o extends n.default{constructor(e={}){super({...e,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),s.default.forEach(e=>this.addVocabulary(e)),this.opts.discriminator&&this.addKeyword(r.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();const{$data:e,meta:t}=this.opts;t&&(i.default.call(this,e),this.refs["http://json-schema.org/schema"]=a)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(a)?a:void 0)}}t.Ajv2020=o,e.exports=t=o,e.exports.Ajv2020=o,Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var c=oe();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var l=W();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return l._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return l.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return l.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return l.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return l.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return l.CodeGen}});var p=fe();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return p.default}});var u=X();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return u.default}})}),Q=__webpack_require__.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const n=pe(),s=Be(),r=je(),i=Rt(),a=["/properties"],o="http://json-schema.org/draft-07/schema";class c extends n.default{_addVocabularies(){super._addVocabularies(),s.default.forEach(e=>this.addVocabulary(e)),this.opts.discriminator&&this.addKeyword(r.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const e=this.opts.$data?this.$dataMetaSchema(i,a):i;this.addMetaSchema(e,o,!1),this.refs["http://json-schema.org/schema"]=o}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(o)?o:void 0)}}t.Ajv=c,e.exports=t=c,e.exports.Ajv=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var l=oe();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var p=W();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return p._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return p.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return p.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return p.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return p.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return p.CodeGen}});var u=fe();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return u.default}});var d=X();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return d.default}})}),G=__webpack_require__.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.regexpCode=t.getEsmExportName=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;class n{}t._CodeOrName=n,t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class s extends n{constructor(e){if(super(),!t.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}t.Name=s;class r extends n{constructor(e){super(),this._items="string"==typeof e?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const e=this._items[0];return""===e||'""'===e}get str(){var e;return null!==(e=this._str)&&void 0!==e?e:this._str=this._items.reduce((e,t)=>`${e}${t}`,"")}get names(){var e;return null!==(e=this._names)&&void 0!==e?e:this._names=this._items.reduce((e,t)=>(t instanceof s&&(e[t.str]=(e[t.str]||0)+1),e),{})}}function i(e,...t){const n=[e[0]];let s=0;for(;s<t.length;)c(n,t[s]),n.push(e[++s]);return new r(n)}t._Code=r,t.nil=new r(""),t._=i;const a=new r("+");function o(e,...t){const n=[p(e[0])];let s=0;for(;s<t.length;)n.push(a),c(n,t[s]),n.push(a,p(e[++s]));return function(e){let t=1;for(;t<e.length-1;){if(e[t]===a){const n=l(e[t-1],e[t+1]);if(void 0!==n){e.splice(t-1,3,n);continue}e[t++]="+"}t++}}(n),new r(n)}function c(e,t){var n;t instanceof r?e.push(...t._items):t instanceof s?e.push(t):e.push("number"==typeof(n=t)||"boolean"==typeof n||null===n?n:p(Array.isArray(n)?n.join(","):n))}function l(e,t){if('""'===t)return e;if('""'===e)return t;if("string"==typeof e){if(t instanceof s||'"'!==e[e.length-1])return;return"string"!=typeof t?`${e.slice(0,-1)}${t}"`:'"'===t[0]?e.slice(0,-1)+t.slice(1):void 0}return"string"!=typeof t||'"'!==t[0]||e instanceof s?void 0:`"${e}${t.slice(1)}`}function p(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}t.str=o,t.addCodeArg=c,t.strConcat=function(e,t){return t.emptyStr()?e:e.emptyStr()?t:o`${e}${t}`},t.stringify=function(e){return new r(p(e))},t.safeStringify=p,t.getProperty=function(e){return"string"==typeof e&&t.IDENTIFIER.test(e)?new r(`.${e}`):i`[${e}]`},t.getEsmExportName=function(e){if("string"==typeof e&&t.IDENTIFIER.test(e))return new r(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)},t.regexpCode=function(e){return new r(e.toString())}}),W=__webpack_require__.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;const n=G(),s=J();var r=G();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return r.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return r.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return r.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return r.Name}});var i=J();Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return i.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return i.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return i.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return i.varKinds}}),t.operators={GT:new n._Code(">"),GTE:new n._Code(">="),LT:new n._Code("<"),LTE:new n._Code("<="),EQ:new n._Code("==="),NEQ:new n._Code("!=="),NOT:new n._Code("!"),OR:new n._Code("||"),AND:new n._Code("&&"),ADD:new n._Code("+")};class a{optimizeNodes(){return this}optimizeNames(e,t){return this}}class o extends a{constructor(e,t,n){super(),this.varKind=e,this.name=t,this.rhs=n}render({es5:e,_n:t}){const n=e?s.varKinds.var:this.varKind,r=void 0===this.rhs?"":` = ${this.rhs}`;return`${n} ${this.name}${r};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=x(this.rhs,e,t)),this}get names(){return this.rhs instanceof n._CodeOrName?this.rhs.names:{}}}class c extends a{constructor(e,t,n){super(),this.lhs=e,this.rhs=t,this.sideEffects=n}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,t){if(!(this.lhs instanceof n.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=x(this.rhs,e,t),this}get names(){return w(this.lhs instanceof n.Name?{}:{...this.lhs.names},this.rhs)}}class l extends c{constructor(e,t,n,s){super(e,n,s),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class p extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class u extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}}class d extends a{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class m extends a{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=x(this.code,e,t),this}get names(){return this.code instanceof n._CodeOrName?this.code.names:{}}}class h extends a{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce((t,n)=>t+n.render(e),"")}optimizeNodes(){const{nodes:e}=this;let t=e.length;for(;t--;){const n=e[t].optimizeNodes();Array.isArray(n)?e.splice(t,1,...n):n?e[t]=n:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){const{nodes:n}=this;let s=n.length;for(;s--;){const r=n[s];r.optimizeNames(e,t)||(N(e,r.names),n.splice(s,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((e,t)=>D(e,t.names),{})}}class f extends h{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class g extends h{}class y extends f{}y.kind="else";class E extends f{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+="else "+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(!0===e)return this.nodes;let t=this.else;if(t){const e=t.optimizeNodes();t=this.else=Array.isArray(e)?new y(e):e}return t?!1===e?t instanceof E?t:t.nodes:this.nodes.length?this:new E(F(e),t instanceof E?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,t){var n;if(this.else=null===(n=this.else)||void 0===n?void 0:n.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=x(this.condition,e,t),this}get names(){const e=super.names;return w(e,this.condition),this.else&&D(e,this.else.names),e}}E.kind="if";class b extends f{}b.kind="for";class _ extends b{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=x(this.iteration,e,t),this}get names(){return D(super.names,this.iteration.names)}}class T extends b{constructor(e,t,n,s){super(),this.varKind=e,this.name=t,this.from=n,this.to=s}render(e){const t=e.es5?s.varKinds.var:this.varKind,{name:n,from:r,to:i}=this;return`for(${t} ${n}=${r}; ${n}<${i}; ${n}++)`+super.render(e)}get names(){const e=w(super.names,this.from);return w(e,this.to)}}class v extends b{constructor(e,t,n,s){super(),this.loop=e,this.varKind=t,this.name=n,this.iterable=s}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=x(this.iterable,e,t),this}get names(){return D(super.names,this.iterable.names)}}class A extends f{constructor(e,t,n){super(),this.name=e,this.args=t,this.async=n}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}}A.kind="func";class S extends h{render(e){return"return "+super.render(e)}}S.kind="return";class I extends f{render(e){let t="try"+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),null===(e=this.catch)||void 0===e||e.optimizeNodes(),null===(t=this.finally)||void 0===t||t.optimizeNodes(),this}optimizeNames(e,t){var n,s;return super.optimizeNames(e,t),null===(n=this.catch)||void 0===n||n.optimizeNames(e,t),null===(s=this.finally)||void 0===s||s.optimizeNames(e,t),this}get names(){const e=super.names;return this.catch&&D(e,this.catch.names),this.finally&&D(e,this.finally.names),e}}class P extends f{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}P.kind="catch";class O extends f{render(e){return"finally"+super.render(e)}}O.kind="finally";function D(e,t){for(const n in t)e[n]=(e[n]||0)+(t[n]||0);return e}function w(e,t){return t instanceof n._CodeOrName?D(e,t.names):e}function x(e,t,s){return e instanceof n.Name?i(e):(r=e)instanceof n._Code&&r._items.some(e=>e instanceof n.Name&&1===t[e.str]&&void 0!==s[e.str])?new n._Code(e._items.reduce((e,t)=>(t instanceof n.Name&&(t=i(t)),t instanceof n._Code?e.push(...t._items):e.push(t),e),[])):e;var r;function i(e){const n=s[e.str];return void 0===n||1!==t[e.str]?e:(delete t[e.str],n)}}function N(e,t){for(const n in t)e[n]=(e[n]||0)-(t[n]||0)}function F(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:n._`!${L(e)}`}t.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?"\n":""},this._extScope=e,this._scope=new s.Scope({parent:e}),this._nodes=[new g]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){const n=this._extScope.value(e,t);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,n,s){const r=this._scope.toName(t);return void 0!==n&&s&&(this._constants[r.str]=n),this._leafNode(new o(e,r,n)),r}const(e,t,n){return this._def(s.varKinds.const,e,t,n)}let(e,t,n){return this._def(s.varKinds.let,e,t,n)}var(e,t,n){return this._def(s.varKinds.var,e,t,n)}assign(e,t,n){return this._leafNode(new c(e,t,n))}add(e,n){return this._leafNode(new l(e,t.operators.ADD,n))}code(e){return"function"==typeof e?e():e!==n.nil&&this._leafNode(new m(e)),this}object(...e){const t=["{"];for(const[s,r]of e)t.length>1&&t.push(","),t.push(s),(s!==r||this.opts.es5)&&(t.push(":"),(0,n.addCodeArg)(t,r));return t.push("}"),new n._Code(t)}if(e,t,n){if(this._blockNode(new E(e)),t&&n)this.code(t).else().code(n).endIf();else if(t)this.code(t).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new E(e))}else(){return this._elseNode(new y)}endIf(){return this._endBlockNode(E,y)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new _(e),t)}forRange(e,t,n,r,i=(this.opts.es5?s.varKinds.var:s.varKinds.let)){const a=this._scope.toName(e);return this._for(new T(i,a,t,n),()=>r(a))}forOf(e,t,r,i=s.varKinds.const){const a=this._scope.toName(e);if(this.opts.es5){const e=t instanceof n.Name?t:this.var("_arr",t);return this.forRange("_i",0,n._`${e}.length`,t=>{this.var(a,n._`${e}[${t}]`),r(a)})}return this._for(new v("of",i,a,t),()=>r(a))}forIn(e,t,r,i=(this.opts.es5?s.varKinds.var:s.varKinds.const)){if(this.opts.ownProperties)return this.forOf(e,n._`Object.keys(${t})`,r);const a=this._scope.toName(e);return this._for(new v("in",i,a,t),()=>r(a))}endFor(){return this._endBlockNode(b)}label(e){return this._leafNode(new p(e))}break(e){return this._leafNode(new u(e))}return(e){const t=new S;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(S)}try(e,t,n){if(!t&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');const s=new I;if(this._blockNode(s),this.code(e),t){const e=this.name("e");this._currNode=s.catch=new P(e),t(e)}return n&&(this._currNode=s.finally=new O,this.code(n)),this._endBlockNode(P,O)}throw(e){return this._leafNode(new d(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){const t=this._blockStarts.pop();if(void 0===t)throw new Error("CodeGen: not in self-balancing block");const n=this._nodes.length-t;if(n<0||void 0!==e&&n!==e)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${e} expected`);return this._nodes.length=t,this}func(e,t=n.nil,s,r){return this._blockNode(new A(e,t,s)),r&&this.code(r).endFunc(),this}endFunc(){return this._endBlockNode(A)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){const n=this._currNode;if(n instanceof e||t&&n instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){const t=this._currNode;if(!(t instanceof E))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const t=this._nodes;t[t.length-1]=e}},t.not=F;const R=C(t.operators.AND);t.and=function(...e){return e.reduce(R)};const k=C(t.operators.OR);function C(e){return(t,s)=>t===n.nil?s:s===n.nil?t:n._`${L(t)} ${e} ${L(s)}`}function L(e){return e instanceof n.Name?e:n._`(${e})`}t.or=function(...e){return e.reduce(k)}}),J=__webpack_require__.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.ValueScope=t.ValueScopeName=t.Scope=t.varKinds=t.UsedValueState=void 0;const n=G();class s extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}}var r;!function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"}(r||(t.UsedValueState=r={})),t.varKinds={const:new n.Name("const"),let:new n.Name("let"),var:new n.Name("var")};class i{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof n.Name?e:this.name(e)}name(e){return new n.Name(this._newName(e))}_newName(e){return`${e}${(this._names[e]||this._nameGroup(e)).index++}`}_nameGroup(e){var t,n;if((null===(n=null===(t=this._parent)||void 0===t?void 0:t._prefixes)||void 0===n?void 0:n.has(e))||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}}t.Scope=i;class a extends n.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:t,itemIndex:s}){this.value=e,this.scopePath=n._`.${new n.Name(t)}[${s}]`}}t.ValueScopeName=a;const o=n._`\n`;t.ValueScope=class extends i{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?o:n.nil}}get(){return this._scope}name(e){return new a(e,this._newName(e))}value(e,t){var n;if(void 0===t.ref)throw new Error("CodeGen: ref must be passed in value");const s=this.toName(e),{prefix:r}=s,i=null!==(n=t.key)&&void 0!==n?n:t.ref;let a=this._values[r];if(a){const e=a.get(i);if(e)return e}else a=this._values[r]=new Map;a.set(i,s);const o=this._scope[r]||(this._scope[r]=[]),c=o.length;return o[c]=t.ref,s.setValue(t,{property:r,itemIndex:c}),s}getValue(e,t){const n=this._values[e];if(n)return n.get(t)}scopeRefs(e,t=this._values){return this._reduceValues(t,t=>{if(void 0===t.scopePath)throw new Error(`CodeGen: name "${t}" has no value`);return n._`${e}${t.scopePath}`})}scopeCode(e=this._values,t,n){return this._reduceValues(e,e=>{if(void 0===e.value)throw new Error(`CodeGen: name "${e}" has no value`);return e.value.code},t,n)}_reduceValues(e,i,a={},o){let c=n.nil;for(const l in e){const p=e[l];if(!p)continue;const u=a[l]=a[l]||new Map;p.forEach(e=>{if(u.has(e))return;u.set(e,r.Started);let a=i(e);if(a){const s=this.opts.es5?t.varKinds.var:t.varKinds.const;c=n._`${c}${s} ${e} = ${a};${this.opts._n}`}else{if(!(a=null==o?void 0:o(e)))throw new s(e);c=n._`${c}${a}${this.opts._n}`}u.set(e,r.Completed)})}return c}}}),K=__webpack_require__.cw(function(e,t){t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.y=void 0;const n=W(),s=ne(),r=Z();function i(e,t){const s=e.const("err",t);e.if(n._`${r.default.vErrors} === null`,()=>e.assign(r.default.vErrors,n._`[${s}]`),n._`${r.default.vErrors}.push(${s})`),e.code(n._`${r.default.errors}++`)}function a(e,t){const{gen:s,validateName:r,schemaEnv:i}=e;i.$async?s.throw(n._`new ${e.ValidationError}(${t})`):(s.assign(n._`${r}.errors`,t),s.return(!1))}t.y={message:({keyword:e})=>n.str`must pass "${e}" keyword validation`},t.keyword$DataError={message:({keyword:e,schemaType:t})=>t?n.str`"${e}" keyword must be ${t} ($data)`:n.str`"${e}" keyword is invalid ($data)`},t.reportError=function(e,s=t.y,r,o){const{it:l}=e,{gen:p,compositeRule:u,allErrors:d}=l,m=c(e,s,r);(null!=o?o:u||d)?i(p,m):a(l,n._`[${m}]`)},t.reportExtraError=function(e,n=t.y,s){const{it:o}=e,{gen:l,compositeRule:p,allErrors:u}=o;i(l,c(e,n,s)),p||u||a(o,r.default.vErrors)},t.resetErrorsCount=function(e,t){e.assign(r.default.errors,t),e.if(n._`${r.default.vErrors} !== null`,()=>e.if(t,()=>e.assign(n._`${r.default.vErrors}.length`,t),()=>e.assign(r.default.vErrors,null)))},t.extendErrors=function({gen:e,keyword:t,schemaValue:s,data:i,errsCount:a,it:o}){if(void 0===a)throw new Error("ajv implementation error");const c=e.name("err");e.forRange("i",a,r.default.errors,a=>{e.const(c,n._`${r.default.vErrors}[${a}]`),e.if(n._`${c}.instancePath === undefined`,()=>e.assign(n._`${c}.instancePath`,(0,n.strConcat)(r.default.instancePath,o.errorPath))),e.assign(n._`${c}.schemaPath`,n.str`${o.errSchemaPath}/${t}`),o.opts.verbose&&(e.assign(n._`${c}.schema`,s),e.assign(n._`${c}.data`,i))})};const o={keyword:new n.Name("keyword"),schemaPath:new n.Name("schemaPath"),params:new n.Name("params"),propertyName:new n.Name("propertyName"),message:new n.Name("message"),schema:new n.Name("schema"),parentSchema:new n.Name("parentSchema")};function c(e,t,s){const{createErrors:i}=e.it;return!1===i?n._`{}`:function(e,t,s={}){const{gen:i,it:a}=e,c=[l(a,s),p(e,s)];return function(e,{params:t,message:s},i){const{keyword:a,data:c,schemaValue:l,it:p}=e,{opts:u,propertyName:d,topSchemaRef:m,schemaPath:h}=p;i.push([o.keyword,a],[o.params,"function"==typeof t?t(e):t||n._`{}`]),u.messages&&i.push([o.message,"function"==typeof s?s(e):s]);u.verbose&&i.push([o.schema,l],[o.parentSchema,n._`${m}${h}`],[r.default.data,c]);d&&i.push([o.propertyName,d])}(e,t,c),i.object(...c)}(e,t,s)}function l({errorPath:e},{instancePath:t}){const i=t?n.str`${e}${(0,s.getErrorPath)(t,s.Type.Str)}`:e;return[r.default.instancePath,(0,n.strConcat)(r.default.instancePath,i)]}function p({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:i}){let a=i?t:n.str`${t}/${e}`;return r&&(a=n.str`${a}${(0,s.getErrorPath)(r,s.Type.Str)}`),[o.schemaPath,a]}}),z=__webpack_require__.cw(function(e,t){t.resolveSchema=t.resolveRef=t.compileSchema=t.SchemaEnv=void 0;const n=W(),s=fe(),r=Z(),i=ee(),a=ne(),o=oe();class c{constructor(e){var t;let n;this.refs={},this.dynamicAnchors={},"object"==typeof e.schema&&(n=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=null!==(t=e.baseId)&&void 0!==t?t:(0,i.normalizeId)(null==n?void 0:n[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=null==n?void 0:n.$async,this.refs={}}}function l(e){const t=u.call(this,e);if(t)return t;const a=(0,i.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:c,lines:l}=this.opts.code,{ownProperties:p}=this.opts,d=new n.CodeGen(this.scope,{es5:c,lines:l,ownProperties:p});let m;e.$async&&(m=d.scopeValue("Error",{ref:s.default,code:n._`require("ajv/dist/runtime/validation_error").default`}));const h=d.scopeName("validate");e.validateName=h;const f={gen:d,allErrors:this.opts.allErrors,data:r.default.data,parentData:r.default.parentData,parentDataProperty:r.default.parentDataProperty,dataNames:[r.default.data],dataPathArr:[n.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:d.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:(0,n.stringify)(e.schema)}:{ref:e.schema}),validateName:h,ValidationError:m,schema:e.schema,schemaEnv:e,rootId:a,baseId:e.baseId||a,schemaPath:n.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:n._`""`,opts:this.opts,self:this};let g;try{this._compilations.add(e),(0,o.validateFunctionCode)(f),d.optimize(this.opts.code.optimize);const t=d.toString();g=`${d.scopeRefs(r.default.scope)}return ${t}`,this.opts.code.process&&(g=this.opts.code.process(g,e));const s=new Function(`${r.default.self}`,`${r.default.scope}`,g)(this,this.scope.get());if(this.scope.value(h,{ref:s}),s.errors=null,s.schema=e.schema,s.schemaEnv=e,e.$async&&(s.$async=!0),!0===this.opts.code.source&&(s.source={validateName:h,validateCode:t,scopeValues:d._values}),this.opts.unevaluated){const{props:e,items:t}=f;s.evaluated={props:e instanceof n.Name?void 0:e,items:t instanceof n.Name?void 0:t,dynamicProps:e instanceof n.Name,dynamicItems:t instanceof n.Name},s.source&&(s.source.evaluated=(0,n.stringify)(s.evaluated))}return e.validate=s,e}catch(t){throw delete e.validate,delete e.validateName,g&&this.logger.error("Error compiling schema, function code:",g),t}finally{this._compilations.delete(e)}}function p(e){return(0,i.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:l.call(this,e)}function u(e){for(const t of this._compilations)if(d(t,e))return t}function d(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function m(e,t){let n;for(;"string"==typeof(n=this.refs[t]);)t=n;return n||this.schemas[t]||h.call(this,e,t)}function h(e,t){const n=this.opts.uriResolver.parse(t),s=(0,i._getFullPath)(this.opts.uriResolver,n);let r=(0,i.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&s===r)return g.call(this,n,e);const a=(0,i.normalizeId)(s),o=this.refs[a]||this.schemas[a];if("string"==typeof o){const t=h.call(this,e,o);if("object"!=typeof(null==t?void 0:t.schema))return;return g.call(this,n,t)}if("object"==typeof(null==o?void 0:o.schema)){if(o.validate||l.call(this,o),a===(0,i.normalizeId)(t)){const{schema:t}=o,{schemaId:n}=this.opts,s=t[n];return s&&(r=(0,i.resolveUrl)(this.opts.uriResolver,r,s)),new c({schema:t,schemaId:n,root:e,baseId:r})}return g.call(this,n,o)}}t.SchemaEnv=c,t.compileSchema=l,t.resolveRef=function(e,t,n){var s;n=(0,i.resolveUrl)(this.opts.uriResolver,t,n);const r=e.refs[n];if(r)return r;let a=m.call(this,e,n);if(void 0===a){const r=null===(s=e.localRefs)||void 0===s?void 0:s[n],{schemaId:i}=this.opts;r&&(a=new c({schema:r,schemaId:i,root:e,baseId:t}))}return void 0!==a?e.refs[n]=p.call(this,a):void 0},t.resolveSchema=h;const f=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function g(e,{baseId:t,schema:n,root:s}){var r;if("/"!==(null===(r=e.fragment)||void 0===r?void 0:r[0]))return;for(const s of e.fragment.slice(1).split("/")){if("boolean"==typeof n)return;const e=n[(0,a.unescapeFragment)(s)];if(void 0===e)return;const r="object"==typeof(n=e)&&n[this.opts.schemaId];!f.has(s)&&r&&(t=(0,i.resolveUrl)(this.opts.uriResolver,t,r))}let o;if("boolean"!=typeof n&&n.$ref&&!(0,a.schemaHasRulesButRef)(n,this.RULES)){const e=(0,i.resolveUrl)(this.opts.uriResolver,t,n.$ref);o=h.call(this,s,e)}const{schemaId:l}=this.opts;return o=o||new c({schema:n,schemaId:l,root:s,baseId:t}),o.schema!==o.root.schema?o:void 0}}),Z=__webpack_require__.cw(function(e,t){const n=W(),s={data:new n.Name("data"),valCxt:new n.Name("valCxt"),instancePath:new n.Name("instancePath"),parentData:new n.Name("parentData"),parentDataProperty:new n.Name("parentDataProperty"),rootData:new n.Name("rootData"),dynamicAnchors:new n.Name("dynamicAnchors"),vErrors:new n.Name("vErrors"),errors:new n.Name("errors"),this:new n.Name("this"),self:new n.Name("self"),scope:new n.Name("scope"),json:new n.Name("json"),jsonPos:new n.Name("jsonPos"),jsonLen:new n.Name("jsonLen"),jsonPart:new n.Name("jsonPart")};t.default=s}),X=__webpack_require__.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n=ee();class s extends Error{constructor(e,t,s,r){super(r||`can't resolve reference ${s} from id ${t}`),this.missingRef=(0,n.resolveUrl)(e,t,s),this.missingSchema=(0,n.normalizeId)((0,n.getFullPath)(e,this.missingRef))}}t.default=s}),ee=__webpack_require__.cw(function(e,t){t.getSchemaRefs=t.resolveUrl=t.normalizeId=t._getFullPath=t.getFullPath=t.inlineRef=void 0;const n=ne(),s=mt(),r=ht(),i=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);t.inlineRef=function(e,t=!0){return"boolean"==typeof e||(!0===t?!o(e):!!t&&c(e)<=t)};const a=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function o(e){for(const t in e){if(a.has(t))return!0;const n=e[t];if(Array.isArray(n)&&n.some(o))return!0;if("object"==typeof n&&o(n))return!0}return!1}function c(e){let t=0;for(const s in e){if("$ref"===s)return 1/0;if(t++,!i.has(s)&&("object"==typeof e[s]&&(0,n.eachItem)(e[s],e=>t+=c(e)),t===1/0))return 1/0}return t}function l(e,t="",n){!1!==n&&(t=d(t));const s=e.parse(t);return p(e,s)}function p(e,t){return e.serialize(t).split("#")[0]+"#"}t.getFullPath=l,t._getFullPath=p;const u=/#\/?$/;function d(e){return e?e.replace(u,""):""}t.normalizeId=d,t.resolveUrl=function(e,t,n){return n=d(n),e.resolve(t,n)};const m=/^[a-z_][-a-z0-9._]*$/i;t.getSchemaRefs=function(e,t){if("boolean"==typeof e)return{};const{schemaId:n,uriResolver:i}=this.opts,a=d(e[n]||t),o={"":a},c=l(i,a,!1),p={},u=new Set;return r(e,{allKeys:!0},(e,t,s,r)=>{if(void 0===r)return;const i=c+t;let a=o[r];function l(t){const n=this.opts.uriResolver.resolve;if(t=d(a?n(a,t):t),u.has(t))throw f(t);u.add(t);let s=this.refs[t];return"string"==typeof s&&(s=this.refs[s]),"object"==typeof s?h(e,s.schema,t):t!==d(i)&&("#"===t[0]?(h(e,p[t],t),p[t]=e):this.refs[t]=i),t}function g(e){if("string"==typeof e){if(!m.test(e))throw new Error(`invalid anchor "${e}"`);l.call(this,`#${e}`)}}"string"==typeof e[n]&&(a=l.call(this,e[n])),g.call(this,e.$anchor),g.call(this,e.$dynamicAnchor),o[t]=a}),p;function h(e,t,n){if(void 0!==t&&!s(e,t))throw f(n)}function f(e){return new Error(`reference "${e}" resolves to more than one schema`)}}}),te=__webpack_require__.cw(function(e,t){t.getRules=t.isJSONType=void 0;const n=new Set(["string","number","integer","boolean","null","object","array"]);t.isJSONType=function(e){return"string"==typeof e&&n.has(e)},t.getRules=function(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}}),ne=__webpack_require__.cw(function(e,t){t.checkStrictMode=t.getErrorPath=t.Type=t.useFunc=t.evaluatedPropsToName=t.mergeEvaluated=t.eachItem=t.unescapeJsonPointer=t.escapeFragment=t.unescapeFragment=t.schemaRefOrVal=t.schemaHasRulesButRef=t.checkUnknownRules=t.alwaysValidSchema=t.toHash=void 0;const n=W(),s=G();function r(e,t=e.schema){const{opts:n,self:s}=e;if(!n.strictSchema)return;if("boolean"==typeof t)return;const r=s.RULES.keywords;for(const n in t)r[n]||m(e,`unknown keyword: "${n}"`)}function i(e,t){if("boolean"==typeof e)return!e;for(const n in e)if(t[n])return!0;return!1}function a(e){return"number"==typeof e?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function o(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function c({mergeNames:e,mergeToName:t,mergeValues:s,resultToName:r}){return(i,a,o,c)=>{const l=void 0===o?a:o instanceof n.Name?(a instanceof n.Name?e(i,a,o):t(i,a,o),o):a instanceof n.Name?(t(i,o,a),a):s(a,o);return c!==n.Name||l instanceof n.Name?l:r(i,l)}}function l(e,t){if(!0===t)return e.var("props",!0);const s=e.var("props",n._`{}`);return void 0!==t&&p(e,s,t),s}function p(e,t,s){Object.keys(s).forEach(s=>e.assign(n._`${t}${(0,n.getProperty)(s)}`,!0))}t.toHash=function(e){const t={};for(const n of e)t[n]=!0;return t},t.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(r(e,t),!i(t,e.self.RULES.all))},t.checkUnknownRules=r,t.schemaHasRulesButRef=function(e,t){if("boolean"==typeof e)return!e;for(const n in e)if("$ref"!==n&&t.all[n])return!0;return!1},t.schemaRefOrVal=function({topSchemaRef:e,schemaPath:t},s,r,i){if(!i){if("number"==typeof s||"boolean"==typeof s)return s;if("string"==typeof s)return n._`${s}`}return n._`${e}${t}${(0,n.getProperty)(r)}`},t.unescapeFragment=function(e){return o(decodeURIComponent(e))},t.escapeFragment=function(e){return encodeURIComponent(a(e))},t.unescapeJsonPointer=o,t.eachItem=function(e,t){if(Array.isArray(e))for(const n of e)t(n);else t(e)},t.mergeEvaluated={props:c({mergeNames:(e,t,s)=>e.if(n._`${s} !== true && ${t} !== undefined`,()=>{e.if(n._`${t} === true`,()=>e.assign(s,!0),()=>e.assign(s,n._`${s} || {}`).code(n._`Object.assign(${s}, ${t})`))}),mergeToName:(e,t,s)=>e.if(n._`${s} !== true`,()=>{!0===t?e.assign(s,!0):(e.assign(s,n._`${s} || {}`),p(e,s,t))}),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:l}),items:c({mergeNames:(e,t,s)=>e.if(n._`${s} !== true && ${t} !== undefined`,()=>e.assign(s,n._`${t} === true ? true : ${s} > ${t} ? ${s} : ${t}`)),mergeToName:(e,t,s)=>e.if(n._`${s} !== true`,()=>e.assign(s,!0===t||n._`${s} > ${t} ? ${s} : ${t}`)),mergeValues:(e,t)=>!0===e||Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})},t.evaluatedPropsToName=l;const u={};var d;function m(e,t,n=e.opts.strictSchema){if(n){if(t=`strict mode: ${t}`,!0===n)throw new Error(t);e.self.logger.warn(t)}}t.useFunc=function(e,t){return e.scopeValue("func",{ref:t,code:u[t.code]||(u[t.code]=new s._Code(t.code))})},function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"}(d||(t.Type=d={})),t.getErrorPath=function(e,t,s){if(e instanceof n.Name){const r=t===d.Num;return s?r?n._`"[" + ${e} + "]"`:n._`"['" + ${e} + "']"`:r?n._`"/" + ${e}`:n._`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return s?(0,n.getProperty)(e).toString():"/"+a(e)},t.checkStrictMode=m}),se=__webpack_require__.cw(function(e,t){function n(e,t){return t.rules.some(t=>s(e,t))}function s(e,t){var n;return void 0!==e[t.keyword]||(null===(n=t.definition.implements)||void 0===n?void 0:n.some(t=>void 0!==e[t]))}t.shouldUseRule=t.shouldUseGroup=t.schemaHasRulesForType=void 0,t.schemaHasRulesForType=function({schema:e,self:t},s){const r=t.RULES.types[s];return r&&!0!==r&&n(e,r)},t.shouldUseGroup=n,t.shouldUseRule=s}),re=__webpack_require__.cw(function(e,t){t.boolOrEmptySchema=t.topBoolOrEmptySchema=void 0;const n=K(),s=W(),r=Z(),i={message:"boolean schema is false"};function a(e,t){const{gen:s,data:r}=e,a={gen:s,keyword:"false schema",data:r,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,n.reportError)(a,i,void 0,t)}t.topBoolOrEmptySchema=function(e){const{gen:t,schema:n,validateName:i}=e;!1===n?a(e,!1):"object"==typeof n&&!0===n.$async?t.return(r.default.data):(t.assign(s._`${i}.errors`,null),t.return(!0))},t.boolOrEmptySchema=function(e,t){const{gen:n,schema:s}=e;!1===s?(n.var(t,!1),a(e)):n.var(t,!0)}}),ie=__webpack_require__.cw(function(e,t){t.reportTypeError=t.checkDataTypes=t.checkDataType=t.coerceAndCheckDataType=t.getJSONTypes=t.getSchemaTypes=t.DataType=void 0;const n=te(),s=se(),r=K(),i=W(),a=ne();var o;function c(e){const t=Array.isArray(e)?e:e?[e]:[];if(t.every(n.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}!function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"}(o||(t.DataType=o={})),t.getSchemaTypes=function(e){const t=c(e.type);if(t.includes("null")){if(!1===e.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&void 0!==e.nullable)throw new Error('"nullable" cannot be used without "type"');!0===e.nullable&&t.push("null")}return t},t.getJSONTypes=c,t.coerceAndCheckDataType=function(e,t){const{gen:n,data:r,opts:a}=e,c=function(e,t){return t?e.filter(e=>l.has(e)||"array"===t&&"array"===e):[]}(t,a.coerceTypes),p=t.length>0&&!(0===c.length&&1===t.length&&(0,s.schemaHasRulesForType)(e,t[0]));if(p){const s=u(t,r,a.strictNumbers,o.Wrong);n.if(s,()=>{c.length?function(e,t,n){const{gen:s,data:r,opts:a}=e,o=s.let("dataType",i._`typeof ${r}`),c=s.let("coerced",i._`undefined`);"array"===a.coerceTypes&&s.if(i._`${o} == 'object' && Array.isArray(${r}) && ${r}.length == 1`,()=>s.assign(r,i._`${r}[0]`).assign(o,i._`typeof ${r}`).if(u(t,r,a.strictNumbers),()=>s.assign(c,r)));s.if(i._`${c} !== undefined`);for(const e of n)(l.has(e)||"array"===e&&"array"===a.coerceTypes)&&p(e);function p(e){switch(e){case"string":return void s.elseIf(i._`${o} == "number" || ${o} == "boolean"`).assign(c,i._`"" + ${r}`).elseIf(i._`${r} === null`).assign(c,i._`""`);case"number":return void s.elseIf(i._`${o} == "boolean" || ${r} === null
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.arazzoValidator=t():e.arazzoValidator=t()}(self,()=>(()=>{var __webpack_modules__={863(e,t){"use strict";function n(e){return"string"==typeof e||e instanceof String}function s(e){return Array.isArray(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.boolean=function(e){return!0===e||!1===e},t.string=n,t.number=function(e){return"number"==typeof e||e instanceof Number},t.error=function(e){return e instanceof Error},t.func=function(e){return"function"==typeof e},t.array=s,t.stringArray=function(e){return s(e)&&e.every(e=>n(e))}},104(e,t){"use strict";let n;function s(){if(void 0===n)throw new Error("No runtime abstraction layer installed");return n}Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.install=function(e){if(void 0===e)throw new Error("No runtime abstraction layer provided");n=e}}(s||(s={})),t.default=s},444(e,t){"use strict";function n(e){return"string"==typeof e||e instanceof String}function s(e){return Array.isArray(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.boolean=function(e){return!0===e||!1===e},t.string=n,t.number=function(e){return"number"==typeof e||e instanceof Number},t.error=function(e){return e instanceof Error},t.func=function(e){return"function"==typeof e},t.array=s,t.stringArray=function(e){return s(e)&&e.every(e=>n(e))},t.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)},t.objectLiteral=function(e){return null!==e&&"object"==typeof e}},838(e,t){var n=/~/,s=/~[01]/g;function r(e){switch(e){case"~1":return"/";case"~0":return"~"}throw new Error("Invalid tilde escape: "+e)}function i(e){return n.test(e)?e.replace(s,r):e}function a(e){if("string"==typeof e){if(""===(e=e.split("/"))[0])return e;throw new Error("Invalid JSON pointer.")}if(Array.isArray(e)){for(const t of e)if("string"!=typeof t&&"number"!=typeof t)throw new Error("Invalid JSON pointer. Must be of type string or number.");return e}throw new Error("Invalid JSON pointer.")}function o(e,t){if("object"!=typeof e)throw new Error("Invalid input object.");var n=(t=a(t)).length;if(1===n)return e;for(var s=1;s<n;){if(e=e[i(t[s++])],n===s)return e;if("object"!=typeof e||null===e)return}}function c(e,t,n){if("object"!=typeof e)throw new Error("Invalid input object.");if(0===(t=a(t)).length)throw new Error("Invalid JSON pointer for set.");return function(e,t,n){for(var s,r,a=1,o=t.length;a<o;){if("constructor"===t[a]||"prototype"===t[a]||"__proto__"===t[a])return e;if(s=i(t[a++]),r=o>a,void 0===e[s]&&(Array.isArray(e)&&"-"===s&&(s=e.length),r&&(""!==t[a]&&t[a]<1/0||"-"===t[a]?e[s]=[]:e[s]={})),!r)break;e=e[s]}var c=e[s];return void 0===n?delete e[s]:e[s]=n,c}(e,t,n)}t.get=o,t.set=c,t.compile=function(e){var t=a(e);return{get:function(e){return o(e,t)},set:function(e,n){return c(e,t,n)}}}},841(){},907(e){var t,n,s=e.exports={};function r(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===r||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:r}catch(e){t=r}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var o,c=[],l=!1,p=-1;function u(){l&&o&&(l=!1,o.length?c=o.concat(c):p=-1,c.length&&d())}function d(){if(!l){var e=a(u);l=!0;for(var t=c.length;t;){for(o=c,c=[];++p<t;)o&&o[p].run();p=-1,t=c.length}o=null,l=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function h(){}s.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new m(e,t)),1!==c.length||l||a(d)},m.prototype.run=function(){this.fun.apply(null,this.array)},s.title="browser",s.browser=!0,s.env={},s.argv=[],s.version="",s.versions={},s.on=h,s.addListener=h,s.once=h,s.off=h,s.removeListener=h,s.removeAllListeners=h,s.emit=h,s.prependListener=h,s.prependOnceListener=h,s.listeners=function(e){return[]},s.binding=function(e){throw new Error("process.binding is not supported")},s.cwd=function(){return"/"},s.chdir=function(e){throw new Error("process.chdir is not supported")},s.umask=function(){return 0}},167(){},451(){},333(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{TM:()=>Language,iX:()=>Parser});var __defProp=Object.defineProperty,__name=(e,t)=>__defProp(e,"name",{value:t,configurable:!0}),Edit=class{static{__name(this,"Edit")}startPosition;oldEndPosition;newEndPosition;startIndex;oldEndIndex;newEndIndex;constructor({startIndex:e,oldEndIndex:t,newEndIndex:n,startPosition:s,oldEndPosition:r,newEndPosition:i}){this.startIndex=e>>>0,this.oldEndIndex=t>>>0,this.newEndIndex=n>>>0,this.startPosition=s,this.oldEndPosition=r,this.newEndPosition=i}editPoint(e,t){let n=t;const s={...e};if(t>=this.oldEndIndex){n=this.newEndIndex+(t-this.oldEndIndex);const r=e.row;s.row=this.newEndPosition.row+(e.row-this.oldEndPosition.row),s.column=r===this.oldEndPosition.row?this.newEndPosition.column+(e.column-this.oldEndPosition.column):e.column}else t>this.startIndex&&(n=this.newEndIndex,s.row=this.newEndPosition.row,s.column=this.newEndPosition.column);return{point:s,index:n}}editRange(e){const t={startIndex:e.startIndex,startPosition:{...e.startPosition},endIndex:e.endIndex,endPosition:{...e.endPosition}};return e.endIndex>=this.oldEndIndex?e.endIndex!==Number.MAX_SAFE_INTEGER&&(t.endIndex=this.newEndIndex+(e.endIndex-this.oldEndIndex),t.endPosition={row:this.newEndPosition.row+(e.endPosition.row-this.oldEndPosition.row),column:e.endPosition.row===this.oldEndPosition.row?this.newEndPosition.column+(e.endPosition.column-this.oldEndPosition.column):e.endPosition.column},t.endIndex<this.newEndIndex&&(t.endIndex=Number.MAX_SAFE_INTEGER,t.endPosition={row:Number.MAX_SAFE_INTEGER,column:Number.MAX_SAFE_INTEGER})):e.endIndex>this.startIndex&&(t.endIndex=this.startIndex,t.endPosition={...this.startPosition}),e.startIndex>=this.oldEndIndex?(t.startIndex=this.newEndIndex+(e.startIndex-this.oldEndIndex),t.startPosition={row:this.newEndPosition.row+(e.startPosition.row-this.oldEndPosition.row),column:e.startPosition.row===this.oldEndPosition.row?this.newEndPosition.column+(e.startPosition.column-this.oldEndPosition.column):e.startPosition.column},t.startIndex<this.newEndIndex&&(t.startIndex=Number.MAX_SAFE_INTEGER,t.startPosition={row:Number.MAX_SAFE_INTEGER,column:Number.MAX_SAFE_INTEGER})):e.startIndex>this.startIndex&&(t.startIndex=this.startIndex,t.startPosition={...this.startPosition}),t}},SIZE_OF_SHORT=2,SIZE_OF_INT=4,SIZE_OF_CURSOR=4*SIZE_OF_INT,SIZE_OF_NODE=5*SIZE_OF_INT,SIZE_OF_POINT=2*SIZE_OF_INT,SIZE_OF_RANGE=2*SIZE_OF_INT+2*SIZE_OF_POINT,ZERO_POINT={row:0,column:0},INTERNAL=Symbol("INTERNAL"),C;function assertInternal(e){if(e!==INTERNAL)throw new Error("Illegal constructor")}function isPoint(e){return!!e&&"number"==typeof e.row&&"number"==typeof e.column}function setModule(e){C=e}__name(assertInternal,"assertInternal"),__name(isPoint,"isPoint"),__name(setModule,"setModule");var LookaheadIterator=class{static{__name(this,"LookaheadIterator")}0=0;language;constructor(e,t,n){assertInternal(e),this[0]=t,this.language=n}get currentTypeId(){return C._ts_lookahead_iterator_current_symbol(this[0])}get currentType(){return this.language.types[this.currentTypeId]||"ERROR"}delete(){C._ts_lookahead_iterator_delete(this[0]),this[0]=0}reset(e,t){return!!C._ts_lookahead_iterator_reset(this[0],e[0],t)&&(this.language=e,!0)}resetState(e){return Boolean(C._ts_lookahead_iterator_reset_state(this[0],e))}[Symbol.iterator](){return{next:__name(()=>C._ts_lookahead_iterator_next(this[0])?{done:!1,value:this.currentType}:{done:!0,value:""},"next")}}};function getText(e,t,n,s){const r=n-t;let i=e.textCallback(t,s);if(i){for(t+=i.length;t<n;){const n=e.textCallback(t,s);if(!(n&&n.length>0))break;t+=n.length,i+=n}t>n&&(i=i.slice(0,r))}return i??""}__name(getText,"getText");var Tree=class e{static{__name(this,"Tree")}0=0;textCallback;language;constructor(e,t,n,s){assertInternal(e),this[0]=t,this.language=n,this.textCallback=s}copy(){const t=C._ts_tree_copy(this[0]);return new e(INTERNAL,t,this.language,this.textCallback)}delete(){C._ts_tree_delete(this[0]),this[0]=0}get rootNode(){return C._ts_tree_root_node_wasm(this[0]),unmarshalNode(this)}rootNodeWithOffset(e,t){const n=TRANSFER_BUFFER+SIZE_OF_NODE;return C.setValue(n,e,"i32"),marshalPoint(n+SIZE_OF_INT,t),C._ts_tree_root_node_with_offset_wasm(this[0]),unmarshalNode(this)}edit(e){marshalEdit(e),C._ts_tree_edit_wasm(this[0])}walk(){return this.rootNode.walk()}getChangedRanges(t){if(!(t instanceof e))throw new TypeError("Argument must be a Tree");C._ts_tree_get_changed_ranges_wasm(this[0],t[0]);const n=C.getValue(TRANSFER_BUFFER,"i32"),s=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),r=new Array(n);if(n>0){let e=s;for(let t=0;t<n;t++)r[t]=unmarshalRange(e),e+=SIZE_OF_RANGE;C._free(s)}return r}getIncludedRanges(){C._ts_tree_included_ranges_wasm(this[0]);const e=C.getValue(TRANSFER_BUFFER,"i32"),t=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),n=new Array(e);if(e>0){let s=t;for(let t=0;t<e;t++)n[t]=unmarshalRange(s),s+=SIZE_OF_RANGE;C._free(t)}return n}},TreeCursor=class e{static{__name(this,"TreeCursor")}0=0;1=0;2=0;3=0;tree;constructor(e,t){assertInternal(e),this.tree=t,unmarshalTreeCursor(this)}copy(){const t=new e(INTERNAL,this.tree);return C._ts_tree_cursor_copy_wasm(this.tree[0]),unmarshalTreeCursor(t),t}delete(){marshalTreeCursor(this),C._ts_tree_cursor_delete_wasm(this.tree[0]),this[0]=this[1]=this[2]=0}get currentNode(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_wasm(this.tree[0]),unmarshalNode(this.tree)}get currentFieldId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_field_id_wasm(this.tree[0])}get currentFieldName(){return this.tree.language.fields[this.currentFieldId]}get currentDepth(){return marshalTreeCursor(this),C._ts_tree_cursor_current_depth_wasm(this.tree[0])}get currentDescendantIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_current_descendant_index_wasm(this.tree[0])}get nodeType(){return this.tree.language.types[this.nodeTypeId]||"ERROR"}get nodeTypeId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_type_id_wasm(this.tree[0])}get nodeStateId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_state_id_wasm(this.tree[0])}get nodeId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_id_wasm(this.tree[0])}get nodeIsNamed(){return marshalTreeCursor(this),1===C._ts_tree_cursor_current_node_is_named_wasm(this.tree[0])}get nodeIsMissing(){return marshalTreeCursor(this),1===C._ts_tree_cursor_current_node_is_missing_wasm(this.tree[0])}get nodeText(){marshalTreeCursor(this);const e=C._ts_tree_cursor_start_index_wasm(this.tree[0]),t=C._ts_tree_cursor_end_index_wasm(this.tree[0]);C._ts_tree_cursor_start_position_wasm(this.tree[0]);const n=unmarshalPoint(TRANSFER_BUFFER);return getText(this.tree,e,t,n)}get startPosition(){return marshalTreeCursor(this),C._ts_tree_cursor_start_position_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get endPosition(){return marshalTreeCursor(this),C._ts_tree_cursor_end_position_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get startIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_start_index_wasm(this.tree[0])}get endIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_end_index_wasm(this.tree[0])}gotoFirstChild(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_first_child_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoLastChild(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_last_child_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoParent(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_parent_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoNextSibling(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_next_sibling_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoPreviousSibling(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_previous_sibling_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoDescendant(e){marshalTreeCursor(this),C._ts_tree_cursor_goto_descendant_wasm(this.tree[0],e),unmarshalTreeCursor(this)}gotoFirstChildForIndex(e){marshalTreeCursor(this),C.setValue(TRANSFER_BUFFER+SIZE_OF_CURSOR,e,"i32");const t=C._ts_tree_cursor_goto_first_child_for_index_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===t}gotoFirstChildForPosition(e){marshalTreeCursor(this),marshalPoint(TRANSFER_BUFFER+SIZE_OF_CURSOR,e);const t=C._ts_tree_cursor_goto_first_child_for_position_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===t}reset(e){marshalNode(e),marshalTreeCursor(this,TRANSFER_BUFFER+SIZE_OF_NODE),C._ts_tree_cursor_reset_wasm(this.tree[0]),unmarshalTreeCursor(this)}resetTo(e){marshalTreeCursor(this,TRANSFER_BUFFER),marshalTreeCursor(e,TRANSFER_BUFFER+SIZE_OF_CURSOR),C._ts_tree_cursor_reset_to_wasm(this.tree[0],e.tree[0]),unmarshalTreeCursor(this)}},Node=class{static{__name(this,"Node")}0=0;_children;_namedChildren;constructor(e,{id:t,tree:n,startIndex:s,startPosition:r,other:i}){assertInternal(e),this[0]=i,this.id=t,this.tree=n,this.startIndex=s,this.startPosition=r}id;startIndex;startPosition;tree;get typeId(){return marshalNode(this),C._ts_node_symbol_wasm(this.tree[0])}get grammarId(){return marshalNode(this),C._ts_node_grammar_symbol_wasm(this.tree[0])}get type(){return this.tree.language.types[this.typeId]||"ERROR"}get grammarType(){return this.tree.language.types[this.grammarId]||"ERROR"}get isNamed(){return marshalNode(this),1===C._ts_node_is_named_wasm(this.tree[0])}get isExtra(){return marshalNode(this),1===C._ts_node_is_extra_wasm(this.tree[0])}get isError(){return marshalNode(this),1===C._ts_node_is_error_wasm(this.tree[0])}get isMissing(){return marshalNode(this),1===C._ts_node_is_missing_wasm(this.tree[0])}get hasChanges(){return marshalNode(this),1===C._ts_node_has_changes_wasm(this.tree[0])}get hasError(){return marshalNode(this),1===C._ts_node_has_error_wasm(this.tree[0])}get endIndex(){return marshalNode(this),C._ts_node_end_index_wasm(this.tree[0])}get endPosition(){return marshalNode(this),C._ts_node_end_point_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get text(){return getText(this.tree,this.startIndex,this.endIndex,this.startPosition)}get parseState(){return marshalNode(this),C._ts_node_parse_state_wasm(this.tree[0])}get nextParseState(){return marshalNode(this),C._ts_node_next_parse_state_wasm(this.tree[0])}equals(e){return this.tree===e.tree&&this.id===e.id}child(e){return marshalNode(this),C._ts_node_child_wasm(this.tree[0],e),unmarshalNode(this.tree)}namedChild(e){return marshalNode(this),C._ts_node_named_child_wasm(this.tree[0],e),unmarshalNode(this.tree)}childForFieldId(e){return marshalNode(this),C._ts_node_child_by_field_id_wasm(this.tree[0],e),unmarshalNode(this.tree)}childForFieldName(e){const t=this.tree.language.fields.indexOf(e);return-1!==t?this.childForFieldId(t):null}fieldNameForChild(e){marshalNode(this);const t=C._ts_node_field_name_for_child_wasm(this.tree[0],e);return t?C.AsciiToString(t):null}fieldNameForNamedChild(e){marshalNode(this);const t=C._ts_node_field_name_for_named_child_wasm(this.tree[0],e);return t?C.AsciiToString(t):null}childrenForFieldName(e){const t=this.tree.language.fields.indexOf(e);return-1!==t&&0!==t?this.childrenForFieldId(t):[]}childrenForFieldId(e){marshalNode(this),C._ts_node_children_by_field_id_wasm(this.tree[0],e);const t=C.getValue(TRANSFER_BUFFER,"i32"),n=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),s=new Array(t);if(t>0){let e=n;for(let n=0;n<t;n++)s[n]=unmarshalNode(this.tree,e),e+=SIZE_OF_NODE;C._free(n)}return s}firstChildForIndex(e){marshalNode(this);const t=TRANSFER_BUFFER+SIZE_OF_NODE;return C.setValue(t,e,"i32"),C._ts_node_first_child_for_byte_wasm(this.tree[0]),unmarshalNode(this.tree)}firstNamedChildForIndex(e){marshalNode(this);const t=TRANSFER_BUFFER+SIZE_OF_NODE;return C.setValue(t,e,"i32"),C._ts_node_first_named_child_for_byte_wasm(this.tree[0]),unmarshalNode(this.tree)}get childCount(){return marshalNode(this),C._ts_node_child_count_wasm(this.tree[0])}get namedChildCount(){return marshalNode(this),C._ts_node_named_child_count_wasm(this.tree[0])}get firstChild(){return this.child(0)}get firstNamedChild(){return this.namedChild(0)}get lastChild(){return this.child(this.childCount-1)}get lastNamedChild(){return this.namedChild(this.namedChildCount-1)}get children(){if(!this._children){marshalNode(this),C._ts_node_children_wasm(this.tree[0]);const e=C.getValue(TRANSFER_BUFFER,"i32"),t=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32");if(this._children=new Array(e),e>0){let n=t;for(let t=0;t<e;t++)this._children[t]=unmarshalNode(this.tree,n),n+=SIZE_OF_NODE;C._free(t)}}return this._children}get namedChildren(){if(!this._namedChildren){marshalNode(this),C._ts_node_named_children_wasm(this.tree[0]);const e=C.getValue(TRANSFER_BUFFER,"i32"),t=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32");if(this._namedChildren=new Array(e),e>0){let n=t;for(let t=0;t<e;t++)this._namedChildren[t]=unmarshalNode(this.tree,n),n+=SIZE_OF_NODE;C._free(t)}}return this._namedChildren}descendantsOfType(e,t=ZERO_POINT,n=ZERO_POINT){Array.isArray(e)||(e=[e]);const s=[],r=this.tree.language.types;for(const t of e)"ERROR"==t&&s.push(65535);for(let t=0,n=r.length;t<n;t++)e.includes(r[t])&&s.push(t);const i=C._malloc(SIZE_OF_INT*s.length);for(let e=0,t=s.length;e<t;e++)C.setValue(i+e*SIZE_OF_INT,s[e],"i32");marshalNode(this),C._ts_node_descendants_of_type_wasm(this.tree[0],i,s.length,t.row,t.column,n.row,n.column);const a=C.getValue(TRANSFER_BUFFER,"i32"),o=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),c=new Array(a);if(a>0){let e=o;for(let t=0;t<a;t++)c[t]=unmarshalNode(this.tree,e),e+=SIZE_OF_NODE}return C._free(o),C._free(i),c}get nextSibling(){return marshalNode(this),C._ts_node_next_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get previousSibling(){return marshalNode(this),C._ts_node_prev_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get nextNamedSibling(){return marshalNode(this),C._ts_node_next_named_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get previousNamedSibling(){return marshalNode(this),C._ts_node_prev_named_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get descendantCount(){return marshalNode(this),C._ts_node_descendant_count_wasm(this.tree[0])}get parent(){return marshalNode(this),C._ts_node_parent_wasm(this.tree[0]),unmarshalNode(this.tree)}childWithDescendant(e){return marshalNode(this),marshalNode(e,1),C._ts_node_child_with_descendant_wasm(this.tree[0]),unmarshalNode(this.tree)}descendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");marshalNode(this);const n=TRANSFER_BUFFER+SIZE_OF_NODE;return C.setValue(n,e,"i32"),C.setValue(n+SIZE_OF_INT,t,"i32"),C._ts_node_descendant_for_index_wasm(this.tree[0]),unmarshalNode(this.tree)}namedDescendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");marshalNode(this);const n=TRANSFER_BUFFER+SIZE_OF_NODE;return C.setValue(n,e,"i32"),C.setValue(n+SIZE_OF_INT,t,"i32"),C._ts_node_named_descendant_for_index_wasm(this.tree[0]),unmarshalNode(this.tree)}descendantForPosition(e,t=e){if(!isPoint(e)||!isPoint(t))throw new Error("Arguments must be {row, column} objects");marshalNode(this);const n=TRANSFER_BUFFER+SIZE_OF_NODE;return marshalPoint(n,e),marshalPoint(n+SIZE_OF_POINT,t),C._ts_node_descendant_for_position_wasm(this.tree[0]),unmarshalNode(this.tree)}namedDescendantForPosition(e,t=e){if(!isPoint(e)||!isPoint(t))throw new Error("Arguments must be {row, column} objects");marshalNode(this);const n=TRANSFER_BUFFER+SIZE_OF_NODE;return marshalPoint(n,e),marshalPoint(n+SIZE_OF_POINT,t),C._ts_node_named_descendant_for_position_wasm(this.tree[0]),unmarshalNode(this.tree)}walk(){return marshalNode(this),C._ts_tree_cursor_new_wasm(this.tree[0]),new TreeCursor(INTERNAL,this.tree)}edit(e){if(this.startIndex>=e.oldEndIndex){let t,n;this.startIndex=e.newEndIndex+(this.startIndex-e.oldEndIndex),this.startPosition.row>e.oldEndPosition.row?(t=this.startPosition.row-e.oldEndPosition.row,n=this.startPosition.column):(t=0,n=this.startPosition.column,this.startPosition.column>=e.oldEndPosition.column&&(n=this.startPosition.column-e.oldEndPosition.column)),t>0?(this.startPosition.row+=t,this.startPosition.column=n):this.startPosition.column+=n}else this.startIndex>e.startIndex&&(this.startIndex=e.newEndIndex,this.startPosition.row=e.newEndPosition.row,this.startPosition.column=e.newEndPosition.column)}toString(){marshalNode(this);const e=C._ts_node_to_string_wasm(this.tree[0]),t=C.AsciiToString(e);return C._free(e),t}};function unmarshalCaptures(e,t,n,s,r){for(let i=0,a=r.length;i<a;i++){const a=C.getValue(n,"i32"),o=unmarshalNode(t,n+=SIZE_OF_INT);n+=SIZE_OF_NODE,r[i]={patternIndex:s,name:e.captureNames[a],node:o}}return n}function marshalNode(e,t=0){let n=TRANSFER_BUFFER+t*SIZE_OF_NODE;C.setValue(n,e.id,"i32"),n+=SIZE_OF_INT,C.setValue(n,e.startIndex,"i32"),n+=SIZE_OF_INT,C.setValue(n,e.startPosition.row,"i32"),n+=SIZE_OF_INT,C.setValue(n,e.startPosition.column,"i32"),n+=SIZE_OF_INT,C.setValue(n,e[0],"i32")}function unmarshalNode(e,t=TRANSFER_BUFFER){const n=C.getValue(t,"i32");if(t+=SIZE_OF_INT,0===n)return null;const s=C.getValue(t,"i32");t+=SIZE_OF_INT;const r=C.getValue(t,"i32");t+=SIZE_OF_INT;const i=C.getValue(t,"i32");t+=SIZE_OF_INT;const a=C.getValue(t,"i32");return new Node(INTERNAL,{id:n,tree:e,startIndex:s,startPosition:{row:r,column:i},other:a})}function marshalTreeCursor(e,t=TRANSFER_BUFFER){C.setValue(t+0*SIZE_OF_INT,e[0],"i32"),C.setValue(t+1*SIZE_OF_INT,e[1],"i32"),C.setValue(t+2*SIZE_OF_INT,e[2],"i32"),C.setValue(t+3*SIZE_OF_INT,e[3],"i32")}function unmarshalTreeCursor(e){e[0]=C.getValue(TRANSFER_BUFFER+0*SIZE_OF_INT,"i32"),e[1]=C.getValue(TRANSFER_BUFFER+1*SIZE_OF_INT,"i32"),e[2]=C.getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),e[3]=C.getValue(TRANSFER_BUFFER+3*SIZE_OF_INT,"i32")}function marshalPoint(e,t){C.setValue(e,t.row,"i32"),C.setValue(e+SIZE_OF_INT,t.column,"i32")}function unmarshalPoint(e){return{row:C.getValue(e,"i32")>>>0,column:C.getValue(e+SIZE_OF_INT,"i32")>>>0}}function marshalRange(e,t){marshalPoint(e,t.startPosition),marshalPoint(e+=SIZE_OF_POINT,t.endPosition),e+=SIZE_OF_POINT,C.setValue(e,t.startIndex,"i32"),e+=SIZE_OF_INT,C.setValue(e,t.endIndex,"i32"),e+=SIZE_OF_INT}function unmarshalRange(e){const t={};return t.startPosition=unmarshalPoint(e),e+=SIZE_OF_POINT,t.endPosition=unmarshalPoint(e),e+=SIZE_OF_POINT,t.startIndex=C.getValue(e,"i32")>>>0,e+=SIZE_OF_INT,t.endIndex=C.getValue(e,"i32")>>>0,t}function marshalEdit(e,t=TRANSFER_BUFFER){marshalPoint(t,e.startPosition),marshalPoint(t+=SIZE_OF_POINT,e.oldEndPosition),marshalPoint(t+=SIZE_OF_POINT,e.newEndPosition),t+=SIZE_OF_POINT,C.setValue(t,e.startIndex,"i32"),t+=SIZE_OF_INT,C.setValue(t,e.oldEndIndex,"i32"),t+=SIZE_OF_INT,C.setValue(t,e.newEndIndex,"i32"),t+=SIZE_OF_INT}function unmarshalLanguageMetadata(e){return{major_version:C.getValue(e,"i32"),minor_version:C.getValue(e+=SIZE_OF_INT,"i32"),patch_version:C.getValue(e+=SIZE_OF_INT,"i32")}}__name(unmarshalCaptures,"unmarshalCaptures"),__name(marshalNode,"marshalNode"),__name(unmarshalNode,"unmarshalNode"),__name(marshalTreeCursor,"marshalTreeCursor"),__name(unmarshalTreeCursor,"unmarshalTreeCursor"),__name(marshalPoint,"marshalPoint"),__name(unmarshalPoint,"unmarshalPoint"),__name(marshalRange,"marshalRange"),__name(unmarshalRange,"unmarshalRange"),__name(marshalEdit,"marshalEdit"),__name(unmarshalLanguageMetadata,"unmarshalLanguageMetadata");var LANGUAGE_FUNCTION_REGEX=/^tree_sitter_\w+$/,Language=class e{static{__name(this,"Language")}0=0;types;fields;constructor(e,t){assertInternal(e),this[0]=t,this.types=new Array(C._ts_language_symbol_count(this[0]));for(let e=0,t=this.types.length;e<t;e++)C._ts_language_symbol_type(this[0],e)<2&&(this.types[e]=C.UTF8ToString(C._ts_language_symbol_name(this[0],e)));this.fields=new Array(C._ts_language_field_count(this[0])+1);for(let e=0,t=this.fields.length;e<t;e++){const t=C._ts_language_field_name_for_id(this[0],e);this.fields[e]=0!==t?C.UTF8ToString(t):null}}get name(){const e=C._ts_language_name(this[0]);return 0===e?null:C.UTF8ToString(e)}get abiVersion(){return C._ts_language_abi_version(this[0])}get metadata(){C._ts_language_metadata_wasm(this[0]);return 0===C.getValue(TRANSFER_BUFFER,"i32")?null:unmarshalLanguageMetadata(TRANSFER_BUFFER+SIZE_OF_INT)}get fieldCount(){return this.fields.length-1}get stateCount(){return C._ts_language_state_count(this[0])}fieldIdForName(e){const t=this.fields.indexOf(e);return-1!==t?t:null}fieldNameForId(e){return this.fields[e]??null}idForNodeType(e,t){const n=C.lengthBytesUTF8(e),s=C._malloc(n+1);C.stringToUTF8(e,s,n+1);const r=C._ts_language_symbol_for_name(this[0],s,n,t?1:0);return C._free(s),r||null}get nodeTypeCount(){return C._ts_language_symbol_count(this[0])}nodeTypeForId(e){const t=C._ts_language_symbol_name(this[0],e);return t?C.UTF8ToString(t):null}nodeTypeIsNamed(e){return!!C._ts_language_type_is_named_wasm(this[0],e)}nodeTypeIsVisible(e){return!!C._ts_language_type_is_visible_wasm(this[0],e)}get supertypes(){C._ts_language_supertypes_wasm(this[0]);const e=C.getValue(TRANSFER_BUFFER,"i32"),t=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),n=new Array(e);if(e>0){let s=t;for(let t=0;t<e;t++)n[t]=C.getValue(s,"i16"),s+=SIZE_OF_SHORT}return n}subtypes(e){C._ts_language_subtypes_wasm(this[0],e);const t=C.getValue(TRANSFER_BUFFER,"i32"),n=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),s=new Array(t);if(t>0){let e=n;for(let n=0;n<t;n++)s[n]=C.getValue(e,"i16"),e+=SIZE_OF_SHORT}return s}nextState(e,t){return C._ts_language_next_state(this[0],e,t)}lookaheadIterator(e){const t=C._ts_lookahead_iterator_new(this[0],e);return t?new LookaheadIterator(INTERNAL,t,this):null}static async load(t){let n;if(t instanceof Uint8Array)n=t;else if(globalThis.process?.versions.node){const e=await Promise.resolve().then(()=>__webpack_require__.t(167,19));n=await e.readFile(t)}else{const e=await fetch(t);if(!e.ok){const t=await e.text();throw new Error(`Language.load failed with status ${e.status}.\n\n${t}`)}const s=e.clone();try{n=await WebAssembly.compileStreaming(e)}catch(e){console.error("wasm streaming compile failed:",e),console.error("falling back to ArrayBuffer instantiation"),n=new Uint8Array(await s.arrayBuffer())}}const s=await C.loadWebAssemblyModule(n,{loadAsync:!0}),r=Object.keys(s),i=r.find(e=>LANGUAGE_FUNCTION_REGEX.test(e)&&!e.includes("external_scanner_"));if(!i)throw console.log(`Couldn't find language function in Wasm file. Symbols:\n${JSON.stringify(r,null,2)}`),new Error("Language.load failed: no language function found in Wasm file");const a=s[i]();return new e(INTERNAL,a)}};async function Module2(moduleArg={}){var moduleRtn,Module=moduleArg,ENVIRONMENT_IS_WEB="object"==typeof window,ENVIRONMENT_IS_WORKER="undefined"!=typeof WorkerGlobalScope,ENVIRONMENT_IS_NODE="object"==typeof process&&process.versions?.node&&"renderer"!=process.type;if(ENVIRONMENT_IS_NODE){const{createRequire:e}=await Promise.resolve().then(()=>__webpack_require__.t(451,19));var require=e("file:///home/runner/work/arazzo-toolkit/arazzo-toolkit/node_modules/web-tree-sitter/web-tree-sitter.js")}Module.currentQueryProgressCallback=null,Module.currentProgressCallback=null,Module.currentLogCallback=null,Module.currentParseCallback=null;var arguments_=[],thisProgram="./this.program",quit_=__name((e,t)=>{throw t},"quit_"),_scriptName="file:///home/runner/work/arazzo-toolkit/arazzo-toolkit/node_modules/web-tree-sitter/web-tree-sitter.js",scriptDirectory="",readAsync,readBinary;function locateFile(e){return Module.locateFile?Module.locateFile(e,scriptDirectory):scriptDirectory+e}if(__name(locateFile,"locateFile"),ENVIRONMENT_IS_NODE){var fs=require("fs");_scriptName.startsWith("file:")&&(scriptDirectory=require("path").dirname(require("url").fileURLToPath(_scriptName))+"/"),readBinary=__name(e=>(e=isFileURI(e)?new URL(e):e,fs.readFileSync(e)),"readBinary"),readAsync=__name(async(e,t=!0)=>(e=isFileURI(e)?new URL(e):e,fs.readFileSync(e,t?void 0:"utf8")),"readAsync"),process.argv.length>1&&(thisProgram=process.argv[1].replace(/\\/g,"/")),arguments_=process.argv.slice(2),quit_=__name((e,t)=>{throw process.exitCode=e,t},"quit_")}else if(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER){try{scriptDirectory=new URL(".",_scriptName).href}catch{}ENVIRONMENT_IS_WORKER&&(readBinary=__name(e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)},"readBinary")),readAsync=__name(async e=>{if(isFileURI(e))return new Promise((t,n)=>{var s=new XMLHttpRequest;s.open("GET",e,!0),s.responseType="arraybuffer",s.onload=()=>{200==s.status||0==s.status&&s.response?t(s.response):n(s.status)},s.onerror=n,s.send(null)});var t=await fetch(e,{credentials:"same-origin"});if(t.ok)return t.arrayBuffer();throw new Error(t.status+" : "+t.url)},"readAsync")}var out=console.log.bind(console),err=console.error.bind(console),dynamicLibraries=[],wasmBinary,ABORT=!1,EXITSTATUS,isFileURI=__name(e=>e.startsWith("file://"),"isFileURI"),readyPromiseResolve,readyPromiseReject,wasmMemory,HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64,HEAP64,HEAPU64,HEAP_DATA_VIEW,runtimeInitialized=!1;function updateMemoryViews(){var e=wasmMemory.buffer;Module.HEAP8=HEAP8=new Int8Array(e),Module.HEAP16=HEAP16=new Int16Array(e),Module.HEAPU8=HEAPU8=new Uint8Array(e),Module.HEAPU16=HEAPU16=new Uint16Array(e),Module.HEAP32=HEAP32=new Int32Array(e),Module.HEAPU32=HEAPU32=new Uint32Array(e),Module.HEAPF32=HEAPF32=new Float32Array(e),Module.HEAPF64=HEAPF64=new Float64Array(e),Module.HEAP64=HEAP64=new BigInt64Array(e),Module.HEAPU64=HEAPU64=new BigUint64Array(e),Module.HEAP_DATA_VIEW=HEAP_DATA_VIEW=new DataView(e),LE_HEAP_UPDATE()}function initMemory(){if(Module.wasmMemory)wasmMemory=Module.wasmMemory;else{var e=Module.INITIAL_MEMORY||33554432;wasmMemory=new WebAssembly.Memory({initial:e/65536,maximum:32768})}updateMemoryViews()}__name(updateMemoryViews,"updateMemoryViews"),__name(initMemory,"initMemory");var __RELOC_FUNCS__=[],wasmBinaryFile;function preRun(){if(Module.preRun)for("function"==typeof Module.preRun&&(Module.preRun=[Module.preRun]);Module.preRun.length;)addOnPreRun(Module.preRun.shift());callRuntimeCallbacks(onPreRuns)}function initRuntime(){runtimeInitialized=!0,callRuntimeCallbacks(__RELOC_FUNCS__),wasmExports.__wasm_call_ctors(),callRuntimeCallbacks(onPostCtors)}function preMain(){}function postRun(){if(Module.postRun)for("function"==typeof Module.postRun&&(Module.postRun=[Module.postRun]);Module.postRun.length;)addOnPostRun(Module.postRun.shift());callRuntimeCallbacks(onPostRuns)}function abort(e){Module.onAbort?.(e),err(e="Aborted("+e+")"),ABORT=!0,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw readyPromiseReject?.(t),t}function findWasmBinary(){return Module.locateFile?locateFile("web-tree-sitter.wasm"):new URL(__webpack_require__(841),__webpack_require__.b).href}function getBinarySync(e){if(e==wasmBinaryFile&&wasmBinary)return new Uint8Array(wasmBinary);if(readBinary)return readBinary(e);throw"both async and sync fetching of the wasm failed"}async function getWasmBinary(e){if(!wasmBinary)try{var t=await readAsync(e);return new Uint8Array(t)}catch{}return getBinarySync(e)}async function instantiateArrayBuffer(e,t){try{var n=await getWasmBinary(e);return await WebAssembly.instantiate(n,t)}catch(e){err(`failed to asynchronously prepare wasm: ${e}`),abort(e)}}async function instantiateAsync(e,t,n){if(!e&&!isFileURI(t)&&!ENVIRONMENT_IS_NODE)try{var s=fetch(t,{credentials:"same-origin"});return await WebAssembly.instantiateStreaming(s,n)}catch(e){err(`wasm streaming compile failed: ${e}`),err("falling back to ArrayBuffer instantiation")}return instantiateArrayBuffer(t,n)}function getWasmImports(){return{env:wasmImports,wasi_snapshot_preview1:wasmImports,"GOT.mem":new Proxy(wasmImports,GOTHandler),"GOT.func":new Proxy(wasmImports,GOTHandler)}}async function createWasm(){function e(e,t){wasmExports=e.exports,wasmExports=relocateExports(wasmExports,1024);var n=getDylinkMetadata(t);return n.neededDynlibs&&(dynamicLibraries=n.neededDynlibs.concat(dynamicLibraries)),mergeLibSymbols(wasmExports,"main"),LDSO.init(),loadDylibs(),__RELOC_FUNCS__.push(wasmExports.__wasm_apply_data_relocs),assignWasmExports(wasmExports),wasmExports}function t(t){return e(t.instance,t.module)}__name(e,"receiveInstance"),__name(t,"receiveInstantiationResult");var n=getWasmImports();return Module.instantiateWasm?new Promise((t,s)=>{Module.instantiateWasm(n,(n,s)=>{t(e(n,s))})}):(wasmBinaryFile??=findWasmBinary(),t(await instantiateAsync(wasmBinary,wasmBinaryFile,n)))}__name(preRun,"preRun"),__name(initRuntime,"initRuntime"),__name(preMain,"preMain"),__name(postRun,"postRun"),__name(abort,"abort"),__name(findWasmBinary,"findWasmBinary"),__name(getBinarySync,"getBinarySync"),__name(getWasmBinary,"getWasmBinary"),__name(instantiateArrayBuffer,"instantiateArrayBuffer"),__name(instantiateAsync,"instantiateAsync"),__name(getWasmImports,"getWasmImports"),__name(createWasm,"createWasm");class ExitStatus{static{__name(this,"ExitStatus")}name="ExitStatus";constructor(e){this.message=`Program terminated with exit(${e})`,this.status=e}}var GOT={},currentModuleWeakSymbols=new Set([]),GOTHandler={get(e,t){var n=GOT[t];return n||(n=GOT[t]=new WebAssembly.Global({value:"i32",mutable:!0})),currentModuleWeakSymbols.has(t)||(n.required=!0),n}},LE_ATOMICS_NATIVE_BYTE_ORDER=[],LE_HEAP_LOAD_F32=__name(e=>HEAP_DATA_VIEW.getFloat32(e,!0),"LE_HEAP_LOAD_F32"),LE_HEAP_LOAD_F64=__name(e=>HEAP_DATA_VIEW.getFloat64(e,!0),"LE_HEAP_LOAD_F64"),LE_HEAP_LOAD_I16=__name(e=>HEAP_DATA_VIEW.getInt16(e,!0),"LE_HEAP_LOAD_I16"),LE_HEAP_LOAD_I32=__name(e=>HEAP_DATA_VIEW.getInt32(e,!0),"LE_HEAP_LOAD_I32"),LE_HEAP_LOAD_I64=__name(e=>HEAP_DATA_VIEW.getBigInt64(e,!0),"LE_HEAP_LOAD_I64"),LE_HEAP_LOAD_U32=__name(e=>HEAP_DATA_VIEW.getUint32(e,!0),"LE_HEAP_LOAD_U32"),LE_HEAP_STORE_F32=__name((e,t)=>HEAP_DATA_VIEW.setFloat32(e,t,!0),"LE_HEAP_STORE_F32"),LE_HEAP_STORE_F64=__name((e,t)=>HEAP_DATA_VIEW.setFloat64(e,t,!0),"LE_HEAP_STORE_F64"),LE_HEAP_STORE_I16=__name((e,t)=>HEAP_DATA_VIEW.setInt16(e,t,!0),"LE_HEAP_STORE_I16"),LE_HEAP_STORE_I32=__name((e,t)=>HEAP_DATA_VIEW.setInt32(e,t,!0),"LE_HEAP_STORE_I32"),LE_HEAP_STORE_I64=__name((e,t)=>HEAP_DATA_VIEW.setBigInt64(e,t,!0),"LE_HEAP_STORE_I64"),LE_HEAP_STORE_U32=__name((e,t)=>HEAP_DATA_VIEW.setUint32(e,t,!0),"LE_HEAP_STORE_U32"),callRuntimeCallbacks=__name(e=>{for(;e.length>0;)e.shift()(Module)},"callRuntimeCallbacks"),onPostRuns=[],addOnPostRun=__name(e=>onPostRuns.push(e),"addOnPostRun"),onPreRuns=[],addOnPreRun=__name(e=>onPreRuns.push(e),"addOnPreRun"),UTF8Decoder="undefined"!=typeof TextDecoder?new TextDecoder:void 0,findStringEnd=__name((e,t,n,s)=>{var r=t+n;if(s)return r;for(;e[t]&&!(t>=r);)++t;return t},"findStringEnd"),UTF8ArrayToString=__name((e,t=0,n,s)=>{var r=findStringEnd(e,t,n,s);if(r-t>16&&e.buffer&&UTF8Decoder)return UTF8Decoder.decode(e.subarray(t,r));for(var i="";t<r;){var a=e[t++];if(128&a){var o=63&e[t++];if(192!=(224&a)){var c=63&e[t++];if((a=224==(240&a)?(15&a)<<12|o<<6|c:(7&a)<<18|o<<12|c<<6|63&e[t++])<65536)i+=String.fromCharCode(a);else{var l=a-65536;i+=String.fromCharCode(55296|l>>10,56320|1023&l)}}else i+=String.fromCharCode((31&a)<<6|o)}else i+=String.fromCharCode(a)}return i},"UTF8ArrayToString"),getDylinkMetadata=__name(e=>{var t=0,n=0;function s(){return e[t++]}function r(){for(var n=0,s=1;;){var r=e[t++];if(n+=(127&r)*s,s*=128,!(128&r))break}return n}function i(){var n=r();return UTF8ArrayToString(e,(t+=n)-n,n)}function a(){for(var e=r(),t=[];e--;)t.push(i());return t}function o(e,t){if(e)throw new Error(t)}if(__name(s,"getU8"),__name(r,"getLEB"),__name(i,"getString"),__name(a,"getStringList"),__name(o,"failIf"),e instanceof WebAssembly.Module){var c=WebAssembly.Module.customSections(e,"dylink.0");o(0===c.length,"need dylink section"),n=(e=new Uint8Array(c[0])).length}else{var l=new Uint32Array(new Uint8Array(e.subarray(0,24)).buffer);o(!(1836278016==l[0]||6386541==l[0]),"need to see wasm magic number"),o(0!==e[8],"need the dylink section to be first"),t=9;var p=r();n=t+p,o("dylink.0"!==i())}for(var u={neededDynlibs:[],tlsExports:new Set,weakImports:new Set,runtimePaths:[]};t<n;){var d=s(),m=r();if(1===d)u.memorySize=r(),u.memoryAlign=r(),u.tableSize=r(),u.tableAlign=r();else if(2===d)u.neededDynlibs=a();else if(3===d)for(var h=r();h--;){var f=i();256&r()&&u.tlsExports.add(f)}else if(4===d)for(h=r();h--;){i(),f=i();1==(3&r())&&u.weakImports.add(f)}else 5===d?u.runtimePaths=a():t+=m}return u},"getDylinkMetadata");function getValue(e,t="i8"){switch(t.endsWith("*")&&(t="*"),t){case"i1":case"i8":return HEAP8[e];case"i16":return LE_HEAP_LOAD_I16(2*(e>>1));case"i32":return LE_HEAP_LOAD_I32(4*(e>>2));case"i64":return LE_HEAP_LOAD_I64(8*(e>>3));case"float":return LE_HEAP_LOAD_F32(4*(e>>2));case"double":return LE_HEAP_LOAD_F64(8*(e>>3));case"*":return LE_HEAP_LOAD_U32(4*(e>>2));default:abort(`invalid type for getValue: ${t}`)}}__name(getValue,"getValue");var newDSO=__name((e,t,n)=>{var s={refcount:1/0,name:e,exports:n,global:!0};return LDSO.loadedLibsByName[e]=s,null!=t&&(LDSO.loadedLibsByHandle[t]=s),s},"newDSO"),LDSO={loadedLibsByName:{},loadedLibsByHandle:{},init(){newDSO("__main__",0,wasmImports)}},___heap_base=78240,alignMemory=__name((e,t)=>Math.ceil(e/t)*t,"alignMemory"),getMemory=__name(e=>{if(runtimeInitialized)return _calloc(e,1);var t=___heap_base,n=t+alignMemory(e,16);return ___heap_base=n,GOT.__heap_base.value=n,t},"getMemory"),isInternalSym=__name(e=>["__cpp_exception","__c_longjmp","__wasm_apply_data_relocs","__dso_handle","__tls_size","__tls_align","__set_stack_limits","_emscripten_tls_init","__wasm_init_tls","__wasm_call_ctors","__start_em_asm","__stop_em_asm","__start_em_js","__stop_em_js"].includes(e)||e.startsWith("__em_js__"),"isInternalSym"),uleb128EncodeWithLen=__name(e=>{const t=e.length;return[t%128|128,t>>7,...e]},"uleb128EncodeWithLen"),wasmTypeCodes={i:127,p:127,j:126,f:125,d:124,e:111},generateTypePack=__name(e=>uleb128EncodeWithLen(Array.from(e,e=>wasmTypeCodes[e])),"generateTypePack"),convertJsFunctionToWasm=__name((e,t)=>{var n=Uint8Array.of(0,97,115,109,1,0,0,0,1,...uleb128EncodeWithLen([1,96,...generateTypePack(t.slice(1)),...generateTypePack("v"===t[0]?"":t[0])]),2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0),s=new WebAssembly.Module(n);return new WebAssembly.Instance(s,{e:{f:e}}).exports.f},"convertJsFunctionToWasm"),wasmTableMirror=[],wasmTable=new WebAssembly.Table({initial:31,element:"anyfunc"}),getWasmTableEntry=__name(e=>{var t=wasmTableMirror[e];return t||(wasmTableMirror[e]=t=wasmTable.get(e)),t},"getWasmTableEntry"),updateTableMap=__name((e,t)=>{if(functionsInTableMap)for(var n=e;n<e+t;n++){var s=getWasmTableEntry(n);s&&functionsInTableMap.set(s,n)}},"updateTableMap"),functionsInTableMap,getFunctionAddress=__name(e=>(functionsInTableMap||(functionsInTableMap=new WeakMap,updateTableMap(0,wasmTable.length)),functionsInTableMap.get(e)||0),"getFunctionAddress"),freeTableIndexes=[],getEmptyTableSlot=__name(()=>freeTableIndexes.length?freeTableIndexes.pop():wasmTable.grow(1),"getEmptyTableSlot"),setWasmTableEntry=__name((e,t)=>{wasmTable.set(e,t),wasmTableMirror[e]=wasmTable.get(e)},"setWasmTableEntry"),addFunction=__name((e,t)=>{var n=getFunctionAddress(e);if(n)return n;var s=getEmptyTableSlot();try{setWasmTableEntry(s,e)}catch(n){if(!(n instanceof TypeError))throw n;var r=convertJsFunctionToWasm(e,t);setWasmTableEntry(s,r)}return functionsInTableMap.set(e,s),s},"addFunction"),updateGOT=__name((e,t)=>{for(var n in e)if(!isInternalSym(n)){var s=e[n];GOT[n]||=new WebAssembly.Global({value:"i32",mutable:!0}),(t||0==GOT[n].value)&&("function"==typeof s?GOT[n].value=addFunction(s):"number"==typeof s?GOT[n].value=s:err(`unhandled export type for '${n}': ${typeof s}`))}},"updateGOT"),relocateExports=__name((e,t,n)=>{var s={};for(var r in e){var i=e[r];"object"==typeof i&&(i=i.value),"number"==typeof i&&(i+=t),s[r]=i}return updateGOT(s,n),s},"relocateExports"),isSymbolDefined=__name(e=>{var t=wasmImports[e];return!(!t||t.stub)},"isSymbolDefined"),dynCall=__name((e,t,n=[],s=!1)=>{var r=getWasmTableEntry(t)(...n);function i(e){return e}return __name(i,"convert"),r},"dynCall"),stackSave=__name(()=>_emscripten_stack_get_current(),"stackSave"),stackRestore=__name(e=>__emscripten_stack_restore(e),"stackRestore"),createInvokeFunction=__name(e=>(t,...n)=>{var s=stackSave();try{return dynCall(e,t,n)}catch(t){if(stackRestore(s),t!==t+0)throw t;if(_setThrew(1,0),"j"==e[0])return 0n}},"createInvokeFunction"),resolveGlobalSymbol=__name((e,t=!1)=>{var n;return isSymbolDefined(e)?n=wasmImports[e]:e.startsWith("invoke_")&&(n=wasmImports[e]=createInvokeFunction(e.split("_")[1])),{sym:n,name:e}},"resolveGlobalSymbol"),onPostCtors=[],addOnPostCtor=__name(e=>onPostCtors.push(e),"addOnPostCtor"),UTF8ToString=__name((e,t,n)=>e?UTF8ArrayToString(HEAPU8,e,t,n):"","UTF8ToString"),loadWebAssemblyModule=__name((binary,flags,libName,localScope,handle)=>{var metadata=getDylinkMetadata(binary);function loadModule(){var memAlign=Math.pow(2,metadata.memoryAlign),memoryBase=metadata.memorySize?alignMemory(getMemory(metadata.memorySize+memAlign),memAlign):0,tableBase=metadata.tableSize?wasmTable.length:0,moduleExports;function resolveSymbol(e){var t=resolveGlobalSymbol(e).sym;return!t&&localScope&&(t=localScope[e]),t||(t=moduleExports[e]),t}handle&&(HEAP8[handle+8]=1,LE_HEAP_STORE_U32(4*(handle+12>>2),memoryBase),LE_HEAP_STORE_I32(4*(handle+16>>2),metadata.memorySize),LE_HEAP_STORE_U32(4*(handle+20>>2),tableBase),LE_HEAP_STORE_I32(4*(handle+24>>2),metadata.tableSize)),metadata.tableSize&&wasmTable.grow(metadata.tableSize),__name(resolveSymbol,"resolveSymbol");var proxyHandler={get(e,t){switch(t){case"__memory_base":return memoryBase;case"__table_base":return tableBase}var n;if(t in wasmImports&&!wasmImports[t].stub)return wasmImports[t];t in e||(e[t]=(...e)=>(n||=resolveSymbol(t),n(...e)));return e[t]}},proxy=new Proxy({},proxyHandler);currentModuleWeakSymbols=metadata.weakImports;var info={"GOT.mem":new Proxy({},GOTHandler),"GOT.func":new Proxy({},GOTHandler),env:proxy,wasi_snapshot_preview1:proxy};function postInstantiation(module,instance){function addEmAsm(addr,body){for(var args=[],arity=0;arity<16&&-1!=body.indexOf("$"+arity);arity++)args.push("$"+arity);args=args.join(",");var func=`(${args}) => { ${body} };`;ASM_CONSTS[start]=eval(func)}if(updateTableMap(tableBase,metadata.tableSize),moduleExports=relocateExports(instance.exports,memoryBase),flags.allowUndefined||reportUndefinedSymbols(),__name(addEmAsm,"addEmAsm"),"__start_em_asm"in moduleExports)for(var start=moduleExports.__start_em_asm,stop=moduleExports.__stop_em_asm;start<stop;){var jsString=UTF8ToString(start);addEmAsm(start,jsString),start=HEAPU8.indexOf(0,start)+1}function addEmJs(name,cSig,body){var jsArgs=[];if(cSig=cSig.slice(1,-1),"void"!=cSig)for(var i in cSig=cSig.split(","),cSig){var jsArg=cSig[i].split(" ").pop();jsArgs.push(jsArg.replace("*",""))}var func=`(${jsArgs}) => ${body};`;moduleExports[name]=eval(func)}for(var name in __name(addEmJs,"addEmJs"),moduleExports)if(name.startsWith("__em_js__")){var start=moduleExports[name],jsString=UTF8ToString(start),parts=jsString.split("<::>");addEmJs(name.replace("__em_js__",""),parts[0],parts[1]),delete moduleExports[name]}var applyRelocs=moduleExports.__wasm_apply_data_relocs;applyRelocs&&(runtimeInitialized?applyRelocs():__RELOC_FUNCS__.push(applyRelocs));var init=moduleExports.__wasm_call_ctors;return init&&(runtimeInitialized?init():addOnPostCtor(init)),moduleExports}if(__name(postInstantiation,"postInstantiation"),flags.loadAsync)return(async()=>{var e;return binary instanceof WebAssembly.Module?e=new WebAssembly.Instance(binary,info):({module:binary,instance:e}=await WebAssembly.instantiate(binary,info)),postInstantiation(binary,e)})();var module=binary instanceof WebAssembly.Module?binary:new WebAssembly.Module(binary),instance=new WebAssembly.Instance(module,info);return postInstantiation(module,instance)}return __name(loadModule,"loadModule"),flags={...flags,rpath:{parentLibPath:libName,paths:metadata.runtimePaths}},flags.loadAsync?metadata.neededDynlibs.reduce((e,t)=>e.then(()=>loadDynamicLibrary(t,flags,localScope)),Promise.resolve()).then(loadModule):(metadata.neededDynlibs.forEach(e=>loadDynamicLibrary(e,flags,localScope)),loadModule())},"loadWebAssemblyModule"),mergeLibSymbols=__name((e,t)=>{for(var[n,s]of Object.entries(e)){const e=__name(e=>{isSymbolDefined(e)||(wasmImports[e]=s)},"setImport");e(n);const t="__main_argc_argv";"main"==n&&e(t),n==t&&e("main")}},"mergeLibSymbols"),asyncLoad=__name(async e=>{var t=await readAsync(e);return new Uint8Array(t)},"asyncLoad");function loadDynamicLibrary(e,t={global:!0,nodelete:!0},n,s){var r=LDSO.loadedLibsByName[e];if(r)return t.global?r.global||(r.global=!0,mergeLibSymbols(r.exports,e)):n&&Object.assign(n,r.exports),t.nodelete&&r.refcount!==1/0&&(r.refcount=1/0),r.refcount++,s&&(LDSO.loadedLibsByHandle[s]=r),!t.loadAsync||Promise.resolve(!0);function i(){if(s){var n=LE_HEAP_LOAD_U32(4*(s+28>>2)),r=LE_HEAP_LOAD_U32(4*(s+32>>2));if(n&&r){var i=HEAP8.slice(n,n+r);return t.loadAsync?Promise.resolve(i):i}}var a=locateFile(e);if(t.loadAsync)return asyncLoad(a);if(!readBinary)throw new Error(`${a}: file not found, and synchronous loading of external files is not available`);return readBinary(a)}function a(){return t.loadAsync?i().then(r=>loadWebAssemblyModule(r,t,e,n,s)):loadWebAssemblyModule(i(),t,e,n,s)}function o(t){r.global?mergeLibSymbols(t,e):n&&Object.assign(n,t),r.exports=t}return(r=newDSO(e,s,"loading")).refcount=t.nodelete?1/0:1,r.global=t.global,__name(i,"loadLibData"),__name(a,"getExports"),__name(o,"moduleLoaded"),t.loadAsync?a().then(e=>(o(e),!0)):(o(a()),!0)}__name(loadDynamicLibrary,"loadDynamicLibrary");var reportUndefinedSymbols=__name(()=>{for(var[e,t]of Object.entries(GOT))if(0==t.value){var n=resolveGlobalSymbol(e,!0).sym;if(!n&&!t.required)continue;if("function"==typeof n)t.value=addFunction(n,n.sig);else{if("number"!=typeof n)throw new Error(`bad export type for '${e}': ${typeof n}`);t.value=n}}},"reportUndefinedSymbols"),runDependencies=0,dependenciesFulfilled=null,removeRunDependency=__name(e=>{if(runDependencies--,Module.monitorRunDependencies?.(runDependencies),0==runDependencies&&dependenciesFulfilled){var t=dependenciesFulfilled;dependenciesFulfilled=null,t()}},"removeRunDependency"),addRunDependency=__name(e=>{runDependencies++,Module.monitorRunDependencies?.(runDependencies)},"addRunDependency"),loadDylibs=__name(async()=>{if(dynamicLibraries.length){for(var e of(addRunDependency("loadDylibs"),dynamicLibraries))await loadDynamicLibrary(e,{loadAsync:!0,global:!0,nodelete:!0,allowUndefined:!0});reportUndefinedSymbols(),removeRunDependency("loadDylibs")}else reportUndefinedSymbols()},"loadDylibs"),noExitRuntime=!0;function setValue(e,t,n="i8"){switch(n.endsWith("*")&&(n="*"),n){case"i1":case"i8":HEAP8[e]=t;break;case"i16":LE_HEAP_STORE_I16(2*(e>>1),t);break;case"i32":LE_HEAP_STORE_I32(4*(e>>2),t);break;case"i64":LE_HEAP_STORE_I64(8*(e>>3),BigInt(t));break;case"float":LE_HEAP_STORE_F32(4*(e>>2),t);break;case"double":LE_HEAP_STORE_F64(8*(e>>3),t);break;case"*":LE_HEAP_STORE_U32(4*(e>>2),t);break;default:abort(`invalid type for setValue: ${n}`)}}__name(setValue,"setValue");var ___memory_base=new WebAssembly.Global({value:"i32",mutable:!1},1024),___stack_high=78240,___stack_low=12704,___stack_pointer=new WebAssembly.Global({value:"i32",mutable:!0},78240),___table_base=new WebAssembly.Global({value:"i32",mutable:!1},1),__abort_js=__name(()=>abort(""),"__abort_js");__abort_js.sig="v";var getHeapMax=__name(()=>2147483648,"getHeapMax"),growMemory=__name(e=>{var t=(e-wasmMemory.buffer.byteLength+65535)/65536|0;try{return wasmMemory.grow(t),updateMemoryViews(),1}catch(e){}},"growMemory"),_emscripten_resize_heap=__name(e=>{var t=HEAPU8.length;e>>>=0;var n=getHeapMax();if(e>n)return!1;for(var s=1;s<=4;s*=2){var r=t*(1+.2/s);r=Math.min(r,e+100663296);var i=Math.min(n,alignMemory(Math.max(e,r),65536));if(growMemory(i))return!0}return!1},"_emscripten_resize_heap");_emscripten_resize_heap.sig="ip";var _fd_close=__name(e=>52,"_fd_close");_fd_close.sig="ii";var INT53_MAX=9007199254740992,INT53_MIN=-9007199254740992,bigintToI53Checked=__name(e=>e<INT53_MIN||e>INT53_MAX?NaN:Number(e),"bigintToI53Checked");function _fd_seek(e,t,n,s){return t=bigintToI53Checked(t),70}__name(_fd_seek,"_fd_seek"),_fd_seek.sig="iijip";var printCharBuffers=[null,[],[]],printChar=__name((e,t)=>{var n=printCharBuffers[e];0===t||10===t?((1===e?out:err)(UTF8ArrayToString(n)),n.length=0):n.push(t)},"printChar"),_fd_write=__name((e,t,n,s)=>{for(var r=0,i=0;i<n;i++){var a=LE_HEAP_LOAD_U32(4*(t>>2)),o=LE_HEAP_LOAD_U32(4*(t+4>>2));t+=8;for(var c=0;c<o;c++)printChar(e,HEAPU8[a+c]);r+=o}return LE_HEAP_STORE_U32(4*(s>>2),r),0},"_fd_write");function _tree_sitter_log_callback(e,t){if(Module.currentLogCallback){const n=UTF8ToString(t);Module.currentLogCallback(n,0!==e)}}function _tree_sitter_parse_callback(e,t,n,s,r){const i=Module.currentParseCallback(t,{row:n,column:s});"string"==typeof i?(setValue(r,i.length,"i32"),stringToUTF16(i,e,10240)):setValue(r,0,"i32")}function _tree_sitter_progress_callback(e,t){return!!Module.currentProgressCallback&&Module.currentProgressCallback({currentOffset:e,hasError:t})}function _tree_sitter_query_progress_callback(e){return!!Module.currentQueryProgressCallback&&Module.currentQueryProgressCallback({currentOffset:e})}_fd_write.sig="iippp",__name(_tree_sitter_log_callback,"_tree_sitter_log_callback"),__name(_tree_sitter_parse_callback,"_tree_sitter_parse_callback"),__name(_tree_sitter_progress_callback,"_tree_sitter_progress_callback"),__name(_tree_sitter_query_progress_callback,"_tree_sitter_query_progress_callback");var runtimeKeepaliveCounter=0,keepRuntimeAlive=__name(()=>noExitRuntime||runtimeKeepaliveCounter>0,"keepRuntimeAlive"),_proc_exit=__name(e=>{EXITSTATUS=e,keepRuntimeAlive()||(Module.onExit?.(e),ABORT=!0),quit_(e,new ExitStatus(e))},"_proc_exit");_proc_exit.sig="vi";var exitJS=__name((e,t)=>{EXITSTATUS=e,_proc_exit(e)},"exitJS"),handleException=__name(e=>{if(e instanceof ExitStatus||"unwind"==e)return EXITSTATUS;quit_(1,e)},"handleException"),lengthBytesUTF8=__name(e=>{for(var t=0,n=0;n<e.length;++n){var s=e.charCodeAt(n);s<=127?t++:s<=2047?t+=2:s>=55296&&s<=57343?(t+=4,++n):t+=3}return t},"lengthBytesUTF8"),stringToUTF8Array=__name((e,t,n,s)=>{if(!(s>0))return 0;for(var r=n,i=n+s-1,a=0;a<e.length;++a){var o=e.codePointAt(a);if(o<=127){if(n>=i)break;t[n++]=o}else if(o<=2047){if(n+1>=i)break;t[n++]=192|o>>6,t[n++]=128|63&o}else if(o<=65535){if(n+2>=i)break;t[n++]=224|o>>12,t[n++]=128|o>>6&63,t[n++]=128|63&o}else{if(n+3>=i)break;t[n++]=240|o>>18,t[n++]=128|o>>12&63,t[n++]=128|o>>6&63,t[n++]=128|63&o,a++}}return t[n]=0,n-r},"stringToUTF8Array"),stringToUTF8=__name((e,t,n)=>stringToUTF8Array(e,HEAPU8,t,n),"stringToUTF8"),stackAlloc=__name(e=>__emscripten_stack_alloc(e),"stackAlloc"),stringToUTF8OnStack=__name(e=>{var t=lengthBytesUTF8(e)+1,n=stackAlloc(t);return stringToUTF8(e,n,t),n},"stringToUTF8OnStack"),AsciiToString=__name(e=>{for(var t="";;){var n=HEAPU8[e++];if(!n)return t;t+=String.fromCharCode(n)}},"AsciiToString"),stringToUTF16=__name((e,t,n)=>{if(n??=2147483647,n<2)return 0;for(var s=t,r=(n-=2)<2*e.length?n/2:e.length,i=0;i<r;++i){var a=e.charCodeAt(i);LE_HEAP_STORE_I16(2*(t>>1),a),t+=2}return LE_HEAP_STORE_I16(2*(t>>1),0),t-s},"stringToUTF16");function LE_HEAP_UPDATE(){HEAPU16.unsigned=e=>65535&e,HEAPU32.unsigned=e=>e>>>0}if(LE_ATOMICS_NATIVE_BYTE_ORDER=1===new Int8Array(new Int16Array([1]).buffer)[0]?[e=>e,e=>e,void 0,e=>e]:[e=>e,e=>((65280&e)<<8|(255&e)<<24)>>16,void 0,e=>e>>24&255|e>>8&65280|(65280&e)<<8|(255&e)<<24],__name(LE_HEAP_UPDATE,"LE_HEAP_UPDATE"),initMemory(),Module.noExitRuntime&&(noExitRuntime=Module.noExitRuntime),Module.print&&(out=Module.print),Module.printErr&&(err=Module.printErr),Module.dynamicLibraries&&(dynamicLibraries=Module.dynamicLibraries),Module.wasmBinary&&(wasmBinary=Module.wasmBinary),Module.arguments&&(arguments_=Module.arguments),Module.thisProgram&&(thisProgram=Module.thisProgram),Module.preInit)for("function"==typeof Module.preInit&&(Module.preInit=[Module.preInit]);Module.preInit.length>0;)Module.preInit.shift()();Module.setValue=setValue,Module.getValue=getValue,Module.UTF8ToString=UTF8ToString,Module.stringToUTF8=stringToUTF8,Module.lengthBytesUTF8=lengthBytesUTF8,Module.AsciiToString=AsciiToString,Module.stringToUTF16=stringToUTF16,Module.loadWebAssemblyModule=loadWebAssemblyModule,Module.LE_HEAP_STORE_I64=LE_HEAP_STORE_I64;var ASM_CONSTS={},_malloc,_calloc,_realloc,_free,_ts_range_edit,_memcmp,_ts_language_symbol_count,_ts_language_state_count,_ts_language_abi_version,_ts_language_name,_ts_language_field_count,_ts_language_next_state,_ts_language_symbol_name,_ts_language_symbol_for_name,_strncmp,_ts_language_symbol_type,_ts_language_field_name_for_id,_ts_lookahead_iterator_new,_ts_lookahead_iterator_delete,_ts_lookahead_iterator_reset_state,_ts_lookahead_iterator_reset,_ts_lookahead_iterator_next,_ts_lookahead_iterator_current_symbol,_ts_point_edit,_ts_parser_delete,_ts_parser_reset,_ts_parser_set_language,_ts_parser_set_included_ranges,_ts_query_new,_ts_query_delete,_iswspace,_iswalnum,_ts_query_pattern_count,_ts_query_capture_count,_ts_query_string_count,_ts_query_capture_name_for_id,_ts_query_capture_quantifier_for_id,_ts_query_string_value_for_id,_ts_query_predicates_for_pattern,_ts_query_start_byte_for_pattern,_ts_query_end_byte_for_pattern,_ts_query_is_pattern_rooted,_ts_query_is_pattern_non_local,_ts_query_is_pattern_guaranteed_at_step,_ts_query_disable_capture,_ts_query_disable_pattern,_ts_tree_copy,_ts_tree_delete,_ts_init,_ts_parser_new_wasm,_ts_parser_enable_logger_wasm,_ts_parser_parse_wasm,_ts_parser_included_ranges_wasm,_ts_language_type_is_named_wasm,_ts_language_type_is_visible_wasm,_ts_language_metadata_wasm,_ts_language_supertypes_wasm,_ts_language_subtypes_wasm,_ts_tree_root_node_wasm,_ts_tree_root_node_with_offset_wasm,_ts_tree_edit_wasm,_ts_tree_included_ranges_wasm,_ts_tree_get_changed_ranges_wasm,_ts_tree_cursor_new_wasm,_ts_tree_cursor_copy_wasm,_ts_tree_cursor_delete_wasm,_ts_tree_cursor_reset_wasm,_ts_tree_cursor_reset_to_wasm,_ts_tree_cursor_goto_first_child_wasm,_ts_tree_cursor_goto_last_child_wasm,_ts_tree_cursor_goto_first_child_for_index_wasm,_ts_tree_cursor_goto_first_child_for_position_wasm,_ts_tree_cursor_goto_next_sibling_wasm,_ts_tree_cursor_goto_previous_sibling_wasm,_ts_tree_cursor_goto_descendant_wasm,_ts_tree_cursor_goto_parent_wasm,_ts_tree_cursor_current_node_type_id_wasm,_ts_tree_cursor_current_node_state_id_wasm,_ts_tree_cursor_current_node_is_named_wasm,_ts_tree_cursor_current_node_is_missing_wasm,_ts_tree_cursor_current_node_id_wasm,_ts_tree_cursor_start_position_wasm,_ts_tree_cursor_end_position_wasm,_ts_tree_cursor_start_index_wasm,_ts_tree_cursor_end_index_wasm,_ts_tree_cursor_current_field_id_wasm,_ts_tree_cursor_current_depth_wasm,_ts_tree_cursor_current_descendant_index_wasm,_ts_tree_cursor_current_node_wasm,_ts_node_symbol_wasm,_ts_node_field_name_for_child_wasm,_ts_node_field_name_for_named_child_wasm,_ts_node_children_by_field_id_wasm,_ts_node_first_child_for_byte_wasm,_ts_node_first_named_child_for_byte_wasm,_ts_node_grammar_symbol_wasm,_ts_node_child_count_wasm,_ts_node_named_child_count_wasm,_ts_node_child_wasm,_ts_node_named_child_wasm,_ts_node_child_by_field_id_wasm,_ts_node_next_sibling_wasm,_ts_node_prev_sibling_wasm,_ts_node_next_named_sibling_wasm,_ts_node_prev_named_sibling_wasm,_ts_node_descendant_count_wasm,_ts_node_parent_wasm,_ts_node_child_with_descendant_wasm,_ts_node_descendant_for_index_wasm,_ts_node_named_descendant_for_index_wasm,_ts_node_descendant_for_position_wasm,_ts_node_named_descendant_for_position_wasm,_ts_node_start_point_wasm,_ts_node_end_point_wasm,_ts_node_start_index_wasm,_ts_node_end_index_wasm,_ts_node_to_string_wasm,_ts_node_children_wasm,_ts_node_named_children_wasm,_ts_node_descendants_of_type_wasm,_ts_node_is_named_wasm,_ts_node_has_changes_wasm,_ts_node_has_error_wasm,_ts_node_is_error_wasm,_ts_node_is_missing_wasm,_ts_node_is_extra_wasm,_ts_node_parse_state_wasm,_ts_node_next_parse_state_wasm,_ts_query_matches_wasm,_ts_query_captures_wasm,_memset,_memcpy,_memmove,_iswalpha,_iswblank,_iswdigit,_iswlower,_iswupper,_iswxdigit,_memchr,_strlen,_strcmp,_strncat,_strncpy,_towlower,_towupper,_setThrew,__emscripten_stack_restore,__emscripten_stack_alloc,_emscripten_stack_get_current,___wasm_apply_data_relocs;function assignWasmExports(e){Module._malloc=_malloc=e.malloc,Module._calloc=_calloc=e.calloc,Module._realloc=_realloc=e.realloc,Module._free=_free=e.free,Module._ts_range_edit=_ts_range_edit=e.ts_range_edit,Module._memcmp=_memcmp=e.memcmp,Module._ts_language_symbol_count=_ts_language_symbol_count=e.ts_language_symbol_count,Module._ts_language_state_count=_ts_language_state_count=e.ts_language_state_count,Module._ts_language_abi_version=_ts_language_abi_version=e.ts_language_abi_version,Module._ts_language_name=_ts_language_name=e.ts_language_name,Module._ts_language_field_count=_ts_language_field_count=e.ts_language_field_count,Module._ts_language_next_state=_ts_language_next_state=e.ts_language_next_state,Module._ts_language_symbol_name=_ts_language_symbol_name=e.ts_language_symbol_name,Module._ts_language_symbol_for_name=_ts_language_symbol_for_name=e.ts_language_symbol_for_name,Module._strncmp=_strncmp=e.strncmp,Module._ts_language_symbol_type=_ts_language_symbol_type=e.ts_language_symbol_type,Module._ts_language_field_name_for_id=_ts_language_field_name_for_id=e.ts_language_field_name_for_id,Module._ts_lookahead_iterator_new=_ts_lookahead_iterator_new=e.ts_lookahead_iterator_new,Module._ts_lookahead_iterator_delete=_ts_lookahead_iterator_delete=e.ts_lookahead_iterator_delete,Module._ts_lookahead_iterator_reset_state=_ts_lookahead_iterator_reset_state=e.ts_lookahead_iterator_reset_state,Module._ts_lookahead_iterator_reset=_ts_lookahead_iterator_reset=e.ts_lookahead_iterator_reset,Module._ts_lookahead_iterator_next=_ts_lookahead_iterator_next=e.ts_lookahead_iterator_next,Module._ts_lookahead_iterator_current_symbol=_ts_lookahead_iterator_current_symbol=e.ts_lookahead_iterator_current_symbol,Module._ts_point_edit=_ts_point_edit=e.ts_point_edit,Module._ts_parser_delete=_ts_parser_delete=e.ts_parser_delete,Module._ts_parser_reset=_ts_parser_reset=e.ts_parser_reset,Module._ts_parser_set_language=_ts_parser_set_language=e.ts_parser_set_language,Module._ts_parser_set_included_ranges=_ts_parser_set_included_ranges=e.ts_parser_set_included_ranges,Module._ts_query_new=_ts_query_new=e.ts_query_new,Module._ts_query_delete=_ts_query_delete=e.ts_query_delete,Module._iswspace=_iswspace=e.iswspace,Module._iswalnum=_iswalnum=e.iswalnum,Module._ts_query_pattern_count=_ts_query_pattern_count=e.ts_query_pattern_count,Module._ts_query_capture_count=_ts_query_capture_count=e.ts_query_capture_count,Module._ts_query_string_count=_ts_query_string_count=e.ts_query_string_count,Module._ts_query_capture_name_for_id=_ts_query_capture_name_for_id=e.ts_query_capture_name_for_id,Module._ts_query_capture_quantifier_for_id=_ts_query_capture_quantifier_for_id=e.ts_query_capture_quantifier_for_id,Module._ts_query_string_value_for_id=_ts_query_string_value_for_id=e.ts_query_string_value_for_id,Module._ts_query_predicates_for_pattern=_ts_query_predicates_for_pattern=e.ts_query_predicates_for_pattern,Module._ts_query_start_byte_for_pattern=_ts_query_start_byte_for_pattern=e.ts_query_start_byte_for_pattern,Module._ts_query_end_byte_for_pattern=_ts_query_end_byte_for_pattern=e.ts_query_end_byte_for_pattern,Module._ts_query_is_pattern_rooted=_ts_query_is_pattern_rooted=e.ts_query_is_pattern_rooted,Module._ts_query_is_pattern_non_local=_ts_query_is_pattern_non_local=e.ts_query_is_pattern_non_local,Module._ts_query_is_pattern_guaranteed_at_step=_ts_query_is_pattern_guaranteed_at_step=e.ts_query_is_pattern_guaranteed_at_step,Module._ts_query_disable_capture=_ts_query_disable_capture=e.ts_query_disable_capture,Module._ts_query_disable_pattern=_ts_query_disable_pattern=e.ts_query_disable_pattern,Module._ts_tree_copy=_ts_tree_copy=e.ts_tree_copy,Module._ts_tree_delete=_ts_tree_delete=e.ts_tree_delete,Module._ts_init=_ts_init=e.ts_init,Module._ts_parser_new_wasm=_ts_parser_new_wasm=e.ts_parser_new_wasm,Module._ts_parser_enable_logger_wasm=_ts_parser_enable_logger_wasm=e.ts_parser_enable_logger_wasm,Module._ts_parser_parse_wasm=_ts_parser_parse_wasm=e.ts_parser_parse_wasm,Module._ts_parser_included_ranges_wasm=_ts_parser_included_ranges_wasm=e.ts_parser_included_ranges_wasm,Module._ts_language_type_is_named_wasm=_ts_language_type_is_named_wasm=e.ts_language_type_is_named_wasm,Module._ts_language_type_is_visible_wasm=_ts_language_type_is_visible_wasm=e.ts_language_type_is_visible_wasm,Module._ts_language_metadata_wasm=_ts_language_metadata_wasm=e.ts_language_metadata_wasm,Module._ts_language_supertypes_wasm=_ts_language_supertypes_wasm=e.ts_language_supertypes_wasm,Module._ts_language_subtypes_wasm=_ts_language_subtypes_wasm=e.ts_language_subtypes_wasm,Module._ts_tree_root_node_wasm=_ts_tree_root_node_wasm=e.ts_tree_root_node_wasm,Module._ts_tree_root_node_with_offset_wasm=_ts_tree_root_node_with_offset_wasm=e.ts_tree_root_node_with_offset_wasm,Module._ts_tree_edit_wasm=_ts_tree_edit_wasm=e.ts_tree_edit_wasm,Module._ts_tree_included_ranges_wasm=_ts_tree_included_ranges_wasm=e.ts_tree_included_ranges_wasm,Module._ts_tree_get_changed_ranges_wasm=_ts_tree_get_changed_ranges_wasm=e.ts_tree_get_changed_ranges_wasm,Module._ts_tree_cursor_new_wasm=_ts_tree_cursor_new_wasm=e.ts_tree_cursor_new_wasm,Module._ts_tree_cursor_copy_wasm=_ts_tree_cursor_copy_wasm=e.ts_tree_cursor_copy_wasm,Module._ts_tree_cursor_delete_wasm=_ts_tree_cursor_delete_wasm=e.ts_tree_cursor_delete_wasm,Module._ts_tree_cursor_reset_wasm=_ts_tree_cursor_reset_wasm=e.ts_tree_cursor_reset_wasm,Module._ts_tree_cursor_reset_to_wasm=_ts_tree_cursor_reset_to_wasm=e.ts_tree_cursor_reset_to_wasm,Module._ts_tree_cursor_goto_first_child_wasm=_ts_tree_cursor_goto_first_child_wasm=e.ts_tree_cursor_goto_first_child_wasm,Module._ts_tree_cursor_goto_last_child_wasm=_ts_tree_cursor_goto_last_child_wasm=e.ts_tree_cursor_goto_last_child_wasm,Module._ts_tree_cursor_goto_first_child_for_index_wasm=_ts_tree_cursor_goto_first_child_for_index_wasm=e.ts_tree_cursor_goto_first_child_for_index_wasm,Module._ts_tree_cursor_goto_first_child_for_position_wasm=_ts_tree_cursor_goto_first_child_for_position_wasm=e.ts_tree_cursor_goto_first_child_for_position_wasm,Module._ts_tree_cursor_goto_next_sibling_wasm=_ts_tree_cursor_goto_next_sibling_wasm=e.ts_tree_cursor_goto_next_sibling_wasm,Module._ts_tree_cursor_goto_previous_sibling_wasm=_ts_tree_cursor_goto_previous_sibling_wasm=e.ts_tree_cursor_goto_previous_sibling_wasm,Module._ts_tree_cursor_goto_descendant_wasm=_ts_tree_cursor_goto_descendant_wasm=e.ts_tree_cursor_goto_descendant_wasm,Module._ts_tree_cursor_goto_parent_wasm=_ts_tree_cursor_goto_parent_wasm=e.ts_tree_cursor_goto_parent_wasm,Module._ts_tree_cursor_current_node_type_id_wasm=_ts_tree_cursor_current_node_type_id_wasm=e.ts_tree_cursor_current_node_type_id_wasm,Module._ts_tree_cursor_current_node_state_id_wasm=_ts_tree_cursor_current_node_state_id_wasm=e.ts_tree_cursor_current_node_state_id_wasm,Module._ts_tree_cursor_current_node_is_named_wasm=_ts_tree_cursor_current_node_is_named_wasm=e.ts_tree_cursor_current_node_is_named_wasm,Module._ts_tree_cursor_current_node_is_missing_wasm=_ts_tree_cursor_current_node_is_missing_wasm=e.ts_tree_cursor_current_node_is_missing_wasm,Module._ts_tree_cursor_current_node_id_wasm=_ts_tree_cursor_current_node_id_wasm=e.ts_tree_cursor_current_node_id_wasm,Module._ts_tree_cursor_start_position_wasm=_ts_tree_cursor_start_position_wasm=e.ts_tree_cursor_start_position_wasm,Module._ts_tree_cursor_end_position_wasm=_ts_tree_cursor_end_position_wasm=e.ts_tree_cursor_end_position_wasm,Module._ts_tree_cursor_start_index_wasm=_ts_tree_cursor_start_index_wasm=e.ts_tree_cursor_start_index_wasm,Module._ts_tree_cursor_end_index_wasm=_ts_tree_cursor_end_index_wasm=e.ts_tree_cursor_end_index_wasm,Module._ts_tree_cursor_current_field_id_wasm=_ts_tree_cursor_current_field_id_wasm=e.ts_tree_cursor_current_field_id_wasm,Module._ts_tree_cursor_current_depth_wasm=_ts_tree_cursor_current_depth_wasm=e.ts_tree_cursor_current_depth_wasm,Module._ts_tree_cursor_current_descendant_index_wasm=_ts_tree_cursor_current_descendant_index_wasm=e.ts_tree_cursor_current_descendant_index_wasm,Module._ts_tree_cursor_current_node_wasm=_ts_tree_cursor_current_node_wasm=e.ts_tree_cursor_current_node_wasm,Module._ts_node_symbol_wasm=_ts_node_symbol_wasm=e.ts_node_symbol_wasm,Module._ts_node_field_name_for_child_wasm=_ts_node_field_name_for_child_wasm=e.ts_node_field_name_for_child_wasm,Module._ts_node_field_name_for_named_child_wasm=_ts_node_field_name_for_named_child_wasm=e.ts_node_field_name_for_named_child_wasm,Module._ts_node_children_by_field_id_wasm=_ts_node_children_by_field_id_wasm=e.ts_node_children_by_field_id_wasm,Module._ts_node_first_child_for_byte_wasm=_ts_node_first_child_for_byte_wasm=e.ts_node_first_child_for_byte_wasm,Module._ts_node_first_named_child_for_byte_wasm=_ts_node_first_named_child_for_byte_wasm=e.ts_node_first_named_child_for_byte_wasm,Module._ts_node_grammar_symbol_wasm=_ts_node_grammar_symbol_wasm=e.ts_node_grammar_symbol_wasm,Module._ts_node_child_count_wasm=_ts_node_child_count_wasm=e.ts_node_child_count_wasm,Module._ts_node_named_child_count_wasm=_ts_node_named_child_count_wasm=e.ts_node_named_child_count_wasm,Module._ts_node_child_wasm=_ts_node_child_wasm=e.ts_node_child_wasm,Module._ts_node_named_child_wasm=_ts_node_named_child_wasm=e.ts_node_named_child_wasm,Module._ts_node_child_by_field_id_wasm=_ts_node_child_by_field_id_wasm=e.ts_node_child_by_field_id_wasm,Module._ts_node_next_sibling_wasm=_ts_node_next_sibling_wasm=e.ts_node_next_sibling_wasm,Module._ts_node_prev_sibling_wasm=_ts_node_prev_sibling_wasm=e.ts_node_prev_sibling_wasm,Module._ts_node_next_named_sibling_wasm=_ts_node_next_named_sibling_wasm=e.ts_node_next_named_sibling_wasm,Module._ts_node_prev_named_sibling_wasm=_ts_node_prev_named_sibling_wasm=e.ts_node_prev_named_sibling_wasm,Module._ts_node_descendant_count_wasm=_ts_node_descendant_count_wasm=e.ts_node_descendant_count_wasm,Module._ts_node_parent_wasm=_ts_node_parent_wasm=e.ts_node_parent_wasm,Module._ts_node_child_with_descendant_wasm=_ts_node_child_with_descendant_wasm=e.ts_node_child_with_descendant_wasm,Module._ts_node_descendant_for_index_wasm=_ts_node_descendant_for_index_wasm=e.ts_node_descendant_for_index_wasm,Module._ts_node_named_descendant_for_index_wasm=_ts_node_named_descendant_for_index_wasm=e.ts_node_named_descendant_for_index_wasm,Module._ts_node_descendant_for_position_wasm=_ts_node_descendant_for_position_wasm=e.ts_node_descendant_for_position_wasm,Module._ts_node_named_descendant_for_position_wasm=_ts_node_named_descendant_for_position_wasm=e.ts_node_named_descendant_for_position_wasm,Module._ts_node_start_point_wasm=_ts_node_start_point_wasm=e.ts_node_start_point_wasm,Module._ts_node_end_point_wasm=_ts_node_end_point_wasm=e.ts_node_end_point_wasm,Module._ts_node_start_index_wasm=_ts_node_start_index_wasm=e.ts_node_start_index_wasm,Module._ts_node_end_index_wasm=_ts_node_end_index_wasm=e.ts_node_end_index_wasm,Module._ts_node_to_string_wasm=_ts_node_to_string_wasm=e.ts_node_to_string_wasm,Module._ts_node_children_wasm=_ts_node_children_wasm=e.ts_node_children_wasm,Module._ts_node_named_children_wasm=_ts_node_named_children_wasm=e.ts_node_named_children_wasm,Module._ts_node_descendants_of_type_wasm=_ts_node_descendants_of_type_wasm=e.ts_node_descendants_of_type_wasm,Module._ts_node_is_named_wasm=_ts_node_is_named_wasm=e.ts_node_is_named_wasm,Module._ts_node_has_changes_wasm=_ts_node_has_changes_wasm=e.ts_node_has_changes_wasm,Module._ts_node_has_error_wasm=_ts_node_has_error_wasm=e.ts_node_has_error_wasm,Module._ts_node_is_error_wasm=_ts_node_is_error_wasm=e.ts_node_is_error_wasm,Module._ts_node_is_missing_wasm=_ts_node_is_missing_wasm=e.ts_node_is_missing_wasm,Module._ts_node_is_extra_wasm=_ts_node_is_extra_wasm=e.ts_node_is_extra_wasm,Module._ts_node_parse_state_wasm=_ts_node_parse_state_wasm=e.ts_node_parse_state_wasm,Module._ts_node_next_parse_state_wasm=_ts_node_next_parse_state_wasm=e.ts_node_next_parse_state_wasm,Module._ts_query_matches_wasm=_ts_query_matches_wasm=e.ts_query_matches_wasm,Module._ts_query_captures_wasm=_ts_query_captures_wasm=e.ts_query_captures_wasm,Module._memset=_memset=e.memset,Module._memcpy=_memcpy=e.memcpy,Module._memmove=_memmove=e.memmove,Module._iswalpha=_iswalpha=e.iswalpha,Module._iswblank=_iswblank=e.iswblank,Module._iswdigit=_iswdigit=e.iswdigit,Module._iswlower=_iswlower=e.iswlower,Module._iswupper=_iswupper=e.iswupper,Module._iswxdigit=_iswxdigit=e.iswxdigit,Module._memchr=_memchr=e.memchr,Module._strlen=_strlen=e.strlen,Module._strcmp=_strcmp=e.strcmp,Module._strncat=_strncat=e.strncat,Module._strncpy=_strncpy=e.strncpy,Module._towlower=_towlower=e.towlower,Module._towupper=_towupper=e.towupper,_setThrew=e.setThrew,__emscripten_stack_restore=e._emscripten_stack_restore,__emscripten_stack_alloc=e._emscripten_stack_alloc,_emscripten_stack_get_current=e.emscripten_stack_get_current,___wasm_apply_data_relocs=e.__wasm_apply_data_relocs}__name(assignWasmExports,"assignWasmExports");var wasmImports={__heap_base:___heap_base,__indirect_function_table:wasmTable,__memory_base:___memory_base,__stack_high:___stack_high,__stack_low:___stack_low,__stack_pointer:___stack_pointer,__table_base:___table_base,_abort_js:__abort_js,emscripten_resize_heap:_emscripten_resize_heap,fd_close:_fd_close,fd_seek:_fd_seek,fd_write:_fd_write,memory:wasmMemory,tree_sitter_log_callback:_tree_sitter_log_callback,tree_sitter_parse_callback:_tree_sitter_parse_callback,tree_sitter_progress_callback:_tree_sitter_progress_callback,tree_sitter_query_progress_callback:_tree_sitter_query_progress_callback},wasmExports;function callMain(e=[]){var t=resolveGlobalSymbol("main").sym;if(t){e.unshift(thisProgram);var n=e.length,s=stackAlloc(4*(n+1)),r=s;e.forEach(e=>{LE_HEAP_STORE_U32(4*(r>>2),stringToUTF8OnStack(e)),r+=4}),LE_HEAP_STORE_U32(4*(r>>2),0);try{var i=t(n,s);return exitJS(i,!0),i}catch(e){return handleException(e)}}}function run(e=arguments_){function t(){(Module.calledRun=!0,ABORT)||(initRuntime(),preMain(),readyPromiseResolve?.(Module),Module.onRuntimeInitialized?.(),Module.noInitialRun||!1||callMain(e),postRun())}runDependencies>0?dependenciesFulfilled=run:(preRun(),runDependencies>0?dependenciesFulfilled=run:(__name(t,"doRun"),Module.setStatus?(Module.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>Module.setStatus(""),1),t()},1)):t()))}return __name(callMain,"callMain"),__name(run,"run"),wasmExports=await createWasm(),run(),moduleRtn=runtimeInitialized?Module:new Promise((e,t)=>{readyPromiseResolve=e,readyPromiseReject=t}),moduleRtn}__name(Module2,"Module");var web_tree_sitter_default=Module2,Module3=null,TRANSFER_BUFFER,LANGUAGE_VERSION,MIN_COMPATIBLE_VERSION;async function initializeBinding(e){return Module3??=await web_tree_sitter_default(e)}function checkModule(){return!!Module3}__name(initializeBinding,"initializeBinding"),__name(checkModule,"checkModule");var Parser=class{static{__name(this,"Parser")}0=0;1=0;logCallback=null;language=null;static async init(e){setModule(await initializeBinding(e)),TRANSFER_BUFFER=C._ts_init(),LANGUAGE_VERSION=C.getValue(TRANSFER_BUFFER,"i32"),MIN_COMPATIBLE_VERSION=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32")}constructor(){this.initialize()}initialize(){if(!checkModule())throw new Error("cannot construct a Parser before calling `init()`");C._ts_parser_new_wasm(),this[0]=C.getValue(TRANSFER_BUFFER,"i32"),this[1]=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32")}delete(){C._ts_parser_delete(this[0]),C._free(this[1]),this[0]=0,this[1]=0}setLanguage(e){let t;if(e){if(e.constructor!==Language)throw new Error("Argument must be a Language");{t=e[0];const n=C._ts_language_abi_version(t);if(n<MIN_COMPATIBLE_VERSION||LANGUAGE_VERSION<n)throw new Error(`Incompatible language version ${n}. Compatibility range ${MIN_COMPATIBLE_VERSION} through ${LANGUAGE_VERSION}.`);this.language=e}}else t=0,this.language=null;return C._ts_parser_set_language(this[0],t),this}parse(e,t,n){if("string"==typeof e)C.currentParseCallback=t=>e.slice(t);else{if("function"!=typeof e)throw new Error("Argument must be a string or a function");C.currentParseCallback=e}C.currentProgressCallback=n?.progressCallback?n.progressCallback:null,this.logCallback?(C.currentLogCallback=this.logCallback,C._ts_parser_enable_logger_wasm(this[0],1)):(C.currentLogCallback=null,C._ts_parser_enable_logger_wasm(this[0],0));let s=0,r=0;if(n?.includedRanges){s=n.includedRanges.length,r=C._calloc(s,SIZE_OF_RANGE);let e=r;for(let t=0;t<s;t++)marshalRange(e,n.includedRanges[t]),e+=SIZE_OF_RANGE}const i=C._ts_parser_parse_wasm(this[0],this[1],t?t[0]:0,r,s);if(!i)return C.currentParseCallback=null,C.currentLogCallback=null,C.currentProgressCallback=null,null;if(!this.language)throw new Error("Parser must have a language to parse");const a=new Tree(INTERNAL,i,this.language,C.currentParseCallback);return C.currentParseCallback=null,C.currentLogCallback=null,C.currentProgressCallback=null,a}reset(){C._ts_parser_reset(this[0])}getIncludedRanges(){C._ts_parser_included_ranges_wasm(this[0]);const e=C.getValue(TRANSFER_BUFFER,"i32"),t=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),n=new Array(e);if(e>0){let s=t;for(let t=0;t<e;t++)n[t]=unmarshalRange(s),s+=SIZE_OF_RANGE;C._free(t)}return n}setLogger(e){if(e){if("function"!=typeof e)throw new Error("Logger callback must be a function");this.logCallback=e}else this.logCallback=null;return this}getLogger(){return this.logCallback}},PREDICATE_STEP_TYPE_CAPTURE=1,PREDICATE_STEP_TYPE_STRING=2,QUERY_WORD_REGEX=/[\w-]+/g,CaptureQuantifier={Zero:0,ZeroOrOne:1,ZeroOrMore:2,One:3,OneOrMore:4},isCaptureStep=__name(e=>"capture"===e.type,"isCaptureStep"),isStringStep=__name(e=>"string"===e.type,"isStringStep"),QueryErrorKind={Syntax:1,NodeName:2,FieldName:3,CaptureName:4,PatternStructure:5},QueryError=class e extends Error{constructor(t,n,s,r){super(e.formatMessage(t,n)),this.kind=t,this.info=n,this.index=s,this.length=r,this.name="QueryError"}static{__name(this,"QueryError")}static formatMessage(e,t){switch(e){case QueryErrorKind.NodeName:return`Bad node name '${t.word}'`;case QueryErrorKind.FieldName:return`Bad field name '${t.word}'`;case QueryErrorKind.CaptureName:return`Bad capture name @${t.word}`;case QueryErrorKind.PatternStructure:return`Bad pattern structure at offset ${t.suffix}`;case QueryErrorKind.Syntax:return`Bad syntax at offset ${t.suffix}`}}};function parseAnyPredicate(e,t,n,s){if(3!==e.length)throw new Error(`Wrong number of arguments to \`#${n}\` predicate. Expected 2, got ${e.length-1}`);if(!isCaptureStep(e[1]))throw new Error(`First argument of \`#${n}\` predicate must be a capture. Got "${e[1].value}"`);const r="eq?"===n||"any-eq?"===n,i=!n.startsWith("any-");if(isCaptureStep(e[2])){const n=e[1].name,a=e[2].name;s[t].push(e=>{const t=[],s=[];for(const r of e)r.name===n&&t.push(r.node),r.name===a&&s.push(r.node);const o=__name((e,t,n)=>n?e.text===t.text:e.text!==t.text,"compare");return i?t.every(e=>s.some(t=>o(e,t,r))):t.some(e=>s.some(t=>o(e,t,r)))})}else{const n=e[1].name,a=e[2].value,o=__name(e=>e.text===a,"matches"),c=__name(e=>e.text!==a,"doesNotMatch");s[t].push(e=>{const t=[];for(const s of e)s.name===n&&t.push(s.node);const s=r?o:c;return i?t.every(s):t.some(s)})}}function parseMatchPredicate(e,t,n,s){if(3!==e.length)throw new Error(`Wrong number of arguments to \`#${n}\` predicate. Expected 2, got ${e.length-1}.`);if("capture"!==e[1].type)throw new Error(`First argument of \`#${n}\` predicate must be a capture. Got "${e[1].value}".`);if("string"!==e[2].type)throw new Error(`Second argument of \`#${n}\` predicate must be a string. Got @${e[2].name}.`);const r="match?"===n||"any-match?"===n,i=!n.startsWith("any-"),a=e[1].name,o=new RegExp(e[2].value);s[t].push(e=>{const t=[];for(const n of e)n.name===a&&t.push(n.node.text);const n=__name((e,t)=>t?o.test(e):!o.test(e),"test");return 0===t.length?!r:i?t.every(e=>n(e,r)):t.some(e=>n(e,r))})}function parseAnyOfPredicate(e,t,n,s){if(e.length<2)throw new Error(`Wrong number of arguments to \`#${n}\` predicate. Expected at least 1. Got ${e.length-1}.`);if("capture"!==e[1].type)throw new Error(`First argument of \`#${n}\` predicate must be a capture. Got "${e[1].value}".`);const r="any-of?"===n,i=e[1].name,a=e.slice(2);if(!a.every(isStringStep))throw new Error(`Arguments to \`#${n}\` predicate must be strings.".`);const o=a.map(e=>e.value);s[t].push(e=>{const t=[];for(const n of e)n.name===i&&t.push(n.node.text);return 0===t.length?!r:t.every(e=>o.includes(e))===r})}function parseIsPredicate(e,t,n,s,r){if(e.length<2||e.length>3)throw new Error(`Wrong number of arguments to \`#${n}\` predicate. Expected 1 or 2. Got ${e.length-1}.`);if(!e.every(isStringStep))throw new Error(`Arguments to \`#${n}\` predicate must be strings.".`);const i="is?"===n?s:r;i[t]||(i[t]={}),i[t][e[1].value]=e[2]?.value??null}function parseSetDirective(e,t,n){if(e.length<2||e.length>3)throw new Error(`Wrong number of arguments to \`#set!\` predicate. Expected 1 or 2. Got ${e.length-1}.`);if(!e.every(isStringStep))throw new Error('Arguments to `#set!` predicate must be strings.".');n[t]||(n[t]={}),n[t][e[1].value]=e[2]?.value??null}function parsePattern(e,t,n,s,r,i,a,o,c,l,p){if(t===PREDICATE_STEP_TYPE_CAPTURE){const e=s[n];i.push({type:"capture",name:e})}else if(t===PREDICATE_STEP_TYPE_STRING)i.push({type:"string",value:r[n]});else if(i.length>0){if("string"!==i[0].type)throw new Error("Predicates must begin with a literal value");const t=i[0].value;switch(t){case"any-not-eq?":case"not-eq?":case"any-eq?":case"eq?":parseAnyPredicate(i,e,t,a);break;case"any-not-match?":case"not-match?":case"any-match?":case"match?":parseMatchPredicate(i,e,t,a);break;case"not-any-of?":case"any-of?":parseAnyOfPredicate(i,e,t,a);break;case"is?":case"is-not?":parseIsPredicate(i,e,t,l,p);break;case"set!":parseSetDirective(i,e,c);break;default:o[e].push({operator:t,operands:i.slice(1)})}i.length=0}}__name(parseAnyPredicate,"parseAnyPredicate"),__name(parseMatchPredicate,"parseMatchPredicate"),__name(parseAnyOfPredicate,"parseAnyOfPredicate"),__name(parseIsPredicate,"parseIsPredicate"),__name(parseSetDirective,"parseSetDirective"),__name(parsePattern,"parsePattern");var Query=class{static{__name(this,"Query")}0=0;exceededMatchLimit;textPredicates;captureNames;captureQuantifiers;predicates;setProperties;assertedProperties;refutedProperties;matchLimit;constructor(e,t){const n=C.lengthBytesUTF8(t),s=C._malloc(n+1);C.stringToUTF8(t,s,n+1);const r=C._ts_query_new(e[0],s,n,TRANSFER_BUFFER,TRANSFER_BUFFER+SIZE_OF_INT);if(!r){const e=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),n=C.getValue(TRANSFER_BUFFER,"i32"),r=C.UTF8ToString(s,n).length,i=t.slice(r,r+100).split("\n")[0],a=i.match(QUERY_WORD_REGEX)?.[0]??"";switch(C._free(s),e){case QueryErrorKind.Syntax:throw new QueryError(QueryErrorKind.Syntax,{suffix:`${r}: '${i}'...`},r,0);case QueryErrorKind.NodeName:case QueryErrorKind.FieldName:case QueryErrorKind.CaptureName:throw new QueryError(e,{word:a},r,a.length);case QueryErrorKind.PatternStructure:throw new QueryError(e,{suffix:`${r}: '${i}'...`},r,0)}}const i=C._ts_query_string_count(r),a=C._ts_query_capture_count(r),o=C._ts_query_pattern_count(r),c=new Array(a),l=new Array(o),p=new Array(i);for(let e=0;e<a;e++){const t=C._ts_query_capture_name_for_id(r,e,TRANSFER_BUFFER),n=C.getValue(TRANSFER_BUFFER,"i32");c[e]=C.UTF8ToString(t,n)}for(let e=0;e<o;e++){const t=new Array(a);for(let n=0;n<a;n++){const s=C._ts_query_capture_quantifier_for_id(r,e,n);t[n]=s}l[e]=t}for(let e=0;e<i;e++){const t=C._ts_query_string_value_for_id(r,e,TRANSFER_BUFFER),n=C.getValue(TRANSFER_BUFFER,"i32");p[e]=C.UTF8ToString(t,n)}const u=new Array(o),d=new Array(o),m=new Array(o),h=new Array(o),f=new Array(o);for(let e=0;e<o;e++){const t=C._ts_query_predicates_for_pattern(r,e,TRANSFER_BUFFER),n=C.getValue(TRANSFER_BUFFER,"i32");h[e]=[],f[e]=[];const s=new Array;let i=t;for(let t=0;t<n;t++){const t=C.getValue(i,"i32");i+=SIZE_OF_INT;const n=C.getValue(i,"i32");i+=SIZE_OF_INT,parsePattern(e,t,n,c,p,s,f,h,u,d,m)}Object.freeze(f[e]),Object.freeze(h[e]),Object.freeze(u[e]),Object.freeze(d[e]),Object.freeze(m[e])}C._free(s),this[0]=r,this.captureNames=c,this.captureQuantifiers=l,this.textPredicates=f,this.predicates=h,this.setProperties=u,this.assertedProperties=d,this.refutedProperties=m,this.exceededMatchLimit=!1}delete(){C._ts_query_delete(this[0]),this[0]=0}matches(e,t={}){const n=t.startPosition??ZERO_POINT,s=t.endPosition??ZERO_POINT,r=t.startIndex??0,i=t.endIndex??0,a=t.startContainingPosition??ZERO_POINT,o=t.endContainingPosition??ZERO_POINT,c=t.startContainingIndex??0,l=t.endContainingIndex??0,p=t.matchLimit??4294967295,u=t.maxStartDepth??4294967295,d=t.progressCallback;if("number"!=typeof p)throw new Error("Arguments must be numbers");if(this.matchLimit=p,0!==i&&r>i)throw new Error("`startIndex` cannot be greater than `endIndex`");if(s!==ZERO_POINT&&(n.row>s.row||n.row===s.row&&n.column>s.column))throw new Error("`startPosition` cannot be greater than `endPosition`");if(0!==l&&c>l)throw new Error("`startContainingIndex` cannot be greater than `endContainingIndex`");if(o!==ZERO_POINT&&(a.row>o.row||a.row===o.row&&a.column>o.column))throw new Error("`startContainingPosition` cannot be greater than `endContainingPosition`");d&&(C.currentQueryProgressCallback=d),marshalNode(e),C._ts_query_matches_wasm(this[0],e.tree[0],n.row,n.column,s.row,s.column,r,i,a.row,a.column,o.row,o.column,c,l,p,u);const m=C.getValue(TRANSFER_BUFFER,"i32"),h=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),f=C.getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),g=new Array(m);this.exceededMatchLimit=Boolean(f);let y=0,E=h;for(let t=0;t<m;t++){const t=C.getValue(E,"i32");E+=SIZE_OF_INT;const n=C.getValue(E,"i32");E+=SIZE_OF_INT;const s=new Array(n);if(E=unmarshalCaptures(this,e.tree,E,t,s),this.textPredicates[t].every(e=>e(s))){g[y]={patternIndex:t,captures:s};const e=this.setProperties[t];g[y].setProperties=e;const n=this.assertedProperties[t];g[y].assertedProperties=n;const r=this.refutedProperties[t];g[y].refutedProperties=r,y++}}return g.length=y,C._free(h),C.currentQueryProgressCallback=null,g}captures(e,t={}){const n=t.startPosition??ZERO_POINT,s=t.endPosition??ZERO_POINT,r=t.startIndex??0,i=t.endIndex??0,a=t.startContainingPosition??ZERO_POINT,o=t.endContainingPosition??ZERO_POINT,c=t.startContainingIndex??0,l=t.endContainingIndex??0,p=t.matchLimit??4294967295,u=t.maxStartDepth??4294967295,d=t.progressCallback;if("number"!=typeof p)throw new Error("Arguments must be numbers");if(this.matchLimit=p,0!==i&&r>i)throw new Error("`startIndex` cannot be greater than `endIndex`");if(s!==ZERO_POINT&&(n.row>s.row||n.row===s.row&&n.column>s.column))throw new Error("`startPosition` cannot be greater than `endPosition`");if(0!==l&&c>l)throw new Error("`startContainingIndex` cannot be greater than `endContainingIndex`");if(o!==ZERO_POINT&&(a.row>o.row||a.row===o.row&&a.column>o.column))throw new Error("`startContainingPosition` cannot be greater than `endContainingPosition`");d&&(C.currentQueryProgressCallback=d),marshalNode(e),C._ts_query_captures_wasm(this[0],e.tree[0],n.row,n.column,s.row,s.column,r,i,a.row,a.column,o.row,o.column,c,l,p,u);const m=C.getValue(TRANSFER_BUFFER,"i32"),h=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),f=C.getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),g=new Array;this.exceededMatchLimit=Boolean(f);const y=new Array;let E=h;for(let t=0;t<m;t++){const t=C.getValue(E,"i32");E+=SIZE_OF_INT;const n=C.getValue(E,"i32");E+=SIZE_OF_INT;const s=C.getValue(E,"i32");if(E+=SIZE_OF_INT,y.length=n,E=unmarshalCaptures(this,e.tree,E,t,y),this.textPredicates[t].every(e=>e(y))){const e=y[s],n=this.setProperties[t];e.setProperties=n;const r=this.assertedProperties[t];e.assertedProperties=r;const i=this.refutedProperties[t];e.refutedProperties=i,g.push(e)}}return C._free(h),C.currentQueryProgressCallback=null,g}predicatesForPattern(e){return this.predicates[e]}disableCapture(e){const t=C.lengthBytesUTF8(e),n=C._malloc(t+1);C.stringToUTF8(e,n,t+1),C._ts_query_disable_capture(this[0],n,t),C._free(n)}disablePattern(e){if(e>=this.predicates.length)throw new Error(`Pattern index is ${e} but the pattern count is ${this.predicates.length}`);C._ts_query_disable_pattern(this[0],e)}didExceedMatchLimit(){return this.exceededMatchLimit}startIndexForPattern(e){if(e>=this.predicates.length)throw new Error(`Pattern index is ${e} but the pattern count is ${this.predicates.length}`);return C._ts_query_start_byte_for_pattern(this[0],e)}endIndexForPattern(e){if(e>=this.predicates.length)throw new Error(`Pattern index is ${e} but the pattern count is ${this.predicates.length}`);return C._ts_query_end_byte_for_pattern(this[0],e)}patternCount(){return C._ts_query_pattern_count(this[0])}captureIndexForName(e){return this.captureNames.indexOf(e)}isPatternRooted(e){return 1===C._ts_query_is_pattern_rooted(this[0],e)}isPatternNonLocal(e){return 1===C._ts_query_is_pattern_non_local(this[0],e)}isPatternGuaranteedAtStep(e){return 1===C._ts_query_is_pattern_guaranteed_at_step(this[0],e)}}},928(e){"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')}};const __webpack_module_cache__={};function __webpack_require__(e){const t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;const n=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](n,n.exports,__webpack_require__),n.exports}__webpack_require__.cw=e=>{var t;return()=>{if(e){var n=e;e=0,t={exports:{}},n.call(t.exports,t,t.exports)}return t.exports}},(()=>{const e=Object.getPrototypeOf;let t;__webpack_require__.t=function(n,s){if(1&s&&(n=this(n)),8&s)return n;if("object"==typeof n&&n){if(4&s&&n.__esModule)return n;if(16&s&&"function"==typeof n.then)return n}const r=Object.create(null);__webpack_require__.r(r);const i={};t=t||[null,e({}),e([]),e(e)];for(var a=2&s&&n;("object"==typeof a||"function"==typeof a)&&!~t.indexOf(a);a=e(a))Object.getOwnPropertyNames(a).forEach(e=>i[e]=()=>n[e]);return i.default=()=>n,__webpack_require__.d(r,i),r}})(),__webpack_require__.d=(e,t)=>{if(Array.isArray(t))for(var n=0;n<t.length;){var s=t[n++],r=t[n++],i=0===r?{enumerable:!0,value:t[n++]}:{enumerable:!0,get:r};__webpack_require__.o(e,s)||Object.defineProperty(e,s,i)}else for(var s in t)__webpack_require__.o(t,s)&&!__webpack_require__.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.b="undefined"!=typeof document&&document.baseURI||self.location.href;let __webpack_exports__={};return(()=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{ARAZZO_LANGUAGE_ID:()=>"apidom",DEFAULT_DOCUMENT_VERSION:()=>1,Diagnostic:()=>xn,DiagnosticSeverity:()=>In,TextDocument:()=>kr,ValidateError:()=>Kr,createTextDocument:()=>Hr,defaultArazzoResolveOptions:()=>kFt,defaultLanguageServiceContext:()=>NFt,validate:()=>FFt,validateURI:()=>CFt});var e=__webpack_require__.cw(function(e,i){var d=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(i,"__esModule",{value:!0}),i.ProgressType=i.ProgressToken=i.createMessageConnection=i.NullLogger=i.ConnectionOptions=i.ConnectionStrategy=i.AbstractMessageBuffer=i.WriteableStreamMessageWriter=i.AbstractMessageWriter=i.MessageWriter=i.ReadableStreamMessageReader=i.AbstractMessageReader=i.MessageReader=i.SharedArrayReceiverStrategy=i.SharedArraySenderStrategy=i.CancellationToken=i.CancellationTokenSource=i.Emitter=i.Event=i.Disposable=i.LRUCache=i.Touch=i.LinkedMap=i.ParameterStructures=i.NotificationType9=i.NotificationType8=i.NotificationType7=i.NotificationType6=i.NotificationType5=i.NotificationType4=i.NotificationType3=i.NotificationType2=i.NotificationType1=i.NotificationType0=i.NotificationType=i.ErrorCodes=i.ResponseError=i.RequestType9=i.RequestType8=i.RequestType7=i.RequestType6=i.RequestType5=i.RequestType4=i.RequestType3=i.RequestType2=i.RequestType1=i.RequestType0=i.RequestType=i.Message=i.RAL=void 0,i.MessageStrategy=i.CancellationStrategy=i.CancellationSenderStrategy=i.RequestCancellationReceiverStrategy=i.IdCancellationReceiverStrategy=i.CancellationReceiverStrategy=i.ConnectionError=i.ConnectionErrors=i.LogTraceNotification=i.SetTraceNotification=i.TraceFormat=i.TraceValues=i.TraceValue=i.Trace=void 0;const h=p();Object.defineProperty(i,"Message",{enumerable:!0,get:function(){return h.Message}}),Object.defineProperty(i,"RequestType",{enumerable:!0,get:function(){return h.RequestType}}),Object.defineProperty(i,"RequestType0",{enumerable:!0,get:function(){return h.RequestType0}}),Object.defineProperty(i,"RequestType1",{enumerable:!0,get:function(){return h.RequestType1}}),Object.defineProperty(i,"RequestType2",{enumerable:!0,get:function(){return h.RequestType2}}),Object.defineProperty(i,"RequestType3",{enumerable:!0,get:function(){return h.RequestType3}}),Object.defineProperty(i,"RequestType4",{enumerable:!0,get:function(){return h.RequestType4}}),Object.defineProperty(i,"RequestType5",{enumerable:!0,get:function(){return h.RequestType5}}),Object.defineProperty(i,"RequestType6",{enumerable:!0,get:function(){return h.RequestType6}}),Object.defineProperty(i,"RequestType7",{enumerable:!0,get:function(){return h.RequestType7}}),Object.defineProperty(i,"RequestType8",{enumerable:!0,get:function(){return h.RequestType8}}),Object.defineProperty(i,"RequestType9",{enumerable:!0,get:function(){return h.RequestType9}}),Object.defineProperty(i,"ResponseError",{enumerable:!0,get:function(){return h.ResponseError}}),Object.defineProperty(i,"ErrorCodes",{enumerable:!0,get:function(){return h.ErrorCodes}}),Object.defineProperty(i,"NotificationType",{enumerable:!0,get:function(){return h.NotificationType}}),Object.defineProperty(i,"NotificationType0",{enumerable:!0,get:function(){return h.NotificationType0}}),Object.defineProperty(i,"NotificationType1",{enumerable:!0,get:function(){return h.NotificationType1}}),Object.defineProperty(i,"NotificationType2",{enumerable:!0,get:function(){return h.NotificationType2}}),Object.defineProperty(i,"NotificationType3",{enumerable:!0,get:function(){return h.NotificationType3}}),Object.defineProperty(i,"NotificationType4",{enumerable:!0,get:function(){return h.NotificationType4}}),Object.defineProperty(i,"NotificationType5",{enumerable:!0,get:function(){return h.NotificationType5}}),Object.defineProperty(i,"NotificationType6",{enumerable:!0,get:function(){return h.NotificationType6}}),Object.defineProperty(i,"NotificationType7",{enumerable:!0,get:function(){return h.NotificationType7}}),Object.defineProperty(i,"NotificationType8",{enumerable:!0,get:function(){return h.NotificationType8}}),Object.defineProperty(i,"NotificationType9",{enumerable:!0,get:function(){return h.NotificationType9}}),Object.defineProperty(i,"ParameterStructures",{enumerable:!0,get:function(){return h.ParameterStructures}});const f=a();Object.defineProperty(i,"LinkedMap",{enumerable:!0,get:function(){return f.LinkedMap}}),Object.defineProperty(i,"LRUCache",{enumerable:!0,get:function(){return f.LRUCache}}),Object.defineProperty(i,"Touch",{enumerable:!0,get:function(){return f.Touch}});const g=s();Object.defineProperty(i,"Disposable",{enumerable:!0,get:function(){return g.Disposable}});const y=r();Object.defineProperty(i,"Event",{enumerable:!0,get:function(){return y.Event}}),Object.defineProperty(i,"Emitter",{enumerable:!0,get:function(){return y.Emitter}});const E=t();Object.defineProperty(i,"CancellationTokenSource",{enumerable:!0,get:function(){return E.CancellationTokenSource}}),Object.defineProperty(i,"CancellationToken",{enumerable:!0,get:function(){return E.CancellationToken}});const b=m();Object.defineProperty(i,"SharedArraySenderStrategy",{enumerable:!0,get:function(){return b.SharedArraySenderStrategy}}),Object.defineProperty(i,"SharedArrayReceiverStrategy",{enumerable:!0,get:function(){return b.SharedArrayReceiverStrategy}});const _=c();Object.defineProperty(i,"MessageReader",{enumerable:!0,get:function(){return _.MessageReader}}),Object.defineProperty(i,"AbstractMessageReader",{enumerable:!0,get:function(){return _.AbstractMessageReader}}),Object.defineProperty(i,"ReadableStreamMessageReader",{enumerable:!0,get:function(){return _.ReadableStreamMessageReader}});const T=l();Object.defineProperty(i,"MessageWriter",{enumerable:!0,get:function(){return T.MessageWriter}}),Object.defineProperty(i,"AbstractMessageWriter",{enumerable:!0,get:function(){return T.AbstractMessageWriter}}),Object.defineProperty(i,"WriteableStreamMessageWriter",{enumerable:!0,get:function(){return T.WriteableStreamMessageWriter}});const v=o();Object.defineProperty(i,"AbstractMessageBuffer",{enumerable:!0,get:function(){return v.AbstractMessageBuffer}});const A=n();Object.defineProperty(i,"ConnectionStrategy",{enumerable:!0,get:function(){return A.ConnectionStrategy}}),Object.defineProperty(i,"ConnectionOptions",{enumerable:!0,get:function(){return A.ConnectionOptions}}),Object.defineProperty(i,"NullLogger",{enumerable:!0,get:function(){return A.NullLogger}}),Object.defineProperty(i,"createMessageConnection",{enumerable:!0,get:function(){return A.createMessageConnection}}),Object.defineProperty(i,"ProgressToken",{enumerable:!0,get:function(){return A.ProgressToken}}),Object.defineProperty(i,"ProgressType",{enumerable:!0,get:function(){return A.ProgressType}}),Object.defineProperty(i,"Trace",{enumerable:!0,get:function(){return A.Trace}}),Object.defineProperty(i,"TraceValue",{enumerable:!0,get:function(){return A.TraceValue}}),Object.defineProperty(i,"TraceFormat",{enumerable:!0,get:function(){return A.TraceFormat}}),Object.defineProperty(i,"SetTraceNotification",{enumerable:!0,get:function(){return A.SetTraceNotification}}),Object.defineProperty(i,"LogTraceNotification",{enumerable:!0,get:function(){return A.LogTraceNotification}}),Object.defineProperty(i,"ConnectionErrors",{enumerable:!0,get:function(){return A.ConnectionErrors}}),Object.defineProperty(i,"ConnectionError",{enumerable:!0,get:function(){return A.ConnectionError}}),Object.defineProperty(i,"CancellationReceiverStrategy",{enumerable:!0,get:function(){return A.CancellationReceiverStrategy}}),Object.defineProperty(i,"IdCancellationReceiverStrategy",{enumerable:!0,get:function(){return A.IdCancellationReceiverStrategy}}),Object.defineProperty(i,"RequestCancellationReceiverStrategy",{enumerable:!0,get:function(){return A.RequestCancellationReceiverStrategy}}),Object.defineProperty(i,"CancellationSenderStrategy",{enumerable:!0,get:function(){return A.CancellationSenderStrategy}}),Object.defineProperty(i,"CancellationStrategy",{enumerable:!0,get:function(){return A.CancellationStrategy}}),Object.defineProperty(i,"MessageStrategy",{enumerable:!0,get:function(){return A.MessageStrategy}}),Object.defineProperty(i,"TraceValues",{enumerable:!0,get:function(){return A.TraceValues}});const S=d(u());i.RAL=S.default}),t=__webpack_require__.cw(function(e,t){var n,s=this&&this.__createBinding||(Object.create?function(e,t,n,s){void 0===s&&(s=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,s,r)}:function(e,t,n,s){void 0===s&&(s=n),e[s]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||(n=function(e){return n=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},n(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=n(e),i=0;i<r.length;i++)"default"!==r[i]&&s(t,e,r[i]);return a(t,e),t}),c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CancellationTokenSource=t.CancellationToken=void 0;const l=c(u()),p=o(i()),d=r();var m;!function(e){e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:d.Event.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:d.Event.None}),e.is=function(t){const n=t;return n&&(n===e.None||n===e.Cancelled||p.boolean(n.isCancellationRequested)&&!!n.onCancellationRequested)}}(m||(t.CancellationToken=m={}));const h=Object.freeze(function(e,t){const n=(0,l.default)().timer.setTimeout(e.bind(t),0);return{dispose(){n.dispose()}}});class f{_isCancelled=!1;_emitter;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?h:(this._emitter||(this._emitter=new d.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}}t.CancellationTokenSource=class{_token;get token(){return this._token||(this._token=new f),this._token}cancel(){this._token?this._token.cancel():this._token=m.Cancelled}dispose(){this._token?this._token instanceof f&&this._token.dispose():this._token=m.None}}}),n=__webpack_require__.cw(function(e,n){var s,o=this&&this.__createBinding||(Object.create?function(e,t,n,s){void 0===s&&(s=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,s,r)}:function(e,t,n,s){void 0===s&&(s=n),e[s]=t[n]}),c=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||(s=function(e){return s=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},s(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=s(e),r=0;r<n.length;r++)"default"!==n[r]&&o(t,e,n[r]);return c(t,e),t}),d=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.ConnectionOptions=n.MessageStrategy=n.CancellationStrategy=n.CancellationSenderStrategy=n.CancellationReceiverStrategy=n.RequestCancellationReceiverStrategy=n.IdCancellationReceiverStrategy=n.ConnectionStrategy=n.ConnectionError=n.ConnectionErrors=n.LogTraceNotification=n.SetTraceNotification=n.TraceFormat=n.TraceValues=n.TraceValue=n.Trace=n.NullLogger=n.ProgressType=n.ProgressToken=void 0,n.createMessageConnection=function(e,t,s,r){const i=void 0!==s?s:n.NullLogger;let a=0,o=0,c=0;const l="2.0",p=r?.maxParallelism??-1;let u,d=0;const S=new Map;let w;const N=new Map,F=new Map;let R,L,U=new g.LinkedMap,Y=new Map,B=new Set,$=new Map,q=A.Off,V=I.Text,H=M.New;const Q=new y.Emitter,G=new y.Emitter,W=new y.Emitter,J=new y.Emitter,K=new y.Emitter,z=r&&r.cancellationStrategy?r.cancellationStrategy:k.Message;function Z(e){}function X(){return H===M.Listening}function ee(){return H===M.Closed}function te(){return H===M.Disposed}function ne(){H!==M.New&&H!==M.Listening||(H=M.Closed,G.fire(void 0))}function se(e){if(null===e)throw new Error("Can't send requests with id null since the response can't be correlated.");return"req-"+e.toString()}function re(e,t){var n;f.Message.isRequest(t)?e.set(se(t.id),t):f.Message.isResponse(t)?-1===p?e.set(null===(n=t.id)?"res-unknown-"+(++c).toString():"res-"+n.toString(),t):ce(t):e.set("not-"+(++o).toString(),t)}function ie(){R||0===U.size||-1!==p&&d>=p||(R=(0,m.default)().timer.setImmediate(async()=>{if(R=void 0,0===U.size)return;if(-1!==p&&d>=p)return;const e=U.shift();let t;try{d++;const n=r?.messageStrategy;t=C.is(n)?n.handleMessage(e,ae):ae(e)}catch(e){i.error(`Processing message queue failed: ${e.toString()}`)}finally{t instanceof Promise?t.then(()=>{d--,ie()}).catch(e=>{i.error(`Processing message queue failed: ${e.toString()}`)}):d--,ie()}}))}async function ae(e){return f.Message.isRequest(e)?async function(e){if(te())return Promise.resolve();function n(n,s,r){const i={jsonrpc:l,id:e.id};return n instanceof f.ResponseError?i.error=n.toJson():i.result=void 0===n?null:n,pe(i,s,r),t.write(i)}function s(n,s,r){const i={jsonrpc:l,id:e.id,error:n.toJson()};return pe(i,s,r),t.write(i)}!function(e){if(q===A.Off||!L)return;if(V===I.Text){let t;q!==A.Verbose&&q!==A.Compact||!e.params||(t=`Params: ${le(e.params)}`),L.log(`Received request '${e.method} - (${e.id})'.`,t)}else de("receive-request",e)}(e);const r=S.get(e.method);let i,a;r&&(i=r.type,a=r.handler);const o=Date.now();if(a||u){const t=e.id??String(Date.now()),r=x.is(z.receiver)?z.receiver.createCancellationTokenSource(t):z.receiver.createCancellationTokenSource(e);null!==e.id&&B.has(e.id)&&r.cancel(),null!==e.id&&$.set(t,r);try{let t;if(a)if(void 0===e.params){if(void 0!==i&&0!==i.numberOfParams)return s(new f.ResponseError(f.ErrorCodes.InvalidParams,`Request ${e.method} defines ${i.numberOfParams} params but received none.`),e.method,o);t=a(r.token)}else if(Array.isArray(e.params)){if(void 0!==i&&i.parameterStructures===f.ParameterStructures.byName)return s(new f.ResponseError(f.ErrorCodes.InvalidParams,`Request ${e.method} defines parameters by name but received parameters by position`),e.method,o);t=a(...e.params,r.token)}else{if(void 0!==i&&i.parameterStructures===f.ParameterStructures.byPosition)return s(new f.ResponseError(f.ErrorCodes.InvalidParams,`Request ${e.method} defines parameters by position but received parameters by name`),e.method,o);t=a(e.params,r.token)}else u&&(t=u(e.method,e.params,r.token));const c=await t;await n(c,e.method,o)}catch(t){t instanceof f.ResponseError?await n(t,e.method,o):t&&h.string(t.message)?await s(new f.ResponseError(f.ErrorCodes.InternalError,`Request ${e.method} failed with message: ${t.message}`),e.method,o):await s(new f.ResponseError(f.ErrorCodes.InternalError,`Request ${e.method} failed unexpectedly without providing any details.`),e.method,o)}finally{$.delete(t)}}else await s(new f.ResponseError(f.ErrorCodes.MethodNotFound,`Unhandled method ${e.method}`),e.method,o)}(e):f.Message.isNotification(e)?async function(e){if(te())return;let t,n;if(e.method===b.type.method){const t=e.params.id;return B.delete(t),void ue(e)}{const s=N.get(e.method);s&&(n=s.handler,t=s.type)}if(n||w)try{if(ue(e),n)if(void 0===e.params)void 0!==t&&0!==t.numberOfParams&&t.parameterStructures!==f.ParameterStructures.byName&&i.error(`Notification ${e.method} defines ${t.numberOfParams} params but received none.`),await n();else if(Array.isArray(e.params)){const s=e.params;e.method===T.type.method&&2===s.length&&_.is(s[0])?await n({token:s[0],value:s[1]}):(void 0!==t&&(t.parameterStructures===f.ParameterStructures.byName&&i.error(`Notification ${e.method} defines parameters by name but received parameters by position`),t.numberOfParams!==e.params.length&&i.error(`Notification ${e.method} defines ${t.numberOfParams} params but received ${s.length} arguments`)),await n(...s))}else void 0!==t&&t.parameterStructures===f.ParameterStructures.byPosition&&i.error(`Notification ${e.method} defines parameters by position but received parameters by name`),await n(e.params);else w&&await w(e.method,e.params)}catch(t){t.message?i.error(`Notification handler '${e.method}' failed with message: ${t.message}`):i.error(`Notification handler '${e.method}' failed unexpectedly.`)}else W.fire(e)}(e):f.Message.isResponse(e)?ce(e):function(e){if(!e)return void i.error("Received empty message.");i.error(`Received message which is neither a response nor a notification message:\n${JSON.stringify(e,null,4)}`);const t=e;if(h.string(t.id)||h.number(t.id)){const e=t.id,n=Y.get(e);n&&n.reject(new Error("The received response has neither a result nor an error property."))}}(e)}e.onClose(ne),e.onError(function(e){Q.fire([e,void 0,void 0])}),t.onClose(ne),t.onError(function(e){Q.fire(e)});const oe=e=>{try{if(f.Message.isNotification(e)&&e.method===b.type.method){const n=e.params.id,s=se(n),a=U.get(s);if(f.Message.isRequest(a)){const o=r?.connectionStrategy,c=o&&o.cancelUndispatched?o.cancelUndispatched(a,Z):void 0;if(c&&(void 0!==c.error||void 0!==c.result))return U.delete(s),$.delete(n),c.id=a.id,pe(c,e.method,Date.now()),void t.write(c).catch(()=>i.error("Sending response for canceled message failed."))}const o=$.get(n);if(void 0!==o)return o.cancel(),void ue(e);B.add(n)}re(U,e)}finally{ie()}};function ce(e){if(!te())if(null===e.id)e.error?i.error(`Received response message without id: Error is: \n${JSON.stringify(e.error,void 0,4)}`):i.error("Received response message without id. No further error information provided.");else{const t=e.id,n=Y.get(t);if(function(e,t){if(q===A.Off||!L)return;if(V===I.Text){let n;if(q!==A.Verbose&&q!==A.Compact||(e.error&&e.error.data?n=`Error data: ${le(e.error.data)}`:e.result?n=`Result: ${le(e.result)}`:void 0===e.error&&(n="No result returned.")),t){const s=e.error?` Request failed: ${e.error.message} (${e.error.code}).`:"";L.log(`Received response '${t.method} - (${e.id})' in ${Date.now()-t.timerStart}ms.${s}`,n)}else L.log(`Received response ${e.id} without active response promise.`,n)}else de("receive-response",e)}(e,n),void 0!==n){Y.delete(t);try{if(e.error){const t=e.error;n.reject(new f.ResponseError(t.code,t.message,t.data))}else{if(void 0===e.result)throw new Error("Should never happen.");n.resolve(e.result)}}catch(e){e.message?i.error(`Response handler '${n.method}' failed with message: ${e.message}`):i.error(`Response handler '${n.method}' failed unexpectedly.`)}}}}function le(e){if(null!=e)switch(q){case A.Verbose:return JSON.stringify(e,null,4);case A.Compact:return JSON.stringify(e);default:return}}function pe(e,t,n){if(q!==A.Off&&L)if(V===I.Text){let s;q!==A.Verbose&&q!==A.Compact||(e.error&&e.error.data?s=`Error data: ${le(e.error.data)}`:e.result?s=`Result: ${le(e.result)}`:void 0===e.error&&(s="No result returned.")),L.log(`Sending response '${t} - (${e.id})'. Processing request took ${Date.now()-n}ms`,s)}else de("send-response",e)}function ue(e){if(q!==A.Off&&L&&e.method!==O.type.method)if(V===I.Text){let t;q!==A.Verbose&&q!==A.Compact||(t=e.params?`Params: ${le(e.params)}`:"No parameters provided."),L.log(`Received notification '${e.method}'.`,t)}else de("receive-notification",e)}function de(e,t){if(!L||q===A.Off)return;const n={isLSPMessage:!0,type:e,message:t,timestamp:Date.now()};L.log(n)}function me(){if(ee())throw new j(D.Closed,"Connection is closed.");if(te())throw new j(D.Disposed,"Connection is disposed.")}function he(e){return void 0===e?null:e}function fe(e){return null===e?void 0:e}function ge(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function ye(e,t){switch(e){case f.ParameterStructures.auto:return ge(t)?fe(t):[he(t)];case f.ParameterStructures.byName:if(!ge(t))throw new Error("Received parameters by name but param is not an object literal.");return fe(t);case f.ParameterStructures.byPosition:return[he(t)];default:throw new Error(`Unknown parameter structure ${e.toString()}`)}}function Ee(e,t){let n;const s=e.numberOfParams;switch(s){case 0:n=void 0;break;case 1:n=ye(e.parameterStructures,t[0]);break;default:n=[];for(let e=0;e<t.length&&e<s;e++)n.push(he(t[e]));if(t.length<s)for(let e=t.length;e<s;e++)n.push(null)}return n}const be={sendNotification:(e,...n)=>{let s,r;if(me(),h.string(e)){s=e;const t=n[0];let i=0,a=f.ParameterStructures.auto;f.ParameterStructures.is(t)&&(i=1,a=t);const o=n.length,c=o-i;switch(c){case 0:r=void 0;break;case 1:r=ye(a,n[i]);break;default:if(a===f.ParameterStructures.byName)throw new Error(`Received ${c} parameters for 'by Name' notification parameter structure.`);r=n.slice(i,o).map(e=>he(e))}}else{const t=n;s=e.method,r=Ee(e,t)}const a={jsonrpc:l,method:s,params:r};return function(e){if(q!==A.Off&&L)if(V===I.Text){let t;q!==A.Verbose&&q!==A.Compact||(t=e.params?`Params: ${le(e.params)}`:"No parameters provided."),L.log(`Sending notification '${e.method}'.`,t)}else de("send-notification",e)}(a),t.write(a).catch(e=>{throw i.error("Sending notification failed."),e})},onNotification:(e,t)=>{let n;return me(),h.func(e)?w=e:t&&(h.string(e)?(n=e,N.set(e,{type:void 0,handler:t})):(n=e.method,N.set(e.method,{type:e,handler:t}))),{dispose:()=>{void 0!==n?N.get(n)?.handler===t&&N.delete(n):w===e&&(w=void 0)}}},onProgress:(e,t,n)=>{if(F.has(t))throw new Error(`Progress handler for token ${t} already registered`);return F.set(t,n),{dispose:()=>{F.get(t)===n&&F.delete(t)}}},sendProgress:(e,t,n)=>be.sendNotification(T.type,{token:t,value:n}),onUnhandledProgress:J.event,sendRequest:(e,...n)=>{function s(e,t){const n=z.sender.sendCancellation(e,t);void 0===n?i.log(`Received no promise from cancellation strategy when cancelling id ${t}`):n.catch(()=>{i.log(`Sending cancellation messages for id ${t} failed.`)})}let r,o,c;if(me(),function(){if(!X())throw new Error("Call listen() first.")}(),h.string(e)){r=e;const t=n[0],s=n[n.length-1];let i=0,a=f.ParameterStructures.auto;f.ParameterStructures.is(t)&&(i=1,a=t);let l=n.length;E.CancellationToken.is(s)&&(l-=1,c=s);const p=l-i;switch(p){case 0:o=void 0;break;case 1:o=ye(a,n[i]);break;default:if(a===f.ParameterStructures.byName)throw new Error(`Received ${p} parameters for 'by Name' request parameter structure.`);o=n.slice(i,l).map(e=>he(e))}}else{const t=n;r=e.method,o=Ee(e,t);const s=e.numberOfParams;c=E.CancellationToken.is(t[s])?t[s]:void 0}const p=a++;let u,d=!1;void 0!==c&&(c.isCancellationRequested?d=!0:u=c.onCancellationRequested(()=>{s(be,p)}));const m={jsonrpc:l,id:p,method:r,params:o};return function(e){if(q!==A.Off&&L)if(V===I.Text){let t;q!==A.Verbose&&q!==A.Compact||!e.params||(t=`Params: ${le(e.params)}`),L.log(`Sending request '${e.method} - (${e.id})'.`,t)}else de("send-request",e)}(m),"function"==typeof z.sender.enableCancellation&&z.sender.enableCancellation(m),new Promise(async(e,n)=>{const a={method:r,timerStart:Date.now(),resolve:t=>{e(t),z.sender.cleanup(p),u?.dispose()},reject:e=>{n(e),z.sender.cleanup(p),u?.dispose()}};try{Y.set(p,a),await t.write(m),d&&s(be,p)}catch(e){throw Y.delete(p),a.reject(new f.ResponseError(f.ErrorCodes.MessageWriteError,e.message?e.message:"Unknown reason")),i.error("Sending request failed."),e}})},onRequest:(e,t)=>{me();let n=null;return v.is(e)?(n=void 0,u=e):h.string(e)?(n=null,void 0!==t&&(n=e,S.set(e,{handler:t,type:void 0}))):void 0!==t&&(n=e.method,S.set(e.method,{type:e,handler:t})),{dispose:()=>{null!==n&&(void 0!==n?S.get(n)?.handler===t&&S.delete(n):u===e&&(u=void 0))}}},hasPendingResponse:()=>Y.size>0,trace:async(e,t,n)=>{let s=!1,r=I.Text;void 0!==n&&(h.boolean(n)?s=n:(s=n.sendNotification||!1,r=n.traceFormat||I.Text)),q=e,V=r,L=q===A.Off?void 0:t,!s||ee()||te()||await be.sendNotification(P.type,{value:A.toString(e)})},onError:Q.event,onClose:G.event,onUnhandledNotification:W.event,onDispose:K.event,end:()=>{t.end()},dispose:()=>{if(te())return;H=M.Disposed,K.fire(void 0);const n=new f.ResponseError(f.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(const e of Y.values())e.reject(n);Y=new Map,$=new Map,B=new Set,U=new g.LinkedMap,h.func(t.dispose)&&t.dispose(),h.func(e.dispose)&&e.dispose()},listen:()=>{me(),function(){if(X())throw new j(D.AlreadyListening,"Connection is already listening")}(),H=M.Listening,e.listen(oe)},inspect:()=>{(0,m.default)().console.log("inspect")}};return be.onNotification(O.type,e=>{if(q===A.Off||!L)return;const t=q===A.Verbose||q===A.Compact;L.log(e.message,t?e.verbose:void 0)}),be.onNotification(T.type,async e=>{const t=F.get(e.token);t?await t(e.value):J.fire(e)}),be};const m=d(u()),h=l(i()),f=p(),g=a(),y=r(),E=t();var b,_,T,v,A,S,I,P,O,D,w,x,N,F,R,k,C,L,M;!function(e){e.type=new f.NotificationType("$/cancelRequest")}(b||(b={})),function(e){e.is=function(e){return"string"==typeof e||"number"==typeof e}}(_||(n.ProgressToken=_={})),function(e){e.type=new f.NotificationType("$/progress")}(T||(T={}));n.ProgressType=class{__;_pr;constructor(){}},function(e){e.is=function(e){return h.func(e)}}(v||(v={})),n.NullLogger=Object.freeze({error:()=>{},warn:()=>{},info:()=>{},log:()=>{}}),function(e){e[e.Off=0]="Off",e[e.Messages=1]="Messages",e[e.Compact=2]="Compact",e[e.Verbose=3]="Verbose"}(A||(n.Trace=A={})),function(e){e.Off="off",e.Messages="messages",e.Compact="compact",e.Verbose="verbose"}(S||(n.TraceValue=S={})),n.TraceValues=S,function(e){e.fromString=function(t){if(!h.string(t))return e.Off;switch(t=t.toLowerCase()){case"off":default:return e.Off;case"messages":return e.Messages;case"compact":return e.Compact;case"verbose":return e.Verbose}},e.toString=function(t){switch(t){case e.Off:return"off";case e.Messages:return"messages";case e.Compact:return"compact";case e.Verbose:return"verbose";default:return"off"}}}(A||(n.Trace=A={})),function(e){e.Text="text",e.JSON="json"}(I||(n.TraceFormat=I={})),function(e){e.fromString=function(t){return h.string(t)&&"json"===(t=t.toLowerCase())?e.JSON:e.Text}}(I||(n.TraceFormat=I={})),function(e){e.type=new f.NotificationType("$/setTrace")}(P||(n.SetTraceNotification=P={})),function(e){e.type=new f.NotificationType("$/logTrace")}(O||(n.LogTraceNotification=O={})),function(e){e[e.Closed=1]="Closed",e[e.Disposed=2]="Disposed",e[e.AlreadyListening=3]="AlreadyListening"}(D||(n.ConnectionErrors=D={}));class j extends Error{code;constructor(e,t){super(t),this.code=e,Object.setPrototypeOf(this,j.prototype)}}n.ConnectionError=j,function(e){e.is=function(e){const t=e;return t&&h.func(t.cancelUndispatched)}}(w||(n.ConnectionStrategy=w={})),function(e){e.is=function(e){const t=e;return t&&(void 0===t.kind||"id"===t.kind)&&h.func(t.createCancellationTokenSource)&&(void 0===t.dispose||h.func(t.dispose))}}(x||(n.IdCancellationReceiverStrategy=x={})),function(e){e.is=function(e){const t=e;return t&&"request"===t.kind&&h.func(t.createCancellationTokenSource)&&(void 0===t.dispose||h.func(t.dispose))}}(N||(n.RequestCancellationReceiverStrategy=N={})),function(e){e.Message=Object.freeze({createCancellationTokenSource:e=>new E.CancellationTokenSource}),e.is=function(e){return x.is(e)||N.is(e)}}(F||(n.CancellationReceiverStrategy=F={})),function(e){e.Message=Object.freeze({sendCancellation:(e,t)=>e.sendNotification(b.type,{id:t}),cleanup(e){}}),e.is=function(e){const t=e;return t&&h.func(t.sendCancellation)&&h.func(t.cleanup)}}(R||(n.CancellationSenderStrategy=R={})),function(e){e.Message=Object.freeze({receiver:F.Message,sender:R.Message}),e.is=function(e){const t=e;return t&&F.is(t.receiver)&&R.is(t.sender)}}(k||(n.CancellationStrategy=k={})),function(e){e.is=function(e){const t=e;return t&&h.func(t.handleMessage)}}(C||(n.MessageStrategy=C={})),function(e){e.is=function(e){const t=e;return t&&(k.is(t.cancellationStrategy)||w.is(t.connectionStrategy)||C.is(t.messageStrategy)||h.number(t.maxParallelism))}}(L||(n.ConnectionOptions=L={})),function(e){e[e.New=1]="New",e[e.Listening=2]="Listening",e[e.Closed=3]="Closed",e[e.Disposed=4]="Disposed"}(M||(M={}))}),s=__webpack_require__.cw(function(e,t){var n;t.Disposable=void 0,function(e){e.create=function(e){return{dispose:e}}}(n||(t.Disposable=n={}))}),r=__webpack_require__.cw(function(e,t){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Emitter=t.Event=void 0;const s=n(u());var r;!function(e){const t={dispose(){}};e.None=function(){return t}}(r||(t.Event=r={}));class i{_callbacks;_contexts;add(e,t=null,n){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(t),Array.isArray(n)&&n.push({dispose:()=>this.remove(e,t)})}remove(e,t=null){if(!this._callbacks)return;let n=!1;for(let s=0,r=this._callbacks.length;s<r;s++)if(this._callbacks[s]===e){if(this._contexts[s]===t)return this._callbacks.splice(s,1),void this._contexts.splice(s,1);n=!0}if(n)throw new Error("When adding a listener with a context, you should remove it with the same context")}invoke(...e){if(!this._callbacks)return[];const t=[],n=this._callbacks.slice(0),r=this._contexts.slice(0);for(let i=0,a=n.length;i<a;i++)try{t.push(n[i].apply(r[i],e))}catch(e){(0,s.default)().console.error(e)}return t}isEmpty(){return!this._callbacks||0===this._callbacks.length}dispose(){this._callbacks=void 0,this._contexts=void 0}}class a{_options;static _noop=function(){};_event;_callbacks;constructor(e){this._options=e}get event(){return this._event||(this._event=(e,t,n)=>{this._callbacks||(this._callbacks=new i),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(e,t);const s={dispose:()=>{this._callbacks&&(this._callbacks.remove(e,t),s.dispose=a._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(n)&&n.push(s),s}),this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}}t.Emitter=a}),i=()=>__webpack_require__(863),a=__webpack_require__.cw(function(e,t){var n;t.LRUCache=t.LinkedMap=t.Touch=void 0,function(e){e.None=0,e.First=1,e.AsOld=e.First,e.Last=2,e.AsNew=e.Last}(n||(t.Touch=n={}));class s{[Symbol.toStringTag]="LinkedMap";_map;_head;_tail;_size;_state;constructor(){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(){return this._head?.value}get last(){return this._tail?.value}before(e){const t=this._map.get(e);return t?t.previous?.value:void 0}after(e){const t=this._map.get(e);return t?t.next?.value:void 0}has(e){return this._map.has(e)}get(e,t=n.None){const s=this._map.get(e);if(s)return t!==n.None&&this.touch(s,t),s.value}set(e,t,s=n.None){let r=this._map.get(e);if(r)r.value=t,s!==n.None&&this.touch(r,s);else{switch(r={key:e,value:t,next:void 0,previous:void 0},s){case n.None:this.addItemLast(r);break;case n.First:this.addItemFirst(r);break;case n.Last:default:this.addItemLast(r)}this._map.set(e,r),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const n=this._state;let s=this._head;for(;s;){if(t?e.bind(t)(s.value,s.key,this):e(s.value,s.key,this),this._state!==n)throw new Error("LinkedMap got modified during iteration.");s=s.next}}keys(){const e=this._state;let t=this._head;const n={[Symbol.iterator]:()=>n,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(t){const e={value:t.key,done:!1};return t=t.next,e}return{value:void 0,done:!0}}};return n}values(){const e=this._state;let t=this._head;const n={[Symbol.iterator]:()=>n,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(t){const e={value:t.value,done:!1};return t=t.next,e}return{value:void 0,done:!0}}};return n}entries(){const e=this._state;let t=this._head;const n={[Symbol.iterator]:()=>n,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(t){const e={value:[t.key,t.value],done:!1};return t=t.next,e}return{value:void 0,done:!0}}};return n}[Symbol.iterator](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._head,n=this.size;for(;t&&n>e;)this._map.delete(t.key),t=t.next,n--;this._head=t,this._size=n,t&&(t.previous=void 0),this._state++}addItemFirst(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,n=e.previous;if(!t||!n)throw new Error("Invalid list");t.previous=n,n.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(t===n.First||t===n.Last)if(t===n.First){if(e===this._head)return;const t=e.next,n=e.previous;e===this._tail?(n.next=void 0,this._tail=n):(t.previous=n,n.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(t===n.Last){if(e===this._tail)return;const t=e.next,n=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=n,n.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}toJSON(){const e=[];return this.forEach((t,n)=>{e.push([n,t])}),e}fromJSON(e){this.clear();for(const[t,n]of e)this.set(t,n)}}t.LinkedMap=s;t.LRUCache=class extends s{_limit;_ratio;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=n.AsNew){return super.get(e,t)}peek(e){return super.get(e,n.None)}set(e,t){return super.set(e,t,n.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}}),o=__webpack_require__.cw(function(e,t){t.AbstractMessageBuffer=void 0;t.AbstractMessageBuffer=class{_encoding;_chunks;_totalLength;constructor(e="utf-8"){this._encoding=e,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(e){const t="string"==typeof e?this.fromString(e,this._encoding):e;this._chunks.push(t),this._totalLength+=t.byteLength}tryReadHeaders(e=!1){if(0===this._chunks.length)return;let t=0,n=0,s=0,r=0;e:for(;n<this._chunks.length;){const e=this._chunks[n];for(s=0;s<e.length;){switch(e[s]){case 13:switch(t){case 0:t=1;break;case 2:t=3;break;default:t=0}break;case 10:switch(t){case 1:t=2;break;case 3:t=4,s++;break e;default:t=0}break;default:t=0}s++}r+=e.byteLength,n++}if(4!==t)return;const i=this._read(r+s),a=new Map,o=this.toString(i,"ascii").split("\r\n");if(o.length<2)return a;for(let t=0;t<o.length-2;t++){const n=o[t],s=n.indexOf(":");if(-1===s)throw new Error(`Message header must separate key and value using ':'\n${n}`);const r=n.substr(0,s),i=n.substr(s+1).trim();a.set(e?r.toLowerCase():r,i)}return a}tryReadBody(e){if(!(this._totalLength<e))return this._read(e)}get numberOfBytes(){return this._totalLength}_read(e){if(0===e)return this.emptyBuffer();if(e>this._totalLength)throw new Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===e){const t=this._chunks[0];return this._chunks.shift(),this._totalLength-=e,this.asNative(t)}if(this._chunks[0].byteLength>e){const t=this._chunks[0],n=this.asNative(t,e);return this._chunks[0]=t.slice(e),this._totalLength-=e,n}const t=this.allocNative(e);let n=0;for(;e>0;){const s=this._chunks[0];if(s.byteLength>e){const r=s.slice(0,e);t.set(r,n),n+=e,this._chunks[0]=s.slice(e),this._totalLength-=e,e-=e}else t.set(s,n),n+=s.byteLength,this._chunks.shift(),this._totalLength-=s.byteLength,e-=s.byteLength}return t}}}),c=__webpack_require__.cw(function(e,t){var n,s=this&&this.__createBinding||(Object.create?function(e,t,n,s){void 0===s&&(s=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,s,r)}:function(e,t,n,s){void 0===s&&(s=n),e[s]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||(n=function(e){return n=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},n(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=n(e),i=0;i<r.length;i++)"default"!==r[i]&&s(t,e,r[i]);return a(t,e),t}),c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ReadableStreamMessageReader=t.AbstractMessageReader=t.MessageReader=void 0;const l=c(u()),p=o(i()),m=r(),h=d();var f,g;!function(e){e.is=function(e){const t=e;return t&&p.func(t.listen)&&p.func(t.dispose)&&p.func(t.onError)&&p.func(t.onClose)&&p.func(t.onPartialMessage)}}(f||(t.MessageReader=f={}));class y{errorEmitter;closeEmitter;partialMessageEmitter;constructor(){this.errorEmitter=new m.Emitter,this.closeEmitter=new m.Emitter,this.partialMessageEmitter=new m.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose(),this.partialMessageEmitter.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: ${p.string(e.message)?e.message:"unknown"}`)}}t.AbstractMessageReader=y,function(e){e.fromOptions=function(e){let t,n;const s=new Map;let r;const i=new Map;if(void 0===e||"string"==typeof e)t=e??"utf-8";else{if(t=e.charset??"utf-8",void 0!==e.contentDecoder&&(n=e.contentDecoder,s.set(n.name,n)),void 0!==e.contentDecoders)for(const t of e.contentDecoders)s.set(t.name,t);if(void 0!==e.contentTypeDecoder&&(r=e.contentTypeDecoder,i.set(r.name,r)),void 0!==e.contentTypeDecoders)for(const t of e.contentTypeDecoders)i.set(t.name,t)}return void 0===r&&(r=(0,l.default)().applicationJson.decoder,i.set(r.name,r)),{charset:t,contentDecoder:n,contentDecoders:s,contentTypeDecoder:r,contentTypeDecoders:i}}}(g||(g={}));t.ReadableStreamMessageReader=class extends y{readable;options;callback;nextMessageLength;messageToken;buffer;partialMessageTimer;_partialMessageTimeout;readSemaphore;constructor(e,t){super(),this.readable=e,this.options=g.fromOptions(t),this.buffer=(0,l.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new h.Semaphore(1)}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;const t=this.readable.onData(e=>{this.onData(e)});return this.readable.onError(e=>this.fireError(e)),this.readable.onClose(()=>this.fireClose()),t}onData(e){try{for(this.buffer.append(e);;){if(-1===this.nextMessageLength){const e=this.buffer.tryReadHeaders(!0);if(!e)return;const t=e.get("content-length");if(!t)return void this.fireError(new Error(`Header must provide a Content-Length property.\n${JSON.stringify(Object.fromEntries(e))}`));const n=parseInt(t);if(isNaN(n))return void this.fireError(new Error(`Content-Length value must be a number. Got ${t}`));this.nextMessageLength=n}const e=this.buffer.tryReadBody(this.nextMessageLength);if(void 0===e)return void this.setPartialMessageTimer();this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock(async()=>{const t=void 0!==this.options.contentDecoder?await this.options.contentDecoder.decode(e):e,n=await this.options.contentTypeDecoder.decode(t,this.options);this.callback(n)}).catch(e=>{this.fireError(e)})}}catch(e){this.fireError(e)}}clearPartialMessageTimer(){this.partialMessageTimer&&(this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),this._partialMessageTimeout<=0||(this.partialMessageTimer=(0,l.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))}}}),l=__webpack_require__.cw(function(e,t){var n,s=this&&this.__createBinding||(Object.create?function(e,t,n,s){void 0===s&&(s=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,s,r)}:function(e,t,n,s){void 0===s&&(s=n),e[s]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||(n=function(e){return n=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},n(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=n(e),i=0;i<r.length;i++)"default"!==r[i]&&s(t,e,r[i]);return a(t,e),t}),c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WriteableStreamMessageWriter=t.AbstractMessageWriter=t.MessageWriter=void 0;const l=c(u()),p=o(i()),m=d(),h=r();var f,g;!function(e){e.is=function(e){const t=e;return t&&p.func(t.dispose)&&p.func(t.onClose)&&p.func(t.onError)&&p.func(t.write)}}(f||(t.MessageWriter=f={}));class y{errorEmitter;closeEmitter;constructor(){this.errorEmitter=new h.Emitter,this.closeEmitter=new h.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e,t,n){this.errorEmitter.fire([this.asError(e),t,n])}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: ${p.string(e.message)?e.message:"unknown"}`)}}t.AbstractMessageWriter=y,function(e){e.fromOptions=function(e){return void 0===e||"string"==typeof e?{charset:e??"utf-8",contentTypeEncoder:(0,l.default)().applicationJson.encoder}:{charset:e.charset??"utf-8",contentEncoder:e.contentEncoder,contentTypeEncoder:e.contentTypeEncoder??(0,l.default)().applicationJson.encoder}}}(g||(g={}));t.WriteableStreamMessageWriter=class extends y{writable;options;errorCount;writeSemaphore;constructor(e,t){super(),this.writable=e,this.options=g.fromOptions(t),this.errorCount=0,this.writeSemaphore=new m.Semaphore(1),this.writable.onError(e=>this.fireError(e)),this.writable.onClose(()=>this.fireClose())}async write(e){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(e,this.options).then(e=>void 0!==this.options.contentEncoder?this.options.contentEncoder.encode(e):e).then(t=>{const n=[];return n.push("Content-Length: ",t.byteLength.toString(),"\r\n"),n.push("\r\n"),this.doWrite(e,n,t)},e=>{throw this.fireError(e),e}))}async doWrite(e,t,n){try{return await this.writable.write(t.join(""),"ascii"),this.writable.write(n)}catch(t){return this.handleError(t,e),Promise.reject(t)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){this.writable.end()}}}),p=__webpack_require__.cw(function(e,t){var n,s=this&&this.__createBinding||(Object.create?function(e,t,n,s){void 0===s&&(s=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,s,r)}:function(e,t,n,s){void 0===s&&(s=n),e[s]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||(n=function(e){return n=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},n(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i=n(e),a=0;a<i.length;a++)"default"!==i[a]&&s(t,e,i[a]);return r(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.Message=t.NotificationType9=t.NotificationType8=t.NotificationType7=t.NotificationType6=t.NotificationType5=t.NotificationType4=t.NotificationType3=t.NotificationType2=t.NotificationType1=t.NotificationType0=t.NotificationType=t.RequestType9=t.RequestType8=t.RequestType7=t.RequestType6=t.RequestType5=t.RequestType4=t.RequestType3=t.RequestType2=t.RequestType1=t.RequestType=t.RequestType0=t.AbstractMessageSignature=t.ParameterStructures=t.ResponseError=t.ErrorCodes=void 0;const o=a(i());var c,l;!function(e){e.ParseError=-32700,e.InvalidRequest=-32600,e.MethodNotFound=-32601,e.InvalidParams=-32602,e.InternalError=-32603,e.jsonrpcReservedErrorRangeStart=-32099,e.serverErrorStart=-32099,e.MessageWriteError=-32099,e.MessageReadError=-32098,e.PendingResponseRejected=-32097,e.ConnectionInactive=-32096,e.ServerNotInitialized=-32002,e.UnknownErrorCode=-32001,e.jsonrpcReservedErrorRangeEnd=-32e3,e.serverErrorEnd=-32e3}(c||(t.ErrorCodes=c={}));class p extends Error{code;data;constructor(e,t,n){super(t),this.code=o.number(e)?e:c.UnknownErrorCode,this.data=n,Object.setPrototypeOf(this,p.prototype)}toJson(){const e={code:this.code,message:this.message};return void 0!==this.data&&(e.data=this.data),e}}t.ResponseError=p;class u{kind;static auto=new u("auto");static byPosition=new u("byPosition");static byName=new u("byName");constructor(e){this.kind=e}static is(e){return e===u.auto||e===u.byName||e===u.byPosition}toString(){return this.kind}}t.ParameterStructures=u;class d{method;numberOfParams;constructor(e,t){this.method=e,this.numberOfParams=t}get parameterStructures(){return u.auto}}t.AbstractMessageSignature=d;t.RequestType0=class extends d{_;constructor(e){super(e,0)}};t.RequestType=class extends d{_parameterStructures;_;constructor(e,t=u.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}};t.RequestType1=class extends d{_parameterStructures;_;constructor(e,t=u.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}};t.RequestType2=class extends d{_;constructor(e){super(e,2)}};t.RequestType3=class extends d{_;constructor(e){super(e,3)}};t.RequestType4=class extends d{_;constructor(e){super(e,4)}};t.RequestType5=class extends d{_;constructor(e){super(e,5)}};t.RequestType6=class extends d{_;constructor(e){super(e,6)}};t.RequestType7=class extends d{_;constructor(e){super(e,7)}};t.RequestType8=class extends d{_;constructor(e){super(e,8)}};t.RequestType9=class extends d{_;constructor(e){super(e,9)}};t.NotificationType=class extends d{_parameterStructures;_;constructor(e,t=u.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}};t.NotificationType0=class extends d{_;constructor(e){super(e,0)}};t.NotificationType1=class extends d{_parameterStructures;_;constructor(e,t=u.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}};t.NotificationType2=class extends d{_;constructor(e){super(e,2)}};t.NotificationType3=class extends d{_;constructor(e){super(e,3)}};t.NotificationType4=class extends d{_;constructor(e){super(e,4)}};t.NotificationType5=class extends d{_;constructor(e){super(e,5)}};t.NotificationType6=class extends d{_;constructor(e){super(e,6)}};t.NotificationType7=class extends d{_;constructor(e){super(e,7)}};t.NotificationType8=class extends d{_;constructor(e){super(e,8)}};t.NotificationType9=class extends d{_;constructor(e){super(e,9)}},function(e){e.isRequest=function(e){const t=e;return t&&o.string(t.method)&&(o.string(t.id)||o.number(t.id))},e.isNotification=function(e){const t=e;return t&&o.string(t.method)&&void 0===e.id},e.isResponse=function(e){const t=e;return t&&(void 0!==t.result||!!t.error)&&(o.string(t.id)||o.number(t.id)||null===t.id)}}(l||(t.Message=l={}))}),u=()=>__webpack_require__(104),d=__webpack_require__.cw(function(e,t){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Semaphore=void 0;const s=n(u());t.Semaphore=class{_capacity;_active;_waiting;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,n)=>{this._waiting.push({thunk:e,resolve:t,reject:n}),this.runNext()})}get active(){return this._active}runNext(){0!==this._waiting.length&&this._active!==this._capacity&&(0,s.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(0===this._waiting.length||this._active===this._capacity)return;const e=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("Too many thunks active");try{const t=e.thunk();t instanceof Promise?t.then(t=>{this._active--,e.resolve(t),this.runNext()},t=>{this._active--,e.reject(t),this.runNext()}):(this._active--,e.resolve(t),this.runNext())}catch(t){this._active--,e.reject(t),this.runNext()}}}}),m=__webpack_require__.cw(function(e,n){n.SharedArrayReceiverStrategy=n.SharedArraySenderStrategy=void 0;const s=t();var r;!function(e){e.Continue=0,e.Cancelled=1}(r||(r={}));n.SharedArraySenderStrategy=class{buffers;constructor(){this.buffers=new Map}enableCancellation(e){if(null===e.id)return;const t=new SharedArrayBuffer(4);new Int32Array(t,0,1)[0]=r.Continue,this.buffers.set(e.id,t),e.$cancellationData=t}async sendCancellation(e,t){const n=this.buffers.get(t);if(void 0===n)return;const s=new Int32Array(n,0,1);Atomics.store(s,0,r.Cancelled)}cleanup(e){this.buffers.delete(e)}dispose(){this.buffers.clear()}};class i{data;constructor(e){this.data=new Int32Array(e,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===r.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}}class a{token;constructor(e){this.token=new i(e)}cancel(){}dispose(){}}n.SharedArrayReceiverStrategy=class{kind="request";createCancellationTokenSource(e){const t=e.$cancellationData;return void 0===t?new s.CancellationTokenSource:new a(t)}}}),h=__webpack_require__.cw(function(t,n){var s=this&&this.__createBinding||(Object.create?function(e,t,n,s){void 0===s&&(s=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,s,r)}:function(e,t,n,s){void 0===s&&(s=n),e[s]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||s(t,e,n)};Object.defineProperty(n,"__esModule",{value:!0}),n.LSPErrorCodes=n.createProtocolConnection=void 0,r(e(),n),r(At(),n),r(g(),n),r(D(),n);var i,a=f();Object.defineProperty(n,"createProtocolConnection",{enumerable:!0,get:function(){return a.createProtocolConnection}}),function(e){e.lspReservedErrorRangeStart=-32899,e.RequestFailed=-32803,e.ServerCancelled=-32802,e.ContentModified=-32801,e.RequestCancelled=-32800,e.lspReservedErrorRangeEnd=-32800}(i||(n.LSPErrorCodes=i={}))}),f=__webpack_require__.cw(function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.createProtocolConnection=function(e,t,n,r){s.ConnectionStrategy.is(r)&&(r={connectionStrategy:r});return(0,s.createMessageConnection)(e,t,n,r)};const s=e()}),g=__webpack_require__.cw(function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.CM=n.ProtocolNotificationType=n.ProtocolNotificationType0=n.ProtocolRequestType=n.ProtocolRequestType0=n.RegistrationType=n.MessageDirection=void 0;const s=e();var r,i;!function(e){e.clientToServer="clientToServer",e.serverToClient="serverToClient",e.both="both"}(r||(n.MessageDirection=r={}));n.RegistrationType=class{____;method;constructor(e){this.method=e}};class a extends s.RequestType0{__;___;____;_pr;constructor(e){super(e)}}n.ProtocolRequestType0=a;class o extends s.RequestType{__;___;____;_pr;constructor(e){super(e,s.ParameterStructures.byName)}}n.ProtocolRequestType=o;class c extends s.NotificationType0{___;____;constructor(e){super(e)}}n.ProtocolNotificationType0=c;class l extends s.NotificationType{___;____;constructor(e){super(e,s.ParameterStructures.byName)}}n.ProtocolNotificationType=l,function(e){e.create=function(e,t){return{client:e,server:t}}}(i||(n.CM=i={}))}),y=__webpack_require__.cw(function(e,t){t.CallHierarchyOutgoingCallsRequest=t.CallHierarchyIncomingCallsRequest=t.CallHierarchyPrepareRequest=void 0;const n=g();var s,r,i;!function(e){e.method="textDocument/prepareCallHierarchy",e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method),e.capabilities=n.CM.create("textDocument.callHierarchy","callHierarchyProvider")}(s||(t.CallHierarchyPrepareRequest=s={})),function(e){e.method="callHierarchy/incomingCalls",e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method),e.capabilities=n.CM.create("textDocument.callHierarchy","callHierarchyProvider")}(r||(t.CallHierarchyIncomingCallsRequest=r={})),function(e){e.method="callHierarchy/outgoingCalls",e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method),e.capabilities=n.CM.create("textDocument.callHierarchy","callHierarchyProvider")}(i||(t.CallHierarchyOutgoingCallsRequest=i={}))}),E=__webpack_require__.cw(function(e,t){t.ColorPresentationRequest=t.DocumentColorRequest=void 0;const n=g();var s,r;!function(e){e.method="textDocument/documentColor",e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method),e.capabilities=n.CM.create("textDocument.colorProvider","colorProvider")}(s||(t.DocumentColorRequest=s={})),function(e){e.method="textDocument/colorPresentation",e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method),e.capabilities=n.CM.create("textDocument.colorProvider","colorProvider")}(r||(t.ColorPresentationRequest=r={}))}),b=__webpack_require__.cw(function(e,t){t.ConfigurationRequest=void 0;const n=g();var s;!function(e){e.method="workspace/configuration",e.messageDirection=n.MessageDirection.serverToClient,e.type=new n.ProtocolRequestType(e.method),e.capabilities=n.CM.create("workspace.configuration",void 0)}(s||(t.ConfigurationRequest=s={}))}),_=__webpack_require__.cw(function(e,t){t.DeclarationRequest=void 0;const n=g();var s;!function(e){e.method="textDocument/declaration",e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method),e.capabilities=n.CM.create("textDocument.declaration","declarationProvider")}(s||(t.DeclarationRequest=s={}))}),T=__webpack_require__.cw(function(t,n){var s,r=this&&this.__createBinding||(Object.create?function(e,t,n,s){void 0===s&&(s=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,s,r)}:function(e,t,n,s){void 0===s&&(s=n),e[s]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||(s=function(e){return s=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},s(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=s(e),a=0;a<n.length;a++)"default"!==n[a]&&r(t,e,n[a]);return i(t,e),t});Object.defineProperty(n,"__esModule",{value:!0}),n.DiagnosticRefreshRequest=n.WorkspaceDiagnosticRequest=n.DocumentDiagnosticRequest=n.DocumentDiagnosticReportKind=n.DiagnosticServerCancellationData=void 0;const o=e(),c=a(Y()),l=g();var p,u,d,m,h;!function(e){e.is=function(e){const t=e;return t&&c.boolean(t.retriggerRequest)}}(p||(n.DiagnosticServerCancellationData=p={})),function(e){e.Full="full",e.Unchanged="unchanged"}(u||(n.DocumentDiagnosticReportKind=u={})),function(e){e.method="textDocument/diagnostic",e.messageDirection=l.MessageDirection.clientToServer,e.type=new l.ProtocolRequestType(e.method),e.partialResult=new o.ProgressType,e.capabilities=l.CM.create("textDocument.diagnostic","diagnosticProvider")}(d||(n.DocumentDiagnosticRequest=d={})),function(e){e.method="workspace/diagnostic",e.messageDirection=l.MessageDirection.clientToServer,e.type=new l.ProtocolRequestType(e.method),e.partialResult=new o.ProgressType,e.capabilities=l.CM.create("workspace.diagnostics","diagnosticProvider.workspaceDiagnostics")}(m||(n.WorkspaceDiagnosticRequest=m={})),function(e){e.method="workspace/diagnostic/refresh",e.messageDirection=l.MessageDirection.serverToClient,e.type=new l.ProtocolRequestType0(e.method),e.capabilities=l.CM.create("workspace.diagnostics.refreshSupport",void 0)}(h||(n.DiagnosticRefreshRequest=h={}))}),v=__webpack_require__.cw(function(e,t){t.WillDeleteFilesRequest=t.DidDeleteFilesNotification=t.DidRenameFilesNotification=t.WillRenameFilesRequest=t.DidCreateFilesNotification=t.WillCreateFilesRequest=t.FileOperationPatternKind=void 0;const n=g();var s,r,i,a,o,c,l;!function(e){e.file="file",e.folder="folder"}(s||(t.FileOperationPatternKind=s={})),function(e){e.method="workspace/willCreateFiles",e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method),e.capabilities=n.CM.create("workspace.fileOperations.willCreate","workspace.fileOperations.willCreate")}(r||(t.WillCreateFilesRequest=r={})),function(e){e.method="workspace/didCreateFiles",e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolNotificationType(e.method),e.capabilities=n.CM.create("workspace.fileOperations.didCreate","workspace.fileOperations.didCreate")}(i||(t.DidCreateFilesNotification=i={})),function(e){e.method="workspace/willRenameFiles",e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method),e.capabilities=n.CM.create("workspace.fileOperations.willRename","workspace.fileOperations.willRename")}(a||(t.WillRenameFilesRequest=a={})),function(e){e.method="workspace/didRenameFiles",e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolNotificationType(e.method),e.capabilities=n.CM.create("workspace.fileOperations.didRename","workspace.fileOperations.didRename")}(o||(t.DidRenameFilesNotification=o={})),function(e){e.method="workspace/didDeleteFiles",e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolNotificationType(e.method),e.capabilities=n.CM.create("workspace.fileOperations.didDelete","workspace.fileOperations.didDelete")}(c||(t.DidDeleteFilesNotification=c={})),function(e){e.method="workspace/willDeleteFiles",e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method),e.capabilities=n.CM.create("workspace.fileOperations.willDelete","workspace.fileOperations.willDelete")}(l||(t.WillDeleteFilesRequest=l={}))}),A=__webpack_require__.cw(function(e,t){t.FoldingRangeRefreshRequest=t.FoldingRangeRequest=void 0;const n=g();var s,r;!function(e){e.method="textDocument/foldingRange",e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method),e.capabilities=n.CM.create("textDocument.foldingRange","foldingRangeProvider")}(s||(t.FoldingRangeRequest=s={})),function(e){e.method="workspace/foldingRange/refresh",e.messageDirection=n.MessageDirection.serverToClient,e.type=new n.ProtocolRequestType0(e.method),e.capabilities=n.CM.create("workspace.foldingRange.refreshSupport",void 0)}(r||(t.FoldingRangeRefreshRequest=r={}))}),S=__webpack_require__.cw(function(e,t){t.ImplementationRequest=void 0;const n=g();var s;!function(e){e.method="textDocument/implementation",e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method),e.capabilities=n.CM.create("textDocument.implementation","implementationProvider")}(s||(t.ImplementationRequest=s={}))}),I=__webpack_require__.cw(function(e,t){t.InlayHintRefreshRequest=t.InlayHintResolveRequest=t.InlayHintRequest=void 0;const n=g();var s,r,i;!function(e){e.method="textDocument/inlayHint",e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method),e.capabilities=n.CM.create("textDocument.inlayHint","inlayHintProvider")}(s||(t.InlayHintRequest=s={})),function(e){e.method="inlayHint/resolve",e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method),e.capabilities=n.CM.create("textDocument.inlayHint.resolveSupport","inlayHintProvider.resolveProvider")}(r||(t.InlayHintResolveRequest=r={})),function(e){e.method="workspace/inlayHint/refresh",e.messageDirection=n.MessageDirection.serverToClient,e.type=new n.ProtocolRequestType0(e.method),e.capabilities=n.CM.create("workspace.inlayHint.refreshSupport",void 0)}(i||(t.InlayHintRefreshRequest=i={}))}),P=__webpack_require__.cw(function(e,t){t.InlineCompletionRequest=void 0;const n=g();var s;!function(e){e.method="textDocument/inlineCompletion",e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method),e.capabilities=n.CM.create("textDocument.inlineCompletion","inlineCompletionProvider")}(s||(t.InlineCompletionRequest=s={}))}),O=__webpack_require__.cw(function(e,t){t.InlineValueRefreshRequest=t.InlineValueRequest=void 0;const n=g();var s,r;!function(e){e.method="textDocument/inlineValue",e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method),e.capabilities=n.CM.create("textDocument.inlineValue","inlineValueProvider")}(s||(t.InlineValueRequest=s={})),function(e){e.method="workspace/inlineValue/refresh",e.messageDirection=n.MessageDirection.serverToClient,e.type=new n.ProtocolRequestType0(e.method),e.capabilities=n.CM.create("workspace.inlineValue.refreshSupport",void 0)}(r||(t.InlineValueRefreshRequest=r={}))}),D=__webpack_require__.cw(function(e,t){var n,s=this&&this.__createBinding||(Object.create?function(e,t,n,s){void 0===s&&(s=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,s,r)}:function(e,t,n,s){void 0===s&&(s=n),e[s]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||(n=function(e){return n=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},n(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i=n(e),a=0;a<i.length;a++)"default"!==i[a]&&s(t,e,i[a]);return r(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),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.GlobPattern=t.RelativePattern=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.InitializeErrorCodes=t.InitializeRequest=t.WorkDoneProgressOptions=t.TextDocumentRegistrationOptions=t.StaticRegistrationOptions=t.PositionEncodingKind=t.RegularExpressionEngineKind=t.FailureHandlingKind=t.ResourceOperationKind=t.UnregistrationRequest=t.RegistrationRequest=t.DocumentSelector=t.NotebookCellTextDocumentFilter=t.NotebookDocumentFilter=t.TextDocumentFilter=void 0,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.CallHierarchyPrepareRequest=t.CallHierarchyOutgoingCallsRequest=t.CallHierarchyIncomingCallsRequest=t.WorkDoneProgressCancelNotification=t.WorkDoneProgressCreateRequest=t.WorkDoneProgress=t.SelectionRangeRequest=t.DeclarationRequest=t.FoldingRangeRefreshRequest=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.DocumentRangesFormattingRequest=t.DocumentRangeFormattingRequest=t.DocumentFormattingRequest=t.DocumentLinkResolveRequest=t.DocumentLinkRequest=t.CodeLensRefreshRequest=t.CodeLensResolveRequest=t.CodeLensRequest=t.WorkspaceSymbolResolveRequest=t.WorkspaceSymbolRequest=t.CodeActionResolveRequest=void 0,t.TextDocumentContentRefreshRequest=t.TextDocumentContentRequest=t.InlineCompletionRequest=t.DidCloseNotebookDocumentNotification=t.DidSaveNotebookDocumentNotification=t.DidChangeNotebookDocumentNotification=t.NotebookCellArrayChange=t.DidOpenNotebookDocumentNotification=t.NotebookDocumentSyncRegistrationType=t.NotebookDocument=t.NotebookCell=t.ExecutionSummary=t.NotebookCellKind=t.DiagnosticRefreshRequest=t.WorkspaceDiagnosticRequest=t.DocumentDiagnosticRequest=t.DocumentDiagnosticReportKind=t.DiagnosticServerCancellationData=t.InlayHintRefreshRequest=t.InlayHintResolveRequest=t.InlayHintRequest=t.InlineValueRefreshRequest=t.InlineValueRequest=t.TypeHierarchySupertypesRequest=t.TypeHierarchySubtypesRequest=t.TypeHierarchyPrepareRequest=t.MonikerRequest=t.MonikerKind=void 0;const a=g(),o=At(),c=i(Y()),l=S();Object.defineProperty(t,"ImplementationRequest",{enumerable:!0,get:function(){return l.ImplementationRequest}});const p=M();Object.defineProperty(t,"TypeDefinitionRequest",{enumerable:!0,get:function(){return p.TypeDefinitionRequest}});const u=U();Object.defineProperty(t,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return u.WorkspaceFoldersRequest}}),Object.defineProperty(t,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return u.DidChangeWorkspaceFoldersNotification}});const d=b();Object.defineProperty(t,"ConfigurationRequest",{enumerable:!0,get:function(){return d.ConfigurationRequest}});const m=E();Object.defineProperty(t,"DocumentColorRequest",{enumerable:!0,get:function(){return m.DocumentColorRequest}}),Object.defineProperty(t,"ColorPresentationRequest",{enumerable:!0,get:function(){return m.ColorPresentationRequest}});const h=A();Object.defineProperty(t,"FoldingRangeRequest",{enumerable:!0,get:function(){return h.FoldingRangeRequest}}),Object.defineProperty(t,"FoldingRangeRefreshRequest",{enumerable:!0,get:function(){return h.FoldingRangeRefreshRequest}});const f=_();Object.defineProperty(t,"DeclarationRequest",{enumerable:!0,get:function(){return f.DeclarationRequest}});const D=R();Object.defineProperty(t,"SelectionRangeRequest",{enumerable:!0,get:function(){return D.SelectionRangeRequest}});const B=F();Object.defineProperty(t,"WorkDoneProgress",{enumerable:!0,get:function(){return B.WorkDoneProgress}}),Object.defineProperty(t,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return B.WorkDoneProgressCreateRequest}}),Object.defineProperty(t,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return B.WorkDoneProgressCancelNotification}});const $=y();Object.defineProperty(t,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return $.CallHierarchyIncomingCallsRequest}}),Object.defineProperty(t,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return $.CallHierarchyOutgoingCallsRequest}}),Object.defineProperty(t,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return $.CallHierarchyPrepareRequest}});const q=k();Object.defineProperty(t,"TokenFormat",{enumerable:!0,get:function(){return q.TokenFormat}}),Object.defineProperty(t,"SemanticTokensRequest",{enumerable:!0,get:function(){return q.SemanticTokensRequest}}),Object.defineProperty(t,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return q.SemanticTokensDeltaRequest}}),Object.defineProperty(t,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return q.SemanticTokensRangeRequest}}),Object.defineProperty(t,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return q.SemanticTokensRefreshRequest}}),Object.defineProperty(t,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return q.SemanticTokensRegistrationType}});const V=C();Object.defineProperty(t,"ShowDocumentRequest",{enumerable:!0,get:function(){return V.ShowDocumentRequest}});const H=w();Object.defineProperty(t,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return H.LinkedEditingRangeRequest}});const Q=v();Object.defineProperty(t,"FileOperationPatternKind",{enumerable:!0,get:function(){return Q.FileOperationPatternKind}}),Object.defineProperty(t,"DidCreateFilesNotification",{enumerable:!0,get:function(){return Q.DidCreateFilesNotification}}),Object.defineProperty(t,"WillCreateFilesRequest",{enumerable:!0,get:function(){return Q.WillCreateFilesRequest}}),Object.defineProperty(t,"DidRenameFilesNotification",{enumerable:!0,get:function(){return Q.DidRenameFilesNotification}}),Object.defineProperty(t,"WillRenameFilesRequest",{enumerable:!0,get:function(){return Q.WillRenameFilesRequest}}),Object.defineProperty(t,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return Q.DidDeleteFilesNotification}}),Object.defineProperty(t,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return Q.WillDeleteFilesRequest}});const G=x();Object.defineProperty(t,"UniquenessLevel",{enumerable:!0,get:function(){return G.UniquenessLevel}}),Object.defineProperty(t,"MonikerKind",{enumerable:!0,get:function(){return G.MonikerKind}}),Object.defineProperty(t,"MonikerRequest",{enumerable:!0,get:function(){return G.MonikerRequest}});const W=j();Object.defineProperty(t,"TypeHierarchyPrepareRequest",{enumerable:!0,get:function(){return W.TypeHierarchyPrepareRequest}}),Object.defineProperty(t,"TypeHierarchySubtypesRequest",{enumerable:!0,get:function(){return W.TypeHierarchySubtypesRequest}}),Object.defineProperty(t,"TypeHierarchySupertypesRequest",{enumerable:!0,get:function(){return W.TypeHierarchySupertypesRequest}});const J=O();Object.defineProperty(t,"InlineValueRequest",{enumerable:!0,get:function(){return J.InlineValueRequest}}),Object.defineProperty(t,"InlineValueRefreshRequest",{enumerable:!0,get:function(){return J.InlineValueRefreshRequest}});const K=I();Object.defineProperty(t,"InlayHintRequest",{enumerable:!0,get:function(){return K.InlayHintRequest}}),Object.defineProperty(t,"InlayHintResolveRequest",{enumerable:!0,get:function(){return K.InlayHintResolveRequest}}),Object.defineProperty(t,"InlayHintRefreshRequest",{enumerable:!0,get:function(){return K.InlayHintRefreshRequest}});const z=T();Object.defineProperty(t,"DiagnosticServerCancellationData",{enumerable:!0,get:function(){return z.DiagnosticServerCancellationData}}),Object.defineProperty(t,"DocumentDiagnosticReportKind",{enumerable:!0,get:function(){return z.DocumentDiagnosticReportKind}}),Object.defineProperty(t,"DocumentDiagnosticRequest",{enumerable:!0,get:function(){return z.DocumentDiagnosticRequest}}),Object.defineProperty(t,"WorkspaceDiagnosticRequest",{enumerable:!0,get:function(){return z.WorkspaceDiagnosticRequest}}),Object.defineProperty(t,"DiagnosticRefreshRequest",{enumerable:!0,get:function(){return z.DiagnosticRefreshRequest}});const Z=N();Object.defineProperty(t,"NotebookCellKind",{enumerable:!0,get:function(){return Z.NotebookCellKind}}),Object.defineProperty(t,"ExecutionSummary",{enumerable:!0,get:function(){return Z.ExecutionSummary}}),Object.defineProperty(t,"NotebookCell",{enumerable:!0,get:function(){return Z.NotebookCell}}),Object.defineProperty(t,"NotebookDocument",{enumerable:!0,get:function(){return Z.NotebookDocument}}),Object.defineProperty(t,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:function(){return Z.NotebookDocumentSyncRegistrationType}}),Object.defineProperty(t,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:function(){return Z.DidOpenNotebookDocumentNotification}}),Object.defineProperty(t,"NotebookCellArrayChange",{enumerable:!0,get:function(){return Z.NotebookCellArrayChange}}),Object.defineProperty(t,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:function(){return Z.DidChangeNotebookDocumentNotification}}),Object.defineProperty(t,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:function(){return Z.DidSaveNotebookDocumentNotification}}),Object.defineProperty(t,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:function(){return Z.DidCloseNotebookDocumentNotification}});const X=P();Object.defineProperty(t,"InlineCompletionRequest",{enumerable:!0,get:function(){return X.InlineCompletionRequest}});const ee=L();var te,ne,se,re,ie,ae,oe,ce,le,pe,ue,de,me,he,fe,ge,ye,Ee,be,_e,Te,ve,Ae,Se,Ie,Pe,Oe,De,we,xe,Ne,Fe,Re,ke,Ce,Le,Me,je,Ue,Ye,Be,$e,qe,Ve,He,Qe,Ge,We,Je,Ke,ze,Ze,Xe,et,tt,nt,st,rt,it,at,ot,ct,lt,pt,ut,dt,mt;Object.defineProperty(t,"TextDocumentContentRequest",{enumerable:!0,get:function(){return ee.TextDocumentContentRequest}}),Object.defineProperty(t,"TextDocumentContentRefreshRequest",{enumerable:!0,get:function(){return ee.TextDocumentContentRefreshRequest}}),function(e){e.is=function(e){const t=e;return c.string(t)||c.string(t.language)||c.string(t.scheme)||Me.is(t.pattern)}}(te||(t.TextDocumentFilter=te={})),function(e){e.is=function(e){const t=e;return c.objectLiteral(t)&&(c.string(t.notebookType)||c.string(t.scheme)||c.string(t.pattern))}}(ne||(t.NotebookDocumentFilter=ne={})),function(e){e.is=function(e){const t=e;return c.objectLiteral(t)&&(c.string(t.notebook)||ne.is(t.notebook))&&(void 0===t.language||c.string(t.language))}}(se||(t.NotebookCellTextDocumentFilter=se={})),function(e){e.is=function(e){if(!Array.isArray(e))return!1;for(const t of e)if(!c.string(t)&&!te.is(t)&&!se.is(t))return!1;return!0}}(re||(t.DocumentSelector=re={})),function(e){e.method="client/registerCapability",e.messageDirection=a.MessageDirection.serverToClient,e.type=new a.ProtocolRequestType(e.method)}(ie||(t.RegistrationRequest=ie={})),function(e){e.method="client/unregisterCapability",e.messageDirection=a.MessageDirection.serverToClient,e.type=new a.ProtocolRequestType(e.method)}(ae||(t.UnregistrationRequest=ae={})),function(e){e.Create="create",e.Rename="rename",e.Delete="delete"}(oe||(t.ResourceOperationKind=oe={})),function(e){e.Abort="abort",e.Transactional="transactional",e.TextOnlyTransactional="textOnlyTransactional",e.Undo="undo"}(ce||(t.FailureHandlingKind=ce={})),function(e){e.ES2020="ES2020"}(le||(t.RegularExpressionEngineKind=le={})),function(e){e.UTF8="utf-8",e.UTF16="utf-16",e.UTF32="utf-32"}(pe||(t.PositionEncodingKind=pe={})),function(e){e.hasId=function(e){const t=e;return t&&c.string(t.id)&&t.id.length>0}}(ue||(t.StaticRegistrationOptions=ue={})),function(e){e.is=function(e){const t=e;return t&&(null===t.documentSelector||re.is(t.documentSelector))}}(de||(t.TextDocumentRegistrationOptions=de={})),function(e){e.is=function(e){const t=e;return c.objectLiteral(t)&&(void 0===t.workDoneProgress||c.boolean(t.workDoneProgress))},e.hasWorkDoneProgress=function(e){const t=e;return t&&c.boolean(t.workDoneProgress)}}(me||(t.WorkDoneProgressOptions=me={})),function(e){e.method="initialize",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method)}(he||(t.InitializeRequest=he={})),function(e){e.unknownProtocolVersion=1}(fe||(t.InitializeErrorCodes=fe={})),function(e){e.method="initialized",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolNotificationType(e.method)}(ge||(t.InitializedNotification=ge={})),function(e){e.method="shutdown",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType0(e.method)}(ye||(t.ShutdownRequest=ye={})),function(e){e.method="exit",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolNotificationType0(e.method)}(Ee||(t.ExitNotification=Ee={})),function(e){e.method="workspace/didChangeConfiguration",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolNotificationType(e.method),e.capabilities=a.CM.create("workspace.didChangeConfiguration",void 0)}(be||(t.DidChangeConfigurationNotification=be={})),function(e){e.Error=1,e.Warning=2,e.Info=3,e.Log=4,e.Debug=5}(_e||(t.MessageType=_e={})),function(e){e.method="window/showMessage",e.messageDirection=a.MessageDirection.serverToClient,e.type=new a.ProtocolNotificationType(e.method),e.capabilities=a.CM.create("window.showMessage",void 0)}(Te||(t.ShowMessageNotification=Te={})),function(e){e.method="window/showMessageRequest",e.messageDirection=a.MessageDirection.serverToClient,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("window.showMessage",void 0)}(ve||(t.ShowMessageRequest=ve={})),function(e){e.method="window/logMessage",e.messageDirection=a.MessageDirection.serverToClient,e.type=new a.ProtocolNotificationType(e.method)}(Ae||(t.LogMessageNotification=Ae={})),function(e){e.method="telemetry/event",e.messageDirection=a.MessageDirection.serverToClient,e.type=new a.ProtocolNotificationType(e.method)}(Se||(t.TelemetryEventNotification=Se={})),function(e){e.None=0,e.Full=1,e.Incremental=2}(Ie||(t.TextDocumentSyncKind=Ie={})),function(e){e.method="textDocument/didOpen",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolNotificationType(e.method),e.capabilities=a.CM.create("textDocument.synchronization","textDocumentSync.openClose")}(Pe||(t.DidOpenTextDocumentNotification=Pe={})),function(e){e.isIncremental=function(e){const t=e;return null!=t&&"string"==typeof t.text&&void 0!==t.range&&(void 0===t.rangeLength||"number"==typeof t.rangeLength)},e.isFull=function(e){const t=e;return null!=t&&"string"==typeof t.text&&void 0===t.range&&void 0===t.rangeLength}}(Oe||(t.TextDocumentContentChangeEvent=Oe={})),function(e){e.method="textDocument/didChange",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolNotificationType(e.method),e.capabilities=a.CM.create("textDocument.synchronization","textDocumentSync")}(De||(t.DidChangeTextDocumentNotification=De={})),function(e){e.method="textDocument/didClose",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolNotificationType(e.method),e.capabilities=a.CM.create("textDocument.synchronization","textDocumentSync.openClose")}(we||(t.DidCloseTextDocumentNotification=we={})),function(e){e.method="textDocument/didSave",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolNotificationType(e.method),e.capabilities=a.CM.create("textDocument.synchronization.didSave","textDocumentSync.save")}(xe||(t.DidSaveTextDocumentNotification=xe={})),function(e){e.Manual=1,e.AfterDelay=2,e.FocusOut=3}(Ne||(t.TextDocumentSaveReason=Ne={})),function(e){e.method="textDocument/willSave",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolNotificationType(e.method),e.capabilities=a.CM.create("textDocument.synchronization.willSave","textDocumentSync.willSave")}(Fe||(t.WillSaveTextDocumentNotification=Fe={})),function(e){e.method="textDocument/willSaveWaitUntil",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.synchronization.willSaveWaitUntil","textDocumentSync.willSaveWaitUntil")}(Re||(t.WillSaveTextDocumentWaitUntilRequest=Re={})),function(e){e.method="workspace/didChangeWatchedFiles",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolNotificationType(e.method),e.capabilities=a.CM.create("workspace.didChangeWatchedFiles",void 0)}(ke||(t.DidChangeWatchedFilesNotification=ke={})),function(e){e.Created=1,e.Changed=2,e.Deleted=3}(Ce||(t.FileChangeType=Ce={})),function(e){e.is=function(e){const t=e;return c.objectLiteral(t)&&(o.URI.is(t.baseUri)||o.WorkspaceFolder.is(t.baseUri))&&c.string(t.pattern)}}(Le||(t.RelativePattern=Le={})),function(e){e.is=function(e){const t=e;return c.string(t)||Le.is(t)}}(Me||(t.GlobPattern=Me={})),function(e){e.Create=1,e.Change=2,e.Delete=4}(je||(t.WatchKind=je={})),function(e){e.method="textDocument/publishDiagnostics",e.messageDirection=a.MessageDirection.serverToClient,e.type=new a.ProtocolNotificationType(e.method),e.capabilities=a.CM.create("textDocument.publishDiagnostics",void 0)}(Ue||(t.PublishDiagnosticsNotification=Ue={})),function(e){e.Invoked=1,e.TriggerCharacter=2,e.TriggerForIncompleteCompletions=3}(Ye||(t.CompletionTriggerKind=Ye={})),function(e){e.method="textDocument/completion",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.completion","completionProvider")}(Be||(t.CompletionRequest=Be={})),function(e){e.method="completionItem/resolve",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.completion.completionItem.resolveSupport","completionProvider.resolveProvider")}($e||(t.CompletionResolveRequest=$e={})),function(e){e.method="textDocument/hover",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.hover","hoverProvider")}(qe||(t.HoverRequest=qe={})),function(e){e.Invoked=1,e.TriggerCharacter=2,e.ContentChange=3}(Ve||(t.SignatureHelpTriggerKind=Ve={})),function(e){e.method="textDocument/signatureHelp",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.signatureHelp","signatureHelpProvider")}(He||(t.SignatureHelpRequest=He={})),function(e){e.method="textDocument/definition",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.definition","definitionProvider")}(Qe||(t.DefinitionRequest=Qe={})),function(e){e.method="textDocument/references",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.references","referencesProvider")}(Ge||(t.ReferencesRequest=Ge={})),function(e){e.method="textDocument/documentHighlight",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.documentHighlight","documentHighlightProvider")}(We||(t.DocumentHighlightRequest=We={})),function(e){e.method="textDocument/documentSymbol",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.documentSymbol","documentSymbolProvider")}(Je||(t.DocumentSymbolRequest=Je={})),function(e){e.method="textDocument/codeAction",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.codeAction","codeActionProvider")}(Ke||(t.CodeActionRequest=Ke={})),function(e){e.method="codeAction/resolve",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.codeAction.resolveSupport","codeActionProvider.resolveProvider")}(ze||(t.CodeActionResolveRequest=ze={})),function(e){e.method="workspace/symbol",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("workspace.symbol","workspaceSymbolProvider")}(Ze||(t.WorkspaceSymbolRequest=Ze={})),function(e){e.method="workspaceSymbol/resolve",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("workspace.symbol.resolveSupport","workspaceSymbolProvider.resolveProvider")}(Xe||(t.WorkspaceSymbolResolveRequest=Xe={})),function(e){e.method="textDocument/codeLens",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.codeLens","codeLensProvider")}(et||(t.CodeLensRequest=et={})),function(e){e.method="codeLens/resolve",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.codeLens.resolveSupport","codeLensProvider.resolveProvider")}(tt||(t.CodeLensResolveRequest=tt={})),function(e){e.method="workspace/codeLens/refresh",e.messageDirection=a.MessageDirection.serverToClient,e.type=new a.ProtocolRequestType0(e.method),e.capabilities=a.CM.create("workspace.codeLens",void 0)}(nt||(t.CodeLensRefreshRequest=nt={})),function(e){e.method="textDocument/documentLink",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.documentLink","documentLinkProvider")}(st||(t.DocumentLinkRequest=st={})),function(e){e.method="documentLink/resolve",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.documentLink","documentLinkProvider.resolveProvider")}(rt||(t.DocumentLinkResolveRequest=rt={})),function(e){e.method="textDocument/formatting",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.formatting","documentFormattingProvider")}(it||(t.DocumentFormattingRequest=it={})),function(e){e.method="textDocument/rangeFormatting",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.rangeFormatting","documentRangeFormattingProvider")}(at||(t.DocumentRangeFormattingRequest=at={})),function(e){e.method="textDocument/rangesFormatting",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.rangeFormatting.rangesSupport","documentRangeFormattingProvider.rangesSupport")}(ot||(t.DocumentRangesFormattingRequest=ot={})),function(e){e.method="textDocument/onTypeFormatting",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.onTypeFormatting","documentOnTypeFormattingProvider")}(ct||(t.DocumentOnTypeFormattingRequest=ct={})),function(e){e.Identifier=1}(lt||(t.PrepareSupportDefaultBehavior=lt={})),function(e){e.method="textDocument/rename",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.rename","renameProvider")}(pt||(t.RenameRequest=pt={})),function(e){e.method="textDocument/prepareRename",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.rename.prepareSupport","renameProvider.prepareProvider")}(ut||(t.PrepareRenameRequest=ut={})),function(e){e.method="workspace/executeCommand",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("workspace.executeCommand","executeCommandProvider")}(dt||(t.ExecuteCommandRequest=dt={})),function(e){e.method="workspace/applyEdit",e.messageDirection=a.MessageDirection.serverToClient,e.type=new a.ProtocolRequestType("workspace/applyEdit"),e.capabilities=a.CM.create("workspace.applyEdit",void 0)}(mt||(t.ApplyWorkspaceEditRequest=mt={}))}),w=__webpack_require__.cw(function(e,t){t.LinkedEditingRangeRequest=void 0;const n=g();var s;!function(e){e.method="textDocument/linkedEditingRange",e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method),e.capabilities=n.CM.create("textDocument.linkedEditingRange","linkedEditingRangeProvider")}(s||(t.LinkedEditingRangeRequest=s={}))}),x=__webpack_require__.cw(function(e,t){t.MonikerRequest=t.MonikerKind=t.UniquenessLevel=void 0;const n=g();var s,r,i;!function(e){e.document="document",e.project="project",e.group="group",e.scheme="scheme",e.global="global"}(s||(t.UniquenessLevel=s={})),function(e){e.$import="import",e.$export="export",e.local="local"}(r||(t.MonikerKind=r={})),function(e){e.method="textDocument/moniker",e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method),e.capabilities=n.CM.create("textDocument.moniker","monikerProvider")}(i||(t.MonikerRequest=i={}))}),N=__webpack_require__.cw(function(e,t){var n,s=this&&this.__createBinding||(Object.create?function(e,t,n,s){void 0===s&&(s=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,s,r)}:function(e,t,n,s){void 0===s&&(s=n),e[s]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||(n=function(e){return n=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},n(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i=n(e),a=0;a<i.length;a++)"default"!==i[a]&&s(t,e,i[a]);return r(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.DidCloseNotebookDocumentNotification=t.DidSaveNotebookDocumentNotification=t.DidChangeNotebookDocumentNotification=t.NotebookCellArrayChange=t.DidOpenNotebookDocumentNotification=t.NotebookDocumentSyncRegistrationType=t.NotebookDocument=t.NotebookCell=t.ExecutionSummary=t.NotebookCellKind=void 0;const a=At(),o=i(Y()),c=g();var l,p,u,d,m,h,f,y,E,b;!function(e){e.Markup=1,e.Code=2,e.is=function(e){return 1===e||2===e}}(l||(t.NotebookCellKind=l={})),function(e){e.create=function(e,t){const n={executionOrder:e};return!0!==t&&!1!==t||(n.success=t),n},e.is=function(e){const t=e;return o.objectLiteral(t)&&a.uinteger.is(t.executionOrder)&&(void 0===t.success||o.boolean(t.success))},e.equals=function(e,t){return e===t||null!=e&&null!=t&&(e.executionOrder===t.executionOrder&&e.success===t.success)}}(p||(t.ExecutionSummary=p={})),function(e){function t(e,n){if(e===n)return!0;if(null==e||null==n)return!1;if(typeof e!=typeof n)return!1;if("object"!=typeof e)return!1;const s=Array.isArray(e),r=Array.isArray(n);if(s!==r)return!1;if(s&&r){if(e.length!==n.length)return!1;for(let s=0;s<e.length;s++)if(!t(e[s],n[s]))return!1}if(o.objectLiteral(e)&&o.objectLiteral(n)){const s=Object.keys(e),r=Object.keys(n);if(s.length!==r.length)return!1;if(s.sort(),r.sort(),!t(s,r))return!1;for(let r=0;r<s.length;r++){const i=s[r];if(!t(e[i],n[i]))return!1}}return!0}e.create=function(e,t){return{kind:e,document:t}},e.is=function(e){const t=e;return o.objectLiteral(t)&&l.is(t.kind)&&a.DocumentUri.is(t.document)&&(void 0===t.metadata||o.objectLiteral(t.metadata))},e.diff=function(e,n){const s=new Set;return e.document!==n.document&&s.add("document"),e.kind!==n.kind&&s.add("kind"),e.executionSummary!==n.executionSummary&&s.add("executionSummary"),void 0===e.metadata&&void 0===n.metadata||t(e.metadata,n.metadata)||s.add("metadata"),void 0===e.executionSummary&&void 0===n.executionSummary||p.equals(e.executionSummary,n.executionSummary)||s.add("executionSummary"),s}}(u||(t.NotebookCell=u={})),function(e){e.create=function(e,t,n,s){return{uri:e,notebookType:t,version:n,cells:s}},e.is=function(e){const t=e;return o.objectLiteral(t)&&o.string(t.uri)&&a.integer.is(t.version)&&o.typedArray(t.cells,u.is)}}(d||(t.NotebookDocument=d={})),function(e){e.method="notebookDocument/sync",e.messageDirection=c.MessageDirection.clientToServer,e.type=new c.RegistrationType(e.method)}(m||(t.NotebookDocumentSyncRegistrationType=m={})),function(e){e.method="notebookDocument/didOpen",e.messageDirection=c.MessageDirection.clientToServer,e.type=new c.ProtocolNotificationType(e.method),e.registrationMethod=m.method}(h||(t.DidOpenNotebookDocumentNotification=h={})),function(e){e.is=function(e){const t=e;return o.objectLiteral(t)&&a.uinteger.is(t.start)&&a.uinteger.is(t.deleteCount)&&(void 0===t.cells||o.typedArray(t.cells,u.is))},e.create=function(e,t,n){const s={start:e,deleteCount:t};return void 0!==n&&(s.cells=n),s}}(f||(t.NotebookCellArrayChange=f={})),function(e){e.method="notebookDocument/didChange",e.messageDirection=c.MessageDirection.clientToServer,e.type=new c.ProtocolNotificationType(e.method),e.registrationMethod=m.method}(y||(t.DidChangeNotebookDocumentNotification=y={})),function(e){e.method="notebookDocument/didSave",e.messageDirection=c.MessageDirection.clientToServer,e.type=new c.ProtocolNotificationType(e.method),e.registrationMethod=m.method}(E||(t.DidSaveNotebookDocumentNotification=E={})),function(e){e.method="notebookDocument/didClose",e.messageDirection=c.MessageDirection.clientToServer,e.type=new c.ProtocolNotificationType(e.method),e.registrationMethod=m.method}(b||(t.DidCloseNotebookDocumentNotification=b={}))}),F=__webpack_require__.cw(function(t,n){n.WorkDoneProgressCancelNotification=n.WorkDoneProgressCreateRequest=n.WorkDoneProgress=void 0;const s=e(),r=g();var i,a,o;!function(e){e.type=new s.ProgressType,e.is=function(t){return t===e.type}}(i||(n.WorkDoneProgress=i={})),function(e){e.method="window/workDoneProgress/create",e.messageDirection=r.MessageDirection.serverToClient,e.type=new r.ProtocolRequestType(e.method),e.capabilities=r.CM.create("window.workDoneProgress",void 0)}(a||(n.WorkDoneProgressCreateRequest=a={})),function(e){e.method="window/workDoneProgress/cancel",e.messageDirection=r.MessageDirection.clientToServer,e.type=new r.ProtocolNotificationType(e.method)}(o||(n.WorkDoneProgressCancelNotification=o={}))}),R=__webpack_require__.cw(function(e,t){t.SelectionRangeRequest=void 0;const n=g();var s;!function(e){e.method="textDocument/selectionRange",e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method),e.capabilities=n.CM.create("textDocument.selectionRange","selectionRangeProvider")}(s||(t.SelectionRangeRequest=s={}))}),k=__webpack_require__.cw(function(e,t){t.SemanticTokensRefreshRequest=t.SemanticTokensRangeRequest=t.SemanticTokensDeltaRequest=t.SemanticTokensRequest=t.SemanticTokensRegistrationType=t.TokenFormat=void 0;const n=g();var s,r,i,a,o,c;!function(e){e.Relative="relative"}(s||(t.TokenFormat=s={})),function(e){e.method="textDocument/semanticTokens",e.type=new n.RegistrationType(e.method)}(r||(t.SemanticTokensRegistrationType=r={})),function(e){e.method="textDocument/semanticTokens/full",e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method),e.registrationMethod=r.method,e.capabilities=n.CM.create("textDocument.semanticTokens","semanticTokensProvider")}(i||(t.SemanticTokensRequest=i={})),function(e){e.method="textDocument/semanticTokens/full/delta",e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method),e.registrationMethod=r.method,e.capabilities=n.CM.create("textDocument.semanticTokens.requests.full.delta","semanticTokensProvider.full.delta")}(a||(t.SemanticTokensDeltaRequest=a={})),function(e){e.method="textDocument/semanticTokens/range",e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method),e.registrationMethod=r.method,e.capabilities=n.CM.create("textDocument.semanticTokens.requests.range","semanticTokensProvider.range")}(o||(t.SemanticTokensRangeRequest=o={})),function(e){e.method="workspace/semanticTokens/refresh",e.messageDirection=n.MessageDirection.serverToClient,e.type=new n.ProtocolRequestType0(e.method),e.capabilities=n.CM.create("workspace.semanticTokens.refreshSupport",void 0)}(c||(t.SemanticTokensRefreshRequest=c={}))}),C=__webpack_require__.cw(function(e,t){t.ShowDocumentRequest=void 0;const n=g();var s;!function(e){e.method="window/showDocument",e.messageDirection=n.MessageDirection.serverToClient,e.type=new n.ProtocolRequestType(e.method),e.capabilities=n.CM.create("window.showDocument.support",void 0)}(s||(t.ShowDocumentRequest=s={}))}),L=__webpack_require__.cw(function(e,t){t.TextDocumentContentRefreshRequest=t.TextDocumentContentRequest=void 0;const n=g();var s,r;!function(e){e.method="workspace/textDocumentContent",e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method),e.capabilities=n.CM.create("workspace.textDocumentContent","workspace.textDocumentContent")}(s||(t.TextDocumentContentRequest=s={})),function(e){e.method="workspace/textDocumentContent/refresh",e.messageDirection=n.MessageDirection.serverToClient,e.type=new n.ProtocolRequestType(e.method)}(r||(t.TextDocumentContentRefreshRequest=r={}))}),M=__webpack_require__.cw(function(e,t){t.TypeDefinitionRequest=void 0;const n=g();var s;!function(e){e.method="textDocument/typeDefinition",e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method),e.capabilities=n.CM.create("textDocument.typeDefinition","typeDefinitionProvider")}(s||(t.TypeDefinitionRequest=s={}))}),j=__webpack_require__.cw(function(e,t){t.TypeHierarchySubtypesRequest=t.TypeHierarchySupertypesRequest=t.TypeHierarchyPrepareRequest=void 0;const n=g();var s,r,i;!function(e){e.method="textDocument/prepareTypeHierarchy",e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method),e.capabilities=n.CM.create("textDocument.typeHierarchy","typeHierarchyProvider")}(s||(t.TypeHierarchyPrepareRequest=s={})),function(e){e.method="typeHierarchy/supertypes",e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method)}(r||(t.TypeHierarchySupertypesRequest=r={})),function(e){e.method="typeHierarchy/subtypes",e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method)}(i||(t.TypeHierarchySubtypesRequest=i={}))}),U=__webpack_require__.cw(function(e,t){t.DidChangeWorkspaceFoldersNotification=t.WorkspaceFoldersRequest=void 0;const n=g();var s,r;!function(e){e.method="workspace/workspaceFolders",e.messageDirection=n.MessageDirection.serverToClient,e.type=new n.ProtocolRequestType0(e.method),e.capabilities=n.CM.create("workspace.workspaceFolders","workspace.workspaceFolders")}(s||(t.WorkspaceFoldersRequest=s={})),function(e){e.method="workspace/didChangeWorkspaceFolders",e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolNotificationType(e.method),e.capabilities=n.CM.create(void 0,"workspace.workspaceFolders.changeNotifications")}(r||(t.DidChangeWorkspaceFoldersNotification=r={}))}),Y=()=>__webpack_require__(444),B=__webpack_require__.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n=Q(),s=W(),r=G(),i=oe(),a=K(),o=Z(),c="errorMessage",l=new n.Name("emUsed"),p={required:"missingProperty",dependencies:"property",dependentRequired:"property"},u=/\$\{[^}]+\}/,d=/\$\{([^}]+)\}/g,m=/^""\s*\+\s*|\s*\+\s*""$/g;function h(e){return{keyword:c,schemaType:["string","object"],post:!0,code(t){const{gen:h,data:f,schema:g,schemaValue:y,it:E}=t;if(!1===E.createErrors)return;const b=g,_=s.strConcat(o.default.instancePath,E.errorPath);function T(e,t){return s.and(n._`${e}.keyword !== ${c}`,n._`!${e}.${l}`,n._`${e}.instancePath === ${_}`,n._`${e}.keyword in ${t}`,n._`${e}.schemaPath.indexOf(${E.errSchemaPath}) === 0`,n._`/^\\/[^\\/]*$/.test(${e}.schemaPath.slice(${E.errSchemaPath.length}))`)}function v(e,t){const n=[];for(const s in e){const e=t[s];u.test(e)&&n.push([s,S(e)])}return h.object(...n)}function A(e){return u.test(e)?new r._Code(r.safeStringify(e).replace(d,(e,t)=>`" + JSON.stringify(${i.getData(t,E)}) + "`).replace(m,"")):n.stringify(e)}function S(e){return n._`function(){return ${A(e)}}`}h.if(n._`${o.default.errors} > 0`,()=>{if("object"==typeof b){const[r,i]=function(e){let t,n;for(const s in e){if("properties"===s||"items"===s)continue;const r=e[s];if("object"==typeof r){t||(t={});const e=t[s]={};for(const t in r)e[t]=[]}else n||(n={}),n[s]=[]}return[t,n]}(b);i&&function(s){const r=h.const("emErrors",n.stringify(s)),i=h.const("templates",v(s,g));h.forOf("err",o.default.vErrors,e=>h.if(T(e,r),()=>h.code(n._`${r}[${e}.keyword].push(${e})`).assign(n._`${e}.${l}`,!0)));const{singleError:c}=e;if(c){const e=h.let("message",n._`""`),s=h.let("paramsErrors",n._`[]`);p(t=>{h.if(e,()=>h.code(n._`${e} += ${"string"==typeof c?c:";"}`)),h.code(n._`${e} += ${u(t)}`),h.assign(s,n._`${s}.concat(${r}[${t}])`)}),a.reportError(t,{message:e,params:n._`{errors: ${s}}`})}else p(e=>a.reportError(t,{message:u(e),params:n._`{errors: ${r}[${e}]}`}));function p(e){h.forIn("key",r,t=>h.if(n._`${r}[${t}].length`,()=>e(t)))}function u(e){return n._`${e} in ${i} ? ${i}[${e}]() : ${y}[${e}]`}}(i),r&&function(e){const s=h.const("emErrors",n.stringify(e)),r=[];for(const t in e)r.push([t,v(e[t],g[t])]);const i=h.const("templates",h.object(...r)),c=h.scopeValue("obj",{ref:p,code:n.stringify(p)}),u=h.let("emPropParams"),d=h.let("emParamsErrors");h.forOf("err",o.default.vErrors,e=>h.if(T(e,s),()=>{h.assign(u,n._`${c}[${e}.keyword]`),h.assign(d,n._`${s}[${e}.keyword][${e}.params[${u}]]`),h.if(d,()=>h.code(n._`${d}.push(${e})`).assign(n._`${e}.${l}`,!0))})),h.forIn("key",s,e=>h.forIn("keyProp",n._`${s}[${e}]`,r=>{h.assign(d,n._`${s}[${e}][${r}]`),h.if(n._`${d}.length`,()=>{const s=h.const("tmpl",n._`${i}[${e}] && ${i}[${e}][${r}]`);a.reportError(t,{message:n._`${s} ? ${s}() : ${y}[${e}][${r}]`,params:n._`{errors: ${d}}`})})}))}(r),function(e){const{props:r,items:i}=e;if(!r&&!i)return;const p=n._`typeof ${f} == "object"`,u=n._`Array.isArray(${f})`,d=h.let("emErrors");let m,E;const b=h.let("templates");r&&i?(m=h.let("emChildKwd"),h.if(p),h.if(u,()=>{T(i,g.items),h.assign(m,n.str`items`)},()=>{T(r,g.properties),h.assign(m,n.str`properties`)}),E=n._`[${m}]`):i?(h.if(u),T(i,g.items),E=n._`.items`):r&&(h.if(s.and(p,s.not(u))),T(r,g.properties),E=n._`.properties`);function T(e,t){h.assign(d,n.stringify(e)),h.assign(b,v(e,t))}h.forOf("err",o.default.vErrors,e=>function(e,t,r){h.if(s.and(n._`${e}.keyword !== ${c}`,n._`!${e}.${l}`,n._`${e}.instancePath.indexOf(${_}) === 0`),()=>{const s=h.scopeValue("pattern",{ref:/^\/([^/]*)(?:\/|$)/,code:n._`new RegExp("^\\\/([^/]*)(?:\\\/|$)")`}),i=h.const("emMatches",n._`${s}.exec(${e}.instancePath.slice(${_}.length))`),a=h.const("emChild",n._`${i} && ${i}[1].replace(/~1/g, "/").replace(/~0/g, "~")`);h.if(n._`${a} !== undefined && ${a} in ${t}`,()=>r(a))})}(e,d,t=>h.code(n._`${d}[${t}].push(${e})`).assign(n._`${e}.${l}`,!0))),h.forIn("key",d,e=>h.if(n._`${d}[${e}].length`,()=>{a.reportError(t,{message:n._`${e} in ${b} ? ${b}[${e}]() : ${y}${E}[${e}]`,params:n._`{errors: ${d}[${e}]}`}),h.assign(n._`${o.default.vErrors}[${o.default.errors}-1].instancePath`,n._`${_} + "/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`)})),h.endIf()}(function({properties:e,items:t}){const n={};if(e){n.props={};for(const t in e)n.props[t]=[]}if(t){n.items={};for(let e=0;e<t.length;e++)n.items[e]=[]}return n}(b))}const r="string"==typeof b?b:b._;r&&function(e){const r=h.const("emErrs",n._`[]`);h.forOf("err",o.default.vErrors,e=>h.if(function(e){return s.and(n._`${e}.keyword !== ${c}`,n._`!${e}.${l}`,s.or(n._`${e}.instancePath === ${_}`,s.and(n._`${e}.instancePath.indexOf(${_}) === 0`,n._`${e}.instancePath[${_}.length] === "/"`)),n._`${e}.schemaPath.indexOf(${E.errSchemaPath}) === 0`,n._`${e}.schemaPath[${E.errSchemaPath}.length] === "/"`)}(e),()=>h.code(n._`${r}.push(${e})`).assign(n._`${e}.${l}`,!0))),h.if(n._`${r}.length`,()=>a.reportError(t,{message:A(e),params:n._`{errors: ${r}}`}))}(r),e.keepErrors||function(){const e=h.const("emErrs",n._`[]`);h.forOf("err",o.default.vErrors,t=>h.if(n._`!${t}.${l}`,()=>h.code(n._`${e}.push(${t})`))),h.assign(o.default.vErrors,e).assign(o.default.errors,n._`${e}.length`)}()})},metaSchema:{anyOf:[{type:"string"},{type:"object",properties:{properties:{$ref:"#/$defs/stringMap"},items:{$ref:"#/$defs/stringList"},required:{$ref:"#/$defs/stringOrMap"},dependencies:{$ref:"#/$defs/stringOrMap"}},additionalProperties:{type:"string"}}],$defs:{stringMap:{type:"object",additionalProperties:{type:"string"}},stringOrMap:{anyOf:[{type:"string"},{$ref:"#/$defs/stringMap"}]},stringList:{type:"array",items:{type:"string"}}}}}}const f=(e,t={})=>{if(!e.opts.allErrors)throw new Error("ajv-errors: Ajv option allErrors must be true");if(e.opts.jsPropertySyntax)throw new Error("ajv-errors: ajv option jsPropertySyntax is not supported");return e.addKeyword(h(t))};t.default=f,e.exports=f,e.exports.default=f}),$=__webpack_require__.cw(function(e,t){function n(e,t){return{validate:e,compare:t}}t.formatNames=t.fastFormats=t.fullFormats=void 0,t.fullFormats={date:n(i,a),time:n(c(!0),l),"date-time":n(d(!0),m),"iso-time":n(c(),p),"iso-date-time":n(d(),h),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:function(e){return f.test(e)&&g.test(e)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:function(e){if(T.test(e))return!1;try{return new RegExp(e),!0}catch(e){return!1}},uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:function(e){return y.lastIndex=0,y.test(e)},int32:{type:"number",validate:function(e){return Number.isInteger(e)&&e<=b&&e>=E}},int64:{type:"number",validate:function(e){return Number.isInteger(e)}},float:{type:"number",validate:_},double:{type:"number",validate:_},password:!0,binary:!0},t.fastFormats={...t.fullFormats,date:n(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,a),time:n(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,l),"date-time":n(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,m),"iso-time":n(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,p),"iso-date-time":n(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,h),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},t.formatNames=Object.keys(t.fullFormats);const s=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,r=[0,31,28,31,30,31,30,31,31,30,31,30,31];function i(e){const t=s.exec(e);if(!t)return!1;const n=+t[1],i=+t[2],a=+t[3];return i>=1&&i<=12&&a>=1&&a<=(2===i&&function(e){return e%4==0&&(e%100!=0||e%400==0)}(n)?29:r[i])}function a(e,t){if(e&&t)return e>t?1:e<t?-1:0}const o=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function c(e){return function(t){const n=o.exec(t);if(!n)return!1;const s=+n[1],r=+n[2],i=+n[3],a=n[4],c="-"===n[5]?-1:1,l=+(n[6]||0),p=+(n[7]||0);if(l>23||p>59||e&&!a)return!1;if(s<=23&&r<=59&&i<60)return!0;const u=r-p*c,d=s-l*c-(u<0?1:0);return(23===d||-1===d)&&(59===u||-1===u)&&i<61}}function l(e,t){if(!e||!t)return;const n=new Date("2020-01-01T"+e).valueOf(),s=new Date("2020-01-01T"+t).valueOf();return n&&s?n-s:void 0}function p(e,t){if(!e||!t)return;const n=o.exec(e),s=o.exec(t);return n&&s?(e=n[1]+n[2]+n[3])>(t=s[1]+s[2]+s[3])?1:e<t?-1:0:void 0}const u=/t|\s/i;function d(e){const t=c(e);return function(e){const n=e.split(u);return 2===n.length&&i(n[0])&&t(n[1])}}function m(e,t){if(!e||!t)return;const n=new Date(e).valueOf(),s=new Date(t).valueOf();return n&&s?n-s:void 0}function h(e,t){if(!e||!t)return;const[n,s]=e.split(u),[r,i]=t.split(u),o=a(n,r);return void 0!==o?o||l(s,i):void 0}const f=/\/|:/,g=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;const y=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;const E=-(2**31),b=2**31-1;function _(){return!0}const T=/[^\\]\\Z/}),q=__webpack_require__.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n=$(),s=V(),r=W(),i=new r.Name("fullFormats"),a=new r.Name("fastFormats"),o=(e,t={keywords:!0})=>{if(Array.isArray(t))return c(e,t,n.fullFormats,i),e;const[r,o]="fast"===t.mode?[n.fastFormats,a]:[n.fullFormats,i];return c(e,t.formats||n.formatNames,r,o),t.keywords&&(0,s.default)(e),e};function c(e,t,n,s){var i,a;null!==(i=(a=e.opts.code).formats)&&void 0!==i||(a.formats=r._`require("ajv-formats/dist/formats").${s}`);for(const s of t)e.addFormat(s,n[s])}o.get=(e,t="full")=>{const s=("fast"===t?n.fastFormats:n.fullFormats)[e];if(!s)throw new Error(`Unknown format "${e}"`);return s},e.exports=t=o,Object.defineProperty(t,"__esModule",{value:!0}),t.default=o}),V=__webpack_require__.cw(function(e,t){t.A=void 0;const n=Q(),s=W(),r=s.operators,i={formatMaximum:{okStr:"<=",ok:r.LTE,fail:r.GT},formatMinimum:{okStr:">=",ok:r.GTE,fail:r.LT},formatExclusiveMaximum:{okStr:"<",ok:r.LT,fail:r.GTE},formatExclusiveMinimum:{okStr:">",ok:r.GT,fail:r.LTE}},a={message:({keyword:e,schemaCode:t})=>s.str`should be ${i[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>s._`{comparison: ${i[e].okStr}, limit: ${t}}`};t.A={keyword:Object.keys(i),type:"string",schemaType:"string",$data:!0,error:a,code(e){const{gen:t,data:r,schemaCode:a,keyword:o,it:c}=e,{opts:l,self:p}=c;if(!l.validateFormats)return;const u=new n.KeywordCxt(c,p.RULES.all.format.definition,"format");function d(e){return s._`${e}.compare(${r}, ${a}) ${i[o].fail} 0`}u.$data?function(){const n=t.scopeValue("formats",{ref:p.formats,code:l.code.formats}),r=t.const("fmt",s._`${n}[${u.schemaCode}]`);e.fail$data((0,s.or)(s._`typeof ${r} != "object"`,s._`${r} instanceof RegExp`,s._`typeof ${r}.compare != "function"`,d(r)))}():function(){const n=u.schema,r=p.formats[n];if(!r||!0===r)return;if("object"!=typeof r||r instanceof RegExp||"function"!=typeof r.compare)throw new Error(`"${o}": format "${n}" does not define "compare" function`);const i=t.scopeValue("formats",{key:n,ref:r,code:l.code.formats?s._`${l.code.formats}${(0,s.getProperty)(n)}`:void 0});e.fail$data(d(i))}()},dependencies:["format"]};t.default=e=>(e.addKeyword(t.A),e)}),H=__webpack_require__.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv2020=void 0;const n=pe(),s=Ye(),r=je(),i=ue(),a="https://json-schema.org/draft/2020-12/schema";class o extends n.default{constructor(e={}){super({...e,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),s.default.forEach(e=>this.addVocabulary(e)),this.opts.discriminator&&this.addKeyword(r.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();const{$data:e,meta:t}=this.opts;t&&(i.default.call(this,e),this.refs["http://json-schema.org/schema"]=a)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(a)?a:void 0)}}t.Ajv2020=o,e.exports=t=o,e.exports.Ajv2020=o,Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var c=oe();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var l=W();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return l._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return l.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return l.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return l.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return l.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return l.CodeGen}});var p=fe();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return p.default}});var u=X();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return u.default}})}),Q=__webpack_require__.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const n=pe(),s=Be(),r=je(),i=Rt(),a=["/properties"],o="http://json-schema.org/draft-07/schema";class c extends n.default{_addVocabularies(){super._addVocabularies(),s.default.forEach(e=>this.addVocabulary(e)),this.opts.discriminator&&this.addKeyword(r.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const e=this.opts.$data?this.$dataMetaSchema(i,a):i;this.addMetaSchema(e,o,!1),this.refs["http://json-schema.org/schema"]=o}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(o)?o:void 0)}}t.Ajv=c,e.exports=t=c,e.exports.Ajv=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var l=oe();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var p=W();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return p._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return p.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return p.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return p.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return p.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return p.CodeGen}});var u=fe();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return u.default}});var d=X();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return d.default}})}),G=__webpack_require__.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.regexpCode=t.getEsmExportName=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;class n{}t._CodeOrName=n,t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class s extends n{constructor(e){if(super(),!t.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}t.Name=s;class r extends n{constructor(e){super(),this._items="string"==typeof e?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const e=this._items[0];return""===e||'""'===e}get str(){var e;return null!==(e=this._str)&&void 0!==e?e:this._str=this._items.reduce((e,t)=>`${e}${t}`,"")}get names(){var e;return null!==(e=this._names)&&void 0!==e?e:this._names=this._items.reduce((e,t)=>(t instanceof s&&(e[t.str]=(e[t.str]||0)+1),e),{})}}function i(e,...t){const n=[e[0]];let s=0;for(;s<t.length;)c(n,t[s]),n.push(e[++s]);return new r(n)}t._Code=r,t.nil=new r(""),t._=i;const a=new r("+");function o(e,...t){const n=[p(e[0])];let s=0;for(;s<t.length;)n.push(a),c(n,t[s]),n.push(a,p(e[++s]));return function(e){let t=1;for(;t<e.length-1;){if(e[t]===a){const n=l(e[t-1],e[t+1]);if(void 0!==n){e.splice(t-1,3,n);continue}e[t++]="+"}t++}}(n),new r(n)}function c(e,t){var n;t instanceof r?e.push(...t._items):t instanceof s?e.push(t):e.push("number"==typeof(n=t)||"boolean"==typeof n||null===n?n:p(Array.isArray(n)?n.join(","):n))}function l(e,t){if('""'===t)return e;if('""'===e)return t;if("string"==typeof e){if(t instanceof s||'"'!==e[e.length-1])return;return"string"!=typeof t?`${e.slice(0,-1)}${t}"`:'"'===t[0]?e.slice(0,-1)+t.slice(1):void 0}return"string"!=typeof t||'"'!==t[0]||e instanceof s?void 0:`"${e}${t.slice(1)}`}function p(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}t.str=o,t.addCodeArg=c,t.strConcat=function(e,t){return t.emptyStr()?e:e.emptyStr()?t:o`${e}${t}`},t.stringify=function(e){return new r(p(e))},t.safeStringify=p,t.getProperty=function(e){return"string"==typeof e&&t.IDENTIFIER.test(e)?new r(`.${e}`):i`[${e}]`},t.getEsmExportName=function(e){if("string"==typeof e&&t.IDENTIFIER.test(e))return new r(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)},t.regexpCode=function(e){return new r(e.toString())}}),W=__webpack_require__.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;const n=G(),s=J();var r=G();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return r.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return r.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return r.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return r.Name}});var i=J();Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return i.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return i.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return i.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return i.varKinds}}),t.operators={GT:new n._Code(">"),GTE:new n._Code(">="),LT:new n._Code("<"),LTE:new n._Code("<="),EQ:new n._Code("==="),NEQ:new n._Code("!=="),NOT:new n._Code("!"),OR:new n._Code("||"),AND:new n._Code("&&"),ADD:new n._Code("+")};class a{optimizeNodes(){return this}optimizeNames(e,t){return this}}class o extends a{constructor(e,t,n){super(),this.varKind=e,this.name=t,this.rhs=n}render({es5:e,_n:t}){const n=e?s.varKinds.var:this.varKind,r=void 0===this.rhs?"":` = ${this.rhs}`;return`${n} ${this.name}${r};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=x(this.rhs,e,t)),this}get names(){return this.rhs instanceof n._CodeOrName?this.rhs.names:{}}}class c extends a{constructor(e,t,n){super(),this.lhs=e,this.rhs=t,this.sideEffects=n}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,t){if(!(this.lhs instanceof n.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=x(this.rhs,e,t),this}get names(){return w(this.lhs instanceof n.Name?{}:{...this.lhs.names},this.rhs)}}class l extends c{constructor(e,t,n,s){super(e,n,s),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class p extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class u extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}}class d extends a{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class m extends a{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=x(this.code,e,t),this}get names(){return this.code instanceof n._CodeOrName?this.code.names:{}}}class h extends a{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce((t,n)=>t+n.render(e),"")}optimizeNodes(){const{nodes:e}=this;let t=e.length;for(;t--;){const n=e[t].optimizeNodes();Array.isArray(n)?e.splice(t,1,...n):n?e[t]=n:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){const{nodes:n}=this;let s=n.length;for(;s--;){const r=n[s];r.optimizeNames(e,t)||(N(e,r.names),n.splice(s,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((e,t)=>D(e,t.names),{})}}class f extends h{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class g extends h{}class y extends f{}y.kind="else";class E extends f{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+="else "+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(!0===e)return this.nodes;let t=this.else;if(t){const e=t.optimizeNodes();t=this.else=Array.isArray(e)?new y(e):e}return t?!1===e?t instanceof E?t:t.nodes:this.nodes.length?this:new E(F(e),t instanceof E?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,t){var n;if(this.else=null===(n=this.else)||void 0===n?void 0:n.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=x(this.condition,e,t),this}get names(){const e=super.names;return w(e,this.condition),this.else&&D(e,this.else.names),e}}E.kind="if";class b extends f{}b.kind="for";class _ extends b{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=x(this.iteration,e,t),this}get names(){return D(super.names,this.iteration.names)}}class T extends b{constructor(e,t,n,s){super(),this.varKind=e,this.name=t,this.from=n,this.to=s}render(e){const t=e.es5?s.varKinds.var:this.varKind,{name:n,from:r,to:i}=this;return`for(${t} ${n}=${r}; ${n}<${i}; ${n}++)`+super.render(e)}get names(){const e=w(super.names,this.from);return w(e,this.to)}}class v extends b{constructor(e,t,n,s){super(),this.loop=e,this.varKind=t,this.name=n,this.iterable=s}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=x(this.iterable,e,t),this}get names(){return D(super.names,this.iterable.names)}}class A extends f{constructor(e,t,n){super(),this.name=e,this.args=t,this.async=n}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}}A.kind="func";class S extends h{render(e){return"return "+super.render(e)}}S.kind="return";class I extends f{render(e){let t="try"+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),null===(e=this.catch)||void 0===e||e.optimizeNodes(),null===(t=this.finally)||void 0===t||t.optimizeNodes(),this}optimizeNames(e,t){var n,s;return super.optimizeNames(e,t),null===(n=this.catch)||void 0===n||n.optimizeNames(e,t),null===(s=this.finally)||void 0===s||s.optimizeNames(e,t),this}get names(){const e=super.names;return this.catch&&D(e,this.catch.names),this.finally&&D(e,this.finally.names),e}}class P extends f{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}P.kind="catch";class O extends f{render(e){return"finally"+super.render(e)}}O.kind="finally";function D(e,t){for(const n in t)e[n]=(e[n]||0)+(t[n]||0);return e}function w(e,t){return t instanceof n._CodeOrName?D(e,t.names):e}function x(e,t,s){return e instanceof n.Name?i(e):(r=e)instanceof n._Code&&r._items.some(e=>e instanceof n.Name&&1===t[e.str]&&void 0!==s[e.str])?new n._Code(e._items.reduce((e,t)=>(t instanceof n.Name&&(t=i(t)),t instanceof n._Code?e.push(...t._items):e.push(t),e),[])):e;var r;function i(e){const n=s[e.str];return void 0===n||1!==t[e.str]?e:(delete t[e.str],n)}}function N(e,t){for(const n in t)e[n]=(e[n]||0)-(t[n]||0)}function F(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:n._`!${L(e)}`}t.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?"\n":""},this._extScope=e,this._scope=new s.Scope({parent:e}),this._nodes=[new g]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){const n=this._extScope.value(e,t);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,n,s){const r=this._scope.toName(t);return void 0!==n&&s&&(this._constants[r.str]=n),this._leafNode(new o(e,r,n)),r}const(e,t,n){return this._def(s.varKinds.const,e,t,n)}let(e,t,n){return this._def(s.varKinds.let,e,t,n)}var(e,t,n){return this._def(s.varKinds.var,e,t,n)}assign(e,t,n){return this._leafNode(new c(e,t,n))}add(e,n){return this._leafNode(new l(e,t.operators.ADD,n))}code(e){return"function"==typeof e?e():e!==n.nil&&this._leafNode(new m(e)),this}object(...e){const t=["{"];for(const[s,r]of e)t.length>1&&t.push(","),t.push(s),(s!==r||this.opts.es5)&&(t.push(":"),(0,n.addCodeArg)(t,r));return t.push("}"),new n._Code(t)}if(e,t,n){if(this._blockNode(new E(e)),t&&n)this.code(t).else().code(n).endIf();else if(t)this.code(t).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new E(e))}else(){return this._elseNode(new y)}endIf(){return this._endBlockNode(E,y)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new _(e),t)}forRange(e,t,n,r,i=(this.opts.es5?s.varKinds.var:s.varKinds.let)){const a=this._scope.toName(e);return this._for(new T(i,a,t,n),()=>r(a))}forOf(e,t,r,i=s.varKinds.const){const a=this._scope.toName(e);if(this.opts.es5){const e=t instanceof n.Name?t:this.var("_arr",t);return this.forRange("_i",0,n._`${e}.length`,t=>{this.var(a,n._`${e}[${t}]`),r(a)})}return this._for(new v("of",i,a,t),()=>r(a))}forIn(e,t,r,i=(this.opts.es5?s.varKinds.var:s.varKinds.const)){if(this.opts.ownProperties)return this.forOf(e,n._`Object.keys(${t})`,r);const a=this._scope.toName(e);return this._for(new v("in",i,a,t),()=>r(a))}endFor(){return this._endBlockNode(b)}label(e){return this._leafNode(new p(e))}break(e){return this._leafNode(new u(e))}return(e){const t=new S;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(S)}try(e,t,n){if(!t&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');const s=new I;if(this._blockNode(s),this.code(e),t){const e=this.name("e");this._currNode=s.catch=new P(e),t(e)}return n&&(this._currNode=s.finally=new O,this.code(n)),this._endBlockNode(P,O)}throw(e){return this._leafNode(new d(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){const t=this._blockStarts.pop();if(void 0===t)throw new Error("CodeGen: not in self-balancing block");const n=this._nodes.length-t;if(n<0||void 0!==e&&n!==e)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${e} expected`);return this._nodes.length=t,this}func(e,t=n.nil,s,r){return this._blockNode(new A(e,t,s)),r&&this.code(r).endFunc(),this}endFunc(){return this._endBlockNode(A)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){const n=this._currNode;if(n instanceof e||t&&n instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){const t=this._currNode;if(!(t instanceof E))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const t=this._nodes;t[t.length-1]=e}},t.not=F;const R=C(t.operators.AND);t.and=function(...e){return e.reduce(R)};const k=C(t.operators.OR);function C(e){return(t,s)=>t===n.nil?s:s===n.nil?t:n._`${L(t)} ${e} ${L(s)}`}function L(e){return e instanceof n.Name?e:n._`(${e})`}t.or=function(...e){return e.reduce(k)}}),J=__webpack_require__.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.ValueScope=t.ValueScopeName=t.Scope=t.varKinds=t.UsedValueState=void 0;const n=G();class s extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}}var r;!function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"}(r||(t.UsedValueState=r={})),t.varKinds={const:new n.Name("const"),let:new n.Name("let"),var:new n.Name("var")};class i{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof n.Name?e:this.name(e)}name(e){return new n.Name(this._newName(e))}_newName(e){return`${e}${(this._names[e]||this._nameGroup(e)).index++}`}_nameGroup(e){var t,n;if((null===(n=null===(t=this._parent)||void 0===t?void 0:t._prefixes)||void 0===n?void 0:n.has(e))||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}}t.Scope=i;class a extends n.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:t,itemIndex:s}){this.value=e,this.scopePath=n._`.${new n.Name(t)}[${s}]`}}t.ValueScopeName=a;const o=n._`\n`;t.ValueScope=class extends i{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?o:n.nil}}get(){return this._scope}name(e){return new a(e,this._newName(e))}value(e,t){var n;if(void 0===t.ref)throw new Error("CodeGen: ref must be passed in value");const s=this.toName(e),{prefix:r}=s,i=null!==(n=t.key)&&void 0!==n?n:t.ref;let a=this._values[r];if(a){const e=a.get(i);if(e)return e}else a=this._values[r]=new Map;a.set(i,s);const o=this._scope[r]||(this._scope[r]=[]),c=o.length;return o[c]=t.ref,s.setValue(t,{property:r,itemIndex:c}),s}getValue(e,t){const n=this._values[e];if(n)return n.get(t)}scopeRefs(e,t=this._values){return this._reduceValues(t,t=>{if(void 0===t.scopePath)throw new Error(`CodeGen: name "${t}" has no value`);return n._`${e}${t.scopePath}`})}scopeCode(e=this._values,t,n){return this._reduceValues(e,e=>{if(void 0===e.value)throw new Error(`CodeGen: name "${e}" has no value`);return e.value.code},t,n)}_reduceValues(e,i,a={},o){let c=n.nil;for(const l in e){const p=e[l];if(!p)continue;const u=a[l]=a[l]||new Map;p.forEach(e=>{if(u.has(e))return;u.set(e,r.Started);let a=i(e);if(a){const s=this.opts.es5?t.varKinds.var:t.varKinds.const;c=n._`${c}${s} ${e} = ${a};${this.opts._n}`}else{if(!(a=null==o?void 0:o(e)))throw new s(e);c=n._`${c}${a}${this.opts._n}`}u.set(e,r.Completed)})}return c}}}),K=__webpack_require__.cw(function(e,t){t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.y=void 0;const n=W(),s=ne(),r=Z();function i(e,t){const s=e.const("err",t);e.if(n._`${r.default.vErrors} === null`,()=>e.assign(r.default.vErrors,n._`[${s}]`),n._`${r.default.vErrors}.push(${s})`),e.code(n._`${r.default.errors}++`)}function a(e,t){const{gen:s,validateName:r,schemaEnv:i}=e;i.$async?s.throw(n._`new ${e.ValidationError}(${t})`):(s.assign(n._`${r}.errors`,t),s.return(!1))}t.y={message:({keyword:e})=>n.str`must pass "${e}" keyword validation`},t.keyword$DataError={message:({keyword:e,schemaType:t})=>t?n.str`"${e}" keyword must be ${t} ($data)`:n.str`"${e}" keyword is invalid ($data)`},t.reportError=function(e,s=t.y,r,o){const{it:l}=e,{gen:p,compositeRule:u,allErrors:d}=l,m=c(e,s,r);(null!=o?o:u||d)?i(p,m):a(l,n._`[${m}]`)},t.reportExtraError=function(e,n=t.y,s){const{it:o}=e,{gen:l,compositeRule:p,allErrors:u}=o;i(l,c(e,n,s)),p||u||a(o,r.default.vErrors)},t.resetErrorsCount=function(e,t){e.assign(r.default.errors,t),e.if(n._`${r.default.vErrors} !== null`,()=>e.if(t,()=>e.assign(n._`${r.default.vErrors}.length`,t),()=>e.assign(r.default.vErrors,null)))},t.extendErrors=function({gen:e,keyword:t,schemaValue:s,data:i,errsCount:a,it:o}){if(void 0===a)throw new Error("ajv implementation error");const c=e.name("err");e.forRange("i",a,r.default.errors,a=>{e.const(c,n._`${r.default.vErrors}[${a}]`),e.if(n._`${c}.instancePath === undefined`,()=>e.assign(n._`${c}.instancePath`,(0,n.strConcat)(r.default.instancePath,o.errorPath))),e.assign(n._`${c}.schemaPath`,n.str`${o.errSchemaPath}/${t}`),o.opts.verbose&&(e.assign(n._`${c}.schema`,s),e.assign(n._`${c}.data`,i))})};const o={keyword:new n.Name("keyword"),schemaPath:new n.Name("schemaPath"),params:new n.Name("params"),propertyName:new n.Name("propertyName"),message:new n.Name("message"),schema:new n.Name("schema"),parentSchema:new n.Name("parentSchema")};function c(e,t,s){const{createErrors:i}=e.it;return!1===i?n._`{}`:function(e,t,s={}){const{gen:i,it:a}=e,c=[l(a,s),p(e,s)];return function(e,{params:t,message:s},i){const{keyword:a,data:c,schemaValue:l,it:p}=e,{opts:u,propertyName:d,topSchemaRef:m,schemaPath:h}=p;i.push([o.keyword,a],[o.params,"function"==typeof t?t(e):t||n._`{}`]),u.messages&&i.push([o.message,"function"==typeof s?s(e):s]);u.verbose&&i.push([o.schema,l],[o.parentSchema,n._`${m}${h}`],[r.default.data,c]);d&&i.push([o.propertyName,d])}(e,t,c),i.object(...c)}(e,t,s)}function l({errorPath:e},{instancePath:t}){const i=t?n.str`${e}${(0,s.getErrorPath)(t,s.Type.Str)}`:e;return[r.default.instancePath,(0,n.strConcat)(r.default.instancePath,i)]}function p({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:i}){let a=i?t:n.str`${t}/${e}`;return r&&(a=n.str`${a}${(0,s.getErrorPath)(r,s.Type.Str)}`),[o.schemaPath,a]}}),z=__webpack_require__.cw(function(e,t){t.resolveSchema=t.resolveRef=t.compileSchema=t.SchemaEnv=void 0;const n=W(),s=fe(),r=Z(),i=ee(),a=ne(),o=oe();class c{constructor(e){var t;let n;this.refs={},this.dynamicAnchors={},"object"==typeof e.schema&&(n=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=null!==(t=e.baseId)&&void 0!==t?t:(0,i.normalizeId)(null==n?void 0:n[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=null==n?void 0:n.$async,this.refs={}}}function l(e){const t=u.call(this,e);if(t)return t;const a=(0,i.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:c,lines:l}=this.opts.code,{ownProperties:p}=this.opts,d=new n.CodeGen(this.scope,{es5:c,lines:l,ownProperties:p});let m;e.$async&&(m=d.scopeValue("Error",{ref:s.default,code:n._`require("ajv/dist/runtime/validation_error").default`}));const h=d.scopeName("validate");e.validateName=h;const f={gen:d,allErrors:this.opts.allErrors,data:r.default.data,parentData:r.default.parentData,parentDataProperty:r.default.parentDataProperty,dataNames:[r.default.data],dataPathArr:[n.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:d.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:(0,n.stringify)(e.schema)}:{ref:e.schema}),validateName:h,ValidationError:m,schema:e.schema,schemaEnv:e,rootId:a,baseId:e.baseId||a,schemaPath:n.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:n._`""`,opts:this.opts,self:this};let g;try{this._compilations.add(e),(0,o.validateFunctionCode)(f),d.optimize(this.opts.code.optimize);const t=d.toString();g=`${d.scopeRefs(r.default.scope)}return ${t}`,this.opts.code.process&&(g=this.opts.code.process(g,e));const s=new Function(`${r.default.self}`,`${r.default.scope}`,g)(this,this.scope.get());if(this.scope.value(h,{ref:s}),s.errors=null,s.schema=e.schema,s.schemaEnv=e,e.$async&&(s.$async=!0),!0===this.opts.code.source&&(s.source={validateName:h,validateCode:t,scopeValues:d._values}),this.opts.unevaluated){const{props:e,items:t}=f;s.evaluated={props:e instanceof n.Name?void 0:e,items:t instanceof n.Name?void 0:t,dynamicProps:e instanceof n.Name,dynamicItems:t instanceof n.Name},s.source&&(s.source.evaluated=(0,n.stringify)(s.evaluated))}return e.validate=s,e}catch(t){throw delete e.validate,delete e.validateName,g&&this.logger.error("Error compiling schema, function code:",g),t}finally{this._compilations.delete(e)}}function p(e){return(0,i.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:l.call(this,e)}function u(e){for(const t of this._compilations)if(d(t,e))return t}function d(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function m(e,t){let n;for(;"string"==typeof(n=this.refs[t]);)t=n;return n||this.schemas[t]||h.call(this,e,t)}function h(e,t){const n=this.opts.uriResolver.parse(t),s=(0,i._getFullPath)(this.opts.uriResolver,n);let r=(0,i.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&s===r)return g.call(this,n,e);const a=(0,i.normalizeId)(s),o=this.refs[a]||this.schemas[a];if("string"==typeof o){const t=h.call(this,e,o);if("object"!=typeof(null==t?void 0:t.schema))return;return g.call(this,n,t)}if("object"==typeof(null==o?void 0:o.schema)){if(o.validate||l.call(this,o),a===(0,i.normalizeId)(t)){const{schema:t}=o,{schemaId:n}=this.opts,s=t[n];return s&&(r=(0,i.resolveUrl)(this.opts.uriResolver,r,s)),new c({schema:t,schemaId:n,root:e,baseId:r})}return g.call(this,n,o)}}t.SchemaEnv=c,t.compileSchema=l,t.resolveRef=function(e,t,n){var s;n=(0,i.resolveUrl)(this.opts.uriResolver,t,n);const r=e.refs[n];if(r)return r;let a=m.call(this,e,n);if(void 0===a){const r=null===(s=e.localRefs)||void 0===s?void 0:s[n],{schemaId:i}=this.opts;r&&(a=new c({schema:r,schemaId:i,root:e,baseId:t}))}return void 0!==a?e.refs[n]=p.call(this,a):void 0},t.resolveSchema=h;const f=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function g(e,{baseId:t,schema:n,root:s}){var r;if("/"!==(null===(r=e.fragment)||void 0===r?void 0:r[0]))return;for(const s of e.fragment.slice(1).split("/")){if("boolean"==typeof n)return;const e=n[(0,a.unescapeFragment)(s)];if(void 0===e)return;const r="object"==typeof(n=e)&&n[this.opts.schemaId];!f.has(s)&&r&&(t=(0,i.resolveUrl)(this.opts.uriResolver,t,r))}let o;if("boolean"!=typeof n&&n.$ref&&!(0,a.schemaHasRulesButRef)(n,this.RULES)){const e=(0,i.resolveUrl)(this.opts.uriResolver,t,n.$ref);o=h.call(this,s,e)}const{schemaId:l}=this.opts;return o=o||new c({schema:n,schemaId:l,root:s,baseId:t}),o.schema!==o.root.schema?o:void 0}}),Z=__webpack_require__.cw(function(e,t){const n=W(),s={data:new n.Name("data"),valCxt:new n.Name("valCxt"),instancePath:new n.Name("instancePath"),parentData:new n.Name("parentData"),parentDataProperty:new n.Name("parentDataProperty"),rootData:new n.Name("rootData"),dynamicAnchors:new n.Name("dynamicAnchors"),vErrors:new n.Name("vErrors"),errors:new n.Name("errors"),this:new n.Name("this"),self:new n.Name("self"),scope:new n.Name("scope"),json:new n.Name("json"),jsonPos:new n.Name("jsonPos"),jsonLen:new n.Name("jsonLen"),jsonPart:new n.Name("jsonPart")};t.default=s}),X=__webpack_require__.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n=ee();class s extends Error{constructor(e,t,s,r){super(r||`can't resolve reference ${s} from id ${t}`),this.missingRef=(0,n.resolveUrl)(e,t,s),this.missingSchema=(0,n.normalizeId)((0,n.getFullPath)(e,this.missingRef))}}t.default=s}),ee=__webpack_require__.cw(function(e,t){t.getSchemaRefs=t.resolveUrl=t.normalizeId=t._getFullPath=t.getFullPath=t.inlineRef=void 0;const n=ne(),s=mt(),r=ht(),i=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);t.inlineRef=function(e,t=!0){return"boolean"==typeof e||(!0===t?!o(e):!!t&&c(e)<=t)};const a=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function o(e){for(const t in e){if(a.has(t))return!0;const n=e[t];if(Array.isArray(n)&&n.some(o))return!0;if("object"==typeof n&&o(n))return!0}return!1}function c(e){let t=0;for(const s in e){if("$ref"===s)return 1/0;if(t++,!i.has(s)&&("object"==typeof e[s]&&(0,n.eachItem)(e[s],e=>t+=c(e)),t===1/0))return 1/0}return t}function l(e,t="",n){!1!==n&&(t=d(t));const s=e.parse(t);return p(e,s)}function p(e,t){return e.serialize(t).split("#")[0]+"#"}t.getFullPath=l,t._getFullPath=p;const u=/#\/?$/;function d(e){return e?e.replace(u,""):""}t.normalizeId=d,t.resolveUrl=function(e,t,n){return n=d(n),e.resolve(t,n)};const m=/^[a-z_][-a-z0-9._]*$/i;t.getSchemaRefs=function(e,t){if("boolean"==typeof e)return{};const{schemaId:n,uriResolver:i}=this.opts,a=d(e[n]||t),o={"":a},c=l(i,a,!1),p={},u=new Set;return r(e,{allKeys:!0},(e,t,s,r)=>{if(void 0===r)return;const i=c+t;let a=o[r];function l(t){const n=this.opts.uriResolver.resolve;if(t=d(a?n(a,t):t),u.has(t))throw f(t);u.add(t);let s=this.refs[t];return"string"==typeof s&&(s=this.refs[s]),"object"==typeof s?h(e,s.schema,t):t!==d(i)&&("#"===t[0]?(h(e,p[t],t),p[t]=e):this.refs[t]=i),t}function g(e){if("string"==typeof e){if(!m.test(e))throw new Error(`invalid anchor "${e}"`);l.call(this,`#${e}`)}}"string"==typeof e[n]&&(a=l.call(this,e[n])),g.call(this,e.$anchor),g.call(this,e.$dynamicAnchor),o[t]=a}),p;function h(e,t,n){if(void 0!==t&&!s(e,t))throw f(n)}function f(e){return new Error(`reference "${e}" resolves to more than one schema`)}}}),te=__webpack_require__.cw(function(e,t){t.getRules=t.isJSONType=void 0;const n=new Set(["string","number","integer","boolean","null","object","array"]);t.isJSONType=function(e){return"string"==typeof e&&n.has(e)},t.getRules=function(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}}),ne=__webpack_require__.cw(function(e,t){t.checkStrictMode=t.getErrorPath=t.Type=t.useFunc=t.evaluatedPropsToName=t.mergeEvaluated=t.eachItem=t.unescapeJsonPointer=t.escapeFragment=t.unescapeFragment=t.schemaRefOrVal=t.schemaHasRulesButRef=t.checkUnknownRules=t.alwaysValidSchema=t.toHash=void 0;const n=W(),s=G();function r(e,t=e.schema){const{opts:n,self:s}=e;if(!n.strictSchema)return;if("boolean"==typeof t)return;const r=s.RULES.keywords;for(const n in t)r[n]||m(e,`unknown keyword: "${n}"`)}function i(e,t){if("boolean"==typeof e)return!e;for(const n in e)if(t[n])return!0;return!1}function a(e){return"number"==typeof e?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function o(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function c({mergeNames:e,mergeToName:t,mergeValues:s,resultToName:r}){return(i,a,o,c)=>{const l=void 0===o?a:o instanceof n.Name?(a instanceof n.Name?e(i,a,o):t(i,a,o),o):a instanceof n.Name?(t(i,o,a),a):s(a,o);return c!==n.Name||l instanceof n.Name?l:r(i,l)}}function l(e,t){if(!0===t)return e.var("props",!0);const s=e.var("props",n._`{}`);return void 0!==t&&p(e,s,t),s}function p(e,t,s){Object.keys(s).forEach(s=>e.assign(n._`${t}${(0,n.getProperty)(s)}`,!0))}t.toHash=function(e){const t={};for(const n of e)t[n]=!0;return t},t.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(r(e,t),!i(t,e.self.RULES.all))},t.checkUnknownRules=r,t.schemaHasRulesButRef=function(e,t){if("boolean"==typeof e)return!e;for(const n in e)if("$ref"!==n&&t.all[n])return!0;return!1},t.schemaRefOrVal=function({topSchemaRef:e,schemaPath:t},s,r,i){if(!i){if("number"==typeof s||"boolean"==typeof s)return s;if("string"==typeof s)return n._`${s}`}return n._`${e}${t}${(0,n.getProperty)(r)}`},t.unescapeFragment=function(e){return o(decodeURIComponent(e))},t.escapeFragment=function(e){return encodeURIComponent(a(e))},t.unescapeJsonPointer=o,t.eachItem=function(e,t){if(Array.isArray(e))for(const n of e)t(n);else t(e)},t.mergeEvaluated={props:c({mergeNames:(e,t,s)=>e.if(n._`${s} !== true && ${t} !== undefined`,()=>{e.if(n._`${t} === true`,()=>e.assign(s,!0),()=>e.assign(s,n._`${s} || {}`).code(n._`Object.assign(${s}, ${t})`))}),mergeToName:(e,t,s)=>e.if(n._`${s} !== true`,()=>{!0===t?e.assign(s,!0):(e.assign(s,n._`${s} || {}`),p(e,s,t))}),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:l}),items:c({mergeNames:(e,t,s)=>e.if(n._`${s} !== true && ${t} !== undefined`,()=>e.assign(s,n._`${t} === true ? true : ${s} > ${t} ? ${s} : ${t}`)),mergeToName:(e,t,s)=>e.if(n._`${s} !== true`,()=>e.assign(s,!0===t||n._`${s} > ${t} ? ${s} : ${t}`)),mergeValues:(e,t)=>!0===e||Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})},t.evaluatedPropsToName=l;const u={};var d;function m(e,t,n=e.opts.strictSchema){if(n){if(t=`strict mode: ${t}`,!0===n)throw new Error(t);e.self.logger.warn(t)}}t.useFunc=function(e,t){return e.scopeValue("func",{ref:t,code:u[t.code]||(u[t.code]=new s._Code(t.code))})},function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"}(d||(t.Type=d={})),t.getErrorPath=function(e,t,s){if(e instanceof n.Name){const r=t===d.Num;return s?r?n._`"[" + ${e} + "]"`:n._`"['" + ${e} + "']"`:r?n._`"/" + ${e}`:n._`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return s?(0,n.getProperty)(e).toString():"/"+a(e)},t.checkStrictMode=m}),se=__webpack_require__.cw(function(e,t){function n(e,t){return t.rules.some(t=>s(e,t))}function s(e,t){var n;return void 0!==e[t.keyword]||(null===(n=t.definition.implements)||void 0===n?void 0:n.some(t=>void 0!==e[t]))}t.shouldUseRule=t.shouldUseGroup=t.schemaHasRulesForType=void 0,t.schemaHasRulesForType=function({schema:e,self:t},s){const r=t.RULES.types[s];return r&&!0!==r&&n(e,r)},t.shouldUseGroup=n,t.shouldUseRule=s}),re=__webpack_require__.cw(function(e,t){t.boolOrEmptySchema=t.topBoolOrEmptySchema=void 0;const n=K(),s=W(),r=Z(),i={message:"boolean schema is false"};function a(e,t){const{gen:s,data:r}=e,a={gen:s,keyword:"false schema",data:r,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,n.reportError)(a,i,void 0,t)}t.topBoolOrEmptySchema=function(e){const{gen:t,schema:n,validateName:i}=e;!1===n?a(e,!1):"object"==typeof n&&!0===n.$async?t.return(r.default.data):(t.assign(s._`${i}.errors`,null),t.return(!0))},t.boolOrEmptySchema=function(e,t){const{gen:n,schema:s}=e;!1===s?(n.var(t,!1),a(e)):n.var(t,!0)}}),ie=__webpack_require__.cw(function(e,t){t.reportTypeError=t.checkDataTypes=t.checkDataType=t.coerceAndCheckDataType=t.getJSONTypes=t.getSchemaTypes=t.DataType=void 0;const n=te(),s=se(),r=K(),i=W(),a=ne();var o;function c(e){const t=Array.isArray(e)?e:e?[e]:[];if(t.every(n.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}!function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"}(o||(t.DataType=o={})),t.getSchemaTypes=function(e){const t=c(e.type);if(t.includes("null")){if(!1===e.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&void 0!==e.nullable)throw new Error('"nullable" cannot be used without "type"');!0===e.nullable&&t.push("null")}return t},t.getJSONTypes=c,t.coerceAndCheckDataType=function(e,t){const{gen:n,data:r,opts:a}=e,c=function(e,t){return t?e.filter(e=>l.has(e)||"array"===t&&"array"===e):[]}(t,a.coerceTypes),p=t.length>0&&!(0===c.length&&1===t.length&&(0,s.schemaHasRulesForType)(e,t[0]));if(p){const s=u(t,r,a.strictNumbers,o.Wrong);n.if(s,()=>{c.length?function(e,t,n){const{gen:s,data:r,opts:a}=e,o=s.let("dataType",i._`typeof ${r}`),c=s.let("coerced",i._`undefined`);"array"===a.coerceTypes&&s.if(i._`${o} == 'object' && Array.isArray(${r}) && ${r}.length == 1`,()=>s.assign(r,i._`${r}[0]`).assign(o,i._`typeof ${r}`).if(u(t,r,a.strictNumbers),()=>s.assign(c,r)));s.if(i._`${c} !== undefined`);for(const e of n)(l.has(e)||"array"===e&&"array"===a.coerceTypes)&&p(e);function p(e){switch(e){case"string":return void s.elseIf(i._`${o} == "number" || ${o} == "boolean"`).assign(c,i._`"" + ${r}`).elseIf(i._`${r} === null`).assign(c,i._`""`);case"number":return void s.elseIf(i._`${o} == "boolean" || ${r} === null
2
2
  || (${o} == "string" && ${r} && ${r} == +${r})`).assign(c,i._`+${r}`);case"integer":return void s.elseIf(i._`${o} === "boolean" || ${r} === null
3
3
  || (${o} === "string" && ${r} && ${r} == +${r} && !(${r} % 1))`).assign(c,i._`+${r}`);case"boolean":return void s.elseIf(i._`${r} === "false" || ${r} === 0 || ${r} === null`).assign(c,!1).elseIf(i._`${r} === "true" || ${r} === 1`).assign(c,!0);case"null":return s.elseIf(i._`${r} === "" || ${r} === 0 || ${r} === false`),void s.assign(c,null);case"array":s.elseIf(i._`${o} === "string" || ${o} === "number"
4
4
  || ${o} === "boolean" || ${r} === null`).assign(c,i._`[${r}]`)}}s.else(),m(e),s.endIf(),s.if(i._`${c} !== undefined`,()=>{s.assign(r,c),function({gen:e,parentData:t,parentDataProperty:n},s){e.if(i._`${t} !== undefined`,()=>e.assign(i._`${t}[${n}]`,s))}(e,c)})}(e,t,c):m(e)})}return p};const l=new Set(["string","number","integer","boolean","null"]);function p(e,t,n,s=o.Correct){const r=s===o.Correct?i.operators.EQ:i.operators.NEQ;let a;switch(e){case"null":return i._`${t} ${r} null`;case"array":a=i._`Array.isArray(${t})`;break;case"object":a=i._`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":a=c(i._`!(${t} % 1) && !isNaN(${t})`);break;case"number":a=c();break;default:return i._`typeof ${t} ${r} ${e}`}return s===o.Correct?a:(0,i.not)(a);function c(e=i.nil){return(0,i.and)(i._`typeof ${t} == "number"`,e,n?i._`isFinite(${t})`:i.nil)}}function u(e,t,n,s){if(1===e.length)return p(e[0],t,n,s);let r;const o=(0,a.toHash)(e);if(o.array&&o.object){const e=i._`typeof ${t} != "object"`;r=o.null?e:i._`!${t} || ${e}`,delete o.null,delete o.array,delete o.object}else r=i.nil;o.number&&delete o.integer;for(const e in o)r=(0,i.and)(r,p(e,t,n,s));return r}t.checkDataType=p,t.checkDataTypes=u;const d={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>"string"==typeof e?i._`{type: ${e}}`:i._`{type: ${t}}`};function m(e){const t=function(e){const{gen:t,data:n,schema:s}=e,r=(0,a.schemaRefOrVal)(e,s,"type");return{gen:t,keyword:"type",data:n,schema:s.type,schemaCode:r,schemaValue:r,parentSchema:s,params:{},it:e}}(e);(0,r.reportError)(t,d)}t.reportTypeError=m}),ae=__webpack_require__.cw(function(e,t){t.assignDefaults=void 0;const n=W(),s=ne();function r(e,t,r){const{gen:i,compositeRule:a,data:o,opts:c}=e;if(void 0===r)return;const l=n._`${o}${(0,n.getProperty)(t)}`;if(a)return void(0,s.checkStrictMode)(e,`default is ignored for: ${l}`);let p=n._`${l} === undefined`;"empty"===c.useDefaults&&(p=n._`${p} || ${l} === null || ${l} === ""`),i.if(p,n._`${l} = ${(0,n.stringify)(r)}`)}t.assignDefaults=function(e,t){const{properties:n,items:s}=e.schema;if("object"===t&&n)for(const t in n)r(e,t,n[t].default);else"array"===t&&Array.isArray(s)&&s.forEach((t,n)=>r(e,n,t.default))}}),oe=__webpack_require__.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getData=t.KeywordCxt=t.validateFunctionCode=void 0;const n=re(),s=ie(),r=se(),i=ie(),a=ae(),o=ce(),c=le(),l=W(),p=Z(),u=ee(),d=ne(),m=K();function h({gen:e,validateName:t,schema:n,schemaEnv:s,opts:r},i){r.code.es5?e.func(t,l._`${p.default.data}, ${p.default.valCxt}`,s.$async,()=>{e.code(l._`"use strict"; ${f(n,r)}`),function(e,t){e.if(p.default.valCxt,()=>{e.var(p.default.instancePath,l._`${p.default.valCxt}.${p.default.instancePath}`),e.var(p.default.parentData,l._`${p.default.valCxt}.${p.default.parentData}`),e.var(p.default.parentDataProperty,l._`${p.default.valCxt}.${p.default.parentDataProperty}`),e.var(p.default.rootData,l._`${p.default.valCxt}.${p.default.rootData}`),t.dynamicRef&&e.var(p.default.dynamicAnchors,l._`${p.default.valCxt}.${p.default.dynamicAnchors}`)},()=>{e.var(p.default.instancePath,l._`""`),e.var(p.default.parentData,l._`undefined`),e.var(p.default.parentDataProperty,l._`undefined`),e.var(p.default.rootData,p.default.data),t.dynamicRef&&e.var(p.default.dynamicAnchors,l._`{}`)})}(e,r),e.code(i)}):e.func(t,l._`${p.default.data}, ${function(e){return l._`{${p.default.instancePath}="", ${p.default.parentData}, ${p.default.parentDataProperty}, ${p.default.rootData}=${p.default.data}${e.dynamicRef?l._`, ${p.default.dynamicAnchors}={}`:l.nil}}={}`}(r)}`,s.$async,()=>e.code(f(n,r)).code(i))}function f(e,t){const n="object"==typeof e&&e[t.schemaId];return n&&(t.code.source||t.code.process)?l._`/*# sourceURL=${n} */`:l.nil}function g(e,t){E(e)&&(b(e),y(e))?function(e,t){const{schema:n,gen:s,opts:r}=e;r.$comment&&n.$comment&&T(e);(function(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,u.resolveUrl)(e.opts.uriResolver,e.baseId,t))})(e),function(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}(e);const i=s.const("_errs",p.default.errors);_(e,i),s.var(t,l._`${i} === ${p.default.errors}`)}(e,t):(0,n.boolOrEmptySchema)(e,t)}function y({schema:e,self:t}){if("boolean"==typeof e)return!e;for(const n in e)if(t.RULES.all[n])return!0;return!1}function E(e){return"boolean"!=typeof e.schema}function b(e){(0,d.checkUnknownRules)(e),function(e){const{schema:t,errSchemaPath:n,opts:s,self:r}=e;t.$ref&&s.ignoreKeywordsWithRef&&(0,d.schemaHasRulesButRef)(t,r.RULES)&&r.logger.warn(`$ref: keywords ignored in schema at path "${n}"`)}(e)}function _(e,t){if(e.opts.jtd)return v(e,[],!1,t);const n=(0,s.getSchemaTypes)(e.schema);v(e,n,!(0,s.coerceAndCheckDataType)(e,n),t)}function T({gen:e,schemaEnv:t,schema:n,errSchemaPath:s,opts:r}){const i=n.$comment;if(!0===r.$comment)e.code(l._`${p.default.self}.logger.log(${i})`);else if("function"==typeof r.$comment){const n=l.str`${s}/$comment`,r=e.scopeValue("root",{ref:t.root});e.code(l._`${p.default.self}.opts.$comment(${i}, ${n}, ${r}.schema)`)}}function v(e,t,n,s){const{gen:a,schema:o,data:c,allErrors:u,opts:m,self:h}=e,{RULES:f}=h;function g(d){(0,r.shouldUseGroup)(o,d)&&(d.type?(a.if((0,i.checkDataType)(d.type,c,m.strictNumbers)),A(e,d),1===t.length&&t[0]===d.type&&n&&(a.else(),(0,i.reportTypeError)(e)),a.endIf()):A(e,d),u||a.if(l._`${p.default.errors} === ${s||0}`))}!o.$ref||!m.ignoreKeywordsWithRef&&(0,d.schemaHasRulesButRef)(o,f)?(m.jtd||function(e,t){if(e.schemaEnv.meta||!e.opts.strictTypes)return;(function(e,t){if(!t.length)return;if(!e.dataTypes.length)return void(e.dataTypes=t);t.forEach(t=>{I(e.dataTypes,t)||P(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)}),function(e,t){const n=[];for(const s of e.dataTypes)I(t,s)?n.push(s):t.includes("integer")&&"number"===s&&n.push("integer");e.dataTypes=n}(e,t)})(e,t),e.opts.allowUnionTypes||function(e,t){t.length>1&&(2!==t.length||!t.includes("null"))&&P(e,"use allowUnionTypes to allow union type keyword")}(e,t);!function(e,t){const n=e.self.RULES.all;for(const s in n){const i=n[s];if("object"==typeof i&&(0,r.shouldUseRule)(e.schema,i)){const{type:n}=i.definition;n.length&&!n.some(e=>S(t,e))&&P(e,`missing type "${n.join(",")}" for keyword "${s}"`)}}}(e,e.dataTypes)}(e,t),a.block(()=>{for(const e of f.rules)g(e);g(f.post)})):a.block(()=>D(e,"$ref",f.all.$ref.definition))}function A(e,t){const{gen:n,schema:s,opts:{useDefaults:i}}=e;i&&(0,a.assignDefaults)(e,t.type),n.block(()=>{for(const n of t.rules)(0,r.shouldUseRule)(s,n)&&D(e,n.keyword,n.definition,t.type)})}function S(e,t){return e.includes(t)||"number"===t&&e.includes("integer")}function I(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function P(e,t){t+=` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`,(0,d.checkStrictMode)(e,t,e.opts.strictTypes)}t.validateFunctionCode=function(e){E(e)&&(b(e),y(e))?function(e){const{schema:t,opts:n,gen:s}=e;h(e,()=>{n.$comment&&t.$comment&&T(e),function(e){const{schema:t,opts:n}=e;void 0!==t.default&&n.useDefaults&&n.strictSchema&&(0,d.checkStrictMode)(e,"default is ignored in the schema root")}(e),s.let(p.default.vErrors,null),s.let(p.default.errors,0),n.unevaluated&&function(e){const{gen:t,validateName:n}=e;e.evaluated=t.const("evaluated",l._`${n}.evaluated`),t.if(l._`${e.evaluated}.dynamicProps`,()=>t.assign(l._`${e.evaluated}.props`,l._`undefined`)),t.if(l._`${e.evaluated}.dynamicItems`,()=>t.assign(l._`${e.evaluated}.items`,l._`undefined`))}(e),_(e),function(e){const{gen:t,schemaEnv:n,validateName:s,ValidationError:r,opts:i}=e;n.$async?t.if(l._`${p.default.errors} === 0`,()=>t.return(p.default.data),()=>t.throw(l._`new ${r}(${p.default.vErrors})`)):(t.assign(l._`${s}.errors`,p.default.vErrors),i.unevaluated&&function({gen:e,evaluated:t,props:n,items:s}){n instanceof l.Name&&e.assign(l._`${t}.props`,n);s instanceof l.Name&&e.assign(l._`${t}.items`,s)}(e),t.return(l._`${p.default.errors} === 0`))}(e)})}(e):h(e,()=>(0,n.topBoolOrEmptySchema)(e))};class O{constructor(e,t,n){if((0,o.validateKeywordUsage)(e,t,n),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=n,this.data=e.data,this.schema=e.schema[n],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,d.schemaRefOrVal)(e,this.schema,n,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",N(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,o.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:!1!==t.errors)&&(this.errsCount=e.gen.const("_errs",p.default.errors))}result(e,t,n){this.failResult((0,l.not)(e),t,n)}failResult(e,t,n){this.gen.if(e),n?n():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,l.not)(e),void 0,t)}fail(e){if(void 0===e)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail(l._`${t} !== undefined && (${(0,l.or)(this.invalid$data(),e)})`)}error(e,t,n){if(t)return this.setParams(t),this._error(e,n),void this.setParams({});this._error(e,n)}_error(e,t){(e?m.reportExtraError:m.reportError)(this,this.def.error,t)}$dataError(){(0,m.reportError)(this,this.def.$dataError||m.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,m.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,n=l.nil){this.gen.block(()=>{this.check$data(e,n),t()})}check$data(e=l.nil,t=l.nil){if(!this.$data)return;const{gen:n,schemaCode:s,schemaType:r,def:i}=this;n.if((0,l.or)(l._`${s} === undefined`,t)),e!==l.nil&&n.assign(e,!0),(r.length||i.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),e!==l.nil&&n.assign(e,!1)),n.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:n,def:s,it:r}=this;return(0,l.or)(function(){if(n.length){if(!(t instanceof l.Name))throw new Error("ajv implementation error");const e=Array.isArray(n)?n:[n];return l._`${(0,i.checkDataTypes)(e,t,r.opts.strictNumbers,i.DataType.Wrong)}`}return l.nil}(),function(){if(s.validateSchema){const n=e.scopeValue("validate$data",{ref:s.validateSchema});return l._`!${n}(${t})`}return l.nil}())}subschema(e,t){const n=(0,c.getSubschema)(this.it,e);(0,c.extendSubschemaData)(n,this.it,e),(0,c.extendSubschemaMode)(n,e);const s={...this.it,...n,items:void 0,props:void 0};return g(s,t),s}mergeEvaluated(e,t){const{it:n,gen:s}=this;n.opts.unevaluated&&(!0!==n.props&&void 0!==e.props&&(n.props=d.mergeEvaluated.props(s,e.props,n.props,t)),!0!==n.items&&void 0!==e.items&&(n.items=d.mergeEvaluated.items(s,e.items,n.items,t)))}mergeValidEvaluated(e,t){const{it:n,gen:s}=this;if(n.opts.unevaluated&&(!0!==n.props||!0!==n.items))return s.if(t,()=>this.mergeEvaluated(e,l.Name)),!0}}function D(e,t,n,s){const r=new O(e,n,t);"code"in n?n.code(r,s):r.$data&&n.validate?(0,o.funcKeywordCode)(r,n):"macro"in n?(0,o.macroKeywordCode)(r,n):(n.compile||n.validate)&&(0,o.funcKeywordCode)(r,n)}t.KeywordCxt=O;const w=/^\/(?:[^~]|~0|~1)*$/,x=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function N(e,{dataLevel:t,dataNames:n,dataPathArr:s}){let r,i;if(""===e)return p.default.rootData;if("/"===e[0]){if(!w.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);r=e,i=p.default.rootData}else{const a=x.exec(e);if(!a)throw new Error(`Invalid JSON-pointer: ${e}`);const o=+a[1];if(r=a[2],"#"===r){if(o>=t)throw new Error(c("property/index",o));return s[t-o]}if(o>t)throw new Error(c("data",o));if(i=n[t-o],!r)return i}let a=i;const o=r.split("/");for(const e of o)e&&(i=l._`${i}${(0,l.getProperty)((0,d.unescapeJsonPointer)(e))}`,a=l._`${a} && ${i}`);return a;function c(e,n){return`Cannot access ${e} ${n} levels up, current level is ${t}`}}t.getData=N}),ce=__webpack_require__.cw(function(e,t){t.validateKeywordUsage=t.validSchemaType=t.funcKeywordCode=t.macroKeywordCode=void 0;const n=W(),s=Z(),r=ke(),i=K();function a(e){const{gen:t,data:s,it:r}=e;t.if(r.parentData,()=>t.assign(s,n._`${r.parentData}[${r.parentDataProperty}]`))}function o(e,t,s){if(void 0===s)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword","function"==typeof s?{ref:s}:{ref:s,code:(0,n.stringify)(s)})}t.macroKeywordCode=function(e,t){const{gen:s,keyword:r,schema:i,parentSchema:a,it:c}=e,l=t.macro.call(c.self,i,a,c),p=o(s,r,l);!1!==c.opts.validateSchema&&c.self.validateSchema(l,!0);const u=s.name("valid");e.subschema({schema:l,schemaPath:n.nil,errSchemaPath:`${c.errSchemaPath}/${r}`,topSchemaRef:p,compositeRule:!0},u),e.pass(u,()=>e.error(!0))},t.funcKeywordCode=function(e,t){var c;const{gen:l,keyword:p,schema:u,parentSchema:d,$data:m,it:h}=e;!function({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}(h,t);const f=!m&&t.compile?t.compile.call(h.self,u,d,h):t.validate,g=o(l,p,f),y=l.let("valid");function E(i=(t.async?n._`await `:n.nil)){const a=h.opts.passContext?s.default.this:s.default.self,o=!("compile"in t&&!m||!1===t.schema);l.assign(y,n._`${i}${(0,r.callValidateCode)(e,g,a,o)}`,t.modifying)}function b(e){var s;l.if((0,n.not)(null!==(s=t.valid)&&void 0!==s?s:y),e)}e.block$data(y,function(){if(!1===t.errors)E(),t.modifying&&a(e),b(()=>e.error());else{const r=t.async?function(){const e=l.let("ruleErrs",null);return l.try(()=>E(n._`await `),t=>l.assign(y,!1).if(n._`${t} instanceof ${h.ValidationError}`,()=>l.assign(e,n._`${t}.errors`),()=>l.throw(t))),e}():function(){const e=n._`${g}.errors`;return l.assign(e,null),E(n.nil),e}();t.modifying&&a(e),b(()=>function(e,t){const{gen:r}=e;r.if(n._`Array.isArray(${t})`,()=>{r.assign(s.default.vErrors,n._`${s.default.vErrors} === null ? ${t} : ${s.default.vErrors}.concat(${t})`).assign(s.default.errors,n._`${s.default.vErrors}.length`),(0,i.extendErrors)(e)},()=>e.error())}(e,r))}}),e.ok(null!==(c=t.valid)&&void 0!==c?c:y)},t.validSchemaType=function(e,t,n=!1){return!t.length||t.some(t=>"array"===t?Array.isArray(e):"object"===t?e&&"object"==typeof e&&!Array.isArray(e):typeof e==t||n&&void 0===e)},t.validateKeywordUsage=function({schema:e,opts:t,self:n,errSchemaPath:s},r,i){if(Array.isArray(r.keyword)?!r.keyword.includes(i):r.keyword!==i)throw new Error("ajv implementation error");const a=r.dependencies;if(null==a?void 0:a.some(t=>!Object.prototype.hasOwnProperty.call(e,t)))throw new Error(`parent schema must have dependencies of ${i}: ${a.join(",")}`);if(r.validateSchema){if(!r.validateSchema(e[i])){const e=`keyword "${i}" value is invalid at path "${s}": `+n.errorsText(r.validateSchema.errors);if("log"!==t.validateSchema)throw new Error(e);n.logger.error(e)}}}}),le=__webpack_require__.cw(function(e,t){t.extendSubschemaMode=t.extendSubschemaData=t.getSubschema=void 0;const n=W(),s=ne();t.getSubschema=function(e,{keyword:t,schemaProp:r,schema:i,schemaPath:a,errSchemaPath:o,topSchemaRef:c}){if(void 0!==t&&void 0!==i)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==t){const i=e.schema[t];return void 0===r?{schema:i,schemaPath:n._`${e.schemaPath}${(0,n.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:i[r],schemaPath:n._`${e.schemaPath}${(0,n.getProperty)(t)}${(0,n.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,s.escapeFragment)(r)}`}}if(void 0!==i){if(void 0===a||void 0===o||void 0===c)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:i,schemaPath:a,topSchemaRef:c,errSchemaPath:o}}throw new Error('either "keyword" or "schema" must be passed')},t.extendSubschemaData=function(e,t,{dataProp:r,dataPropType:i,data:a,dataTypes:o,propertyName:c}){if(void 0!==a&&void 0!==r)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:l}=t;if(void 0!==r){const{errorPath:a,dataPathArr:o,opts:c}=t;p(l.let("data",n._`${t.data}${(0,n.getProperty)(r)}`,!0)),e.errorPath=n.str`${a}${(0,s.getErrorPath)(r,i,c.jsPropertySyntax)}`,e.parentDataProperty=n._`${r}`,e.dataPathArr=[...o,e.parentDataProperty]}if(void 0!==a){p(a instanceof n.Name?a:l.let("data",a,!0)),void 0!==c&&(e.propertyName=c)}function p(n){e.data=n,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,n]}o&&(e.dataTypes=o)},t.extendSubschemaMode=function(e,{jtdDiscriminator:t,jtdMetadata:n,compositeRule:s,createErrors:r,allErrors:i}){void 0!==s&&(e.compositeRule=s),void 0!==r&&(e.createErrors=r),void 0!==i&&(e.allErrors=i),e.jtdDiscriminator=t,e.jtdMetadata=n}}),pe=__webpack_require__.cw(function(e,t){var n=oe();var s=W();const r=fe(),i=X(),a=te(),o=z(),c=W(),l=ee(),p=ie(),u=ne(),d=St(),m=he(),h=(e,t)=>new RegExp(e,t);h.code="new RegExp";const f=["removeAdditional","useDefaults","coerceTypes"],g=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),y={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},E={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function b(e){var t,n,s,r,i,a,o,c,l,p,u,d,f,g,y,E,b,_,T,v,A,S,I,P,O;const D=e.strict,w=null===(t=e.code)||void 0===t?void 0:t.optimize,x=!0===w||void 0===w?1:w||0,N=null!==(s=null===(n=e.code)||void 0===n?void 0:n.regExp)&&void 0!==s?s:h,F=null!==(r=e.uriResolver)&&void 0!==r?r:m.default;return{strictSchema:null===(a=null!==(i=e.strictSchema)&&void 0!==i?i:D)||void 0===a||a,strictNumbers:null===(c=null!==(o=e.strictNumbers)&&void 0!==o?o:D)||void 0===c||c,strictTypes:null!==(p=null!==(l=e.strictTypes)&&void 0!==l?l:D)&&void 0!==p?p:"log",strictTuples:null!==(d=null!==(u=e.strictTuples)&&void 0!==u?u:D)&&void 0!==d?d:"log",strictRequired:null!==(g=null!==(f=e.strictRequired)&&void 0!==f?f:D)&&void 0!==g&&g,code:e.code?{...e.code,optimize:x,regExp:N}:{optimize:x,regExp:N},loopRequired:null!==(y=e.loopRequired)&&void 0!==y?y:200,loopEnum:null!==(E=e.loopEnum)&&void 0!==E?E:200,meta:null===(b=e.meta)||void 0===b||b,messages:null===(_=e.messages)||void 0===_||_,inlineRefs:null===(T=e.inlineRefs)||void 0===T||T,schemaId:null!==(v=e.schemaId)&&void 0!==v?v:"$id",addUsedSchema:null===(A=e.addUsedSchema)||void 0===A||A,validateSchema:null===(S=e.validateSchema)||void 0===S||S,validateFormats:null===(I=e.validateFormats)||void 0===I||I,unicodeRegExp:null===(P=e.unicodeRegExp)||void 0===P||P,int32range:null===(O=e.int32range)||void 0===O||O,uriResolver:F}}class _{constructor(e={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...b(e)};const{es5:t,lines:n}=this.opts.code;this.scope=new c.ValueScope({scope:{},prefixes:g,es5:t,lines:n}),this.logger=function(e){if(!1===e)return O;if(void 0===e)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}(e.logger);const s=e.validateFormats;e.validateFormats=!1,this.RULES=(0,a.getRules)(),T.call(this,y,e,"NOT SUPPORTED"),T.call(this,E,e,"DEPRECATED","warn"),this._metaOpts=P.call(this),e.formats&&S.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&I.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),A.call(this),e.validateFormats=s}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:t,schemaId:n}=this.opts;let s=d;"id"===n&&(s={...d},s.id=s.$id,delete s.$id),t&&e&&this.addMetaSchema(s,s[n],!1)}defaultMeta(){const{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta="object"==typeof e?e[t]||e:void 0}validate(e,t){let n;if("string"==typeof e){if(n=this.getSchema(e),!n)throw new Error(`no schema with key or ref "${e}"`)}else n=this.compile(e);const s=n(t);return"$async"in n||(this.errors=n.errors),s}compile(e,t){const n=this._addSchema(e,t);return n.validate||this._compileSchemaEnv(n)}compileAsync(e,t){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:n}=this.opts;return s.call(this,e,t);async function s(e,t){await r.call(this,e.$schema);const n=this._addSchema(e,t);return n.validate||a.call(this,n)}async function r(e){e&&!this.getSchema(e)&&await s.call(this,{$ref:e},!0)}async function a(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof i.default))throw t;return o.call(this,t),await c.call(this,t.missingSchema),a.call(this,e)}}function o({missingSchema:e,missingRef:t}){if(this.refs[e])throw new Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function c(e){const n=await l.call(this,e);this.refs[e]||await r.call(this,n.$schema),this.refs[e]||this.addSchema(n,e,t)}async function l(e){const t=this._loading[e];if(t)return t;try{return await(this._loading[e]=n(e))}finally{delete this._loading[e]}}}addSchema(e,t,n,s=this.opts.validateSchema){if(Array.isArray(e)){for(const t of e)this.addSchema(t,void 0,n,s);return this}let r;if("object"==typeof e){const{schemaId:t}=this.opts;if(r=e[t],void 0!==r&&"string"!=typeof r)throw new Error(`schema ${t} must be string`)}return t=(0,l.normalizeId)(t||r),this._checkUnique(t),this.schemas[t]=this._addSchema(e,n,t,s,!0),this}addMetaSchema(e,t,n=this.opts.validateSchema){return this.addSchema(e,t,!0,n),this}validateSchema(e,t){if("boolean"==typeof e)return!0;let n;if(n=e.$schema,void 0!==n&&"string"!=typeof n)throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const s=this.validate(n,e);if(!s&&t){const e="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(e);this.logger.error(e)}return s}getSchema(e){let t;for(;"string"==typeof(t=v.call(this,e));)e=t;if(void 0===t){const{schemaId:n}=this.opts,s=new o.SchemaEnv({schema:{},schemaId:n});if(t=o.resolveSchema.call(this,s,e),!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const t=v.call(this,e);return"object"==typeof t&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{const t=e;this._cache.delete(t);let n=e[this.opts.schemaId];return n&&(n=(0,l.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(const t of e)this.addKeyword(t);return this}addKeyword(e,t){let n;if("string"==typeof e)n=e,"object"==typeof t&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=n);else{if("object"!=typeof e||void 0!==t)throw new Error("invalid addKeywords parameters");if(n=(t=e).keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(w.call(this,n,t),!t)return(0,u.eachItem)(n,e=>x.call(this,e)),this;F.call(this,t);const s={...t,type:(0,p.getJSONTypes)(t.type),schemaType:(0,p.getJSONTypes)(t.schemaType)};return(0,u.eachItem)(n,0===s.type.length?e=>x.call(this,e,s):e=>s.type.forEach(t=>x.call(this,e,s,t))),this}getKeyword(e){const t=this.RULES.all[e];return"object"==typeof t?t.definition:!!t}removeKeyword(e){const{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(const n of t.rules){const t=n.rules.findIndex(t=>t.keyword===e);t>=0&&n.rules.splice(t,1)}return this}addFormat(e,t){return"string"==typeof t&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=", ",dataVar:n="data"}={}){return e&&0!==e.length?e.map(e=>`${n}${e.instancePath} ${e.message}`).reduce((e,n)=>e+t+n):"No errors"}$dataMetaSchema(e,t){const n=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const s of t){const t=s.split("/").slice(1);let r=e;for(const e of t)r=r[e];for(const e in n){const t=n[e];if("object"!=typeof t)continue;const{$data:s}=t.definition,i=r[e];s&&i&&(r[e]=k(i))}}return e}_removeAllSchemas(e,t){for(const n in e){const s=e[n];t&&!t.test(n)||("string"==typeof s?delete e[n]:s&&!s.meta&&(this._cache.delete(s.schema),delete e[n]))}}_addSchema(e,t,n,s=this.opts.validateSchema,r=this.opts.addUsedSchema){let i;const{schemaId:a}=this.opts;if("object"==typeof e)i=e[a];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof e)throw new Error("schema must be object or boolean")}let c=this._cache.get(e);if(void 0!==c)return c;n=(0,l.normalizeId)(i||n);const p=l.getSchemaRefs.call(this,e,n);return c=new o.SchemaEnv({schema:e,schemaId:a,meta:t,baseId:n,localRefs:p}),this._cache.set(c.schema,c),r&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=c),s&&this.validateSchema(e,!0),c}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):o.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const t=this.opts;this.opts=this._metaOpts;try{o.compileSchema.call(this,e)}finally{this.opts=t}}}function T(e,t,n,s="error"){for(const r in e){const i=r;i in t&&this.logger[s](`${n}: option ${r}. ${e[i]}`)}}function v(e){return e=(0,l.normalizeId)(e),this.schemas[e]||this.refs[e]}function A(){const e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(const t in e)this.addSchema(e[t],t)}function S(){for(const e in this.opts.formats){const t=this.opts.formats[e];t&&this.addFormat(e,t)}}function I(e){if(Array.isArray(e))this.addVocabulary(e);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const t in e){const n=e[t];n.keyword||(n.keyword=t),this.addKeyword(n)}}}function P(){const e={...this.opts};for(const t of f)delete e[t];return e}_.ValidationError=r.default,_.MissingRefError=i.default,t.default=_;const O={log(){},warn(){},error(){}};const D=/^[a-z_$][a-z0-9_$:-]*$/i;function w(e,t){const{RULES:n}=this;if((0,u.eachItem)(e,e=>{if(n.keywords[e])throw new Error(`Keyword ${e} is already defined`);if(!D.test(e))throw new Error(`Keyword ${e} has invalid name`)}),t&&t.$data&&!("code"in t)&&!("validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function x(e,t,n){var s;const r=null==t?void 0:t.post;if(n&&r)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:i}=this;let a=r?i.post:i.rules.find(({type:e})=>e===n);if(a||(a={type:n,rules:[]},i.rules.push(a)),i.keywords[e]=!0,!t)return;const o={keyword:e,definition:{...t,type:(0,p.getJSONTypes)(t.type),schemaType:(0,p.getJSONTypes)(t.schemaType)}};t.before?N.call(this,a,o,t.before):a.rules.push(o),i.all[e]=o,null===(s=t.implements)||void 0===s||s.forEach(e=>this.addKeyword(e))}function N(e,t,n){const s=e.rules.findIndex(e=>e.keyword===n);s>=0?e.rules.splice(s,0,t):(e.rules.push(t),this.logger.warn(`rule ${n} is not defined`))}function F(e){let{metaSchema:t}=e;void 0!==t&&(e.$data&&this.opts.$data&&(t=k(t)),e.validateSchema=this.compile(t,!0))}const R={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function k(e){return{anyOf:[e,R]}}}),ue=__webpack_require__.cw(function(e,t){const n=Ft(),s=It(),r=xt(),i=Pt(),a=Ot(),o=Dt(),c=wt(),l=Nt(),p=["/properties"];t.default=function(e){return[n,s,r,i,a,t(this,o),c,t(this,l)].forEach(e=>this.addMetaSchema(e,void 0,!1)),this;function t(t,n){return e?t.$dataMetaSchema(n,p):n}}}),de=__webpack_require__.cw(function(e,t){const n=mt();n.code='require("ajv/dist/runtime/equal").default',t.default=n}),me=__webpack_require__.cw(function(e,t){function n(e){const t=e.length;let n,s=0,r=0;for(;r<t;)s++,n=e.charCodeAt(r++),n>=55296&&n<=56319&&r<t&&(n=e.charCodeAt(r),56320==(64512&n)&&r++);return s}t.default=n,n.code='require("ajv/dist/runtime/ucs2length").default'}),he=__webpack_require__.cw(function(e,t){const n=_t();n.code='require("ajv/dist/runtime/uri").default',t.default=n}),fe=__webpack_require__.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class n extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}t.default=n}),ge=__webpack_require__.cw(function(e,t){t.validateAdditionalItems=void 0;const n=W(),s=ne(),r={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:e}})=>n.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>n._`{limit: ${e}}`},code(e){const{parentSchema:t,it:n}=e,{items:r}=t;Array.isArray(r)?i(e,r):(0,s.checkStrictMode)(n,'"additionalItems" is ignored when "items" is not an array of schemas')}};function i(e,t){const{gen:r,schema:i,data:a,keyword:o,it:c}=e;c.items=!0;const l=r.const("len",n._`${a}.length`);if(!1===i)e.setParams({len:t.length}),e.pass(n._`${l} <= ${t.length}`);else if("object"==typeof i&&!(0,s.alwaysValidSchema)(c,i)){const i=r.var("valid",n._`${l} <= ${t.length}`);r.if((0,n.not)(i),()=>function(i){r.forRange("i",t.length,l,t=>{e.subschema({keyword:o,dataProp:t,dataPropType:s.Type.Num},i),c.allErrors||r.if((0,n.not)(i),()=>r.break())})}(i)),e.ok(i)}}t.validateAdditionalItems=i,t.default=r}),ye=__webpack_require__.cw(function(e,t){const n=ke(),s=W(),r=Z(),i=ne(),a={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>s._`{additionalProperty: ${e.additionalProperty}}`},code(e){const{gen:t,schema:a,parentSchema:o,data:c,errsCount:l,it:p}=e;if(!l)throw new Error("ajv implementation error");const{allErrors:u,opts:d}=p;if(p.props=!0,"all"!==d.removeAdditional&&(0,i.alwaysValidSchema)(p,a))return;const m=(0,n.allSchemaProperties)(o.properties),h=(0,n.allSchemaProperties)(o.patternProperties);function f(e){t.code(s._`delete ${c}[${e}]`)}function g(n){if("all"===d.removeAdditional||d.removeAdditional&&!1===a)f(n);else{if(!1===a)return e.setParams({additionalProperty:n}),e.error(),void(u||t.break());if("object"==typeof a&&!(0,i.alwaysValidSchema)(p,a)){const r=t.name("valid");"failing"===d.removeAdditional?(y(n,r,!1),t.if((0,s.not)(r),()=>{e.reset(),f(n)})):(y(n,r),u||t.if((0,s.not)(r),()=>t.break()))}}}function y(t,n,s){const r={keyword:"additionalProperties",dataProp:t,dataPropType:i.Type.Str};!1===s&&Object.assign(r,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(r,n)}t.forIn("key",c,r=>{m.length||h.length?t.if(function(r){let a;if(m.length>8){const e=(0,i.schemaRefOrVal)(p,o.properties,"properties");a=(0,n.isOwnProperty)(t,e,r)}else a=m.length?(0,s.or)(...m.map(e=>s._`${r} === ${e}`)):s.nil;return h.length&&(a=(0,s.or)(a,...h.map(t=>s._`${(0,n.usePattern)(e,t)}.test(${r})`))),(0,s.not)(a)}(r),()=>g(r)):g(r)}),e.ok(s._`${l} === ${r.default.errors}`)}};t.default=a}),Ee=__webpack_require__.cw(function(e,t){const n=ne(),s={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:s,it:r}=e;if(!Array.isArray(s))throw new Error("ajv implementation error");const i=t.name("valid");s.forEach((t,s)=>{if((0,n.alwaysValidSchema)(r,t))return;const a=e.subschema({keyword:"allOf",schemaProp:s},i);e.ok(i),e.mergeEvaluated(a)})}};t.default=s}),be=__webpack_require__.cw(function(e,t){const n={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:ke().validateUnion,error:{message:"must match a schema in anyOf"}};t.default=n}),_e=__webpack_require__.cw(function(e,t){const n=W(),s=ne(),r={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:e,max:t}})=>void 0===t?n.str`must contain at least ${e} valid item(s)`:n.str`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>void 0===t?n._`{minContains: ${e}}`:n._`{minContains: ${e}, maxContains: ${t}}`},code(e){const{gen:t,schema:r,parentSchema:i,data:a,it:o}=e;let c,l;const{minContains:p,maxContains:u}=i;o.opts.next?(c=void 0===p?1:p,l=u):c=1;const d=t.const("len",n._`${a}.length`);if(e.setParams({min:c,max:l}),void 0===l&&0===c)return void(0,s.checkStrictMode)(o,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==l&&c>l)return(0,s.checkStrictMode)(o,'"minContains" > "maxContains" is always invalid'),void e.fail();if((0,s.alwaysValidSchema)(o,r)){let t=n._`${d} >= ${c}`;return void 0!==l&&(t=n._`${t} && ${d} <= ${l}`),void e.pass(t)}o.items=!0;const m=t.name("valid");function h(){const e=t.name("_valid"),s=t.let("count",0);f(e,()=>t.if(e,()=>function(e){t.code(n._`${e}++`),void 0===l?t.if(n._`${e} >= ${c}`,()=>t.assign(m,!0).break()):(t.if(n._`${e} > ${l}`,()=>t.assign(m,!1).break()),1===c?t.assign(m,!0):t.if(n._`${e} >= ${c}`,()=>t.assign(m,!0)))}(s)))}function f(n,r){t.forRange("i",0,d,t=>{e.subschema({keyword:"contains",dataProp:t,dataPropType:s.Type.Num,compositeRule:!0},n),r()})}void 0===l&&1===c?f(m,()=>t.if(m,()=>t.break())):0===c?(t.let(m,!0),void 0!==l&&t.if(n._`${a}.length > 0`,h)):(t.let(m,!1),h()),e.result(m,()=>e.reset())}};t.default=r}),Te=__webpack_require__.cw(function(e,t){t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;const n=W(),s=ne(),r=ke();t.error={message:({params:{property:e,depsCount:t,deps:s}})=>{const r=1===t?"property":"properties";return n.str`must have ${r} ${s} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:s,missingProperty:r}})=>n._`{property: ${e},