HEX
Server: Apache/2.4.63 (Unix)
System: Linux Synopilou92 4.4.302+ #72806 SMP Mon Jul 21 23:16:00 CST 2025 x86_64
User: pilou92 (1026)
PHP: 8.0.30
Disabled: NONE
Upload Files
File: /volume1/@appstore/ContainerManager/ui/dist/yaml.worker.bundle.js
/*! For license information please see yaml.worker.bundle.js.LICENSE.txt */
!function(){var e,t,n={9788:function(e,t,n){"use strict";n.d(t,{j:function(){return ar}});const r=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout((()=>{if(e.stack)throw new Error(e.message+"\n\n"+e.stack);throw e}),0)}}emit(e){this.listeners.forEach((t=>{t(e)}))}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function o(e){var t;(t=e)instanceof a||t instanceof Error&&t.name===s&&t.message===s||r.onUnexpectedError(e)}function i(e){if(e instanceof Error){let{name:t,message:n}=e;return{$isError:!0,name:t,message:n,stack:e.stacktrace||e.stack}}return e}const s="Canceled";class a extends Error{constructor(){super(s),this.name=this.message}}function u(e){const t=this;let n,r=!1;return function(){return r||(r=!0,n=e.apply(t,arguments)),n}}var c;Error,function(e){e.is=function(e){return e&&"object"==typeof e&&"function"==typeof e[Symbol.iterator]};const t=Object.freeze([]);e.empty=function(){return t},e.single=function*(e){yield e},e.from=function(e){return e||t},e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done},e.first=function(e){return e[Symbol.iterator]().next().value},e.some=function(e,t){for(const n of e)if(t(n))return!0;return!1},e.find=function(e,t){for(const n of e)if(t(n))return n},e.filter=function*(e,t){for(const n of e)t(n)&&(yield n)},e.map=function*(e,t){let n=0;for(const r of e)yield t(r,n++)},e.concat=function*(...e){for(const t of e)for(const e of t)yield e},e.concatNested=function*(e){for(const t of e)for(const e of t)yield e},e.reduce=function(e,t,n){let r=n;for(const n of e)r=t(r,n);return r},e.slice=function*(e,t,n=e.length){for(t<0&&(t+=e.length),n<0?n+=e.length:n>e.length&&(n=e.length);t<n;t++)yield e[t]},e.consume=function(t,n=Number.POSITIVE_INFINITY){const r=[];if(0===n)return[r,t];const o=t[Symbol.iterator]();for(let t=0;t<n;t++){const t=o.next();if(t.done)return[r,e.empty()];r.push(t.value)}return[r,{[Symbol.iterator]:()=>o}]},e.equals=function(e,t,n=((e,t)=>e===t)){const r=e[Symbol.iterator](),o=t[Symbol.iterator]();for(;;){const e=r.next(),t=o.next();if(e.done!==t.done)return!1;if(e.done)return!0;if(!n(e.value,t.value))return!1}}}(c||(c={}));var l;class f extends Error{constructor(e){super(`Encountered errors while disposing of store. Errors: [${e.join(", ")}]`),this.errors=e}}function p(e){if(c.is(e)){let t=[];for(const n of e)if(n)try{n.dispose()}catch(e){t.push(e)}if(1===t.length)throw t[0];if(t.length>1)throw new f(t);return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function h(e){const t={dispose:u((()=>{e()}))};return t}class d{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){try{p(this._toDispose.values())}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?d.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}}d.DISABLE_DISPOSED_WARNING=!1;class m{constructor(){this._store=new d,this._store}dispose(){this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}m.None=Object.freeze({dispose(){}});class g{constructor(){this.dispose=()=>{},this.unset=()=>{},this.isset=()=>!1}set(e){let t=e;return this.unset=()=>t=void 0,this.isset=()=>void 0!==t,this.dispose=()=>{t&&(t(),t=void 0)},this}}class y{constructor(e){this.element=e,this.next=y.Undefined,this.prev=y.Undefined}}y.Undefined=new y(void 0);class b{constructor(){this._first=y.Undefined,this._last=y.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===y.Undefined}clear(){let e=this._first;for(;e!==y.Undefined;){const t=e.next;e.prev=y.Undefined,e.next=y.Undefined,e=t}this._first=y.Undefined,this._last=y.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const n=new y(e);if(this._first===y.Undefined)this._first=n,this._last=n;else if(t){const e=this._last;this._last=n,n.prev=e,e.next=n}else{const e=this._first;this._first=n,n.next=e,e.prev=n}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(n))}}shift(){if(this._first!==y.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==y.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==y.Undefined&&e.next!==y.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===y.Undefined&&e.next===y.Undefined?(this._first=y.Undefined,this._last=y.Undefined):e.next===y.Undefined?(this._last=this._last.prev,this._last.next=y.Undefined):e.prev===y.Undefined&&(this._first=this._first.next,this._first.prev=y.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==y.Undefined;)yield e.element,e=e.next}}const v="en";let D,C,E,w=!1,A=!1,S=!1,x=!1,_=!1,F=!1,T=!1,k=!1,N=!1,O=null;const L="object"==typeof self?self:"object"==typeof n.g?n.g:{};let M;void 0!==L.vscode&&void 0!==L.vscode.process?M=L.vscode.process:"undefined"!=typeof process&&(M=process);const P="string"==typeof(null===(l=null==M?void 0:M.versions)||void 0===l?void 0:l.electron),I=P&&"renderer"===(null==M?void 0:M.type);if("object"!=typeof navigator||I)if("object"==typeof M){w="win32"===M.platform,A="darwin"===M.platform,S="linux"===M.platform,x=S&&!!M.env.SNAP&&!!M.env.SNAP_REVISION,T=P,N=!!M.env.CI||!!M.env.BUILD_ARTIFACTSTAGINGDIRECTORY,D=v,O=v;const e=M.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e),n=t.availableLanguages["*"];D=t.locale,O=n||v,C=t._translationsConfigFile}catch(e){}_=!0}else console.error("Unable to resolve platform.");else E=navigator.userAgent,w=E.indexOf("Windows")>=0,A=E.indexOf("Macintosh")>=0,(E.indexOf("Macintosh")>=0||E.indexOf("iPad")>=0||E.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,S=E.indexOf("Linux")>=0,F=!0,D=navigator.language,O=D;let B=0;A?B=1:w?B=3:S&&(B=2);const R=w,j=A,V=(F&&L.importScripts,E);(()=>{if("function"==typeof L.postMessage&&!L.importScripts){let e=[];L.addEventListener("message",(t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let n=0,r=e.length;n<r;n++){const r=e[n];if(r.id===t.data.vscodeScheduleAsyncWork)return e.splice(n,1),void r.callback()}}));let t=0}})();const $=!!(V&&V.indexOf("Chrome")>=0),U=(V&&V.indexOf("Firefox"),!$&&V&&V.indexOf("Safari"),V&&V.indexOf("Edg/"),V&&V.indexOf("Android"),L.performance&&"function"==typeof L.performance.now);class W{constructor(e){this._highResolution=U&&e,this._startTime=this._now(),this._stopTime=-1}static create(e=!0){return new W(e)}stop(){this._stopTime=this._now()}elapsed(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?L.performance.now():Date.now()}}var K,q;!function(e){function t(e){return(t,n=null,r)=>{let o,i=!1;return o=e((e=>{if(!i)return o?o.dispose():i=!0,t.call(n,e)}),null,r),i&&o.dispose(),o}}function n(e,t,n){return s(((n,r=null,o)=>e((e=>n.call(r,t(e))),null,o)),n)}function r(e,t,n){return s(((n,r=null,o)=>e((e=>{t(e),n.call(r,e)}),null,o)),n)}function o(e,t,n){return s(((n,r=null,o)=>e((e=>t(e)&&n.call(r,e)),null,o)),n)}function i(e,t,r,o){let i=r;return n(e,(e=>(i=t(i,e),i)),o)}function s(e,t){let n;const r=new J({onFirstListenerAdd(){n=e(r.fire,r)},onLastListenerRemove(){n.dispose()}});return t&&t.add(r),r.event}function a(e,t,n=100,r=!1,o,i){let s,a,u,c=0;const l=new J({leakWarningThreshold:o,onFirstListenerAdd(){s=e((e=>{c++,a=t(a,e),r&&!u&&(l.fire(a),a=void 0),clearTimeout(u),u=setTimeout((()=>{const e=a;a=void 0,u=void 0,(!r||c>1)&&l.fire(e),c=0}),n)}))},onLastListenerRemove(){s.dispose()}});return i&&i.add(l),l.event}function u(e,t=((e,t)=>e===t),n){let r,i=!0;return o(e,(e=>{const n=i||!t(e,r);return i=!1,r=e,n}),n)}e.None=()=>m.None,e.once=t,e.map=n,e.forEach=r,e.filter=o,e.signal=function(e){return e},e.any=function(...e){return(t,n=null,r)=>function(...e){return h((()=>p(e)))}(...e.map((e=>e((e=>t.call(n,e)),null,r))))},e.reduce=i,e.debounce=a,e.latch=u,e.split=function(t,n,r){return[e.filter(t,n,r),e.filter(t,(e=>!n(e)),r)]},e.buffer=function(e,t=!1,n=[]){let r=n.slice(),o=e((e=>{r?r.push(e):s.fire(e)}));const i=()=>{r&&r.forEach((e=>s.fire(e))),r=null},s=new J({onFirstListenerAdd(){o||(o=e((e=>s.fire(e))))},onFirstListenerDidAdd(){r&&(t?setTimeout(i):i())},onLastListenerRemove(){o&&o.dispose(),o=null}});return s.event};class c{constructor(e){this.event=e}map(e){return new c(n(this.event,e))}forEach(e){return new c(r(this.event,e))}filter(e){return new c(o(this.event,e))}reduce(e,t){return new c(i(this.event,e,t))}latch(){return new c(u(this.event))}debounce(e,t=100,n=!1,r){return new c(a(this.event,e,t,n,r))}on(e,t,n){return this.event(e,t,n)}once(e,n,r){return t(this.event)(e,n,r)}}e.chain=function(e){return new c(e)},e.fromNodeEventEmitter=function(e,t,n=(e=>e)){const r=(...e)=>o.fire(n(...e)),o=new J({onFirstListenerAdd:()=>e.on(t,r),onLastListenerRemove:()=>e.removeListener(t,r)});return o.event},e.fromDOMEventEmitter=function(e,t,n=(e=>e)){const r=(...e)=>o.fire(n(...e)),o=new J({onFirstListenerAdd:()=>e.addEventListener(t,r),onLastListenerRemove:()=>e.removeEventListener(t,r)});return o.event},e.toPromise=function(e){return new Promise((n=>t(e)(n)))},e.runAndSubscribe=function(e,t){return t(void 0),e((e=>t(e)))},e.runAndSubscribeWithStore=function(e,t){let n=null;function r(e){null==n||n.dispose(),n=new d,t(e,n)}r(void 0);const o=e((e=>r(e)));return h((()=>{o.dispose(),null==n||n.dispose()}))}}(K||(K={}));class H{constructor(e){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${e}_${H._idPool++}`}start(e){this._stopWatch=new W(!0),this._listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this._elapsedOverall+=e,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${e.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}H._idPool=0;class z{constructor(e){this.value=e}static create(){var e;return new z(null!==(e=(new Error).stack)&&void 0!==e?e:"")}print(){console.warn(this.value.split("\n").slice(2).join("\n"))}}class Y{constructor(e,t,n){this.callback=e,this.callbackThis=t,this.stack=n,this.subscription=new g}invoke(e){this.callback.call(this.callbackThis,e)}}class J{constructor(e){var t;this._disposed=!1,this._options=e,this._leakageMon=void 0,this._perfMon=(null===(t=this._options)||void 0===t?void 0:t._profName)?new H(this._options._profName):void 0}dispose(){var e,t,n,r;this._disposed||(this._disposed=!0,this._listeners&&this._listeners.clear(),null===(e=this._deliveryQueue)||void 0===e||e.clear(),null===(n=null===(t=this._options)||void 0===t?void 0:t.onLastListenerRemove)||void 0===n||n.call(t),null===(r=this._leakageMon)||void 0===r||r.dispose())}get event(){return this._event||(this._event=(e,t,n)=>{var r,o,i;this._listeners||(this._listeners=new b);const s=this._listeners.isEmpty();let a,u;s&&(null===(r=this._options)||void 0===r?void 0:r.onFirstListenerAdd)&&this._options.onFirstListenerAdd(this),this._leakageMon&&this._listeners.size>=30&&(u=z.create(),a=this._leakageMon.check(u,this._listeners.size+1));const c=new Y(e,t,u),l=this._listeners.push(c);s&&(null===(o=this._options)||void 0===o?void 0:o.onFirstListenerDidAdd)&&this._options.onFirstListenerDidAdd(this),(null===(i=this._options)||void 0===i?void 0:i.onListenerDidAdd)&&this._options.onListenerDidAdd(this,e,t);const f=c.subscription.set((()=>{a&&a(),!this._disposed&&(l(),this._options&&this._options.onLastListenerRemove)&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this))}));return n instanceof d?n.add(f):Array.isArray(n)&&n.push(f),f}),this._event}fire(e){var t,n;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new b);for(let t of this._listeners)this._deliveryQueue.push([t,e]);for(null===(t=this._perfMon)||void 0===t||t.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[e,t]=this._deliveryQueue.shift();try{e.invoke(t)}catch(e){o(e)}}null===(n=this._perfMon)||void 0===n||n.stop()}}}function G(e){const t=[];for(const n of function(e){let t=[],n=Object.getPrototypeOf(e);for(;Object.prototype!==n;)t=t.concat(Object.getOwnPropertyNames(n)),n=Object.getPrototypeOf(n);return t}(e))"function"==typeof e[n]&&t.push(n);return t}function X(e,t="Unreachable"){throw new Error(t)}class Q{constructor(e){this.executor=e,this._didRun=!1}getValue(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}function Z(e){return e>=65&&e<=90}function ee(e){return 55296<=e&&e<=56319}function te(e){return 56320<=e&&e<=57343}function ne(e,t){return t-56320+(e-55296<<10)+65536}function re(e,t,n){const r=e.charCodeAt(n);if(ee(r)&&n+1<t){const t=e.charCodeAt(n+1);if(te(t))return ne(r,t)}return r}const oe=/^[\t\n\r\x20-\x7E]*$/;String.fromCharCode(65279);class ie{constructor(){this._data=JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}static getInstance(){return ie._INSTANCE||(ie._INSTANCE=new ie),ie._INSTANCE}getGraphemeBreakType(e){if(e<32)return 10===e?3:13===e?2:4;if(e<127)return 0;const t=this._data,n=t.length/3;let r=1;for(;r<=n;)if(e<t[3*r])r*=2;else{if(!(e>t[3*r+1]))return t[3*r+2];r=2*r+1}return 0}}ie._INSTANCE=null;class se{constructor(e){this.confusableDictionary=e}static getInstance(e){return se.cache.get(Array.from(e))}static getLocales(){return se._locales.getValue()}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}q=se,se.ambiguousCharacterData=new Q((()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}'))),se.cache=new class{constructor(e){this.computeFn=e,this.lastCache=void 0,this.lastArgKey=void 0}get(e){const t=JSON.stringify(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this.computeFn(e)),this.lastCache}}((e=>{function t(e){const t=new Map;for(let n=0;n<e.length;n+=2)t.set(e[n],e[n+1]);return t}function n(e,t){if(!e)return t;const n=new Map;for(const[r,o]of e)t.has(r)&&n.set(r,o);return n}const r=q.ambiguousCharacterData.getValue();let o,i=e.filter((e=>!e.startsWith("_")&&e in r));0===i.length&&(i=["_default"]);for(const e of i)o=n(o,t(r[e]));const s=function(e,t){const n=new Map(e);for(const[e,r]of t)n.set(e,r);return n}(t(r._common),o);return new se(s)})),se._locales=new Q((()=>Object.keys(se.ambiguousCharacterData.getValue()).filter((e=>!e.startsWith("_")))));class ae{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(ae.getRawData())),this._data}static isInvisibleCharacter(e){return ae.getData().has(e)}static get codePoints(){return ae.getData()}}ae._data=void 0;let ue;class ce{constructor(e,t,n,r){this.vsWorker=e,this.req=t,this.method=n,this.args=r,this.type=0}}class le{constructor(e,t,n,r){this.vsWorker=e,this.seq=t,this.res=n,this.err=r,this.type=1}}class fe{constructor(e,t,n,r){this.vsWorker=e,this.req=t,this.eventName=n,this.arg=r,this.type=2}}class pe{constructor(e,t,n){this.vsWorker=e,this.req=t,this.event=n,this.type=3}}class he{constructor(e,t){this.vsWorker=e,this.req=t,this.type=4}}class de{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}sendMessage(e,t){const n=String(++this._lastSentReq);return new Promise(((r,o)=>{this._pendingReplies[n]={resolve:r,reject:o},this._send(new ce(this._workerId,n,e,t))}))}listen(e,t){let n=null;const r=new J({onFirstListenerAdd:()=>{n=String(++this._lastSentReq),this._pendingEmitters.set(n,r),this._send(new fe(this._workerId,n,e,t))},onLastListenerRemove:()=>{this._pendingEmitters.delete(n),this._send(new he(this._workerId,n)),n=null}});return r.event}handleMessage(e){e&&e.vsWorker&&(-1!==this._workerId&&e.vsWorker!==this._workerId||this._handleMessage(e))}_handleMessage(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}_handleReplyMessage(e){if(!this._pendingReplies[e.seq])return void console.warn("Got reply to unknown seq");let t=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let n=e.err;return e.err.$isError&&(n=new Error,n.name=e.err.name,n.message=e.err.message,n.stack=e.err.stack),void t.reject(n)}t.resolve(e.res)}_handleRequestMessage(e){let t=e.req;this._handler.handleMessage(e.method,e.args).then((e=>{this._send(new le(this._workerId,t,e,void 0))}),(e=>{e.detail instanceof Error&&(e.detail=i(e.detail)),this._send(new le(this._workerId,t,void 0,i(e)))}))}_handleSubscribeEventMessage(e){const t=e.req,n=this._handler.handleEvent(e.eventName,e.arg)((e=>{this._send(new pe(this._workerId,t,e))}));this._pendingEvents.set(t,n)}_handleEventMessage(e){this._pendingEmitters.has(e.req)?this._pendingEmitters.get(e.req).fire(e.event):console.warn("Got event for unknown req")}_handleUnsubscribeEventMessage(e){this._pendingEvents.has(e.req)?(this._pendingEvents.get(e.req).dispose(),this._pendingEvents.delete(e.req)):console.warn("Got unsubscribe for unknown req")}_send(e){let t=[];if(0===e.type)for(let n=0;n<e.args.length;n++)e.args[n]instanceof ArrayBuffer&&t.push(e.args[n]);else 1===e.type&&e.res instanceof ArrayBuffer&&t.push(e.res);this._handler.sendMessage(e,t)}}function me(e){return"o"===e[0]&&"n"===e[1]&&Z(e.charCodeAt(2))}function ge(e){return/^onDynamic/.test(e)&&Z(e.charCodeAt(9))}class ye{constructor(e,t){this._requestHandlerFactory=t,this._requestHandler=null,this._protocol=new de({sendMessage:(t,n)=>{e(t,n)},handleMessage:(e,t)=>this._handleMessage(e,t),handleEvent:(e,t)=>this._handleEvent(e,t)})}onmessage(e){this._protocol.handleMessage(e)}_handleMessage(e,t){if("$initialize"===e)return this.initialize(t[0],t[1],t[2],t[3]);if(!this._requestHandler||"function"!=typeof this._requestHandler[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._requestHandler[e].apply(this._requestHandler,t))}catch(e){return Promise.reject(e)}}_handleEvent(e,t){if(!this._requestHandler)throw new Error("Missing requestHandler");if(ge(e)){const n=this._requestHandler[e].call(this._requestHandler,t);if("function"!=typeof n)throw new Error(`Missing dynamic event ${e} on request handler.`);return n}if(me(e)){const t=this._requestHandler[e];if("function"!=typeof t)throw new Error(`Missing event ${e} on request handler.`);return t}throw new Error(`Malformed event name ${e}`)}initialize(e,t,n,r){this._protocol.setWorkerId(e);const o=function(e,t,n){const r=e=>function(){const n=Array.prototype.slice.call(arguments,0);return t(e,n)},o=e=>function(t){return n(e,t)};let i={};for(const t of e)ge(t)?i[t]=o(t):me(t)?i[t]=n(t,void 0):i[t]=r(t);return i}(r,((e,t)=>this._protocol.sendMessage(e,t)),((e,t)=>this._protocol.listen(e,t)));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(o),Promise.resolve(G(this._requestHandler))):(t&&(void 0!==t.baseUrl&&delete t.baseUrl,void 0!==t.paths&&void 0!==t.paths.vs&&delete t.paths.vs,void 0!==typeof t.trustedTypesPolicy&&delete t.trustedTypesPolicy,t.catchError=!0,L.require.config(t)),new Promise(((e,t)=>{(0,L.require)([n],(n=>{this._requestHandler=n.create(o),this._requestHandler?e(G(this._requestHandler)):t(new Error("No RequestHandler!"))}),t)})))}}class be{constructor(e,t,n,r){this.originalStart=e,this.originalLength=t,this.modifiedStart=n,this.modifiedLength=r}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function ve(e,t){return(t<<5)-t+e|0}function De(e,t){t=ve(149417,t);for(let n=0,r=e.length;n<r;n++)t=ve(e.charCodeAt(n),t);return t}function Ce(e,t,n=32){const r=n-t;return(e<<t|(~((1<<r)-1)&e)>>>r)>>>0}function Ee(e,t=0,n=e.byteLength,r=0){for(let o=0;o<n;o++)e[t+o]=r}function we(e,t=32){return e instanceof ArrayBuffer?Array.from(new Uint8Array(e)).map((e=>e.toString(16).padStart(2,"0"))).join(""):function(e,t,n="0"){for(;e.length<t;)e=n+e;return e}((e>>>0).toString(16),t/4)}class Ae{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const t=e.length;if(0===t)return;const n=this._buff;let r,o,i=this._buffLen,s=this._leftoverHighSurrogate;for(0!==s?(r=s,o=-1,s=0):(r=e.charCodeAt(0),o=0);;){let a=r;if(ee(r)){if(!(o+1<t)){s=r;break}{const t=e.charCodeAt(o+1);te(t)?(o++,a=ne(r,t)):a=65533}}else te(r)&&(a=65533);if(i=this._push(n,i,a),o++,!(o<t))break;r=e.charCodeAt(o)}this._buffLen=i,this._leftoverHighSurrogate=s}_push(e,t,n){return n<128?e[t++]=n:n<2048?(e[t++]=192|(1984&n)>>>6,e[t++]=128|(63&n)>>>0):n<65536?(e[t++]=224|(61440&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>0):(e[t++]=240|(1835008&n)>>>18,e[t++]=128|(258048&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>0),t>=64&&(this._step(),t-=64,this._totalLen+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),t}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),we(this._h0)+we(this._h1)+we(this._h2)+we(this._h3)+we(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,Ee(this._buff,this._buffLen),this._buffLen>56&&(this._step(),Ee(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=Ae._bigBlock32,t=this._buffDV;for(let n=0;n<64;n+=4)e.setUint32(n,t.getUint32(n,!1),!1);for(let t=64;t<320;t+=4)e.setUint32(t,Ce(e.getUint32(t-12,!1)^e.getUint32(t-32,!1)^e.getUint32(t-56,!1)^e.getUint32(t-64,!1),1),!1);let n,r,o,i=this._h0,s=this._h1,a=this._h2,u=this._h3,c=this._h4;for(let t=0;t<80;t++)t<20?(n=s&a|~s&u,r=1518500249):t<40?(n=s^a^u,r=1859775393):t<60?(n=s&a|s&u|a&u,r=2400959708):(n=s^a^u,r=3395469782),o=Ce(i,5)+n+c+r+e.getUint32(4*t,!1)&4294967295,c=u,u=a,a=Ce(s,30),s=i,i=o;this._h0=this._h0+i&4294967295,this._h1=this._h1+s&4294967295,this._h2=this._h2+a&4294967295,this._h3=this._h3+u&4294967295,this._h4=this._h4+c&4294967295}}Ae._bigBlock32=new DataView(new ArrayBuffer(320));class Se{constructor(e){this.source=e}getElements(){const e=this.source,t=new Int32Array(e.length);for(let n=0,r=e.length;n<r;n++)t[n]=e.charCodeAt(n);return t}}function xe(e,t,n){return new ke(new Se(e),new Se(t)).ComputeDiff(n).changes}class _e{static Assert(e,t){if(!e)throw new Error(t)}}class Fe{static Copy(e,t,n,r,o){for(let i=0;i<o;i++)n[r+i]=e[t+i]}static Copy2(e,t,n,r,o){for(let i=0;i<o;i++)n[r+i]=e[t+i]}}class Te{constructor(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}MarkNextChange(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new be(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++}AddModifiedElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class ke{constructor(e,t,n=null){this.ContinueProcessingPredicate=n,this._originalSequence=e,this._modifiedSequence=t;const[r,o,i]=ke._getElements(e),[s,a,u]=ke._getElements(t);this._hasStrings=i&&u,this._originalStringElements=r,this._originalElementsOrHash=o,this._modifiedStringElements=s,this._modifiedElementsOrHash=a,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&"string"==typeof e[0]}static _getElements(e){const t=e.getElements();if(ke._isStringArray(t)){const e=new Int32Array(t.length);for(let n=0,r=t.length;n<r;n++)e[n]=De(t[n],0);return[t,e,!0]}return t instanceof Int32Array?[[],t,!1]:[[],new Int32Array(t),!1]}ElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._modifiedStringElements[t])}ElementsAreStrictEqual(e,t){return!!this.ElementsAreEqual(e,t)&&ke._getStrictElement(this._originalSequence,e)===ke._getStrictElement(this._modifiedSequence,t)}static _getStrictElement(e,t){return"function"==typeof e.getStrictElement?e.getStrictElement(t):null}OriginalElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._originalElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._originalStringElements[t])}ModifiedElementsAreEqual(e,t){return this._modifiedElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._modifiedStringElements[e]===this._modifiedStringElements[t])}ComputeDiff(e){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,e)}_ComputeDiff(e,t,n,r,o){const i=[!1];let s=this.ComputeDiffRecursive(e,t,n,r,i);return o&&(s=this.PrettifyChanges(s)),{quitEarly:i[0],changes:s}}ComputeDiffRecursive(e,t,n,r,o){for(o[0]=!1;e<=t&&n<=r&&this.ElementsAreEqual(e,n);)e++,n++;for(;t>=e&&r>=n&&this.ElementsAreEqual(t,r);)t--,r--;if(e>t||n>r){let o;return n<=r?(_e.Assert(e===t+1,"originalStart should only be one more than originalEnd"),o=[new be(e,0,n,r-n+1)]):e<=t?(_e.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd"),o=[new be(e,t-e+1,n,0)]):(_e.Assert(e===t+1,"originalStart should only be one more than originalEnd"),_e.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd"),o=[]),o}const i=[0],s=[0],a=this.ComputeRecursionPoint(e,t,n,r,i,s,o),u=i[0],c=s[0];if(null!==a)return a;if(!o[0]){const i=this.ComputeDiffRecursive(e,u,n,c,o);let s=[];return s=o[0]?[new be(u+1,t-(u+1)+1,c+1,r-(c+1)+1)]:this.ComputeDiffRecursive(u+1,t,c+1,r,o),this.ConcatenateChanges(i,s)}return[new be(e,t-e+1,n,r-n+1)]}WALKTRACE(e,t,n,r,o,i,s,a,u,c,l,f,p,h,d,m,g,y){let b=null,v=null,D=new Te,C=t,E=n,w=p[0]-m[0]-r,A=-1073741824,S=this.m_forwardHistory.length-1;do{const t=w+e;t===C||t<E&&u[t-1]<u[t+1]?(h=(l=u[t+1])-w-r,l<A&&D.MarkNextChange(),A=l,D.AddModifiedElement(l+1,h),w=t+1-e):(h=(l=u[t-1]+1)-w-r,l<A&&D.MarkNextChange(),A=l-1,D.AddOriginalElement(l,h+1),w=t-1-e),S>=0&&(e=(u=this.m_forwardHistory[S])[0],C=1,E=u.length-1)}while(--S>=-1);if(b=D.getReverseChanges(),y[0]){let e=p[0]+1,t=m[0]+1;if(null!==b&&b.length>0){const n=b[b.length-1];e=Math.max(e,n.getOriginalEnd()),t=Math.max(t,n.getModifiedEnd())}v=[new be(e,f-e+1,t,d-t+1)]}else{D=new Te,C=i,E=s,w=p[0]-m[0]-a,A=1073741824,S=g?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const e=w+o;e===C||e<E&&c[e-1]>=c[e+1]?(h=(l=c[e+1]-1)-w-a,l>A&&D.MarkNextChange(),A=l+1,D.AddOriginalElement(l+1,h+1),w=e+1-o):(h=(l=c[e-1])-w-a,l>A&&D.MarkNextChange(),A=l,D.AddModifiedElement(l+1,h+1),w=e-1-o),S>=0&&(o=(c=this.m_reverseHistory[S])[0],C=1,E=c.length-1)}while(--S>=-1);v=D.getChanges()}return this.ConcatenateChanges(b,v)}ComputeRecursionPoint(e,t,n,r,o,i,s){let a=0,u=0,c=0,l=0,f=0,p=0;e--,n--,o[0]=0,i[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const h=t-e+(r-n),d=h+1,m=new Int32Array(d),g=new Int32Array(d),y=r-n,b=t-e,v=e-n,D=t-r,C=(b-y)%2==0;m[y]=e,g[b]=t,s[0]=!1;for(let E=1;E<=h/2+1;E++){let h=0,w=0;c=this.ClipDiagonalBound(y-E,E,y,d),l=this.ClipDiagonalBound(y+E,E,y,d);for(let e=c;e<=l;e+=2){a=e===c||e<l&&m[e-1]<m[e+1]?m[e+1]:m[e-1]+1,u=a-(e-y)-v;const n=a;for(;a<t&&u<r&&this.ElementsAreEqual(a+1,u+1);)a++,u++;if(m[e]=a,a+u>h+w&&(h=a,w=u),!C&&Math.abs(e-b)<=E-1&&a>=g[e])return o[0]=a,i[0]=u,n<=g[e]&&E<=1448?this.WALKTRACE(y,c,l,v,b,f,p,D,m,g,a,t,o,u,r,i,C,s):null}const A=(h-e+(w-n)-E)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(h,A))return s[0]=!0,o[0]=h,i[0]=w,A>0&&E<=1448?this.WALKTRACE(y,c,l,v,b,f,p,D,m,g,a,t,o,u,r,i,C,s):(e++,n++,[new be(e,t-e+1,n,r-n+1)]);f=this.ClipDiagonalBound(b-E,E,b,d),p=this.ClipDiagonalBound(b+E,E,b,d);for(let h=f;h<=p;h+=2){a=h===f||h<p&&g[h-1]>=g[h+1]?g[h+1]-1:g[h-1],u=a-(h-b)-D;const d=a;for(;a>e&&u>n&&this.ElementsAreEqual(a,u);)a--,u--;if(g[h]=a,C&&Math.abs(h-y)<=E&&a<=m[h])return o[0]=a,i[0]=u,d>=m[h]&&E<=1448?this.WALKTRACE(y,c,l,v,b,f,p,D,m,g,a,t,o,u,r,i,C,s):null}if(E<=1447){let e=new Int32Array(l-c+2);e[0]=y-c+1,Fe.Copy2(m,c,e,1,l-c+1),this.m_forwardHistory.push(e),e=new Int32Array(p-f+2),e[0]=b-f+1,Fe.Copy2(g,f,e,1,p-f+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(y,c,l,v,b,f,p,D,m,g,a,t,o,u,r,i,C,s)}PrettifyChanges(e){for(let t=0;t<e.length;t++){const n=e[t],r=t<e.length-1?e[t+1].originalStart:this._originalElementsOrHash.length,o=t<e.length-1?e[t+1].modifiedStart:this._modifiedElementsOrHash.length,i=n.originalLength>0,s=n.modifiedLength>0;for(;n.originalStart+n.originalLength<r&&n.modifiedStart+n.modifiedLength<o&&(!i||this.OriginalElementsAreEqual(n.originalStart,n.originalStart+n.originalLength))&&(!s||this.ModifiedElementsAreEqual(n.modifiedStart,n.modifiedStart+n.modifiedLength));){const e=this.ElementsAreStrictEqual(n.originalStart,n.modifiedStart);if(this.ElementsAreStrictEqual(n.originalStart+n.originalLength,n.modifiedStart+n.modifiedLength)&&!e)break;n.originalStart++,n.modifiedStart++}let a=[null];t<e.length-1&&this.ChangesOverlap(e[t],e[t+1],a)&&(e[t]=a[0],e.splice(t+1,1),t--)}for(let t=e.length-1;t>=0;t--){const n=e[t];let r=0,o=0;if(t>0){const n=e[t-1];r=n.originalStart+n.originalLength,o=n.modifiedStart+n.modifiedLength}const i=n.originalLength>0,s=n.modifiedLength>0;let a=0,u=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength);for(let e=1;;e++){const t=n.originalStart-e,c=n.modifiedStart-e;if(t<r||c<o)break;if(i&&!this.OriginalElementsAreEqual(t,t+n.originalLength))break;if(s&&!this.ModifiedElementsAreEqual(c,c+n.modifiedLength))break;const l=(t===r&&c===o?5:0)+this._boundaryScore(t,n.originalLength,c,n.modifiedLength);l>u&&(u=l,a=e)}n.originalStart-=a,n.modifiedStart-=a;const c=[null];t>0&&this.ChangesOverlap(e[t-1],e[t],c)&&(e[t-1]=c[0],e.splice(t,1),t++)}if(this._hasStrings)for(let t=1,n=e.length;t<n;t++){const n=e[t-1],r=e[t],o=r.originalStart-n.originalStart-n.originalLength,i=n.originalStart,s=r.originalStart+r.originalLength,a=s-i,u=n.modifiedStart,c=r.modifiedStart+r.modifiedLength,l=c-u;if(o<5&&a<20&&l<20){const e=this._findBetterContiguousSequence(i,a,u,l,o);if(e){const[t,i]=e;t===n.originalStart+n.originalLength&&i===n.modifiedStart+n.modifiedLength||(n.originalLength=t-n.originalStart,n.modifiedLength=i-n.modifiedStart,r.originalStart=t+o,r.modifiedStart=i+o,r.originalLength=s-r.originalStart,r.modifiedLength=c-r.modifiedStart)}}}return e}_findBetterContiguousSequence(e,t,n,r,o){if(t<o||r<o)return null;const i=e+t-o+1,s=n+r-o+1;let a=0,u=0,c=0;for(let t=e;t<i;t++)for(let e=n;e<s;e++){const n=this._contiguousSequenceScore(t,e,o);n>0&&n>a&&(a=n,u=t,c=e)}return a>0?[u,c]:null}_contiguousSequenceScore(e,t,n){let r=0;for(let o=0;o<n;o++){if(!this.ElementsAreEqual(e+o,t+o))return 0;r+=this._originalStringElements[e+o].length}return r}_OriginalIsBoundary(e){return e<=0||e>=this._originalElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){const n=e+t;if(this._OriginalIsBoundary(n-1)||this._OriginalIsBoundary(n))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){const n=e+t;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1}_boundaryScore(e,t,n,r){return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(n,r)?1:0)}ConcatenateChanges(e,t){let n=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],n)){const r=new Array(e.length+t.length-1);return Fe.Copy(e,0,r,0,e.length-1),r[e.length-1]=n[0],Fe.Copy(t,1,r,e.length,t.length-1),r}{const n=new Array(e.length+t.length);return Fe.Copy(e,0,n,0,e.length),Fe.Copy(t,0,n,e.length,t.length),n}}ChangesOverlap(e,t,n){if(_e.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),_e.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){const r=e.originalStart;let o=e.originalLength;const i=e.modifiedStart;let s=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(o=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(s=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new be(r,o,i,s),!0}return n[0]=null,!1}ClipDiagonalBound(e,t,n,r){if(e>=0&&e<r)return e;const o=t%2==0;return e<0?o===(n%2==0)?0:1:o===((r-n-1)%2==0)?r-1:r-2}}if(void 0!==L.vscode&&void 0!==L.vscode.process){const e=L.vscode.process;ue={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd:()=>e.cwd()}}else ue="undefined"!=typeof process?{get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd:()=>process.env.VSCODE_CWD||process.cwd()}:{get platform(){return R?"win32":j?"darwin":"linux"},get arch(){},get env(){return{}},cwd:()=>"/"};const Ne=ue.cwd,Oe=ue.env,Le=ue.platform,Me=46,Pe=47,Ie=92,Be=58;class Re extends Error{constructor(e,t,n){let r;"string"==typeof t&&0===t.indexOf("not ")?(r="must not be",t=t.replace(/^not /,"")):r="must be";const o=-1!==e.indexOf(".")?"property":"argument";let i=`The "${e}" ${o} ${r} of type ${t}`;i+=". Received type "+typeof n,super(i),this.code="ERR_INVALID_ARG_TYPE"}}function je(e,t){if("string"!=typeof e)throw new Re(t,"string",e)}function Ve(e){return e===Pe||e===Ie}function $e(e){return e===Pe}function Ue(e){return e>=65&&e<=90||e>=97&&e<=122}function We(e,t,n,r){let o="",i=0,s=-1,a=0,u=0;for(let c=0;c<=e.length;++c){if(c<e.length)u=e.charCodeAt(c);else{if(r(u))break;u=Pe}if(r(u)){if(s===c-1||1===a);else if(2===a){if(o.length<2||2!==i||o.charCodeAt(o.length-1)!==Me||o.charCodeAt(o.length-2)!==Me){if(o.length>2){const e=o.lastIndexOf(n);-1===e?(o="",i=0):(o=o.slice(0,e),i=o.length-1-o.lastIndexOf(n)),s=c,a=0;continue}if(0!==o.length){o="",i=0,s=c,a=0;continue}}t&&(o+=o.length>0?`${n}..`:"..",i=2)}else o.length>0?o+=`${n}${e.slice(s+1,c)}`:o=e.slice(s+1,c),i=c-s-1;s=c,a=0}else u===Me&&-1!==a?++a:a=-1}return o}function Ke(e,t){if(null===t||"object"!=typeof t)throw new Re("pathObject","Object",t);const n=t.dir||t.root,r=t.base||`${t.name||""}${t.ext||""}`;return n?n===t.root?`${n}${r}`:`${n}${e}${r}`:r}const qe={resolve(...e){let t="",n="",r=!1;for(let o=e.length-1;o>=-1;o--){let i;if(o>=0){if(i=e[o],je(i,"path"),0===i.length)continue}else 0===t.length?i=Ne():(i=Oe[`=${t}`]||Ne(),(void 0===i||i.slice(0,2).toLowerCase()!==t.toLowerCase()&&i.charCodeAt(2)===Ie)&&(i=`${t}\\`));const s=i.length;let a=0,u="",c=!1;const l=i.charCodeAt(0);if(1===s)Ve(l)&&(a=1,c=!0);else if(Ve(l))if(c=!0,Ve(i.charCodeAt(1))){let e=2,t=e;for(;e<s&&!Ve(i.charCodeAt(e));)e++;if(e<s&&e!==t){const n=i.slice(t,e);for(t=e;e<s&&Ve(i.charCodeAt(e));)e++;if(e<s&&e!==t){for(t=e;e<s&&!Ve(i.charCodeAt(e));)e++;e!==s&&e===t||(u=`\\\\${n}\\${i.slice(t,e)}`,a=e)}}}else a=1;else Ue(l)&&i.charCodeAt(1)===Be&&(u=i.slice(0,2),a=2,s>2&&Ve(i.charCodeAt(2))&&(c=!0,a=3));if(u.length>0)if(t.length>0){if(u.toLowerCase()!==t.toLowerCase())continue}else t=u;if(r){if(t.length>0)break}else if(n=`${i.slice(a)}\\${n}`,r=c,c&&t.length>0)break}return n=We(n,!r,"\\",Ve),r?`${t}\\${n}`:`${t}${n}`||"."},normalize(e){je(e,"path");const t=e.length;if(0===t)return".";let n,r=0,o=!1;const i=e.charCodeAt(0);if(1===t)return $e(i)?"\\":e;if(Ve(i))if(o=!0,Ve(e.charCodeAt(1))){let o=2,i=o;for(;o<t&&!Ve(e.charCodeAt(o));)o++;if(o<t&&o!==i){const s=e.slice(i,o);for(i=o;o<t&&Ve(e.charCodeAt(o));)o++;if(o<t&&o!==i){for(i=o;o<t&&!Ve(e.charCodeAt(o));)o++;if(o===t)return`\\\\${s}\\${e.slice(i)}\\`;o!==i&&(n=`\\\\${s}\\${e.slice(i,o)}`,r=o)}}}else r=1;else Ue(i)&&e.charCodeAt(1)===Be&&(n=e.slice(0,2),r=2,t>2&&Ve(e.charCodeAt(2))&&(o=!0,r=3));let s=r<t?We(e.slice(r),!o,"\\",Ve):"";return 0!==s.length||o||(s="."),s.length>0&&Ve(e.charCodeAt(t-1))&&(s+="\\"),void 0===n?o?`\\${s}`:s:o?`${n}\\${s}`:`${n}${s}`},isAbsolute(e){je(e,"path");const t=e.length;if(0===t)return!1;const n=e.charCodeAt(0);return Ve(n)||t>2&&Ue(n)&&e.charCodeAt(1)===Be&&Ve(e.charCodeAt(2))},join(...e){if(0===e.length)return".";let t,n;for(let r=0;r<e.length;++r){const o=e[r];je(o,"path"),o.length>0&&(void 0===t?t=n=o:t+=`\\${o}`)}if(void 0===t)return".";let r=!0,o=0;if("string"==typeof n&&Ve(n.charCodeAt(0))){++o;const e=n.length;e>1&&Ve(n.charCodeAt(1))&&(++o,e>2&&(Ve(n.charCodeAt(2))?++o:r=!1))}if(r){for(;o<t.length&&Ve(t.charCodeAt(o));)o++;o>=2&&(t=`\\${t.slice(o)}`)}return qe.normalize(t)},relative(e,t){if(je(e,"from"),je(t,"to"),e===t)return"";const n=qe.resolve(e),r=qe.resolve(t);if(n===r)return"";if((e=n.toLowerCase())===(t=r.toLowerCase()))return"";let o=0;for(;o<e.length&&e.charCodeAt(o)===Ie;)o++;let i=e.length;for(;i-1>o&&e.charCodeAt(i-1)===Ie;)i--;const s=i-o;let a=0;for(;a<t.length&&t.charCodeAt(a)===Ie;)a++;let u=t.length;for(;u-1>a&&t.charCodeAt(u-1)===Ie;)u--;const c=u-a,l=s<c?s:c;let f=-1,p=0;for(;p<l;p++){const n=e.charCodeAt(o+p);if(n!==t.charCodeAt(a+p))break;n===Ie&&(f=p)}if(p!==l){if(-1===f)return r}else{if(c>l){if(t.charCodeAt(a+p)===Ie)return r.slice(a+p+1);if(2===p)return r.slice(a+p)}s>l&&(e.charCodeAt(o+p)===Ie?f=p:2===p&&(f=3)),-1===f&&(f=0)}let h="";for(p=o+f+1;p<=i;++p)p!==i&&e.charCodeAt(p)!==Ie||(h+=0===h.length?"..":"\\..");return a+=f,h.length>0?`${h}${r.slice(a,u)}`:(r.charCodeAt(a)===Ie&&++a,r.slice(a,u))},toNamespacedPath(e){if("string"!=typeof e)return e;if(0===e.length)return"";const t=qe.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===Ie){if(t.charCodeAt(1)===Ie){const e=t.charCodeAt(2);if(63!==e&&e!==Me)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(Ue(t.charCodeAt(0))&&t.charCodeAt(1)===Be&&t.charCodeAt(2)===Ie)return`\\\\?\\${t}`;return e},dirname(e){je(e,"path");const t=e.length;if(0===t)return".";let n=-1,r=0;const o=e.charCodeAt(0);if(1===t)return Ve(o)?e:".";if(Ve(o)){if(n=r=1,Ve(e.charCodeAt(1))){let o=2,i=o;for(;o<t&&!Ve(e.charCodeAt(o));)o++;if(o<t&&o!==i){for(i=o;o<t&&Ve(e.charCodeAt(o));)o++;if(o<t&&o!==i){for(i=o;o<t&&!Ve(e.charCodeAt(o));)o++;if(o===t)return e;o!==i&&(n=r=o+1)}}}}else Ue(o)&&e.charCodeAt(1)===Be&&(n=t>2&&Ve(e.charCodeAt(2))?3:2,r=n);let i=-1,s=!0;for(let n=t-1;n>=r;--n)if(Ve(e.charCodeAt(n))){if(!s){i=n;break}}else s=!1;if(-1===i){if(-1===n)return".";i=n}return e.slice(0,i)},basename(e,t){void 0!==t&&je(t,"ext"),je(e,"path");let n,r=0,o=-1,i=!0;if(e.length>=2&&Ue(e.charCodeAt(0))&&e.charCodeAt(1)===Be&&(r=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let s=t.length-1,a=-1;for(n=e.length-1;n>=r;--n){const u=e.charCodeAt(n);if(Ve(u)){if(!i){r=n+1;break}}else-1===a&&(i=!1,a=n+1),s>=0&&(u===t.charCodeAt(s)?-1==--s&&(o=n):(s=-1,o=a))}return r===o?o=a:-1===o&&(o=e.length),e.slice(r,o)}for(n=e.length-1;n>=r;--n)if(Ve(e.charCodeAt(n))){if(!i){r=n+1;break}}else-1===o&&(i=!1,o=n+1);return-1===o?"":e.slice(r,o)},extname(e){je(e,"path");let t=0,n=-1,r=0,o=-1,i=!0,s=0;e.length>=2&&e.charCodeAt(1)===Be&&Ue(e.charCodeAt(0))&&(t=r=2);for(let a=e.length-1;a>=t;--a){const t=e.charCodeAt(a);if(Ve(t)){if(!i){r=a+1;break}}else-1===o&&(i=!1,o=a+1),t===Me?-1===n?n=a:1!==s&&(s=1):-1!==n&&(s=-1)}return-1===n||-1===o||0===s||1===s&&n===o-1&&n===r+1?"":e.slice(n,o)},format:Ke.bind(null,"\\"),parse(e){je(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.length;let r=0,o=e.charCodeAt(0);if(1===n)return Ve(o)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(Ve(o)){if(r=1,Ve(e.charCodeAt(1))){let t=2,o=t;for(;t<n&&!Ve(e.charCodeAt(t));)t++;if(t<n&&t!==o){for(o=t;t<n&&Ve(e.charCodeAt(t));)t++;if(t<n&&t!==o){for(o=t;t<n&&!Ve(e.charCodeAt(t));)t++;t===n?r=t:t!==o&&(r=t+1)}}}}else if(Ue(o)&&e.charCodeAt(1)===Be){if(n<=2)return t.root=t.dir=e,t;if(r=2,Ve(e.charCodeAt(2))){if(3===n)return t.root=t.dir=e,t;r=3}}r>0&&(t.root=e.slice(0,r));let i=-1,s=r,a=-1,u=!0,c=e.length-1,l=0;for(;c>=r;--c)if(o=e.charCodeAt(c),Ve(o)){if(!u){s=c+1;break}}else-1===a&&(u=!1,a=c+1),o===Me?-1===i?i=c:1!==l&&(l=1):-1!==i&&(l=-1);return-1!==a&&(-1===i||0===l||1===l&&i===a-1&&i===s+1?t.base=t.name=e.slice(s,a):(t.name=e.slice(s,i),t.base=e.slice(s,a),t.ext=e.slice(i,a))),t.dir=s>0&&s!==r?e.slice(0,s-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},He={resolve(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){const o=r>=0?e[r]:Ne();je(o,"path"),0!==o.length&&(t=`${o}/${t}`,n=o.charCodeAt(0)===Pe)}return t=We(t,!n,"/",$e),n?`/${t}`:t.length>0?t:"."},normalize(e){if(je(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===Pe,n=e.charCodeAt(e.length-1)===Pe;return 0===(e=We(e,!t,"/",$e)).length?t?"/":n?"./":".":(n&&(e+="/"),t?`/${e}`:e)},isAbsolute:e=>(je(e,"path"),e.length>0&&e.charCodeAt(0)===Pe),join(...e){if(0===e.length)return".";let t;for(let n=0;n<e.length;++n){const r=e[n];je(r,"path"),r.length>0&&(void 0===t?t=r:t+=`/${r}`)}return void 0===t?".":He.normalize(t)},relative(e,t){if(je(e,"from"),je(t,"to"),e===t)return"";if((e=He.resolve(e))===(t=He.resolve(t)))return"";const n=e.length,r=n-1,o=t.length-1,i=r<o?r:o;let s=-1,a=0;for(;a<i;a++){const n=e.charCodeAt(1+a);if(n!==t.charCodeAt(1+a))break;n===Pe&&(s=a)}if(a===i)if(o>i){if(t.charCodeAt(1+a)===Pe)return t.slice(1+a+1);if(0===a)return t.slice(1+a)}else r>i&&(e.charCodeAt(1+a)===Pe?s=a:0===a&&(s=0));let u="";for(a=1+s+1;a<=n;++a)a!==n&&e.charCodeAt(a)!==Pe||(u+=0===u.length?"..":"/..");return`${u}${t.slice(1+s)}`},toNamespacedPath:e=>e,dirname(e){if(je(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===Pe;let n=-1,r=!0;for(let t=e.length-1;t>=1;--t)if(e.charCodeAt(t)===Pe){if(!r){n=t;break}}else r=!1;return-1===n?t?"/":".":t&&1===n?"//":e.slice(0,n)},basename(e,t){void 0!==t&&je(t,"ext"),je(e,"path");let n,r=0,o=-1,i=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let s=t.length-1,a=-1;for(n=e.length-1;n>=0;--n){const u=e.charCodeAt(n);if(u===Pe){if(!i){r=n+1;break}}else-1===a&&(i=!1,a=n+1),s>=0&&(u===t.charCodeAt(s)?-1==--s&&(o=n):(s=-1,o=a))}return r===o?o=a:-1===o&&(o=e.length),e.slice(r,o)}for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===Pe){if(!i){r=n+1;break}}else-1===o&&(i=!1,o=n+1);return-1===o?"":e.slice(r,o)},extname(e){je(e,"path");let t=-1,n=0,r=-1,o=!0,i=0;for(let s=e.length-1;s>=0;--s){const a=e.charCodeAt(s);if(a!==Pe)-1===r&&(o=!1,r=s+1),a===Me?-1===t?t=s:1!==i&&(i=1):-1!==t&&(i=-1);else if(!o){n=s+1;break}}return-1===t||-1===r||0===i||1===i&&t===r-1&&t===n+1?"":e.slice(t,r)},format:Ke.bind(null,"/"),parse(e){je(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.charCodeAt(0)===Pe;let r;n?(t.root="/",r=1):r=0;let o=-1,i=0,s=-1,a=!0,u=e.length-1,c=0;for(;u>=r;--u){const t=e.charCodeAt(u);if(t!==Pe)-1===s&&(a=!1,s=u+1),t===Me?-1===o?o=u:1!==c&&(c=1):-1!==o&&(c=-1);else if(!a){i=u+1;break}}if(-1!==s){const r=0===i&&n?1:i;-1===o||0===c||1===c&&o===s-1&&o===i+1?t.base=t.name=e.slice(r,s):(t.name=e.slice(r,o),t.base=e.slice(r,s),t.ext=e.slice(o,s))}return i>0?t.dir=e.slice(0,i-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};He.win32=qe.win32=qe,He.posix=qe.posix=He,"win32"===Le?qe.normalize:He.normalize,"win32"===Le?qe.resolve:He.resolve,"win32"===Le?qe.relative:He.relative,"win32"===Le?qe.dirname:He.dirname,"win32"===Le?qe.basename:He.basename,"win32"===Le?qe.extname:He.extname,"win32"===Le?qe.sep:He.sep;const ze=/^\w[\w\d+.-]*$/,Ye=/^\//,Je=/^\/\//;function Ge(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!ze.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!Ye.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(Je.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}const Xe="",Qe="/",Ze=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class et{constructor(e,t,n,r,o,i=!1){"object"==typeof e?(this.scheme=e.scheme||Xe,this.authority=e.authority||Xe,this.path=e.path||Xe,this.query=e.query||Xe,this.fragment=e.fragment||Xe):(this.scheme=function(e,t){return e||t?e:"file"}(e,i),this.authority=t||Xe,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==Qe&&(t=Qe+t):t=Qe}return t}(this.scheme,n||Xe),this.query=r||Xe,this.fragment=o||Xe,Ge(this,i))}static isUri(e){return e instanceof et||!!e&&"string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"string"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString}get fsPath(){return st(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:r,query:o,fragment:i}=e;return void 0===t?t=this.scheme:null===t&&(t=Xe),void 0===n?n=this.authority:null===n&&(n=Xe),void 0===r?r=this.path:null===r&&(r=Xe),void 0===o?o=this.query:null===o&&(o=Xe),void 0===i?i=this.fragment:null===i&&(i=Xe),t===this.scheme&&n===this.authority&&r===this.path&&o===this.query&&i===this.fragment?this:new nt(t,n,r,o,i)}static parse(e,t=!1){const n=Ze.exec(e);return n?new nt(n[2]||Xe,lt(n[4]||Xe),lt(n[5]||Xe),lt(n[7]||Xe),lt(n[9]||Xe),t):new nt(Xe,Xe,Xe,Xe,Xe)}static file(e){let t=Xe;if(R&&(e=e.replace(/\\/g,Qe)),e[0]===Qe&&e[1]===Qe){const n=e.indexOf(Qe,2);-1===n?(t=e.substring(2),e=Qe):(t=e.substring(2,n),e=e.substring(n)||Qe)}return new nt("file",t,e,Xe,Xe)}static from(e){const t=new nt(e.scheme,e.authority,e.path,e.query,e.fragment);return Ge(t,!0),t}static joinPath(e,...t){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let n;return n=R&&"file"===e.scheme?et.file(qe.join(st(e,!0),...t)).path:He.join(e.path,...t),e.with({path:n})}toString(e=!1){return at(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof et)return e;{const t=new nt(e);return t._formatted=e.external,t._fsPath=e._sep===tt?e.fsPath:null,t}}return e}}const tt=R?1:void 0;class nt extends et{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=st(this,!1)),this._fsPath}toString(e=!1){return e?at(this,!0):(this._formatted||(this._formatted=at(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=tt),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const rt={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function ot(e,t){let n,r=-1;for(let o=0;o<e.length;o++){const i=e.charCodeAt(o);if(i>=97&&i<=122||i>=65&&i<=90||i>=48&&i<=57||45===i||46===i||95===i||126===i||t&&47===i)-1!==r&&(n+=encodeURIComponent(e.substring(r,o)),r=-1),void 0!==n&&(n+=e.charAt(o));else{void 0===n&&(n=e.substr(0,o));const t=rt[i];void 0!==t?(-1!==r&&(n+=encodeURIComponent(e.substring(r,o)),r=-1),n+=t):-1===r&&(r=o)}}return-1!==r&&(n+=encodeURIComponent(e.substring(r))),void 0!==n?n:e}function it(e){let t;for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);35===r||63===r?(void 0===t&&(t=e.substr(0,n)),t+=rt[r]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function st(e,t){let n;return n=e.authority&&e.path.length>1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,R&&(n=n.replace(/\//g,"\\")),n}function at(e,t){const n=t?it:ot;let r="",{scheme:o,authority:i,path:s,query:a,fragment:u}=e;if(o&&(r+=o,r+=":"),(i||"file"===o)&&(r+=Qe,r+=Qe),i){let e=i.indexOf("@");if(-1!==e){const t=i.substr(0,e);i=i.substr(e+1),e=t.indexOf(":"),-1===e?r+=n(t,!1):(r+=n(t.substr(0,e),!1),r+=":",r+=n(t.substr(e+1),!1)),r+="@"}i=i.toLowerCase(),e=i.indexOf(":"),-1===e?r+=n(i,!1):(r+=n(i.substr(0,e),!1),r+=i.substr(e))}if(s){if(s.length>=3&&47===s.charCodeAt(0)&&58===s.charCodeAt(2)){const e=s.charCodeAt(1);e>=65&&e<=90&&(s=`/${String.fromCharCode(e+32)}:${s.substr(3)}`)}else if(s.length>=2&&58===s.charCodeAt(1)){const e=s.charCodeAt(0);e>=65&&e<=90&&(s=`${String.fromCharCode(e+32)}:${s.substr(2)}`)}r+=n(s,!0)}return a&&(r+="?",r+=n(a,!1)),u&&(r+="#",r+=t?u:ot(u,!1)),r}function ut(e){try{return decodeURIComponent(e)}catch(t){return e.length>3?e.substr(0,3)+ut(e.substr(3)):e}}const ct=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function lt(e){return e.match(ct)?e.replace(ct,(e=>ut(e))):e}class ft{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new ft(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return ft.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return ft.isBefore(this,e)}static isBefore(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<t.column}isBeforeOrEqual(e){return ft.isBeforeOrEqual(this,e)}static isBeforeOrEqual(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<=t.column}static compare(e,t){const n=0|e.lineNumber,r=0|t.lineNumber;return n===r?(0|e.column)-(0|t.column):n-r}clone(){return new ft(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(e){return new ft(e.lineNumber,e.column)}static isIPosition(e){return e&&"number"==typeof e.lineNumber&&"number"==typeof e.column}}class pt{constructor(e,t,n,r){e>n||e===n&&t>r?(this.startLineNumber=n,this.startColumn=r,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=n,this.endColumn=r)}isEmpty(){return pt.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return pt.containsPosition(this,e)}static containsPosition(e,t){return!(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber||t.lineNumber===e.startLineNumber&&t.column<e.startColumn||t.lineNumber===e.endLineNumber&&t.column>e.endColumn)}static strictContainsPosition(e,t){return!(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber||t.lineNumber===e.startLineNumber&&t.column<=e.startColumn||t.lineNumber===e.endLineNumber&&t.column>=e.endColumn)}containsRange(e){return pt.containsRange(this,e)}static containsRange(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber||t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumn<e.startColumn||t.endLineNumber===e.endLineNumber&&t.endColumn>e.endColumn)}strictContainsRange(e){return pt.strictContainsRange(this,e)}static strictContainsRange(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber||t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumn<=e.startColumn||t.endLineNumber===e.endLineNumber&&t.endColumn>=e.endColumn)}plusRange(e){return pt.plusRange(this,e)}static plusRange(e,t){let n,r,o,i;return t.startLineNumber<e.startLineNumber?(n=t.startLineNumber,r=t.startColumn):t.startLineNumber===e.startLineNumber?(n=t.startLineNumber,r=Math.min(t.startColumn,e.startColumn)):(n=e.startLineNumber,r=e.startColumn),t.endLineNumber>e.endLineNumber?(o=t.endLineNumber,i=t.endColumn):t.endLineNumber===e.endLineNumber?(o=t.endLineNumber,i=Math.max(t.endColumn,e.endColumn)):(o=e.endLineNumber,i=e.endColumn),new pt(n,r,o,i)}intersectRanges(e){return pt.intersectRanges(this,e)}static intersectRanges(e,t){let n=e.startLineNumber,r=e.startColumn,o=e.endLineNumber,i=e.endColumn,s=t.startLineNumber,a=t.startColumn,u=t.endLineNumber,c=t.endColumn;return n<s?(n=s,r=a):n===s&&(r=Math.max(r,a)),o>u?(o=u,i=c):o===u&&(i=Math.min(i,c)),n>o||n===o&&r>i?null:new pt(n,r,o,i)}equalsRange(e){return pt.equalsRange(this,e)}static equalsRange(e,t){return!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return pt.getEndPosition(this)}static getEndPosition(e){return new ft(e.endLineNumber,e.endColumn)}getStartPosition(){return pt.getStartPosition(this)}static getStartPosition(e){return new ft(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new pt(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new pt(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return pt.collapseToStart(this)}static collapseToStart(e){return new pt(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}static fromPositions(e,t=e){return new pt(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new pt(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&"number"==typeof e.startLineNumber&&"number"==typeof e.startColumn&&"number"==typeof e.endLineNumber&&"number"==typeof e.endColumn}static areIntersectingOrTouching(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<t.startColumn||t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<e.startColumn)}static areIntersecting(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<=t.startColumn||t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<=e.startColumn)}static compareRangesUsingStarts(e,t){if(e&&t){const n=0|e.startLineNumber,r=0|t.startLineNumber;if(n===r){const n=0|e.startColumn,r=0|t.startColumn;if(n===r){const n=0|e.endLineNumber,r=0|t.endLineNumber;return n===r?(0|e.endColumn)-(0|t.endColumn):n-r}return n-r}return n-r}return(e?1:0)-(t?1:0)}static compareRangesUsingEnds(e,t){return e.endLineNumber===t.endLineNumber?e.endColumn===t.endColumn?e.startLineNumber===t.startLineNumber?e.startColumn-t.startColumn:e.startLineNumber-t.startLineNumber:e.endColumn-t.endColumn:e.endLineNumber-t.endLineNumber}static spansMultipleLines(e){return e.endLineNumber>e.startLineNumber}toJSON(){return this}}function ht(e,t,n,r){return new ke(e,t,n).ComputeDiff(r)}class dt{constructor(e){const t=[],n=[];for(let r=0,o=e.length;r<o;r++)t[r]=vt(e[r],1),n[r]=Dt(e[r],1);this.lines=e,this._startColumns=t,this._endColumns=n}getElements(){const e=[];for(let t=0,n=this.lines.length;t<n;t++)e[t]=this.lines[t].substring(this._startColumns[t]-1,this._endColumns[t]-1);return e}getStrictElement(e){return this.lines[e]}getStartLineNumber(e){return e+1}getEndLineNumber(e){return e+1}createCharSequence(e,t,n){const r=[],o=[],i=[];let s=0;for(let a=t;a<=n;a++){const t=this.lines[a],n=e?this._startColumns[a]:1,u=e?this._endColumns[a]:t.length+1;for(let e=n;e<u;e++)r[s]=t.charCodeAt(e-1),o[s]=a+1,i[s]=e,s++}return new mt(r,o,i)}}class mt{constructor(e,t,n){this._charCodes=e,this._lineNumbers=t,this._columns=n}getElements(){return this._charCodes}getStartLineNumber(e){return this._lineNumbers[e]}getStartColumn(e){return this._columns[e]}getEndLineNumber(e){return this._lineNumbers[e]}getEndColumn(e){return this._columns[e]+1}}class gt{constructor(e,t,n,r,o,i,s,a){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=n,this.originalEndColumn=r,this.modifiedStartLineNumber=o,this.modifiedStartColumn=i,this.modifiedEndLineNumber=s,this.modifiedEndColumn=a}static createFromDiffChange(e,t,n){let r,o,i,s,a,u,c,l;return 0===e.originalLength?(r=0,o=0,i=0,s=0):(r=t.getStartLineNumber(e.originalStart),o=t.getStartColumn(e.originalStart),i=t.getEndLineNumber(e.originalStart+e.originalLength-1),s=t.getEndColumn(e.originalStart+e.originalLength-1)),0===e.modifiedLength?(a=0,u=0,c=0,l=0):(a=n.getStartLineNumber(e.modifiedStart),u=n.getStartColumn(e.modifiedStart),c=n.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),l=n.getEndColumn(e.modifiedStart+e.modifiedLength-1)),new gt(r,o,i,s,a,u,c,l)}}class yt{constructor(e,t,n,r,o){this.originalStartLineNumber=e,this.originalEndLineNumber=t,this.modifiedStartLineNumber=n,this.modifiedEndLineNumber=r,this.charChanges=o}static createFromDiffResult(e,t,n,r,o,i,s){let a,u,c,l,f;if(0===t.originalLength?(a=n.getStartLineNumber(t.originalStart)-1,u=0):(a=n.getStartLineNumber(t.originalStart),u=n.getEndLineNumber(t.originalStart+t.originalLength-1)),0===t.modifiedLength?(c=r.getStartLineNumber(t.modifiedStart)-1,l=0):(c=r.getStartLineNumber(t.modifiedStart),l=r.getEndLineNumber(t.modifiedStart+t.modifiedLength-1)),i&&t.originalLength>0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&o()){const i=n.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),a=r.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);let u=ht(i,a,o,!0).changes;s&&(u=function(e){if(e.length<=1)return e;const t=[e[0]];let n=t[0];for(let r=1,o=e.length;r<o;r++){const o=e[r],i=o.originalStart-(n.originalStart+n.originalLength),s=o.modifiedStart-(n.modifiedStart+n.modifiedLength);Math.min(i,s)<3?(n.originalLength=o.originalStart+o.originalLength-n.originalStart,n.modifiedLength=o.modifiedStart+o.modifiedLength-n.modifiedStart):(t.push(o),n=o)}return t}(u)),f=[];for(let e=0,t=u.length;e<t;e++)f.push(gt.createFromDiffChange(u[e],i,a))}return new yt(a,u,c,l,f)}}class bt{constructor(e,t,n){this.shouldComputeCharChanges=n.shouldComputeCharChanges,this.shouldPostProcessCharChanges=n.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=n.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=n.shouldMakePrettyDiff,this.originalLines=e,this.modifiedLines=t,this.original=new dt(e),this.modified=new dt(t),this.continueLineDiff=Ct(n.maxComputationTime),this.continueCharDiff=Ct(0===n.maxComputationTime?0:Math.min(n.maxComputationTime,5e3))}computeDiff(){if(1===this.original.lines.length&&0===this.original.lines[0].length)return 1===this.modified.lines.length&&0===this.modified.lines[0].length?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}]};if(1===this.modified.lines.length&&0===this.modified.lines[0].length)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}]};const e=ht(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),t=e.changes,n=e.quitEarly;if(this.shouldIgnoreTrimWhitespace){const e=[];for(let n=0,r=t.length;n<r;n++)e.push(yt.createFromDiffResult(this.shouldIgnoreTrimWhitespace,t[n],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:n,changes:e}}const r=[];let o=0,i=0;for(let e=-1,n=t.length;e<n;e++){const s=e+1<n?t[e+1]:null,a=s?s.originalStart:this.originalLines.length,u=s?s.modifiedStart:this.modifiedLines.length;for(;o<a&&i<u;){const e=this.originalLines[o],t=this.modifiedLines[i];if(e!==t){{let n=vt(e,1),s=vt(t,1);for(;n>1&&s>1&&e.charCodeAt(n-2)===t.charCodeAt(s-2);)n--,s--;(n>1||s>1)&&this._pushTrimWhitespaceCharChange(r,o+1,1,n,i+1,1,s)}{let n=Dt(e,1),s=Dt(t,1);const a=e.length+1,u=t.length+1;for(;n<a&&s<u&&e.charCodeAt(n-1)===e.charCodeAt(s-1);)n++,s++;(n<a||s<u)&&this._pushTrimWhitespaceCharChange(r,o+1,n,a,i+1,s,u)}}o++,i++}s&&(r.push(yt.createFromDiffResult(this.shouldIgnoreTrimWhitespace,s,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),o+=s.originalLength,i+=s.modifiedLength)}return{quitEarly:n,changes:r}}_pushTrimWhitespaceCharChange(e,t,n,r,o,i,s){if(this._mergeTrimWhitespaceCharChange(e,t,n,r,o,i,s))return;let a;this.shouldComputeCharChanges&&(a=[new gt(t,n,t,r,o,i,o,s)]),e.push(new yt(t,t,o,o,a))}_mergeTrimWhitespaceCharChange(e,t,n,r,o,i,s){const a=e.length;if(0===a)return!1;const u=e[a-1];return 0!==u.originalEndLineNumber&&0!==u.modifiedEndLineNumber&&u.originalEndLineNumber+1===t&&u.modifiedEndLineNumber+1===o&&(u.originalEndLineNumber=t,u.modifiedEndLineNumber=o,this.shouldComputeCharChanges&&u.charChanges&&u.charChanges.push(new gt(t,n,t,r,o,i,o,s)),!0)}}function vt(e,t){const n=function(e){for(let t=0,n=e.length;t<n;t++){const n=e.charCodeAt(t);if(32!==n&&9!==n)return t}return-1}(e);return-1===n?t:n+1}function Dt(e,t){const n=function(e,t=e.length-1){for(let n=t;n>=0;n--){const t=e.charCodeAt(n);if(32!==t&&9!==t)return n}return-1}(e);return-1===n?t:n+2}function Ct(e){if(0===e)return()=>!0;const t=Date.now();return()=>Date.now()-t<e}function Et(e){return e<0?0:e>255?255:0|e}function wt(e){return e<0?0:e>4294967295?4294967295:0|e}class At{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=wt(e);const n=this.values,r=this.prefixSum,o=t.length;return 0!==o&&(this.values=new Uint32Array(n.length+o),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e),e+o),this.values.set(t,e),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(e,t){return e=wt(e),t=wt(t),this.values[e]!==t&&(this.values[e]=t,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)}removeValues(e,t){e=wt(e),t=wt(t);const n=this.values,r=this.prefixSum;if(e>=n.length)return!1;const o=n.length-e;return t>=o&&(t=o),0!==t&&(this.values=new Uint32Array(n.length-t),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return 0===this.values.length?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=wt(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;0===t&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(let n=t;n<=e;n++)this.prefixSum[n]=this.prefixSum[n-1]+this.values[n];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let t=0,n=this.values.length-1,r=0,o=0,i=0;for(;t<=n;)if(r=t+(n-t)/2|0,o=this.prefixSum[r],i=o-this.values[r],e<i)n=r-1;else{if(!(e>=o))break;t=r+1}return new St(r,e-i)}}class St{constructor(e,t){this.index=e,this.remainder=t,this._prefixSumIndexOfResultBrand=void 0,this.index=e,this.remainder=t}}const xt=function(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const n of"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?")e.indexOf(n)>=0||(t+="\\"+n);return t+="\\s]+)",new RegExp(t,"g")}(),_t={maxLen:1e3,windowSize:15,timeBudget:150};function Ft(e,t,n,r,o=_t){if(n.length>o.maxLen){let i=e-o.maxLen/2;return i<0?i=0:r+=i,Ft(e,t,n=n.substring(i,e+o.maxLen/2),r,o)}const i=Date.now(),s=e-1-r;let a=-1,u=null;for(let e=1;!(Date.now()-i>=o.timeBudget);e++){const r=s-o.windowSize*e;t.lastIndex=Math.max(0,r);const i=Tt(t,n,s,a);if(!i&&u)break;if(u=i,r<=0)break;a=r}if(u){const e={word:u[0],startColumn:r+1+u.index,endColumn:r+1+u.index+u[0].length};return t.lastIndex=0,e}return null}function Tt(e,t,n,r){let o;for(;o=e.exec(t);){const t=o.index||0;if(t<=n&&e.lastIndex>=n)return o;if(r>0&&t>r)return null}return null}class kt{constructor(e){const t=Et(e);this._defaultValue=t,this._asciiMap=kt._createAsciiMap(t),this._map=new Map}static _createAsciiMap(e){const t=new Uint8Array(256);for(let n=0;n<256;n++)t[n]=e;return t}set(e,t){const n=Et(t);e>=0&&e<256?this._asciiMap[e]=n:this._map.set(e,n)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}}class Nt{constructor(e,t,n){const r=new Uint8Array(e*t);for(let o=0,i=e*t;o<i;o++)r[o]=n;this._data=r,this.rows=e,this.cols=t}get(e,t){return this._data[e*this.cols+t]}set(e,t,n){this._data[e*this.cols+t]=n}}class Ot{constructor(e){let t=0,n=0;for(let r=0,o=e.length;r<o;r++){const[o,i,s]=e[r];i>t&&(t=i),o>n&&(n=o),s>n&&(n=s)}t++,n++;const r=new Nt(n,t,0);for(let t=0,n=e.length;t<n;t++){const[n,o,i]=e[t];r.set(n,o,i)}this._states=r,this._maxCharCode=t}nextState(e,t){return t<0||t>=this._maxCharCode?0:this._states.get(e,t)}}let Lt=null,Mt=null;class Pt{static _createLink(e,t,n,r,o){let i=o-1;do{const n=t.charCodeAt(i);if(2!==e.get(n))break;i--}while(i>r);if(r>0){const e=t.charCodeAt(r-1),n=t.charCodeAt(i);(40===e&&41===n||91===e&&93===n||123===e&&125===n)&&i--}return{range:{startLineNumber:n,startColumn:r+1,endLineNumber:n,endColumn:i+2},url:t.substring(r,i+1)}}static computeLinks(e,t=function(){return null===Lt&&(Lt=new Ot([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),Lt}()){const n=function(){if(null===Mt){Mt=new kt(0);const e=" \t<>'\"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…";for(let t=0;t<e.length;t++)Mt.set(e.charCodeAt(t),1);const t=".,;";for(let e=0;e<t.length;e++)Mt.set(t.charCodeAt(e),2)}return Mt}(),r=[];for(let o=1,i=e.getLineCount();o<=i;o++){const i=e.getLineContent(o),s=i.length;let a=0,u=0,c=0,l=1,f=!1,p=!1,h=!1,d=!1;for(;a<s;){let e=!1;const s=i.charCodeAt(a);if(13===l){let t;switch(s){case 40:f=!0,t=0;break;case 41:t=f?0:1;break;case 91:h=!0,p=!0,t=0;break;case 93:h=!1,t=p?0:1;break;case 123:d=!0,t=0;break;case 125:t=d?0:1;break;case 39:t=34===c||96===c?0:1;break;case 34:t=39===c||96===c?0:1;break;case 96:t=39===c||34===c?0:1;break;case 42:t=42===c?1:0;break;case 124:t=124===c?1:0;break;case 32:t=h?0:1;break;default:t=n.get(s)}1===t&&(r.push(Pt._createLink(n,i,o,u,a)),e=!0)}else if(12===l){let t;91===s?(p=!0,t=0):t=n.get(s),1===t?e=!0:l=13}else l=t.nextState(l,s),0===l&&(e=!0);e&&(l=1,f=!1,p=!1,d=!1,u=a+1,c=s),a++}13===l&&r.push(Pt._createLink(n,i,o,u,s))}return r}}class It{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(e,t,n,r,o){if(e&&t){const n=this.doNavigateValueSet(t,o);if(n)return{range:e,value:n}}if(n&&r){const e=this.doNavigateValueSet(r,o);if(e)return{range:n,value:e}}return null}doNavigateValueSet(e,t){const n=this.numberReplace(e,t);return null!==n?n:this.textReplace(e,t)}numberReplace(e,t){const n=Math.pow(10,e.length-(e.lastIndexOf(".")+1));let r=Number(e),o=parseFloat(e);return isNaN(r)||isNaN(o)||r!==o?null:0!==r||t?(r=Math.floor(r*n),r+=t?n:-n,String(r/n)):null}textReplace(e,t){return this.valueSetsReplace(this._defaultValueSet,e,t)}valueSetsReplace(e,t,n){let r=null;for(let o=0,i=e.length;null===r&&o<i;o++)r=this.valueSetReplace(e[o],t,n);return r}valueSetReplace(e,t,n){let r=e.indexOf(t);return r>=0?(r+=n?1:-1,r<0?r=e.length-1:r%=e.length,e[r]):null}}It.INSTANCE=new It;const Bt=Object.freeze((function(e,t){const n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}}));var Rt;!function(e){e.isCancellationToken=function(t){return t===e.None||t===e.Cancelled||t instanceof jt||!(!t||"object"!=typeof t)&&"boolean"==typeof t.isCancellationRequested&&"function"==typeof t.onCancellationRequested},e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:K.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Bt})}(Rt||(Rt={}));class jt{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?Bt:(this._emitter||(this._emitter=new J),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class Vt{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const $t=new Vt,Ut=new Vt,Wt=new Vt,Kt=new Array(230),qt={},Ht=[],zt=Object.create(null),Yt=Object.create(null),Jt=[],Gt=[];for(let e=0;e<=193;e++)Jt[e]=-1;for(let e=0;e<=127;e++)Gt[e]=-1;var Xt;!function(){const e="",t=[[0,1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[0,1,1,"Hyper",0,e,0,e,e,e],[0,1,2,"Super",0,e,0,e,e,e],[0,1,3,"Fn",0,e,0,e,e,e],[0,1,4,"FnLock",0,e,0,e,e,e],[0,1,5,"Suspend",0,e,0,e,e,e],[0,1,6,"Resume",0,e,0,e,e,e],[0,1,7,"Turbo",0,e,0,e,e,e],[0,1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[0,1,9,"WakeUp",0,e,0,e,e,e],[31,0,10,"KeyA",31,"A",65,"VK_A",e,e],[32,0,11,"KeyB",32,"B",66,"VK_B",e,e],[33,0,12,"KeyC",33,"C",67,"VK_C",e,e],[34,0,13,"KeyD",34,"D",68,"VK_D",e,e],[35,0,14,"KeyE",35,"E",69,"VK_E",e,e],[36,0,15,"KeyF",36,"F",70,"VK_F",e,e],[37,0,16,"KeyG",37,"G",71,"VK_G",e,e],[38,0,17,"KeyH",38,"H",72,"VK_H",e,e],[39,0,18,"KeyI",39,"I",73,"VK_I",e,e],[40,0,19,"KeyJ",40,"J",74,"VK_J",e,e],[41,0,20,"KeyK",41,"K",75,"VK_K",e,e],[42,0,21,"KeyL",42,"L",76,"VK_L",e,e],[43,0,22,"KeyM",43,"M",77,"VK_M",e,e],[44,0,23,"KeyN",44,"N",78,"VK_N",e,e],[45,0,24,"KeyO",45,"O",79,"VK_O",e,e],[46,0,25,"KeyP",46,"P",80,"VK_P",e,e],[47,0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[48,0,27,"KeyR",48,"R",82,"VK_R",e,e],[49,0,28,"KeyS",49,"S",83,"VK_S",e,e],[50,0,29,"KeyT",50,"T",84,"VK_T",e,e],[51,0,30,"KeyU",51,"U",85,"VK_U",e,e],[52,0,31,"KeyV",52,"V",86,"VK_V",e,e],[53,0,32,"KeyW",53,"W",87,"VK_W",e,e],[54,0,33,"KeyX",54,"X",88,"VK_X",e,e],[55,0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[56,0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[22,0,36,"Digit1",22,"1",49,"VK_1",e,e],[23,0,37,"Digit2",23,"2",50,"VK_2",e,e],[24,0,38,"Digit3",24,"3",51,"VK_3",e,e],[25,0,39,"Digit4",25,"4",52,"VK_4",e,e],[26,0,40,"Digit5",26,"5",53,"VK_5",e,e],[27,0,41,"Digit6",27,"6",54,"VK_6",e,e],[28,0,42,"Digit7",28,"7",55,"VK_7",e,e],[29,0,43,"Digit8",29,"8",56,"VK_8",e,e],[30,0,44,"Digit9",30,"9",57,"VK_9",e,e],[21,0,45,"Digit0",21,"0",48,"VK_0",e,e],[3,1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[9,1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[2,1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[10,1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[83,0,51,"Minus",83,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[81,0,52,"Equal",81,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[87,0,53,"BracketLeft",87,"[",219,"VK_OEM_4","[","OEM_4"],[89,0,54,"BracketRight",89,"]",221,"VK_OEM_6","]","OEM_6"],[88,0,55,"Backslash",88,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,0,56,"IntlHash",0,e,0,e,e,e],[80,0,57,"Semicolon",80,";",186,"VK_OEM_1",";","OEM_1"],[90,0,58,"Quote",90,"'",222,"VK_OEM_7","'","OEM_7"],[86,0,59,"Backquote",86,"`",192,"VK_OEM_3","`","OEM_3"],[82,0,60,"Comma",82,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[84,0,61,"Period",84,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[85,0,62,"Slash",85,"/",191,"VK_OEM_2","/","OEM_2"],[8,1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",e,e],[59,1,64,"F1",59,"F1",112,"VK_F1",e,e],[60,1,65,"F2",60,"F2",113,"VK_F2",e,e],[61,1,66,"F3",61,"F3",114,"VK_F3",e,e],[62,1,67,"F4",62,"F4",115,"VK_F4",e,e],[63,1,68,"F5",63,"F5",116,"VK_F5",e,e],[64,1,69,"F6",64,"F6",117,"VK_F6",e,e],[65,1,70,"F7",65,"F7",118,"VK_F7",e,e],[66,1,71,"F8",66,"F8",119,"VK_F8",e,e],[67,1,72,"F9",67,"F9",120,"VK_F9",e,e],[68,1,73,"F10",68,"F10",121,"VK_F10",e,e],[69,1,74,"F11",69,"F11",122,"VK_F11",e,e],[70,1,75,"F12",70,"F12",123,"VK_F12",e,e],[0,1,76,"PrintScreen",0,e,0,e,e,e],[79,1,77,"ScrollLock",79,"ScrollLock",145,"VK_SCROLL",e,e],[7,1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[19,1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[14,1,80,"Home",14,"Home",36,"VK_HOME",e,e],[11,1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[20,1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[13,1,83,"End",13,"End",35,"VK_END",e,e],[12,1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[17,1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[15,1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[18,1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[16,1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[78,1,89,"NumLock",78,"NumLock",144,"VK_NUMLOCK",e,e],[108,1,90,"NumpadDivide",108,"NumPad_Divide",111,"VK_DIVIDE",e,e],[103,1,91,"NumpadMultiply",103,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[106,1,92,"NumpadSubtract",106,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[104,1,93,"NumpadAdd",104,"NumPad_Add",107,"VK_ADD",e,e],[3,1,94,"NumpadEnter",3,e,0,e,e,e],[94,1,95,"Numpad1",94,"NumPad1",97,"VK_NUMPAD1",e,e],[95,1,96,"Numpad2",95,"NumPad2",98,"VK_NUMPAD2",e,e],[96,1,97,"Numpad3",96,"NumPad3",99,"VK_NUMPAD3",e,e],[97,1,98,"Numpad4",97,"NumPad4",100,"VK_NUMPAD4",e,e],[98,1,99,"Numpad5",98,"NumPad5",101,"VK_NUMPAD5",e,e],[99,1,100,"Numpad6",99,"NumPad6",102,"VK_NUMPAD6",e,e],[100,1,101,"Numpad7",100,"NumPad7",103,"VK_NUMPAD7",e,e],[101,1,102,"Numpad8",101,"NumPad8",104,"VK_NUMPAD8",e,e],[102,1,103,"Numpad9",102,"NumPad9",105,"VK_NUMPAD9",e,e],[93,1,104,"Numpad0",93,"NumPad0",96,"VK_NUMPAD0",e,e],[107,1,105,"NumpadDecimal",107,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[92,0,106,"IntlBackslash",92,"OEM_102",226,"VK_OEM_102",e,e],[58,1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[0,1,108,"Power",0,e,0,e,e,e],[0,1,109,"NumpadEqual",0,e,0,e,e,e],[71,1,110,"F13",71,"F13",124,"VK_F13",e,e],[72,1,111,"F14",72,"F14",125,"VK_F14",e,e],[73,1,112,"F15",73,"F15",126,"VK_F15",e,e],[74,1,113,"F16",74,"F16",127,"VK_F16",e,e],[75,1,114,"F17",75,"F17",128,"VK_F17",e,e],[76,1,115,"F18",76,"F18",129,"VK_F18",e,e],[77,1,116,"F19",77,"F19",130,"VK_F19",e,e],[0,1,117,"F20",0,e,0,"VK_F20",e,e],[0,1,118,"F21",0,e,0,"VK_F21",e,e],[0,1,119,"F22",0,e,0,"VK_F22",e,e],[0,1,120,"F23",0,e,0,"VK_F23",e,e],[0,1,121,"F24",0,e,0,"VK_F24",e,e],[0,1,122,"Open",0,e,0,e,e,e],[0,1,123,"Help",0,e,0,e,e,e],[0,1,124,"Select",0,e,0,e,e,e],[0,1,125,"Again",0,e,0,e,e,e],[0,1,126,"Undo",0,e,0,e,e,e],[0,1,127,"Cut",0,e,0,e,e,e],[0,1,128,"Copy",0,e,0,e,e,e],[0,1,129,"Paste",0,e,0,e,e,e],[0,1,130,"Find",0,e,0,e,e,e],[0,1,131,"AudioVolumeMute",112,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[0,1,132,"AudioVolumeUp",113,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[0,1,133,"AudioVolumeDown",114,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[105,1,134,"NumpadComma",105,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[110,0,135,"IntlRo",110,"ABNT_C1",193,"VK_ABNT_C1",e,e],[0,1,136,"KanaMode",0,e,0,e,e,e],[0,0,137,"IntlYen",0,e,0,e,e,e],[0,1,138,"Convert",0,e,0,e,e,e],[0,1,139,"NonConvert",0,e,0,e,e,e],[0,1,140,"Lang1",0,e,0,e,e,e],[0,1,141,"Lang2",0,e,0,e,e,e],[0,1,142,"Lang3",0,e,0,e,e,e],[0,1,143,"Lang4",0,e,0,e,e,e],[0,1,144,"Lang5",0,e,0,e,e,e],[0,1,145,"Abort",0,e,0,e,e,e],[0,1,146,"Props",0,e,0,e,e,e],[0,1,147,"NumpadParenLeft",0,e,0,e,e,e],[0,1,148,"NumpadParenRight",0,e,0,e,e,e],[0,1,149,"NumpadBackspace",0,e,0,e,e,e],[0,1,150,"NumpadMemoryStore",0,e,0,e,e,e],[0,1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[0,1,152,"NumpadMemoryClear",0,e,0,e,e,e],[0,1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[0,1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[0,1,155,"NumpadClear",126,"Clear",12,"VK_CLEAR",e,e],[0,1,156,"NumpadClearEntry",0,e,0,e,e,e],[5,1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[4,1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[6,1,0,e,6,"Alt",18,"VK_MENU",e,e],[57,1,0,e,57,"Meta",0,"VK_COMMAND",e,e],[5,1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[4,1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[6,1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[57,1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[5,1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[4,1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[6,1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[57,1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[0,1,165,"BrightnessUp",0,e,0,e,e,e],[0,1,166,"BrightnessDown",0,e,0,e,e,e],[0,1,167,"MediaPlay",0,e,0,e,e,e],[0,1,168,"MediaRecord",0,e,0,e,e,e],[0,1,169,"MediaFastForward",0,e,0,e,e,e],[0,1,170,"MediaRewind",0,e,0,e,e,e],[114,1,171,"MediaTrackNext",119,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[115,1,172,"MediaTrackPrevious",120,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[116,1,173,"MediaStop",121,"MediaStop",178,"VK_MEDIA_STOP",e,e],[0,1,174,"Eject",0,e,0,e,e,e],[117,1,175,"MediaPlayPause",122,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[0,1,176,"MediaSelect",123,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[0,1,177,"LaunchMail",124,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[0,1,178,"LaunchApp2",125,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[0,1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[0,1,180,"SelectTask",0,e,0,e,e,e],[0,1,181,"LaunchScreenSaver",0,e,0,e,e,e],[0,1,182,"BrowserSearch",115,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[0,1,183,"BrowserHome",116,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[112,1,184,"BrowserBack",117,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[113,1,185,"BrowserForward",118,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[0,1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[0,1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[0,1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[0,1,189,"ZoomToggle",0,e,0,e,e,e],[0,1,190,"MailReply",0,e,0,e,e,e],[0,1,191,"MailForward",0,e,0,e,e,e],[0,1,192,"MailSend",0,e,0,e,e,e],[109,1,0,e,109,"KeyInComposition",229,e,e,e],[111,1,0,e,111,"ABNT_C2",194,"VK_ABNT_C2",e,e],[91,1,0,e,91,"OEM_8",223,"VK_OEM_8",e,e],[0,1,0,e,0,e,0,"VK_KANA",e,e],[0,1,0,e,0,e,0,"VK_HANGUL",e,e],[0,1,0,e,0,e,0,"VK_JUNJA",e,e],[0,1,0,e,0,e,0,"VK_FINAL",e,e],[0,1,0,e,0,e,0,"VK_HANJA",e,e],[0,1,0,e,0,e,0,"VK_KANJI",e,e],[0,1,0,e,0,e,0,"VK_CONVERT",e,e],[0,1,0,e,0,e,0,"VK_NONCONVERT",e,e],[0,1,0,e,0,e,0,"VK_ACCEPT",e,e],[0,1,0,e,0,e,0,"VK_MODECHANGE",e,e],[0,1,0,e,0,e,0,"VK_SELECT",e,e],[0,1,0,e,0,e,0,"VK_PRINT",e,e],[0,1,0,e,0,e,0,"VK_EXECUTE",e,e],[0,1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[0,1,0,e,0,e,0,"VK_HELP",e,e],[0,1,0,e,0,e,0,"VK_APPS",e,e],[0,1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[0,1,0,e,0,e,0,"VK_PACKET",e,e],[0,1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[0,1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[0,1,0,e,0,e,0,"VK_ATTN",e,e],[0,1,0,e,0,e,0,"VK_CRSEL",e,e],[0,1,0,e,0,e,0,"VK_EXSEL",e,e],[0,1,0,e,0,e,0,"VK_EREOF",e,e],[0,1,0,e,0,e,0,"VK_PLAY",e,e],[0,1,0,e,0,e,0,"VK_ZOOM",e,e],[0,1,0,e,0,e,0,"VK_NONAME",e,e],[0,1,0,e,0,e,0,"VK_PA1",e,e],[0,1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]];let n=[],r=[];for(const e of t){const[t,o,i,s,a,u,c,l,f,p]=e;if(r[i]||(r[i]=!0,Ht[i]=s,zt[s]=i,Yt[s.toLowerCase()]=i,o&&(Jt[i]=a,0!==a&&3!==a&&5!==a&&4!==a&&6!==a&&57!==a&&(Gt[a]=i))),!n[a]){if(n[a]=!0,!u)throw new Error(`String representation missing for key code ${a} around scan code ${s}`);$t.define(a,u),Ut.define(a,f||u),Wt.define(a,p||f||u)}c&&(Kt[c]=a),l&&(qt[l]=a)}Gt[3]=46}(),function(e){e.toString=function(e){return $t.keyCodeToStr(e)},e.fromString=function(e){return $t.strToKeyCode(e)},e.toUserSettingsUS=function(e){return Ut.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return Wt.keyCodeToStr(e)},e.fromUserSettings=function(e){return Ut.strToKeyCode(e)||Wt.strToKeyCode(e)},e.toElectronAccelerator=function(e){if(e>=93&&e<=108)return null;switch(e){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return $t.keyCodeToStr(e)}}(Xt||(Xt={}));class Qt extends pt{constructor(e,t,n,r){super(e,t,n,r),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=n,this.positionColumn=r}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return Qt.selectionsEqual(this,e)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,t){return 0===this.getDirection()?new Qt(this.startLineNumber,this.startColumn,e,t):new Qt(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new ft(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new ft(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,t){return 0===this.getDirection()?new Qt(e,t,this.endLineNumber,this.endColumn):new Qt(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new Qt(e.lineNumber,e.column,t.lineNumber,t.column)}static fromRange(e,t){return 0===t?new Qt(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new Qt(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new Qt(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n++)if(!this.selectionsEqual(e[n],t[n]))return!1;return!0}static isISelection(e){return e&&"number"==typeof e.selectionStartLineNumber&&"number"==typeof e.selectionStartColumn&&"number"==typeof e.positionLineNumber&&"number"==typeof e.positionColumn}static createWithDirection(e,t,n,r,o){return 0===o?new Qt(e,t,n,r):new Qt(n,r,e,t)}}var Zt,en,tn,nn,rn,on,sn,an,un,cn,ln,fn,pn,hn,dn,mn,gn,yn,bn,vn,Dn,Cn,En,wn,An,Sn,xn,_n,Fn,Tn,kn,Nn,On,Ln,Mn,Pn,In,Bn,Rn,jn,Vn,$n,Un,Wn,Kn,qn,Hn,zn,Yn=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{u(r.next(e))}catch(e){i(e)}}function a(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))};class Jn extends m{constructor(e,t,n){super(),this._registry=e,this._languageId=t,this._factory=n,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}get isResolved(){return this._isResolved}dispose(){this._isDisposed=!0,super.dispose()}resolve(){return Yn(this,void 0,void 0,(function*(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}))}_create(){return Yn(this,void 0,void 0,(function*(){const e=yield Promise.resolve(this._factory.createTokenizationSupport());this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))}))}}class Gn{constructor(e,t,n){this.id=e,this.definition=t,this.description=n,Gn._allCodicons.push(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}static getAll(){return Gn._allCodicons}}Gn._allCodicons=[],Gn.add=new Gn("add",{fontCharacter:"\\ea60"}),Gn.plus=new Gn("plus",Gn.add.definition),Gn.gistNew=new Gn("gist-new",Gn.add.definition),Gn.repoCreate=new Gn("repo-create",Gn.add.definition),Gn.lightbulb=new Gn("lightbulb",{fontCharacter:"\\ea61"}),Gn.lightBulb=new Gn("light-bulb",{fontCharacter:"\\ea61"}),Gn.repo=new Gn("repo",{fontCharacter:"\\ea62"}),Gn.repoDelete=new Gn("repo-delete",{fontCharacter:"\\ea62"}),Gn.gistFork=new Gn("gist-fork",{fontCharacter:"\\ea63"}),Gn.repoForked=new Gn("repo-forked",{fontCharacter:"\\ea63"}),Gn.gitPullRequest=new Gn("git-pull-request",{fontCharacter:"\\ea64"}),Gn.gitPullRequestAbandoned=new Gn("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),Gn.recordKeys=new Gn("record-keys",{fontCharacter:"\\ea65"}),Gn.keyboard=new Gn("keyboard",{fontCharacter:"\\ea65"}),Gn.tag=new Gn("tag",{fontCharacter:"\\ea66"}),Gn.tagAdd=new Gn("tag-add",{fontCharacter:"\\ea66"}),Gn.tagRemove=new Gn("tag-remove",{fontCharacter:"\\ea66"}),Gn.person=new Gn("person",{fontCharacter:"\\ea67"}),Gn.personFollow=new Gn("person-follow",{fontCharacter:"\\ea67"}),Gn.personOutline=new Gn("person-outline",{fontCharacter:"\\ea67"}),Gn.personFilled=new Gn("person-filled",{fontCharacter:"\\ea67"}),Gn.gitBranch=new Gn("git-branch",{fontCharacter:"\\ea68"}),Gn.gitBranchCreate=new Gn("git-branch-create",{fontCharacter:"\\ea68"}),Gn.gitBranchDelete=new Gn("git-branch-delete",{fontCharacter:"\\ea68"}),Gn.sourceControl=new Gn("source-control",{fontCharacter:"\\ea68"}),Gn.mirror=new Gn("mirror",{fontCharacter:"\\ea69"}),Gn.mirrorPublic=new Gn("mirror-public",{fontCharacter:"\\ea69"}),Gn.star=new Gn("star",{fontCharacter:"\\ea6a"}),Gn.starAdd=new Gn("star-add",{fontCharacter:"\\ea6a"}),Gn.starDelete=new Gn("star-delete",{fontCharacter:"\\ea6a"}),Gn.starEmpty=new Gn("star-empty",{fontCharacter:"\\ea6a"}),Gn.comment=new Gn("comment",{fontCharacter:"\\ea6b"}),Gn.commentAdd=new Gn("comment-add",{fontCharacter:"\\ea6b"}),Gn.alert=new Gn("alert",{fontCharacter:"\\ea6c"}),Gn.warning=new Gn("warning",{fontCharacter:"\\ea6c"}),Gn.search=new Gn("search",{fontCharacter:"\\ea6d"}),Gn.searchSave=new Gn("search-save",{fontCharacter:"\\ea6d"}),Gn.logOut=new Gn("log-out",{fontCharacter:"\\ea6e"}),Gn.signOut=new Gn("sign-out",{fontCharacter:"\\ea6e"}),Gn.logIn=new Gn("log-in",{fontCharacter:"\\ea6f"}),Gn.signIn=new Gn("sign-in",{fontCharacter:"\\ea6f"}),Gn.eye=new Gn("eye",{fontCharacter:"\\ea70"}),Gn.eyeUnwatch=new Gn("eye-unwatch",{fontCharacter:"\\ea70"}),Gn.eyeWatch=new Gn("eye-watch",{fontCharacter:"\\ea70"}),Gn.circleFilled=new Gn("circle-filled",{fontCharacter:"\\ea71"}),Gn.primitiveDot=new Gn("primitive-dot",{fontCharacter:"\\ea71"}),Gn.closeDirty=new Gn("close-dirty",{fontCharacter:"\\ea71"}),Gn.debugBreakpoint=new Gn("debug-breakpoint",{fontCharacter:"\\ea71"}),Gn.debugBreakpointDisabled=new Gn("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),Gn.debugHint=new Gn("debug-hint",{fontCharacter:"\\ea71"}),Gn.primitiveSquare=new Gn("primitive-square",{fontCharacter:"\\ea72"}),Gn.edit=new Gn("edit",{fontCharacter:"\\ea73"}),Gn.pencil=new Gn("pencil",{fontCharacter:"\\ea73"}),Gn.info=new Gn("info",{fontCharacter:"\\ea74"}),Gn.issueOpened=new Gn("issue-opened",{fontCharacter:"\\ea74"}),Gn.gistPrivate=new Gn("gist-private",{fontCharacter:"\\ea75"}),Gn.gitForkPrivate=new Gn("git-fork-private",{fontCharacter:"\\ea75"}),Gn.lock=new Gn("lock",{fontCharacter:"\\ea75"}),Gn.mirrorPrivate=new Gn("mirror-private",{fontCharacter:"\\ea75"}),Gn.close=new Gn("close",{fontCharacter:"\\ea76"}),Gn.removeClose=new Gn("remove-close",{fontCharacter:"\\ea76"}),Gn.x=new Gn("x",{fontCharacter:"\\ea76"}),Gn.repoSync=new Gn("repo-sync",{fontCharacter:"\\ea77"}),Gn.sync=new Gn("sync",{fontCharacter:"\\ea77"}),Gn.clone=new Gn("clone",{fontCharacter:"\\ea78"}),Gn.desktopDownload=new Gn("desktop-download",{fontCharacter:"\\ea78"}),Gn.beaker=new Gn("beaker",{fontCharacter:"\\ea79"}),Gn.microscope=new Gn("microscope",{fontCharacter:"\\ea79"}),Gn.vm=new Gn("vm",{fontCharacter:"\\ea7a"}),Gn.deviceDesktop=new Gn("device-desktop",{fontCharacter:"\\ea7a"}),Gn.file=new Gn("file",{fontCharacter:"\\ea7b"}),Gn.fileText=new Gn("file-text",{fontCharacter:"\\ea7b"}),Gn.more=new Gn("more",{fontCharacter:"\\ea7c"}),Gn.ellipsis=new Gn("ellipsis",{fontCharacter:"\\ea7c"}),Gn.kebabHorizontal=new Gn("kebab-horizontal",{fontCharacter:"\\ea7c"}),Gn.mailReply=new Gn("mail-reply",{fontCharacter:"\\ea7d"}),Gn.reply=new Gn("reply",{fontCharacter:"\\ea7d"}),Gn.organization=new Gn("organization",{fontCharacter:"\\ea7e"}),Gn.organizationFilled=new Gn("organization-filled",{fontCharacter:"\\ea7e"}),Gn.organizationOutline=new Gn("organization-outline",{fontCharacter:"\\ea7e"}),Gn.newFile=new Gn("new-file",{fontCharacter:"\\ea7f"}),Gn.fileAdd=new Gn("file-add",{fontCharacter:"\\ea7f"}),Gn.newFolder=new Gn("new-folder",{fontCharacter:"\\ea80"}),Gn.fileDirectoryCreate=new Gn("file-directory-create",{fontCharacter:"\\ea80"}),Gn.trash=new Gn("trash",{fontCharacter:"\\ea81"}),Gn.trashcan=new Gn("trashcan",{fontCharacter:"\\ea81"}),Gn.history=new Gn("history",{fontCharacter:"\\ea82"}),Gn.clock=new Gn("clock",{fontCharacter:"\\ea82"}),Gn.folder=new Gn("folder",{fontCharacter:"\\ea83"}),Gn.fileDirectory=new Gn("file-directory",{fontCharacter:"\\ea83"}),Gn.symbolFolder=new Gn("symbol-folder",{fontCharacter:"\\ea83"}),Gn.logoGithub=new Gn("logo-github",{fontCharacter:"\\ea84"}),Gn.markGithub=new Gn("mark-github",{fontCharacter:"\\ea84"}),Gn.github=new Gn("github",{fontCharacter:"\\ea84"}),Gn.terminal=new Gn("terminal",{fontCharacter:"\\ea85"}),Gn.console=new Gn("console",{fontCharacter:"\\ea85"}),Gn.repl=new Gn("repl",{fontCharacter:"\\ea85"}),Gn.zap=new Gn("zap",{fontCharacter:"\\ea86"}),Gn.symbolEvent=new Gn("symbol-event",{fontCharacter:"\\ea86"}),Gn.error=new Gn("error",{fontCharacter:"\\ea87"}),Gn.stop=new Gn("stop",{fontCharacter:"\\ea87"}),Gn.variable=new Gn("variable",{fontCharacter:"\\ea88"}),Gn.symbolVariable=new Gn("symbol-variable",{fontCharacter:"\\ea88"}),Gn.array=new Gn("array",{fontCharacter:"\\ea8a"}),Gn.symbolArray=new Gn("symbol-array",{fontCharacter:"\\ea8a"}),Gn.symbolModule=new Gn("symbol-module",{fontCharacter:"\\ea8b"}),Gn.symbolPackage=new Gn("symbol-package",{fontCharacter:"\\ea8b"}),Gn.symbolNamespace=new Gn("symbol-namespace",{fontCharacter:"\\ea8b"}),Gn.symbolObject=new Gn("symbol-object",{fontCharacter:"\\ea8b"}),Gn.symbolMethod=new Gn("symbol-method",{fontCharacter:"\\ea8c"}),Gn.symbolFunction=new Gn("symbol-function",{fontCharacter:"\\ea8c"}),Gn.symbolConstructor=new Gn("symbol-constructor",{fontCharacter:"\\ea8c"}),Gn.symbolBoolean=new Gn("symbol-boolean",{fontCharacter:"\\ea8f"}),Gn.symbolNull=new Gn("symbol-null",{fontCharacter:"\\ea8f"}),Gn.symbolNumeric=new Gn("symbol-numeric",{fontCharacter:"\\ea90"}),Gn.symbolNumber=new Gn("symbol-number",{fontCharacter:"\\ea90"}),Gn.symbolStructure=new Gn("symbol-structure",{fontCharacter:"\\ea91"}),Gn.symbolStruct=new Gn("symbol-struct",{fontCharacter:"\\ea91"}),Gn.symbolParameter=new Gn("symbol-parameter",{fontCharacter:"\\ea92"}),Gn.symbolTypeParameter=new Gn("symbol-type-parameter",{fontCharacter:"\\ea92"}),Gn.symbolKey=new Gn("symbol-key",{fontCharacter:"\\ea93"}),Gn.symbolText=new Gn("symbol-text",{fontCharacter:"\\ea93"}),Gn.symbolReference=new Gn("symbol-reference",{fontCharacter:"\\ea94"}),Gn.goToFile=new Gn("go-to-file",{fontCharacter:"\\ea94"}),Gn.symbolEnum=new Gn("symbol-enum",{fontCharacter:"\\ea95"}),Gn.symbolValue=new Gn("symbol-value",{fontCharacter:"\\ea95"}),Gn.symbolRuler=new Gn("symbol-ruler",{fontCharacter:"\\ea96"}),Gn.symbolUnit=new Gn("symbol-unit",{fontCharacter:"\\ea96"}),Gn.activateBreakpoints=new Gn("activate-breakpoints",{fontCharacter:"\\ea97"}),Gn.archive=new Gn("archive",{fontCharacter:"\\ea98"}),Gn.arrowBoth=new Gn("arrow-both",{fontCharacter:"\\ea99"}),Gn.arrowDown=new Gn("arrow-down",{fontCharacter:"\\ea9a"}),Gn.arrowLeft=new Gn("arrow-left",{fontCharacter:"\\ea9b"}),Gn.arrowRight=new Gn("arrow-right",{fontCharacter:"\\ea9c"}),Gn.arrowSmallDown=new Gn("arrow-small-down",{fontCharacter:"\\ea9d"}),Gn.arrowSmallLeft=new Gn("arrow-small-left",{fontCharacter:"\\ea9e"}),Gn.arrowSmallRight=new Gn("arrow-small-right",{fontCharacter:"\\ea9f"}),Gn.arrowSmallUp=new Gn("arrow-small-up",{fontCharacter:"\\eaa0"}),Gn.arrowUp=new Gn("arrow-up",{fontCharacter:"\\eaa1"}),Gn.bell=new Gn("bell",{fontCharacter:"\\eaa2"}),Gn.bold=new Gn("bold",{fontCharacter:"\\eaa3"}),Gn.book=new Gn("book",{fontCharacter:"\\eaa4"}),Gn.bookmark=new Gn("bookmark",{fontCharacter:"\\eaa5"}),Gn.debugBreakpointConditionalUnverified=new Gn("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),Gn.debugBreakpointConditional=new Gn("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),Gn.debugBreakpointConditionalDisabled=new Gn("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),Gn.debugBreakpointDataUnverified=new Gn("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),Gn.debugBreakpointData=new Gn("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),Gn.debugBreakpointDataDisabled=new Gn("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),Gn.debugBreakpointLogUnverified=new Gn("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),Gn.debugBreakpointLog=new Gn("debug-breakpoint-log",{fontCharacter:"\\eaab"}),Gn.debugBreakpointLogDisabled=new Gn("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),Gn.briefcase=new Gn("briefcase",{fontCharacter:"\\eaac"}),Gn.broadcast=new Gn("broadcast",{fontCharacter:"\\eaad"}),Gn.browser=new Gn("browser",{fontCharacter:"\\eaae"}),Gn.bug=new Gn("bug",{fontCharacter:"\\eaaf"}),Gn.calendar=new Gn("calendar",{fontCharacter:"\\eab0"}),Gn.caseSensitive=new Gn("case-sensitive",{fontCharacter:"\\eab1"}),Gn.check=new Gn("check",{fontCharacter:"\\eab2"}),Gn.checklist=new Gn("checklist",{fontCharacter:"\\eab3"}),Gn.chevronDown=new Gn("chevron-down",{fontCharacter:"\\eab4"}),Gn.dropDownButton=new Gn("drop-down-button",Gn.chevronDown.definition),Gn.chevronLeft=new Gn("chevron-left",{fontCharacter:"\\eab5"}),Gn.chevronRight=new Gn("chevron-right",{fontCharacter:"\\eab6"}),Gn.chevronUp=new Gn("chevron-up",{fontCharacter:"\\eab7"}),Gn.chromeClose=new Gn("chrome-close",{fontCharacter:"\\eab8"}),Gn.chromeMaximize=new Gn("chrome-maximize",{fontCharacter:"\\eab9"}),Gn.chromeMinimize=new Gn("chrome-minimize",{fontCharacter:"\\eaba"}),Gn.chromeRestore=new Gn("chrome-restore",{fontCharacter:"\\eabb"}),Gn.circleOutline=new Gn("circle-outline",{fontCharacter:"\\eabc"}),Gn.debugBreakpointUnverified=new Gn("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),Gn.circleSlash=new Gn("circle-slash",{fontCharacter:"\\eabd"}),Gn.circuitBoard=new Gn("circuit-board",{fontCharacter:"\\eabe"}),Gn.clearAll=new Gn("clear-all",{fontCharacter:"\\eabf"}),Gn.clippy=new Gn("clippy",{fontCharacter:"\\eac0"}),Gn.closeAll=new Gn("close-all",{fontCharacter:"\\eac1"}),Gn.cloudDownload=new Gn("cloud-download",{fontCharacter:"\\eac2"}),Gn.cloudUpload=new Gn("cloud-upload",{fontCharacter:"\\eac3"}),Gn.code=new Gn("code",{fontCharacter:"\\eac4"}),Gn.collapseAll=new Gn("collapse-all",{fontCharacter:"\\eac5"}),Gn.colorMode=new Gn("color-mode",{fontCharacter:"\\eac6"}),Gn.commentDiscussion=new Gn("comment-discussion",{fontCharacter:"\\eac7"}),Gn.compareChanges=new Gn("compare-changes",{fontCharacter:"\\eafd"}),Gn.creditCard=new Gn("credit-card",{fontCharacter:"\\eac9"}),Gn.dash=new Gn("dash",{fontCharacter:"\\eacc"}),Gn.dashboard=new Gn("dashboard",{fontCharacter:"\\eacd"}),Gn.database=new Gn("database",{fontCharacter:"\\eace"}),Gn.debugContinue=new Gn("debug-continue",{fontCharacter:"\\eacf"}),Gn.debugDisconnect=new Gn("debug-disconnect",{fontCharacter:"\\ead0"}),Gn.debugPause=new Gn("debug-pause",{fontCharacter:"\\ead1"}),Gn.debugRestart=new Gn("debug-restart",{fontCharacter:"\\ead2"}),Gn.debugStart=new Gn("debug-start",{fontCharacter:"\\ead3"}),Gn.debugStepInto=new Gn("debug-step-into",{fontCharacter:"\\ead4"}),Gn.debugStepOut=new Gn("debug-step-out",{fontCharacter:"\\ead5"}),Gn.debugStepOver=new Gn("debug-step-over",{fontCharacter:"\\ead6"}),Gn.debugStop=new Gn("debug-stop",{fontCharacter:"\\ead7"}),Gn.debug=new Gn("debug",{fontCharacter:"\\ead8"}),Gn.deviceCameraVideo=new Gn("device-camera-video",{fontCharacter:"\\ead9"}),Gn.deviceCamera=new Gn("device-camera",{fontCharacter:"\\eada"}),Gn.deviceMobile=new Gn("device-mobile",{fontCharacter:"\\eadb"}),Gn.diffAdded=new Gn("diff-added",{fontCharacter:"\\eadc"}),Gn.diffIgnored=new Gn("diff-ignored",{fontCharacter:"\\eadd"}),Gn.diffModified=new Gn("diff-modified",{fontCharacter:"\\eade"}),Gn.diffRemoved=new Gn("diff-removed",{fontCharacter:"\\eadf"}),Gn.diffRenamed=new Gn("diff-renamed",{fontCharacter:"\\eae0"}),Gn.diff=new Gn("diff",{fontCharacter:"\\eae1"}),Gn.discard=new Gn("discard",{fontCharacter:"\\eae2"}),Gn.editorLayout=new Gn("editor-layout",{fontCharacter:"\\eae3"}),Gn.emptyWindow=new Gn("empty-window",{fontCharacter:"\\eae4"}),Gn.exclude=new Gn("exclude",{fontCharacter:"\\eae5"}),Gn.extensions=new Gn("extensions",{fontCharacter:"\\eae6"}),Gn.eyeClosed=new Gn("eye-closed",{fontCharacter:"\\eae7"}),Gn.fileBinary=new Gn("file-binary",{fontCharacter:"\\eae8"}),Gn.fileCode=new Gn("file-code",{fontCharacter:"\\eae9"}),Gn.fileMedia=new Gn("file-media",{fontCharacter:"\\eaea"}),Gn.filePdf=new Gn("file-pdf",{fontCharacter:"\\eaeb"}),Gn.fileSubmodule=new Gn("file-submodule",{fontCharacter:"\\eaec"}),Gn.fileSymlinkDirectory=new Gn("file-symlink-directory",{fontCharacter:"\\eaed"}),Gn.fileSymlinkFile=new Gn("file-symlink-file",{fontCharacter:"\\eaee"}),Gn.fileZip=new Gn("file-zip",{fontCharacter:"\\eaef"}),Gn.files=new Gn("files",{fontCharacter:"\\eaf0"}),Gn.filter=new Gn("filter",{fontCharacter:"\\eaf1"}),Gn.flame=new Gn("flame",{fontCharacter:"\\eaf2"}),Gn.foldDown=new Gn("fold-down",{fontCharacter:"\\eaf3"}),Gn.foldUp=new Gn("fold-up",{fontCharacter:"\\eaf4"}),Gn.fold=new Gn("fold",{fontCharacter:"\\eaf5"}),Gn.folderActive=new Gn("folder-active",{fontCharacter:"\\eaf6"}),Gn.folderOpened=new Gn("folder-opened",{fontCharacter:"\\eaf7"}),Gn.gear=new Gn("gear",{fontCharacter:"\\eaf8"}),Gn.gift=new Gn("gift",{fontCharacter:"\\eaf9"}),Gn.gistSecret=new Gn("gist-secret",{fontCharacter:"\\eafa"}),Gn.gist=new Gn("gist",{fontCharacter:"\\eafb"}),Gn.gitCommit=new Gn("git-commit",{fontCharacter:"\\eafc"}),Gn.gitCompare=new Gn("git-compare",{fontCharacter:"\\eafd"}),Gn.gitMerge=new Gn("git-merge",{fontCharacter:"\\eafe"}),Gn.githubAction=new Gn("github-action",{fontCharacter:"\\eaff"}),Gn.githubAlt=new Gn("github-alt",{fontCharacter:"\\eb00"}),Gn.globe=new Gn("globe",{fontCharacter:"\\eb01"}),Gn.grabber=new Gn("grabber",{fontCharacter:"\\eb02"}),Gn.graph=new Gn("graph",{fontCharacter:"\\eb03"}),Gn.gripper=new Gn("gripper",{fontCharacter:"\\eb04"}),Gn.heart=new Gn("heart",{fontCharacter:"\\eb05"}),Gn.home=new Gn("home",{fontCharacter:"\\eb06"}),Gn.horizontalRule=new Gn("horizontal-rule",{fontCharacter:"\\eb07"}),Gn.hubot=new Gn("hubot",{fontCharacter:"\\eb08"}),Gn.inbox=new Gn("inbox",{fontCharacter:"\\eb09"}),Gn.issueClosed=new Gn("issue-closed",{fontCharacter:"\\eba4"}),Gn.issueReopened=new Gn("issue-reopened",{fontCharacter:"\\eb0b"}),Gn.issues=new Gn("issues",{fontCharacter:"\\eb0c"}),Gn.italic=new Gn("italic",{fontCharacter:"\\eb0d"}),Gn.jersey=new Gn("jersey",{fontCharacter:"\\eb0e"}),Gn.json=new Gn("json",{fontCharacter:"\\eb0f"}),Gn.kebabVertical=new Gn("kebab-vertical",{fontCharacter:"\\eb10"}),Gn.key=new Gn("key",{fontCharacter:"\\eb11"}),Gn.law=new Gn("law",{fontCharacter:"\\eb12"}),Gn.lightbulbAutofix=new Gn("lightbulb-autofix",{fontCharacter:"\\eb13"}),Gn.linkExternal=new Gn("link-external",{fontCharacter:"\\eb14"}),Gn.link=new Gn("link",{fontCharacter:"\\eb15"}),Gn.listOrdered=new Gn("list-ordered",{fontCharacter:"\\eb16"}),Gn.listUnordered=new Gn("list-unordered",{fontCharacter:"\\eb17"}),Gn.liveShare=new Gn("live-share",{fontCharacter:"\\eb18"}),Gn.loading=new Gn("loading",{fontCharacter:"\\eb19"}),Gn.location=new Gn("location",{fontCharacter:"\\eb1a"}),Gn.mailRead=new Gn("mail-read",{fontCharacter:"\\eb1b"}),Gn.mail=new Gn("mail",{fontCharacter:"\\eb1c"}),Gn.markdown=new Gn("markdown",{fontCharacter:"\\eb1d"}),Gn.megaphone=new Gn("megaphone",{fontCharacter:"\\eb1e"}),Gn.mention=new Gn("mention",{fontCharacter:"\\eb1f"}),Gn.milestone=new Gn("milestone",{fontCharacter:"\\eb20"}),Gn.mortarBoard=new Gn("mortar-board",{fontCharacter:"\\eb21"}),Gn.move=new Gn("move",{fontCharacter:"\\eb22"}),Gn.multipleWindows=new Gn("multiple-windows",{fontCharacter:"\\eb23"}),Gn.mute=new Gn("mute",{fontCharacter:"\\eb24"}),Gn.noNewline=new Gn("no-newline",{fontCharacter:"\\eb25"}),Gn.note=new Gn("note",{fontCharacter:"\\eb26"}),Gn.octoface=new Gn("octoface",{fontCharacter:"\\eb27"}),Gn.openPreview=new Gn("open-preview",{fontCharacter:"\\eb28"}),Gn.package_=new Gn("package",{fontCharacter:"\\eb29"}),Gn.paintcan=new Gn("paintcan",{fontCharacter:"\\eb2a"}),Gn.pin=new Gn("pin",{fontCharacter:"\\eb2b"}),Gn.play=new Gn("play",{fontCharacter:"\\eb2c"}),Gn.run=new Gn("run",{fontCharacter:"\\eb2c"}),Gn.plug=new Gn("plug",{fontCharacter:"\\eb2d"}),Gn.preserveCase=new Gn("preserve-case",{fontCharacter:"\\eb2e"}),Gn.preview=new Gn("preview",{fontCharacter:"\\eb2f"}),Gn.project=new Gn("project",{fontCharacter:"\\eb30"}),Gn.pulse=new Gn("pulse",{fontCharacter:"\\eb31"}),Gn.question=new Gn("question",{fontCharacter:"\\eb32"}),Gn.quote=new Gn("quote",{fontCharacter:"\\eb33"}),Gn.radioTower=new Gn("radio-tower",{fontCharacter:"\\eb34"}),Gn.reactions=new Gn("reactions",{fontCharacter:"\\eb35"}),Gn.references=new Gn("references",{fontCharacter:"\\eb36"}),Gn.refresh=new Gn("refresh",{fontCharacter:"\\eb37"}),Gn.regex=new Gn("regex",{fontCharacter:"\\eb38"}),Gn.remoteExplorer=new Gn("remote-explorer",{fontCharacter:"\\eb39"}),Gn.remote=new Gn("remote",{fontCharacter:"\\eb3a"}),Gn.remove=new Gn("remove",{fontCharacter:"\\eb3b"}),Gn.replaceAll=new Gn("replace-all",{fontCharacter:"\\eb3c"}),Gn.replace=new Gn("replace",{fontCharacter:"\\eb3d"}),Gn.repoClone=new Gn("repo-clone",{fontCharacter:"\\eb3e"}),Gn.repoForcePush=new Gn("repo-force-push",{fontCharacter:"\\eb3f"}),Gn.repoPull=new Gn("repo-pull",{fontCharacter:"\\eb40"}),Gn.repoPush=new Gn("repo-push",{fontCharacter:"\\eb41"}),Gn.report=new Gn("report",{fontCharacter:"\\eb42"}),Gn.requestChanges=new Gn("request-changes",{fontCharacter:"\\eb43"}),Gn.rocket=new Gn("rocket",{fontCharacter:"\\eb44"}),Gn.rootFolderOpened=new Gn("root-folder-opened",{fontCharacter:"\\eb45"}),Gn.rootFolder=new Gn("root-folder",{fontCharacter:"\\eb46"}),Gn.rss=new Gn("rss",{fontCharacter:"\\eb47"}),Gn.ruby=new Gn("ruby",{fontCharacter:"\\eb48"}),Gn.saveAll=new Gn("save-all",{fontCharacter:"\\eb49"}),Gn.saveAs=new Gn("save-as",{fontCharacter:"\\eb4a"}),Gn.save=new Gn("save",{fontCharacter:"\\eb4b"}),Gn.screenFull=new Gn("screen-full",{fontCharacter:"\\eb4c"}),Gn.screenNormal=new Gn("screen-normal",{fontCharacter:"\\eb4d"}),Gn.searchStop=new Gn("search-stop",{fontCharacter:"\\eb4e"}),Gn.server=new Gn("server",{fontCharacter:"\\eb50"}),Gn.settingsGear=new Gn("settings-gear",{fontCharacter:"\\eb51"}),Gn.settings=new Gn("settings",{fontCharacter:"\\eb52"}),Gn.shield=new Gn("shield",{fontCharacter:"\\eb53"}),Gn.smiley=new Gn("smiley",{fontCharacter:"\\eb54"}),Gn.sortPrecedence=new Gn("sort-precedence",{fontCharacter:"\\eb55"}),Gn.splitHorizontal=new Gn("split-horizontal",{fontCharacter:"\\eb56"}),Gn.splitVertical=new Gn("split-vertical",{fontCharacter:"\\eb57"}),Gn.squirrel=new Gn("squirrel",{fontCharacter:"\\eb58"}),Gn.starFull=new Gn("star-full",{fontCharacter:"\\eb59"}),Gn.starHalf=new Gn("star-half",{fontCharacter:"\\eb5a"}),Gn.symbolClass=new Gn("symbol-class",{fontCharacter:"\\eb5b"}),Gn.symbolColor=new Gn("symbol-color",{fontCharacter:"\\eb5c"}),Gn.symbolCustomColor=new Gn("symbol-customcolor",{fontCharacter:"\\eb5c"}),Gn.symbolConstant=new Gn("symbol-constant",{fontCharacter:"\\eb5d"}),Gn.symbolEnumMember=new Gn("symbol-enum-member",{fontCharacter:"\\eb5e"}),Gn.symbolField=new Gn("symbol-field",{fontCharacter:"\\eb5f"}),Gn.symbolFile=new Gn("symbol-file",{fontCharacter:"\\eb60"}),Gn.symbolInterface=new Gn("symbol-interface",{fontCharacter:"\\eb61"}),Gn.symbolKeyword=new Gn("symbol-keyword",{fontCharacter:"\\eb62"}),Gn.symbolMisc=new Gn("symbol-misc",{fontCharacter:"\\eb63"}),Gn.symbolOperator=new Gn("symbol-operator",{fontCharacter:"\\eb64"}),Gn.symbolProperty=new Gn("symbol-property",{fontCharacter:"\\eb65"}),Gn.wrench=new Gn("wrench",{fontCharacter:"\\eb65"}),Gn.wrenchSubaction=new Gn("wrench-subaction",{fontCharacter:"\\eb65"}),Gn.symbolSnippet=new Gn("symbol-snippet",{fontCharacter:"\\eb66"}),Gn.tasklist=new Gn("tasklist",{fontCharacter:"\\eb67"}),Gn.telescope=new Gn("telescope",{fontCharacter:"\\eb68"}),Gn.textSize=new Gn("text-size",{fontCharacter:"\\eb69"}),Gn.threeBars=new Gn("three-bars",{fontCharacter:"\\eb6a"}),Gn.thumbsdown=new Gn("thumbsdown",{fontCharacter:"\\eb6b"}),Gn.thumbsup=new Gn("thumbsup",{fontCharacter:"\\eb6c"}),Gn.tools=new Gn("tools",{fontCharacter:"\\eb6d"}),Gn.triangleDown=new Gn("triangle-down",{fontCharacter:"\\eb6e"}),Gn.triangleLeft=new Gn("triangle-left",{fontCharacter:"\\eb6f"}),Gn.triangleRight=new Gn("triangle-right",{fontCharacter:"\\eb70"}),Gn.triangleUp=new Gn("triangle-up",{fontCharacter:"\\eb71"}),Gn.twitter=new Gn("twitter",{fontCharacter:"\\eb72"}),Gn.unfold=new Gn("unfold",{fontCharacter:"\\eb73"}),Gn.unlock=new Gn("unlock",{fontCharacter:"\\eb74"}),Gn.unmute=new Gn("unmute",{fontCharacter:"\\eb75"}),Gn.unverified=new Gn("unverified",{fontCharacter:"\\eb76"}),Gn.verified=new Gn("verified",{fontCharacter:"\\eb77"}),Gn.versions=new Gn("versions",{fontCharacter:"\\eb78"}),Gn.vmActive=new Gn("vm-active",{fontCharacter:"\\eb79"}),Gn.vmOutline=new Gn("vm-outline",{fontCharacter:"\\eb7a"}),Gn.vmRunning=new Gn("vm-running",{fontCharacter:"\\eb7b"}),Gn.watch=new Gn("watch",{fontCharacter:"\\eb7c"}),Gn.whitespace=new Gn("whitespace",{fontCharacter:"\\eb7d"}),Gn.wholeWord=new Gn("whole-word",{fontCharacter:"\\eb7e"}),Gn.window=new Gn("window",{fontCharacter:"\\eb7f"}),Gn.wordWrap=new Gn("word-wrap",{fontCharacter:"\\eb80"}),Gn.zoomIn=new Gn("zoom-in",{fontCharacter:"\\eb81"}),Gn.zoomOut=new Gn("zoom-out",{fontCharacter:"\\eb82"}),Gn.listFilter=new Gn("list-filter",{fontCharacter:"\\eb83"}),Gn.listFlat=new Gn("list-flat",{fontCharacter:"\\eb84"}),Gn.listSelection=new Gn("list-selection",{fontCharacter:"\\eb85"}),Gn.selection=new Gn("selection",{fontCharacter:"\\eb85"}),Gn.listTree=new Gn("list-tree",{fontCharacter:"\\eb86"}),Gn.debugBreakpointFunctionUnverified=new Gn("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),Gn.debugBreakpointFunction=new Gn("debug-breakpoint-function",{fontCharacter:"\\eb88"}),Gn.debugBreakpointFunctionDisabled=new Gn("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),Gn.debugStackframeActive=new Gn("debug-stackframe-active",{fontCharacter:"\\eb89"}),Gn.debugStackframeDot=new Gn("debug-stackframe-dot",{fontCharacter:"\\eb8a"}),Gn.debugStackframe=new Gn("debug-stackframe",{fontCharacter:"\\eb8b"}),Gn.debugStackframeFocused=new Gn("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),Gn.debugBreakpointUnsupported=new Gn("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),Gn.symbolString=new Gn("symbol-string",{fontCharacter:"\\eb8d"}),Gn.debugReverseContinue=new Gn("debug-reverse-continue",{fontCharacter:"\\eb8e"}),Gn.debugStepBack=new Gn("debug-step-back",{fontCharacter:"\\eb8f"}),Gn.debugRestartFrame=new Gn("debug-restart-frame",{fontCharacter:"\\eb90"}),Gn.callIncoming=new Gn("call-incoming",{fontCharacter:"\\eb92"}),Gn.callOutgoing=new Gn("call-outgoing",{fontCharacter:"\\eb93"}),Gn.menu=new Gn("menu",{fontCharacter:"\\eb94"}),Gn.expandAll=new Gn("expand-all",{fontCharacter:"\\eb95"}),Gn.feedback=new Gn("feedback",{fontCharacter:"\\eb96"}),Gn.groupByRefType=new Gn("group-by-ref-type",{fontCharacter:"\\eb97"}),Gn.ungroupByRefType=new Gn("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),Gn.account=new Gn("account",{fontCharacter:"\\eb99"}),Gn.bellDot=new Gn("bell-dot",{fontCharacter:"\\eb9a"}),Gn.debugConsole=new Gn("debug-console",{fontCharacter:"\\eb9b"}),Gn.library=new Gn("library",{fontCharacter:"\\eb9c"}),Gn.output=new Gn("output",{fontCharacter:"\\eb9d"}),Gn.runAll=new Gn("run-all",{fontCharacter:"\\eb9e"}),Gn.syncIgnored=new Gn("sync-ignored",{fontCharacter:"\\eb9f"}),Gn.pinned=new Gn("pinned",{fontCharacter:"\\eba0"}),Gn.githubInverted=new Gn("github-inverted",{fontCharacter:"\\eba1"}),Gn.debugAlt=new Gn("debug-alt",{fontCharacter:"\\eb91"}),Gn.serverProcess=new Gn("server-process",{fontCharacter:"\\eba2"}),Gn.serverEnvironment=new Gn("server-environment",{fontCharacter:"\\eba3"}),Gn.pass=new Gn("pass",{fontCharacter:"\\eba4"}),Gn.stopCircle=new Gn("stop-circle",{fontCharacter:"\\eba5"}),Gn.playCircle=new Gn("play-circle",{fontCharacter:"\\eba6"}),Gn.record=new Gn("record",{fontCharacter:"\\eba7"}),Gn.debugAltSmall=new Gn("debug-alt-small",{fontCharacter:"\\eba8"}),Gn.vmConnect=new Gn("vm-connect",{fontCharacter:"\\eba9"}),Gn.cloud=new Gn("cloud",{fontCharacter:"\\ebaa"}),Gn.merge=new Gn("merge",{fontCharacter:"\\ebab"}),Gn.exportIcon=new Gn("export",{fontCharacter:"\\ebac"}),Gn.graphLeft=new Gn("graph-left",{fontCharacter:"\\ebad"}),Gn.magnet=new Gn("magnet",{fontCharacter:"\\ebae"}),Gn.notebook=new Gn("notebook",{fontCharacter:"\\ebaf"}),Gn.redo=new Gn("redo",{fontCharacter:"\\ebb0"}),Gn.checkAll=new Gn("check-all",{fontCharacter:"\\ebb1"}),Gn.pinnedDirty=new Gn("pinned-dirty",{fontCharacter:"\\ebb2"}),Gn.passFilled=new Gn("pass-filled",{fontCharacter:"\\ebb3"}),Gn.circleLargeFilled=new Gn("circle-large-filled",{fontCharacter:"\\ebb4"}),Gn.circleLargeOutline=new Gn("circle-large-outline",{fontCharacter:"\\ebb5"}),Gn.combine=new Gn("combine",{fontCharacter:"\\ebb6"}),Gn.gather=new Gn("gather",{fontCharacter:"\\ebb6"}),Gn.table=new Gn("table",{fontCharacter:"\\ebb7"}),Gn.variableGroup=new Gn("variable-group",{fontCharacter:"\\ebb8"}),Gn.typeHierarchy=new Gn("type-hierarchy",{fontCharacter:"\\ebb9"}),Gn.typeHierarchySub=new Gn("type-hierarchy-sub",{fontCharacter:"\\ebba"}),Gn.typeHierarchySuper=new Gn("type-hierarchy-super",{fontCharacter:"\\ebbb"}),Gn.gitPullRequestCreate=new Gn("git-pull-request-create",{fontCharacter:"\\ebbc"}),Gn.runAbove=new Gn("run-above",{fontCharacter:"\\ebbd"}),Gn.runBelow=new Gn("run-below",{fontCharacter:"\\ebbe"}),Gn.notebookTemplate=new Gn("notebook-template",{fontCharacter:"\\ebbf"}),Gn.debugRerun=new Gn("debug-rerun",{fontCharacter:"\\ebc0"}),Gn.workspaceTrusted=new Gn("workspace-trusted",{fontCharacter:"\\ebc1"}),Gn.workspaceUntrusted=new Gn("workspace-untrusted",{fontCharacter:"\\ebc2"}),Gn.workspaceUnspecified=new Gn("workspace-unspecified",{fontCharacter:"\\ebc3"}),Gn.terminalCmd=new Gn("terminal-cmd",{fontCharacter:"\\ebc4"}),Gn.terminalDebian=new Gn("terminal-debian",{fontCharacter:"\\ebc5"}),Gn.terminalLinux=new Gn("terminal-linux",{fontCharacter:"\\ebc6"}),Gn.terminalPowershell=new Gn("terminal-powershell",{fontCharacter:"\\ebc7"}),Gn.terminalTmux=new Gn("terminal-tmux",{fontCharacter:"\\ebc8"}),Gn.terminalUbuntu=new Gn("terminal-ubuntu",{fontCharacter:"\\ebc9"}),Gn.terminalBash=new Gn("terminal-bash",{fontCharacter:"\\ebca"}),Gn.arrowSwap=new Gn("arrow-swap",{fontCharacter:"\\ebcb"}),Gn.copy=new Gn("copy",{fontCharacter:"\\ebcc"}),Gn.personAdd=new Gn("person-add",{fontCharacter:"\\ebcd"}),Gn.filterFilled=new Gn("filter-filled",{fontCharacter:"\\ebce"}),Gn.wand=new Gn("wand",{fontCharacter:"\\ebcf"}),Gn.debugLineByLine=new Gn("debug-line-by-line",{fontCharacter:"\\ebd0"}),Gn.inspect=new Gn("inspect",{fontCharacter:"\\ebd1"}),Gn.layers=new Gn("layers",{fontCharacter:"\\ebd2"}),Gn.layersDot=new Gn("layers-dot",{fontCharacter:"\\ebd3"}),Gn.layersActive=new Gn("layers-active",{fontCharacter:"\\ebd4"}),Gn.compass=new Gn("compass",{fontCharacter:"\\ebd5"}),Gn.compassDot=new Gn("compass-dot",{fontCharacter:"\\ebd6"}),Gn.compassActive=new Gn("compass-active",{fontCharacter:"\\ebd7"}),Gn.azure=new Gn("azure",{fontCharacter:"\\ebd8"}),Gn.issueDraft=new Gn("issue-draft",{fontCharacter:"\\ebd9"}),Gn.gitPullRequestClosed=new Gn("git-pull-request-closed",{fontCharacter:"\\ebda"}),Gn.gitPullRequestDraft=new Gn("git-pull-request-draft",{fontCharacter:"\\ebdb"}),Gn.debugAll=new Gn("debug-all",{fontCharacter:"\\ebdc"}),Gn.debugCoverage=new Gn("debug-coverage",{fontCharacter:"\\ebdd"}),Gn.runErrors=new Gn("run-errors",{fontCharacter:"\\ebde"}),Gn.folderLibrary=new Gn("folder-library",{fontCharacter:"\\ebdf"}),Gn.debugContinueSmall=new Gn("debug-continue-small",{fontCharacter:"\\ebe0"}),Gn.beakerStop=new Gn("beaker-stop",{fontCharacter:"\\ebe1"}),Gn.graphLine=new Gn("graph-line",{fontCharacter:"\\ebe2"}),Gn.graphScatter=new Gn("graph-scatter",{fontCharacter:"\\ebe3"}),Gn.pieChart=new Gn("pie-chart",{fontCharacter:"\\ebe4"}),Gn.bracket=new Gn("bracket",Gn.json.definition),Gn.bracketDot=new Gn("bracket-dot",{fontCharacter:"\\ebe5"}),Gn.bracketError=new Gn("bracket-error",{fontCharacter:"\\ebe6"}),Gn.lockSmall=new Gn("lock-small",{fontCharacter:"\\ebe7"}),Gn.azureDevops=new Gn("azure-devops",{fontCharacter:"\\ebe8"}),Gn.verifiedFilled=new Gn("verified-filled",{fontCharacter:"\\ebe9"}),Gn.newLine=new Gn("newline",{fontCharacter:"\\ebea"}),Gn.layout=new Gn("layout",{fontCharacter:"\\ebeb"}),Gn.layoutActivitybarLeft=new Gn("layout-activitybar-left",{fontCharacter:"\\ebec"}),Gn.layoutActivitybarRight=new Gn("layout-activitybar-right",{fontCharacter:"\\ebed"}),Gn.layoutPanelLeft=new Gn("layout-panel-left",{fontCharacter:"\\ebee"}),Gn.layoutPanelCenter=new Gn("layout-panel-center",{fontCharacter:"\\ebef"}),Gn.layoutPanelJustify=new Gn("layout-panel-justify",{fontCharacter:"\\ebf0"}),Gn.layoutPanelRight=new Gn("layout-panel-right",{fontCharacter:"\\ebf1"}),Gn.layoutPanel=new Gn("layout-panel",{fontCharacter:"\\ebf2"}),Gn.layoutSidebarLeft=new Gn("layout-sidebar-left",{fontCharacter:"\\ebf3"}),Gn.layoutSidebarRight=new Gn("layout-sidebar-right",{fontCharacter:"\\ebf4"}),Gn.layoutStatusbar=new Gn("layout-statusbar",{fontCharacter:"\\ebf5"}),Gn.layoutMenubar=new Gn("layout-menubar",{fontCharacter:"\\ebf6"}),Gn.layoutCentered=new Gn("layout-centered",{fontCharacter:"\\ebf7"}),Gn.target=new Gn("target",{fontCharacter:"\\ebf8"}),Gn.indent=new Gn("indent",{fontCharacter:"\\ebf9"}),Gn.recordSmall=new Gn("record-small",{fontCharacter:"\\ebfa"}),Gn.errorSmall=new Gn("error-small",{fontCharacter:"\\ebfb"}),Gn.arrowCircleDown=new Gn("arrow-circle-down",{fontCharacter:"\\ebfc"}),Gn.arrowCircleLeft=new Gn("arrow-circle-left",{fontCharacter:"\\ebfd"}),Gn.arrowCircleRight=new Gn("arrow-circle-right",{fontCharacter:"\\ebfe"}),Gn.arrowCircleUp=new Gn("arrow-circle-up",{fontCharacter:"\\ebff"}),Gn.dialogError=new Gn("dialog-error",Gn.error.definition),Gn.dialogWarning=new Gn("dialog-warning",Gn.warning.definition),Gn.dialogInfo=new Gn("dialog-info",Gn.info.definition),Gn.dialogClose=new Gn("dialog-close",Gn.close.definition),Gn.treeItemExpanded=new Gn("tree-item-expanded",Gn.chevronDown.definition),Gn.treeFilterOnTypeOn=new Gn("tree-filter-on-type-on",Gn.listFilter.definition),Gn.treeFilterOnTypeOff=new Gn("tree-filter-on-type-off",Gn.listSelection.definition),Gn.treeFilterClear=new Gn("tree-filter-clear",Gn.close.definition),Gn.treeItemLoading=new Gn("tree-item-loading",Gn.loading.definition),Gn.menuSelection=new Gn("menu-selection",Gn.check.definition),Gn.menuSubmenu=new Gn("menu-submenu",Gn.chevronRight.definition),Gn.menuBarMore=new Gn("menubar-more",Gn.more.definition),Gn.scrollbarButtonLeft=new Gn("scrollbar-button-left",Gn.triangleLeft.definition),Gn.scrollbarButtonRight=new Gn("scrollbar-button-right",Gn.triangleRight.definition),Gn.scrollbarButtonUp=new Gn("scrollbar-button-up",Gn.triangleUp.definition),Gn.scrollbarButtonDown=new Gn("scrollbar-button-down",Gn.triangleDown.definition),Gn.toolBarMore=new Gn("toolbar-more",Gn.more.definition),Gn.quickInputBack=new Gn("quick-input-back",Gn.arrowLeft.definition),function(e){e.iconNameSegment="[A-Za-z0-9]+",e.iconNameExpression="[A-Za-z0-9-]+",e.iconModifierExpression="~[A-Za-z]+",e.iconNameCharacter="[A-Za-z0-9~-]";const t=new RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function n(e){if(e instanceof Gn)return["codicon","codicon-"+e.id];const r=t.exec(e.id);if(!r)return n(Gn.error);let[,o,i]=r;const s=["codicon","codicon-"+o];return i&&s.push("codicon-modifier-"+i.substr(1)),s}e.asClassNameArray=n,e.asClassName=function(e){return n(e).join(" ")},e.asCSSSelector=function(e){return"."+n(e).join(".")}}(Zt||(Zt={}));!function(e){const t=new Map;t.set(0,Gn.symbolMethod),t.set(1,Gn.symbolFunction),t.set(2,Gn.symbolConstructor),t.set(3,Gn.symbolField),t.set(4,Gn.symbolVariable),t.set(5,Gn.symbolClass),t.set(6,Gn.symbolStruct),t.set(7,Gn.symbolInterface),t.set(8,Gn.symbolModule),t.set(9,Gn.symbolProperty),t.set(10,Gn.symbolEvent),t.set(11,Gn.symbolOperator),t.set(12,Gn.symbolUnit),t.set(13,Gn.symbolValue),t.set(15,Gn.symbolEnum),t.set(14,Gn.symbolConstant),t.set(15,Gn.symbolEnum),t.set(16,Gn.symbolEnumMember),t.set(17,Gn.symbolKeyword),t.set(27,Gn.symbolSnippet),t.set(18,Gn.symbolText),t.set(19,Gn.symbolColor),t.set(20,Gn.symbolFile),t.set(21,Gn.symbolReference),t.set(22,Gn.symbolCustomColor),t.set(23,Gn.symbolFolder),t.set(24,Gn.symbolTypeParameter),t.set(25,Gn.account),t.set(26,Gn.issues),e.toIcon=function(e){let n=t.get(e);return n||(console.info("No codicon found for CompletionItemKind "+e),n=Gn.symbolProperty),n};const n=new Map;n.set("method",0),n.set("function",1),n.set("constructor",2),n.set("field",3),n.set("variable",4),n.set("class",5),n.set("struct",6),n.set("interface",7),n.set("module",8),n.set("property",9),n.set("event",10),n.set("operator",11),n.set("unit",12),n.set("value",13),n.set("constant",14),n.set("enum",15),n.set("enum-member",16),n.set("enumMember",16),n.set("keyword",17),n.set("snippet",27),n.set("text",18),n.set("color",19),n.set("file",20),n.set("reference",21),n.set("customcolor",22),n.set("folder",23),n.set("type-parameter",24),n.set("typeParameter",24),n.set("account",25),n.set("issue",26),e.fromString=function(e,t){let r=n.get(e);return void 0!==r||t||(r=9),r}}(en||(en={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(tn||(tn={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(nn||(nn={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(rn||(rn={})),function(e){const t=new Map;t.set(0,Gn.symbolFile),t.set(1,Gn.symbolModule),t.set(2,Gn.symbolNamespace),t.set(3,Gn.symbolPackage),t.set(4,Gn.symbolClass),t.set(5,Gn.symbolMethod),t.set(6,Gn.symbolProperty),t.set(7,Gn.symbolField),t.set(8,Gn.symbolConstructor),t.set(9,Gn.symbolEnum),t.set(10,Gn.symbolInterface),t.set(11,Gn.symbolFunction),t.set(12,Gn.symbolVariable),t.set(13,Gn.symbolConstant),t.set(14,Gn.symbolString),t.set(15,Gn.symbolNumber),t.set(16,Gn.symbolBoolean),t.set(17,Gn.symbolArray),t.set(18,Gn.symbolObject),t.set(19,Gn.symbolKey),t.set(20,Gn.symbolNull),t.set(21,Gn.symbolEnumMember),t.set(22,Gn.symbolStruct),t.set(23,Gn.symbolEvent),t.set(24,Gn.symbolOperator),t.set(25,Gn.symbolTypeParameter),e.toIcon=function(e){let n=t.get(e);return n||(console.info("No codicon found for SymbolKind "+e),n=Gn.symbolProperty),n}}(on||(on={}));class Xn{constructor(e){this.value=e}}Xn.Comment=new Xn("comment"),Xn.Imports=new Xn("imports"),Xn.Region=new Xn("region"),function(e){e.is=function(e){return!(!e||"object"!=typeof e)&&"string"==typeof e.id&&"string"==typeof e.title}}(sn||(sn={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(an||(an={})),new class{constructor(){this._map=new Map,this._factories=new Map,this._onDidChange=new J,this.onDidChange=this._onDidChange.event,this._colorMap=null}fire(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})}register(e,t){return this._map.set(e,t),this.fire([e]),h((()=>{this._map.get(e)===t&&(this._map.delete(e),this.fire([e]))}))}registerFactory(e,t){var n;null===(n=this._factories.get(e))||void 0===n||n.dispose();const r=new Jn(this,e,t);return this._factories.set(e,r),h((()=>{const t=this._factories.get(e);t&&t===r&&(this._factories.delete(e),t.dispose())}))}getOrCreate(e){return Yn(this,void 0,void 0,(function*(){const t=this.get(e);if(t)return t;const n=this._factories.get(e);return!n||n.isResolved?null:(yield n.resolve(),this.get(e))}))}get(e){return this._map.get(e)||null}isResolved(e){if(this.get(e))return!0;const t=this._factories.get(e);return!(t&&!t.isResolved)}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._map.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}},function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"}(un||(un={})),function(e){e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"}(cn||(cn={})),function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Snippet=27]="Snippet"}(ln||(ln={})),function(e){e[e.Deprecated=1]="Deprecated"}(fn||(fn={})),function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"}(pn||(pn={})),function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"}(hn||(hn={})),function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"}(dn||(dn={})),function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(mn||(mn={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(gn||(gn={})),function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"}(yn||(yn={})),function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.autoClosingBrackets=5]="autoClosingBrackets",e[e.autoClosingDelete=6]="autoClosingDelete",e[e.autoClosingOvertype=7]="autoClosingOvertype",e[e.autoClosingQuotes=8]="autoClosingQuotes",e[e.autoIndent=9]="autoIndent",e[e.automaticLayout=10]="automaticLayout",e[e.autoSurround=11]="autoSurround",e[e.bracketPairColorization=12]="bracketPairColorization",e[e.guides=13]="guides",e[e.codeLens=14]="codeLens",e[e.codeLensFontFamily=15]="codeLensFontFamily",e[e.codeLensFontSize=16]="codeLensFontSize",e[e.colorDecorators=17]="colorDecorators",e[e.columnSelection=18]="columnSelection",e[e.comments=19]="comments",e[e.contextmenu=20]="contextmenu",e[e.copyWithSyntaxHighlighting=21]="copyWithSyntaxHighlighting",e[e.cursorBlinking=22]="cursorBlinking",e[e.cursorSmoothCaretAnimation=23]="cursorSmoothCaretAnimation",e[e.cursorStyle=24]="cursorStyle",e[e.cursorSurroundingLines=25]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=26]="cursorSurroundingLinesStyle",e[e.cursorWidth=27]="cursorWidth",e[e.disableLayerHinting=28]="disableLayerHinting",e[e.disableMonospaceOptimizations=29]="disableMonospaceOptimizations",e[e.domReadOnly=30]="domReadOnly",e[e.dragAndDrop=31]="dragAndDrop",e[e.emptySelectionClipboard=32]="emptySelectionClipboard",e[e.extraEditorClassName=33]="extraEditorClassName",e[e.fastScrollSensitivity=34]="fastScrollSensitivity",e[e.find=35]="find",e[e.fixedOverflowWidgets=36]="fixedOverflowWidgets",e[e.folding=37]="folding",e[e.foldingStrategy=38]="foldingStrategy",e[e.foldingHighlight=39]="foldingHighlight",e[e.foldingImportsByDefault=40]="foldingImportsByDefault",e[e.foldingMaximumRegions=41]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=42]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=43]="fontFamily",e[e.fontInfo=44]="fontInfo",e[e.fontLigatures=45]="fontLigatures",e[e.fontSize=46]="fontSize",e[e.fontWeight=47]="fontWeight",e[e.formatOnPaste=48]="formatOnPaste",e[e.formatOnType=49]="formatOnType",e[e.glyphMargin=50]="glyphMargin",e[e.gotoLocation=51]="gotoLocation",e[e.hideCursorInOverviewRuler=52]="hideCursorInOverviewRuler",e[e.hover=53]="hover",e[e.inDiffEditor=54]="inDiffEditor",e[e.inlineSuggest=55]="inlineSuggest",e[e.letterSpacing=56]="letterSpacing",e[e.lightbulb=57]="lightbulb",e[e.lineDecorationsWidth=58]="lineDecorationsWidth",e[e.lineHeight=59]="lineHeight",e[e.lineNumbers=60]="lineNumbers",e[e.lineNumbersMinChars=61]="lineNumbersMinChars",e[e.linkedEditing=62]="linkedEditing",e[e.links=63]="links",e[e.matchBrackets=64]="matchBrackets",e[e.minimap=65]="minimap",e[e.mouseStyle=66]="mouseStyle",e[e.mouseWheelScrollSensitivity=67]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=68]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=69]="multiCursorMergeOverlapping",e[e.multiCursorModifier=70]="multiCursorModifier",e[e.multiCursorPaste=71]="multiCursorPaste",e[e.occurrencesHighlight=72]="occurrencesHighlight",e[e.overviewRulerBorder=73]="overviewRulerBorder",e[e.overviewRulerLanes=74]="overviewRulerLanes",e[e.padding=75]="padding",e[e.parameterHints=76]="parameterHints",e[e.peekWidgetDefaultFocus=77]="peekWidgetDefaultFocus",e[e.definitionLinkOpensInPeek=78]="definitionLinkOpensInPeek",e[e.quickSuggestions=79]="quickSuggestions",e[e.quickSuggestionsDelay=80]="quickSuggestionsDelay",e[e.readOnly=81]="readOnly",e[e.renameOnType=82]="renameOnType",e[e.renderControlCharacters=83]="renderControlCharacters",e[e.renderFinalNewline=84]="renderFinalNewline",e[e.renderLineHighlight=85]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=86]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=87]="renderValidationDecorations",e[e.renderWhitespace=88]="renderWhitespace",e[e.revealHorizontalRightPadding=89]="revealHorizontalRightPadding",e[e.roundedSelection=90]="roundedSelection",e[e.rulers=91]="rulers",e[e.scrollbar=92]="scrollbar",e[e.scrollBeyondLastColumn=93]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=94]="scrollBeyondLastLine",e[e.scrollPredominantAxis=95]="scrollPredominantAxis",e[e.selectionClipboard=96]="selectionClipboard",e[e.selectionHighlight=97]="selectionHighlight",e[e.selectOnLineNumbers=98]="selectOnLineNumbers",e[e.showFoldingControls=99]="showFoldingControls",e[e.showUnused=100]="showUnused",e[e.snippetSuggestions=101]="snippetSuggestions",e[e.smartSelect=102]="smartSelect",e[e.smoothScrolling=103]="smoothScrolling",e[e.stickyTabStops=104]="stickyTabStops",e[e.stopRenderingLineAfter=105]="stopRenderingLineAfter",e[e.suggest=106]="suggest",e[e.suggestFontSize=107]="suggestFontSize",e[e.suggestLineHeight=108]="suggestLineHeight",e[e.suggestOnTriggerCharacters=109]="suggestOnTriggerCharacters",e[e.suggestSelection=110]="suggestSelection",e[e.tabCompletion=111]="tabCompletion",e[e.tabIndex=112]="tabIndex",e[e.unicodeHighlighting=113]="unicodeHighlighting",e[e.unusualLineTerminators=114]="unusualLineTerminators",e[e.useShadowDOM=115]="useShadowDOM",e[e.useTabStops=116]="useTabStops",e[e.wordSeparators=117]="wordSeparators",e[e.wordWrap=118]="wordWrap",e[e.wordWrapBreakAfterCharacters=119]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=120]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=121]="wordWrapColumn",e[e.wordWrapOverride1=122]="wordWrapOverride1",e[e.wordWrapOverride2=123]="wordWrapOverride2",e[e.wrappingIndent=124]="wrappingIndent",e[e.wrappingStrategy=125]="wrappingStrategy",e[e.showDeprecated=126]="showDeprecated",e[e.inlayHints=127]="inlayHints",e[e.editorClassName=128]="editorClassName",e[e.pixelRatio=129]="pixelRatio",e[e.tabFocusMode=130]="tabFocusMode",e[e.layoutInfo=131]="layoutInfo",e[e.wrappingInfo=132]="wrappingInfo"}(bn||(bn={})),function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(vn||(vn={})),function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"}(Dn||(Dn={})),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(Cn||(Cn={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(En||(En={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(wn||(wn={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(An||(An={})),function(e){e[e.DependsOnKbLayout=-1]="DependsOnKbLayout",e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.Digit0=21]="Digit0",e[e.Digit1=22]="Digit1",e[e.Digit2=23]="Digit2",e[e.Digit3=24]="Digit3",e[e.Digit4=25]="Digit4",e[e.Digit5=26]="Digit5",e[e.Digit6=27]="Digit6",e[e.Digit7=28]="Digit7",e[e.Digit8=29]="Digit8",e[e.Digit9=30]="Digit9",e[e.KeyA=31]="KeyA",e[e.KeyB=32]="KeyB",e[e.KeyC=33]="KeyC",e[e.KeyD=34]="KeyD",e[e.KeyE=35]="KeyE",e[e.KeyF=36]="KeyF",e[e.KeyG=37]="KeyG",e[e.KeyH=38]="KeyH",e[e.KeyI=39]="KeyI",e[e.KeyJ=40]="KeyJ",e[e.KeyK=41]="KeyK",e[e.KeyL=42]="KeyL",e[e.KeyM=43]="KeyM",e[e.KeyN=44]="KeyN",e[e.KeyO=45]="KeyO",e[e.KeyP=46]="KeyP",e[e.KeyQ=47]="KeyQ",e[e.KeyR=48]="KeyR",e[e.KeyS=49]="KeyS",e[e.KeyT=50]="KeyT",e[e.KeyU=51]="KeyU",e[e.KeyV=52]="KeyV",e[e.KeyW=53]="KeyW",e[e.KeyX=54]="KeyX",e[e.KeyY=55]="KeyY",e[e.KeyZ=56]="KeyZ",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.NumLock=78]="NumLock",e[e.ScrollLock=79]="ScrollLock",e[e.Semicolon=80]="Semicolon",e[e.Equal=81]="Equal",e[e.Comma=82]="Comma",e[e.Minus=83]="Minus",e[e.Period=84]="Period",e[e.Slash=85]="Slash",e[e.Backquote=86]="Backquote",e[e.BracketLeft=87]="BracketLeft",e[e.Backslash=88]="Backslash",e[e.BracketRight=89]="BracketRight",e[e.Quote=90]="Quote",e[e.OEM_8=91]="OEM_8",e[e.IntlBackslash=92]="IntlBackslash",e[e.Numpad0=93]="Numpad0",e[e.Numpad1=94]="Numpad1",e[e.Numpad2=95]="Numpad2",e[e.Numpad3=96]="Numpad3",e[e.Numpad4=97]="Numpad4",e[e.Numpad5=98]="Numpad5",e[e.Numpad6=99]="Numpad6",e[e.Numpad7=100]="Numpad7",e[e.Numpad8=101]="Numpad8",e[e.Numpad9=102]="Numpad9",e[e.NumpadMultiply=103]="NumpadMultiply",e[e.NumpadAdd=104]="NumpadAdd",e[e.NUMPAD_SEPARATOR=105]="NUMPAD_SEPARATOR",e[e.NumpadSubtract=106]="NumpadSubtract",e[e.NumpadDecimal=107]="NumpadDecimal",e[e.NumpadDivide=108]="NumpadDivide",e[e.KEY_IN_COMPOSITION=109]="KEY_IN_COMPOSITION",e[e.ABNT_C1=110]="ABNT_C1",e[e.ABNT_C2=111]="ABNT_C2",e[e.AudioVolumeMute=112]="AudioVolumeMute",e[e.AudioVolumeUp=113]="AudioVolumeUp",e[e.AudioVolumeDown=114]="AudioVolumeDown",e[e.BrowserSearch=115]="BrowserSearch",e[e.BrowserHome=116]="BrowserHome",e[e.BrowserBack=117]="BrowserBack",e[e.BrowserForward=118]="BrowserForward",e[e.MediaTrackNext=119]="MediaTrackNext",e[e.MediaTrackPrevious=120]="MediaTrackPrevious",e[e.MediaStop=121]="MediaStop",e[e.MediaPlayPause=122]="MediaPlayPause",e[e.LaunchMediaPlayer=123]="LaunchMediaPlayer",e[e.LaunchMail=124]="LaunchMail",e[e.LaunchApp2=125]="LaunchApp2",e[e.Clear=126]="Clear",e[e.MAX_VALUE=127]="MAX_VALUE"}(Sn||(Sn={})),function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(xn||(xn={})),function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"}(_n||(_n={})),function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"}(Fn||(Fn={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"}(Tn||(Tn={})),function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"}(kn||(kn={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(Nn||(Nn={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.None=2]="None"}(On||(On={})),function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"}(Ln||(Ln={})),function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"}(Mn||(Mn={})),function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"}(Pn||(Pn={})),function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"}(In||(In={})),function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(Bn||(Bn={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(Rn||(Rn={})),function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"}(jn||(jn={})),function(e){e[e.Deprecated=1]="Deprecated"}(Vn||(Vn={})),function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"}($n||($n={})),function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"}(Un||(Un={})),function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"}(Wn||(Wn={})),function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"}(Kn||(Kn={}));class Qn{static chord(e,t){return function(e,t){return(e|(65535&t)<<16>>>0)>>>0}(e,t)}}Qn.CtrlCmd=2048,Qn.Shift=1024,Qn.Alt=512,Qn.WinCtrl=256;function Zn(e,t,n,r,o){return function(e,t,n,r,o){if(0===r)return!0;const i=t.charCodeAt(r-1);if(0!==e.get(i))return!0;if(13===i||10===i)return!0;if(o>0){const n=t.charCodeAt(r);if(0!==e.get(n))return!0}return!1}(e,t,0,r,o)&&function(e,t,n,r,o){if(r+o===n)return!0;const i=t.charCodeAt(r+o);if(0!==e.get(i))return!0;if(13===i||10===i)return!0;if(o>0){const n=t.charCodeAt(r+o-1);if(0!==e.get(n))return!0}return!1}(e,t,n,r,o)}Object.prototype.hasOwnProperty,function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(qn||(qn={})),function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"}(Hn||(Hn={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(zn||(zn={}));class er{constructor(e,t){this._wordSeparators=e,this._searchRegex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(e){const t=e.length;let n;do{if(this._prevMatchStartIndex+this._prevMatchLength===t)return null;if(n=this._searchRegex.exec(e),!n)return null;const r=n.index,o=n[0].length;if(r===this._prevMatchStartIndex&&o===this._prevMatchLength){if(0===o){re(e,t,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=r,this._prevMatchLength=o,!this._wordSeparators||Zn(this._wordSeparators,e,t,r,o))return n}while(n);return null}}class tr{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=se.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const e=new Set;if(this.options.invisibleCharacters)for(const t of ae.codePoints)nr(String.fromCodePoint(t))||e.add(t);if(this.options.ambiguousCharacters)for(const t of this.ambiguousCharacters.getConfusableCodePoints())e.add(t);for(const t of this.allowedCodePoints)e.delete(t);return e}shouldHighlightNonBasicASCII(e,t){const n=e.codePointAt(0);if(this.allowedCodePoints.has(n))return 0;if(this.options.nonBasicASCII)return 1;let r=!1,o=!1;if(t)for(let e of t){const t=e.codePointAt(0),n=(i=e,oe.test(i));r=r||n,n||this.ambiguousCharacters.isAmbiguous(t)||ae.isInvisibleCharacter(t)||(o=!0)}var i;return!r&&o?0:this.options.invisibleCharacters&&!nr(e)&&ae.isInvisibleCharacter(n)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(n)?3:0}}function nr(e){return" "===e||"\n"===e||"\t"===e}var rr=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{u(r.next(e))}catch(e){i(e)}}function a(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))};class or extends class{constructor(e,t,n,r){this._uri=e,this._lines=t,this._eol=n,this._versionId=r,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return null===this._cachedTextValue&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const t=e.changes;for(const e of t)this._acceptDeleteRange(e.range),this._acceptInsertText(new ft(e.range.startLineNumber,e.range.startColumn),e.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const e=this._eol.length,t=this._lines.length,n=new Uint32Array(t);for(let r=0;r<t;r++)n[r]=this._lines[r].length+e;this._lineStarts=new At(n)}}_setLineText(e,t){this._lines[e]=t,this._lineStarts&&this._lineStarts.setValue(e,this._lines[e].length+this._eol.length)}_acceptDeleteRange(e){if(e.startLineNumber!==e.endLineNumber)this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.endLineNumber-1].substring(e.endColumn-1)),this._lines.splice(e.startLineNumber,e.endLineNumber-e.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(e.startLineNumber,e.endLineNumber-e.startLineNumber);else{if(e.startColumn===e.endColumn)return;this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.startLineNumber-1].substring(e.endColumn-1))}}_acceptInsertText(e,t){if(0===t.length)return;const n=t.split(/\r\n|\r|\n/);if(1===n.length)return void this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+n[0]+this._lines[e.lineNumber-1].substring(e.column-1));n[n.length-1]+=this._lines[e.lineNumber-1].substring(e.column-1),this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+n[0]);const r=new Uint32Array(n.length-1);for(let t=1;t<n.length;t++)this._lines.splice(e.lineNumber+t-1,0,n[t]),r[t-1]=n[t].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,r)}}{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(e){return this._lines[e-1]}getWordAtPosition(e,t){const n=Ft(e.column,function(e){let t=xt;if(e&&e instanceof RegExp)if(e.global)t=e;else{let n="g";e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.unicode&&(n+="u"),t=new RegExp(e.source,n)}return t.lastIndex=0,t}(t),this._lines[e.lineNumber-1],0);return n?new pt(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn):null}words(e){const t=this._lines,n=this._wordenize.bind(this);let r=0,o="",i=0,s=[];return{*[Symbol.iterator](){for(;;)if(i<s.length){const e=o.substring(s[i].start,s[i].end);i+=1,yield e}else{if(!(r<t.length))break;o=t[r],s=n(o,e),i=0,r+=1}}}}getLineWords(e,t){const n=this._lines[e-1],r=this._wordenize(n,t),o=[];for(const e of r)o.push({word:n.substring(e.start,e.end),startColumn:e.start+1,endColumn:e.end+1});return o}_wordenize(e,t){const n=[];let r;for(t.lastIndex=0;(r=t.exec(e))&&0!==r[0].length;)n.push({start:r.index,end:r.index+r[0].length});return n}getValueInRange(e){if((e=this._validateRange(e)).startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1);const t=this._eol,n=e.startLineNumber-1,r=e.endLineNumber-1,o=[];o.push(this._lines[n].substring(e.startColumn-1));for(let e=n+1;e<r;e++)o.push(this._lines[e]);return o.push(this._lines[r].substring(0,e.endColumn-1)),o.join(t)}offsetAt(e){return e=this._validatePosition(e),this._ensureLineStarts(),this._lineStarts.getPrefixSum(e.lineNumber-2)+(e.column-1)}positionAt(e){e=Math.floor(e),e=Math.max(0,e),this._ensureLineStarts();const t=this._lineStarts.getIndexOf(e),n=this._lines[t.index].length;return{lineNumber:1+t.index,column:1+Math.min(t.remainder,n)}}_validateRange(e){const t=this._validatePosition({lineNumber:e.startLineNumber,column:e.startColumn}),n=this._validatePosition({lineNumber:e.endLineNumber,column:e.endColumn});return t.lineNumber!==e.startLineNumber||t.column!==e.startColumn||n.lineNumber!==e.endLineNumber||n.column!==e.endColumn?{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:n.lineNumber,endColumn:n.column}:e}_validatePosition(e){if(!ft.isIPosition(e))throw new Error("bad position");let{lineNumber:t,column:n}=e,r=!1;if(t<1)t=1,n=1,r=!0;else if(t>this._lines.length)t=this._lines.length,n=this._lines[t-1].length+1,r=!0;else{const e=this._lines[t-1].length+1;n<1?(n=1,r=!0):n>e&&(n=e,r=!0)}return r?{lineNumber:t,column:n}:e}}class ir{constructor(e,t){this._host=e,this._models=Object.create(null),this._foreignModuleFactory=t,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(e){return this._models[e]}_getModels(){const e=[];return Object.keys(this._models).forEach((t=>e.push(this._models[t]))),e}acceptNewModel(e){this._models[e.url]=new or(et.parse(e.url),e.lines,e.EOL,e.versionId)}acceptModelChanged(e,t){this._models[e]&&this._models[e].onEvents(t)}acceptRemovedModel(e){this._models[e]&&delete this._models[e]}computeUnicodeHighlights(e,t,n){return rr(this,void 0,void 0,(function*(){const r=this._getModel(e);return r?class{static computeUnicodeHighlights(e,t,n){const r=n?n.startLineNumber:1,o=n?n.endLineNumber:e.getLineCount(),i=new tr(t),s=i.getCandidateCodePoints();let a;var u;a="allNonBasicAscii"===s?new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):new RegExp(`[${u=Array.from(s).map((e=>String.fromCodePoint(e))).join(""),u.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}]`,"g");const c=new er(null,a),l=[];let f,p=!1,h=0,d=0,m=0;e:for(let t=r,n=o;t<=n;t++){const n=e.getLineContent(t),r=n.length;c.reset(0);do{if(f=c.next(n),f){let e=f.index,o=f.index+f[0].length;e>0&&ee(n.charCodeAt(e-1))&&e--,o+1<r&&ee(n.charCodeAt(o-1))&&o++;const s=n.substring(e,o),a=Ft(e+1,xt,n,0),u=i.shouldHighlightNonBasicASCII(s,a?a.word:null);if(0!==u){3===u?h++:2===u?d++:1===u?m++:X();const n=1e3;if(l.length>=n){p=!0;break e}l.push(new pt(t,e+1,t,o+1))}}}while(f)}return{ranges:l,hasMore:p,ambiguousCharacterCount:h,invisibleCharacterCount:d,nonBasicAsciiCharacterCount:m}}static computeUnicodeHighlightReason(e,t){const n=new tr(t);switch(n.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{const r=e.codePointAt(0),o=n.ambiguousCharacters.getPrimaryConfusable(r),i=se.getLocales().filter((e=>!se.getInstance(new Set([...t.allowedLocales,e])).isAmbiguous(r)));return{kind:0,confusableWith:String.fromCodePoint(o),notAmbiguousInLocales:i}}case 1:return{kind:2}}}}.computeUnicodeHighlights(r,t,n):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}))}computeDiff(e,t,n,r){return rr(this,void 0,void 0,(function*(){const o=this._getModel(e),i=this._getModel(t);if(!o||!i)return null;const s=o.getLinesContent(),a=i.getLinesContent(),u=new bt(s,a,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:n,shouldMakePrettyDiff:!0,maxComputationTime:r}).computeDiff(),c=!(u.changes.length>0)&&this._modelsAreIdentical(o,i);return{quitEarly:u.quitEarly,identical:c,changes:u.changes}}))}_modelsAreIdentical(e,t){const n=e.getLineCount();if(n!==t.getLineCount())return!1;for(let r=1;r<=n;r++)if(e.getLineContent(r)!==t.getLineContent(r))return!1;return!0}computeMoreMinimalEdits(e,t){return rr(this,void 0,void 0,(function*(){const n=this._getModel(e);if(!n)return t;const r=[];let o;t=t.slice(0).sort(((e,t)=>e.range&&t.range?pt.compareRangesUsingStarts(e.range,t.range):(e.range?0:1)-(t.range?0:1)));for(let{range:e,text:i,eol:s}of t){if("number"==typeof s&&(o=s),pt.isEmpty(e)&&!i)continue;const t=n.getValueInRange(e);if(i=i.replace(/\r\n|\n|\r/g,n.eol),t===i)continue;if(Math.max(i.length,t.length)>ir._diffLimit){r.push({range:e,text:i});continue}const a=xe(t,i,!1),u=n.offsetAt(pt.lift(e).getStartPosition());for(const e of a){const t=n.positionAt(u+e.originalStart),o=n.positionAt(u+e.originalStart+e.originalLength),s={text:i.substr(e.modifiedStart,e.modifiedLength),range:{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:o.lineNumber,endColumn:o.column}};n.getValueInRange(s.range)!==s.text&&r.push(s)}}return"number"==typeof o&&r.push({eol:o,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),r}))}computeLinks(e){return rr(this,void 0,void 0,(function*(){const t=this._getModel(e);return t?function(e){return e&&"function"==typeof e.getLineCount&&"function"==typeof e.getLineContent?Pt.computeLinks(e):[]}(t):null}))}textualSuggest(e,t,n,r){return rr(this,void 0,void 0,(function*(){const o=new W(!0),i=new RegExp(n,r),s=new Set;e:for(let n of e){const e=this._getModel(n);if(e)for(let n of e.words(i))if(n!==t&&isNaN(Number(n))&&(s.add(n),s.size>ir._suggestionsLimit))break e}return{words:Array.from(s),duration:o.elapsed()}}))}computeWordRanges(e,t,n,r){return rr(this,void 0,void 0,(function*(){const o=this._getModel(e);if(!o)return Object.create(null);const i=new RegExp(n,r),s=Object.create(null);for(let e=t.startLineNumber;e<t.endLineNumber;e++){const t=o.getLineWords(e,i);for(const n of t){if(!isNaN(Number(n.word)))continue;let t=s[n.word];t||(t=[],s[n.word]=t),t.push({startLineNumber:e,startColumn:n.startColumn,endLineNumber:e,endColumn:n.endColumn})}}return s}))}navigateValueSet(e,t,n,r,o){return rr(this,void 0,void 0,(function*(){const i=this._getModel(e);if(!i)return null;const s=new RegExp(r,o);t.startColumn===t.endColumn&&(t={startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn+1});const a=i.getValueInRange(t),u=i.getWordAtPosition({lineNumber:t.startLineNumber,column:t.startColumn},s);if(!u)return null;const c=i.getValueInRange(u);return It.INSTANCE.navigateValueSet(t,a,u,c,n)}))}loadForeignModule(e,t,n){const r={host:function(e,t){const n=e=>function(){const n=Array.prototype.slice.call(arguments,0);return t(e,n)};let r={};for(const t of e)r[t]=n(t);return r}(n,((e,t)=>this._host.fhr(e,t))),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(r,t),Promise.resolve(G(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(e,t){if(!this._foreignModule||"function"!=typeof this._foreignModule[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(e){return Promise.reject(e)}}}ir._diffLimit=1e5,ir._suggestionsLimit=1e4,"function"==typeof importScripts&&(L.monaco={editor:void 0,languages:void 0,CancellationTokenSource:class{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new jt),this._token}cancel(){this._token?this._token instanceof jt&&this._token.cancel():this._token=Rt.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof jt&&this._token.dispose():this._token=Rt.None}},Emitter:J,KeyCode:Sn,KeyMod:Qn,Position:ft,Range:pt,Selection:Qt,SelectionDirection:Bn,MarkerSeverity:xn,MarkerTag:_n,Uri:et,Token:class{constructor(e,t,n){this._tokenBrand=void 0,this.offset=e,this.type=t,this.language=n}toString(){return"("+this.offset+", "+this.type+")"}}});let sr=!1;function ar(e){if(sr)return;sr=!0;const t=new ye((e=>{self.postMessage(e)}),(t=>new ir(t,e)));self.onmessage=e=>{t.onmessage(e.data)}}self.onmessage=e=>{sr||ar(null)}},2526:function(e,t,n){!function(e){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function o(e,t){return e(t={exports:{}},t.exports),t.exports}var i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},s=function(){return(s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function a(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function u(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function c(e){return this instanceof c?(this.v=e,this):new c(e)}var l=Object.freeze({__proto__:null,__extends:function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},get __assign(){return s},__rest:function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},__decorate:function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},__param:function(e,t){return function(n,r){t(n,r,e)}},__metadata:function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},__awaiter:function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{u(r.next(e))}catch(e){i(e)}}function a(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){e.done?o(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))},__generator:function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=(o=s.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}},__exportStar:function(e,t){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])},__values:a,__read:u,__spread:function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(u(arguments[t]));return e},__spreadArrays:function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,o++)r[o]=i[s];return r},__await:c,__asyncGenerator:function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{(n=o[e](t)).value instanceof c?Promise.resolve(n.value.v).then(u,l):f(i[0][2],n)}catch(e){f(i[0][3],e)}var n}function u(e){a("next",e)}function l(e){a("throw",e)}function f(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}},__asyncDelegator:function(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:c(e[r](t)),done:"return"===r}:o?o(t):t}:o}},__asyncValues:function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=a(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}},__makeTemplateObject:function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},__importStar:function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},__importDefault:function(e){return e&&e.__esModule?e:{default:e}}}),f=o((function(e,t){var n=function(){function e(e){this.string=e;for(var t=[0],n=0;n<e.length;)switch(e[n]){case"\n":n+="\n".length,t.push(n);break;case"\r":"\n"===e[n+="\r".length]&&(n+="\n".length),t.push(n);break;default:n++}this.offsets=t}return e.prototype.locationForIndex=function(e){if(e<0||e>this.string.length)return null;for(var t=0,n=this.offsets;n[t+1]<=e;)t++;return{line:t,column:e-n[t]}},e.prototype.indexForLocation=function(e){var t=e.line,n=e.column;return t<0||t>=this.offsets.length||n<0||n>this.lengthOfLine(t)?null:this.offsets[t]+n},e.prototype.lengthOfLine=function(e){var t=this.offsets[e];return(e===this.offsets.length-1?this.string.length:this.offsets[e+1])-t},e}();t.__esModule=!0,t.default=n}));r(f);var p=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Type=t.Char=void 0,t.Char={ANCHOR:"&",COMMENT:"#",TAG:"!",DIRECTIVES_END:"-",DOCUMENT_END:"."},t.Type={ALIAS:"ALIAS",BLANK_LINE:"BLANK_LINE",BLOCK_FOLDED:"BLOCK_FOLDED",BLOCK_LITERAL:"BLOCK_LITERAL",COMMENT:"COMMENT",DIRECTIVE:"DIRECTIVE",DOCUMENT:"DOCUMENT",FLOW_MAP:"FLOW_MAP",FLOW_SEQ:"FLOW_SEQ",MAP:"MAP",MAP_KEY:"MAP_KEY",MAP_VALUE:"MAP_VALUE",PLAIN:"PLAIN",QUOTE_DOUBLE:"QUOTE_DOUBLE",QUOTE_SINGLE:"QUOTE_SINGLE",SEQ:"SEQ",SEQ_ITEM:"SEQ_ITEM"}}));r(p),p.Type,p.Char;var h=o((function(e,t){function n(e){const t=[0];let n=e.indexOf("\n");for(;-1!==n;)n+=1,t.push(n),n=e.indexOf("\n",n);return t}function r(e){let t,r;return"string"==typeof e?(t=n(e),r=e):(Array.isArray(e)&&(e=e[0]),e&&e.context&&(e.lineStarts||(e.lineStarts=n(e.context.src)),t=e.lineStarts,r=e.context.src)),{lineStarts:t,src:r}}function o(e,t){const{lineStarts:n,src:o}=r(t);if(!n||!(e>=1)||e>n.length)return null;const i=n[e-1];let s=n[e];for(;s&&s>i&&"\n"===o[s-1];)--s;return o.slice(i,s)}Object.defineProperty(t,"__esModule",{value:!0}),t.getLinePos=function(e,t){if("number"!=typeof e||e<0)return null;const{lineStarts:n,src:o}=r(t);if(!n||!o||e>o.length)return null;for(let t=0;t<n.length;++t){const r=n[t];if(e<r)return{line:t,col:e-n[t-1]+1};if(e===r)return{line:t+1,col:1}}const i=n.length;return{line:i,col:e-n[i-1]+1}},t.getLine=o,t.getPrettyContext=function({start:e,end:t},n,r=80){let i=o(e.line,n);if(!i)return null;let{col:s}=e;if(i.length>r)if(s<=r-10)i=i.substr(0,r-1)+"…";else{const e=Math.round(r/2);i.length>s+e&&(i=i.substr(0,s+e-1)+"…"),s-=i.length-r,i="…"+i.substr(1-r)}let a=1,u="";t&&(t.line===e.line&&s+(t.col-e.col)<=r+1?a=t.col-e.col:(a=Math.min(i.length+1,r)-s,u="…"));const c=s>1?" ".repeat(s-1):"",l="^".repeat(a);return"".concat(i,"\n").concat(c).concat(l).concat(u)}}));r(h),h.getLinePos,h.getLine,h.getPrettyContext;var d=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class n{static copy(e){return new n(e.start,e.end)}constructor(e,t){this.start=e,this.end=t||e}isEmpty(){return"number"!=typeof this.start||!this.end||this.end<=this.start}setOrigRange(e,t){const{start:n,end:r}=this;if(0===e.length||r<=e[0])return this.origStart=n,this.origEnd=r,t;let o=t;for(;o<e.length&&!(e[o]>n);)++o;this.origStart=n+o;const i=o;for(;o<e.length&&!(e[o]>=r);)++o;return this.origEnd=r+o,i}}t.default=n}));r(d);var m=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=(n=d)&&n.__esModule?n:{default:n};class o{static addStringTerminator(e,t,n){if("\n"===n[n.length-1])return n;const r=o.endOfWhiteSpace(e,t);return r>=e.length||"\n"===e[r]?n+"\n":n}static atDocumentBoundary(e,t,n){const r=e[t];if(!r)return!0;const o=e[t-1];if(o&&"\n"!==o)return!1;if(n){if(r!==n)return!1}else if(r!==p.Char.DIRECTIVES_END&&r!==p.Char.DOCUMENT_END)return!1;const i=e[t+1],s=e[t+2];if(i!==r||s!==r)return!1;const a=e[t+3];return!a||"\n"===a||"\t"===a||" "===a}static endOfIdentifier(e,t){let n=e[t];const r="<"===n,o=r?["\n","\t"," ",">"]:["\n","\t"," ","[","]","{","}",","];for(;n&&-1===o.indexOf(n);)n=e[t+=1];return r&&">"===n&&(t+=1),t}static endOfIndent(e,t){let n=e[t];for(;" "===n;)n=e[t+=1];return t}static endOfLine(e,t){let n=e[t];for(;n&&"\n"!==n;)n=e[t+=1];return t}static endOfWhiteSpace(e,t){let n=e[t];for(;"\t"===n||" "===n;)n=e[t+=1];return t}static startOfLine(e,t){let n=e[t-1];if("\n"===n)return t;for(;n&&"\n"!==n;)n=e[t-=1];return t+1}static endOfBlockIndent(e,t,n){const r=o.endOfIndent(e,n);if(r>n+t)return r;{const t=o.endOfWhiteSpace(e,r),n=e[t];if(!n||"\n"===n)return t}return null}static atBlank(e,t,n){const r=e[t];return"\n"===r||"\t"===r||" "===r||n&&!r}static nextNodeIsIndented(e,t,n){return!(!e||t<0)&&(t>0||n&&"-"===e)}static normalizeOffset(e,t){const n=e[t];return n?"\n"!==n&&"\n"===e[t-1]?t-1:o.endOfWhiteSpace(e,t):t}static foldNewline(e,t,n){let r=0,i=!1,s="",a=e[t+1];for(;" "===a||"\t"===a||"\n"===a;){switch(a){case"\n":r=0,t+=1,s+="\n";break;case"\t":r<=n&&(i=!0),t=o.endOfWhiteSpace(e,t+2)-1;break;case" ":r+=1,t+=1}a=e[t+1]}return s||(s=" "),a&&r<=n&&(i=!0),{fold:s,offset:t,error:i}}constructor(e,t,n){Object.defineProperty(this,"context",{value:n||null,writable:!0}),this.error=null,this.range=null,this.valueRange=null,this.props=t||[],this.type=e,this.value=null}getPropValue(e,t,n){if(!this.context)return null;const{src:r}=this.context,o=this.props[e];return o&&r[o.start]===t?r.slice(o.start+(n?1:0),o.end):null}get anchor(){for(let e=0;e<this.props.length;++e){const t=this.getPropValue(e,p.Char.ANCHOR,!0);if(null!=t)return t}return null}get comment(){const e=[];for(let t=0;t<this.props.length;++t){const n=this.getPropValue(t,p.Char.COMMENT,!0);null!=n&&e.push(n)}return e.length>0?e.join("\n"):null}commentHasRequiredWhitespace(e){const{src:t}=this.context;if(this.header&&e===this.header.end)return!1;if(!this.valueRange)return!1;const{end:n}=this.valueRange;return e!==n||o.atBlank(t,n-1)}get hasComment(){if(this.context){const{src:e}=this.context;for(let t=0;t<this.props.length;++t)if(e[this.props[t].start]===p.Char.COMMENT)return!0}return!1}get hasProps(){if(this.context){const{src:e}=this.context;for(let t=0;t<this.props.length;++t)if(e[this.props[t].start]!==p.Char.COMMENT)return!0}return!1}get includesTrailingLines(){return!1}get jsonLike(){return-1!==[p.Type.FLOW_MAP,p.Type.FLOW_SEQ,p.Type.QUOTE_DOUBLE,p.Type.QUOTE_SINGLE].indexOf(this.type)}get rangeAsLinePos(){if(!this.range||!this.context)return;const e=(0,h.getLinePos)(this.range.start,this.context.root);return e?{start:e,end:(0,h.getLinePos)(this.range.end,this.context.root)}:void 0}get rawValue(){if(!this.valueRange||!this.context)return null;const{start:e,end:t}=this.valueRange;return this.context.src.slice(e,t)}get tag(){for(let e=0;e<this.props.length;++e){const t=this.getPropValue(e,p.Char.TAG,!1);if(null!=t){if("<"===t[1])return{verbatim:t.slice(2,-1)};{const[e,n,r]=t.match(/^(.*!)([^!]*)$/);return{handle:n,suffix:r}}}}return null}get valueRangeContainsNewline(){if(!this.valueRange||!this.context)return!1;const{start:e,end:t}=this.valueRange,{src:n}=this.context;for(let r=e;r<t;++r)if("\n"===n[r])return!0;return!1}parseComment(e){const{src:t}=this.context;if(t[e]===p.Char.COMMENT){const n=o.endOfLine(t,e+1),i=new r.default(e,n);return this.props.push(i),n}return e}setOrigRanges(e,t){return this.range&&(t=this.range.setOrigRange(e,t)),this.valueRange&&this.valueRange.setOrigRange(e,t),this.props.forEach((n=>n.setOrigRange(e,t))),t}toString(){const{context:{src:e},range:t,value:n}=this;if(null!=n)return n;const r=e.slice(t.start,t.end);return o.addStringTerminator(e,t.end,r)}}t.default=o}));r(m);var g=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.YAMLWarning=t.YAMLSyntaxError=t.YAMLSemanticError=t.YAMLReferenceError=t.YAMLError=void 0;var n=o(m),r=o(d);function o(e){return e&&e.__esModule?e:{default:e}}class i extends Error{constructor(e,t,r){if(!(r&&t instanceof n.default))throw new Error("Invalid arguments for new ".concat(e));super(),this.name=e,this.message=r,this.source=t}makePretty(){if(!this.source)return;this.nodeType=this.source.type;const e=this.source.context&&this.source.context.root;if("number"==typeof this.offset){this.range=new r.default(this.offset,this.offset+1);const t=e&&(0,h.getLinePos)(this.offset,e);if(t){const e={line:t.line,col:t.col+1};this.linePos={start:t,end:e}}delete this.offset}else this.range=this.source.range,this.linePos=this.source.rangeAsLinePos;if(this.linePos){const{line:t,col:n}=this.linePos.start;this.message+=" at line ".concat(t,", column ").concat(n);const r=e&&(0,h.getPrettyContext)(this.linePos,e);r&&(this.message+=":\n\n".concat(r,"\n"))}delete this.source}}t.YAMLError=i,t.YAMLReferenceError=class extends i{constructor(e,t){super("YAMLReferenceError",e,t)}},t.YAMLSemanticError=class extends i{constructor(e,t){super("YAMLSemanticError",e,t)}},t.YAMLSyntaxError=class extends i{constructor(e,t){super("YAMLSyntaxError",e,t)}},t.YAMLWarning=class extends i{constructor(e,t){super("YAMLWarning",e,t)}}}));r(g),g.YAMLWarning,g.YAMLSyntaxError,g.YAMLSemanticError,g.YAMLReferenceError,g.YAMLError;var y=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(m),r=o(d);function o(e){return e&&e.__esModule?e:{default:e}}class i extends n.default{constructor(){super(p.Type.BLANK_LINE)}get includesTrailingLines(){return!0}parse(e,t){this.context=e;const{src:o}=e;let i=t+1;for(;n.default.atBlank(o,i);){const e=n.default.endOfWhiteSpace(o,i);if("\n"!==e)break;i=e+1}return this.range=new r.default(t,i),i}}t.default=i}));r(y);var b=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(y),r=i(m),o=i(d);function i(e){return e&&e.__esModule?e:{default:e}}class s extends r.default{constructor(e,t){super(e,t),this.node=null}get includesTrailingLines(){return!!this.node&&this.node.includesTrailingLines}parse(e,t){this.context=e;const{parseNode:i,src:s}=e;let{atLineStart:a,lineStart:u}=e;a||this.type!==p.Type.SEQ_ITEM||(this.error=new g.YAMLSemanticError(this,"Sequence items must not have preceding content on the same line"));const c=a?t-u:e.indent;let l=r.default.endOfWhiteSpace(s,t+1),f=s[l];const h="#"===f,d=[];let m=null;for(;"\n"===f||"#"===f;){if("#"===f){const e=r.default.endOfLine(s,l+1);d.push(new o.default(l,e)),l=e}else a=!0,u=l+1,"\n"===s[r.default.endOfWhiteSpace(s,u)]&&0===d.length&&(m=new n.default,u=m.parse({src:s},u)),l=r.default.endOfIndent(s,u);f=s[l]}if(r.default.nextNodeIsIndented(f,l-(u+c),this.type!==p.Type.SEQ_ITEM)?this.node=i({atLineStart:a,inCollection:!1,indent:c,lineStart:u,parent:this},l):f&&u>t+1&&(l=u-1),this.node){if(m){const t=e.parent.items||e.parent.contents;t&&t.push(m)}d.length&&Array.prototype.push.apply(this.props,d),l=this.node.range.end}else if(h){const e=d[0];this.props.push(e),l=e.end}else l=r.default.endOfLine(s,t+1);const y=this.node?this.node.valueRange.end:l;return this.valueRange=new o.default(t,y),l}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.node?this.node.setOrigRanges(e,t):t}toString(){const{context:{src:e},node:t,range:n,value:o}=this;if(null!=o)return o;const i=t?e.slice(n.start,t.range.start)+String(t):e.slice(n.start,n.end);return r.default.addStringTerminator(e,n.end,i)}}t.default=s}));r(b);var v=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(m),r=o(d);function o(e){return e&&e.__esModule?e:{default:e}}class i extends n.default{constructor(){super(p.Type.COMMENT)}parse(e,t){this.context=e;const n=this.parseComment(t);return this.range=new r.default(t,n),n}}t.default=i}));r(v);var D=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.grabCollectionEndComments=u,t.default=void 0;var n=a(y),r=a(b),o=a(v),i=a(m),s=a(d);function a(e){return e&&e.__esModule?e:{default:e}}function u(e){let t=e;for(;t instanceof r.default;)t=t.node;if(!(t instanceof c))return null;const n=t.items.length;let o=-1;for(let e=n-1;e>=0;--e){const n=t.items[e];if(n.type===p.Type.COMMENT){const{indent:t,lineStart:r}=n.context;if(t>0&&n.range.start>=r+t)break;o=e}else{if(n.type!==p.Type.BLANK_LINE)break;o=e}}if(-1===o)return null;const i=t.items.splice(o,n-o),s=i[0].range.start;for(;t.range.end=s,t.valueRange&&t.valueRange.end>s&&(t.valueRange.end=s),t!==e;)t=t.context.parent;return i}class c extends i.default{static nextContentHasIndent(e,t,n){const r=i.default.endOfLine(e,t)+1,o=e[t=i.default.endOfWhiteSpace(e,r)];return!!o&&(t>=r+n||("#"===o||"\n"===o)&&c.nextContentHasIndent(e,t,n))}constructor(e){super(e.type===p.Type.SEQ_ITEM?p.Type.SEQ:p.Type.MAP);for(let t=e.props.length-1;t>=0;--t)if(e.props[t].start<e.context.lineStart){this.props=e.props.slice(0,t+1),e.props=e.props.slice(t+1);const n=e.props[0]||e.valueRange;e.range.start=n.start;break}this.items=[e];const t=u(e);t&&Array.prototype.push.apply(this.items,t)}get includesTrailingLines(){return this.items.length>0}parse(e,t){this.context=e;const{parseNode:r,src:a}=e;let l=i.default.startOfLine(a,t);const f=this.items[0];f.context.parent=this,this.valueRange=s.default.copy(f.valueRange);const h=f.range.start-f.context.lineStart;let d=t;d=i.default.normalizeOffset(a,d);let m=a[d],g=i.default.endOfWhiteSpace(a,l)===d,y=!1;for(;m;){for(;"\n"===m||"#"===m;){if(g&&"\n"===m&&!y){const e=new n.default;if(d=e.parse({src:a},d),this.valueRange.end=d,d>=a.length){m=null;break}this.items.push(e),d-=1}else if("#"===m){if(d<l+h&&!c.nextContentHasIndent(a,d,h))return d;const e=new o.default;if(d=e.parse({indent:h,lineStart:l,src:a},d),this.items.push(e),this.valueRange.end=d,d>=a.length){m=null;break}}if(l=d+1,d=i.default.endOfIndent(a,l),i.default.atBlank(a,d)){const e=i.default.endOfWhiteSpace(a,d),t=a[e];t&&"\n"!==t&&"#"!==t||(d=e)}m=a[d],g=!0}if(!m)break;if(d!==l+h&&(g||":"!==m)){l>t&&(d=l);break}if(f.type===p.Type.SEQ_ITEM!=("-"===m)){let e=!0;if("-"===m){const t=a[d+1];e=!t||"\n"===t||"\t"===t||" "===t}if(e){l>t&&(d=l);break}}const e=r({atLineStart:g,inCollection:!0,indent:h,lineStart:l,parent:this},d);if(!e)return d;if(this.items.push(e),this.valueRange.end=e.valueRange.end,d=i.default.normalizeOffset(a,e.range.end),m=a[d],g=!1,y=e.includesTrailingLines,m){let e=d-1,t=a[e];for(;" "===t||"\t"===t;)t=a[--e];"\n"===t&&(l=e+1,g=!0)}const s=u(e);s&&Array.prototype.push.apply(this.items,s)}return d}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.items.forEach((n=>{t=n.setOrigRanges(e,t)})),t}toString(){const{context:{src:e},items:t,range:n,value:r}=this;if(null!=r)return r;let o=e.slice(n.start,t[0].range.start)+String(t[0]);for(let e=1;e<t.length;++e){const n=t[e],{atLineStart:r,indent:i}=n.context;if(r)for(let e=0;e<i;++e)o+=" ";o+=String(n)}return i.default.addStringTerminator(e,n.end,o)}}t.default=c}));r(D),D.grabCollectionEndComments;var C=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(m),r=o(d);function o(e){return e&&e.__esModule?e:{default:e}}class i extends n.default{constructor(){super(p.Type.DIRECTIVE),this.name=null}get parameters(){const e=this.rawValue;return e?e.trim().split(/[ \t]+/):[]}parseName(e){const{src:t}=this.context;let n=e,r=t[n];for(;r&&"\n"!==r&&"\t"!==r&&" "!==r;)r=t[n+=1];return this.name=t.slice(e,n),n}parseParameters(e){const{src:t}=this.context;let n=e,o=t[n];for(;o&&"\n"!==o&&"#"!==o;)o=t[n+=1];return this.valueRange=new r.default(e,n),n}parse(e,t){this.context=e;let n=this.parseName(t+1);return n=this.parseParameters(n),n=this.parseComment(n),this.range=new r.default(t,n),n}}t.default=i}));r(C);var E=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(y),r=a(v),o=a(C),i=a(m),s=a(d);function a(e){return e&&e.__esModule?e:{default:e}}class u extends i.default{static startCommentOrEndBlankLine(e,t){const n=i.default.endOfWhiteSpace(e,t),r=e[n];return"#"===r||"\n"===r?n:t}constructor(){super(p.Type.DOCUMENT),this.directives=null,this.contents=null,this.directivesEndMarker=null,this.documentEndMarker=null}parseDirectives(e){const{src:t}=this.context;this.directives=[];let a=!0,c=!1,l=e;for(;!i.default.atDocumentBoundary(t,l,p.Char.DIRECTIVES_END);)switch(l=u.startCommentOrEndBlankLine(t,l),t[l]){case"\n":if(a){const e=new n.default;l=e.parse({src:t},l),l<t.length&&this.directives.push(e)}else l+=1,a=!0;break;case"#":{const e=new r.default;l=e.parse({src:t},l),this.directives.push(e),a=!1}break;case"%":{const e=new o.default;l=e.parse({parent:this,src:t},l),this.directives.push(e),c=!0,a=!1}break;default:return c?this.error=new g.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),l}return t[l]?(this.directivesEndMarker=new s.default(l,l+3),l+3):(c?this.error=new g.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),l)}parseContents(e){const{parseNode:t,src:o}=this.context;this.contents||(this.contents=[]);let a=e;for(;"-"===o[a-1];)a-=1;let c=i.default.endOfWhiteSpace(o,e),l=a===e;for(this.valueRange=new s.default(c);!i.default.atDocumentBoundary(o,c,p.Char.DOCUMENT_END);){switch(o[c]){case"\n":if(l){const e=new n.default;c=e.parse({src:o},c),c<o.length&&this.contents.push(e)}else c+=1,l=!0;a=c;break;case"#":{const e=new r.default;c=e.parse({src:o},c),this.contents.push(e),l=!1}break;default:{const e=i.default.endOfIndent(o,c),n=t({atLineStart:l,indent:-1,inFlow:!1,inCollection:!1,lineStart:a,parent:this},e);if(!n)return this.valueRange.end=e;this.contents.push(n),c=n.range.end,l=!1;const r=(0,D.grabCollectionEndComments)(n);r&&Array.prototype.push.apply(this.contents,r)}}c=u.startCommentOrEndBlankLine(o,c)}if(this.valueRange.end=c,o[c]&&(this.documentEndMarker=new s.default(c,c+3),c+=3,o[c])){if(c=i.default.endOfWhiteSpace(o,c),"#"===o[c]){const e=new r.default;c=e.parse({src:o},c),this.contents.push(e)}switch(o[c]){case"\n":c+=1;break;case void 0:break;default:this.error=new g.YAMLSyntaxError(this,"Document end marker line cannot have a non-comment suffix")}}return c}parse(e,t){e.root=this,this.context=e;const{src:n}=e;let r=65279===n.charCodeAt(t)?t+1:t;return r=this.parseDirectives(r),r=this.parseContents(r),r}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.directives.forEach((n=>{t=n.setOrigRanges(e,t)})),this.directivesEndMarker&&(t=this.directivesEndMarker.setOrigRange(e,t)),this.contents.forEach((n=>{t=n.setOrigRanges(e,t)})),this.documentEndMarker&&(t=this.documentEndMarker.setOrigRange(e,t)),t}toString(){const{contents:e,directives:t,value:n}=this;if(null!=n)return n;let r=t.join("");return e.length>0&&((t.length>0||e[0].type===p.Type.COMMENT)&&(r+="---\n"),r+=e.join("")),"\n"!==r[r.length-1]&&(r+="\n"),r}}t.default=u}));r(E);var w=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(m),r=o(d);function o(e){return e&&e.__esModule?e:{default:e}}class i extends n.default{parse(e,t){this.context=e;const{src:o}=e;let i=n.default.endOfIdentifier(o,t+1);return this.valueRange=new r.default(t+1,i),i=n.default.endOfWhiteSpace(o,i),i=this.parseComment(i),i}}t.default=i}));r(w);var A=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Chomp=void 0;var n=o(m),r=o(d);function o(e){return e&&e.__esModule?e:{default:e}}const i={CLIP:"CLIP",KEEP:"KEEP",STRIP:"STRIP"};t.Chomp=i;class s extends n.default{constructor(e,t){super(e,t),this.blockIndent=null,this.chomping=i.CLIP,this.header=null}get includesTrailingLines(){return this.chomping===i.KEEP}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:t}=this.valueRange;const{indent:r,src:o}=this.context;if(this.valueRange.isEmpty())return"";let s=null,a=o[t-1];for(;"\n"===a||"\t"===a||" "===a;){if(t-=1,t<=e){if(this.chomping===i.KEEP)break;return""}"\n"===a&&(s=t),a=o[t-1]}let u=t+1;s&&(this.chomping===i.KEEP?(u=s,t=this.valueRange.end):t=s);const c=r+this.blockIndent,l=this.type===p.Type.BLOCK_FOLDED;let f=!0,h="",d="",m=!1;for(let r=e;r<t;++r){for(let e=0;e<c&&" "===o[r];++e)r+=1;const e=o[r];if("\n"===e)"\n"===d?h+="\n":d="\n";else{const i=n.default.endOfLine(o,r),s=o.slice(r,i);r=i,l&&(" "===e||"\t"===e)&&r<u?(" "===d?d="\n":m||f||"\n"!==d||(d="\n\n"),h+=d+s,d=i<t&&o[i]||"",m=!0):(h+=d+s,d=l&&r<u?" ":"\n",m=!1),f&&""!==s&&(f=!1)}}return this.chomping===i.STRIP?h:h+"\n"}parseBlockHeader(e){const{src:t}=this.context;let n=e+1,o="";for(;;){const s=t[n];switch(s){case"-":this.chomping=i.STRIP;break;case"+":this.chomping=i.KEEP;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":o+=s;break;default:return this.blockIndent=Number(o)||null,this.header=new r.default(e,n),n}n+=1}}parseBlockValue(e){const{indent:t,src:o}=this.context;let s=e,a=e,u=this.blockIndent?t+this.blockIndent-1:t,c=1;for(let e=o[s];"\n"===e&&(s+=1,!n.default.atDocumentBoundary(o,s));e=o[s]){const e=n.default.endOfBlockIndent(o,u,s);if(null===e)break;if(!this.blockIndent){const n=e-(s+t);if("\n"!==o[e]){if(n<c){s-=1;break}this.blockIndent=n,u=t+this.blockIndent-1}else n>c&&(c=n)}s="\n"===o[e]?e:a=n.default.endOfLine(o,e)}return this.chomping!==i.KEEP&&(s=o[a]?a+1:a),this.valueRange=new r.default(e+1,s),s}parse(e,t){this.context=e;const{src:r}=e;let o=this.parseBlockHeader(t);return o=n.default.endOfWhiteSpace(r,o),o=this.parseComment(o),o=this.parseBlockValue(o),o}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.header?this.header.setOrigRange(e,t):t}}t.default=s}));r(A),A.Chomp;var S=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=s(y),r=s(v),o=s(m),i=s(d);function s(e){return e&&e.__esModule?e:{default:e}}class a extends o.default{constructor(e,t){super(e,t),this.items=null}prevNodeIsJsonLike(e=this.items.length){const t=this.items[e-1];return!!t&&(t.jsonLike||t.type===p.Type.COMMENT&&this.nodeIsJsonLike(e-1))}parse(e,t){this.context=e;const{parseNode:s,src:a}=e;let{indent:u,lineStart:c}=e,l=a[t];this.items=[{char:l,offset:t}];let f=o.default.endOfWhiteSpace(a,t+1);for(l=a[f];l&&"]"!==l&&"}"!==l;){switch(l){case"\n":if(c=f+1,"\n"===a[o.default.endOfWhiteSpace(a,c)]){const e=new n.default;c=e.parse({src:a},c),this.items.push(e)}if(f=o.default.endOfIndent(a,c),f<=c+u&&(l=a[f],f<c+u||"]"!==l&&"}"!==l)){const e="Insufficient indentation in flow collection";this.error=new g.YAMLSemanticError(this,e)}break;case",":this.items.push({char:l,offset:f}),f+=1;break;case"#":{const e=new r.default;f=e.parse({src:a},f),this.items.push(e)}break;case"?":case":":{const e=a[f+1];if("\n"===e||"\t"===e||" "===e||","===e||":"===l&&this.prevNodeIsJsonLike()){this.items.push({char:l,offset:f}),f+=1;break}}default:{const e=s({atLineStart:!1,inCollection:!1,inFlow:!0,indent:-1,lineStart:c,parent:this},f);if(!e)return this.valueRange=new i.default(t,f),f;this.items.push(e),f=o.default.normalizeOffset(a,e.range.end)}}f=o.default.endOfWhiteSpace(a,f),l=a[f]}return this.valueRange=new i.default(t,f+1),l&&(this.items.push({char:l,offset:f}),f=o.default.endOfWhiteSpace(a,f+1),f=this.parseComment(f)),f}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.items.forEach((n=>{if(n instanceof o.default)t=n.setOrigRanges(e,t);else if(0===e.length)n.origOffset=n.offset;else{let r=t;for(;r<e.length&&!(e[r]>n.offset);)++r;n.origOffset=n.offset+r,t=r}})),t}toString(){const{context:{src:e},items:t,range:n,value:r}=this;if(null!=r)return r;const i=t.filter((e=>e instanceof o.default));let s="",a=n.start;return i.forEach((t=>{const n=e.slice(a,t.range.start);a=t.range.end,s+=n+String(t),"\n"===s[s.length-1]&&"\n"!==e[a-1]&&"\n"===e[a]&&(a+=1)})),s+=e.slice(a,n.end),o.default.addStringTerminator(e,n.end,s)}}t.default=a}));r(S);var x=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(m),r=o(d);function o(e){return e&&e.__esModule?e:{default:e}}class i extends n.default{static endOfLine(e,t,n){let r=e[t],o=t;for(;r&&"\n"!==r&&(!n||"["!==r&&"]"!==r&&"{"!==r&&"}"!==r&&","!==r);){const t=e[o+1];if(":"===r&&(!t||"\n"===t||"\t"===t||" "===t||n&&","===t))break;if((" "===r||"\t"===r)&&"#"===t)break;o+=1,r=t}return o}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:t}=this.valueRange;const{src:r}=this.context;let o=r[t-1];for(;e<t&&("\n"===o||"\t"===o||" "===o);)o=r[--t-1];for(o=r[e];e<t&&("\n"===o||"\t"===o||" "===o);)o=r[++e];let i="";for(let o=e;o<t;++o){const e=r[o];if("\n"===e){const{fold:e,offset:t}=n.default.foldNewline(r,o,-1);i+=e,o=t}else if(" "===e||"\t"===e){const n=o;let s=r[o+1];for(;o<t&&(" "===s||"\t"===s);)o+=1,s=r[o+1];"\n"!==s&&(i+=o>n?r.slice(n,o+1):e)}else i+=e}return i}parseBlockValue(e){const{indent:t,inFlow:r,src:o}=this.context;let s=e,a=e;for(let e=o[s];"\n"===e&&!n.default.atDocumentBoundary(o,s+1);e=o[s]){const e=n.default.endOfBlockIndent(o,t,s+1);if(null===e||"#"===o[e])break;"\n"===o[e]?s=e:(a=i.endOfLine(o,e,r),s=a)}return this.valueRange.isEmpty()&&(this.valueRange.start=e),this.valueRange.end=a,a}parse(e,t){this.context=e;const{inFlow:o,src:s}=e;let a=t;const u=s[a];return u&&"#"!==u&&"\n"!==u&&(a=i.endOfLine(s,t,o)),this.valueRange=new r.default(t,a),a=n.default.endOfWhiteSpace(s,a),a=this.parseComment(a),this.hasComment&&!this.valueRange.isEmpty()||(a=this.parseBlockValue(a)),a}}t.default=i}));r(x);var _=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(m),r=o(d);function o(e){return e&&e.__esModule?e:{default:e}}class i extends n.default{static endOfQuote(e,t){let n=e[t];for(;n&&'"'!==n;)n=e[t+="\\"===n?2:1];return t+1}get strValue(){if(!this.valueRange||!this.context)return null;const e=[],{start:t,end:r}=this.valueRange,{indent:o,src:i}=this.context;'"'!==i[r-1]&&e.push(new g.YAMLSyntaxError(this,'Missing closing "quote'));let s="";for(let a=t+1;a<r-1;++a){const t=i[a];if("\n"===t){n.default.atDocumentBoundary(i,a+1)&&e.push(new g.YAMLSemanticError(this,"Document boundary indicators are not allowed within string values"));const{fold:t,offset:r,error:u}=n.default.foldNewline(i,a,o);s+=t,a=r,u&&e.push(new g.YAMLSemanticError(this,"Multi-line double-quoted string needs to be sufficiently indented"))}else if("\\"===t)switch(a+=1,i[a]){case"0":s+="\0";break;case"a":s+="";break;case"b":s+="\b";break;case"e":s+="";break;case"f":s+="\f";break;case"n":s+="\n";break;case"r":s+="\r";break;case"t":s+="\t";break;case"v":s+="\v";break;case"N":s+="…";break;case"_":s+=" ";break;case"L":s+="\u2028";break;case"P":s+="\u2029";break;case" ":s+=" ";break;case'"':s+='"';break;case"/":s+="/";break;case"\\":s+="\\";break;case"\t":s+="\t";break;case"x":s+=this.parseCharCode(a+1,2,e),a+=2;break;case"u":s+=this.parseCharCode(a+1,4,e),a+=4;break;case"U":s+=this.parseCharCode(a+1,8,e),a+=8;break;case"\n":for(;" "===i[a+1]||"\t"===i[a+1];)a+=1;break;default:e.push(new g.YAMLSyntaxError(this,"Invalid escape sequence ".concat(i.substr(a-1,2)))),s+="\\"+i[a]}else if(" "===t||"\t"===t){const e=a;let n=i[a+1];for(;" "===n||"\t"===n;)a+=1,n=i[a+1];"\n"!==n&&(s+=a>e?i.slice(e,a+1):t)}else s+=t}return e.length>0?{errors:e,str:s}:s}parseCharCode(e,t,n){const{src:r}=this.context,o=r.substr(e,t),i=o.length===t&&/^[0-9a-fA-F]+$/.test(o)?parseInt(o,16):NaN;return isNaN(i)?(n.push(new g.YAMLSyntaxError(this,"Invalid escape sequence ".concat(r.substr(e-2,t+2)))),r.substr(e-2,t+2)):String.fromCodePoint(i)}parse(e,t){this.context=e;const{src:o}=e;let s=i.endOfQuote(o,t+1);return this.valueRange=new r.default(t,s),s=n.default.endOfWhiteSpace(o,s),s=this.parseComment(s),s}}t.default=i}));r(_);var F=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(m),r=o(d);function o(e){return e&&e.__esModule?e:{default:e}}class i extends n.default{static endOfQuote(e,t){let n=e[t];for(;n;)if("'"===n){if("'"!==e[t+1])break;n=e[t+=2]}else n=e[t+=1];return t+1}get strValue(){if(!this.valueRange||!this.context)return null;const e=[],{start:t,end:r}=this.valueRange,{indent:o,src:i}=this.context;"'"!==i[r-1]&&e.push(new g.YAMLSyntaxError(this,"Missing closing 'quote"));let s="";for(let a=t+1;a<r-1;++a){const t=i[a];if("\n"===t){n.default.atDocumentBoundary(i,a+1)&&e.push(new g.YAMLSemanticError(this,"Document boundary indicators are not allowed within string values"));const{fold:t,offset:r,error:u}=n.default.foldNewline(i,a,o);s+=t,a=r,u&&e.push(new g.YAMLSemanticError(this,"Multi-line single-quoted string needs to be sufficiently indented"))}else if("'"===t)s+=t,a+=1,"'"!==i[a]&&e.push(new g.YAMLSyntaxError(this,"Unescaped single quote? This should not happen."));else if(" "===t||"\t"===t){const e=a;let n=i[a+1];for(;" "===n||"\t"===n;)a+=1,n=i[a+1];"\n"!==n&&(s+=a>e?i.slice(e,a+1):t)}else s+=t}return e.length>0?{errors:e,str:s}:s}parse(e,t){this.context=e;const{src:o}=e;let s=i.endOfQuote(o,t+1);return this.valueRange=new r.default(t,s),s=n.default.endOfWhiteSpace(o,s),s=this.parseComment(s),s}}t.default=i}));r(F);var T=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=h(w),r=h(A),o=h(D),i=h(b),s=h(S),a=h(m),u=h(x),c=h(_),l=h(F),f=h(d);function h(e){return e&&e.__esModule?e:{default:e}}class y{static parseType(e,t,n){switch(e[t]){case"*":return p.Type.ALIAS;case">":return p.Type.BLOCK_FOLDED;case"|":return p.Type.BLOCK_LITERAL;case"{":return p.Type.FLOW_MAP;case"[":return p.Type.FLOW_SEQ;case"?":return!n&&a.default.atBlank(e,t+1,!0)?p.Type.MAP_KEY:p.Type.PLAIN;case":":return!n&&a.default.atBlank(e,t+1,!0)?p.Type.MAP_VALUE:p.Type.PLAIN;case"-":return!n&&a.default.atBlank(e,t+1,!0)?p.Type.SEQ_ITEM:p.Type.PLAIN;case'"':return p.Type.QUOTE_DOUBLE;case"'":return p.Type.QUOTE_SINGLE;default:return p.Type.PLAIN}}constructor(e={},{atLineStart:t,inCollection:h,inFlow:d,indent:m,lineStart:b,parent:v}={}){var D,C;C=(e,t)=>{if(a.default.atDocumentBoundary(this.src,t))return null;const h=new y(this,e),{props:d,type:m,valueStart:b}=h.parseProps(t),v=function(e,t){switch(e){case p.Type.ALIAS:return new n.default(e,t);case p.Type.BLOCK_FOLDED:case p.Type.BLOCK_LITERAL:return new r.default(e,t);case p.Type.FLOW_MAP:case p.Type.FLOW_SEQ:return new s.default(e,t);case p.Type.MAP_KEY:case p.Type.MAP_VALUE:case p.Type.SEQ_ITEM:return new i.default(e,t);case p.Type.COMMENT:case p.Type.PLAIN:return new u.default(e,t);case p.Type.QUOTE_DOUBLE:return new c.default(e,t);case p.Type.QUOTE_SINGLE:return new l.default(e,t);default:return null}}(m,d);let D=v.parse(h,b);if(v.range=new f.default(t,D),D<=t&&(v.error=new Error("Node#parse consumed no characters"),v.error.parseEnd=D,v.error.source=v,v.range.end=t+1),h.nodeStartsCollection(v)){v.error||h.atLineStart||h.parent.type!==p.Type.DOCUMENT||(v.error=new g.YAMLSyntaxError(v,"Block collection must not have preceding content here (e.g. directives-end indicator)"));const e=new o.default(v);return D=e.parse(new y(h),D),e.range=new f.default(t,D),e}return v},(D="parseNode")in this?Object.defineProperty(this,D,{value:C,enumerable:!0,configurable:!0,writable:!0}):this[D]=C,this.atLineStart=null!=t?t:e.atLineStart||!1,this.inCollection=null!=h?h:e.inCollection||!1,this.inFlow=null!=d?d:e.inFlow||!1,this.indent=null!=m?m:e.indent,this.lineStart=null!=b?b:e.lineStart,this.parent=null!=v?v:e.parent||{},this.root=e.root,this.src=e.src}nodeStartsCollection(e){const{inCollection:t,inFlow:n,src:r}=this;if(t||n)return!1;if(e instanceof i.default)return!0;let o=e.range.end;return"\n"!==r[o]&&"\n"!==r[o-1]&&(o=a.default.endOfWhiteSpace(r,o),":"===r[o])}parseProps(e){const{inFlow:t,parent:n,src:r}=this,o=[];let i=!1,s=r[e=a.default.endOfWhiteSpace(r,e)];for(;s===p.Char.ANCHOR||s===p.Char.COMMENT||s===p.Char.TAG||"\n"===s;){if("\n"===s){const t=e+1,o=a.default.endOfIndent(r,t),s=o-(t+this.indent),u=n.type===p.Type.SEQ_ITEM&&n.context.atLineStart;if(!a.default.nextNodeIsIndented(r[o],s,!u))break;this.atLineStart=!0,this.lineStart=t,i=!1,e=o}else if(s===p.Char.COMMENT){const t=a.default.endOfLine(r,e+1);o.push(new f.default(e,t)),e=t}else{let t=a.default.endOfIdentifier(r,e+1);s===p.Char.TAG&&","===r[t]&&/^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(r.slice(e+1,t+13))&&(t=a.default.endOfIdentifier(r,t+5)),o.push(new f.default(e,t)),i=!0,e=a.default.endOfWhiteSpace(r,t)}s=r[e]}return i&&":"===s&&a.default.atBlank(r,e+1,!0)&&(e-=1),{props:o,type:y.parseType(r,e,t),valueStart:e}}}t.default=y}));r(T);var k=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=[];-1!==e.indexOf("\r")&&(e=e.replace(/\r\n?/g,((e,n)=>(e.length>1&&t.push(n),"\n"))));const o=[];let i=0;do{const t=new n.default,s=new r.default({src:e});i=t.parse(s,i),o.push(t)}while(i<e.length);return o.setOrigRanges=()=>{if(0===t.length)return!1;for(let e=1;e<t.length;++e)t[e]-=e;let e=0;for(let n=0;n<o.length;++n)e=o[n].setOrigRanges(t,e);return t.splice(0,t.length),!0},o.toString=()=>o.join("...\n"),o};var n=o(E),r=o(T);function o(e){return e&&e.__esModule?e:{default:e}}}));r(k);var N=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.addCommentBefore=function(e,t,n){if(!n)return e;const r=n.replace(/[\s\S]^/gm,"$&".concat(t,"#"));return"#".concat(r,"\n").concat(t).concat(e)},t.default=function(e,t,n){return n?-1===n.indexOf("\n")?"".concat(e," #").concat(n):"".concat(e,"\n")+n.replace(/^/gm,"".concat(t||"","#")):e}}));r(N),N.addCommentBefore;var O=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n,r){if(Array.isArray(t))return t.map(((t,n)=>e(t,String(n),r)));if(t&&"function"==typeof t.toJSON){const e=r&&r.anchors&&r.anchors.find((e=>e.node===t));e&&(r.onCreate=t=>{e.res=t,delete r.onCreate});const o=t.toJSON(n,r);return e&&r.onCreate&&r.onCreate(o),o}return t}}));r(O);var L=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=class{}}));r(L);var M=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(O),r=o(L);function o(e){return e&&e.__esModule?e:{default:e}}class i extends r.default{constructor(e){super(),this.value=e}toJSON(e,t){return t&&t.keep?this.value:(0,n.default)(this.value,e,t)}toString(){return String(this.value)}}t.default=i}));r(M);var P=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(N),r=a(O),o=a(I),i=a(L),s=a(M);function a(e){return e&&e.__esModule?e:{default:e}}class u extends i.default{constructor(e,t=null){super(),this.key=e,this.value=t,this.type="PAIR"}get commentBefore(){return this.key&&this.key.commentBefore}set commentBefore(e){null==this.key&&(this.key=new s.default(null)),this.key.commentBefore=e}addToJSMap(e,t){const n=(0,r.default)(this.key,"",e);if(t instanceof Map){const o=(0,r.default)(this.value,n,e);t.set(n,o)}else if(t instanceof Set)t.add(n);else{const o=((e,t,n)=>null===t?"":"object"!=typeof t?String(t):e instanceof i.default&&n&&n.doc?e.toString({anchors:{},doc:n.doc,indent:"",inFlow:!0,inStringifyKey:!0}):JSON.stringify(t))(this.key,n,e);t[o]=(0,r.default)(this.value,o,e)}return t}toJSON(e,t){const n=t&&t.mapAsMap?new Map:{};return this.addToJSMap(t,n)}toString(e,t,r){if(!e||!e.doc)return JSON.stringify(this);const{simpleKeys:a}=e.doc.options;let{key:u,value:c}=this,l=u instanceof i.default&&u.comment;if(a){if(l)throw new Error("With simple keys, key nodes cannot have comments");if(u instanceof o.default)throw new Error("With simple keys, collection cannot be used as a key value")}const f=!a&&(!u||l||u instanceof o.default||u.type===p.Type.BLOCK_FOLDED||u.type===p.Type.BLOCK_LITERAL),{doc:h,indent:d}=e;e=Object.assign({},e,{implicitKey:!f,indent:d+"  "});let m=!1,g=h.schema.stringify(u,e,(()=>l=null),(()=>m=!0));if(g=(0,n.default)(g,e.indent,l),e.allNullValues&&!a)return this.comment?(g=(0,n.default)(g,e.indent,this.comment),t&&t()):m&&!l&&r&&r(),e.inFlow?g:"? ".concat(g);g=f?"? ".concat(g,"\n").concat(d,":"):"".concat(g,":"),this.comment&&(g=(0,n.default)(g,e.indent,this.comment),t&&t());let y="",b=null;if(c instanceof i.default){if(c.spaceBefore&&(y="\n"),c.commentBefore){const t=c.commentBefore.replace(/^/gm,"".concat(e.indent,"#"));y+="\n".concat(t)}b=c.comment}else c&&"object"==typeof c&&(c=h.schema.createNode(c,!0));e.implicitKey=!1,!f&&!this.comment&&c instanceof s.default&&(e.indentAtStart=g.length+1),m=!1;const v=h.schema.stringify(c,e,(()=>b=null),(()=>m=!0));let D=" ";return y||this.comment?D="".concat(y,"\n").concat(e.indent):!f&&c instanceof o.default&&(("["===v[0]||"{"===v[0])&&!v.includes("\n")||(D="\n".concat(e.indent))),m&&!b&&r&&r(),(0,n.default)(g+D+v,e.indent,b)}}t.default=u}));r(P);var I=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.isEmptyPath=void 0;var n=s(N),r=s(L),o=s(P),i=s(M);function s(e){return e&&e.__esModule?e:{default:e}}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t,n){let r=n;for(let e=t.length-1;e>=0;--e){const n=t[e],o=Number.isInteger(n)&&n>=0?[]:{};o[n]=r,r=o}return e.createNode(r,!1)}const c=e=>null==e||"object"==typeof e&&e[Symbol.iterator]().next().done;t.isEmptyPath=c;class l extends r.default{constructor(e){super(),a(this,"items",[]),this.schema=e}addIn(e,t){if(c(e))this.add(t);else{const[n,...r]=e,o=this.get(n,!0);if(o instanceof l)o.addIn(r,t);else{if(void 0!==o||!this.schema)throw new Error("Expected YAML collection at ".concat(n,". Remaining path: ").concat(r));this.set(n,u(this.schema,r,t))}}}deleteIn([e,...t]){if(0===t.length)return this.delete(e);const n=this.get(e,!0);if(n instanceof l)return n.deleteIn(t);throw new Error("Expected YAML collection at ".concat(e,". Remaining path: ").concat(t))}getIn([e,...t],n){const r=this.get(e,!0);return 0===t.length?!n&&r instanceof i.default?r.value:r:r instanceof l?r.getIn(t,n):void 0}hasAllNullValues(){return this.items.every((e=>{if(!(e instanceof o.default))return!1;const t=e.value;return null==t||t instanceof i.default&&null==t.value&&!t.commentBefore&&!t.comment&&!t.tag}))}hasIn([e,...t]){if(0===t.length)return this.has(e);const n=this.get(e,!0);return n instanceof l&&n.hasIn(t)}setIn([e,...t],n){if(0===t.length)this.set(e,n);else{const r=this.get(e,!0);if(r instanceof l)r.setIn(t,n);else{if(void 0!==r||!this.schema)throw new Error("Expected YAML collection at ".concat(e,". Remaining path: ").concat(t));this.set(e,u(this.schema,t,n))}}}toJSON(){return null}toString(e,{blockItem:t,flowChars:r,isMap:o,itemIndent:i},s,a){const{doc:u,indent:c}=e,f=this.type&&"FLOW"===this.type.substr(0,4)||e.inFlow;f&&(i+="  ");const p=o&&this.hasAllNullValues();e=Object.assign({},e,{allNullValues:p,indent:i,inFlow:f,type:null});let h=!1,d=!1;const m=this.items.reduce(((t,r,o)=>{let s;r&&(!h&&r.spaceBefore&&t.push({type:"comment",str:""}),r.commentBefore&&r.commentBefore.match(/^.*$/gm).forEach((e=>{t.push({type:"comment",str:"#".concat(e)})})),r.comment&&(s=r.comment),f&&(!h&&r.spaceBefore||r.commentBefore||r.comment||r.key&&(r.key.commentBefore||r.key.comment)||r.value&&(r.value.commentBefore||r.value.comment))&&(d=!0)),h=!1;let a=u.schema.stringify(r,e,(()=>s=null),(()=>h=!0));return f&&!d&&a.includes("\n")&&(d=!0),f&&o<this.items.length-1&&(a+=","),a=(0,n.default)(a,i,s),h&&(s||f)&&(h=!1),t.push({type:"item",str:a}),t}),[]);let g;if(0===m.length)g=r.start+r.end;else if(f){const{start:e,end:t}=r,n=m.map((e=>e.str));if(d||n.reduce(((e,t)=>e+t.length+2),2)>l.maxFlowStringSingleLineLength){g=e;for(const e of n)g+=e?"\n  ".concat(c).concat(e):"\n";g+="\n".concat(c).concat(t)}else g="".concat(e," ").concat(n.join(" ")," ").concat(t)}else{const e=m.map(t);g=e.shift();for(const t of e)g+=t?"\n".concat(c).concat(t):"\n"}return this.comment?(g+="\n"+this.comment.replace(/^/gm,"".concat(c,"#")),s&&s()):h&&a&&a(),g}}t.default=l,a(l,"maxFlowStringSingleLineLength",60)}));r(I),I.isEmptyPath;var B=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=s(O),r=s(I),o=s(L),i=s(P);function s(e){return e&&e.__esModule?e:{default:e}}const a=(e,t)=>{if(e instanceof u){const n=t.find((t=>t.node===e.source));return n.count*n.aliasCount}if(e instanceof r.default){let n=0;for(const r of e.items){const e=a(r,t);e>n&&(n=e)}return n}if(e instanceof i.default){const n=a(e.key,t),r=a(e.value,t);return Math.max(n,r)}return 1};class u extends o.default{static stringify({range:e,source:t},{anchors:n,doc:r,implicitKey:o,inStringifyKey:i}){let s=Object.keys(n).find((e=>n[e]===t));if(!s&&i&&(s=r.anchors.getName(t)||r.anchors.newName()),s)return"*".concat(s).concat(o?" ":"");const a=r.anchors.getName(t)?"Alias node must be after source node":"Source node not found for alias node";throw new Error("".concat(a," [").concat(e,"]"))}constructor(e){super(),this.source=e,this.type=p.Type.ALIAS}set tag(e){throw new Error("Alias nodes cannot have tags")}toJSON(e,t){if(!t)return(0,n.default)(this.source,e,t);const{anchors:r,maxAliasCount:o}=t,i=r.find((e=>e.node===this.source));if(!i||void 0===i.res){const e="This should not happen: Alias anchor was not resolved?";throw this.cstNode?new g.YAMLReferenceError(this.cstNode,e):new ReferenceError(e)}if(o>=0&&(i.count+=1,0===i.aliasCount&&(i.aliasCount=a(this.source,r)),i.count*i.aliasCount>o)){const e="Excessive alias count indicates a resource exhaustion attack";throw this.cstNode?new g.YAMLReferenceError(this.cstNode,e):new ReferenceError(e)}return i.res}toString(e){return u.stringify(this,e)}}var c,l;t.default=u,(l="default")in(c=u)?Object.defineProperty(c,l,{value:true,enumerable:!0,configurable:!0,writable:!0}):c[l]=true}));r(B);var R=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.findPair=s,t.default=void 0;var n=i(I),r=i(P),o=i(M);function i(e){return e&&e.__esModule?e:{default:e}}function s(e,t){const n=t instanceof o.default?t.value:t;for(const o of e)if(o instanceof r.default){if(o.key===t||o.key===n)return o;if(o.key&&o.key.value===n)return o}}class a extends n.default{add(e,t){e?e instanceof r.default||(e=new r.default(e.key||e,e.value)):e=new r.default(e);const n=s(this.items,e.key),o=this.schema&&this.schema.sortMapEntries;if(n){if(!t)throw new Error("Key ".concat(e.key," already set"));n.value=e.value}else if(o){const t=this.items.findIndex((t=>o(e,t)<0));-1===t?this.items.push(e):this.items.splice(t,0,e)}else this.items.push(e)}delete(e){const t=s(this.items,e);return!!t&&this.items.splice(this.items.indexOf(t),1).length>0}get(e,t){const n=s(this.items,e),r=n&&n.value;return!t&&r instanceof o.default?r.value:r}has(e){return!!s(this.items,e)}set(e,t){this.add(new r.default(e,t),!0)}toJSON(e,t,n){const r=n?new n:t&&t.mapAsMap?new Map:{};t&&t.onCreate&&t.onCreate(r);for(const e of this.items)e.addToJSMap(t,r);return r}toString(e,t,n){if(!e)return JSON.stringify(this);for(const e of this.items)if(!(e instanceof r.default))throw new Error("Map items must all be pairs; found ".concat(JSON.stringify(e)," instead"));return super.toString(e,{blockItem:e=>e.str,flowChars:{start:"{",end:"}"},isMap:!0,itemIndent:e.indent||""},t,n)}}t.default=a}));r(R),R.findPair;var j=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(O),r=i(I),o=i(M);function i(e){return e&&e.__esModule?e:{default:e}}function s(e){let t=e instanceof o.default?e.value:e;return t&&"string"==typeof t&&(t=Number(t)),Number.isInteger(t)&&t>=0?t:null}class a extends r.default{add(e){this.items.push(e)}delete(e){const t=s(e);return"number"==typeof t&&this.items.splice(t,1).length>0}get(e,t){const n=s(e);if("number"!=typeof n)return;const r=this.items[n];return!t&&r instanceof o.default?r.value:r}has(e){const t=s(e);return"number"==typeof t&&t<this.items.length}set(e,t){const n=s(e);if("number"!=typeof n)throw new Error("Expected a valid index, not ".concat(e,"."));this.items[n]=t}toJSON(e,t){const r=[];t&&t.onCreate&&t.onCreate(r);let o=0;for(const e of this.items)r.push((0,n.default)(e,String(o++),t));return r}toString(e,t,n){return e?super.toString(e,{blockItem:e=>"comment"===e.type?e.str:"- ".concat(e.str),flowChars:{start:"[",end:"]"},isMap:!1,itemIndent:(e.indent||"")+"  "},t,n):JSON.stringify(this)}}t.default=a}));r(j);var V=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.MERGE_KEY=void 0;var n=s(R),r=s(P),o=s(M),i=s(j);function s(e){return e&&e.__esModule?e:{default:e}}t.MERGE_KEY="<<";class a extends r.default{constructor(e){if(e instanceof r.default){let t=e.value;t instanceof i.default||(t=new i.default,t.items.push(e.value),t.range=e.value.range),super(e.key,t),this.range=e.range}else super(new o.default("<<"),new i.default);this.type="MERGE_PAIR"}addToJSMap(e,t){for(const{source:r}of this.value.items){if(!(r instanceof n.default))throw new Error("Merge sources must be maps");const o=r.toJSON(null,e,Map);for(const[e,n]of o)t instanceof Map?t.has(e)||t.set(e,n):t instanceof Set?t.add(e):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=n)}return t}toString(e,t){const n=this.value;if(n.items.length>1)return super.toString(e,t);this.value=n.items[0];const r=super.toString(e,t);return this.value=n,r}}t.default=a}));r(V),V.MERGE_KEY;var $=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(B),r=a(R),o=a(V),i=a(M),s=a(j);function a(e){return e&&e.__esModule?e:{default:e}}class u{static validAnchorNode(e){return e instanceof i.default||e instanceof s.default||e instanceof r.default}constructor(e){var t;t={},"map"in this?Object.defineProperty(this,"map",{value:t,enumerable:!0,configurable:!0,writable:!0}):this.map=t,this.prefix=e}createAlias(e,t){return this.setAnchor(e,t),new n.default(e)}createMergePair(...e){const t=new o.default;return t.value.items=e.map((e=>{if(e instanceof n.default){if(e.source instanceof r.default)return e}else if(e instanceof r.default)return this.createAlias(e);throw new Error("Merge sources must be Map nodes or their Aliases")})),t}getName(e){const{map:t}=this;return Object.keys(t).find((n=>t[n]===e))}getNode(e){return this.map[e]}newName(e){e||(e=this.prefix);const t=Object.keys(this.map);for(let n=1;;++n){const r="".concat(e).concat(n);if(!t.includes(r))return r}}resolveNodes(){const{map:e,_cstAliases:t}=this;Object.keys(e).forEach((t=>{e[t]=e[t].resolved})),t.forEach((e=>{e.source=e.source.resolved})),delete this._cstAliases}setAnchor(e,t){if(null!=e&&!u.validAnchorNode(e))throw new Error("Anchors may only be set for Scalar, Seq and Map nodes");if(t&&/[\x00-\x19\s,[\]{}]/.test(t))throw new Error("Anchor names must not contain whitespace or control characters");const{map:n}=this,r=e&&Object.keys(n).find((t=>n[t]===e));if(r){if(!t)return r;r!==t&&(delete n[r],n[t]=e)}else{if(!t){if(!e)return null;t=this.newName()}n[t]=e}return t}}t.default=u}));r($);var U=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(I),r=i(P),o=i(M);function i(e){return e&&e.__esModule?e:{default:e}}const s=(e,t)=>{if(e&&"object"==typeof e){const{tag:i}=e;e instanceof n.default?(i&&(t[i]=!0),e.items.forEach((e=>s(e,t)))):e instanceof r.default?(s(e.key,t),s(e.value,t)):e instanceof o.default&&i&&(t[i]=!0)}return t};t.default=e=>Object.keys(s(e,{}))}));r(U);var W=o((function(e,n){function r(e,n){if(t&&t._YAML_SILENCE_WARNINGS)return;const{emitWarning:r}=t&&t.process;r?r(e,n):console.warn(n?"".concat(n,": ").concat(e):e)}Object.defineProperty(n,"__esModule",{value:!0}),n.warn=r,n.warnFileDeprecation=function(e){if(t&&t._YAML_SILENCE_DEPRECATION_WARNINGS)return;const n=e.replace(/.*yaml[/\\]/i,"").replace(/\.js$/,"").replace(/\\/g,"/");r("The endpoint 'yaml/".concat(n,"' will be removed in a future release."),"DeprecationWarning")},n.warnOptionDeprecation=function(e,n){if(t&&t._YAML_SILENCE_DEPRECATION_WARNINGS)return;if(o[e])return;o[e]=!0;let i="The option '".concat(e,"' will be removed in a future release");i+=n?", use '".concat(n,"' instead."):".",r(i,"DeprecationWarning")};const o={}}));r(W),W.warn,W.warnFileDeprecation,W.warnOptionDeprecation;var K=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r,{indentAtStart:o,lineWidth:i=80,minContentWidth:s=20,onFold:a,onOverflow:u}){if(!i||i<0)return e;const c=Math.max(1+s,1+i-t.length);if(e.length<=c)return e;const l=[],f={};let p,h,d,m=i-("number"==typeof o?o:t.length),g=!1,y=-1;for("block"===r&&(y=n(e,y),-1!==y&&(m=y+c));p=e[y+=1];){if("quoted"===r&&"\\"===p)switch(e[y+1]){case"x":y+=3;break;case"u":y+=5;break;case"U":y+=9;break;default:y+=1}if("\n"===p)"block"===r&&(y=n(e,y)),m=y+c,h=void 0;else{if(" "===p&&d&&" "!==d&&"\n"!==d&&"\t"!==d){const t=e[y+1];t&&" "!==t&&"\n"!==t&&"\t"!==t&&(h=y)}if(y>=m)if(h)l.push(h),m=h+c,h=void 0;else if("quoted"===r){for(;" "===d||"\t"===d;)d=p,p=e[y+=1],g=!0;l.push(y-2),f[y-2]=!0,m=y-2+c,h=void 0}else g=!0}d=p}if(g&&u&&u(),0===l.length)return e;a&&a();let b=e.slice(0,l[0]);for(let n=0;n<l.length;++n){const o=l[n],i=l[n+1]||e.length;"quoted"===r&&f[o]&&(b+="".concat(e[o],"\\")),b+="\n".concat(t).concat(e.slice(o+1,i))}return b},t.FOLD_QUOTED=t.FOLD_BLOCK=t.FOLD_FLOW=void 0,t.FOLD_FLOW="flow",t.FOLD_BLOCK="block",t.FOLD_QUOTED="quoted";const n=(e,t)=>{let n=e[t+1];for(;" "===n||"\t"===n;){do{n=e[t+=1]}while(n&&"\n"!==n);n=e[t+1]}return t}}));r(K),K.FOLD_QUOTED,K.FOLD_BLOCK,K.FOLD_FLOW;var q=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.strOptions=t.nullOptions=t.boolOptions=t.binaryOptions=void 0;const n={defaultType:p.Type.BLOCK_LITERAL,lineWidth:76};t.binaryOptions=n,t.boolOptions={trueStr:"true",falseStr:"false"},t.nullOptions={nullStr:"null"};const r={defaultType:p.Type.PLAIN,doubleQuoted:{jsonEncoding:!1,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};t.strOptions=r}));r(q),q.strOptions,q.nullOptions,q.boolOptions,q.binaryOptions;var H=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.stringifyNumber=function({format:e,minFractionDigits:t,tag:n,value:r}){if(!isFinite(r))return isNaN(r)?".nan":r<0?"-.inf":".inf";let o=JSON.stringify(r);if(!e&&t&&(!n||"tag:yaml.org,2002:float"===n)&&/^\d/.test(o)){let e=o.indexOf(".");e<0&&(e=o.length,o+=".");let n=t-(o.length-e-1);for(;n-- >0;)o+="0"}return o},t.stringifyString=function(e,t,r,u){const{defaultType:c}=q.strOptions,{implicitKey:l,inFlow:f}=t;let{type:h,value:d}=e;"string"!=typeof d&&(d=String(d),e=Object.assign({},e,{value:d}));const m=c=>{switch(c){case p.Type.BLOCK_FOLDED:case p.Type.BLOCK_LITERAL:return a(e,t,r,u);case p.Type.QUOTE_DOUBLE:return i(d,t);case p.Type.QUOTE_SINGLE:return s(d,t);case p.Type.PLAIN:return function(e,t,r,u){const{comment:c,type:l,value:f}=e,{actualString:h,implicitKey:d,indent:m,inFlow:g,tags:y}=t;if(d&&/[\n[\]{},]/.test(f)||g&&/[[\]{},]/.test(f))return i(f,t);if(!f||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(f))return d||g||-1===f.indexOf("\n")?-1!==f.indexOf('"')&&-1===f.indexOf("'")?s(f,t):i(f,t):a(e,t,r,u);if(!d&&!g&&l!==p.Type.PLAIN&&-1!==f.indexOf("\n"))return a(e,t,r,u);const b=f.replace(/\n+/g,"$&\n".concat(m));if(h&&"string"!=typeof y.resolveScalar(b).value)return i(f,t);const v=d?b:(0,n.default)(b,m,n.FOLD_FLOW,o(t));return!c||g||-1===v.indexOf("\n")&&-1===c.indexOf("\n")?v:(r&&r(),(0,N.addCommentBefore)(v,m,c))}(e,t,r,u);default:return null}};h!==p.Type.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(d)?h=p.Type.QUOTE_DOUBLE:!l&&!f||h!==p.Type.BLOCK_FOLDED&&h!==p.Type.BLOCK_LITERAL||(h=p.Type.QUOTE_DOUBLE);let g=m(h);if(null===g&&(g=m(c),null===g))throw new Error("Unsupported default string type ".concat(c));return g};var n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=r();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}(K);function r(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return r=function(){return e},e}const o=({indentAtStart:e})=>e?Object.assign({indentAtStart:e},q.strOptions.fold):q.strOptions.fold;function i(e,t){const{implicitKey:r,indent:i}=t,{jsonEncoding:s,minMultiLineLength:a}=q.strOptions.doubleQuoted,u=JSON.stringify(e);if(s)return u;let c="",l=0;for(let e=0,t=u[e];t;t=u[++e])if(" "===t&&"\\"===u[e+1]&&"n"===u[e+2]&&(c+=u.slice(l,e)+"\\ ",e+=1,l=e,t="\\"),"\\"===t)switch(u[e+1]){case"u":{c+=u.slice(l,e);const t=u.substr(e+2,4);switch(t){case"0000":c+="\\0";break;case"0007":c+="\\a";break;case"000b":c+="\\v";break;case"001b":c+="\\e";break;case"0085":c+="\\N";break;case"00a0":c+="\\_";break;case"2028":c+="\\L";break;case"2029":c+="\\P";break;default:"00"===t.substr(0,2)?c+="\\x"+t.substr(2):c+=u.substr(e,6)}e+=5,l=e+1}break;case"n":if(r||'"'===u[e+2]||u.length<a)e+=1;else{for(c+=u.slice(l,e)+"\n\n";"\\"===u[e+2]&&"n"===u[e+3]&&'"'!==u[e+4];)c+="\n",e+=2;c+=i," "===u[e+2]&&(c+="\\"),e+=1,l=e+1}break;default:e+=1}return c=l?c+u.slice(l):u,r?c:(0,n.default)(c,i,n.FOLD_QUOTED,o(t))}function s(e,t){const{indent:r,implicitKey:s}=t;if(s){if(/\n/.test(e))return i(e,t)}else if(/[ \t]\n|\n[ \t]/.test(e))return i(e,t);const a="'"+e.replace(/'/g,"''").replace(/\n+/g,"$&\n".concat(r))+"'";return s?a:(0,n.default)(a,r,n.FOLD_FLOW,o(t))}function a({comment:e,type:t,value:r},o,s,a){if(/\n[\t ]+$/.test(r)||/^\s*$/.test(r))return i(r,o);const u=o.indent||(o.forceBlockIndent?" ":""),c=u?"2":"1",l=t!==p.Type.BLOCK_FOLDED&&(t===p.Type.BLOCK_LITERAL||!function(e,t){const n=e.length;if(n<=t)return!1;for(let r=0,o=0;r<n;++r)if("\n"===e[r]){if(r-o>t)return!0;if(o=r+1,n-o<=t)return!1}return!0}(r,q.strOptions.fold.lineWidth-u.length));let f=l?"|":">";if(!r)return f+"\n";let h="",d="";if(r=r.replace(/[\n\t ]*$/,(e=>{const t=e.indexOf("\n");return-1===t?f+="-":r!==e&&t===e.length-1||(f+="+",a&&a()),d=e.replace(/\n$/,""),""})).replace(/^[\n ]*/,(e=>{-1!==e.indexOf(" ")&&(f+=c);const t=e.match(/ +$/);return t?(h=e.slice(0,-t[0].length),t[0]):(h=e,"")})),d&&(d=d.replace(/\n+(?!\n|$)/g,"$&".concat(u))),h&&(h=h.replace(/\n+/g,"$&".concat(u))),e&&(f+=" #"+e.replace(/ ?[\r\n]+/g," "),s&&s()),!r)return"".concat(f).concat(c,"\n").concat(u).concat(d);if(l)return r=r.replace(/\n+/g,"$&".concat(u)),"".concat(f,"\n").concat(u).concat(h).concat(r).concat(d);r=r.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,"$&".concat(u));const m=(0,n.default)("".concat(h).concat(r).concat(d),u,n.FOLD_BLOCK,q.strOptions.fold);return"".concat(f,"\n").concat(u).concat(m)}}));r(H),H.stringifyNumber,H.stringifyString;var z=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.checkFlowCollectionEnd=function(e,t){let n,r,o;switch(t.type){case p.Type.FLOW_MAP:n="}",r="flow map";break;case p.Type.FLOW_SEQ:n="]",r="flow sequence";break;default:return void e.push(new g.YAMLSemanticError(t,"Not a flow collection!?"))}for(let e=t.items.length-1;e>=0;--e){const n=t.items[e];if(!n||n.type!==p.Type.COMMENT){o=n;break}}if(o&&o.char!==n){const i="Expected ".concat(r," to end with ").concat(n);let s;"number"==typeof o.offset?(s=new g.YAMLSemanticError(t,i),s.offset=o.offset+1):(s=new g.YAMLSemanticError(o,i),o.range&&o.range.end&&(s.offset=o.range.end-o.range.start)),e.push(s)}},t.checkKeyLength=function(e,t,n,r,o){if(!r||"number"!=typeof o)return;const i=t.items[n];let s=i&&i.range&&i.range.start;if(!s)for(let e=n-1;e>=0;--e){const r=t.items[e];if(r&&r.range){s=r.range.end+2*(n-e);break}}if(s>o+1024){const n=String(r).substr(0,8)+"..."+String(r).substr(-8);e.push(new g.YAMLSemanticError(t,'The "'.concat(n,'" key is too long')))}},t.resolveComments=function(e,t){for(const{afterKey:n,before:r,comment:o}of t){let t=e.items[r];t?(n&&t.value&&(t=t.value),void 0===o?!n&&t.commentBefore||(t.spaceBefore=!0):t.commentBefore?t.commentBefore+="\n"+o:t.commentBefore=o):void 0!==o&&(e.comment?e.comment+="\n"+o:e.comment=o)}}}));r(z),z.checkFlowCollectionEnd,z.checkKeyLength,z.resolveComments;var Y=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(t.type!==p.Type.MAP&&t.type!==p.Type.FLOW_MAP){const n="A ".concat(t.type," node cannot be resolved as a mapping");return e.errors.push(new g.YAMLSyntaxError(t,n)),null}const{comments:u,items:c}=t.type===p.Type.FLOW_MAP?function(e,t){const n=[],r=[];let o,s=null,a=!1,u="{";for(let c=0;c<t.items.length;++c){(0,z.checkKeyLength)(e.errors,t,c,o,s);const l=t.items[c];if("string"==typeof l.char){const{char:n,offset:f}=l;if("?"===n&&void 0===o&&!a){a=!0,u=":";continue}if(":"===n){if(void 0===o&&(o=null),":"===u){u=",";continue}}else if(a&&(void 0===o&&","!==n&&(o=null),a=!1),void 0!==o&&(r.push(new i.default(o)),o=void 0,s=null,","===n)){u=":";continue}if("}"===n){if(c===t.items.length-1)continue}else if(n===u){u=":";continue}const p="Flow map contains an unexpected ".concat(n),h=new g.YAMLSyntaxError(t,p);h.offset=f,e.errors.push(h)}else l.type===p.Type.BLANK_LINE?n.push({afterKey:!!o,before:r.length}):l.type===p.Type.COMMENT?n.push({afterKey:!!o,before:r.length,comment:l.comment}):void 0===o?(","===u&&e.errors.push(new g.YAMLSemanticError(l,"Separator , missing in flow map")),o=e.resolveNode(l),s=a?null:l.range.start):(","!==u&&e.errors.push(new g.YAMLSemanticError(l,"Indicator : missing in flow map entry")),r.push(new i.default(o,e.resolveNode(l))),o=void 0,a=!1)}return(0,z.checkFlowCollectionEnd)(e.errors,t),void 0!==o&&r.push(new i.default(o)),{comments:n,items:r}}(e,t):function(e,t){const r=[],o=[];let s,a=null;for(let u=0;u<t.items.length;++u){const c=t.items[u];switch(c.type){case p.Type.BLANK_LINE:r.push({afterKey:!!s,before:o.length});break;case p.Type.COMMENT:r.push({afterKey:!!s,before:o.length,comment:c.comment});break;case p.Type.MAP_KEY:void 0!==s&&o.push(new i.default(s)),c.error&&e.errors.push(c.error),s=e.resolveNode(c.node),a=null;break;case p.Type.MAP_VALUE:{if(void 0===s&&(s=null),c.error&&e.errors.push(c.error),!c.context.atLineStart&&c.node&&c.node.type===p.Type.MAP&&!c.node.context.atLineStart){const t="Nested mappings are not allowed in compact mappings";e.errors.push(new g.YAMLSemanticError(c.node,t))}let r=c.node;if(!r&&c.props.length>0){r=new n.default(p.Type.PLAIN,[]),r.context={parent:c,src:c.context.src};const e=c.range.start+1;if(r.range={start:e,end:e},r.valueRange={start:e,end:e},"number"==typeof c.range.origStart){const e=c.range.origStart+1;r.range.origStart=r.range.origEnd=e,r.valueRange.origStart=r.valueRange.origEnd=e}}const f=new i.default(s,e.resolveNode(r));l(c,f),o.push(f),(0,z.checkKeyLength)(e.errors,t,u,s,a),s=void 0,a=null}break;default:void 0!==s&&o.push(new i.default(s)),s=e.resolveNode(c),a=c.range.start,c.error&&e.errors.push(c.error);e:for(let n=u+1;;++n){const r=t.items[n];switch(r&&r.type){case p.Type.BLANK_LINE:case p.Type.COMMENT:continue e;case p.Type.MAP_VALUE:break e;default:e.errors.push(new g.YAMLSemanticError(c,"Implicit map keys need to be followed by map values"));break e}}if(c.valueRangeContainsNewline){const t="Implicit map keys need to be on a single line";e.errors.push(new g.YAMLSemanticError(c,t))}}}return void 0!==s&&o.push(new i.default(s)),{comments:r,items:o}}(e,t),f=new r.default;f.items=c,(0,z.resolveComments)(f,u);let h=!1;for(let n=0;n<c.length;++n){const{key:r}=c[n];if(r instanceof a.default&&(h=!0),e.schema.merge&&r&&r.value===o.MERGE_KEY){c[n]=new o.default(c[n]);const r=c[n].value.items;let i=null;r.some((e=>{if(e instanceof s.default){const{type:t}=e.source;return t!==p.Type.MAP&&t!==p.Type.FLOW_MAP&&(i="Merge nodes aliases can only point to maps")}return i="Merge nodes can only have Alias nodes as values"})),i&&e.errors.push(new g.YAMLSemanticError(t,i))}else for(let o=n+1;o<c.length;++o){const{key:n}=c[o];if(r===n||r&&n&&Object.prototype.hasOwnProperty.call(r,"value")&&r.value===n.value){const n='Map keys must be unique; "'.concat(r,'" is repeated');e.errors.push(new g.YAMLSemanticError(t,n));break}}}if(h&&!e.options.mapAsMap){const n="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";e.warnings.push(new g.YAMLWarning(t,n))}return t.resolved=f,f};var n=c(x),r=c(R),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(V),i=c(P),s=c(B),a=c(I);function u(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(({context:{lineStart:e,node:t,src:n},props:r})=>{if(0===r.length)return!1;const{start:o}=r[0];if(t&&o>t.valueRange.start)return!1;if(n[o]!==p.Char.COMMENT)return!1;for(let t=e;t<o;++t)if("\n"===n[t])return!1;return!0})(e))return;const n=e.getPropValue(0,p.Char.COMMENT,!0);let r=!1;const o=t.value.commentBefore;if(o&&o.startsWith(n))t.value.commentBefore=o.substr(n.length+1),r=!0;else{const o=t.value.comment;!e.node&&o&&o.startsWith(n)&&(t.value.comment=o.substr(n.length+1),r=!0)}r&&(t.comment=n)}}));r(Y);var J=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(R),r=o(Y);function o(e){return e&&e.__esModule?e:{default:e}}var i={createNode:function(e,t,r){const o=new n.default(e);if(t instanceof Map)for(const[n,i]of t)o.items.push(e.createPair(n,i,r));else if(t&&"object"==typeof t)for(const n of Object.keys(t))o.items.push(e.createPair(n,t[n],r));return"function"==typeof e.sortMapEntries&&o.items.sort(e.sortMapEntries),o},default:!0,nodeClass:n.default,tag:"tag:yaml.org,2002:map",resolve:r.default};t.default=i}));r(J);var G=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(t.type!==p.Type.SEQ&&t.type!==p.Type.FLOW_SEQ){const n="A ".concat(t.type," node cannot be resolved as a sequence");return e.errors.push(new g.YAMLSyntaxError(t,n)),null}const{comments:i,items:s}=t.type===p.Type.FLOW_SEQ?function(e,t){const r=[],o=[];let i,s=!1,a=null,u="[";for(let c=0;c<t.items.length;++c){const l=t.items[c];if("string"==typeof l.char){const{char:r,offset:f}=l;if(":"===r||!s&&void 0===i||(s&&void 0===i&&(i=u?o.pop():null),o.push(new n.default(i)),s=!1,i=void 0,a=null),r===u)u=null;else if(u||"?"!==r){if("["!==u&&":"===r&&void 0===i){if(","===u){if(i=o.pop(),i instanceof n.default){const n="Chaining flow sequence pairs is invalid",r=new g.YAMLSemanticError(t,n);r.offset=f,e.errors.push(r)}s||(0,z.checkKeyLength)(e.errors,t,c,i,a)}else i=null;a=null,s=!1,u=null}else if("["===u||"]"!==r||c<t.items.length-1){const n="Flow sequence contains an unexpected ".concat(r),o=new g.YAMLSyntaxError(t,n);o.offset=f,e.errors.push(o)}}else s=!0}else if(l.type===p.Type.BLANK_LINE)r.push({before:o.length});else if(l.type===p.Type.COMMENT)r.push({comment:l.comment,before:o.length});else{if(u){const t="Expected a ".concat(u," in flow sequence");e.errors.push(new g.YAMLSemanticError(l,t))}const t=e.resolveNode(l);void 0===i?o.push(t):(o.push(new n.default(i,t)),i=void 0),a=l.range.start,u=","}}return(0,z.checkFlowCollectionEnd)(e.errors,t),void 0!==i&&o.push(new n.default(i)),{comments:r,items:o}}(e,t):function(e,t){const n=[],r=[];for(let o=0;o<t.items.length;++o){const i=t.items[o];switch(i.type){case p.Type.BLANK_LINE:n.push({before:r.length});break;case p.Type.COMMENT:n.push({comment:i.comment,before:r.length});break;case p.Type.SEQ_ITEM:if(i.error&&e.errors.push(i.error),r.push(e.resolveNode(i.node)),i.hasProps){const t="Sequence items cannot have tags or anchors before the - indicator";e.errors.push(new g.YAMLSemanticError(i,t))}break;default:i.error&&e.errors.push(i.error),e.errors.push(new g.YAMLSyntaxError(i,"Unexpected ".concat(i.type," node in sequence")))}}return{comments:n,items:r}}(e,t),a=new r.default;if(a.items=s,(0,z.resolveComments)(a,i),!e.options.mapAsMap&&s.some((e=>e instanceof n.default&&e.key instanceof o.default))){const n="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";e.warnings.push(new g.YAMLWarning(t,n))}return t.resolved=a,a};var n=i(P),r=i(j),o=i(I);function i(e){return e&&e.__esModule?e:{default:e}}}));r(G);var X=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(G),r=o(j);function o(e){return e&&e.__esModule?e:{default:e}}var i={createNode:function(e,t,n){const o=new r.default(e);if(t&&t[Symbol.iterator])for(const r of t){const t=e.createNode(r,n.wrapScalars,null,n);o.items.push(t)}return o},default:!0,nodeClass:r.default,tag:"tag:yaml.org,2002:seq",resolve:n.default};t.default=i}));r(X);var Q=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.resolveString=void 0;const n=(e,t)=>{const n=t.strValue;return n?"string"==typeof n?n:(n.errors.forEach((n=>{n.source||(n.source=t),e.errors.push(n)})),n.str):""};t.resolveString=n;var r={identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:n,stringify:(e,t,n,r)=>(t=Object.assign({actualString:!0},t),(0,H.stringifyString)(e,t,n,r)),options:q.strOptions};t.default=r}));r(Q),Q.resolveString;var Z=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(J),r=i(X),o=i(Q);function i(e){return e&&e.__esModule?e:{default:e}}var s=[n.default,r.default,o.default];t.default=s}));r(Z);var ee=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.floatObj=t.expObj=t.nanObj=t.hexObj=t.intObj=t.octObj=t.boolObj=t.nullObj=void 0;var n=o(M),r=o(Z);function o(e){return e&&e.__esModule?e:{default:e}}const i={identify:e=>null==e,createNode:(e,t,r)=>r.wrapScalars?new n.default(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:q.nullOptions,stringify:()=>q.nullOptions.nullStr};t.nullObj=i;const s={identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>"t"===e[0]||"T"===e[0],options:q.boolOptions,stringify:({value:e})=>e?q.boolOptions.trueStr:q.boolOptions.falseStr};t.boolObj=s;const a={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:(e,t)=>parseInt(t,8),stringify:({value:e})=>"0o"+e.toString(8)};t.octObj=a;const u={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:e=>parseInt(e,10),stringify:H.stringifyNumber};t.intObj=u;const c={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:(e,t)=>parseInt(t,16),stringify:({value:e})=>"0x"+e.toString(16)};t.hexObj=c;const l={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(e,t)=>t?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:H.stringifyNumber};t.nanObj=l;const f={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:0|[1-9][0-9]*)(\.[0-9]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify:({value:e})=>Number(e).toExponential()};t.expObj=f;const p={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:0|[1-9][0-9]*)\.([0-9]*)$/,resolve(e,t){const r=new n.default(parseFloat(e));return t&&"0"===t[t.length-1]&&(r.minFractionDigits=t.length),r},stringify:H.stringifyNumber};t.floatObj=p;var h=r.default.concat([i,s,a,u,c,l,f,p]);t.default=h}));r(ee),ee.floatObj,ee.expObj,ee.nanObj,ee.hexObj,ee.intObj,ee.octObj,ee.boolObj,ee.nullObj;var te=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(J),r=i(X),o=i(M);function i(e){return e&&e.__esModule?e:{default:e}}const s=[n.default,r.default,{identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:Q.resolveString,stringify:e=>JSON.stringify(e)},{identify:e=>null==e,createNode:(e,t,n)=>n.wrapScalars?new o.default(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:e=>JSON.stringify(e)},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>"true"===e,stringify:e=>JSON.stringify(e)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:e=>parseInt(e,10),stringify:e=>JSON.stringify(e)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:e=>JSON.stringify(e)}];s.scalarFallback=e=>{throw new SyntaxError("Unresolved plain scalar ".concat(JSON.stringify(e)))};var a=s;t.default=a}));r(te);var ne=void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},re=[],oe=[],ie="undefined"!=typeof Uint8Array?Uint8Array:Array,se=!1;function ae(){se=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,n=e.length;t<n;++t)re[t]=e[t],oe[e.charCodeAt(t)]=t;oe["-".charCodeAt(0)]=62,oe["_".charCodeAt(0)]=63}function ue(e,t,n){for(var r,o,i=[],s=t;s<n;s+=3)r=(e[s]<<16)+(e[s+1]<<8)+e[s+2],i.push(re[(o=r)>>18&63]+re[o>>12&63]+re[o>>6&63]+re[63&o]);return i.join("")}function ce(e){var t;se||ae();for(var n=e.length,r=n%3,o="",i=[],s=0,a=n-r;s<a;s+=16383)i.push(ue(e,s,s+16383>a?a:s+16383));return 1===r?(t=e[n-1],o+=re[t>>2],o+=re[t<<4&63],o+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],o+=re[t>>10],o+=re[t>>4&63],o+=re[t<<2&63],o+="="),i.push(o),i.join("")}function le(e,t,n,r,o){var i,s,a=8*o-r-1,u=(1<<a)-1,c=u>>1,l=-7,f=n?o-1:0,p=n?-1:1,h=e[t+f];for(f+=p,i=h&(1<<-l)-1,h>>=-l,l+=a;l>0;i=256*i+e[t+f],f+=p,l-=8);for(s=i&(1<<-l)-1,i>>=-l,l+=r;l>0;s=256*s+e[t+f],f+=p,l-=8);if(0===i)i=1-c;else{if(i===u)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,r),i-=c}return(h?-1:1)*s*Math.pow(2,i-r)}function fe(e,t,n,r,o,i){var s,a,u,c=8*i-o-1,l=(1<<c)-1,f=l>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,d=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),(t+=s+f>=1?p/u:p*Math.pow(2,1-f))*u>=2&&(s++,u/=2),s+f>=l?(a=0,s=l):s+f>=1?(a=(t*u-1)*Math.pow(2,o),s+=f):(a=t*Math.pow(2,f-1)*Math.pow(2,o),s=0));o>=8;e[n+h]=255&a,h+=d,a/=256,o-=8);for(s=s<<o|a,c+=o;c>0;e[n+h]=255&s,h+=d,s/=256,c-=8);e[n+h-d]|=128*m}var pe={}.toString,he=Array.isArray||function(e){return"[object Array]"==pe.call(e)};function de(){return ge.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function me(e,t){if(de()<t)throw new RangeError("Invalid typed array length");return ge.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=ge.prototype:(null===e&&(e=new ge(t)),e.length=t),e}function ge(e,t,n){if(!(ge.TYPED_ARRAY_SUPPORT||this instanceof ge))return new ge(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return ve(this,e)}return ye(this,e,t,n)}function ye(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),ge.TYPED_ARRAY_SUPPORT?(e=t).__proto__=ge.prototype:e=De(e,t),e}(e,t,n,r):"string"==typeof t?function(e,t,n){if("string"==typeof n&&""!==n||(n="utf8"),!ge.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|we(t,n),o=(e=me(e,r)).write(t,n);return o!==r&&(e=e.slice(0,o)),e}(e,t,n):function(e,t){if(Ee(t)){var n=0|Ce(t.length);return 0===(e=me(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?me(e,0):De(e,t);if("Buffer"===t.type&&he(t.data))return De(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function be(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function ve(e,t){if(be(t),e=me(e,t<0?0:0|Ce(t)),!ge.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function De(e,t){var n=t.length<0?0:0|Ce(t.length);e=me(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function Ce(e){if(e>=de())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+de().toString(16)+" bytes");return 0|e}function Ee(e){return!(null==e||!e._isBuffer)}function we(e,t){if(Ee(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Je(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Ge(e).length;default:if(r)return Je(e).length;t=(""+t).toLowerCase(),r=!0}}function Ae(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return Re(this,t,n);case"utf8":case"utf-8":return Pe(this,t,n);case"ascii":return Ie(this,t,n);case"latin1":case"binary":return Be(this,t,n);case"base64":return Me(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return je(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function Se(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function xe(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=ge.from(t,r)),Ee(t))return 0===t.length?-1:_e(e,t,n,r,o);if("number"==typeof t)return t&=255,ge.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):_e(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function _e(e,t,n,r,o){var i,s=1,a=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,u/=2,n/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(o){var l=-1;for(i=n;i<a;i++)if(c(e,i)===c(t,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===u)return l*s}else-1!==l&&(i-=i-l),l=-1}else for(n+u>a&&(n=a-u),i=n;i>=0;i--){for(var f=!0,p=0;p<u;p++)if(c(e,i+p)!==c(t,p)){f=!1;break}if(f)return i}return-1}function Fe(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var s=0;s<r;++s){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[n+s]=a}return s}function Te(e,t,n,r){return Xe(Je(t,e.length-n),e,n,r)}function ke(e,t,n,r){return Xe(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function Ne(e,t,n,r){return ke(e,t,n,r)}function Oe(e,t,n,r){return Xe(Ge(t),e,n,r)}function Le(e,t,n,r){return Xe(function(e,t){for(var n,r,o,i=[],s=0;s<e.length&&!((t-=2)<0);++s)r=(n=e.charCodeAt(s))>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function Me(e,t,n){return 0===t&&n===e.length?ce(e):ce(e.slice(t,n))}function Pe(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i,s,a,u,c=e[o],l=null,f=c>239?4:c>223?3:c>191?2:1;if(o+f<=n)switch(f){case 1:c<128&&(l=c);break;case 2:128==(192&(i=e[o+1]))&&(u=(31&c)<<6|63&i)>127&&(l=u);break;case 3:i=e[o+1],s=e[o+2],128==(192&i)&&128==(192&s)&&(u=(15&c)<<12|(63&i)<<6|63&s)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:i=e[o+1],s=e[o+2],a=e[o+3],128==(192&i)&&128==(192&s)&&128==(192&a)&&(u=(15&c)<<18|(63&i)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),o+=f}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}function Ie(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function Be(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function Re(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;++i)o+=Ye(e[i]);return o}function je(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function Ve(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function $e(e,t,n,r,o,i){if(!Ee(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function Ue(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o<i;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function We(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o<i;++o)e[n+o]=t>>>8*(r?o:3-o)&255}function Ke(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function qe(e,t,n,r,o){return o||Ke(e,0,n,4),fe(e,t,n,r,23,4),n+4}function He(e,t,n,r,o){return o||Ke(e,0,n,8),fe(e,t,n,r,52,8),n+8}ge.TYPED_ARRAY_SUPPORT=void 0===ne.TYPED_ARRAY_SUPPORT||ne.TYPED_ARRAY_SUPPORT,ge.poolSize=8192,ge._augment=function(e){return e.__proto__=ge.prototype,e},ge.from=function(e,t,n){return ye(null,e,t,n)},ge.TYPED_ARRAY_SUPPORT&&(ge.prototype.__proto__=Uint8Array.prototype,ge.__proto__=Uint8Array),ge.alloc=function(e,t,n){return function(e,t,n,r){return be(t),t<=0?me(e,t):void 0!==n?"string"==typeof r?me(e,t).fill(n,r):me(e,t).fill(n):me(e,t)}(null,e,t,n)},ge.allocUnsafe=function(e){return ve(null,e)},ge.allocUnsafeSlow=function(e){return ve(null,e)},ge.isBuffer=function(e){return null!=e&&(!!e._isBuffer||Qe(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&Qe(e.slice(0,0))}(e))},ge.compare=function(e,t){if(!Ee(e)||!Ee(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},ge.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},ge.concat=function(e,t){if(!he(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return ge.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=ge.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var i=e[n];if(!Ee(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(r,o),o+=i.length}return r},ge.byteLength=we,ge.prototype._isBuffer=!0,ge.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)Se(this,t,t+1);return this},ge.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)Se(this,t,t+3),Se(this,t+1,t+2);return this},ge.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)Se(this,t,t+7),Se(this,t+1,t+6),Se(this,t+2,t+5),Se(this,t+3,t+4);return this},ge.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?Pe(this,0,e):Ae.apply(this,arguments)},ge.prototype.equals=function(e){if(!Ee(e))throw new TypeError("Argument must be a Buffer");return this===e||0===ge.compare(this,e)},ge.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),"<Buffer "+e+">"},ge.prototype.compare=function(e,t,n,r,o){if(!Ee(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0),a=Math.min(i,s),u=this.slice(r,o),c=e.slice(t,n),l=0;l<a;++l)if(u[l]!==c[l]){i=u[l],s=c[l];break}return i<s?-1:s<i?1:0},ge.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},ge.prototype.indexOf=function(e,t,n){return xe(this,e,t,n,!0)},ge.prototype.lastIndexOf=function(e,t,n){return xe(this,e,t,n,!1)},ge.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return Fe(this,e,t,n);case"utf8":case"utf-8":return Te(this,e,t,n);case"ascii":return ke(this,e,t,n);case"latin1":case"binary":return Ne(this,e,t,n);case"base64":return Oe(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Le(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},ge.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},ge.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),ge.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=ge.prototype;else{var o=t-e;n=new ge(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+e]}return n},ge.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||Ve(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},ge.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||Ve(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},ge.prototype.readUInt8=function(e,t){return t||Ve(e,1,this.length),this[e]},ge.prototype.readUInt16LE=function(e,t){return t||Ve(e,2,this.length),this[e]|this[e+1]<<8},ge.prototype.readUInt16BE=function(e,t){return t||Ve(e,2,this.length),this[e]<<8|this[e+1]},ge.prototype.readUInt32LE=function(e,t){return t||Ve(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},ge.prototype.readUInt32BE=function(e,t){return t||Ve(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},ge.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||Ve(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},ge.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||Ve(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},ge.prototype.readInt8=function(e,t){return t||Ve(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},ge.prototype.readInt16LE=function(e,t){t||Ve(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},ge.prototype.readInt16BE=function(e,t){t||Ve(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},ge.prototype.readInt32LE=function(e,t){return t||Ve(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},ge.prototype.readInt32BE=function(e,t){return t||Ve(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},ge.prototype.readFloatLE=function(e,t){return t||Ve(e,4,this.length),le(this,e,!0,23,4)},ge.prototype.readFloatBE=function(e,t){return t||Ve(e,4,this.length),le(this,e,!1,23,4)},ge.prototype.readDoubleLE=function(e,t){return t||Ve(e,8,this.length),le(this,e,!0,52,8)},ge.prototype.readDoubleBE=function(e,t){return t||Ve(e,8,this.length),le(this,e,!1,52,8)},ge.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||$e(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},ge.prototype.writeUIntBE=function(e,t,n,r){e=+e,t|=0,n|=0,r||$e(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},ge.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||$e(this,e,t,1,255,0),ge.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},ge.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||$e(this,e,t,2,65535,0),ge.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Ue(this,e,t,!0),t+2},ge.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||$e(this,e,t,2,65535,0),ge.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Ue(this,e,t,!1),t+2},ge.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||$e(this,e,t,4,4294967295,0),ge.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):We(this,e,t,!0),t+4},ge.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||$e(this,e,t,4,4294967295,0),ge.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):We(this,e,t,!1),t+4},ge.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);$e(this,e,t,n,o-1,-o)}var i=0,s=1,a=0;for(this[t]=255&e;++i<n&&(s*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/s>>0)-a&255;return t+n},ge.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);$e(this,e,t,n,o-1,-o)}var i=n-1,s=1,a=0;for(this[t+i]=255&e;--i>=0&&(s*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/s>>0)-a&255;return t+n},ge.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||$e(this,e,t,1,127,-128),ge.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},ge.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||$e(this,e,t,2,32767,-32768),ge.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Ue(this,e,t,!0),t+2},ge.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||$e(this,e,t,2,32767,-32768),ge.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Ue(this,e,t,!1),t+2},ge.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||$e(this,e,t,4,2147483647,-2147483648),ge.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):We(this,e,t,!0),t+4},ge.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||$e(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),ge.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):We(this,e,t,!1),t+4},ge.prototype.writeFloatLE=function(e,t,n){return qe(this,e,t,!0,n)},ge.prototype.writeFloatBE=function(e,t,n){return qe(this,e,t,!1,n)},ge.prototype.writeDoubleLE=function(e,t,n){return He(this,e,t,!0,n)},ge.prototype.writeDoubleBE=function(e,t,n){return He(this,e,t,!1,n)},ge.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o,i=r-n;if(this===e&&n<t&&t<r)for(o=i-1;o>=0;--o)e[o+t]=this[o+n];else if(i<1e3||!ge.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},ge.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!ge.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var s=Ee(e)?e:Je(new ge(e,r).toString()),a=s.length;for(i=0;i<n-t;++i)this[i+t]=s[i%a]}return this};var ze=/[^+\/0-9A-Za-z-_]/g;function Ye(e){return e<16?"0"+e.toString(16):e.toString(16)}function Je(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],s=0;s<r;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function Ge(e){return function(e){var t,n,r,o,i,s;se||ae();var a=e.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");i="="===e[a-2]?2:"="===e[a-1]?1:0,s=new ie(3*a/4-i),r=i>0?a-4:a;var u=0;for(t=0,n=0;t<r;t+=4,n+=3)o=oe[e.charCodeAt(t)]<<18|oe[e.charCodeAt(t+1)]<<12|oe[e.charCodeAt(t+2)]<<6|oe[e.charCodeAt(t+3)],s[u++]=o>>16&255,s[u++]=o>>8&255,s[u++]=255&o;return 2===i?(o=oe[e.charCodeAt(t)]<<2|oe[e.charCodeAt(t+1)]>>4,s[u++]=255&o):1===i&&(o=oe[e.charCodeAt(t)]<<10|oe[e.charCodeAt(t+1)]<<4|oe[e.charCodeAt(t+2)]>>2,s[u++]=o>>8&255,s[u++]=255&o),s}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(ze,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Xe(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function Qe(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var Ze=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve:(e,t)=>{{const n=(0,Q.resolveString)(e,t);return ge.from(n,"base64")}},options:q.binaryOptions,stringify:({comment:e,type:t,value:n},r,o,i)=>{let s;if(s=n instanceof ge?n.toString("base64"):ge.from(n.buffer).toString("base64"),t||(t=q.binaryOptions.defaultType),t===p.Type.QUOTE_DOUBLE)n=s;else{const{lineWidth:e}=q.binaryOptions,r=Math.ceil(s.length/e),o=new Array(r);for(let t=0,n=0;t<r;++t,n+=e)o[t]=s.substr(n,e);n=o.join(t===p.Type.BLOCK_LITERAL?"\n":" ")}return(0,H.stringifyString)({comment:e,type:t,value:n},r,o,i)}};t.default=n}));r(Ze);var et=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.parsePairs=a,t.createPairs=u,t.default=void 0;var n=s(R),r=s(P),o=s(G),i=s(j);function s(e){return e&&e.__esModule?e:{default:e}}function a(e,t){const i=(0,o.default)(e,t);for(let e=0;e<i.items.length;++e){let o=i.items[e];if(!(o instanceof r.default)){if(o instanceof n.default){if(o.items.length>1){const e="Each pair must have its own sequence indicator";throw new g.YAMLSemanticError(t,e)}const e=o.items[0]||new r.default;o.commentBefore&&(e.commentBefore=e.commentBefore?"".concat(o.commentBefore,"\n").concat(e.commentBefore):o.commentBefore),o.comment&&(e.comment=e.comment?"".concat(o.comment,"\n").concat(e.comment):o.comment),o=e}i.items[e]=o instanceof r.default?o:new r.default(o)}}return i}function u(e,t,n){const r=new i.default(e);r.tag="tag:yaml.org,2002:pairs";for(const o of t){let t,i;if(Array.isArray(o)){if(2!==o.length)throw new TypeError("Expected [key, value] tuple: ".concat(o));t=o[0],i=o[1]}else if(o&&o instanceof Object){const e=Object.keys(o);if(1!==e.length)throw new TypeError("Expected { key: value } tuple: ".concat(o));t=e[0],i=o[t]}else t=o;const s=e.createPair(t,i,n);r.items.push(s)}return r}var c={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:a,createNode:u};t.default=c}));r(et),et.parsePairs,et.createPairs;var tt=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.YAMLOMap=void 0;var n=a(O),r=a(R),o=a(P),i=a(M),s=a(j);function a(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class c extends s.default{constructor(){super(),u(this,"add",r.default.prototype.add.bind(this)),u(this,"delete",r.default.prototype.delete.bind(this)),u(this,"get",r.default.prototype.get.bind(this)),u(this,"has",r.default.prototype.has.bind(this)),u(this,"set",r.default.prototype.set.bind(this)),this.tag=c.tag}toJSON(e,t){const r=new Map;t&&t.onCreate&&t.onCreate(r);for(const e of this.items){let i,s;if(e instanceof o.default?(i=(0,n.default)(e.key,"",t),s=(0,n.default)(e.value,i,t)):i=(0,n.default)(e,"",t),r.has(i))throw new Error("Ordered maps must not include duplicate keys");r.set(i,s)}return r}}t.YAMLOMap=c,u(c,"tag","tag:yaml.org,2002:omap");var l={identify:e=>e instanceof Map,nodeClass:c,default:!1,tag:"tag:yaml.org,2002:omap",resolve:function(e,t){const n=(0,et.parsePairs)(e,t),r=[];for(const{key:e}of n.items)if(e instanceof i.default){if(r.includes(e.value)){const e="Ordered maps must not include duplicate keys";throw new g.YAMLSemanticError(t,e)}r.push(e.value)}return Object.assign(new c,n)},createNode:function(e,t,n){const r=(0,et.createPairs)(e,t,n),o=new c;return o.items=r.items,o}};t.default=l}));r(tt),tt.YAMLOMap;var nt=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.YAMLSet=void 0;var n,r,o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(R),i=u(P),s=u(Y),a=u(M);function u(e){return e&&e.__esModule?e:{default:e}}function c(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}class l extends o.default{constructor(){super(),this.tag=l.tag}add(e){const t=e instanceof i.default?e:new i.default(e);(0,o.findPair)(this.items,t.key)||this.items.push(t)}get(e,t){const n=(0,o.findPair)(this.items,e);return!t&&n instanceof i.default?n.key instanceof a.default?n.key.value:n.key:n}set(e,t){if("boolean"!=typeof t)throw new Error("Expected boolean value for set(key, value) in a YAML set, not ".concat(typeof t));const n=(0,o.findPair)(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new i.default(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues())return super.toString(e,t,n);throw new Error("Set items must all have null values")}}t.YAMLSet=l,r="tag:yaml.org,2002:set","tag"in(n=l)?Object.defineProperty(n,"tag",{value:r,enumerable:!0,configurable:!0,writable:!0}):n.tag=r;var f={identify:e=>e instanceof Set,nodeClass:l,default:!1,tag:"tag:yaml.org,2002:set",resolve:function(e,t){const n=(0,s.default)(e,t);if(!n.hasAllNullValues())throw new g.YAMLSemanticError(t,"Set items must all have null values");return Object.assign(new l,n)},createNode:function(e,t,n){const r=new l;for(const o of t)r.items.push(e.createPair(o,null,n));return r}};t.default=f}));r(nt),nt.YAMLSet;var rt=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.timestamp=t.floatTime=t.intTime=void 0;const n=(e,t)=>{const n=t.split(":").reduce(((e,t)=>60*e+Number(t)),0);return"-"===e?-n:n},r=({value:e})=>{if(isNaN(e)||!isFinite(e))return(0,H.stringifyNumber)(e);let t="";e<0&&(t="-",e=Math.abs(e));const n=[e%60];return e<60?n.unshift(0):(e=Math.round((e-n[0])/60),n.unshift(e%60),e>=60&&(e=Math.round((e-n[0])/60),n.unshift(e))),t+n.map((e=>e<10?"0"+String(e):String(e))).join(":").replace(/000000\d*$/,"")},o={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:(e,t,r)=>n(t,r.replace(/_/g,"")),stringify:r};t.intTime=o;const i={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:(e,t,r)=>n(t,r.replace(/_/g,"")),stringify:r};t.floatTime=i;const s={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^(?:([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?)$"),resolve:(e,t,r,o,i,s,a,u,c)=>{u&&(u=(u+"00").substr(1,3));let l=Date.UTC(t,r-1,o,i||0,s||0,a||0,u||0);if(c&&"Z"!==c){let e=n(c[0],c.slice(1));Math.abs(e)<30&&(e*=60),l-=6e4*e}return new Date(l)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};t.timestamp=s}));r(rt),rt.timestamp,rt.floatTime,rt.intTime;var ot=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=u(M),r=u(Z),o=u(Ze),i=u(tt),s=u(et),a=u(nt);function u(e){return e&&e.__esModule?e:{default:e}}const c=({value:e})=>e?q.boolOptions.trueStr:q.boolOptions.falseStr;var l=r.default.concat([{identify:e=>null==e,createNode:(e,t,r)=>r.wrapScalars?new n.default(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:q.nullOptions,stringify:()=>q.nullOptions.nullStr},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>!0,options:q.boolOptions,stringify:c},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>!1,options:q.boolOptions,stringify:c},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^0b([0-1_]+)$/,resolve:(e,t)=>parseInt(t.replace(/_/g,""),2),stringify:({value:e})=>"0b"+e.toString(2)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0([0-7_]+)$/,resolve:(e,t)=>parseInt(t.replace(/_/g,""),8),stringify:({value:e})=>(e<0?"-0":"0")+e.toString(8)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:e=>parseInt(e.replace(/_/g,""),10),stringify:H.stringifyNumber},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F_]+)$/,resolve:(e,t)=>parseInt(t.replace(/_/g,""),16),stringify:({value:e})=>(e<0?"-0x":"0x")+e.toString(16)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(e,t)=>t?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:H.stringifyNumber},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify:({value:e})=>Number(e).toExponential()},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve(e,t){const r=new n.default(parseFloat(e.replace(/_/g,"")));if(t){const e=t.replace(/_/g,"");"0"===e[e.length-1]&&(r.minFractionDigits=e.length)}return r},stringify:H.stringifyNumber}],o.default,i.default,s.default,a.default,rt.intTime,rt.floatTime,rt.timestamp);t.default=l}));r(ot);var it=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.tags=t.schemas=void 0;var n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=h();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(ee),r=p(Z),o=p(te),i=p(ot),s=p(J),a=p(X),u=p(Ze),c=p(tt),l=p(et),f=p(nt);function p(e){return e&&e.__esModule?e:{default:e}}function h(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return h=function(){return e},e}const d={core:n.default,failsafe:r.default,json:o.default,yaml11:i.default};t.schemas=d;const m={binary:u.default,bool:n.boolObj,float:n.floatObj,floatExp:n.expObj,floatNaN:n.nanObj,floatTime:rt.floatTime,int:n.intObj,intHex:n.hexObj,intOct:n.octObj,intTime:rt.intTime,map:s.default,null:n.nullObj,omap:c.default,pairs:l.default,seq:a.default,set:f.default,timestamp:rt.timestamp};t.tags=m}));r(it),it.tags,it.schemas;var st=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(B),r=a(I),o=a(L),i=a(P),s=a(M);function a(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class c{constructor({customTags:e,merge:t,schema:n,sortMapEntries:r,tags:o}){if(this.merge=!!t,this.name=n,this.sortMapEntries=!0===r?(e,t)=>e.key<t.key?-1:e.key>t.key?1:0:r||null,this.tags=it.schemas[n.replace(/\W/g,"")],!this.tags){const e=Object.keys(it.schemas).map((e=>JSON.stringify(e))).join(", ");throw new Error('Unknown schema "'.concat(n,'"; use one of ').concat(e))}if(!e&&o&&(e=o,(0,W.warnOptionDeprecation)("tags","customTags")),Array.isArray(e))for(const t of e)this.tags=this.tags.concat(t);else"function"==typeof e&&(this.tags=e(this.tags.slice()));for(let e=0;e<this.tags.length;++e){const t=this.tags[e];if("string"==typeof t){const n=it.tags[t];if(!n){const e=Object.keys(it.tags).map((e=>JSON.stringify(e))).join(", ");throw new Error('Unknown custom tag "'.concat(t,'"; use one of ').concat(e))}this.tags[e]=n}}}createNode(e,t,r,i){if(e instanceof o.default)return e;let a;if(r){r.startsWith("!!")&&(r=c.defaultPrefix+r.slice(2));const e=this.tags.filter((e=>e.tag===r));if(a=e.find((e=>!e.format))||e[0],!a)throw new Error("Tag ".concat(r," not found"))}else if(a=this.tags.find((t=>(t.identify&&t.identify(e)||t.class&&e instanceof t.class)&&!t.format)),!a){if("function"==typeof e.toJSON&&(e=e.toJSON()),"object"!=typeof e)return t?new s.default(e):e;a=e instanceof Map?it.tags.map:e[Symbol.iterator]?it.tags.seq:it.tags.map}i?i.wrapScalars=t:i={wrapScalars:t},i.onTagObj&&(i.onTagObj(a),delete i.onTagObj);const u={};if(e&&"object"==typeof e&&i.prevObjects){const t=i.prevObjects.get(e);if(t){const e=new n.default(t);return i.aliasNodes.push(e),e}u.value=e,i.prevObjects.set(e,u)}return u.node=a.createNode?a.createNode(this,e,i):t?new s.default(e):e,r&&u.node instanceof o.default&&(u.node.tag=r),u.node}createPair(e,t,n){const r=this.createNode(e,n.wrapScalars,null,n),o=this.createNode(t,n.wrapScalars,null,n);return new i.default(r,o)}resolveScalar(e,t){t||(t=this.tags);for(let n=0;n<t.length;++n){const{format:r,test:o,resolve:i}=t[n];if(o){const t=e.match(o);if(t){let e=i.apply(null,t);return e instanceof s.default||(e=new s.default(e)),r&&(e.format=r),e}}}return this.tags.scalarFallback&&(e=this.tags.scalarFallback(e)),new s.default(e)}resolveNode(e,t,n){const o=this.tags.filter((({tag:e})=>e===n)),i=o.find((({test:e})=>!e));t.error&&e.errors.push(t.error);try{if(i){let n=i.resolve(e,t);n instanceof r.default||(n=new s.default(n)),t.resolved=n}else{const n=(0,Q.resolveString)(e,t);"string"==typeof n&&o.length>0&&(t.resolved=this.resolveScalar(n,o))}}catch(n){n.source||(n.source=t),e.errors.push(n),t.resolved=null}return t.resolved?(n&&t.tag&&(t.resolved.tag=n),t.resolved):null}resolveNodeWithFallback(e,t,n){const r=this.resolveNode(e,t,n);if(Object.prototype.hasOwnProperty.call(t,"resolved"))return r;const o=(({type:e})=>e===p.Type.FLOW_MAP||e===p.Type.MAP)(t)?c.defaultTags.MAP:(({type:e})=>e===p.Type.FLOW_SEQ||e===p.Type.SEQ)(t)?c.defaultTags.SEQ:c.defaultTags.STR;if(o){e.warnings.push(new g.YAMLWarning(t,"The tag ".concat(n," is unavailable, falling back to ").concat(o)));const r=this.resolveNode(e,t,o);return r.tag=n,r}return e.errors.push(new g.YAMLReferenceError(t,"The tag ".concat(n," is unavailable"))),null}getTagObject(e){if(e instanceof n.default)return n.default;if(e.tag){const t=this.tags.filter((t=>t.tag===e.tag));if(t.length>0)return t.find((t=>t.format===e.format))||t[0]}let t,r;if(e instanceof s.default){r=e.value;const n=this.tags.filter((e=>e.identify&&e.identify(r)||e.class&&r instanceof e.class));t=n.find((t=>t.format===e.format))||n.find((e=>!e.format))}else r=e,t=this.tags.find((e=>e.nodeClass&&r instanceof e.nodeClass));if(!t){const e=r&&r.constructor?r.constructor.name:typeof r;throw new Error("Tag not resolved for ".concat(e," value"))}return t}stringifyProps(e,t,{anchors:n,doc:r}){const o=[],i=r.anchors.getName(e);return i&&(n[i]=e,o.push("&".concat(i))),e.tag?o.push(r.stringifyTag(e.tag)):t.default||o.push(r.stringifyTag(t.tag)),o.join(" ")}stringify(e,t,n,s){let a;if(!(e instanceof o.default)){const n={aliasNodes:[],onTagObj:e=>a=e,prevObjects:new Map};e=this.createNode(e,!0,null,n);const{anchors:r}=t.doc;for(const e of n.aliasNodes){e.source=e.source.node;let t=r.getName(e.source);t||(t=r.newName(),r.map[t]=e.source)}}if(t.tags=this,e instanceof i.default)return e.toString(t,n,s);a||(a=this.getTagObject(e));const u=this.stringifyProps(e,a,t);u.length>0&&(t.indentAtStart=(t.indentAtStart||0)+u.length+1);const c="function"==typeof a.stringify?a.stringify(e,t,n,s):e instanceof r.default?e.toString(t,n,s):(0,H.stringifyString)(e,t,n,s);return u?e instanceof r.default&&"{"!==c[0]&&"["!==c[0]?"".concat(u,"\n").concat(t.indent).concat(c):"".concat(u," ").concat(c):c}}t.default=c,u(c,"defaultPrefix","tag:yaml.org,2002:"),u(c,"defaultTags",{MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"})}));r(st);var at=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r,o,i=y(N),s=y($),a=y(U),u=y(st),c=y(B),l=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=m();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(I),f=y(L),h=y(M),d=y(O);function m(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return m=function(){return e},e}function y(e){return e&&e.__esModule?e:{default:e}}class b{constructor(e){this.anchors=new s.default(e.anchorPrefix),this.commentBefore=null,this.comment=null,this.contents=null,this.directivesEndMarker=null,this.errors=[],this.options=e,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[]}assertCollectionContents(){if(this.contents instanceof l.default)return!0;throw new Error("Expected a YAML collection as document contents")}add(e){return this.assertCollectionContents(),this.contents.add(e)}addIn(e,t){this.assertCollectionContents(),this.contents.addIn(e,t)}delete(e){return this.assertCollectionContents(),this.contents.delete(e)}deleteIn(e){return(0,l.isEmptyPath)(e)?null!=this.contents&&(this.contents=null,!0):(this.assertCollectionContents(),this.contents.deleteIn(e))}getDefaults(){return b.defaults[this.version]||b.defaults[this.options.version]||{}}get(e,t){return this.contents instanceof l.default?this.contents.get(e,t):void 0}getIn(e,t){return(0,l.isEmptyPath)(e)?!t&&this.contents instanceof h.default?this.contents.value:this.contents:this.contents instanceof l.default?this.contents.getIn(e,t):void 0}has(e){return this.contents instanceof l.default&&this.contents.has(e)}hasIn(e){return(0,l.isEmptyPath)(e)?void 0!==this.contents:this.contents instanceof l.default&&this.contents.hasIn(e)}set(e,t){this.assertCollectionContents(),this.contents.set(e,t)}setIn(e,t){(0,l.isEmptyPath)(e)?this.contents=t:(this.assertCollectionContents(),this.contents.setIn(e,t))}setSchema(e,t){if(!e&&!t&&this.schema)return;"number"==typeof e&&(e=e.toFixed(1)),"1.0"===e||"1.1"===e||"1.2"===e?(this.version?this.version=e:this.options.version=e,delete this.options.schema):e&&"string"==typeof e&&(this.options.schema=e),Array.isArray(t)&&(this.options.customTags=t);const n=Object.assign({},this.getDefaults(),this.options);this.schema=new u.default(n)}parse(e,t){this.options.keepCstNodes&&(this.cstNode=e),this.options.keepNodeTypes&&(this.type="DOCUMENT");const{directives:n=[],contents:r=[],directivesEndMarker:o,error:i,valueRange:s}=e;if(i&&(i.source||(i.source=this),this.errors.push(i)),this.parseDirectives(n,t),o&&(this.directivesEndMarker=!0),this.range=s?[s.start,s.end]:null,this.setSchema(),this.anchors._cstAliases=[],this.parseContents(r),this.anchors.resolveNodes(),this.options.prettyErrors){for(const e of this.errors)e instanceof g.YAMLError&&e.makePretty();for(const e of this.warnings)e instanceof g.YAMLError&&e.makePretty()}return this}parseDirectives(e,t){const n=[];let r=!1;if(e.forEach((e=>{const{comment:t,name:o}=e;switch(o){case"TAG":this.resolveTagDirective(e),r=!0;break;case"YAML":case"YAML:1.0":this.resolveYamlDirective(e),r=!0;break;default:if(o){const t="YAML only supports %TAG and %YAML directives, and not %".concat(o);this.warnings.push(new g.YAMLWarning(e,t))}}t&&n.push(t)})),t&&!r&&"1.1"===(this.version||t.version||this.options.version)){const e=({handle:e,prefix:t})=>({handle:e,prefix:t});this.tagPrefixes=t.tagPrefixes.map(e),this.version=t.version}this.commentBefore=n.join("\n")||null}parseContents(e){const t={before:[],after:[]},n=[];let r=!1;switch(e.forEach((e=>{if(e.valueRange){if(1===n.length){const t="Document is not valid YAML (bad indentation?)";this.errors.push(new g.YAMLSyntaxError(e,t))}const t=this.resolveNode(e);r&&(t.spaceBefore=!0,r=!1),n.push(t)}else null!==e.comment?(0===n.length?t.before:t.after).push(e.comment):e.type===p.Type.BLANK_LINE&&(r=!0,0===n.length&&t.before.length>0&&!this.commentBefore&&(this.commentBefore=t.before.join("\n"),t.before=[]))})),n.length){case 0:this.contents=null,t.after=t.before;break;case 1:if(this.contents=n[0],this.contents){const e=t.before.join("\n")||null;if(e){const t=this.contents instanceof l.default&&this.contents.items[0]?this.contents.items[0]:this.contents;t.commentBefore=t.commentBefore?"".concat(e,"\n").concat(t.commentBefore):e}}else t.after=t.before.concat(t.after);break;default:this.contents=n,this.contents[0]?this.contents[0].commentBefore=t.before.join("\n")||null:t.after=t.before.concat(t.after)}this.comment=t.after.join("\n")||null}resolveTagDirective(e){const[t,n]=e.parameters;if(t&&n)if(this.tagPrefixes.every((e=>e.handle!==t)))this.tagPrefixes.push({handle:t,prefix:n});else{const t="The %TAG directive must only be given at most once per handle in the same document.";this.errors.push(new g.YAMLSemanticError(e,t))}else{const t="Insufficient parameters given for %TAG directive";this.errors.push(new g.YAMLSemanticError(e,t))}}resolveYamlDirective(e){let[t]=e.parameters;if("YAML:1.0"===e.name&&(t="1.0"),this.version){const t="The %YAML directive must only be given at most once per document.";this.errors.push(new g.YAMLSemanticError(e,t))}if(t){if(!b.defaults[t]){const n=this.version||this.options.version,r="Document will be parsed as YAML ".concat(n," rather than YAML ").concat(t);this.warnings.push(new g.YAMLWarning(e,r))}this.version=t}else{const t="Insufficient parameters given for %YAML directive";this.errors.push(new g.YAMLSemanticError(e,t))}}resolveTagName(e){const{tag:t,type:n}=e;let r=!1;if(t){const{handle:n,suffix:o,verbatim:i}=t;if(i){if("!"!==i&&"!!"!==i)return i;const t="Verbatim tags aren't resolved, so ".concat(i," is invalid.");this.errors.push(new g.YAMLSemanticError(e,t))}else if("!"!==n||o){let t=this.tagPrefixes.find((e=>e.handle===n));if(!t){const e=this.getDefaults().tagPrefixes;e&&(t=e.find((e=>e.handle===n)))}if(t){if(o){if("!"===n&&"1.0"===(this.version||this.options.version)){if("^"===o[0])return o;if(/[:/]/.test(o)){const e=o.match(/^([a-z0-9-]+)\/(.*)/i);return e?"tag:".concat(e[1],".yaml.org,2002:").concat(e[2]):"tag:".concat(o)}}return t.prefix+decodeURIComponent(o)}this.errors.push(new g.YAMLSemanticError(e,"The ".concat(n," tag has no suffix.")))}else{const t="The ".concat(n," tag handle is non-default and was not declared.");this.errors.push(new g.YAMLSemanticError(e,t))}}else r=!0}switch(n){case p.Type.BLOCK_FOLDED:case p.Type.BLOCK_LITERAL:case p.Type.QUOTE_DOUBLE:case p.Type.QUOTE_SINGLE:return u.default.defaultTags.STR;case p.Type.FLOW_MAP:case p.Type.MAP:return u.default.defaultTags.MAP;case p.Type.FLOW_SEQ:case p.Type.SEQ:return u.default.defaultTags.SEQ;case p.Type.PLAIN:return r?u.default.defaultTags.STR:null;default:return null}}resolveNode(e){if(!e)return null;const{anchors:t,errors:n,schema:r}=this;let o=!1,i=!1;const s={before:[],after:[]},a=(e=>e&&[p.Type.MAP_KEY,p.Type.MAP_VALUE,p.Type.SEQ_ITEM].includes(e.type))(e.context.parent)?e.context.parent.props.concat(e.props):e.props;for(const{start:t,end:r}of a)switch(e.context.src[t]){case p.Char.COMMENT:{if(!e.commentHasRequiredWhitespace(t)){const t="Comments must be separated from other tokens by white space characters";n.push(new g.YAMLSemanticError(e,t))}const o=e.context.src.slice(t+1,r),{header:i,valueRange:a}=e;a&&(t>a.start||i&&t>i.start)?s.after.push(o):s.before.push(o)}break;case p.Char.ANCHOR:if(o){const t="A node can have at most one anchor";n.push(new g.YAMLSemanticError(e,t))}o=!0;break;case p.Char.TAG:if(i){const t="A node can have at most one tag";n.push(new g.YAMLSemanticError(e,t))}i=!0}if(o){const n=e.anchor,r=t.getNode(n);r&&(t.map[t.newName(n)]=r),t.map[n]=e}let u;if(e.type===p.Type.ALIAS){if(o||i){const t="An alias node must not specify any properties";n.push(new g.YAMLSemanticError(e,t))}const r=e.rawValue,s=t.getNode(r);if(!s){const t="Aliased anchor not found: ".concat(r);return n.push(new g.YAMLReferenceError(e,t)),null}u=new c.default(s),t._cstAliases.push(u)}else{const o=this.resolveTagName(e);if(o)u=r.resolveNodeWithFallback(this,e,o);else{if(e.type!==p.Type.PLAIN){const t="Failed to resolve ".concat(e.type," node here");return n.push(new g.YAMLSyntaxError(e,t)),null}try{u=r.resolveScalar(e.strValue||"")}catch(t){return t.source||(t.source=e),n.push(t),null}}}if(u){u.range=[e.range.start,e.range.end],this.options.keepCstNodes&&(u.cstNode=e),this.options.keepNodeTypes&&(u.type=e.type);const t=s.before.join("\n");t&&(u.commentBefore=u.commentBefore?"".concat(u.commentBefore,"\n").concat(t):t);const n=s.after.join("\n");n&&(u.comment=u.comment?"".concat(u.comment,"\n").concat(n):n)}return e.resolved=u}listNonDefaultTags(){return(0,a.default)(this.contents).filter((e=>0!==e.indexOf(u.default.defaultPrefix)))}setTagPrefix(e,t){if("!"!==e[0]||"!"!==e[e.length-1])throw new Error("Handle must start and end with !");if(t){const n=this.tagPrefixes.find((t=>t.handle===e));n?n.prefix=t:this.tagPrefixes.push({handle:e,prefix:t})}else this.tagPrefixes=this.tagPrefixes.filter((t=>t.handle!==e))}stringifyTag(e){if("1.0"===(this.version||this.options.version)){const t=e.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(t)return"!"+t[1];const n=e.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return n?"!".concat(n[1],"/").concat(n[2]):"!".concat(e.replace(/^tag:/,""))}{let t=this.tagPrefixes.find((t=>0===e.indexOf(t.prefix)));if(!t){const n=this.getDefaults().tagPrefixes;t=n&&n.find((t=>0===e.indexOf(t.prefix)))}if(!t)return"!"===e[0]?e:"!<".concat(e,">");const n=e.substr(t.prefix.length).replace(/[!,[\]{}]/g,(e=>({"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"}[e])));return t.handle+n}}toJSON(e){const{keepBlobsInJSON:t,mapAsMap:n,maxAliasCount:r}=this.options,o=t&&("string"!=typeof e||!(this.contents instanceof h.default)),i={doc:this,keep:o,mapAsMap:o&&!!n,maxAliasCount:r},s=Object.keys(this.anchors.map);return s.length>0&&(i.anchors=s.map((e=>({alias:[],aliasCount:0,count:1,node:this.anchors.map[e]})))),(0,d.default)(this.contents,e,i)}toString(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");this.setSchema();const e=[];let t=!1;if(this.version){let n="%YAML 1.2";"yaml-1.1"===this.schema.name&&("1.0"===this.version?n="%YAML:1.0":"1.1"===this.version&&(n="%YAML 1.1")),e.push(n),t=!0}const n=this.listNonDefaultTags();this.tagPrefixes.forEach((({handle:r,prefix:o})=>{n.some((e=>0===e.indexOf(o)))&&(e.push("%TAG ".concat(r," ").concat(o)),t=!0)})),(t||this.directivesEndMarker)&&e.push("---"),this.commentBefore&&(!t&&this.directivesEndMarker||e.unshift(""),e.unshift(this.commentBefore.replace(/^/gm,"#")));const r={anchors:{},doc:this,indent:""};let o=!1,s=null;if(this.contents){this.contents instanceof f.default&&(this.contents.spaceBefore&&(t||this.directivesEndMarker)&&e.push(""),this.contents.commentBefore&&e.push(this.contents.commentBefore.replace(/^/gm,"#")),r.forceBlockIndent=!!this.comment,s=this.contents.comment);const n=s?null:()=>o=!0,a=this.schema.stringify(this.contents,r,(()=>s=null),n);e.push((0,i.default)(a,"",s))}else void 0!==this.contents&&e.push(this.schema.stringify(this.contents,r));return this.comment&&(o&&!s||""===e[e.length-1]||e.push(""),e.push(this.comment.replace(/^/gm,"#"))),e.join("\n")+"\n"}}t.default=b,n=b,r="defaults",o={"1.0":{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:u.default.defaultPrefix},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:u.default.defaultPrefix}]},1.2:{schema:"core",merge:!1,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:u.default.defaultPrefix}]}},r in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o}));r(at);var ut=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(k),r=i(at),o=i(st);function i(e){return e&&e.__esModule?e:{default:e}}const s={anchorPrefix:"a",customTags:null,keepCstNodes:!1,keepNodeTypes:!0,keepBlobsInJSON:!0,mapAsMap:!1,maxAliasCount:100,prettyErrors:!1,simpleKeys:!1,version:"1.2"};class a extends r.default{constructor(e){super(Object.assign({},s,e))}}function u(e,t){const r=(0,n.default)(e),o=new a(t).parse(r[0]);if(r.length>1){const e="Source contains multiple documents; please use YAML.parseAllDocuments()";o.errors.unshift(new g.YAMLSemanticError(r[1],e))}return o}var c={createNode:function(e,t=!0,n){void 0===n&&"string"==typeof t&&(n=t,t=!0);const i=Object.assign({},r.default.defaults[s.version],s);return new o.default(i).createNode(e,t,n)},defaultOptions:s,Document:a,parse:function(e,t){const n=u(e,t);if(n.warnings.forEach((e=>(0,W.warn)(e))),n.errors.length>0)throw n.errors[0];return n.toJSON()},parseAllDocuments:function(e,t){const r=[];let o;for(const i of(0,n.default)(e)){const e=new a(t);e.parse(i,o),r.push(e),o=e}return r},parseCST:n.default,parseDocument:u,stringify:function(e,t){const n=new a(t);return n.contents=e,String(n)}};t.default=c}));r(ut);var ct=ut.default,lt=o((function(e,t){t.__esModule=!0,t.defineParents=function e(t,n){void 0===n&&(n=null),"children"in t&&t.children.forEach((function(n){return e(n,t)})),"anchor"in t&&t.anchor&&e(t.anchor,t),"tag"in t&&t.tag&&e(t.tag,t),"leadingComments"in t&&t.leadingComments.forEach((function(n){return e(n,t)})),"middleComments"in t&&t.middleComments.forEach((function(n){return e(n,t)})),"indicatorComment"in t&&t.indicatorComment&&e(t.indicatorComment,t),"trailingComment"in t&&t.trailingComment&&e(t.trailingComment,t),"endComments"in t&&t.endComments.forEach((function(n){return e(n,t)})),Object.defineProperty(t,"_parent",{value:n,enumerable:!1})}}));r(lt),lt.defineParents;var ft=o((function(e,t){t.__esModule=!0,t.getPointText=function(e){return e.line+":"+e.column}}));r(ft),ft.getPointText;var pt=o((function(e,t){function n(e,t){if(t.position.end.offset<e.position.end.offset)return!1;switch(e.type){case"sequenceItem":return t.position.start.column>e.position.start.column;case"mappingKey":case"mappingValue":return t.position.start.column>e._parent.position.start.column&&(0===e.children.length||1===e.children.length&&"blockFolded"!==e.children[0].type&&"blockLiteral"!==e.children[0].type&&("mappingValue"===e.type||e.position.start.offset!==e.children[0].position.start.offset));default:return!1}}t.__esModule=!0,t.attachComments=function(e){lt.defineParents(e);var t=function(e){for(var t=Array.from(new Array(e.position.end.line),(function(){return{}})),n=0,r=e.comments;n<r.length;n++){var o=r[n];t[o.position.start.line-1].comment=o}return function e(t,n){if(n.position.start.offset!==n.position.end.offset){if("leadingComments"in n){var r=n.position.start,o=t[r.line-1].leadingAttachableNode;(!o||r.column<o.position.start.column)&&(t[r.line-1].leadingAttachableNode=n)}if("trailingComment"in n&&n.position.end.column>1&&"document"!==n.type&&"documentHead"!==n.type){var i=n.position.end,s=t[i.line-1].trailingAttachableNode;(!s||i.column>=s.position.end.column)&&(t[i.line-1].trailingAttachableNode=n)}if("root"!==n.type&&"document"!==n.type&&"documentHead"!==n.type&&"documentBody"!==n.type)for(var a=n.position,u=0,c=(r=a.start,[(i=a.end).line].concat(r.line===i.line?[]:r.line));u<c.length;u++){var l=c[u],f=t[l-1].trailingNode;(!f||i.column>=f.position.end.column)&&(t[l-1].trailingNode=n)}"children"in n&&n.children.forEach((function(n){e(t,n)}))}}(t,e),t}(e),r=e.children.slice();e.comments.sort((function(e,t){return e.position.start.offset-t.position.end.offset})).filter((function(e){return!e._parent})).forEach((function(e){for(;r.length>1&&e.position.start.line>r[0].position.end.line;)r.shift();!function(e,t,r){var o=e.position.start.line,i=t[o-1].trailingAttachableNode;if(i){if(i.trailingComment)throw new Error("Unexpected multiple trailing comment at "+ft.getPointText(e.position.start));return lt.defineParents(e,i),void(i.trailingComment=e)}for(var s=o;s>=r.position.start.line;s--){var a=t[s-1].trailingNode,u=void 0;if(a)u=a;else{if(s===o||!t[s-1].comment)continue;u=t[s-1].comment._parent}for(;;){if(n(u,e))return lt.defineParents(e,u),void u.endComments.push(e);if(!u._parent)break;u=u._parent}break}for(s=o+1;s<=r.position.end.line;s++){var c=t[s-1].leadingAttachableNode;if(c)return lt.defineParents(e,c),void c.leadingComments.push(e)}var l=r.children[1];lt.defineParents(e,l),l.endComments.push(e)}(e,t,r[0])}))}}));r(pt),pt.attachComments;var ht=o((function(e,t){t.__esModule=!0,t.createNode=function(e,t){return{type:e,position:t}}}));r(ht),ht.createNode;var dt,mt=(dt=l)&&dt.default||dt,gt=o((function(e,t){t.__esModule=!0,t.createRoot=function(e,t,n){return mt.__assign(mt.__assign({},ht.createNode("root",e)),{children:t,comments:n})}}));r(gt),gt.createRoot;var yt=o((function(e,t){t.__esModule=!0,t.removeCstBlankLine=function e(t){switch(t.type){case"DOCUMENT":for(var n=t.contents.length-1;n>=0;n--)"BLANK_LINE"===t.contents[n].type?t.contents.splice(n,1):e(t.contents[n]);for(n=t.directives.length-1;n>=0;n--)"BLANK_LINE"===t.directives[n].type&&t.directives.splice(n,1);break;case"FLOW_MAP":case"FLOW_SEQ":case"MAP":case"SEQ":for(n=t.items.length-1;n>=0;n--){var r=t.items[n];"char"in r||("BLANK_LINE"===r.type?t.items.splice(n,1):e(r))}break;case"MAP_KEY":case"MAP_VALUE":case"SEQ_ITEM":t.node&&e(t.node);break;case"ALIAS":case"BLANK_LINE":case"BLOCK_FOLDED":case"BLOCK_LITERAL":case"COMMENT":case"DIRECTIVE":case"PLAIN":case"QUOTE_DOUBLE":case"QUOTE_SINGLE":break;default:throw new Error("Unexpected node type "+JSON.stringify(t.type))}}}));r(yt),yt.removeCstBlankLine;var bt=o((function(e,t){t.__esModule=!0,t.createLeadingCommentAttachable=function(){return{leadingComments:[]}}}));r(bt),bt.createLeadingCommentAttachable;var vt=o((function(e,t){t.__esModule=!0,t.createTrailingCommentAttachable=function(e){return void 0===e&&(e=null),{trailingComment:e}}}));r(vt),vt.createTrailingCommentAttachable;var Dt=o((function(e,t){t.__esModule=!0,t.createCommentAttachable=function(){return mt.__assign(mt.__assign({},bt.createLeadingCommentAttachable()),vt.createTrailingCommentAttachable())}}));r(Dt),Dt.createCommentAttachable;var Ct=o((function(e,t){t.__esModule=!0,t.createAlias=function(e,t,n){return mt.__assign(mt.__assign(mt.__assign(mt.__assign({},ht.createNode("alias",e)),Dt.createCommentAttachable()),t),{value:n})}}));r(Ct),Ct.createAlias;var Et=o((function(e,t){t.__esModule=!0,t.transformAlias=function(e,t){var n=e.cstNode;return Ct.createAlias(t.transformRange({origStart:n.valueRange.origStart-1,origEnd:n.valueRange.origEnd}),t.transformContent(e),n.rawValue)}}));r(Et),Et.transformAlias;var wt=o((function(e,t){t.__esModule=!0,t.createBlockFolded=function(e){return mt.__assign(mt.__assign({},e),{type:"blockFolded"})}}));r(wt),wt.createBlockFolded;var At=o((function(e,t){t.__esModule=!0,t.createBlockValue=function(e,t,n,r,o,i){return mt.__assign(mt.__assign(mt.__assign(mt.__assign({},ht.createNode("blockValue",e)),bt.createLeadingCommentAttachable()),t),{chomping:n,indent:r,value:o,indicatorComment:i})}}));r(At),At.createBlockValue;var St=o((function(e,t){t.__esModule=!0,function(e){e.Tag="!",e.Anchor="&",e.Comment="#"}(t.PropLeadingCharacter||(t.PropLeadingCharacter={}))}));r(St),St.PropLeadingCharacter;var xt=o((function(e,t){t.__esModule=!0,t.createAnchor=function(e,t){return mt.__assign(mt.__assign({},ht.createNode("anchor",e)),{value:t})}}));r(xt),xt.createAnchor;var _t=o((function(e,t){t.__esModule=!0,t.createComment=function(e,t){return mt.__assign(mt.__assign({},ht.createNode("comment",e)),{value:t})}}));r(_t),_t.createComment;var Ft=o((function(e,t){t.__esModule=!0,t.createContent=function(e,t,n){return{anchor:t,tag:e,middleComments:n}}}));r(Ft),Ft.createContent;var Tt=o((function(e,t){t.__esModule=!0,t.createTag=function(e,t){return mt.__assign(mt.__assign({},ht.createNode("tag",e)),{value:t})}}));r(Tt),Tt.createTag;var kt=o((function(e,t){t.__esModule=!0,t.transformContent=function(e,t,n){void 0===n&&(n=function(){return!1});for(var r=e.cstNode,o=[],i=null,s=null,a=null,u=0,c=r.props;u<c.length;u++){var l=c[u],f=t.text[l.origStart];switch(f){case St.PropLeadingCharacter.Tag:i=i||l,s=Tt.createTag(t.transformRange(l),e.tag);break;case St.PropLeadingCharacter.Anchor:i=i||l,a=xt.createAnchor(t.transformRange(l),r.anchor);break;case St.PropLeadingCharacter.Comment:var p=_t.createComment(t.transformRange(l),t.text.slice(l.origStart+1,l.origEnd));t.comments.push(p),!n(p)&&i&&i.origEnd<=l.origStart&&l.origEnd<=r.valueRange.origStart&&o.push(p);break;default:throw new Error("Unexpected leading character "+JSON.stringify(f))}}return Ft.createContent(s,a,o)}}));r(kt),kt.transformContent;var Nt=o((function(e,t){var n;t.__esModule=!0,function(e){e.CLIP="clip",e.STRIP="strip",e.KEEP="keep"}(n||(n={})),t.transformAstBlockValue=function(e,t){var r=e.cstNode,o="CLIP"===r.chomping?0:1,i=r.header.origEnd-r.header.origStart-1-o!=0,s=t.transformRange({origStart:r.header.origStart,origEnd:r.valueRange.origEnd}),a=null,u=kt.transformContent(e,t,(function(e){if(!(s.start.offset<e.position.start.offset&&e.position.end.offset<s.end.offset))return!1;if(a)throw new Error("Unexpected multiple indicator comments at "+ft.getPointText(e.position.start));return a=e,!0}));return At.createBlockValue(s,u,n[r.chomping],i?r.blockIndent:null,r.strValue,a)}}));r(Nt),Nt.transformAstBlockValue;var Ot=o((function(e,t){t.__esModule=!0,t.transformBlockFolded=function(e,t){return wt.createBlockFolded(Nt.transformAstBlockValue(e,t))}}));r(Ot),Ot.transformBlockFolded;var Lt=o((function(e,t){t.__esModule=!0,t.createBlockLiteral=function(e){return mt.__assign(mt.__assign({},e),{type:"blockLiteral"})}}));r(Lt),Lt.createBlockLiteral;var Mt=o((function(e,t){t.__esModule=!0,t.transformBlockLiteral=function(e,t){return Lt.createBlockLiteral(Nt.transformAstBlockValue(e,t))}}));r(Mt),Mt.transformBlockLiteral;var Pt=o((function(e,t){t.__esModule=!0,t.transformComment=function(e,t){return _t.createComment(t.transformRange(e.range),e.comment)}}));r(Pt),Pt.transformComment;var It=o((function(e,t){t.__esModule=!0,t.createDirective=function(e,t,n){return mt.__assign(mt.__assign(mt.__assign({},ht.createNode("directive",e)),Dt.createCommentAttachable()),{name:t,parameters:n})}}));r(It),It.createDirective;var Bt=o((function(e,t){t.__esModule=!0,t.extractPropComments=function(e,t){for(var n=0,r=e.props;n<r.length;n++){var o=r[n],i=t.text[o.origStart];switch(i){case St.PropLeadingCharacter.Comment:t.comments.push(_t.createComment(t.transformRange(o),t.text.slice(o.origStart+1,o.origEnd)));break;default:throw new Error("Unexpected leading character "+JSON.stringify(i))}}}}));r(Bt),Bt.extractPropComments;var Rt=o((function(e,t){t.__esModule=!0,t.transformDirective=function(e,t){return Bt.extractPropComments(e,t),It.createDirective(t.transformRange(e.range),e.name,e.parameters)}}));r(Rt),Rt.transformDirective;var jt=o((function(e,t){t.__esModule=!0,t.createDocument=function(e,t,n,r){return mt.__assign(mt.__assign(mt.__assign({},ht.createNode("document",e)),vt.createTrailingCommentAttachable(r)),{children:[t,n]})}}));r(jt),jt.createDocument;var Vt=o((function(e,t){t.__esModule=!0,t.createPosition=function(e,t){return{start:e,end:t}},t.createEmptyPosition=function(e){return{start:e,end:e}}}));r(Vt),Vt.createPosition,Vt.createEmptyPosition;var $t=o((function(e,t){t.__esModule=!0,t.createEndCommentAttachable=function(e){return void 0===e&&(e=[]),{endComments:e}}}));r($t),$t.createEndCommentAttachable;var Ut=o((function(e,t){t.__esModule=!0,t.createDocumentBody=function(e,t,n){return mt.__assign(mt.__assign(mt.__assign({},ht.createNode("documentBody",e)),$t.createEndCommentAttachable(n)),{children:t?[t]:[]})}}));r(Ut),Ut.createDocumentBody;var Wt=o((function(e,t){t.__esModule=!0,t.getLast=function(e){return e[e.length-1]}}));r(Wt),Wt.getLast;var Kt=o((function(e,t){t.__esModule=!0,t.getMatchIndex=function(e,t){var n=e.match(t);return n?n.index:-1}}));r(Kt),Kt.getMatchIndex;var qt=o((function(e,t){t.__esModule=!0,t.transformDocumentBody=function(e,t,n){var r,o=e.cstNode,i=function(e,t,n){for(var r=[],o=[],i=[],s=!1,a=e.contents.length-1;a>=0;a--){var u=e.contents[a];if("COMMENT"===u.type){var c=t.transformNode(u);n&&n.line===c.position.start.line?i.unshift(c):s?r.unshift(c):c.position.start.offset>=e.valueRange.origEnd?o.unshift(c):r.unshift(c)}else s=!0}if(o.length>1)throw new Error("Unexpected multiple document trailing comments at "+ft.getPointText(o[1].position.start));if(i.length>1)throw new Error("Unexpected multiple documentHead trailing comments at "+ft.getPointText(i[1].position.start));return{comments:r,endComments:[],documentTrailingComment:Wt.getLast(o)||null,documentHeadTrailingComment:Wt.getLast(i)||null}}(o,t,n),s=i.comments,a=i.endComments,u=i.documentTrailingComment,c=i.documentHeadTrailingComment,l=t.transformNode(e.contents),f=function(e,t,n){var r=Kt.getMatchIndex(n.text.slice(e.valueRange.origEnd),/^\.\.\./),o=-1===r?e.valueRange.origEnd:Math.max(0,e.valueRange.origEnd-1);"\r"===n.text[o-1]&&o--;var i=n.transformRange({origStart:null!==t?t.position.start.offset:o,origEnd:o});return{position:i,documentEndPoint:-1===r?i.end:n.transformOffset(e.valueRange.origEnd+3)}}(o,l,t),p=f.position,h=f.documentEndPoint;return(r=t.comments).push.apply(r,mt.__spreadArrays(s,a)),{documentBody:Ut.createDocumentBody(p,l,a),documentEndPoint:h,documentTrailingComment:u,documentHeadTrailingComment:c}}}));r(qt),qt.transformDocumentBody;var Ht=o((function(e,t){t.__esModule=!0,t.createDocumentHead=function(e,t,n,r){return mt.__assign(mt.__assign(mt.__assign(mt.__assign({},ht.createNode("documentHead",e)),$t.createEndCommentAttachable(n)),vt.createTrailingCommentAttachable(r)),{children:t})}}));r(Ht),Ht.createDocumentHead;var zt=o((function(e,t){t.__esModule=!0,t.transformDocumentHead=function(e,t){var n,r=e.cstNode,o=function(e,t){for(var n=[],r=[],o=[],i=!1,s=e.directives.length-1;s>=0;s--){var a=t.transformNode(e.directives[s]);"comment"===a.type?i?r.unshift(a):o.unshift(a):(i=!0,n.unshift(a))}return{directives:n,comments:r,endComments:o}}(r,t),i=o.directives,s=o.comments,a=o.endComments,u=function(e,t,n){var r=Kt.getMatchIndex(n.text.slice(0,e.valueRange.origStart),/---\s*$/),o=-1===r?{origStart:e.valueRange.origStart,origEnd:e.valueRange.origStart}:{origStart:r,origEnd:r+3};return 0!==t.length&&(o.origStart=t[0].position.start.offset),{position:n.transformRange(o),endMarkerPoint:-1===r?null:n.transformOffset(r)}}(r,i,t),c=u.position,l=u.endMarkerPoint;return(n=t.comments).push.apply(n,mt.__spreadArrays(s,a)),{createDocumentHeadWithTrailingComment:function(e){return e&&t.comments.push(e),Ht.createDocumentHead(c,i,a,e)},documentHeadEndMarkerPoint:l}}}));r(zt),zt.transformDocumentHead;var Yt=o((function(e,t){t.__esModule=!0,t.transformDocument=function(e,t){var n=zt.transformDocumentHead(e,t),r=n.createDocumentHeadWithTrailingComment,o=n.documentHeadEndMarkerPoint,i=qt.transformDocumentBody(e,t,o),s=i.documentBody,a=i.documentEndPoint,u=i.documentTrailingComment,c=r(i.documentHeadTrailingComment);return u&&t.comments.push(u),jt.createDocument(Vt.createPosition(c.position.start,a),c,s,u)}}));r(Yt),Yt.transformDocument;var Jt=o((function(e,t){t.__esModule=!0,t.createFlowCollection=function(e,t,n){return mt.__assign(mt.__assign(mt.__assign(mt.__assign({},ht.createNode("flowCollection",e)),Dt.createCommentAttachable()),t),{children:n})}}));r(Jt),Jt.createFlowCollection;var Gt=o((function(e,t){t.__esModule=!0,t.createFlowMapping=function(e,t,n){return mt.__assign(mt.__assign({},Jt.createFlowCollection(e,t,n)),{type:"flowMapping"})}}));r(Gt),Gt.createFlowMapping;var Xt=o((function(e,t){t.__esModule=!0,t.createFlowMappingItem=function(e,t,n){return mt.__assign(mt.__assign(mt.__assign({},ht.createNode("flowMappingItem",e)),bt.createLeadingCommentAttachable()),{children:[t,n]})}}));r(Xt),Xt.createFlowMappingItem;var Qt=o((function(e,t){t.__esModule=!0,t.extractComments=function(e,t){for(var n=[],r=0,o=e;r<o.length;r++){var i=o[r];i&&"type"in i&&"COMMENT"===i.type?t.comments.push(t.transformNode(i)):n.push(i)}return n}}));r(Qt),Qt.extractComments;var Zt=o((function(e,t){t.__esModule=!0,t.getFlowMapItemAdditionalRanges=function(e){var t=["?",":"].map((function(t){var n=e.find((function(e){return"char"in e&&e.char===t}));return n?{origStart:n.origOffset,origEnd:n.origOffset+1}:null}));return{additionalKeyRange:t[0],additionalValueRange:t[1]}}}));r(Zt),Zt.getFlowMapItemAdditionalRanges;var en=o((function(e,t){t.__esModule=!0,t.createSlicer=function(e,t){var n=t;return function(t){return e.slice(n,n=t)}}}));r(en),en.createSlicer;var tn=o((function(e,t){t.__esModule=!0,t.groupCstFlowCollectionItems=function(e){for(var t=[],n=en.createSlicer(e,1),r=!1,o=1;o<e.length-1;o++){var i=e[o];"char"in i&&","===i.char?(t.push(n(o)),n(o+1),r=!1):r=!0}return r&&t.push(n(e.length-1)),t}}));r(tn),tn.groupCstFlowCollectionItems;var nn=o((function(e,t){t.__esModule=!0,t.createMappingKey=function(e,t){return mt.__assign(mt.__assign(mt.__assign(mt.__assign({},ht.createNode("mappingKey",e)),vt.createTrailingCommentAttachable()),$t.createEndCommentAttachable()),{children:t?[t]:[]})}}));r(nn),nn.createMappingKey;var rn=o((function(e,t){t.__esModule=!0,t.createMappingValue=function(e,t){return mt.__assign(mt.__assign(mt.__assign(mt.__assign({},ht.createNode("mappingValue",e)),Dt.createCommentAttachable()),$t.createEndCommentAttachable()),{children:t?[t]:[]})}}));r(rn),rn.createMappingValue;var on=o((function(e,t){t.__esModule=!0,t.transformAstPair=function(e,t,n,r,o){var i=t.transformNode(e.key),s=t.transformNode("MERGE_PAIR"===e.type?e.value.type?e.value:e.value.items[0]:e.value),a=i||r?nn.createMappingKey(t.transformRange({origStart:r?r.origStart:i.position.start.offset,origEnd:i?i.position.end.offset:r.origStart+1}),i):null,u=s||o?rn.createMappingValue(t.transformRange({origStart:o?o.origStart:s.position.start.offset,origEnd:s?s.position.end.offset:o.origStart+1}),s):null;return n(Vt.createPosition(a?a.position.start:u.position.start,u?u.position.end:a.position.end),a||nn.createMappingKey(Vt.createEmptyPosition(u.position.start),null),u||rn.createMappingValue(Vt.createEmptyPosition(a.position.end),null))}}));r(on),on.transformAstPair;var sn=o((function(e,t){t.__esModule=!0,t.transformFlowMap=function(e,t){var n=Qt.extractComments(e.cstNode.items,t),r=tn.groupCstFlowCollectionItems(n),o=e.items.map((function(e,n){var o=r[n],i=Zt.getFlowMapItemAdditionalRanges(o),s=i.additionalKeyRange,a=i.additionalValueRange;return on.transformAstPair(e,t,Xt.createFlowMappingItem,s,a)})),i=n[0],s=Wt.getLast(n);return Gt.createFlowMapping(t.transformRange({origStart:i.origOffset,origEnd:s.origOffset+1}),t.transformContent(e),o)}}));r(sn),sn.transformFlowMap;var an=o((function(e,t){t.__esModule=!0,t.createFlowSequence=function(e,t,n){return mt.__assign(mt.__assign({},Jt.createFlowCollection(e,t,n)),{type:"flowSequence"})}}));r(an),an.createFlowSequence;var un=o((function(e,t){t.__esModule=!0,t.createFlowSequenceItem=function(e,t){return mt.__assign(mt.__assign({},ht.createNode("flowSequenceItem",e)),{children:[t]})}}));r(un),un.createFlowSequenceItem;var cn=o((function(e,t){t.__esModule=!0,t.transformFlowSeq=function(e,t){var n=Qt.extractComments(e.cstNode.items,t),r=tn.groupCstFlowCollectionItems(n),o=e.items.map((function(e,n){if("PAIR"!==e.type){var o=t.transformNode(e);return un.createFlowSequenceItem(Vt.createPosition(o.position.start,o.position.end),o)}var i=r[n],s=Zt.getFlowMapItemAdditionalRanges(i),a=s.additionalKeyRange,u=s.additionalValueRange;return on.transformAstPair(e,t,Xt.createFlowMappingItem,a,u)})),i=n[0],s=Wt.getLast(n);return an.createFlowSequence(t.transformRange({origStart:i.origOffset,origEnd:s.origOffset+1}),t.transformContent(e),o)}}));r(cn),cn.transformFlowSeq;var ln=o((function(e,t){t.__esModule=!0,t.createMapping=function(e,t,n){return mt.__assign(mt.__assign(mt.__assign(mt.__assign({},ht.createNode("mapping",e)),bt.createLeadingCommentAttachable()),t),{children:n})}}));r(ln),ln.createMapping;var fn=o((function(e,t){t.__esModule=!0,t.createMappingItem=function(e,t,n){return mt.__assign(mt.__assign(mt.__assign({},ht.createNode("mappingItem",e)),bt.createLeadingCommentAttachable()),{children:[t,n]})}}));r(fn),fn.createMappingItem;var pn=o((function(e,t){t.__esModule=!0,t.transformMap=function(e,t){var n=e.cstNode;n.items.filter((function(e){return"MAP_KEY"===e.type||"MAP_VALUE"===e.type})).forEach((function(e){return Bt.extractPropComments(e,t)}));var r=function(e){for(var t=[],n=en.createSlicer(e,0),r=!1,o=0;o<e.length;o++)"MAP_VALUE"!==e[o].type?(r&&t.push(n(o)),r=!0):(t.push(n(o+1)),r=!1);return r&&t.push(n(1/0)),t}(Qt.extractComments(n.items,t)),o=e.items.map((function(e,n){var o=r[n],i="MAP_VALUE"===o[0].type?[null,o[0].range]:[o[0].range,1===o.length?null:o[1].range],s=i[0],a=i[1];return on.transformAstPair(e,t,fn.createMappingItem,s,a)}));return ln.createMapping(Vt.createPosition(o[0].position.start,Wt.getLast(o).position.end),t.transformContent(e),o)}}));r(pn),pn.transformMap;var hn=o((function(e,t){t.__esModule=!0,t.createPlain=function(e,t,n){return mt.__assign(mt.__assign(mt.__assign(mt.__assign({},ht.createNode("plain",e)),Dt.createCommentAttachable()),t),{value:n})}}));r(hn),hn.createPlain;var dn=o((function(e,t){t.__esModule=!0,t.findLastCharIndex=function(e,t,n){for(var r=t;r>=0;r--)if(n.test(e[r]))return r;return-1}}));r(dn),dn.findLastCharIndex;var mn=o((function(e,t){t.__esModule=!0,t.transformPlain=function(e,t){var n=e.cstNode;return hn.createPlain(t.transformRange({origStart:n.valueRange.origStart,origEnd:dn.findLastCharIndex(t.text,n.valueRange.origEnd-1,/\S/)+1}),t.transformContent(e),n.strValue)}}));r(mn),mn.transformPlain;var gn=o((function(e,t){t.__esModule=!0,t.createQuoteDouble=function(e){return mt.__assign(mt.__assign({},e),{type:"quoteDouble"})}}));r(gn),gn.createQuoteDouble;var yn=o((function(e,t){t.__esModule=!0,t.createQuoteValue=function(e,t,n){return mt.__assign(mt.__assign(mt.__assign(mt.__assign({},ht.createNode("quoteValue",e)),t),Dt.createCommentAttachable()),{value:n})}}));r(yn),yn.createQuoteValue;var bn=o((function(e,t){t.__esModule=!0,t.transformAstQuoteValue=function(e,t){var n=e.cstNode;return yn.createQuoteValue(t.transformRange(n.valueRange),t.transformContent(e),n.strValue)}}));r(bn),bn.transformAstQuoteValue;var vn=o((function(e,t){t.__esModule=!0,t.transformQuoteDouble=function(e,t){return gn.createQuoteDouble(bn.transformAstQuoteValue(e,t))}}));r(vn),vn.transformQuoteDouble;var Dn=o((function(e,t){t.__esModule=!0,t.createQuoteSingle=function(e){return mt.__assign(mt.__assign({},e),{type:"quoteSingle"})}}));r(Dn),Dn.createQuoteSingle;var Cn=o((function(e,t){t.__esModule=!0,t.transformQuoteSingle=function(e,t){return Dn.createQuoteSingle(bn.transformAstQuoteValue(e,t))}}));r(Cn),Cn.transformQuoteSingle;var En=o((function(e,t){t.__esModule=!0,t.createSequence=function(e,t,n){return mt.__assign(mt.__assign(mt.__assign(mt.__assign(mt.__assign({},ht.createNode("sequence",e)),bt.createLeadingCommentAttachable()),$t.createEndCommentAttachable()),t),{children:n})}}));r(En),En.createSequence;var wn=o((function(e,t){t.__esModule=!0,t.createSequenceItem=function(e,t){return mt.__assign(mt.__assign(mt.__assign(mt.__assign({},ht.createNode("sequenceItem",e)),Dt.createCommentAttachable()),$t.createEndCommentAttachable()),{children:t?[t]:[]})}}));r(wn),wn.createSequenceItem;var An=o((function(e,t){t.__esModule=!0,t.transformSeq=function(e,t){var n=Qt.extractComments(e.cstNode.items,t).map((function(n,r){Bt.extractPropComments(n,t);var o=t.transformNode(e.items[r]);return wn.createSequenceItem(Vt.createPosition(t.transformOffset(n.valueRange.origStart),null===o?t.transformOffset(n.valueRange.origStart+1):o.position.end),o)}));return En.createSequence(Vt.createPosition(n[0].position.start,Wt.getLast(n).position.end),t.transformContent(e),n)}}));r(An),An.transformSeq;var Sn=o((function(e,t){t.__esModule=!0,t.transformNode=function(e,t){if(null===e)return null;switch(e.type){case"ALIAS":return Et.transformAlias(e,t);case"BLOCK_FOLDED":return Ot.transformBlockFolded(e,t);case"BLOCK_LITERAL":return Mt.transformBlockLiteral(e,t);case"COMMENT":return Pt.transformComment(e,t);case"DIRECTIVE":return Rt.transformDirective(e,t);case"DOCUMENT":return Yt.transformDocument(e,t);case"FLOW_MAP":return sn.transformFlowMap(e,t);case"FLOW_SEQ":return cn.transformFlowSeq(e,t);case"MAP":return pn.transformMap(e,t);case"PLAIN":return mn.transformPlain(e,t);case"QUOTE_DOUBLE":return vn.transformQuoteDouble(e,t);case"QUOTE_SINGLE":return Cn.transformQuoteSingle(e,t);case"SEQ":return An.transformSeq(e,t);default:throw new Error("Unexpected node type "+e.type)}}}));r(Sn),Sn.transformNode;var xn=o((function(e,t){t.__esModule=!0,t.createError=function(e,t,n){var r=new SyntaxError(e);return r.name="YAMLSyntaxError",r.source=t,r.position=n,r}}));r(xn),xn.createError;var _n=o((function(e,t){t.__esModule=!0,t.transformError=function(e,t){var n=e.source.range||e.source.valueRange;return xn.createError(e.message,t.text,t.transformRange(n))}}));r(_n),_n.transformError;var Fn=o((function(e,t){t.__esModule=!0,t.createPoint=function(e,t,n){return{offset:e,line:t,column:n}}}));r(Fn),Fn.createPoint;var Tn=o((function(e,t){t.__esModule=!0,t.transformOffset=function(e,t){e<0?e=0:e>t.text.length&&(e=t.text.length);var n=t.locator.locationForIndex(e);return Fn.createPoint(e,n.line+1,n.column+1)}}));r(Tn),Tn.transformOffset;var kn=o((function(e,t){t.__esModule=!0,t.transformRange=function(e,t){return Vt.createPosition(t.transformOffset(e.origStart),t.transformOffset(e.origEnd))}}));r(kn),kn.transformRange;var Nn=o((function(e,t){t.__esModule=!0,t.addOrigRange=function(e){if(!e.setOrigRanges()){var t=function(e){return function(e){return"number"==typeof e.start}(e)?(e.origStart=e.start,e.origEnd=e.end,!0):function(e){return"number"==typeof e.offset}(e)?(e.origOffset=e.offset,!0):void 0};e.forEach((function(e){return function e(t,n){if(t&&"object"==typeof t&&!0!==n(t))for(var r=0,o=Object.keys(t);r<o.length;r++){var i=o[r];if("context"!==i&&"error"!==i){var s=t[i];Array.isArray(s)?s.forEach((function(t){return e(t,n)})):e(s,n)}}}(e,t)}))}}}));r(Nn),Nn.addOrigRange;var On=o((function(e,t){t.__esModule=!0,t.removeFakeNodes=function e(t){if("children"in t){if(1===t.children.length){var n=t.children[0];if("plain"===n.type&&null===n.tag&&null===n.anchor&&""===n.value)return t.children.splice(0,1),t}t.children.forEach(e)}return t}}));r(On),On.removeFakeNodes;var Ln=o((function(e,t){t.__esModule=!0,t.createUpdater=function(e,t,n,r){var o=t(e);return function(t){r(o,t)&&n(e,o=t)}}}));r(Ln),Ln.createUpdater;var Mn=o((function(e,t){function n(e){return e.start}function r(e,t){e.start=t}function o(e){return e.end}function i(e,t){e.end=t}function s(e,t){return t.offset<e.offset}function a(e,t){return t.offset>e.offset}t.__esModule=!0,t.updatePositions=function e(t){if(null!==t&&"children"in t){var u=t.children;if(u.forEach(e),"document"===t.type){var c=t.children,l=c[0],f=c[1];l.position.start.offset===l.position.end.offset?l.position.start=l.position.end=f.position.start:f.position.start.offset===f.position.end.offset&&(f.position.start=f.position.end=l.position.end)}var p=Ln.createUpdater(t.position,n,r,s),h=Ln.createUpdater(t.position,o,i,a);"endComments"in t&&0!==t.endComments.length&&(p(t.endComments[0].position.start),h(Wt.getLast(t.endComments).position.end));var d=u.filter((function(e){return null!==e}));if(0!==d.length){var m=d[0],g=Wt.getLast(d);p(m.position.start),h(g.position.end),"leadingComments"in m&&0!==m.leadingComments.length&&p(m.leadingComments[0].position.start),"tag"in m&&m.tag&&p(m.tag.position.start),"anchor"in m&&m.anchor&&p(m.anchor.position.start),"trailingComment"in g&&g.trailingComment&&h(g.trailingComment.position.end)}}}}));r(Mn),Mn.updatePositions;var Pn=o((function(e,t){t.__esModule=!0,t.parse=function(e){var t=ct.parseCST(e);Nn.addOrigRange(t);var n=t.map((function(e){return new ct.Document({merge:!0,keepCstNodes:!0}).parse(e)})),r=[],o={text:e,locator:new f.default(e),comments:r,transformOffset:function(e){return Tn.transformOffset(e,o)},transformRange:function(e){return kn.transformRange(e,o)},transformNode:function(e){return Sn.transformNode(e,o)},transformContent:function(e){return kt.transformContent(e,o)}},i=n.find((function(e){return 0!==e.errors.length}));if(i)throw _n.transformError(i.errors[0],o);n.forEach((function(e){return yt.removeCstBlankLine(e.cstNode)}));var s=gt.createRoot(o.transformRange({origStart:0,origEnd:o.text.length}),n.map(o.transformNode),r);return pt.attachComments(s),Mn.updatePositions(s),On.removeFakeNodes(s),s}}));r(Pn),Pn.parse;var In=o((function(e,t){t.__esModule=!0,mt.__exportStar(Pn,t)}));r(In);const{hasPragma:Bn}={isPragma:function(e){return/^\s*@(prettier|format)\s*$/.test(e)},hasPragma:function(e){return/^\s*#[^\n\S]*@(prettier|format)\s*?(\n|$)/.test(e)},insertPragma:function(e){return"# @format\n\n".concat(e)}};var Rn={parsers:{yaml:{astFormat:"yaml",parse:function(e){try{const t=In.parse(e);return delete t.comments,t}catch(e){throw e&&e.position?function(e,t){const n=new SyntaxError(e+" ("+t.start.line+":"+t.start.column+")");return n.loc=t,n}(e.message,e.position):e}},hasPragma:Bn,locStart:e=>e.position.start.offset,locEnd:e=>e.position.end.offset}}},jn=Rn.parsers;e.default=Rn,e.parsers=jn,Object.defineProperty(e,"__esModule",{value:!0})}(t)},2167:function(e,t,n){e.exports=function(){"use strict";var e="prettier",t="2.0.5",r="Prettier is an opinionated code formatter",o="./bin/prettier.js",i="prettier/prettier",s="https://prettier.io",a="James Long",u="./index.js",c={node:">=10.13.0"},l={"@angular/compiler":"9.0.5","@babel/code-frame":"7.8.0","@babel/parser":"7.9.4","@glimmer/syntax":"0.50.0","@iarna/toml":"2.2.3","@typescript-eslint/typescript-estree":"2.26.0","angular-estree-parser":"1.3.0","angular-html-parser":"1.4.0",camelcase:"5.3.1",chalk:"4.0.0","ci-info":"watson/ci-info#f43f6a1cefff47fb361c88cf4b943fdbcaafe540","cjk-regex":"2.0.0",cosmiconfig:"6.0.0",dashify:"2.0.0",dedent:"0.7.0",diff:"4.0.2",editorconfig:"0.15.3","editorconfig-to-prettier":"0.1.1","escape-string-regexp":"2.0.0",esutils:"2.0.3","fast-glob":"3.2.2","find-parent-dir":"0.3.0","find-project-root":"1.1.1","flow-parser":"0.122.0","get-stream":"5.1.0",globby:"11.0.0",graphql:"15.0.0","html-element-attributes":"2.2.1","html-styles":"1.0.0","html-tag-names":"1.1.5",ignore:"4.0.6","jest-docblock":"25.2.6","json-stable-stringify":"1.0.1",leven:"3.1.0","lines-and-columns":"1.1.6","linguist-languages":"7.9.0",lodash:"4.17.15",mem:"6.0.1",minimatch:"3.0.4",minimist:"1.2.5","n-readlines":"1.0.0","please-upgrade-node":"3.2.0","postcss-less":"3.1.4","postcss-media-query-parser":"0.2.3","postcss-scss":"2.0.0","postcss-selector-parser":"2.2.3","postcss-values-parser":"2.0.1","regexp-util":"1.2.2","remark-math":"1.0.6","remark-parse":"5.0.0",resolve:"1.16.1",semver:"7.1.3",srcset:"2.0.1","string-width":"4.2.0",typescript:"3.8.3","unicode-regex":"3.0.0",unified:"9.0.0",vnopts:"1.0.2","yaml-unist-parser":"1.1.1"},f={"@babel/core":"7.9.0","@babel/preset-env":"7.9.0","@rollup/plugin-alias":"3.0.1","@rollup/plugin-commonjs":"11.0.2","@rollup/plugin-json":"4.0.2","@rollup/plugin-node-resolve":"7.1.1","@rollup/plugin-replace":"2.3.1","babel-loader":"8.1.0",benchmark:"2.1.4","builtin-modules":"3.1.0",codecov:"3.6.5","cross-env":"7.0.2",cspell:"4.0.55",eslint:"6.8.0","eslint-config-prettier":"6.10.1","eslint-formatter-friendly":"7.0.0","eslint-plugin-import":"2.20.2","eslint-plugin-prettier":"3.1.2","eslint-plugin-react":"7.19.0","eslint-plugin-unicorn":"18.0.1",execa:"4.0.0",jest:"25.2.7","jest-snapshot-serializer-ansi":"1.0.0","jest-snapshot-serializer-raw":"1.1.0","jest-watch-typeahead":"0.5.0",prettier:"2.0.4",rimraf:"3.0.2",rollup:"2.3.2","rollup-plugin-babel":"4.4.0","rollup-plugin-node-globals":"1.4.0","rollup-plugin-terser":"5.3.0",shelljs:"0.8.3","snapshot-diff":"0.7.0","strip-ansi":"6.0.0","synchronous-promise":"2.0.10",tempy:"0.5.0","terser-webpack-plugin":"2.3.5",webpack:"4.42.1"},p={prepublishOnly:'echo "Error: must publish from dist/" && exit 1',"prepare-release":"yarn && yarn build && yarn test:dist",test:"jest","test:dist":"cross-env NODE_ENV=production jest","test:dist-standalone":"cross-env NODE_ENV=production TEST_STANDALONE=1 jest tests/","test:integration":"jest tests_integration","perf:repeat":"yarn && yarn build && cross-env NODE_ENV=production node ./dist/bin-prettier.js --debug-repeat ${PERF_REPEAT:-1000} --loglevel debug ${PERF_FILE:-./index.js} > /dev/null","perf:repeat-inspect":"yarn && yarn build && cross-env NODE_ENV=production node --inspect-brk ./dist/bin-prettier.js --debug-repeat ${PERF_REPEAT:-1000} --loglevel debug ${PERF_FILE:-./index.js} > /dev/null","perf:benchmark":"yarn && yarn build && cross-env NODE_ENV=production node ./dist/bin-prettier.js --debug-benchmark --loglevel debug ${PERF_FILE:-./index.js} > /dev/null","lint:typecheck":"tsc","lint:eslint":"cross-env EFF_NO_LINK_RULES=true eslint . --format friendly","lint:changelog":"node ./scripts/lint-changelog.js","lint:prettier":'prettier "**/*.{md,json,yml,html,css}" --check',"lint:dist":'eslint --no-eslintrc --no-ignore --env=es6,browser --parser-options=ecmaVersion:2016 "dist/!(bin-prettier|index|third-party).js"',"lint:spellcheck":"cspell {bin,scripts,src,website}/**/*.js {docs,website/blog,changelog_unreleased}/**/*.md","lint:deps":"node ./scripts/check-deps.js",build:"node --max-old-space-size=3072 ./scripts/build/build.js","build-docs":"node ./scripts/build-docs.js"},h={name:e,version:t,description:r,bin:o,repository:i,homepage:s,author:a,license:"MIT",main:u,engines:c,dependencies:l,devDependencies:f,scripts:p},d=Object.freeze({__proto__:null,name:e,version:t,description:r,bin:o,repository:i,homepage:s,author:a,license:"MIT",main:u,engines:c,dependencies:l,devDependencies:f,scripts:p,default:h});function m(){}function g(e,t,n,r,o){for(var i=0,s=t.length,a=0,u=0;i<s;i++){var c=t[i];if(c.removed){if(c.value=e.join(r.slice(u,u+c.count)),u+=c.count,i&&t[i-1].added){var l=t[i-1];t[i-1]=t[i],t[i]=l}}else{if(!c.added&&o){var f=n.slice(a,a+c.count);f=f.map((function(e,t){var n=r[u+t];return n.length>e.length?n:e})),c.value=e.join(f)}else c.value=e.join(n.slice(a,a+c.count));a+=c.count,c.added||(u+=c.count)}}var p=t[s-1];return s>1&&"string"==typeof p.value&&(p.added||p.removed)&&e.equals("",p.value)&&(t[s-2].value+=p.value,t.pop()),t}function y(e){return{newPos:e.newPos,components:e.components.slice(0)}}m.prototype={diff:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.callback;"function"==typeof n&&(r=n,n={}),this.options=n;var o=this;function i(e){return r?(setTimeout((function(){r(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var s=(t=this.removeEmpty(this.tokenize(t))).length,a=e.length,u=1,c=s+a,l=[{newPos:-1,components:[]}],f=this.extractCommon(l[0],t,e,0);if(l[0].newPos+1>=s&&f+1>=a)return i([{value:this.join(t),count:t.length}]);function p(){for(var n=-1*u;n<=u;n+=2){var r=void 0,c=l[n-1],f=l[n+1],p=(f?f.newPos:0)-n;c&&(l[n-1]=void 0);var h=c&&c.newPos+1<s,d=f&&0<=p&&p<a;if(h||d){if(!h||d&&c.newPos<f.newPos?(r=y(f),o.pushComponent(r.components,void 0,!0)):((r=c).newPos++,o.pushComponent(r.components,!0,void 0)),p=o.extractCommon(r,t,e,n),r.newPos+1>=s&&p+1>=a)return i(g(o,r.components,t,e,o.useLongestToken));l[n]=r}else l[n]=void 0}u++}if(r)!function e(){setTimeout((function(){if(u>c)return r();p()||e()}),0)}();else for(;u<=c;){var h=p();if(h)return h}},pushComponent:function(e,t,n){var r=e[e.length-1];r&&r.added===t&&r.removed===n?e[e.length-1]={count:r.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,r){for(var o=t.length,i=n.length,s=e.newPos,a=s-r,u=0;s+1<o&&a+1<i&&this.equals(t[s+1],n[a+1]);)s++,a++,u++;return u&&e.components.push({count:u}),e.newPos=s,a},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}};var b=new m;function v(e,t){if("function"==typeof e)t.callback=e;else if(e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}var D=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,C=/\S/,E=new m;E.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!C.test(e)&&!C.test(t)},E.tokenize=function(e){for(var t=e.split(/(\s+|[()[\]{}'"]|\b)/),n=0;n<t.length-1;n++)!t[n+1]&&t[n+2]&&D.test(t[n])&&D.test(t[n+2])&&(t[n]+=t[n+2],t.splice(n+1,2),n--);return t};var w=new m;function A(e,t,n){return w.diff(e,t,n)}w.tokenize=function(e){var t=[],n=e.split(/(\n|\r\n)/);n[n.length-1]||n.pop();for(var r=0;r<n.length;r++){var o=n[r];r%2&&!this.options.newlineIsToken?t[t.length-1]+=o:(this.options.ignoreWhitespace&&(o=o.trim()),t.push(o))}return t};var S=new m;S.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)};var x=new m;function _(e){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function F(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}x.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};var T=Object.prototype.toString,k=new m;function N(e,t,n,r,o){var i,s;for(t=t||[],n=n||[],r&&(e=r(o,e)),i=0;i<t.length;i+=1)if(t[i]===e)return n[i];if("[object Array]"===T.call(e)){for(t.push(e),s=new Array(e.length),n.push(s),i=0;i<e.length;i+=1)s[i]=N(e[i],t,n,r,o);return t.pop(),n.pop(),s}if(e&&e.toJSON&&(e=e.toJSON()),"object"===_(e)&&null!==e){t.push(e),s={},n.push(s);var a,u=[];for(a in e)e.hasOwnProperty(a)&&u.push(a);for(u.sort(),i=0;i<u.length;i+=1)s[a=u[i]]=N(e[a],t,n,r,a);t.pop(),n.pop()}else s=e;return s}k.useLongestToken=!0,k.tokenize=w.tokenize,k.castInput=function(e){var t=this.options,n=t.undefinedReplacement,r=t.stringifyReplacer,o=void 0===r?function(e,t){return void 0===t?n:t}:r;return"string"==typeof e?e:JSON.stringify(N(e,null,null,o),o,"  ")},k.equals=function(e,t){return m.prototype.equals.call(k,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"))};var O=new m;function L(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.split(/\r\n|[\n\v\f\r\x85]/),r=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],o=[],i=0;function s(){var e={};for(o.push(e);i<n.length;){var r=n[i];if(/^(\-\-\-|\+\+\+|@@)\s/.test(r))break;var s=/^(?:Index:|diff(?: -r \w+)+)\s+(.+?)\s*$/.exec(r);s&&(e.index=s[1]),i++}for(a(e),a(e),e.hunks=[];i<n.length;){var c=n[i];if(/^(Index:|diff|\-\-\-|\+\+\+)\s/.test(c))break;if(/^@@/.test(c))e.hunks.push(u());else{if(c&&t.strict)throw new Error("Unknown line "+(i+1)+" "+JSON.stringify(c));i++}}}function a(e){var t=/^(---|\+\+\+)\s+(.*)$/.exec(n[i]);if(t){var r="---"===t[1]?"old":"new",o=t[2].split("\t",2),s=o[0].replace(/\\\\/g,"\\");/^".*"$/.test(s)&&(s=s.substr(1,s.length-2)),e[r+"FileName"]=s,e[r+"Header"]=(o[1]||"").trim(),i++}}function u(){for(var e=i,o=n[i++].split(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/),s={oldStart:+o[1],oldLines:+o[2]||1,newStart:+o[3],newLines:+o[4]||1,lines:[],linedelimiters:[]},a=0,u=0;i<n.length&&!(0===n[i].indexOf("--- ")&&i+2<n.length&&0===n[i+1].indexOf("+++ ")&&0===n[i+2].indexOf("@@"));i++){var c=0==n[i].length&&i!=n.length-1?" ":n[i][0];if("+"!==c&&"-"!==c&&" "!==c&&"\\"!==c)break;s.lines.push(n[i]),s.linedelimiters.push(r[i]||"\n"),"+"===c?a++:"-"===c?u++:" "===c&&(a++,u++)}if(a||1!==s.newLines||(s.newLines=0),u||1!==s.oldLines||(s.oldLines=0),t.strict){if(a!==s.newLines)throw new Error("Added line count did not match for hunk at line "+(e+1));if(u!==s.oldLines)throw new Error("Removed line count did not match for hunk at line "+(e+1))}return s}for(;i<n.length;)s();return o}function M(e,t,n){var r=!0,o=!1,i=!1,s=1;return function a(){if(r&&!i){if(o?s++:r=!1,e+s<=n)return s;i=!0}if(!o)return i||(r=!0),t<=e-s?-s++:(o=!0,a())}}function P(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t&&(t=L(t)),Array.isArray(t)){if(t.length>1)throw new Error("applyPatch only works with a single input.");t=t[0]}var r,o,i=e.split(/\r\n|[\n\v\f\r\x85]/),s=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],a=t.hunks,u=n.compareLine||function(e,t,n,r){return t===r},c=0,l=n.fuzzFactor||0,f=0,p=0;function h(e,t){for(var n=0;n<e.lines.length;n++){var r=e.lines[n],o=r.length>0?r[0]:" ",s=r.length>0?r.substr(1):r;if(" "===o||"-"===o){if(!u(t+1,i[t],o,s)&&++c>l)return!1;t++}}return!0}for(var d=0;d<a.length;d++){for(var m=a[d],g=i.length-m.oldLines,y=0,b=p+m.oldStart-1,v=M(b,f,g);void 0!==y;y=v())if(h(m,b+y)){m.offset=p+=y;break}if(void 0===y)return!1;f=m.offset+m.oldStart+m.oldLines}for(var D=0,C=0;C<a.length;C++){var E=a[C],w=E.oldStart+E.offset+D-1;D+=E.newLines-E.oldLines,w<0&&(w=0);for(var A=0;A<E.lines.length;A++){var S=E.lines[A],x=S.length>0?S[0]:" ",_=S.length>0?S.substr(1):S,F=E.linedelimiters[A];if(" "===x)w++;else if("-"===x)i.splice(w,1),s.splice(w,1);else if("+"===x)i.splice(w,0,_),s.splice(w,0,F),w++;else if("\\"===x){var T=E.lines[A-1]?E.lines[A-1][0]:null;"+"===T?r=!0:"-"===T&&(o=!0)}}}if(r)for(;!i[i.length-1];)i.pop(),s.pop();else o&&(i.push(""),s.push("\n"));for(var k=0;k<i.length-1;k++)i[k]=i[k]+s[k];return i.join("")}function I(e,t,n,r,o,i,s){s||(s={}),void 0===s.context&&(s.context=4);var a=A(n,r,s);function u(e){return e.map((function(e){return" "+e}))}a.push({value:"",lines:[]});for(var c=[],l=0,f=0,p=[],h=1,d=1,m=function(e){var t=a[e],o=t.lines||t.value.replace(/\n$/,"").split("\n");if(t.lines=o,t.added||t.removed){var i;if(!l){var m=a[e-1];l=h,f=d,m&&(p=s.context>0?u(m.lines.slice(-s.context)):[],l-=p.length,f-=p.length)}(i=p).push.apply(i,F(o.map((function(e){return(t.added?"+":"-")+e})))),t.added?d+=o.length:h+=o.length}else{if(l)if(o.length<=2*s.context&&e<a.length-2){var g;(g=p).push.apply(g,F(u(o)))}else{var y,b=Math.min(o.length,s.context);(y=p).push.apply(y,F(u(o.slice(0,b))));var v={oldStart:l,oldLines:h-l+b,newStart:f,newLines:d-f+b,lines:p};if(e>=a.length-2&&o.length<=s.context){var D=/\n$/.test(n),C=/\n$/.test(r),E=0==o.length&&p.length>v.oldLines;!D&&E&&p.splice(v.oldLines,0,"\\ No newline at end of file"),(D||E)&&C||p.push("\\ No newline at end of file")}c.push(v),l=0,f=0,p=[]}h+=o.length,d+=o.length}},g=0;g<a.length;g++)m(g);return{oldFileName:e,newFileName:t,oldHeader:o,newHeader:i,hunks:c}}function B(e,t,n,r,o,i,s){var a=I(e,t,n,r,o,i,s),u=[];e==t&&u.push("Index: "+e),u.push("==================================================================="),u.push("--- "+a.oldFileName+(void 0===a.oldHeader?"":"\t"+a.oldHeader)),u.push("+++ "+a.newFileName+(void 0===a.newHeader?"":"\t"+a.newHeader));for(var c=0;c<a.hunks.length;c++){var l=a.hunks[c];u.push("@@ -"+l.oldStart+","+l.oldLines+" +"+l.newStart+","+l.newLines+" @@"),u.push.apply(u,l.lines)}return u.join("\n")+"\n"}function R(e,t){if(t.length>e.length)return!1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}function j(e){var t=ee(e.lines),n=t.oldLines,r=t.newLines;void 0!==n?e.oldLines=n:delete e.oldLines,void 0!==r?e.newLines=r:delete e.newLines}function V(e,t){if("string"==typeof e){if(/^@@/m.test(e)||/^Index:/m.test(e))return L(e)[0];if(!t)throw new Error("Must provide a base reference or pass in a patch");return I(void 0,void 0,t,e)}return e}function $(e){return e.newFileName&&e.newFileName!==e.oldFileName}function U(e,t,n){return t===n?t:(e.conflict=!0,{mine:t,theirs:n})}function W(e,t){return e.oldStart<t.oldStart&&e.oldStart+e.oldLines<t.oldStart}function K(e,t){return{oldStart:e.oldStart,oldLines:e.oldLines,newStart:e.newStart+t,newLines:e.newLines,lines:e.lines}}function q(e,t,n,r,o){var i={offset:t,lines:n,index:0},s={offset:r,lines:o,index:0};for(J(e,i,s),J(e,s,i);i.index<i.lines.length&&s.index<s.lines.length;){var a=i.lines[i.index],u=s.lines[s.index];if("-"!==a[0]&&"+"!==a[0]||"-"!==u[0]&&"+"!==u[0])if("+"===a[0]&&" "===u[0]){var c;(c=e.lines).push.apply(c,F(X(i)))}else if("+"===u[0]&&" "===a[0]){var l;(l=e.lines).push.apply(l,F(X(s)))}else"-"===a[0]&&" "===u[0]?z(e,i,s):"-"===u[0]&&" "===a[0]?z(e,s,i,!0):a===u?(e.lines.push(a),i.index++,s.index++):Y(e,X(i),X(s));else H(e,i,s)}G(e,i),G(e,s),j(e)}function H(e,t,n){var r=X(t),o=X(n);if(Q(r)&&Q(o)){var i,s;if(R(r,o)&&Z(n,r,r.length-o.length))return void(i=e.lines).push.apply(i,F(r));if(R(o,r)&&Z(t,o,o.length-r.length))return void(s=e.lines).push.apply(s,F(o))}else if(function(e,t){return e.length===t.length&&R(e,t)}(r,o)){var a;return void(a=e.lines).push.apply(a,F(r))}Y(e,r,o)}function z(e,t,n,r){var o,i=X(t),s=function(e,t){for(var n=[],r=[],o=0,i=!1,s=!1;o<t.length&&e.index<e.lines.length;){var a=e.lines[e.index],u=t[o];if("+"===u[0])break;if(i=i||" "!==a[0],r.push(u),o++,"+"===a[0])for(s=!0;"+"===a[0];)n.push(a),a=e.lines[++e.index];u.substr(1)===a.substr(1)?(n.push(a),e.index++):s=!0}if("+"===(t[o]||"")[0]&&i&&(s=!0),s)return n;for(;o<t.length;)r.push(t[o++]);return{merged:r,changes:n}}(n,i);s.merged?(o=e.lines).push.apply(o,F(s.merged)):Y(e,r?s:i,r?i:s)}function Y(e,t,n){e.conflict=!0,e.lines.push({conflict:!0,mine:t,theirs:n})}function J(e,t,n){for(;t.offset<n.offset&&t.index<t.lines.length;){var r=t.lines[t.index++];e.lines.push(r),t.offset++}}function G(e,t){for(;t.index<t.lines.length;){var n=t.lines[t.index++];e.lines.push(n)}}function X(e){for(var t=[],n=e.lines[e.index][0];e.index<e.lines.length;){var r=e.lines[e.index];if("-"===n&&"+"===r[0]&&(n="+"),n!==r[0])break;t.push(r),e.index++}return t}function Q(e){return e.reduce((function(e,t){return e&&"-"===t[0]}),!0)}function Z(e,t,n){for(var r=0;r<n;r++){var o=t[t.length-n+r].substr(1);if(e.lines[e.index+r]!==" "+o)return!1}return e.index+=n,!0}function ee(e){var t=0,n=0;return e.forEach((function(e){if("string"!=typeof e){var r=ee(e.mine),o=ee(e.theirs);void 0!==t&&(r.oldLines===o.oldLines?t+=r.oldLines:t=void 0),void 0!==n&&(r.newLines===o.newLines?n+=r.newLines:n=void 0)}else void 0===n||"+"!==e[0]&&" "!==e[0]||n++,void 0===t||"-"!==e[0]&&" "!==e[0]||t++})),{oldLines:t,newLines:n}}O.tokenize=function(e){return e.slice()},O.join=O.removeEmpty=function(e){return e};var te=Object.freeze({__proto__:null,Diff:m,diffChars:function(e,t,n){return b.diff(e,t,n)},diffWords:function(e,t,n){return n=v(n,{ignoreWhitespace:!0}),E.diff(e,t,n)},diffWordsWithSpace:function(e,t,n){return E.diff(e,t,n)},diffLines:A,diffTrimmedLines:function(e,t,n){var r=v(n,{ignoreWhitespace:!0});return w.diff(e,t,r)},diffSentences:function(e,t,n){return S.diff(e,t,n)},diffCss:function(e,t,n){return x.diff(e,t,n)},diffJson:function(e,t,n){return k.diff(e,t,n)},diffArrays:function(e,t,n){return O.diff(e,t,n)},structuredPatch:I,createTwoFilesPatch:B,createPatch:function(e,t,n,r,o,i){return B(e,e,t,n,r,o,i)},applyPatch:P,applyPatches:function(e,t){"string"==typeof e&&(e=L(e));var n=0;!function r(){var o=e[n++];if(!o)return t.complete();t.loadFile(o,(function(e,n){if(e)return t.complete(e);var i=P(n,o,t);t.patched(o,i,(function(e){if(e)return t.complete(e);r()}))}))}()},parsePatch:L,merge:function(e,t,n){e=V(e,n),t=V(t,n);var r={};(e.index||t.index)&&(r.index=e.index||t.index),(e.newFileName||t.newFileName)&&($(e)?$(t)?(r.oldFileName=U(r,e.oldFileName,t.oldFileName),r.newFileName=U(r,e.newFileName,t.newFileName),r.oldHeader=U(r,e.oldHeader,t.oldHeader),r.newHeader=U(r,e.newHeader,t.newHeader)):(r.oldFileName=e.oldFileName,r.newFileName=e.newFileName,r.oldHeader=e.oldHeader,r.newHeader=e.newHeader):(r.oldFileName=t.oldFileName||e.oldFileName,r.newFileName=t.newFileName||e.newFileName,r.oldHeader=t.oldHeader||e.oldHeader,r.newHeader=t.newHeader||e.newHeader)),r.hunks=[];for(var o=0,i=0,s=0,a=0;o<e.hunks.length||i<t.hunks.length;){var u=e.hunks[o]||{oldStart:1/0},c=t.hunks[i]||{oldStart:1/0};if(W(u,c))r.hunks.push(K(u,s)),o++,a+=u.newLines-u.oldLines;else if(W(c,u))r.hunks.push(K(c,a)),i++,s+=c.newLines-c.oldLines;else{var l={oldStart:Math.min(u.oldStart,c.oldStart),oldLines:0,newStart:Math.min(u.newStart+s,c.oldStart+a),newLines:0,lines:[]};q(l,u.oldStart,u.lines,c.oldStart,c.lines),i++,o++,r.hunks.push(l)}}return r},convertChangesToDMP:function(e){for(var t,n,r=[],o=0;o<e.length;o++)n=(t=e[o]).added?1:t.removed?-1:0,r.push([n,t.value]);return r},convertChangesToXML:function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];r.added?t.push("<ins>"):r.removed&&t.push("<del>"),t.push((o=r.value,void 0,o.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))),r.added?t.push("</ins>"):r.removed&&t.push("</del>")}var o;return t.join("")},canonicalize:N}),ne=Object.freeze({__proto__:null,default:{}});const re=/[\\/]/;function oe(e){return e.split(re).pop()}var ie=Object.freeze({__proto__:null,extname:function(e){const t=oe(e),n=t.lastIndexOf(".");return-1===n?"":t.slice(n)},basename:oe,isAbsolute:function(){return!0}}),se=void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},ae=[],ue=[],ce="undefined"!=typeof Uint8Array?Uint8Array:Array,le=!1;function fe(){le=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,n=e.length;t<n;++t)ae[t]=e[t],ue[e.charCodeAt(t)]=t;ue["-".charCodeAt(0)]=62,ue["_".charCodeAt(0)]=63}function pe(e,t,n){for(var r,o=[],i=t;i<n;i+=3)r=(e[i]<<16)+(e[i+1]<<8)+e[i+2],o.push(ae[(s=r)>>18&63]+ae[s>>12&63]+ae[s>>6&63]+ae[63&s]);var s;return o.join("")}function he(e){var t;le||fe();for(var n=e.length,r=n%3,o="",i=[],s=16383,a=0,u=n-r;a<u;a+=s)i.push(pe(e,a,a+s>u?u:a+s));return 1===r?(t=e[n-1],o+=ae[t>>2],o+=ae[t<<4&63],o+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],o+=ae[t>>10],o+=ae[t>>4&63],o+=ae[t<<2&63],o+="="),i.push(o),i.join("")}function de(e,t,n,r,o){var i,s,a=8*o-r-1,u=(1<<a)-1,c=u>>1,l=-7,f=n?o-1:0,p=n?-1:1,h=e[t+f];for(f+=p,i=h&(1<<-l)-1,h>>=-l,l+=a;l>0;i=256*i+e[t+f],f+=p,l-=8);for(s=i&(1<<-l)-1,i>>=-l,l+=r;l>0;s=256*s+e[t+f],f+=p,l-=8);if(0===i)i=1-c;else{if(i===u)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,r),i-=c}return(h?-1:1)*s*Math.pow(2,i-r)}function me(e,t,n,r,o,i){var s,a,u,c=8*i-o-1,l=(1<<c)-1,f=l>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,d=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),(t+=s+f>=1?p/u:p*Math.pow(2,1-f))*u>=2&&(s++,u/=2),s+f>=l?(a=0,s=l):s+f>=1?(a=(t*u-1)*Math.pow(2,o),s+=f):(a=t*Math.pow(2,f-1)*Math.pow(2,o),s=0));o>=8;e[n+h]=255&a,h+=d,a/=256,o-=8);for(s=s<<o|a,c+=o;c>0;e[n+h]=255&s,h+=d,s/=256,c-=8);e[n+h-d]|=128*m}var ge={}.toString,ye=Array.isArray||function(e){return"[object Array]"==ge.call(e)};function be(){return De.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function ve(e,t){if(be()<t)throw new RangeError("Invalid typed array length");return De.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=De.prototype:(null===e&&(e=new De(t)),e.length=t),e}function De(e,t,n){if(!(De.TYPED_ARRAY_SUPPORT||this instanceof De))return new De(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return we(this,e)}return Ce(this,e,t,n)}function Ce(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),De.TYPED_ARRAY_SUPPORT?(e=t).__proto__=De.prototype:e=Ae(e,t),e}(e,t,n,r):"string"==typeof t?function(e,t,n){if("string"==typeof n&&""!==n||(n="utf8"),!De.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|_e(t,n),o=(e=ve(e,r)).write(t,n);return o!==r&&(e=e.slice(0,o)),e}(e,t,n):function(e,t){if(xe(t)){var n=0|Se(t.length);return 0===(e=ve(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?ve(e,0):Ae(e,t);if("Buffer"===t.type&&ye(t.data))return Ae(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function Ee(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function we(e,t){if(Ee(t),e=ve(e,t<0?0:0|Se(t)),!De.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function Ae(e,t){var n=t.length<0?0:0|Se(t.length);e=ve(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function Se(e){if(e>=be())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+be().toString(16)+" bytes");return 0|e}function xe(e){return!(null==e||!e._isBuffer)}function _e(e,t){if(xe(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Ze(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return et(e).length;default:if(r)return Ze(e).length;t=(""+t).toLowerCase(),r=!0}}function Fe(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return We(this,t,n);case"utf8":case"utf-8":return je(this,t,n);case"ascii":return $e(this,t,n);case"latin1":case"binary":return Ue(this,t,n);case"base64":return Re(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ke(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function Te(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function ke(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=De.from(t,r)),xe(t))return 0===t.length?-1:Ne(e,t,n,r,o);if("number"==typeof t)return t&=255,De.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):Ne(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function Ne(e,t,n,r,o){var i,s=1,a=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,u/=2,n/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(o){var l=-1;for(i=n;i<a;i++)if(c(e,i)===c(t,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===u)return l*s}else-1!==l&&(i-=i-l),l=-1}else for(n+u>a&&(n=a-u),i=n;i>=0;i--){for(var f=!0,p=0;p<u;p++)if(c(e,i+p)!==c(t,p)){f=!1;break}if(f)return i}return-1}function Oe(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var s=0;s<r;++s){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[n+s]=a}return s}function Le(e,t,n,r){return tt(Ze(t,e.length-n),e,n,r)}function Me(e,t,n,r){return tt(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function Pe(e,t,n,r){return Me(e,t,n,r)}function Ie(e,t,n,r){return tt(et(t),e,n,r)}function Be(e,t,n,r){return tt(function(e,t){for(var n,r,o,i=[],s=0;s<e.length&&!((t-=2)<0);++s)r=(n=e.charCodeAt(s))>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function Re(e,t,n){return 0===t&&n===e.length?he(e):he(e.slice(t,n))}function je(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i,s,a,u,c=e[o],l=null,f=c>239?4:c>223?3:c>191?2:1;if(o+f<=n)switch(f){case 1:c<128&&(l=c);break;case 2:128==(192&(i=e[o+1]))&&(u=(31&c)<<6|63&i)>127&&(l=u);break;case 3:i=e[o+1],s=e[o+2],128==(192&i)&&128==(192&s)&&(u=(15&c)<<12|(63&i)<<6|63&s)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:i=e[o+1],s=e[o+2],a=e[o+3],128==(192&i)&&128==(192&s)&&128==(192&a)&&(u=(15&c)<<18|(63&i)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),o+=f}return function(e){var t=e.length;if(t<=Ve)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=Ve));return n}(r)}De.TYPED_ARRAY_SUPPORT=void 0===se.TYPED_ARRAY_SUPPORT||se.TYPED_ARRAY_SUPPORT,De.poolSize=8192,De._augment=function(e){return e.__proto__=De.prototype,e},De.from=function(e,t,n){return Ce(null,e,t,n)},De.TYPED_ARRAY_SUPPORT&&(De.prototype.__proto__=Uint8Array.prototype,De.__proto__=Uint8Array),De.alloc=function(e,t,n){return function(e,t,n,r){return Ee(t),t<=0?ve(e,t):void 0!==n?"string"==typeof r?ve(e,t).fill(n,r):ve(e,t).fill(n):ve(e,t)}(null,e,t,n)},De.allocUnsafe=function(e){return we(null,e)},De.allocUnsafeSlow=function(e){return we(null,e)},De.isBuffer=function(e){return null!=e&&(!!e._isBuffer||nt(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&nt(e.slice(0,0))}(e))},De.compare=function(e,t){if(!xe(e)||!xe(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},De.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},De.concat=function(e,t){if(!ye(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return De.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=De.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var i=e[n];if(!xe(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(r,o),o+=i.length}return r},De.byteLength=_e,De.prototype._isBuffer=!0,De.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)Te(this,t,t+1);return this},De.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)Te(this,t,t+3),Te(this,t+1,t+2);return this},De.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)Te(this,t,t+7),Te(this,t+1,t+6),Te(this,t+2,t+5),Te(this,t+3,t+4);return this},De.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?je(this,0,e):Fe.apply(this,arguments)},De.prototype.equals=function(e){if(!xe(e))throw new TypeError("Argument must be a Buffer");return this===e||0===De.compare(this,e)},De.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),"<Buffer "+e+">"},De.prototype.compare=function(e,t,n,r,o){if(!xe(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0),a=Math.min(i,s),u=this.slice(r,o),c=e.slice(t,n),l=0;l<a;++l)if(u[l]!==c[l]){i=u[l],s=c[l];break}return i<s?-1:s<i?1:0},De.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},De.prototype.indexOf=function(e,t,n){return ke(this,e,t,n,!0)},De.prototype.lastIndexOf=function(e,t,n){return ke(this,e,t,n,!1)},De.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return Oe(this,e,t,n);case"utf8":case"utf-8":return Le(this,e,t,n);case"ascii":return Me(this,e,t,n);case"latin1":case"binary":return Pe(this,e,t,n);case"base64":return Ie(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Be(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},De.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Ve=4096;function $e(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function Ue(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function We(e,t,n){var r,o=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>o)&&(n=o);for(var i="",s=t;s<n;++s)i+=(r=e[s])<16?"0"+r.toString(16):r.toString(16);return i}function Ke(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function qe(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function He(e,t,n,r,o,i){if(!xe(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function ze(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o<i;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function Ye(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o<i;++o)e[n+o]=t>>>8*(r?o:3-o)&255}function Je(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function Ge(e,t,n,r,o){return o||Je(e,0,n,4),me(e,t,n,r,23,4),n+4}function Xe(e,t,n,r,o){return o||Je(e,0,n,8),me(e,t,n,r,52,8),n+8}De.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),De.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=De.prototype;else{var o=t-e;n=new De(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+e]}return n},De.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||qe(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},De.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||qe(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},De.prototype.readUInt8=function(e,t){return t||qe(e,1,this.length),this[e]},De.prototype.readUInt16LE=function(e,t){return t||qe(e,2,this.length),this[e]|this[e+1]<<8},De.prototype.readUInt16BE=function(e,t){return t||qe(e,2,this.length),this[e]<<8|this[e+1]},De.prototype.readUInt32LE=function(e,t){return t||qe(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},De.prototype.readUInt32BE=function(e,t){return t||qe(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},De.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||qe(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},De.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||qe(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},De.prototype.readInt8=function(e,t){return t||qe(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},De.prototype.readInt16LE=function(e,t){t||qe(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},De.prototype.readInt16BE=function(e,t){t||qe(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},De.prototype.readInt32LE=function(e,t){return t||qe(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},De.prototype.readInt32BE=function(e,t){return t||qe(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},De.prototype.readFloatLE=function(e,t){return t||qe(e,4,this.length),de(this,e,!0,23,4)},De.prototype.readFloatBE=function(e,t){return t||qe(e,4,this.length),de(this,e,!1,23,4)},De.prototype.readDoubleLE=function(e,t){return t||qe(e,8,this.length),de(this,e,!0,52,8)},De.prototype.readDoubleBE=function(e,t){return t||qe(e,8,this.length),de(this,e,!1,52,8)},De.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||He(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},De.prototype.writeUIntBE=function(e,t,n,r){e=+e,t|=0,n|=0,r||He(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},De.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||He(this,e,t,1,255,0),De.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},De.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||He(this,e,t,2,65535,0),De.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):ze(this,e,t,!0),t+2},De.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||He(this,e,t,2,65535,0),De.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):ze(this,e,t,!1),t+2},De.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||He(this,e,t,4,4294967295,0),De.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):Ye(this,e,t,!0),t+4},De.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||He(this,e,t,4,4294967295,0),De.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Ye(this,e,t,!1),t+4},De.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);He(this,e,t,n,o-1,-o)}var i=0,s=1,a=0;for(this[t]=255&e;++i<n&&(s*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/s>>0)-a&255;return t+n},De.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);He(this,e,t,n,o-1,-o)}var i=n-1,s=1,a=0;for(this[t+i]=255&e;--i>=0&&(s*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/s>>0)-a&255;return t+n},De.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||He(this,e,t,1,127,-128),De.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},De.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||He(this,e,t,2,32767,-32768),De.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):ze(this,e,t,!0),t+2},De.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||He(this,e,t,2,32767,-32768),De.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):ze(this,e,t,!1),t+2},De.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||He(this,e,t,4,2147483647,-2147483648),De.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):Ye(this,e,t,!0),t+4},De.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||He(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),De.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Ye(this,e,t,!1),t+4},De.prototype.writeFloatLE=function(e,t,n){return Ge(this,e,t,!0,n)},De.prototype.writeFloatBE=function(e,t,n){return Ge(this,e,t,!1,n)},De.prototype.writeDoubleLE=function(e,t,n){return Xe(this,e,t,!0,n)},De.prototype.writeDoubleBE=function(e,t,n){return Xe(this,e,t,!1,n)},De.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o,i=r-n;if(this===e&&n<t&&t<r)for(o=i-1;o>=0;--o)e[o+t]=this[o+n];else if(i<1e3||!De.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},De.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!De.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var s=xe(e)?e:Ze(new De(e,r).toString()),a=s.length;for(i=0;i<n-t;++i)this[i+t]=s[i%a]}return this};var Qe=/[^+\/0-9A-Za-z-_]/g;function Ze(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],s=0;s<r;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function et(e){return function(e){var t,n,r,o,i,s;le||fe();var a=e.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");i="="===e[a-2]?2:"="===e[a-1]?1:0,s=new ce(3*a/4-i),r=i>0?a-4:a;var u=0;for(t=0,n=0;t<r;t+=4,n+=3)o=ue[e.charCodeAt(t)]<<18|ue[e.charCodeAt(t+1)]<<12|ue[e.charCodeAt(t+2)]<<6|ue[e.charCodeAt(t+3)],s[u++]=o>>16&255,s[u++]=o>>8&255,s[u++]=255&o;return 2===i?(o=ue[e.charCodeAt(t)]<<2|ue[e.charCodeAt(t+1)]>>4,s[u++]=255&o):1===i&&(o=ue[e.charCodeAt(t)]<<10|ue[e.charCodeAt(t+1)]<<4|ue[e.charCodeAt(t+2)]>>2,s[u++]=o>>8&255,s[u++]=255&o),s}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(Qe,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function tt(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function nt(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var rt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function ot(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function it(e,t){return e(t={exports:{}},t.exports),t.exports}function st(e){return e&&e.default||e}var at=st(ne);var ut=class{constructor(e,t){(t=t||{}).readChunk||(t.readChunk=1024),t.newLineCharacter?t.newLineCharacter=t.newLineCharacter.charCodeAt(0):t.newLineCharacter=10,this.fd="number"==typeof e?e:at.openSync(e,"r"),this.options=t,this.newLineCharacter=t.newLineCharacter,this.reset()}_searchInBuffer(e,t){let n=-1;for(let r=0;r<=e.length;r++)if(e[r]===t){n=r;break}return n}reset(){this.eofReached=!1,this.linesCache=[],this.fdPosition=0}close(){at.closeSync(this.fd),this.fd=null}_extractLines(e){let t;const n=[];let r=0,o=0;for(;;){let i=e[r++];if(i===this.newLineCharacter)t=e.slice(o,r),n.push(t),o=r;else if(!i)break}let i=e.slice(o,r);return i.length&&n.push(i),n}_readChunk(e){let t,n=0;const r=[];do{const e=new De(this.options.readChunk);t=at.readSync(this.fd,e,0,this.options.readChunk,this.fdPosition),n+=t,this.fdPosition=this.fdPosition+t,r.push(e)}while(t&&-1===this._searchInBuffer(r[r.length-1],this.options.newLineCharacter));let o=De.concat(r);return t<this.options.readChunk&&(this.eofReached=!0,o=o.slice(0,n)),n&&(this.linesCache=this._extractLines(o),e&&(this.linesCache[0]=De.concat([e,this.linesCache[0]]))),n}next(){if(!this.fd)return!1;let e,t=!1;return this.eofReached&&0===this.linesCache.length||(this.linesCache.length||(e=this._readChunk()),this.linesCache.length&&(t=this.linesCache.shift(),10!==t[t.length-1]&&(e=this._readChunk(t),e&&(t=this.linesCache.shift()))),this.eofReached&&0===this.linesCache.length&&this.close(),t&&t[t.length-1]===this.newLineCharacter&&(t=t.slice(0,t.length-1))),t}};var ct=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r};class lt extends Error{}class ft extends Error{}class pt extends Error{}var ht={ConfigError:lt,DebugError:ft,UndefinedParserError:pt};function dt(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function mt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function gt(){throw new Error("setTimeout has not been defined")}function yt(){throw new Error("clearTimeout has not been defined")}var bt=gt,vt=yt;function Dt(e){if(bt===setTimeout)return setTimeout(e,0);if((bt===gt||!bt)&&setTimeout)return bt=setTimeout,setTimeout(e,0);try{return bt(e,0)}catch(t){try{return bt.call(null,e,0)}catch(t){return bt.call(this,e,0)}}}"function"==typeof se.setTimeout&&(bt=setTimeout),"function"==typeof se.clearTimeout&&(vt=clearTimeout);var Ct,Et=[],wt=!1,At=-1;function St(){wt&&Ct&&(wt=!1,Ct.length?Et=Ct.concat(Et):At=-1,Et.length&&xt())}function xt(){if(!wt){var e=Dt(St);wt=!0;for(var t=Et.length;t;){for(Ct=Et,Et=[];++At<t;)Ct&&Ct[At].run();At=-1,t=Et.length}Ct=null,wt=!1,function(e){if(vt===clearTimeout)return clearTimeout(e);if((vt===yt||!vt)&&clearTimeout)return vt=clearTimeout,clearTimeout(e);try{vt(e)}catch(t){try{return vt.call(null,e)}catch(t){return vt.call(this,e)}}}(e)}}function _t(e,t){this.fun=e,this.array=t}_t.prototype.run=function(){this.fun.apply(null,this.array)};function Ft(){}var Tt=Ft,kt=Ft,Nt=Ft,Ot=Ft,Lt=Ft,Mt=Ft,Pt=Ft;var It=se.performance||{},Bt=It.now||It.mozNow||It.msNow||It.oNow||It.webkitNow||function(){return(new Date).getTime()};var Rt=new Date;var jt={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];Et.push(new _t(e,t)),1!==Et.length||wt||Dt(xt)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:Tt,addListener:kt,once:Nt,off:Ot,removeListener:Lt,removeAllListeners:Mt,emit:Pt,binding:function(e){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(e){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(e){var t=.001*Bt.call(It),n=Math.floor(t),r=Math.floor(t%1*1e9);return e&&(n-=e[0],(r-=e[1])<0&&(n--,r+=1e9)),[n,r]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-Rt)/1e3}},Vt="object"==typeof jt&&jt.env&&jt.env.NODE_DEBUG&&/\bsemver\b/i.test(jt.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var $t={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH:16},Ut=it((function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n}=$t,r=(t=e.exports={}).re=[],o=t.src=[],i=t.t={};let s=0;const a=(e,t,n)=>{const a=s++;Vt(a,t),i[e]=a,o[a]=t,r[a]=new RegExp(t,n?"g":void 0)};a("NUMERICIDENTIFIER","0|[1-9]\\d*"),a("NUMERICIDENTIFIERLOOSE","[0-9]+"),a("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),a("MAINVERSION","(".concat(o[i.NUMERICIDENTIFIER],")\\.")+"(".concat(o[i.NUMERICIDENTIFIER],")\\.")+"(".concat(o[i.NUMERICIDENTIFIER],")")),a("MAINVERSIONLOOSE","(".concat(o[i.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(o[i.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(o[i.NUMERICIDENTIFIERLOOSE],")")),a("PRERELEASEIDENTIFIER","(?:".concat(o[i.NUMERICIDENTIFIER],"|").concat(o[i.NONNUMERICIDENTIFIER],")")),a("PRERELEASEIDENTIFIERLOOSE","(?:".concat(o[i.NUMERICIDENTIFIERLOOSE],"|").concat(o[i.NONNUMERICIDENTIFIER],")")),a("PRERELEASE","(?:-(".concat(o[i.PRERELEASEIDENTIFIER],"(?:\\.").concat(o[i.PRERELEASEIDENTIFIER],")*))")),a("PRERELEASELOOSE","(?:-?(".concat(o[i.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(o[i.PRERELEASEIDENTIFIERLOOSE],")*))")),a("BUILDIDENTIFIER","[0-9A-Za-z-]+"),a("BUILD","(?:\\+(".concat(o[i.BUILDIDENTIFIER],"(?:\\.").concat(o[i.BUILDIDENTIFIER],")*))")),a("FULLPLAIN","v?".concat(o[i.MAINVERSION]).concat(o[i.PRERELEASE],"?").concat(o[i.BUILD],"?")),a("FULL","^".concat(o[i.FULLPLAIN],"$")),a("LOOSEPLAIN","[v=\\s]*".concat(o[i.MAINVERSIONLOOSE]).concat(o[i.PRERELEASELOOSE],"?").concat(o[i.BUILD],"?")),a("LOOSE","^".concat(o[i.LOOSEPLAIN],"$")),a("GTLT","((?:<|>)?=?)"),a("XRANGEIDENTIFIERLOOSE","".concat(o[i.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),a("XRANGEIDENTIFIER","".concat(o[i.NUMERICIDENTIFIER],"|x|X|\\*")),a("XRANGEPLAIN","[v=\\s]*(".concat(o[i.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(o[i.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(o[i.XRANGEIDENTIFIER],")")+"(?:".concat(o[i.PRERELEASE],")?").concat(o[i.BUILD],"?")+")?)?"),a("XRANGEPLAINLOOSE","[v=\\s]*(".concat(o[i.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(o[i.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(o[i.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(o[i.PRERELEASELOOSE],")?").concat(o[i.BUILD],"?")+")?)?"),a("XRANGE","^".concat(o[i.GTLT],"\\s*").concat(o[i.XRANGEPLAIN],"$")),a("XRANGELOOSE","^".concat(o[i.GTLT],"\\s*").concat(o[i.XRANGEPLAINLOOSE],"$")),a("COERCE","".concat("(^|[^\\d])(\\d{1,").concat(n,"})")+"(?:\\.(\\d{1,".concat(n,"}))?")+"(?:\\.(\\d{1,".concat(n,"}))?")+"(?:$|[^\\d])"),a("COERCERTL",o[i.COERCE],!0),a("LONETILDE","(?:~>?)"),a("TILDETRIM","(\\s*)".concat(o[i.LONETILDE],"\\s+"),!0),t.tildeTrimReplace="$1~",a("TILDE","^".concat(o[i.LONETILDE]).concat(o[i.XRANGEPLAIN],"$")),a("TILDELOOSE","^".concat(o[i.LONETILDE]).concat(o[i.XRANGEPLAINLOOSE],"$")),a("LONECARET","(?:\\^)"),a("CARETTRIM","(\\s*)".concat(o[i.LONECARET],"\\s+"),!0),t.caretTrimReplace="$1^",a("CARET","^".concat(o[i.LONECARET]).concat(o[i.XRANGEPLAIN],"$")),a("CARETLOOSE","^".concat(o[i.LONECARET]).concat(o[i.XRANGEPLAINLOOSE],"$")),a("COMPARATORLOOSE","^".concat(o[i.GTLT],"\\s*(").concat(o[i.LOOSEPLAIN],")$|^$")),a("COMPARATOR","^".concat(o[i.GTLT],"\\s*(").concat(o[i.FULLPLAIN],")$|^$")),a("COMPARATORTRIM","(\\s*)".concat(o[i.GTLT],"\\s*(").concat(o[i.LOOSEPLAIN],"|").concat(o[i.XRANGEPLAIN],")"),!0),t.comparatorTrimReplace="$1$2$3",a("HYPHENRANGE","^\\s*(".concat(o[i.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(o[i.XRANGEPLAIN],")")+"\\s*$"),a("HYPHENRANGELOOSE","^\\s*(".concat(o[i.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(o[i.XRANGEPLAINLOOSE],")")+"\\s*$"),a("STAR","(<|>)?=?\\s*\\*")}));Ut.re,Ut.src,Ut.t,Ut.tildeTrimReplace,Ut.caretTrimReplace,Ut.comparatorTrimReplace;const Wt=/^[0-9]+$/,Kt=(e,t)=>{const n=Wt.test(e),r=Wt.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1};var qt={compareIdentifiers:Kt,rcompareIdentifiers:(e,t)=>Kt(t,e)};const{MAX_LENGTH:Ht,MAX_SAFE_INTEGER:zt}=$t,{re:Yt,t:Jt}=Ut,{compareIdentifiers:Gt}=qt;class Xt{constructor(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof Xt){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: ".concat(e));if(e.length>Ht)throw new TypeError("version is longer than ".concat(Ht," characters"));Vt("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?Yt[Jt.LOOSE]:Yt[Jt.FULL]);if(!n)throw new TypeError("Invalid Version: ".concat(e));if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>zt||this.major<0)throw new TypeError("Invalid major version");if(this.minor>zt||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>zt||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<zt)return t}return e})):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version="".concat(this.major,".").concat(this.minor,".").concat(this.patch),this.prerelease.length&&(this.version+="-".concat(this.prerelease.join("."))),this.version}toString(){return this.version}compare(e){if(Vt("SemVer.compare",this.version,this.options,e),!(e instanceof Xt)){if("string"==typeof e&&e===this.version)return 0;e=new Xt(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof Xt||(e=new Xt(e,this.options)),Gt(this.major,e.major)||Gt(this.minor,e.minor)||Gt(this.patch,e.patch)}comparePre(e){if(e instanceof Xt||(e=new Xt(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const n=this.prerelease[t],r=e.prerelease[t];if(Vt("prerelease compare",t,n,r),void 0===n&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===n)return-1;if(n!==r)return Gt(n,r)}while(++t)}compareBuild(e){e instanceof Xt||(e=new Xt(e,this.options));let t=0;do{const n=this.build[t],r=e.build[t];if(Vt("prerelease compare",t,n,r),void 0===n&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===n)return-1;if(n!==r)return Gt(n,r)}while(++t)}inc(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{let e=this.prerelease.length;for(;--e>=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: ".concat(e))}return this.format(),this.raw=this.version,this}}var Qt=Xt,Zt=(e,t,n)=>new Qt(e,n).compare(new Qt(t,n)),en=it((function(e){e.exports=function(e){var t=void 0;t="string"==typeof e?[e]:e.raw;for(var n="",r=0;r<t.length;r++)n+=t[r].replace(/\\\n[ \t]*/g,"").replace(/\\`/g,"`"),r<(arguments.length<=1?0:arguments.length-1)&&(n+=arguments.length<=r+1?void 0:arguments[r+1]);var o=n.split("\n"),i=null;return o.forEach((function(e){var t=e.match(/^(\s+)\S+/);if(t){var n=t[1].length;i=i?Math.min(i,n):n}})),null!==i&&(n=o.map((function(e){return" "===e[0]?e.slice(i):e})).join("\n")),(n=n.trim()).replace(/\\n/g,"\n")}}));function tn(){const e=mt(["\n      Require either '@prettier' or '@format' to be present in the file's first docblock comment\n      in order for it to be formatted.\n    "]);return tn=function(){return e},e}function nn(){const e=mt(["\n      Format code starting at a given character offset.\n      The range will extend backwards to the start of the first line containing the selected statement.\n      This option cannot be used with --cursor-offset.\n    "]);return nn=function(){return e},e}function rn(){const e=mt(["\n      Format code ending at a given character offset (exclusive).\n      The range will extend forwards to the end of the selected statement.\n      This option cannot be used with --cursor-offset.\n    "]);return rn=function(){return e},e}function on(){const e=mt(["\n      Custom directory that contains prettier plugins in node_modules subdirectory.\n      Overrides default behavior when plugins are searched relatively to the location of Prettier.\n      Multiple values are accepted.\n    "]);return on=function(){return e},e}function sn(){const e=mt(["\n          Maintain existing\n          (mixed values within one file are normalised by looking at what's used after the first line)\n        "]);return sn=function(){return e},e}function an(){const e=mt(["\n      Print (to stderr) where a cursor at the given position would move to after formatting.\n      This option cannot be used with --range-start and --range-end.\n    "]);return an=function(){return e},e}const un="Config",cn="Editor",ln="Other",fn="Global",pn="Special";var hn={CATEGORY_CONFIG:un,CATEGORY_EDITOR:cn,CATEGORY_FORMAT:"Format",CATEGORY_OTHER:ln,CATEGORY_OUTPUT:"Output",CATEGORY_GLOBAL:fn,CATEGORY_SPECIAL:pn,options:{cursorOffset:{since:"1.4.0",category:pn,type:"int",default:-1,range:{start:-1,end:1/0,step:1},description:en(an()),cliCategory:cn},endOfLine:{since:"1.15.0",category:fn,type:"choice",default:[{since:"1.15.0",value:"auto"},{since:"2.0.0",value:"lf"}],description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:en(sn())}]},filepath:{since:"1.4.0",category:pn,type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:ln,cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{since:"1.8.0",category:pn,type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:ln},parser:{since:"0.0.10",category:fn,type:"choice",default:[{since:"0.0.10",value:"babylon"},{since:"1.13.0",value:void 0}],description:"Which parser to use.",exception:e=>"string"==typeof e||"function"==typeof e,choices:[{value:"flow",description:"Flow"},{value:"babel",since:"1.16.0",description:"JavaScript"},{value:"babel-flow",since:"1.16.0",description:"Flow"},{value:"babel-ts",since:"2.0.0",description:"TypeScript"},{value:"typescript",since:"1.4.0",description:"TypeScript"},{value:"css",since:"1.7.1",description:"CSS"},{value:"less",since:"1.7.1",description:"Less"},{value:"scss",since:"1.7.1",description:"SCSS"},{value:"json",since:"1.5.0",description:"JSON"},{value:"json5",since:"1.13.0",description:"JSON5"},{value:"json-stringify",since:"1.13.0",description:"JSON.stringify"},{value:"graphql",since:"1.5.0",description:"GraphQL"},{value:"markdown",since:"1.8.0",description:"Markdown"},{value:"mdx",since:"1.15.0",description:"MDX"},{value:"vue",since:"1.10.0",description:"Vue"},{value:"yaml",since:"1.14.0",description:"YAML"},{value:"glimmer",since:null,description:"Handlebars"},{value:"html",since:"1.15.0",description:"HTML"},{value:"angular",since:"1.15.0",description:"Angular"},{value:"lwc",since:"1.17.0",description:"Lightning Web Components"}]},plugins:{since:"1.10.0",type:"path",array:!0,default:[{value:[]}],category:fn,description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>"string"==typeof e||"object"==typeof e,cliName:"plugin",cliCategory:un},pluginSearchDirs:{since:"1.13.0",type:"path",array:!0,default:[{value:[]}],category:fn,description:en(on()),exception:e=>"string"==typeof e||"object"==typeof e,cliName:"plugin-search-dir",cliCategory:un},printWidth:{since:"0.0.0",category:fn,type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{since:"1.4.0",category:pn,type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:en(rn()),cliCategory:cn},rangeStart:{since:"1.4.0",category:pn,type:"int",default:0,range:{start:0,end:1/0,step:1},description:en(nn()),cliCategory:cn},requirePragma:{since:"1.7.0",category:pn,type:"boolean",default:!1,description:en(tn()),cliCategory:ln},tabWidth:{type:"int",category:fn,default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{since:"1.0.0",category:fn,type:"boolean",default:!1,description:"Indent with tabs instead of spaces."}}},dn=st(d);const mn=Zt,gn=(e,t,n)=>Zt(e,t,n)<0,yn=(e,t,n)=>Zt(e,t,n)>=0,bn=dn.version,vn=hn.options;var Dn={getSupportInfo:function({plugins:e=[],showUnreleased:t=!1,showDeprecated:n=!1,showInternal:r=!1}={}){const o=bn.split("-",1)[0],i=((e,t)=>Object.entries(e).map((([e,n])=>Object.assign({[t]:e},n))))(Object.assign({},...e.map((({options:e})=>e)),vn),"name").filter((e=>s(e)&&a(e))).sort(((e,t)=>e.name===t.name?0:e.name<t.name?-1:1)).map((function(e){return r?e:dt(e,["cliName","cliCategory","cliDescription"])})).map((t=>{t=Object.assign({},t),Array.isArray(t.default)&&(t.default=1===t.default.length?t.default[0].value:t.default.filter(s).sort(((e,t)=>mn(t.since,e.since)))[0].value),Array.isArray(t.choices)&&(t.choices=t.choices.filter((e=>s(e)&&a(e))));const n=e.filter((e=>e.defaultOptions&&void 0!==e.defaultOptions[t.name])).reduce(((e,n)=>(e[n.name]=n.defaultOptions[t.name],e)),{});return Object.assign({},t,{pluginDefaults:n})}));return{languages:e.reduce(((e,t)=>e.concat(t.languages||[])),[]).filter(s),options:i};function s(e){return t||!("since"in e)||e.since&&yn(o,e.since)}function a(e){return n||!("deprecated"in e)||e.deprecated&&gn(o,e.deprecated)}}},Cn=function(e,t){return(Cn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};var En=function(){return(En=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function wn(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function An(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function Sn(e){return this instanceof Sn?(this.v=e,this):new Sn(e)}var xn=Object.freeze({__proto__:null,__extends:function(e,t){function n(){this.constructor=e}Cn(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},get __assign(){return En},__rest:function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},__decorate:function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},__param:function(e,t){return function(n,r){t(n,r,e)}},__metadata:function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},__awaiter:function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{u(r.next(e))}catch(e){i(e)}}function a(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){e.done?o(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))},__generator:function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}},__exportStar:function(e,t){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])},__values:wn,__read:An,__spread:function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(An(arguments[t]));return e},__spreadArrays:function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,o++)r[o]=i[s];return r},__await:Sn,__asyncGenerator:function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{(n=o[e](t)).value instanceof Sn?Promise.resolve(n.value.v).then(u,c):l(i[0][2],n)}catch(e){l(i[0][3],e)}var n}function u(e){a("next",e)}function c(e){a("throw",e)}function l(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}},__asyncDelegator:function(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:Sn(e[r](t)),done:"return"===r}:o?o(t):t}:o}},__asyncValues:function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=wn(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}},__makeTemplateObject:function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},__importStar:function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},__importDefault:function(e){return e&&e.__esModule?e:{default:e}}}),_n=it((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.apiDescriptor={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(e){if(null===e||"object"!=typeof e)return JSON.stringify(e);if(Array.isArray(e))return"[".concat(e.map((e=>t.apiDescriptor.value(e))).join(", "),"]");const n=Object.keys(e);return 0===n.length?"{}":"{ ".concat(n.map((n=>"".concat(t.apiDescriptor.key(n),": ").concat(t.apiDescriptor.value(e[n])))).join(", ")," }")},pair:({key:e,value:n})=>t.apiDescriptor.value({[e]:n})}}));ot(_n),_n.apiDescriptor;var Fn=st(xn),Tn=it((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Fn.__exportStar(_n,t)}));ot(Tn);var kn=/[|\\{}()[\]^$+*?.]/g,Nn=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(kn,"\\$&")},On={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Ln=it((function(e){var t={};for(var n in On)On.hasOwnProperty(n)&&(t[On[n]]=n);var r=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var o in r)if(r.hasOwnProperty(o)){if(!("channels"in r[o]))throw new Error("missing channels property: "+o);if(!("labels"in r[o]))throw new Error("missing channel labels property: "+o);if(r[o].labels.length!==r[o].channels)throw new Error("channel and label counts mismatch: "+o);var i=r[o].channels,s=r[o].labels;delete r[o].channels,delete r[o].labels,Object.defineProperty(r[o],"channels",{value:i}),Object.defineProperty(r[o],"labels",{value:s})}r.rgb.hsl=function(e){var t,n,r=e[0]/255,o=e[1]/255,i=e[2]/255,s=Math.min(r,o,i),a=Math.max(r,o,i),u=a-s;return a===s?t=0:r===a?t=(o-i)/u:o===a?t=2+(i-r)/u:i===a&&(t=4+(r-o)/u),(t=Math.min(60*t,360))<0&&(t+=360),n=(s+a)/2,[t,100*(a===s?0:n<=.5?u/(a+s):u/(2-a-s)),100*n]},r.rgb.hsv=function(e){var t,n,r,o,i,s=e[0]/255,a=e[1]/255,u=e[2]/255,c=Math.max(s,a,u),l=c-Math.min(s,a,u),f=function(e){return(c-e)/6/l+.5};return 0===l?o=i=0:(i=l/c,t=f(s),n=f(a),r=f(u),s===c?o=r-n:a===c?o=1/3+t-r:u===c&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[360*o,100*i,100*c]},r.rgb.hwb=function(e){var t=e[0],n=e[1],o=e[2];return[r.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(n,o))*100,100*(o=1-1/255*Math.max(t,Math.max(n,o)))]},r.rgb.cmyk=function(e){var t,n=e[0]/255,r=e[1]/255,o=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-o)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-o-t)/(1-t)||0),100*t]},r.rgb.keyword=function(e){var n=t[e];if(n)return n;var r,o,i,s=1/0;for(var a in On)if(On.hasOwnProperty(a)){var u=(o=e,i=On[a],Math.pow(o[0]-i[0],2)+Math.pow(o[1]-i[1],2)+Math.pow(o[2]-i[2],2));u<s&&(s=u,r=a)}return r},r.keyword.rgb=function(e){return On[e]},r.rgb.xyz=function(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},r.rgb.lab=function(e){var t=r.rgb.xyz(e),n=t[0],o=t[1],i=t[2];return o/=100,i/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116)-16,500*(n-o),200*(o-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},r.hsl.rgb=function(e){var t,n,r,o,i,s=e[0]/360,a=e[1]/100,u=e[2]/100;if(0===a)return[i=255*u,i,i];t=2*u-(n=u<.5?u*(1+a):u+a-u*a),o=[0,0,0];for(var c=0;c<3;c++)(r=s+1/3*-(c-1))<0&&r++,r>1&&r--,i=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,o[c]=255*i;return o},r.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,o=n,i=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,o*=i<=1?i:2-i,[t,100*(0===r?2*o/(i+o):2*n/(r+n)),(r+n)/2*100]},r.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,o=Math.floor(t)%6,i=t-Math.floor(t),s=255*r*(1-n),a=255*r*(1-n*i),u=255*r*(1-n*(1-i));switch(r*=255,o){case 0:return[r,u,s];case 1:return[a,r,s];case 2:return[s,r,u];case 3:return[s,a,r];case 4:return[u,s,r];case 5:return[r,s,a]}},r.hsv.hsl=function(e){var t,n,r,o=e[0],i=e[1]/100,s=e[2]/100,a=Math.max(s,.01);return r=(2-i)*s,n=i*a,[o,100*(n=(n/=(t=(2-i)*a)<=1?t:2-t)||0),100*(r/=2)]},r.hwb.rgb=function(e){var t,n,r,o,i,s,a,u=e[0]/360,c=e[1]/100,l=e[2]/100,f=c+l;switch(f>1&&(c/=f,l/=f),r=6*u-(t=Math.floor(6*u)),0!=(1&t)&&(r=1-r),o=c+r*((n=1-l)-c),t){default:case 6:case 0:i=n,s=o,a=c;break;case 1:i=o,s=n,a=c;break;case 2:i=c,s=n,a=o;break;case 3:i=c,s=o,a=n;break;case 4:i=o,s=c,a=n;break;case 5:i=n,s=c,a=o}return[255*i,255*s,255*a]},r.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o))]},r.xyz.rgb=function(e){var t,n,r,o=e[0]/100,i=e[1]/100,s=e[2]/100;return n=-.9689*o+1.8758*i+.0415*s,r=.0557*o+-.204*i+1.057*s,t=(t=3.2406*o+-1.5372*i+-.4986*s)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},r.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},r.lab.xyz=function(e){var t,n,r,o=e[0];t=e[1]/500+(n=(o+16)/116),r=n-e[2]/200;var i=Math.pow(n,3),s=Math.pow(t,3),a=Math.pow(r,3);return n=i>.008856?i:(n-16/116)/7.787,t=s>.008856?s:(t-16/116)/7.787,r=a>.008856?a:(r-16/116)/7.787,[t*=95.047,n*=100,r*=108.883]},r.lab.lch=function(e){var t,n=e[0],r=e[1],o=e[2];return(t=360*Math.atan2(o,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+o*o),t]},r.lch.lab=function(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]},r.rgb.ansi16=function(e){var t=e[0],n=e[1],o=e[2],i=1 in arguments?arguments[1]:r.rgb.hsv(e)[2];if(0===(i=Math.round(i/50)))return 30;var s=30+(Math.round(o/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===i&&(s+=60),s},r.hsv.ansi16=function(e){return r.rgb.ansi16(r.hsv.rgb(e),e[2])},r.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},r.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},r.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},r.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},r.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map((function(e){return e+e})).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},r.rgb.hcg=function(e){var t,n=e[0]/255,r=e[1]/255,o=e[2]/255,i=Math.max(Math.max(n,r),o),s=Math.min(Math.min(n,r),o),a=i-s;return t=a<=0?0:i===n?(r-o)/a%6:i===r?2+(o-n)/a:4+(n-r)/a+4,t/=6,[360*(t%=1),100*a,100*(a<1?s/(1-a):0)]},r.hsl.hcg=function(e){var t,n=e[1]/100,r=e[2]/100,o=0;return(t=r<.5?2*n*r:2*n*(1-r))<1&&(o=(r-.5*t)/(1-t)),[e[0],100*t,100*o]},r.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},r.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var o,i=[0,0,0],s=t%1*6,a=s%1,u=1-a;switch(Math.floor(s)){case 0:i[0]=1,i[1]=a,i[2]=0;break;case 1:i[0]=u,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=a;break;case 3:i[0]=0,i[1]=u,i[2]=1;break;case 4:i[0]=a,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=u}return o=(1-n)*r,[255*(n*i[0]+o),255*(n*i[1]+o),255*(n*i[2]+o)]},r.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},r.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},r.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},r.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,r=n-t,o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},r.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},r.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},r.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},r.gray.hsl=r.gray.hsv=function(e){return[0,0,e[0]]},r.gray.hwb=function(e){return[0,100,e[0]]},r.gray.cmyk=function(e){return[0,0,0,e[0]]},r.gray.lab=function(e){return[e[0],0,0]},r.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},r.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}}));function Mn(e){var t=function(){for(var e={},t=Object.keys(Ln),n=t.length,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}(),n=[e];for(t[e].distance=0;n.length;)for(var r=n.pop(),o=Object.keys(Ln[r]),i=o.length,s=0;s<i;s++){var a=o[s],u=t[a];-1===u.distance&&(u.distance=t[r].distance+1,u.parent=r,n.unshift(a))}return t}function Pn(e,t){return function(n){return t(e(n))}}function In(e,t){for(var n=[t[e].parent,e],r=Ln[t[e].parent][e],o=t[e].parent;t[o].parent;)n.unshift(t[o].parent),r=Pn(Ln[t[o].parent][o],r),o=t[o].parent;return r.conversion=n,r}Ln.rgb,Ln.hsl,Ln.hsv,Ln.hwb,Ln.cmyk,Ln.xyz,Ln.lab,Ln.lch,Ln.hex,Ln.keyword,Ln.ansi16,Ln.ansi256,Ln.hcg,Ln.apple,Ln.gray;var Bn={};Object.keys(Ln).forEach((function(e){Bn[e]={},Object.defineProperty(Bn[e],"channels",{value:Ln[e].channels}),Object.defineProperty(Bn[e],"labels",{value:Ln[e].labels});var t=function(e){for(var t=Mn(e),n={},r=Object.keys(t),o=r.length,i=0;i<o;i++){var s=r[i];null!==t[s].parent&&(n[s]=In(s,t))}return n}(e);Object.keys(t).forEach((function(n){var r=t[n];Bn[e][n]=function(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"==typeof n)for(var r=n.length,o=0;o<r;o++)n[o]=Math.round(n[o]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}(r),Bn[e][n].raw=function(e){var t=function(t){return null==t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))}));var Rn=Bn,jn=it((function(e){const t=(e,t)=>function(){const n=e.apply(Rn,arguments);return"[".concat(n+t,"m")},n=(e,t)=>function(){const n=e.apply(Rn,arguments);return"[".concat(38+t,";5;").concat(n,"m")},r=(e,t)=>function(){const n=e.apply(Rn,arguments);return"[".concat(38+t,";2;").concat(n[0],";").concat(n[1],";").concat(n[2],"m")};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,o={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};o.color.grey=o.color.gray;for(const t of Object.keys(o)){const n=o[t];for(const t of Object.keys(n)){const r=n[t];o[t]={open:"[".concat(r[0],"m"),close:"[".concat(r[1],"m")},n[t]=o[t],e.set(r[0],r[1])}Object.defineProperty(o,t,{value:n,enumerable:!1}),Object.defineProperty(o,"codes",{value:e,enumerable:!1})}const i=e=>e,s=(e,t,n)=>[e,t,n];o.color.close="",o.bgColor.close="",o.color.ansi={ansi:t(i,0)},o.color.ansi256={ansi256:n(i,0)},o.color.ansi16m={rgb:r(s,0)},o.bgColor.ansi={ansi:t(i,10)},o.bgColor.ansi256={ansi256:n(i,10)},o.bgColor.ansi16m={rgb:r(s,10)};for(let e of Object.keys(Rn)){if("object"!=typeof Rn[e])continue;const i=Rn[e];"ansi16"===e&&(e="ansi"),"ansi16"in i&&(o.color.ansi[e]=t(i.ansi16,0),o.bgColor.ansi[e]=t(i.ansi16,10)),"ansi256"in i&&(o.color.ansi256[e]=n(i.ansi256,0),o.bgColor.ansi256[e]=n(i.ansi256,10)),"rgb"in i&&(o.color.ansi16m[e]=r(i.rgb,0),o.bgColor.ansi16m[e]=r(i.rgb,10))}return o}})})),Vn={EOL:"\n"},$n=(e,t)=>{t=t||jt.argv;const n=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(n+e),o=t.indexOf("--");return-1!==r&&(-1===o||r<o)};const Un=jt.env;let Wn;function Kn(e){return 0!==(t=function(e){if(!1===Wn)return 0;if($n("color=16m")||$n("color=full")||$n("color=truecolor"))return 3;if($n("color=256"))return 2;if(e&&!e.isTTY&&!0!==Wn)return 0;const t=Wn?1:0;if("win32"===jt.platform){const e=Vn.release().split(".");return Number(jt.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in Un)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((e=>e in Un))||"codeship"===Un.CI_NAME?1:t;if("TEAMCITY_VERSION"in Un)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Un.TEAMCITY_VERSION)?1:0;if("truecolor"===Un.COLORTERM)return 3;if("TERM_PROGRAM"in Un){const e=parseInt((Un.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Un.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Un.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Un.TERM)||"COLORTERM"in Un?1:(Un.TERM,t)}(e))&&{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3};var t}$n("no-color")||$n("no-colors")||$n("color=false")?Wn=!1:($n("color")||$n("colors")||$n("color=true")||$n("color=always"))&&(Wn=!0),"FORCE_COLOR"in Un&&(Wn=0===Un.FORCE_COLOR.length||0!==parseInt(Un.FORCE_COLOR,10));var qn={supportsColor:Kn,stdout:Kn(jt.stdout),stderr:Kn(jt.stderr)};const Hn=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,zn=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Yn=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Jn=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,Gn=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function Xn(e){return"u"===e[0]&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):Gn.get(e)||e}function Qn(e,t){const n=[],r=t.trim().split(/\s*,\s*/g);let o;for(const t of r)if(isNaN(t)){if(!(o=t.match(Yn)))throw new Error("Invalid Chalk template style argument: ".concat(t," (in style '").concat(e,"')"));n.push(o[2].replace(Jn,((e,t,n)=>t?Xn(t):n)))}else n.push(Number(t));return n}function Zn(e){zn.lastIndex=0;const t=[];let n;for(;null!==(n=zn.exec(e));){const e=n[1];if(n[2]){const r=Qn(e,n[2]);t.push([e].concat(r))}else t.push([e])}return t}function er(e,t){const n={};for(const e of t)for(const t of e.styles)n[t[0]]=e.inverse?null:t.slice(1);let r=e;for(const e of Object.keys(n))if(Array.isArray(n[e])){if(!(e in r))throw new Error("Unknown Chalk style: ".concat(e));r=n[e].length>0?r[e].apply(r,n[e]):r[e]}return r}var tr=(e,t)=>{const n=[],r=[];let o=[];if(t.replace(Hn,((t,i,s,a,u,c)=>{if(i)o.push(Xn(i));else if(a){const t=o.join("");o=[],r.push(0===n.length?t:er(e,n)(t)),n.push({inverse:s,styles:Zn(a)})}else if(u){if(0===n.length)throw new Error("Found extraneous } in Chalk template literal");r.push(er(e,n)(o.join(""))),o=[],n.pop()}else o.push(c)})),r.push(o.join("")),n.length>0){const e="Chalk template literal is missing ".concat(n.length," closing bracket").concat(1===n.length?"":"s"," (`}`)");throw new Error(e)}return r.join("")},nr=it((function(e){const t=qn.stdout,n="win32"===jt.platform&&!(jt.env.TERM||"").toLowerCase().startsWith("xterm"),r=["ansi","ansi","ansi256","ansi16m"],o=new Set(["gray"]),i=Object.create(null);function s(e,n){n=n||{};const r=t?t.level:0;e.level=void 0===n.level?r:n.level,e.enabled="enabled"in n?n.enabled:e.level>0}function a(e){if(!this||!(this instanceof a)||this.template){const t={};return s(t,e),t.template=function(){const e=[].slice.call(arguments);return f.apply(null,[t.template].concat(e))},Object.setPrototypeOf(t,a.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=a,t.template}s(this,e)}n&&(jn.blue.open="");for(const e of Object.keys(jn))jn[e].closeRe=new RegExp(Nn(jn[e].close),"g"),i[e]={get(){const t=jn[e];return c.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}};i.visible={get(){return c.call(this,this._styles||[],!0,"visible")}},jn.color.closeRe=new RegExp(Nn(jn.color.close),"g");for(const e of Object.keys(jn.color.ansi))o.has(e)||(i[e]={get(){const t=this.level;return function(){const n={open:jn.color[r[t]][e].apply(null,arguments),close:jn.color.close,closeRe:jn.color.closeRe};return c.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}});jn.bgColor.closeRe=new RegExp(Nn(jn.bgColor.close),"g");for(const e of Object.keys(jn.bgColor.ansi))o.has(e)||(i["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const t=this.level;return function(){const n={open:jn.bgColor[r[t]][e].apply(null,arguments),close:jn.bgColor.close,closeRe:jn.bgColor.closeRe};return c.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}});const u=Object.defineProperties((()=>{}),i);function c(e,t,n){const r=function e(){return l.apply(e,arguments)};r._styles=e,r._empty=t;const o=this;return Object.defineProperty(r,"level",{enumerable:!0,get:()=>o.level,set(e){o.level=e}}),Object.defineProperty(r,"enabled",{enumerable:!0,get:()=>o.enabled,set(e){o.enabled=e}}),r.hasGrey=this.hasGrey||"gray"===n||"grey"===n,r.__proto__=u,r}function l(){const e=arguments,t=e.length;let r=String(arguments[0]);if(0===t)return"";if(t>1)for(let n=1;n<t;n++)r+=" "+e[n];if(!this.enabled||this.level<=0||!r)return this._empty?"":r;const o=jn.dim.open;n&&this.hasGrey&&(jn.dim.open="");for(const e of this._styles.slice().reverse())r=e.open+r.replace(e.closeRe,e.open)+e.close,r=r.replace(/\r?\n/g,"".concat(e.close,"$&").concat(e.open));return jn.dim.open=o,r}function f(e,t){if(!Array.isArray(t))return[].slice.call(arguments,1).join(" ");const n=[].slice.call(arguments,2),r=[t.raw[0]];for(let e=1;e<t.length;e++)r.push(String(n[e-1]).replace(/[{}\\]/g,"\\$&")),r.push(String(t.raw[e]));return tr(e,r.join(""))}Object.defineProperties(a.prototype,i),e.exports=a(),e.exports.supportsColor=t,e.exports.default=e.exports})),rr=(nr.supportsColor,it((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.commonDeprecatedHandler=(e,t,{descriptor:n})=>{const r=["".concat(nr.default.yellow("string"==typeof e?n.key(e):n.pair(e))," is deprecated")];return t&&r.push("we now treat it as ".concat(nr.default.blue("string"==typeof t?n.key(t):n.pair(t)))),r.join("; ")+"."}})));ot(rr),rr.commonDeprecatedHandler;var or=it((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Fn.__exportStar(rr,t)}));ot(or);var ir=it((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.commonInvalidHandler=(e,t,n)=>["Invalid ".concat(nr.default.red(n.descriptor.key(e))," value."),"Expected ".concat(nr.default.blue(n.schemas[e].expected(n)),","),"but received ".concat(nr.default.red(n.descriptor.value(t)),".")].join(" ")}));ot(ir),ir.commonInvalidHandler;var sr=it((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Fn.__exportStar(ir,t)}));ot(sr);var ar=[],ur=[],cr=it((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.levenUnknownHandler=(e,t,{descriptor:n,logger:r,schemas:o})=>{const i=["Ignored unknown option ".concat(nr.default.yellow(n.pair({key:e,value:t})),".")],s=Object.keys(o).sort().find((t=>function(e,t){if(e===t)return 0;var n=e;e.length>t.length&&(e=t,t=n);var r=e.length,o=t.length;if(0===r)return o;if(0===o)return r;for(;r>0&&e.charCodeAt(~-r)===t.charCodeAt(~-o);)r--,o--;if(0===r)return o;for(var i,s,a,u,c=0;c<r&&e.charCodeAt(c)===t.charCodeAt(c);)c++;if(o-=c,0==(r-=c))return o;for(var l=0,f=0;l<r;)ur[c+l]=e.charCodeAt(c+l),ar[l]=++l;for(;f<o;)for(i=t.charCodeAt(c+f),a=f++,s=f,l=0;l<r;l++)u=i===ur[c+l]?a:a+1,a=ar[l],s=ar[l]=a>s?u>s?s+1:u:u>a?a+1:u;return s}(e,t)<3));s&&i.push("Did you mean ".concat(nr.default.blue(n.key(s)),"?")),r.warn(i.join(" "))}}));ot(cr),cr.levenUnknownHandler;var lr=it((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Fn.__exportStar(cr,t)}));ot(lr);var fr=it((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Fn.__exportStar(or,t),Fn.__exportStar(sr,t),Fn.__exportStar(lr,t)}));ot(fr);var pr=it((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function r(e,t){const r=new e(t),s=Object.create(r);for(const e of n)e in t&&(s[e]=i(t[e],r,o.prototype[e].length));return s}t.createSchema=r;class o{constructor(e){this.name=e.name}static create(e){return r(this,e)}default(e){}expected(e){return"nothing"}validate(e,t){return!1}deprecated(e,t){return!1}forward(e,t){}redirect(e,t){}overlap(e,t,n){return e}preprocess(e,t){return e}postprocess(e,t){return e}}function i(e,t,n){return"function"==typeof e?(...r)=>e(...r.slice(0,n-1),t,...r.slice(n-1)):()=>e}t.Schema=o}));ot(pr),pr.createSchema,pr.Schema;var hr=it((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class n extends pr.Schema{constructor(e){super(e),this._sourceName=e.sourceName}expected(e){return e.schemas[this._sourceName].expected(e)}validate(e,t){return t.schemas[this._sourceName].validate(e,t)}redirect(e,t){return this._sourceName}}t.AliasSchema=n}));ot(hr),hr.AliasSchema;var dr=it((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class n extends pr.Schema{expected(){return"anything"}validate(){return!0}}t.AnySchema=n}));ot(dr),dr.AnySchema;var mr=it((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class n extends pr.Schema{constructor(e){var{valueSchema:t,name:n=t.name}=e,r=Fn.__rest(e,["valueSchema","name"]);super(Object.assign({},r,{name:n})),this._valueSchema=t}expected(e){return"an array of ".concat(this._valueSchema.expected(e))}validate(e,t){if(!Array.isArray(e))return!1;const n=[];for(const r of e){const e=t.normalizeValidateResult(this._valueSchema.validate(r,t),r);!0!==e&&n.push(e.value)}return 0===n.length||{value:n}}deprecated(e,t){const n=[];for(const r of e){const e=t.normalizeDeprecatedResult(this._valueSchema.deprecated(r,t),r);!1!==e&&n.push(...e.map((({value:e})=>({value:[e]}))))}return n}forward(e,t){const n=[];for(const o of e){const e=t.normalizeForwardResult(this._valueSchema.forward(o,t),o);n.push(...e.map(r))}return n}redirect(e,t){const n=[],o=[];for(const i of e){const e=t.normalizeRedirectResult(this._valueSchema.redirect(i,t),i);"remain"in e&&n.push(e.remain),o.push(...e.redirect.map(r))}return 0===n.length?{redirect:o}:{redirect:o,remain:n}}overlap(e,t){return e.concat(t)}}function r({from:e,to:t}){return{from:[e],to:t}}t.ArraySchema=n}));ot(mr),mr.ArraySchema;var gr=it((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class n extends pr.Schema{expected(){return"true or false"}validate(e){return"boolean"==typeof e}}t.BooleanSchema=n}));ot(gr),gr.BooleanSchema;var yr=it((function(e,t){function n(e,t){return"string"==typeof e||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function r(e,t){return void 0===e?[]:Array.isArray(e)?e.map((e=>n(e,t))):[n(e,t)]}Object.defineProperty(t,"__esModule",{value:!0}),t.recordFromArray=function(e,t){const n=Object.create(null);for(const r of e){const e=r[t];if(n[e])throw new Error("Duplicate ".concat(t," ").concat(JSON.stringify(e)));n[e]=r}return n},t.mapFromArray=function(e,t){const n=new Map;for(const r of e){const e=r[t];if(n.has(e))throw new Error("Duplicate ".concat(t," ").concat(JSON.stringify(e)));n.set(e,r)}return n},t.createAutoChecklist=function(){const e=Object.create(null);return t=>{const n=JSON.stringify(t);return!!e[n]||(e[n]=!0,!1)}},t.partition=function(e,t){const n=[],r=[];for(const o of e)t(o)?n.push(o):r.push(o);return[n,r]},t.isInt=function(e){return e===Math.floor(e)},t.comparePrimitive=function(e,t){if(e===t)return 0;const n=typeof e,r=typeof t,o=["undefined","object","boolean","number","string"];return n!==r?o.indexOf(n)-o.indexOf(r):"string"!==n?Number(e)-Number(t):e.localeCompare(t)},t.normalizeDefaultResult=function(e){return void 0===e?{}:e},t.normalizeValidateResult=function(e,t){return!0===e||(!1===e?{value:t}:e)},t.normalizeDeprecatedResult=function(e,t,n=!1){return!1!==e&&(!0===e?!!n||[{value:t}]:"value"in e?[e]:0!==e.length&&e)},t.normalizeTransferResult=n,t.normalizeForwardResult=r,t.normalizeRedirectResult=function(e,t){const n=r("object"==typeof e&&"redirect"in e?e.redirect:e,t);return 0===n.length?{remain:t,redirect:n}:"object"==typeof e&&"remain"in e?{remain:e.remain,redirect:n}:{redirect:n}}}));ot(yr),yr.recordFromArray,yr.mapFromArray,yr.createAutoChecklist,yr.partition,yr.isInt,yr.comparePrimitive,yr.normalizeDefaultResult,yr.normalizeValidateResult,yr.normalizeDeprecatedResult,yr.normalizeTransferResult,yr.normalizeForwardResult,yr.normalizeRedirectResult;var br=it((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class n extends pr.Schema{constructor(e){super(e),this._choices=yr.mapFromArray(e.choices.map((e=>e&&"object"==typeof e?e:{value:e})),"value")}expected({descriptor:e}){const t=Array.from(this._choices.keys()).map((e=>this._choices.get(e))).filter((e=>!e.deprecated)).map((e=>e.value)).sort(yr.comparePrimitive).map(e.value),n=t.slice(0,-2),r=t.slice(-2);return n.concat(r.join(" or ")).join(", ")}validate(e){return this._choices.has(e)}deprecated(e){const t=this._choices.get(e);return!(!t||!t.deprecated)&&{value:e}}forward(e){const t=this._choices.get(e);return t?t.forward:void 0}redirect(e){const t=this._choices.get(e);return t?t.redirect:void 0}}t.ChoiceSchema=n}));ot(br),br.ChoiceSchema;var vr=it((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class n extends pr.Schema{expected(){return"a number"}validate(e,t){return"number"==typeof e}}t.NumberSchema=n}));ot(vr),vr.NumberSchema;var Dr=it((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class n extends vr.NumberSchema{expected(){return"an integer"}validate(e,t){return!0===t.normalizeValidateResult(super.validate(e,t),e)&&yr.isInt(e)}}t.IntegerSchema=n}));ot(Dr),Dr.IntegerSchema;var Cr=it((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class n extends pr.Schema{expected(){return"a string"}validate(e){return"string"==typeof e}}t.StringSchema=n}));ot(Cr),Cr.StringSchema;var Er=it((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Fn.__exportStar(hr,t),Fn.__exportStar(dr,t),Fn.__exportStar(mr,t),Fn.__exportStar(gr,t),Fn.__exportStar(br,t),Fn.__exportStar(Dr,t),Fn.__exportStar(vr,t),Fn.__exportStar(Cr,t)}));ot(Er);var wr=it((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultDescriptor=_n.apiDescriptor,t.defaultUnknownHandler=cr.levenUnknownHandler,t.defaultInvalidHandler=sr.commonInvalidHandler,t.defaultDeprecatedHandler=rr.commonDeprecatedHandler}));ot(wr),wr.defaultDescriptor,wr.defaultUnknownHandler,wr.defaultInvalidHandler,wr.defaultDeprecatedHandler;var Ar=it((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.normalize=(e,t,r)=>new n(t,r).normalize(e);class n{constructor(e,t){const{logger:n=console,descriptor:r=wr.defaultDescriptor,unknown:o=wr.defaultUnknownHandler,invalid:i=wr.defaultInvalidHandler,deprecated:s=wr.defaultDeprecatedHandler}=t||{};this._utils={descriptor:r,logger:n||{warn:()=>{}},schemas:yr.recordFromArray(e,"name"),normalizeDefaultResult:yr.normalizeDefaultResult,normalizeDeprecatedResult:yr.normalizeDeprecatedResult,normalizeForwardResult:yr.normalizeForwardResult,normalizeRedirectResult:yr.normalizeRedirectResult,normalizeValidateResult:yr.normalizeValidateResult},this._unknownHandler=o,this._invalidHandler=i,this._deprecatedHandler=s,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=yr.createAutoChecklist()}normalize(e){const t={},n=[e],r=()=>{for(;0!==n.length;){const e=n.shift(),r=this._applyNormalization(e,t);n.push(...r)}};r();for(const e of Object.keys(this._utils.schemas)){const r=this._utils.schemas[e];if(!(e in t)){const t=yr.normalizeDefaultResult(r.default(this._utils));"value"in t&&n.push({[e]:t.value})}}r();for(const e of Object.keys(this._utils.schemas)){const n=this._utils.schemas[e];e in t&&(t[e]=n.postprocess(t[e],this._utils))}return t}_applyNormalization(e,t){const n=[],[r,o]=yr.partition(Object.keys(e),(e=>e in this._utils.schemas));for(const o of r){const r=this._utils.schemas[o],i=r.preprocess(e[o],this._utils),s=yr.normalizeValidateResult(r.validate(i,this._utils),i);if(!0!==s){const{value:e}=s,t=this._invalidHandler(o,e,this._utils);throw"string"==typeof t?new Error(t):t}const a=({from:e,to:t})=>{n.push("string"==typeof t?{[t]:e}:{[t.key]:t.value})},u=({value:e,redirectTo:t})=>{const n=yr.normalizeDeprecatedResult(r.deprecated(e,this._utils),i,!0);if(!1!==n)if(!0===n)this._hasDeprecationWarned(o)||this._utils.logger.warn(this._deprecatedHandler(o,t,this._utils));else for(const{value:e}of n){const n={key:o,value:e};if(!this._hasDeprecationWarned(n)){const r="string"==typeof t?{key:t,value:e}:t;this._utils.logger.warn(this._deprecatedHandler(n,r,this._utils))}}};yr.normalizeForwardResult(r.forward(i,this._utils),i).forEach(a);const c=yr.normalizeRedirectResult(r.redirect(i,this._utils),i);if(c.redirect.forEach(a),"remain"in c){const e=c.remain;t[o]=o in t?r.overlap(t[o],e,this._utils):e,u({value:e})}for(const{from:e,to:t}of c.redirect)u({value:e,redirectTo:t})}for(const r of o){const o=e[r],i=this._unknownHandler(r,o,this._utils);if(i)for(const e of Object.keys(i)){const r={[e]:i[e]};e in this._utils.schemas?n.push(r):Object.assign(t,r)}}return n}}t.Normalizer=n}));ot(Ar),Ar.normalize,Ar.Normalizer;var Sr=it((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Fn.__exportStar(Tn,t),Fn.__exportStar(fr,t),Fn.__exportStar(Er,t),Fn.__exportStar(Ar,t),Fn.__exportStar(pr,t)}));ot(Sr);const xr=[],_r=[],Fr=(e,t)=>{if(e===t)return 0;const n=e;e.length>t.length&&(e=t,t=n);let r=e.length,o=t.length;for(;r>0&&e.charCodeAt(~-r)===t.charCodeAt(~-o);)r--,o--;let i,s,a,u,c=0;for(;c<r&&e.charCodeAt(c)===t.charCodeAt(c);)c++;if(r-=c,o-=c,0===r)return o;let l=0,f=0;for(;l<r;)_r[l]=e.charCodeAt(c+l),xr[l]=++l;for(;f<o;)for(i=t.charCodeAt(c+f),a=f++,s=f,l=0;l<r;l++)u=i===_r[l]?a:a+1,a=xr[l],s=xr[l]=a>s?u>s?s+1:u:u>a?a+1:u;return s};var Tr=Fr,kr=Fr;Tr.default=kr;var Nr={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};const Or={};for(const e of Object.keys(Nr))Or[Nr[e]]=e;const Lr={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var Mr=Lr;for(const e of Object.keys(Lr)){if(!("channels"in Lr[e]))throw new Error("missing channels property: "+e);if(!("labels"in Lr[e]))throw new Error("missing channel labels property: "+e);if(Lr[e].labels.length!==Lr[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=Lr[e];delete Lr[e].channels,delete Lr[e].labels,Object.defineProperty(Lr[e],"channels",{value:t}),Object.defineProperty(Lr[e],"labels",{value:n})}function Pr(e){const t=function(){const e={},t=Object.keys(Mr);for(let n=t.length,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}(),n=[e];for(t[e].distance=0;n.length;){const e=n.pop(),r=Object.keys(Mr[e]);for(let o=r.length,i=0;i<o;i++){const o=r[i],s=t[o];-1===s.distance&&(s.distance=t[e].distance+1,s.parent=e,n.unshift(o))}}return t}function Ir(e,t){return function(n){return t(e(n))}}function Br(e,t){const n=[t[e].parent,e];let r=Mr[t[e].parent][e],o=t[e].parent;for(;t[o].parent;)n.unshift(t[o].parent),r=Ir(Mr[t[o].parent][o],r),o=t[o].parent;return r.conversion=n,r}Lr.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),i=Math.max(t,n,r),s=i-o;let a,u;i===o?a=0:t===i?a=(n-r)/s:n===i?a=2+(r-t)/s:r===i&&(a=4+(t-n)/s),a=Math.min(60*a,360),a<0&&(a+=360);const c=(o+i)/2;return u=i===o?0:c<=.5?s/(i+o):s/(2-i-o),[a,100*u,100*c]},Lr.rgb.hsv=function(e){let t,n,r,o,i;const s=e[0]/255,a=e[1]/255,u=e[2]/255,c=Math.max(s,a,u),l=c-Math.min(s,a,u),f=function(e){return(c-e)/6/l+.5};return 0===l?(o=0,i=0):(i=l/c,t=f(s),n=f(a),r=f(u),s===c?o=r-n:a===c?o=1/3+t-r:u===c&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[360*o,100*i,100*c]},Lr.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const o=Lr.rgb.hsl(e)[0],i=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[o,100*i,100*r]},Lr.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r);return[100*((1-t-o)/(1-o)||0),100*((1-n-o)/(1-o)||0),100*((1-r-o)/(1-o)||0),100*o]},Lr.rgb.keyword=function(e){const t=Or[e];if(t)return t;let n,r=1/0;for(const t of Object.keys(Nr)){const s=(i=Nr[t],((o=e)[0]-i[0])**2+(o[1]-i[1])**2+(o[2]-i[2])**2);s<r&&(r=s,n=t)}var o,i;return n},Lr.keyword.rgb=function(e){return Nr[e]},Lr.rgb.xyz=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255;return t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,[100*(.4124*t+.3576*n+.1805*r),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},Lr.rgb.lab=function(e){const t=Lr.rgb.xyz(e);let n=t[0],r=t[1],o=t[2];return n/=95.047,r/=100,o/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,o=o>.008856?o**(1/3):7.787*o+16/116,[116*r-16,500*(n-r),200*(r-o)]},Lr.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,i,s;if(0===n)return s=255*r,[s,s,s];o=r<.5?r*(1+n):r+n-r*n;const a=2*r-o,u=[0,0,0];for(let e=0;e<3;e++)i=t+1/3*-(e-1),i<0&&i++,i>1&&i--,s=6*i<1?a+6*(o-a)*i:2*i<1?o:3*i<2?a+(o-a)*(2/3-i)*6:a,u[e]=255*s;return u},Lr.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,o=n;const i=Math.max(r,.01);return r*=2,n*=r<=1?r:2-r,o*=i<=1?i:2-i,[t,100*(0===r?2*o/(i+o):2*n/(r+n)),(r+n)/2*100]},Lr.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,i=t-Math.floor(t),s=255*r*(1-n),a=255*r*(1-n*i),u=255*r*(1-n*(1-i));switch(r*=255,o){case 0:return[r,u,s];case 1:return[a,r,s];case 2:return[s,r,u];case 3:return[s,a,r];case 4:return[u,s,r];case 5:return[r,s,a]}},Lr.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let i,s;s=(2-n)*r;const a=(2-n)*o;return i=n*o,i/=a<=1?a:2-a,i=i||0,s/=2,[t,100*i,100*s]},Lr.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let i;o>1&&(n/=o,r/=o);const s=Math.floor(6*t),a=1-r;i=6*t-s,0!=(1&s)&&(i=1-i);const u=n+i*(a-n);let c,l,f;switch(s){default:case 6:case 0:c=a,l=u,f=n;break;case 1:c=u,l=a,f=n;break;case 2:c=n,l=a,f=u;break;case 3:c=n,l=u,f=a;break;case 4:c=u,l=n,f=a;break;case 5:c=a,l=n,f=u}return[255*c,255*l,255*f]},Lr.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o))]},Lr.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,i,s;return o=3.2406*t+-1.5372*n+-.4986*r,i=-.9689*t+1.8758*n+.0415*r,s=.0557*t+-.204*n+1.057*r,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,s=s>.0031308?1.055*s**(1/2.4)-.055:12.92*s,o=Math.min(Math.max(0,o),1),i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),[255*o,255*i,255*s]},Lr.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];return t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,[116*n-16,500*(t-n),200*(n-r)]},Lr.lab.xyz=function(e){let t,n,r;n=(e[0]+16)/116,t=e[1]/500+n,r=n-e[2]/200;const o=n**3,i=t**3,s=r**3;return n=o>.008856?o:(n-16/116)/7.787,t=i>.008856?i:(t-16/116)/7.787,r=s>.008856?s:(r-16/116)/7.787,t*=95.047,n*=100,r*=108.883,[t,n,r]},Lr.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;return o=360*Math.atan2(r,n)/2/Math.PI,o<0&&(o+=360),[t,Math.sqrt(n*n+r*r),o]},Lr.lch.lab=function(e){const t=e[0],n=e[1],r=e[2]/360*2*Math.PI;return[t,n*Math.cos(r),n*Math.sin(r)]},Lr.rgb.ansi16=function(e,t=null){const[n,r,o]=e;let i=null===t?Lr.rgb.hsv(e)[2]:t;if(i=Math.round(i/50),0===i)return 30;let s=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return 2===i&&(s+=60),s},Lr.hsv.ansi16=function(e){return Lr.rgb.ansi16(Lr.hsv.rgb(e),e[2])},Lr.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},Lr.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},Lr.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;return e-=16,[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},Lr.rgb.hex=function(e){const t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},Lr.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];3===t[0].length&&(n=n.split("").map((e=>e+e)).join(""));const r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},Lr.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),i=Math.min(Math.min(t,n),r),s=o-i;let a,u;return a=s<1?i/(1-s):0,u=s<=0?0:o===t?(n-r)/s%6:o===n?2+(r-t)/s:4+(t-n)/s,u/=6,u%=1,[360*u,100*s,100*a]},Lr.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],100*r,100*o]},Lr.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},Lr.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];const o=[0,0,0],i=t%1*6,s=i%1,a=1-s;let u=0;switch(Math.floor(i)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=a,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=a,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=a}return u=(1-n)*r,[255*(n*o[0]+u),255*(n*o[1]+u),255*(n*o[2]+u)]},Lr.hcg.hsv=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);let r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},Lr.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100*(1-t)+.5*t;let r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},Lr.hcg.hwb=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},Lr.hwb.hcg=function(e){const t=e[1]/100,n=1-e[2]/100,r=n-t;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},Lr.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},Lr.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},Lr.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},Lr.gray.hsl=function(e){return[0,0,e[0]]},Lr.gray.hsv=Lr.gray.hsl,Lr.gray.hwb=function(e){return[0,100,e[0]]},Lr.gray.cmyk=function(e){return[0,0,0,e[0]]},Lr.gray.lab=function(e){return[e[0],0,0]},Lr.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},Lr.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const Rr={};Object.keys(Mr).forEach((e=>{Rr[e]={},Object.defineProperty(Rr[e],"channels",{value:Mr[e].channels}),Object.defineProperty(Rr[e],"labels",{value:Mr[e].labels});const t=function(e){const t=Pr(e),n={},r=Object.keys(t);for(let e=r.length,o=0;o<e;o++){const e=r[o];null!==t[e].parent&&(n[e]=Br(e,t))}return n}(e);Object.keys(t).forEach((n=>{const r=t[n];Rr[e][n]=function(e){const t=function(...t){const n=t[0];if(null==n)return n;n.length>1&&(t=n);const r=e(t);if("object"==typeof r)for(let e=r.length,t=0;t<e;t++)r[t]=Math.round(r[t]);return r};return"conversion"in e&&(t.conversion=e.conversion),t}(r),Rr[e][n].raw=function(e){const t=function(...t){const n=t[0];return null==n?n:(n.length>1&&(t=n),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))}));var jr=Rr,Vr=it((function(e){const t=(e,t)=>(...n)=>{const r=e(...n);return"[".concat(r+t,"m")},n=(e,t)=>(...n)=>{const r=e(...n);return"[".concat(38+t,";5;").concat(r,"m")},r=(e,t)=>(...n)=>{const r=e(...n);return"[".concat(38+t,";2;").concat(r[0],";").concat(r[1],";").concat(r[2],"m")},o=e=>e,i=(e,t,n)=>[e,t,n],s=(e,t,n)=>{Object.defineProperty(e,t,{get:()=>{const r=n();return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0}),r},enumerable:!0,configurable:!0})};let a;const u=(e,t,n,r)=>{void 0===a&&(a=jr);const o=r?10:0,i={};for(const[r,s]of Object.entries(a)){const a="ansi16"===r?"ansi":r;r===t?i[a]=e(n,o):"object"==typeof s&&(i[a]=e(s[t],o))}return i};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,a={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};a.color.gray=a.color.blackBright,a.bgColor.bgGray=a.bgColor.bgBlackBright,a.color.grey=a.color.blackBright,a.bgColor.bgGrey=a.bgColor.bgBlackBright;for(const[t,n]of Object.entries(a)){for(const[t,r]of Object.entries(n))a[t]={open:"[".concat(r[0],"m"),close:"[".concat(r[1],"m")},n[t]=a[t],e.set(r[0],r[1]);Object.defineProperty(a,t,{value:n,enumerable:!1})}return Object.defineProperty(a,"codes",{value:e,enumerable:!1}),a.color.close="",a.bgColor.close="",s(a.color,"ansi",(()=>u(t,"ansi16",o,!1))),s(a.color,"ansi256",(()=>u(n,"ansi256",o,!1))),s(a.color,"ansi16m",(()=>u(r,"rgb",i,!1))),s(a.bgColor,"ansi",(()=>u(t,"ansi16",o,!0))),s(a.bgColor,"ansi256",(()=>u(n,"ansi256",o,!0))),s(a.bgColor,"ansi16m",(()=>u(r,"rgb",i,!0))),a}})})),$r=()=>!1,Ur=(e,t=jt.argv)=>{const n=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(n+e),o=t.indexOf("--");return-1!==r&&(-1===o||r<o)};const{env:Wr}=jt;let Kr;function qr(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Hr(e,t){if(0===Kr)return 0;if(Ur("color=16m")||Ur("color=full")||Ur("color=truecolor"))return 3;if(Ur("color=256"))return 2;if(e&&!t&&void 0===Kr)return 0;const n=Kr||0;if("dumb"===Wr.TERM)return n;if("win32"===jt.platform){const e=Vn.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in Wr)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((e=>e in Wr))||"codeship"===Wr.CI_NAME?1:n;if("TEAMCITY_VERSION"in Wr)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Wr.TEAMCITY_VERSION)?1:0;if("GITHUB_ACTIONS"in Wr)return 1;if("truecolor"===Wr.COLORTERM)return 3;if("TERM_PROGRAM"in Wr){const e=parseInt((Wr.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Wr.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Wr.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Wr.TERM)||"COLORTERM"in Wr?1:n}Ur("no-color")||Ur("no-colors")||Ur("color=false")||Ur("color=never")?Kr=0:(Ur("color")||Ur("colors")||Ur("color=true")||Ur("color=always"))&&(Kr=1),"FORCE_COLOR"in Wr&&(Kr="true"===Wr.FORCE_COLOR?1:"false"===Wr.FORCE_COLOR?0:0===Wr.FORCE_COLOR.length?1:Math.min(parseInt(Wr.FORCE_COLOR,10),3));var zr={supportsColor:function(e){return qr(Hr(e,e&&e.isTTY))},stdout:qr(Hr(!0,$r(1))),stderr:qr(Hr(!0,$r(2)))};const Yr=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Jr=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Gr=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Xr=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,Qr=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function Zr(e){const t="u"===e[0],n="{"===e[1];return t&&!n&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):t&&n?String.fromCodePoint(parseInt(e.slice(2,-1),16)):Qr.get(e)||e}function eo(e,t){const n=[],r=t.trim().split(/\s*,\s*/g);let o;for(const t of r){const r=Number(t);if(Number.isNaN(r)){if(!(o=t.match(Gr)))throw new Error("Invalid Chalk template style argument: ".concat(t," (in style '").concat(e,"')"));n.push(o[2].replace(Xr,((e,t,n)=>t?Zr(t):n)))}else n.push(r)}return n}function to(e){Jr.lastIndex=0;const t=[];let n;for(;null!==(n=Jr.exec(e));){const e=n[1];if(n[2]){const r=eo(e,n[2]);t.push([e].concat(r))}else t.push([e])}return t}function no(e,t){const n={};for(const e of t)for(const t of e.styles)n[t[0]]=e.inverse?null:t.slice(1);let r=e;for(const[e,t]of Object.entries(n))if(Array.isArray(t)){if(!(e in r))throw new Error("Unknown Chalk style: ".concat(e));r=t.length>0?r[e](...t):r[e]}return r}var ro=(e,t)=>{const n=[],r=[];let o=[];if(t.replace(Yr,((t,i,s,a,u,c)=>{if(i)o.push(Zr(i));else if(a){const t=o.join("");o=[],r.push(0===n.length?t:no(e,n)(t)),n.push({inverse:s,styles:to(a)})}else if(u){if(0===n.length)throw new Error("Found extraneous } in Chalk template literal");r.push(no(e,n)(o.join(""))),o=[],n.pop()}else o.push(c)})),r.push(o.join("")),n.length>0){const e="Chalk template literal is missing ".concat(n.length," closing bracket").concat(1===n.length?"":"s"," (`}`)");throw new Error(e)}return r.join("")};const{stdout:oo,stderr:io}=zr,{stringReplaceAll:so,stringEncaseCRLFWithFirstIndex:ao}={stringReplaceAll:(e,t,n)=>{let r=e.indexOf(t);if(-1===r)return e;const o=t.length;let i=0,s="";do{s+=e.substr(i,r-i)+t+n,i=r+o,r=e.indexOf(t,i)}while(-1!==r);return s+=e.substr(i),s},stringEncaseCRLFWithFirstIndex:(e,t,n,r)=>{let o=0,i="";do{const s="\r"===e[r-1];i+=e.substr(o,(s?r-1:r)-o)+t+(s?"\r\n":"\n")+n,o=r+1,r=e.indexOf("\n",o)}while(-1!==r);return i+=e.substr(o),i}},uo=["ansi","ansi","ansi256","ansi16m"],co=Object.create(null);class lo{constructor(e){return fo(e)}}const fo=e=>{const t={};return((e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const n=oo?oo.level:0;e.level=void 0===t.level?n:t.level})(t,e),t.template=(...e)=>Do(t.template,...e),Object.setPrototypeOf(t,po.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=lo,t.template};function po(e){return fo(e)}for(const[e,t]of Object.entries(Vr))co[e]={get(){const n=yo(this,go(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:n}),n}};co.visible={get(){const e=yo(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};const ho=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const e of ho)co[e]={get(){const{level:t}=this;return function(...n){const r=go(Vr.color[uo[t]][e](...n),Vr.color.close,this._styler);return yo(this,r,this._isEmpty)}}};for(const e of ho)co["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const{level:t}=this;return function(...n){const r=go(Vr.bgColor[uo[t]][e](...n),Vr.bgColor.close,this._styler);return yo(this,r,this._isEmpty)}}};const mo=Object.defineProperties((()=>{}),Object.assign({},co,{level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}})),go=(e,t,n)=>{let r,o;return void 0===n?(r=e,o=t):(r=n.openAll+e,o=t+n.closeAll),{open:e,close:t,openAll:r,closeAll:o,parent:n}},yo=(e,t,n)=>{const r=(...e)=>bo(r,1===e.length?""+e[0]:e.join(" "));return Object.setPrototypeOf(r,mo),r._generator=e,r._styler=t,r._isEmpty=n,r},bo=(e,t)=>{if(e.level<=0||!t)return e._isEmpty?"":t;let n=e._styler;if(void 0===n)return t;const{openAll:r,closeAll:o}=n;if(-1!==t.indexOf(""))for(;void 0!==n;)t=so(t,n.close,n.open),n=n.parent;const i=t.indexOf("\n");return-1!==i&&(t=ao(t,o,r,i)),r+t+o};let vo;const Do=(e,...t)=>{const[n]=t;if(!Array.isArray(n))return t.join(" ");const r=t.slice(1),o=[n.raw[0]];for(let e=1;e<n.length;e++)o.push(String(r[e-1]).replace(/[{}\\]/g,"\\$&"),String(n.raw[e]));return void 0===vo&&(vo=ro),vo(e,o.join(""))};Object.defineProperties(po.prototype,co);const Co=po();Co.supportsColor=oo,Co.stderr=po({level:io?io.level:0}),Co.stderr.supportsColor=io;var Eo=Co;const wo={key:e=>1===e.length?"-".concat(e):"--".concat(e),value:e=>Sr.apiDescriptor.value(e),pair:({key:e,value:t})=>!1===t?"--no-".concat(e):!0===t?wo.key(e):""===t?"".concat(wo.key(e)," without an argument"):"".concat(wo.key(e),"=").concat(t)};class Ao extends Sr.ChoiceSchema{constructor({name:e,flags:t}){super({name:e,choices:t}),this._flags=t.slice().sort()}preprocess(e,t){if("string"==typeof e&&0!==e.length&&!this._flags.includes(e)){const n=this._flags.find((t=>Tr(t,e)<3));if(n)return t.logger.warn(["Unknown flag ".concat(Eo.yellow(t.descriptor.value(e)),","),"did you mean ".concat(Eo.blue(t.descriptor.value(n)),"?")].join(" ")),n}return e}expected(){return"a flag"}}let So;function xo(e,t,{logger:n,isCLI:r=!1,passThrough:o=!1}={}){const i=o?Array.isArray(o)?(e,t)=>o.includes(e)?{[e]:t}:void 0:(e,t)=>({[e]:t}):Sr.levenUnknownHandler,s=r?wo:Sr.apiDescriptor,a=function(e,{isCLI:t}){const n=[];t&&n.push(Sr.AnySchema.create({name:"_"}));for(const r of e)n.push(_o(r,{isCLI:t,optionInfos:e})),r.alias&&t&&n.push(Sr.AliasSchema.create({name:r.alias,sourceName:r.name}));return n}(t,{isCLI:r}),u=new Sr.Normalizer(a,{logger:n,unknown:i,descriptor:s}),c=!1!==n;c&&So&&(u._hasDeprecationWarned=So);const l=u.normalize(e);return c&&(So=u._hasDeprecationWarned),l}function _o(e,{isCLI:t,optionInfos:n}){let r;const o={name:e.name},i={};switch(e.type){case"int":r=Sr.IntegerSchema,t&&(o.preprocess=e=>Number(e));break;case"string":r=Sr.StringSchema;break;case"choice":r=Sr.ChoiceSchema,o.choices=e.choices.map((t=>"object"==typeof t&&t.redirect?Object.assign({},t,{redirect:{to:{key:e.name,value:t.redirect}}}):t));break;case"boolean":r=Sr.BooleanSchema;break;case"flag":r=Ao,o.flags=n.map((e=>[].concat(e.alias||[],e.description?e.name:[],e.oppositeDescription?"no-".concat(e.name):[]))).reduce(((e,t)=>e.concat(t)),[]);break;case"path":r=Sr.StringSchema;break;default:throw new Error("Unexpected type ".concat(e.type))}if(e.exception?o.validate=(t,n,r)=>e.exception(t)||n.validate(t,r):o.validate=(e,t,n)=>void 0===e||t.validate(e,n),e.redirect&&(i.redirect=t=>t?{to:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(i.deprecated=!0),t&&!e.array){const e=o.preprocess||(e=>e);o.preprocess=(t,n,r)=>n.preprocess(e(Array.isArray(t)?t[t.length-1]:t),r)}return e.array?Sr.ArraySchema.create(Object.assign({},t?{preprocess:e=>[].concat(e)}:{},{},i,{valueSchema:r.create(o)})):r.create(Object.assign({},o,{},i))}var Fo={normalizeApiOptions:function(e,t,n){return xo(e,t,n)},normalizeCliOptions:function(e,t,n){return xo(e,t,Object.assign({isCLI:!0},n))}},To=e=>e[e.length-1];function ko(e,t){return!(t=t||{}).ignoreDecorators&&e.declaration&&e.declaration.decorators&&e.declaration.decorators.length>0?ko(e.declaration.decorators[0]):!t.ignoreDecorators&&e.decorators&&e.decorators.length>0?ko(e.decorators[0]):e.__location?e.__location.startOffset:e.range?e.range[0]:"number"==typeof e.start?e.start:e.loc?e.loc.start:null}function No(e){const t=e.nodes&&To(e.nodes);if(t&&e.source&&!e.source.end&&(e=t),e.__location)return e.__location.endOffset;const n=e.range?e.range[1]:"number"==typeof e.end?e.end:null;return e.typeAnnotation?Math.max(n,No(e.typeAnnotation)):e.loc&&!n?e.loc.end:n}var Oo={locStart:ko,locEnd:No,composeLoc:function(e,t=e){const n="number"==typeof t?t:-1,r=ko(e),o=-1!==n?r+n:No(t),i=e.loc.start;return{start:r,end:o,range:[r,o],loc:{start:i,end:-1!==n?{line:i.line,column:i.column+n}:t.loc.end}}}},Lo=it((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,t.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:void 0};return e[1]?(t.type="string",t.closed=!(!e[3]&&!e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t}}));ot(Lo),Lo.matchToToken;var Mo=it((function(e){!function(){function t(e){if(null==e)return!1;switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function n(e){switch(e.type){case"IfStatement":return null!=e.alternate?e.alternate:e.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return e.body}return null}e.exports={isExpression:function(e){if(null==e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1},isStatement:t,isIterationStatement:function(e){if(null==e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1},isSourceElement:function(e){return t(e)||null!=e&&"FunctionDeclaration"===e.type},isProblematicIfStatement:function(e){var t;if("IfStatement"!==e.type)return!1;if(null==e.alternate)return!1;t=e.consequent;do{if("IfStatement"===t.type&&null==t.alternate)return!0;t=n(t)}while(t);return!1},trailingStatement:n}}()})),Po=(Mo.isExpression,Mo.isStatement,Mo.isIterationStatement,Mo.isSourceElement,Mo.isProblematicIfStatement,Mo.trailingStatement,it((function(e){!function(){var t,n,r,o,i,s;function a(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(Math.floor((e-65536)/1024)+55296)+String.fromCharCode((e-65536)%1024+56320)}for(n={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},t={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},r=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],o=new Array(128),s=0;s<128;++s)o[s]=s>=97&&s<=122||s>=65&&s<=90||36===s||95===s;for(i=new Array(128),s=0;s<128;++s)i[s]=s>=97&&s<=122||s>=65&&s<=90||s>=48&&s<=57||36===s||95===s;e.exports={isDecimalDigit:function(e){return 48<=e&&e<=57},isHexDigit:function(e){return 48<=e&&e<=57||97<=e&&e<=102||65<=e&&e<=70},isOctalDigit:function(e){return e>=48&&e<=55},isWhiteSpace:function(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&r.indexOf(e)>=0},isLineTerminator:function(e){return 10===e||13===e||8232===e||8233===e},isIdentifierStartES5:function(e){return e<128?o[e]:n.NonAsciiIdentifierStart.test(a(e))},isIdentifierPartES5:function(e){return e<128?i[e]:n.NonAsciiIdentifierPart.test(a(e))},isIdentifierStartES6:function(e){return e<128?o[e]:t.NonAsciiIdentifierStart.test(a(e))},isIdentifierPartES6:function(e){return e<128?i[e]:t.NonAsciiIdentifierPart.test(a(e))}}}()}))),Io=(Po.isDecimalDigit,Po.isHexDigit,Po.isOctalDigit,Po.isWhiteSpace,Po.isLineTerminator,Po.isIdentifierStartES5,Po.isIdentifierPartES5,Po.isIdentifierStartES6,Po.isIdentifierPartES6,it((function(e){!function(){var t=Po;function n(e,t){return!(!t&&"yield"===e)&&r(e,t)}function r(e,t){if(t&&function(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}(e))return!0;switch(e.length){case 2:return"if"===e||"in"===e||"do"===e;case 3:return"var"===e||"for"===e||"new"===e||"try"===e;case 4:return"this"===e||"else"===e||"case"===e||"void"===e||"with"===e||"enum"===e;case 5:return"while"===e||"break"===e||"catch"===e||"throw"===e||"const"===e||"yield"===e||"class"===e||"super"===e;case 6:return"return"===e||"typeof"===e||"delete"===e||"switch"===e||"export"===e||"import"===e;case 7:return"default"===e||"finally"===e||"extends"===e;case 8:return"function"===e||"continue"===e||"debugger"===e;case 10:return"instanceof"===e;default:return!1}}function o(e,t){return"null"===e||"true"===e||"false"===e||n(e,t)}function i(e,t){return"null"===e||"true"===e||"false"===e||r(e,t)}function s(e){var n,r,o;if(0===e.length)return!1;if(o=e.charCodeAt(0),!t.isIdentifierStartES5(o))return!1;for(n=1,r=e.length;n<r;++n)if(o=e.charCodeAt(n),!t.isIdentifierPartES5(o))return!1;return!0}function a(e){var n,r,o,i,s;if(0===e.length)return!1;for(s=t.isIdentifierStartES6,n=0,r=e.length;n<r;++n){if(55296<=(o=e.charCodeAt(n))&&o<=56319){if(++n>=r)return!1;if(!(56320<=(i=e.charCodeAt(n))&&i<=57343))return!1;o=1024*(o-55296)+(i-56320)+65536}if(!s(o))return!1;s=t.isIdentifierPartES6}return!0}e.exports={isKeywordES5:n,isKeywordES6:r,isReservedWordES5:o,isReservedWordES6:i,isRestrictedWord:function(e){return"eval"===e||"arguments"===e},isIdentifierNameES5:s,isIdentifierNameES6:a,isIdentifierES5:function(e,t){return s(e)&&!o(e,t)},isIdentifierES6:function(e,t){return a(e)&&!i(e,t)}}}()}))),Bo=(Io.isKeywordES5,Io.isKeywordES6,Io.isReservedWordES5,Io.isReservedWordES6,Io.isRestrictedWord,Io.isIdentifierNameES5,Io.isIdentifierNameES6,Io.isIdentifierES5,Io.isIdentifierES6,it((function(e,t){t.ast=Mo,t.code=Po,t.keyword=Io}))),Ro=(Bo.ast,Bo.code,Bo.keyword,/[|\\{}()[\]^$+*?.]/g),jo=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(Ro,"\\$&")},Vo={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},$o=it((function(e){var t={};for(var n in Vo)Vo.hasOwnProperty(n)&&(t[Vo[n]]=n);var r=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var o in r)if(r.hasOwnProperty(o)){if(!("channels"in r[o]))throw new Error("missing channels property: "+o);if(!("labels"in r[o]))throw new Error("missing channel labels property: "+o);if(r[o].labels.length!==r[o].channels)throw new Error("channel and label counts mismatch: "+o);var i=r[o].channels,s=r[o].labels;delete r[o].channels,delete r[o].labels,Object.defineProperty(r[o],"channels",{value:i}),Object.defineProperty(r[o],"labels",{value:s})}r.rgb.hsl=function(e){var t,n,r=e[0]/255,o=e[1]/255,i=e[2]/255,s=Math.min(r,o,i),a=Math.max(r,o,i),u=a-s;return a===s?t=0:r===a?t=(o-i)/u:o===a?t=2+(i-r)/u:i===a&&(t=4+(r-o)/u),(t=Math.min(60*t,360))<0&&(t+=360),n=(s+a)/2,[t,100*(a===s?0:n<=.5?u/(a+s):u/(2-a-s)),100*n]},r.rgb.hsv=function(e){var t,n,r,o,i,s=e[0]/255,a=e[1]/255,u=e[2]/255,c=Math.max(s,a,u),l=c-Math.min(s,a,u),f=function(e){return(c-e)/6/l+.5};return 0===l?o=i=0:(i=l/c,t=f(s),n=f(a),r=f(u),s===c?o=r-n:a===c?o=1/3+t-r:u===c&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[360*o,100*i,100*c]},r.rgb.hwb=function(e){var t=e[0],n=e[1],o=e[2];return[r.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(n,o))*100,100*(o=1-1/255*Math.max(t,Math.max(n,o)))]},r.rgb.cmyk=function(e){var t,n=e[0]/255,r=e[1]/255,o=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-o)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-o-t)/(1-t)||0),100*t]},r.rgb.keyword=function(e){var n=t[e];if(n)return n;var r,o,i,s=1/0;for(var a in Vo)if(Vo.hasOwnProperty(a)){var u=(o=e,i=Vo[a],Math.pow(o[0]-i[0],2)+Math.pow(o[1]-i[1],2)+Math.pow(o[2]-i[2],2));u<s&&(s=u,r=a)}return r},r.keyword.rgb=function(e){return Vo[e]},r.rgb.xyz=function(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},r.rgb.lab=function(e){var t=r.rgb.xyz(e),n=t[0],o=t[1],i=t[2];return o/=100,i/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116)-16,500*(n-o),200*(o-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},r.hsl.rgb=function(e){var t,n,r,o,i,s=e[0]/360,a=e[1]/100,u=e[2]/100;if(0===a)return[i=255*u,i,i];t=2*u-(n=u<.5?u*(1+a):u+a-u*a),o=[0,0,0];for(var c=0;c<3;c++)(r=s+1/3*-(c-1))<0&&r++,r>1&&r--,i=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,o[c]=255*i;return o},r.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,o=n,i=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,o*=i<=1?i:2-i,[t,100*(0===r?2*o/(i+o):2*n/(r+n)),(r+n)/2*100]},r.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,o=Math.floor(t)%6,i=t-Math.floor(t),s=255*r*(1-n),a=255*r*(1-n*i),u=255*r*(1-n*(1-i));switch(r*=255,o){case 0:return[r,u,s];case 1:return[a,r,s];case 2:return[s,r,u];case 3:return[s,a,r];case 4:return[u,s,r];case 5:return[r,s,a]}},r.hsv.hsl=function(e){var t,n,r,o=e[0],i=e[1]/100,s=e[2]/100,a=Math.max(s,.01);return r=(2-i)*s,n=i*a,[o,100*(n=(n/=(t=(2-i)*a)<=1?t:2-t)||0),100*(r/=2)]},r.hwb.rgb=function(e){var t,n,r,o,i,s,a,u=e[0]/360,c=e[1]/100,l=e[2]/100,f=c+l;switch(f>1&&(c/=f,l/=f),r=6*u-(t=Math.floor(6*u)),0!=(1&t)&&(r=1-r),o=c+r*((n=1-l)-c),t){default:case 6:case 0:i=n,s=o,a=c;break;case 1:i=o,s=n,a=c;break;case 2:i=c,s=n,a=o;break;case 3:i=c,s=o,a=n;break;case 4:i=o,s=c,a=n;break;case 5:i=n,s=c,a=o}return[255*i,255*s,255*a]},r.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o))]},r.xyz.rgb=function(e){var t,n,r,o=e[0]/100,i=e[1]/100,s=e[2]/100;return n=-.9689*o+1.8758*i+.0415*s,r=.0557*o+-.204*i+1.057*s,t=(t=3.2406*o+-1.5372*i+-.4986*s)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},r.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},r.lab.xyz=function(e){var t,n,r,o=e[0];t=e[1]/500+(n=(o+16)/116),r=n-e[2]/200;var i=Math.pow(n,3),s=Math.pow(t,3),a=Math.pow(r,3);return n=i>.008856?i:(n-16/116)/7.787,t=s>.008856?s:(t-16/116)/7.787,r=a>.008856?a:(r-16/116)/7.787,[t*=95.047,n*=100,r*=108.883]},r.lab.lch=function(e){var t,n=e[0],r=e[1],o=e[2];return(t=360*Math.atan2(o,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+o*o),t]},r.lch.lab=function(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]},r.rgb.ansi16=function(e){var t=e[0],n=e[1],o=e[2],i=1 in arguments?arguments[1]:r.rgb.hsv(e)[2];if(0===(i=Math.round(i/50)))return 30;var s=30+(Math.round(o/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===i&&(s+=60),s},r.hsv.ansi16=function(e){return r.rgb.ansi16(r.hsv.rgb(e),e[2])},r.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},r.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},r.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},r.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},r.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map((function(e){return e+e})).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},r.rgb.hcg=function(e){var t,n=e[0]/255,r=e[1]/255,o=e[2]/255,i=Math.max(Math.max(n,r),o),s=Math.min(Math.min(n,r),o),a=i-s;return t=a<=0?0:i===n?(r-o)/a%6:i===r?2+(o-n)/a:4+(n-r)/a+4,t/=6,[360*(t%=1),100*a,100*(a<1?s/(1-a):0)]},r.hsl.hcg=function(e){var t,n=e[1]/100,r=e[2]/100,o=0;return(t=r<.5?2*n*r:2*n*(1-r))<1&&(o=(r-.5*t)/(1-t)),[e[0],100*t,100*o]},r.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},r.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var o,i=[0,0,0],s=t%1*6,a=s%1,u=1-a;switch(Math.floor(s)){case 0:i[0]=1,i[1]=a,i[2]=0;break;case 1:i[0]=u,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=a;break;case 3:i[0]=0,i[1]=u,i[2]=1;break;case 4:i[0]=a,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=u}return o=(1-n)*r,[255*(n*i[0]+o),255*(n*i[1]+o),255*(n*i[2]+o)]},r.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},r.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},r.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},r.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,r=n-t,o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},r.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},r.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},r.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},r.gray.hsl=r.gray.hsv=function(e){return[0,0,e[0]]},r.gray.hwb=function(e){return[0,100,e[0]]},r.gray.cmyk=function(e){return[0,0,0,e[0]]},r.gray.lab=function(e){return[e[0],0,0]},r.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},r.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}}));function Uo(e){var t=function(){for(var e={},t=Object.keys($o),n=t.length,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}(),n=[e];for(t[e].distance=0;n.length;)for(var r=n.pop(),o=Object.keys($o[r]),i=o.length,s=0;s<i;s++){var a=o[s],u=t[a];-1===u.distance&&(u.distance=t[r].distance+1,u.parent=r,n.unshift(a))}return t}function Wo(e,t){return function(n){return t(e(n))}}function Ko(e,t){for(var n=[t[e].parent,e],r=$o[t[e].parent][e],o=t[e].parent;t[o].parent;)n.unshift(t[o].parent),r=Wo($o[t[o].parent][o],r),o=t[o].parent;return r.conversion=n,r}$o.rgb,$o.hsl,$o.hsv,$o.hwb,$o.cmyk,$o.xyz,$o.lab,$o.lch,$o.hex,$o.keyword,$o.ansi16,$o.ansi256,$o.hcg,$o.apple,$o.gray;var qo={};Object.keys($o).forEach((function(e){qo[e]={},Object.defineProperty(qo[e],"channels",{value:$o[e].channels}),Object.defineProperty(qo[e],"labels",{value:$o[e].labels});var t=function(e){for(var t=Uo(e),n={},r=Object.keys(t),o=r.length,i=0;i<o;i++){var s=r[i];null!==t[s].parent&&(n[s]=Ko(s,t))}return n}(e);Object.keys(t).forEach((function(n){var r=t[n];qo[e][n]=function(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"==typeof n)for(var r=n.length,o=0;o<r;o++)n[o]=Math.round(n[o]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}(r),qo[e][n].raw=function(e){var t=function(t){return null==t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))}));var Ho=qo,zo=it((function(e){const t=(e,t)=>function(){const n=e.apply(Ho,arguments);return"[".concat(n+t,"m")},n=(e,t)=>function(){const n=e.apply(Ho,arguments);return"[".concat(38+t,";5;").concat(n,"m")},r=(e,t)=>function(){const n=e.apply(Ho,arguments);return"[".concat(38+t,";2;").concat(n[0],";").concat(n[1],";").concat(n[2],"m")};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,o={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};o.color.grey=o.color.gray;for(const t of Object.keys(o)){const n=o[t];for(const t of Object.keys(n)){const r=n[t];o[t]={open:"[".concat(r[0],"m"),close:"[".concat(r[1],"m")},n[t]=o[t],e.set(r[0],r[1])}Object.defineProperty(o,t,{value:n,enumerable:!1}),Object.defineProperty(o,"codes",{value:e,enumerable:!1})}const i=e=>e,s=(e,t,n)=>[e,t,n];o.color.close="",o.bgColor.close="",o.color.ansi={ansi:t(i,0)},o.color.ansi256={ansi256:n(i,0)},o.color.ansi16m={rgb:r(s,0)},o.bgColor.ansi={ansi:t(i,10)},o.bgColor.ansi256={ansi256:n(i,10)},o.bgColor.ansi16m={rgb:r(s,10)};for(let e of Object.keys(Ho)){if("object"!=typeof Ho[e])continue;const i=Ho[e];"ansi16"===e&&(e="ansi"),"ansi16"in i&&(o.color.ansi[e]=t(i.ansi16,0),o.bgColor.ansi[e]=t(i.ansi16,10)),"ansi256"in i&&(o.color.ansi256[e]=n(i.ansi256,0),o.bgColor.ansi256[e]=n(i.ansi256,10)),"rgb"in i&&(o.color.ansi16m[e]=r(i.rgb,0),o.bgColor.ansi16m[e]=r(i.rgb,10))}return o}})}));const Yo=jt.env;let Jo;function Go(e){return 0!==(t=function(e){if(!1===Jo)return 0;if($n("color=16m")||$n("color=full")||$n("color=truecolor"))return 3;if($n("color=256"))return 2;if(e&&!e.isTTY&&!0!==Jo)return 0;const t=Jo?1:0;if("win32"===jt.platform){const e=Vn.release().split(".");return Number(jt.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in Yo)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((e=>e in Yo))||"codeship"===Yo.CI_NAME?1:t;if("TEAMCITY_VERSION"in Yo)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Yo.TEAMCITY_VERSION)?1:0;if("truecolor"===Yo.COLORTERM)return 3;if("TERM_PROGRAM"in Yo){const e=parseInt((Yo.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Yo.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Yo.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Yo.TERM)||"COLORTERM"in Yo?1:(Yo.TERM,t)}(e))&&{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3};var t}$n("no-color")||$n("no-colors")||$n("color=false")?Jo=!1:($n("color")||$n("colors")||$n("color=true")||$n("color=always"))&&(Jo=!0),"FORCE_COLOR"in Yo&&(Jo=0===Yo.FORCE_COLOR.length||0!==parseInt(Yo.FORCE_COLOR,10));var Xo={supportsColor:Go,stdout:Go(jt.stdout),stderr:Go(jt.stderr)};const Qo=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Zo=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,ei=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,ti=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,ni=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function ri(e){return"u"===e[0]&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):ni.get(e)||e}function oi(e,t){const n=[],r=t.trim().split(/\s*,\s*/g);let o;for(const t of r)if(isNaN(t)){if(!(o=t.match(ei)))throw new Error("Invalid Chalk template style argument: ".concat(t," (in style '").concat(e,"')"));n.push(o[2].replace(ti,((e,t,n)=>t?ri(t):n)))}else n.push(Number(t));return n}function ii(e){Zo.lastIndex=0;const t=[];let n;for(;null!==(n=Zo.exec(e));){const e=n[1];if(n[2]){const r=oi(e,n[2]);t.push([e].concat(r))}else t.push([e])}return t}function si(e,t){const n={};for(const e of t)for(const t of e.styles)n[t[0]]=e.inverse?null:t.slice(1);let r=e;for(const e of Object.keys(n))if(Array.isArray(n[e])){if(!(e in r))throw new Error("Unknown Chalk style: ".concat(e));r=n[e].length>0?r[e].apply(r,n[e]):r[e]}return r}var ai=(e,t)=>{const n=[],r=[];let o=[];if(t.replace(Qo,((t,i,s,a,u,c)=>{if(i)o.push(ri(i));else if(a){const t=o.join("");o=[],r.push(0===n.length?t:si(e,n)(t)),n.push({inverse:s,styles:ii(a)})}else if(u){if(0===n.length)throw new Error("Found extraneous } in Chalk template literal");r.push(si(e,n)(o.join(""))),o=[],n.pop()}else o.push(c)})),r.push(o.join("")),n.length>0){const e="Chalk template literal is missing ".concat(n.length," closing bracket").concat(1===n.length?"":"s"," (`}`)");throw new Error(e)}return r.join("")},ui=it((function(e){const t=Xo.stdout,n="win32"===jt.platform&&!(jt.env.TERM||"").toLowerCase().startsWith("xterm"),r=["ansi","ansi","ansi256","ansi16m"],o=new Set(["gray"]),i=Object.create(null);function s(e,n){n=n||{};const r=t?t.level:0;e.level=void 0===n.level?r:n.level,e.enabled="enabled"in n?n.enabled:e.level>0}function a(e){if(!this||!(this instanceof a)||this.template){const t={};return s(t,e),t.template=function(){const e=[].slice.call(arguments);return f.apply(null,[t.template].concat(e))},Object.setPrototypeOf(t,a.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=a,t.template}s(this,e)}n&&(zo.blue.open="");for(const e of Object.keys(zo))zo[e].closeRe=new RegExp(jo(zo[e].close),"g"),i[e]={get(){const t=zo[e];return c.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}};i.visible={get(){return c.call(this,this._styles||[],!0,"visible")}},zo.color.closeRe=new RegExp(jo(zo.color.close),"g");for(const e of Object.keys(zo.color.ansi))o.has(e)||(i[e]={get(){const t=this.level;return function(){const n={open:zo.color[r[t]][e].apply(null,arguments),close:zo.color.close,closeRe:zo.color.closeRe};return c.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}});zo.bgColor.closeRe=new RegExp(jo(zo.bgColor.close),"g");for(const e of Object.keys(zo.bgColor.ansi))o.has(e)||(i["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const t=this.level;return function(){const n={open:zo.bgColor[r[t]][e].apply(null,arguments),close:zo.bgColor.close,closeRe:zo.bgColor.closeRe};return c.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}});const u=Object.defineProperties((()=>{}),i);function c(e,t,n){const r=function e(){return l.apply(e,arguments)};r._styles=e,r._empty=t;const o=this;return Object.defineProperty(r,"level",{enumerable:!0,get:()=>o.level,set(e){o.level=e}}),Object.defineProperty(r,"enabled",{enumerable:!0,get:()=>o.enabled,set(e){o.enabled=e}}),r.hasGrey=this.hasGrey||"gray"===n||"grey"===n,r.__proto__=u,r}function l(){const e=arguments,t=e.length;let r=String(arguments[0]);if(0===t)return"";if(t>1)for(let n=1;n<t;n++)r+=" "+e[n];if(!this.enabled||this.level<=0||!r)return this._empty?"":r;const o=zo.dim.open;n&&this.hasGrey&&(zo.dim.open="");for(const e of this._styles.slice().reverse())r=e.open+r.replace(e.closeRe,e.open)+e.close,r=r.replace(/\r?\n/g,"".concat(e.close,"$&").concat(e.open));return zo.dim.open=o,r}function f(e,t){if(!Array.isArray(t))return[].slice.call(arguments,1).join(" ");const n=[].slice.call(arguments,2),r=[t.raw[0]];for(let e=1;e<t.length;e++)r.push(String(n[e-1]).replace(/[{}\\]/g,"\\$&")),r.push(String(t.raw[e]));return ai(e,r.join(""))}Object.defineProperties(a.prototype,i),e.exports=a(),e.exports.supportsColor=t,e.exports.default=e.exports})),ci=(ui.supportsColor,it((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.shouldHighlight=l,t.getChalk=f,t.default=function(e,t={}){return l(t)?(o=function(e){return{keyword:e.cyan,capitalized:e.yellow,jsx_tag:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.grey,invalid:e.white.bgRed.bold}}(f(t)),i=e,i.replace(n.default,(function(...e){const t=function(e){const[t,o]=e.slice(-2),i=(0,n.matchToToken)(e);if("name"===i.type){if(r.default.keyword.isReservedWordES6(i.value))return"keyword";if(u.test(i.value)&&("<"===o[t-1]||"</"==o.substr(t-2,2)))return"jsx_tag";if(i.value[0]!==i.value[0].toLowerCase())return"capitalized"}return"punctuator"===i.type&&c.test(i.value)?"bracket":"invalid"!==i.type||"@"!==i.value&&"#"!==i.value?i.type:"punctuator"}(e),i=o[t];return i?e[0].split(a).map((e=>i(e))).join("\n"):e[0]}))):e;var o,i};var n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(Lo),r=i(Bo),o=i(ui);function i(e){return e&&e.__esModule?e:{default:e}}function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}const a=/\r\n|[\n\r\u2028\u2029]/,u=/^[a-z][\w-]*$/i,c=/^[()[\]{}]$/;function l(e){return o.default.supportsColor||e.forceColor}function f(e){let t=o.default;return e.forceColor&&(t=new o.default.constructor({enabled:!0,level:1})),t}})));ot(ci),ci.shouldHighlight,ci.getChalk;var li=it((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.codeFrameColumns=s,t.default=function(e,t,n,r={}){if(!o){o=!0;const e="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";jt.emitWarning?jt.emitWarning(e,"DeprecationWarning"):(new Error(e).name="DeprecationWarning",console.warn(new Error(e)))}return s(e,{start:{column:n=Math.max(n,0),line:t}},r)};var n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=r();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}(ci);function r(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return r=function(){return e},e}let o=!1;const i=/\r\n|[\n\r\u2028\u2029]/;function s(e,t,r={}){const o=(r.highlightCode||r.forceColor)&&(0,n.shouldHighlight)(r),s=(0,n.getChalk)(r),a=function(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}(s),u=(e,t)=>o?e(t):t,c=e.split(i),{start:l,end:f,markerLines:p}=function(e,t,n){const r=Object.assign({column:0,line:-1},e.start),o=Object.assign({},r,{},e.end),{linesAbove:i=2,linesBelow:s=3}=n||{},a=r.line,u=r.column,c=o.line,l=o.column;let f=Math.max(a-(i+1),0),p=Math.min(t.length,c+s);-1===a&&(f=0),-1===c&&(p=t.length);const h=c-a,d={};if(h)for(let e=0;e<=h;e++){const n=e+a;if(u)if(0===e){const e=t[n-1].length;d[n]=[u,e-u+1]}else if(e===h)d[n]=[0,l];else{const r=t[n-e].length;d[n]=[0,r]}else d[n]=!0}else d[a]=u===l?!u||[u,0]:[u,l-u];return{start:f,end:p,markerLines:d}}(t,c,r),h=t.start&&"number"==typeof t.start.column,d=String(f).length;let m=(o?(0,n.default)(e,r):e).split(i).slice(l,f).map(((e,t)=>{const n=l+1+t,o=" ".concat(n).slice(-d),i=" ".concat(o," | "),s=p[n],c=!p[n+1];if(s){let t="";if(Array.isArray(s)){const n=e.slice(0,Math.max(s[0]-1,0)).replace(/[^\t]/g," "),o=s[1]||1;t=["\n ",u(a.gutter,i.replace(/\d/g," ")),n,u(a.marker,"^").repeat(o)].join(""),c&&r.message&&(t+=" "+u(a.message,r.message))}return[u(a.marker,">"),u(a.gutter,i),e,t].join("")}return" ".concat(u(a.gutter,i)).concat(e)})).join("\n");return r.message&&!h&&(m="".concat(" ".repeat(d+1)).concat(r.message,"\n").concat(m)),o?s.reset(m):m}}));ot(li),li.codeFrameColumns;const{ConfigError:fi}=ht,{locStart:pi,locEnd:hi}=Oo,di=Object.getOwnPropertyNames,mi=Object.getOwnPropertyDescriptor;function gi(e){const t={};for(const n of e.plugins)if(n.parsers)for(const e of di(n.parsers))Object.defineProperty(t,e,mi(n.parsers,e));return t}function yi(e,t){if(t=t||gi(e),"function"==typeof e.parser)return{parse:e.parser,astFormat:"estree",locStart:pi,locEnd:hi};if("string"==typeof e.parser){if(Object.prototype.hasOwnProperty.call(t,e.parser))return t[e.parser];throw new fi("Couldn't resolve parser \"".concat(e.parser,'". Parsers must be explicitly added to the standalone bundle.'))}}var bi={parse:function(e,t){const n=gi(t),r=Object.keys(n).reduce(((e,t)=>Object.defineProperty(e,t,{enumerable:!0,get:()=>n[t].parse})),{}),o=yi(t,n);try{return o.preprocess&&(e=o.preprocess(e,t)),{text:e,ast:o.parse(e,r,t)}}catch(t){const{loc:n}=t;if(n){const r=li;throw t.codeFrame=r.codeFrameColumns(e,n,{highlightCode:!0}),t.message+="\n"+t.codeFrame,t}throw t.stack}},resolveParser:yi};const{UndefinedParserError:vi}=ht,{getSupportInfo:Di}=Dn,{resolveParser:Ci}=bi,Ei={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};function wi(e,t){const n=ie.basename(e).toLowerCase(),r=Di({plugins:t}).languages.filter((e=>null!==e.since));let o=r.find((e=>e.extensions&&e.extensions.some((e=>n.endsWith(e)))||e.filenames&&e.filenames.find((e=>e.toLowerCase()===n))));if(!o&&!n.includes(".")){const t=function(e){if("string"!=typeof e)return"";let t;try{t=at.openSync(e,"r")}catch(e){return""}try{const e=new ut(t).next().toString("utf8"),n=e.match(/^#!\/(?:usr\/)?bin\/env\s+(\S+)/);if(n)return n[1];const r=e.match(/^#!\/(?:usr\/(?:local\/)?)?bin\/(\S+)/);return r?r[1]:""}catch(e){return""}finally{try{at.closeSync(t)}catch(e){}}}(e);o=r.find((e=>e.interpreters&&e.interpreters.includes(t)))}return o&&o.parsers[0]}var Ai={normalize:function(e,t){t=t||{};const n=Object.assign({},e),r=Di({plugins:e.plugins,showUnreleased:!0,showDeprecated:!0}).options,o=Object.assign({},Ei,{},ct(r.filter((e=>void 0!==e.default)).map((e=>[e.name,e.default]))));if(!n.parser)if(n.filepath){if(n.parser=wi(n.filepath,n.plugins),!n.parser)throw new vi("No parser could be inferred for file: ".concat(n.filepath))}else(t.logger||console).warn("No parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred."),n.parser="babel";const i=Ci(Fo.normalizeApiOptions(n,[r.find((e=>"parser"===e.name))],{passThrough:!0,logger:!1}));n.astFormat=i.astFormat,n.locEnd=i.locEnd,n.locStart=i.locStart;const s=function(e){const{astFormat:t}=e;if(!t)throw new Error("getPlugin() requires astFormat to be set");const n=e.plugins.find((e=>e.printers&&e.printers[t]));if(!n)throw new Error("Couldn't find plugin for AST format \"".concat(t,'"'));return n}(n);n.printer=s.printers[n.astFormat];const a=r.filter((e=>e.pluginDefaults&&void 0!==e.pluginDefaults[s.name])).reduce(((e,t)=>Object.assign(e,{[t.name]:t.pluginDefaults[s.name]})),{}),u=Object.assign({},o,{},a);return Object.keys(u).forEach((e=>{null==n[e]&&(n[e]=u[e])})),"json"===n.parser&&(n.trailingComma="none"),Fo.normalizeApiOptions(n,r,Object.assign({passThrough:Object.keys(Ei)},t))},hiddenDefaults:Ei,inferParser:wi};var Si=function e(t,n,r){if(Array.isArray(t))return t.map((t=>e(t,n,r))).filter(Boolean);if(!t||"object"!=typeof t)return t;const o={};for(const r of Object.keys(t))"function"!=typeof t[r]&&(o[r]=e(t[r],n,t));if(n.printer.massageAstNode){const e=n.printer.massageAstNode(t,o,r);if(null===e)return;if(e)return e}return o};function xi(){}function _i(e){return{type:"concat",parts:e}}function Fi(e){return{type:"indent",contents:e}}function Ti(e,t){return{type:"align",contents:t,n:e}}function ki(e,t){return{type:"group",id:(t=t||{}).id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}xi.ok=function(){},xi.strictEqual=function(){};const Ni={type:"break-parent"},Oi=_i([{type:"line",hard:!0},Ni]),Li=_i([{type:"line",hard:!0,literal:!0},Ni]);var Mi={concat:_i,join:function(e,t){const n=[];for(let r=0;r<t.length;r++)0!==r&&n.push(e),n.push(t[r]);return _i(n)},line:{type:"line"},softline:{type:"line",soft:!0},hardline:Oi,literalline:Li,group:ki,conditionalGroup:function(e,t){return ki(e[0],Object.assign({},t,{expandedStates:e}))},fill:function(e){return{type:"fill",parts:e}},lineSuffix:function(e){return{type:"line-suffix",contents:e}},lineSuffixBoundary:{type:"line-suffix-boundary"},cursor:{type:"cursor",placeholder:Symbol("cursor")},breakParent:Ni,ifBreak:function(e,t,n){return{type:"if-break",breakContents:e,flatContents:t,groupId:(n=n||{}).groupId}},trim:{type:"trim"},indent:Fi,align:Ti,addAlignmentToDoc:function(e,t,n){let r=e;if(t>0){for(let e=0;e<Math.floor(t/n);++e)r=Fi(r);r=Ti(t%n,r),r=Ti(-1/0,r)}return r},markAsRoot:function(e){return Ti({type:"root"},e)},dedentToRoot:function(e){return Ti(-1/0,e)},dedent:function(e){return Ti(-1,e)}},Pi=e=>"string"==typeof e?e.replace((({onlyFirst:e=!1}={})=>{const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")})(),""):e;const Ii=e=>!Number.isNaN(e)&&e>=4352&&(e<=4447||9001===e||9002===e||11904<=e&&e<=12871&&12351!==e||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141);var Bi=Ii,Ri=Ii;Bi.default=Ri;const ji=e=>{if("string"!=typeof(e=e.replace(/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g,"  "))||0===e.length)return 0;e=Pi(e);let t=0;for(let n=0;n<e.length;n++){const r=e.codePointAt(n);r<=31||r>=127&&r<=159||r>=768&&r<=879||(r>65535&&n++,t+=Bi(r)?2:1)}return t};var Vi=ji,$i=ji;Vi.default=$i;const Ui=/[|\\{}()[\]^$+*?.-]/g;var Wi=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(Ui,"\\$&")};const Ki=/[^\x20-\x7F]/;function qi(e){return(t,n,r)=>{const o=r&&r.backwards;if(!1===n)return!1;const{length:i}=t;let s=n;for(;s>=0&&s<i;){const n=t.charAt(s);if(e instanceof RegExp){if(!e.test(n))return s}else if(!e.includes(n))return s;o?s--:s++}return(-1===s||s===i)&&s}}const Hi=qi(/\s/),zi=qi(" \t"),Yi=qi(",; \t"),Ji=qi(/[^\r\n]/);function Gi(e,t){if(!1===t)return!1;if("/"===e.charAt(t)&&"*"===e.charAt(t+1))for(let n=t+2;n<e.length;++n)if("*"===e.charAt(n)&&"/"===e.charAt(n+1))return n+2;return t}function Xi(e,t){return!1!==t&&("/"===e.charAt(t)&&"/"===e.charAt(t+1)?Ji(e,t):t)}function Qi(e,t,n){const r=n&&n.backwards;if(!1===t)return!1;const o=e.charAt(t);if(r){if("\r"===e.charAt(t-1)&&"\n"===o)return t-2;if("\n"===o||"\r"===o||"\u2028"===o||"\u2029"===o)return t-1}else{if("\r"===o&&"\n"===e.charAt(t+1))return t+2;if("\n"===o||"\r"===o||"\u2028"===o||"\u2029"===o)return t+1}return t}function Zi(e,t,n){const r=zi(e,(n=n||{}).backwards?t-1:t,n);return r!==Qi(e,r,n)}function es(e,t){let n=null,r=t;for(;r!==n;)n=r,r=Yi(e,r),r=Gi(e,r),r=zi(e,r);return r=Xi(e,r),r=Qi(e,r),!1!==r&&Zi(e,r)}function ts(e,t){let n=null,r=t;for(;r!==n;)n=r,r=zi(e,r),r=Gi(e,r),r=Xi(e,r),r=Qi(e,r);return r}function ns(e,t,n){return ts(e,n(t))}const rs={};function os(e){return rs[e]}[["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].forEach(((e,t)=>{e.forEach((e=>{rs[e]=t}))}));const is={"==":!0,"!=":!0,"===":!0,"!==":!0},ss={"*":!0,"/":!0,"%":!0},as={">>":!0,">>>":!0,"<<":!0};function us(e){return e.left?us(e.left):e}function cs(e,t,n){let r=0;for(let o=n=n||0;o<e.length;++o)"\t"===e[o]?r=r+t-r%t:r++;return r}function ls(e,t){const n=e.slice(1,-1),r={quote:'"',regex:/"/g},o={quote:"'",regex:/'/g},i="'"===t?o:r,s=i===o?r:o;let a=i.quote;return(n.includes(i.quote)||n.includes(s.quote))&&(a=(n.match(i.regex)||[]).length>(n.match(s.regex)||[]).length?s.quote:i.quote),a}function fs(e,t,n){const r='"'===t?"'":'"',o=e.replace(/\\([\s\S])|(['"])/g,((e,o,i)=>o===r?o:i===t?"\\"+i:i||(n&&/^[^\\nrvtbfux\r\n\u2028\u2029"'0-7]$/.test(o)?o:"\\"+o)));return t+o+t}function ps(e){return e&&(e.comments&&e.comments.length>0&&e.comments.some((e=>hs(e)&&!e.unignore))||e.prettierIgnore)}function hs(e){return"prettier-ignore"===e.value.trim()}function ds(e,t){(e.comments||(e.comments=[])).push(t),t.printed=!1,"JSXText"===e.type&&(t.printed=!0)}var ms={replaceEndOfLineWith:function(e,t){const n=[];for(const r of e.split("\n"))0!==n.length&&n.push(t),n.push(r);return n},getStringWidth:function(e){return e?Ki.test(e)?Vi(e):e.length:0},getMaxContinuousCount:function(e,t){const n=e.match(new RegExp("(".concat(Wi(t),")+"),"g"));return null===n?0:n.reduce(((e,n)=>Math.max(e,n.length/t.length)),0)},getMinNotPresentContinuousCount:function(e,t){const n=e.match(new RegExp("(".concat(Wi(t),")+"),"g"));if(null===n)return 0;const r=new Map;let o=0;for(const e of n){const n=e.length/t.length;r.set(n,!0),n>o&&(o=n)}for(let e=1;e<o;e++)if(!r.get(e))return e;return o+1},getPrecedence:os,shouldFlatten:function(e,t){return!(os(t)!==os(e)||"**"===e||is[e]&&is[t]||"%"===t&&ss[e]||"%"===e&&ss[t]||t!==e&&ss[t]&&ss[e]||as[e]&&as[t])},isBitwiseOperator:function(e){return!!as[e]||"|"===e||"^"===e||"&"===e},getPenultimate:function(e){return e.length>1?e[e.length-2]:null},getLast:To,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:ts,getNextNonSpaceNonCommentCharacterIndex:ns,getNextNonSpaceNonCommentCharacter:function(e,t,n){return e.charAt(ns(e,t,n))},skip:qi,skipWhitespace:Hi,skipSpaces:zi,skipToLineEnd:Yi,skipEverythingButNewLine:Ji,skipInlineComment:Gi,skipTrailingComment:Xi,skipNewline:Qi,isNextLineEmptyAfterIndex:es,isNextLineEmpty:function(e,t,n){return es(e,n(t))},isPreviousLineEmpty:function(e,t,n){let r=n(t)-1;return r=zi(e,r,{backwards:!0}),r=Qi(e,r,{backwards:!0}),r=zi(e,r,{backwards:!0}),r!==Qi(e,r,{backwards:!0})},hasNewline:Zi,hasNewlineInRange:function(e,t,n){for(let r=t;r<n;++r)if("\n"===e.charAt(r))return!0;return!1},hasSpaces:function(e,t,n){return zi(e,(n=n||{}).backwards?t-1:t,n)!==t},setLocStart:function(e,t){e.range?e.range[0]=t:e.start=t},setLocEnd:function(e,t){e.range?e.range[1]=t:e.end=t},startsWithNoLookaheadToken:function e(t,n){switch((t=us(t)).type){case"FunctionExpression":case"ClassExpression":case"DoExpression":return n;case"ObjectExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return e(t.object,n);case"TaggedTemplateExpression":return"FunctionExpression"!==t.tag.type&&e(t.tag,n);case"CallExpression":case"OptionalCallExpression":return"FunctionExpression"!==t.callee.type&&e(t.callee,n);case"ConditionalExpression":return e(t.test,n);case"UpdateExpression":return!t.prefix&&e(t.argument,n);case"BindExpression":return t.object&&e(t.object,n);case"SequenceExpression":return e(t.expressions[0],n);case"TSAsExpression":return e(t.expression,n);default:return!1}},getAlignmentSize:cs,getIndentSize:function(e,t){const n=e.lastIndexOf("\n");return-1===n?0:cs(e.slice(n+1).match(/^[ \t]*/)[0],t)},getPreferredQuote:ls,printString:function(e,t,n){const r=e.slice(1,-1),o=!r.includes('"')&&!r.includes("'"),i="json"===t.parser?'"':t.__isInHtmlAttribute?"'":ls(e,t.singleQuote?"'":'"');return n?o?i+r+i:e:fs(r,i,!("css"===t.parser||"less"===t.parser||"scss"===t.parser||t.embeddedInHtml))},printNumber:function(e){return e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(\d)/,"$1$2$3").replace(/^([+-]?[\d.]+)e[+-]?0+$/,"$1").replace(/^([+-])?\./,"$10.").replace(/(\.\d+?)0+(?=e|$)/,"$1").replace(/\.(?=e|$)/,"")},hasIgnoreComment:function(e){return ps(e.getValue())},hasNodeIgnoreComment:ps,isNodeIgnoreComment:hs,makeString:fs,addLeadingComment:function(e,t){t.leading=!0,t.trailing=!1,ds(e,t)},addDanglingComment:function(e,t){t.leading=!1,t.trailing=!1,ds(e,t)},addTrailingComment:function(e,t){t.leading=!1,t.trailing=!0,ds(e,t)},isWithinParentArrayProperty:function(e,t){const n=e.getValue(),r=e.getParentNode();if(null==r)return!1;if(!Array.isArray(r[t]))return!1;const o=e.getName();return r[t][o]===n}};var gs={guessEndOfLine:function(e){const t=e.indexOf("\r");return t>=0?"\n"===e.charAt(t+1)?"crlf":"cr":"lf"},convertEndOfLineToChars:function(e){switch(e){case"cr":return"\r";case"crlf":return"\r\n";default:return"\n"}}};const{getStringWidth:ys}=ms,{convertEndOfLineToChars:bs}=gs,{concat:vs,fill:Ds,cursor:Cs}=Mi;let Es;function ws(e,t){return Ss(e,{type:"indent"},t)}function As(e,t,n){return t===-1/0?e.root||{value:"",length:0,queue:[]}:t<0?Ss(e,{type:"dedent"},n):t?"root"===t.type?Object.assign({},e,{root:e}):Ss(e,"string"==typeof t?{type:"stringAlign",n:t}:{type:"numberAlign",n:t},n):e}function Ss(e,t,n){const r="dedent"===t.type?e.queue.slice(0,-1):e.queue.concat(t);let o="",i=0,s=0,a=0;for(const e of r)switch(e.type){case"indent":l(),n.useTabs?u(1):c(n.tabWidth);break;case"stringAlign":l(),o+=e.n,i+=e.n.length;break;case"numberAlign":s+=1,a+=e.n;break;default:throw new Error("Unexpected type '".concat(e.type,"'"))}return f(),Object.assign({},e,{value:o,length:i,queue:r});function u(e){o+="\t".repeat(e),i+=n.tabWidth*e}function c(e){o+=" ".repeat(e),i+=e}function l(){n.useTabs?(s>0&&u(s),p()):f()}function f(){a>0&&c(a),p()}function p(){s=0,a=0}}function xs(e){if(0===e.length)return 0;let t=0;for(;e.length>0&&"string"==typeof e[e.length-1]&&e[e.length-1].match(/^[ \t]*$/);)t+=e.pop().length;if(e.length&&"string"==typeof e[e.length-1]){const n=e[e.length-1].replace(/[ \t]*$/,"");t+=e[e.length-1].length-n.length,e[e.length-1]=n}return t}function _s(e,t,n,r,o){let i=t.length;const s=[e],a=[];for(;n>=0;){if(0===s.length){if(0===i)return!0;s.push(t[i-1]),i--;continue}const[e,u,c]=s.pop();if("string"==typeof c)a.push(c),n-=ys(c);else switch(c.type){case"concat":for(let t=c.parts.length-1;t>=0;t--)s.push([e,u,c.parts[t]]);break;case"indent":s.push([ws(e,r),u,c.contents]);break;case"align":s.push([As(e,c.n,r),u,c.contents]);break;case"trim":n+=xs(a);break;case"group":if(o&&c.break)return!1;s.push([e,c.break?1:u,c.contents]),c.id&&(Es[c.id]=s[s.length-1][1]);break;case"fill":for(let t=c.parts.length-1;t>=0;t--)s.push([e,u,c.parts[t]]);break;case"if-break":{const t=c.groupId?Es[c.groupId]:u;1===t&&c.breakContents&&s.push([e,u,c.breakContents]),2===t&&c.flatContents&&s.push([e,u,c.flatContents]);break}case"line":switch(u){case 2:if(!c.hard){c.soft||(a.push(" "),n-=1);break}return!0;case 1:return!0}}}return!1}const Fs={};function Ts(e,t,n,r){const o=[e];for(;0!==o.length;){const e=o.pop();if(e===Fs){n(o.pop());continue}let i=!0;if(t&&!1===t(e)&&(i=!1),n&&(o.push(e),o.push(Fs)),i)if("concat"===e.type||"fill"===e.type)for(let t=e.parts.length-1;t>=0;--t)o.push(e.parts[t]);else if("if-break"===e.type)e.flatContents&&o.push(e.flatContents),e.breakContents&&o.push(e.breakContents);else if("group"===e.type&&e.expandedStates)if(r)for(let t=e.expandedStates.length-1;t>=0;--t)o.push(e.expandedStates[t]);else o.push(e.contents);else e.contents&&o.push(e.contents)}}function ks(e,t){if("concat"===e.type||"fill"===e.type){const n=e.parts.map((e=>ks(e,t)));return t(Object.assign({},e,{parts:n}))}if("if-break"===e.type){const n=e.breakContents&&ks(e.breakContents,t),r=e.flatContents&&ks(e.flatContents,t);return t(Object.assign({},e,{breakContents:n,flatContents:r}))}if(e.contents){const n=ks(e.contents,t);return t(Object.assign({},e,{contents:n}))}return t(e)}function Ns(e,t,n){let r=n,o=!1;return Ts(e,(function(e){const n=t(e);if(void 0!==n&&(o=!0,r=n),o)return!1})),r}function Os(e){return"string"!=typeof e&&("line"===e.type||void 0)}function Ls(e){return!("group"!==e.type||!e.break)||!("line"!==e.type||!e.hard)||"break-parent"===e.type||void 0}function Ms(e){if(e.length>0){const t=e[e.length-1];t.expandedStates||(t.break=!0)}return null}function Ps(e){return"line"!==e.type||e.hard?"if-break"===e.type?e.flatContents||"":e:e.soft?"":" "}function Is(e){if("concat"===e.type){const t=[];for(let n=0;n<e.parts.length;++n){const r=e.parts[n];if("string"!=typeof r&&"concat"===r.type)t.push(...Is(r).parts);else{const e=Is(r);""!==e&&t.push(e)}}return Object.assign({},e,{parts:t})}return"if-break"===e.type?Object.assign({},e,{breakContents:null!=e.breakContents?Is(e.breakContents):null,flatContents:null!=e.flatContents?Is(e.flatContents):null}):"group"===e.type?Object.assign({},e,{contents:Is(e.contents),expandedStates:e.expandedStates?e.expandedStates.map(Is):e.expandedStates}):e.contents?Object.assign({},e,{contents:Is(e.contents)}):e}function Bs(e){if("string"==typeof e)return JSON.stringify(e);if("line"===e.type)return e.literal?"literalline":e.hard?"hardline":e.soft?"softline":"line";if("break-parent"===e.type)return"breakParent";if("trim"===e.type)return"trim";if("concat"===e.type)return"["+e.parts.map(Bs).join(", ")+"]";if("indent"===e.type)return"indent("+Bs(e.contents)+")";if("align"===e.type)return e.n===-1/0?"dedentToRoot("+Bs(e.contents)+")":e.n<0?"dedent("+Bs(e.contents)+")":"root"===e.n.type?"markAsRoot("+Bs(e.contents)+")":"align("+JSON.stringify(e.n)+", "+Bs(e.contents)+")";if("if-break"===e.type)return"ifBreak("+Bs(e.breakContents)+(e.flatContents?", "+Bs(e.flatContents):"")+")";if("group"===e.type)return e.expandedStates?"conditionalGroup(["+e.expandedStates.map(Bs).join(",")+"])":(e.break?"wrappedGroup":"group")+"("+Bs(e.contents)+")";if("fill"===e.type)return"fill("+e.parts.map(Bs).join(", ")+")";if("line-suffix"===e.type)return"lineSuffix("+Bs(e.contents)+")";if("line-suffix-boundary"===e.type)return"lineSuffixBoundary";throw new Error("Unknown doc type "+e.type)}var Rs={builders:Mi,printer:{printDocToString:function(e,t){Es={};const n=t.printWidth,r=bs(t.endOfLine);let o=0;const i=[[{value:"",length:0,queue:[]},1,e]],s=[];let a=!1,u=[];for(;0!==i.length;){const[e,c,l]=i.pop();if("string"==typeof l){const e="\n"!==r&&l.includes("\n")?l.replace(/\n/g,r):l;s.push(e),o+=ys(e)}else switch(l.type){case"cursor":s.push(Cs.placeholder);break;case"concat":for(let t=l.parts.length-1;t>=0;t--)i.push([e,c,l.parts[t]]);break;case"indent":i.push([ws(e,t),c,l.contents]);break;case"align":i.push([As(e,l.n,t),c,l.contents]);break;case"trim":o-=xs(s);break;case"group":switch(c){case 2:if(!a){i.push([e,l.break?1:2,l.contents]);break}case 1:{a=!1;const r=[e,2,l.contents],s=n-o;if(!l.break&&_s(r,i,s,t))i.push(r);else if(l.expandedStates){const n=l.expandedStates[l.expandedStates.length-1];if(l.break){i.push([e,1,n]);break}for(let r=1;r<l.expandedStates.length+1;r++){if(r>=l.expandedStates.length){i.push([e,1,n]);break}{const n=[e,2,l.expandedStates[r]];if(_s(n,i,s,t)){i.push(n);break}}}}else i.push([e,1,l.contents]);break}}l.id&&(Es[l.id]=i[i.length-1][1]);break;case"fill":{const r=n-o,{parts:s}=l;if(0===s.length)break;const[a,u]=s,f=[e,2,a],p=[e,1,a],h=_s(f,[],r,t,!0);if(1===s.length){h?i.push(f):i.push(p);break}const d=[e,2,u],m=[e,1,u];if(2===s.length){h?(i.push(d),i.push(f)):(i.push(m),i.push(p));break}s.splice(0,2);const g=[e,c,Ds(s)],y=s[0];_s([e,2,vs([a,u,y])],[],r,t,!0)?(i.push(g),i.push(d),i.push(f)):h?(i.push(g),i.push(m),i.push(f)):(i.push(g),i.push(m),i.push(p));break}case"if-break":{const t=l.groupId?Es[l.groupId]:c;1===t&&l.breakContents&&i.push([e,c,l.breakContents]),2===t&&l.flatContents&&i.push([e,c,l.flatContents]);break}case"line-suffix":u.push([e,c,l.contents]);break;case"line-suffix-boundary":u.length>0&&i.push([e,c,{type:"line",hard:!0}]);break;case"line":switch(c){case 2:if(!l.hard){l.soft||(s.push(" "),o+=1);break}a=!0;case 1:if(u.length){i.push([e,c,l]),i.push(...u.reverse()),u=[];break}l.literal?e.root?(s.push(r,e.root.value),o=e.root.length):(s.push(r),o=0):(o-=xs(s),s.push(r+e.value),o=e.length)}}}const c=s.indexOf(Cs.placeholder);if(-1!==c){const e=s.indexOf(Cs.placeholder,c+1),t=s.slice(0,c).join(""),n=s.slice(c+1,e).join("");return{formatted:t+n+s.slice(e+1).join(""),cursorNodeStart:t.length,cursorNodeText:n}}return{formatted:s.join("")}}},utils:{isEmpty:function(e){return"string"==typeof e&&0===e.length},willBreak:function(e){return Ns(e,Ls,!1)},isLineNext:function(e){return Ns(e,Os,!1)},traverseDoc:Ts,findInDoc:Ns,mapDoc:ks,propagateBreaks:function(e){const t=new Set,n=[];Ts(e,(function(e){if("break-parent"===e.type&&Ms(n),"group"===e.type){if(n.push(e),t.has(e))return!1;t.add(e)}}),(function(e){"group"===e.type&&n.pop().break&&Ms(n)}),!0)},removeLines:function(e){return ks(e,Ps)},stripTrailingHardline:function e(t){if("concat"===t.type&&0!==t.parts.length){const n=t.parts[t.parts.length-1];if("concat"===n.type)return 2===n.parts.length&&n.parts[0].hard&&"break-parent"===n.parts[1].type?{type:"concat",parts:t.parts.slice(0,-1)}:{type:"concat",parts:t.parts.slice(0,-1).concat(e(n))}}return t}},debug:{printDocToDebug:e=>Bs(Is(e))}};const{getMaxContinuousCount:js,getStringWidth:Vs,getAlignmentSize:$s,getIndentSize:Us,skip:Ws,skipWhitespace:Ks,skipSpaces:qs,skipNewline:Hs,skipToLineEnd:zs,skipEverythingButNewLine:Ys,skipInlineComment:Js,skipTrailingComment:Gs,hasNewline:Xs,hasNewlineInRange:Qs,hasSpaces:Zs,isNextLineEmpty:ea,isNextLineEmptyAfterIndex:ta,isPreviousLineEmpty:na,getNextNonSpaceNonCommentCharacterIndex:ra,makeString:oa,addLeadingComment:ia,addDanglingComment:sa,addTrailingComment:aa}=ms;var ua={getMaxContinuousCount:js,getStringWidth:Vs,getAlignmentSize:$s,getIndentSize:Us,skip:Ws,skipWhitespace:Ks,skipSpaces:qs,skipNewline:Hs,skipToLineEnd:zs,skipEverythingButNewLine:Ys,skipInlineComment:Js,skipTrailingComment:Gs,hasNewline:Xs,hasNewlineInRange:Qs,hasSpaces:Zs,isNextLineEmpty:ea,isNextLineEmptyAfterIndex:ta,isPreviousLineEmpty:na,getNextNonSpaceNonCommentCharacterIndex:ra,makeString:oa,addLeadingComment:ia,addDanglingComment:sa,addTrailingComment:aa};const{concat:ca,line:la,hardline:fa,breakParent:pa,indent:ha,lineSuffix:da,join:ma,cursor:ga}=Rs.builders,{hasNewline:ya,skipNewline:ba,isPreviousLineEmpty:va}=ms,{addLeadingComment:Da,addDanglingComment:Ca,addTrailingComment:Ea}=ua,wa=Symbol("child-nodes");function Aa(e,t,n){if(!e)return;const{printer:r,locStart:o,locEnd:i}=t;if(n){if(r.canAttachComment&&r.canAttachComment(e)){let t;for(t=n.length-1;t>=0&&!(o(n[t])<=o(e)&&i(n[t])<=i(e));--t);return void n.splice(t+1,0,e)}}else if(e[wa])return e[wa];const s=r.getCommentChildNodes&&r.getCommentChildNodes(e,t)||"object"==typeof e&&Object.keys(e).filter((e=>"enclosingNode"!==e&&"precedingNode"!==e&&"followingNode"!==e)).map((t=>e[t]));return s?(n||Object.defineProperty(e,wa,{value:n=[],enumerable:!1}),s.forEach((e=>{Aa(e,t,n)})),n):void 0}function Sa(e,t,n){const{locStart:r,locEnd:o}=n,i=Aa(e,n);let s,a,u=0,c=i.length;for(;u<c;){const e=u+c>>1,l=i[e];if(r(l)-r(t)<=0&&o(t)-o(l)<=0)return t.enclosingNode=l,void Sa(l,t,n);if(o(l)-r(t)<=0)s=l,u=e+1;else{if(!(o(t)-r(l)<=0))throw new Error("Comment location overlaps with node location");a=l,c=e}}if(t.enclosingNode&&"TemplateLiteral"===t.enclosingNode.type){const{quasis:e}=t.enclosingNode,r=Fa(e,t,n);s&&Fa(e,s,n)!==r&&(s=null),a&&Fa(e,a,n)!==r&&(a=null)}s&&(t.precedingNode=s),a&&(t.followingNode=a)}function xa(e,t,n){const r=e.length;if(0===r)return;const{precedingNode:o,followingNode:i,enclosingNode:s}=e[0],a=n.printer.getGapRegex&&n.printer.getGapRegex(s)||/^[\s(]*$/;let u,c=n.locStart(i);for(u=r;u>0;--u){const r=e[u-1];xi.strictEqual(r.precedingNode,o),xi.strictEqual(r.followingNode,i);const s=t.slice(n.locEnd(r),c);if(!a.test(s))break;c=n.locStart(r)}e.forEach(((e,t)=>{t<u?Ea(o,e):Da(i,e)})),e.length=0}function _a(e,t){return e.getValue().printed=!0,t.printer.printComment(e,t)}function Fa(e,t,n){const r=n.locStart(t)-1;for(let t=1;t<e.length;++t)if(r<(o=e[t],void 0!==o.start?{start:o.start,end:o.end}:{start:o.range[0],end:o.range[1]}).start)return t-1;var o;return 0}function Ta(e,t,n){return e.getNode()===t.cursorNode&&e.getValue()?ca([ga,n,ga]):n}var ka={attach:function(e,t,n,r){if(!Array.isArray(e))return;const o=[],{locStart:i,locEnd:s}=r;e.forEach(((a,u)=>{if("json"===r.parser||"json5"===r.parser||"__js_expression"===r.parser||"__vue_expression"===r.parser){if(i(a)-i(t)<=0)return void Da(t,a);if(s(a)-s(t)>=0)return void Ea(t,a)}Sa(t,a,r);const{precedingNode:c,enclosingNode:l,followingNode:f}=a,p=r.printer.handleComments&&r.printer.handleComments.ownLine?r.printer.handleComments.ownLine:()=>!1,h=r.printer.handleComments&&r.printer.handleComments.endOfLine?r.printer.handleComments.endOfLine:()=>!1,d=r.printer.handleComments&&r.printer.handleComments.remaining?r.printer.handleComments.remaining:()=>!1,m=e.length-1===u;if(ya(n,i(a),{backwards:!0}))p(a,n,r,t,m)||(f?Da(f,a):c?Ea(c,a):Ca(l||t,a));else if(ya(n,s(a)))h(a,n,r,t,m)||(c?Ea(c,a):f?Da(f,a):Ca(l||t,a));else if(d(a,n,r,t,m));else if(c&&f){const e=o.length;e>0&&o[e-1].followingNode!==a.followingNode&&xa(o,n,r),o.push(a)}else c?Ea(c,a):f?Da(f,a):Ca(l||t,a)})),xa(o,n,r),e.forEach((e=>{delete e.precedingNode,delete e.enclosingNode,delete e.followingNode}))},printComments:function(e,t,n,r){const o=e.getValue(),i=t(e),s=o&&o.comments;if(!s||0===s.length)return Ta(e,n,i);const a=[],u=[r?";":"",i];return e.each((e=>{const t=e.getValue(),{leading:r,trailing:o}=t;if(r){const r=function(e,t,n){const r=e.getValue(),o=_a(e,n);if(!o)return"";if(n.printer.isBlockComment&&n.printer.isBlockComment(r)){const e=ya(n.originalText,n.locEnd(r))?ya(n.originalText,n.locStart(r),{backwards:!0})?fa:la:" ";return ca([o,e])}return ca([o,fa])}(e,0,n);if(!r)return;a.push(r);const o=n.originalText,i=ba(o,n.locEnd(t));!1!==i&&ya(o,i)&&a.push(fa)}else o&&u.push(function(e,t,n){const r=e.getValue(),o=_a(e,n);if(!o)return"";const i=n.printer.isBlockComment&&n.printer.isBlockComment(r),s=e.getNode(1),a=e.getNode(2),u=a&&("ClassDeclaration"===a.type||"ClassExpression"===a.type)&&a.superClass===s;if(ya(n.originalText,n.locStart(r),{backwards:!0})){const e=va(n.originalText,r,n.locStart);return da(ca([fa,e?fa:"",o]))}return ca(i||u?[" ",o]:[da(ca([" ",o])),i?"":pa])}(e,0,n))}),"comments"),Ta(e,n,ca(a.concat(u)))},printDanglingComments:function(e,t,n,r){const o=[],i=e.getValue();return i&&i.comments?(e.each((e=>{const n=e.getValue();!n||n.leading||n.trailing||r&&!r(n)||o.push(_a(e,t))}),"comments"),0===o.length?"":n?ma(fa,o):ha(ca([fa,ma(fa,o)]))):""},getSortedChildNodes:Aa};function Na(e,t){const n=Oa(e.stack,t);return-1===n?null:e.stack[n]}function Oa(e,t){for(let n=e.length-1;n>=0;n-=2){const r=e[n];if(r&&!Array.isArray(r)&&--t<0)return n}return-1}var La=class{constructor(e){this.stack=[e]}getName(){const{stack:e}=this,{length:t}=e;return t>1?e[t-2]:null}getValue(){return To(this.stack)}getNode(e=0){return Na(this,e)}getParentNode(e=0){return Na(this,e+1)}call(e,...t){const{stack:n}=this,{length:r}=n;let o=To(n);for(const e of t)o=o[e],n.push(e,o);const i=e(this);return n.length=r,i}callParent(e,t=0){const n=Oa(this.stack,t+1),r=this.stack.splice(n+1),o=e(this);return this.stack.push(...r),o}each(e,...t){const{stack:n}=this,{length:r}=n;let o=To(n);for(const e of t)o=o[e],n.push(e,o);for(let t=0;t<o.length;++t)t in o&&(n.push(t,o[t]),e(this),n.length-=2);n.length=r}map(e,...t){const{stack:n}=this,{length:r}=n;let o=To(n);for(const e of t)o=o[e],n.push(e,o);const i=new Array(o.length);for(let t=0;t<o.length;++t)t in o&&(n.push(t,o[t]),i[t]=e(this,t),n.length-=2);return n.length=r,i}match(...e){let t=this.stack.length-1,n=null,r=this.stack[t--];for(const o of e){if(void 0===r)return!1;let e=null;if("number"==typeof n&&(e=n,n=this.stack[t--],r=this.stack[t--]),o&&!o(r,n,e))return!1;n=this.stack[t--],r=this.stack[t--]}return!0}};const{normalize:Ma}=Ai;var Pa={printSubtree:function(e,t,n,r){if(n.printer.embed)return n.printer.embed(e,t,((e,t)=>function(e,t,n,r){const o=Ma(Object.assign({},n,{},t,{parentParser:n.parser,embeddedInHtml:!(!n.embeddedInHtml&&"html"!==n.parser&&"vue"!==n.parser&&"angular"!==n.parser&&"lwc"!==n.parser),originalText:e}),{passThrough:!0}),i=bi.parse(e,o),{ast:s}=i;e=i.text;const a=s.comments;return delete s.comments,ka.attach(a,s,e,o),r(s,o)}(e,t,n,r)),n)}};const Ia=Rs,Ba=Ia.builders,{concat:Ra,hardline:ja,addAlignmentToDoc:Va}=Ba,$a=Ia.utils;function Ua(e,t,n=0){const{printer:r}=t;r.preprocess&&(e=r.preprocess(e,t));const o=new Map;let i=function e(n,i){const s=n.getValue(),a=s&&"object"==typeof s&&void 0===i;if(a&&o.has(s))return o.get(s);let u;return u=r.willPrintOwnComments&&r.willPrintOwnComments(n,t)?Wa(n,t,e,i):ka.printComments(n,(n=>Wa(n,t,e,i)),t,i&&i.needsSemi),a&&o.set(s,u),u}(new La(e));return n>0&&(i=Va(Ra([ja,i]),n,t.tabWidth)),$a.propagateBreaks(i),i}function Wa(e,t,n,r){xi.ok(e instanceof La);const o=e.getValue(),{printer:i}=t;if(i.hasPrettierIgnore&&i.hasPrettierIgnore(e))return t.originalText.slice(t.locStart(o),t.locEnd(o));if(o)try{const r=Pa.printSubtree(e,n,t,Ua);if(r)return r}catch(e){if(rt.PRETTIER_DEBUG)throw e}return i.print(e,t,n,r)}var Ka=Ua;function qa(e,t,n,r,o){r=r||(()=>!0),o=o||[];const i=n.locStart(e,n.locStart),s=n.locEnd(e,n.locEnd);if(i<=t&&t<=s){for(const i of ka.getSortedChildNodes(e,n)){const s=qa(i,t,n,r,[e].concat(o));if(s)return s}if(r(e))return{node:e,parentNodes:o}}}function Ha(e,t){if(null==t)return!1;const n=["FunctionDeclaration","BlockStatement","BreakStatement","ContinueStatement","DebuggerStatement","DoWhileStatement","EmptyStatement","ExpressionStatement","ForInStatement","ForStatement","IfStatement","LabeledStatement","ReturnStatement","SwitchStatement","ThrowStatement","TryStatement","VariableDeclaration","WhileStatement","WithStatement","ClassDeclaration","ImportDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExportAllDeclaration","TypeAlias","InterfaceDeclaration","TypeAliasDeclaration","ExportAssignment","ExportDeclaration"],r=["ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral"],o=["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"];switch(e.parser){case"flow":case"babel":case"babel-flow":case"babel-ts":case"typescript":return n.includes(t.type);case"json":return r.includes(t.type);case"graphql":return o.includes(t.kind);case"vue":return"root"!==t.tag}return!1}var za={calculateRange:function(e,t,n){const r=e.slice(t.rangeStart,t.rangeEnd),o=Math.max(t.rangeStart+r.search(/\S/),t.rangeStart);let i;for(i=t.rangeEnd;i>t.rangeStart&&!e[i-1].match(/\S/);--i);const s=qa(n,o,t,(e=>Ha(t,e))),a=qa(n,i,t,(e=>Ha(t,e)));if(!s||!a)return{rangeStart:0,rangeEnd:0};const u=function(e,t,n){let r=e.node,o=t.node;if(r===o)return{startNode:r,endNode:o};for(const r of t.parentNodes){if(!("Program"!==r.type&&"File"!==r.type&&n.locStart(r)>=n.locStart(e.node)))break;o=r}for(const o of e.parentNodes){if(!("Program"!==o.type&&"File"!==o.type&&n.locEnd(o)<=n.locEnd(t.node)))break;r=o}return{startNode:r,endNode:o}}(s,a,t),{startNode:c,endNode:l}=u;return{rangeStart:Math.min(t.locStart(c,t.locStart),t.locStart(l,t.locStart)),rangeEnd:Math.max(t.locEnd(c,t.locEnd),t.locEnd(l,t.locEnd))}},findNodeAtOffset:qa},Ya=st(te);const Ja=Ai.normalize,{guessEndOfLine:Ga,convertEndOfLineToChars:Xa}=gs,{printer:{printDocToString:Qa},debug:{printDocToDebug:Za}}=Rs,eu=Symbol("cursor"),tu={cursorOffset:"<<<PRETTIER_CURSOR>>>",rangeStart:"<<<PRETTIER_RANGE_START>>>",rangeEnd:"<<<PRETTIER_RANGE_END>>>"};function nu(e,t,n){const r=t.comments;return r&&(delete t.comments,ka.attach(r,t,e,n)),t.tokens=[],n.originalText="yaml"===n.parser?e:e.trimEnd(),r}function ru(e,t,n){if(!e||!e.trim().length)return{formatted:"",cursorOffset:0};n=n||0;const r=bi.parse(e,t),{ast:o}=r;if(e=r.text,t.cursorOffset>=0){const e=za.findNodeAtOffset(o,t.cursorOffset,t);e&&e.node&&(t.cursorNode=e.node)}const i=nu(e,o,t),s=Ka(o,t,n),a=Qa(s,t);if(function(e){if(e){for(let t=0;t<e.length;++t)if(ms.isNodeIgnoreComment(e[t]))return;e.forEach((e=>{if(!e.printed)throw new Error('Comment "'+e.value.trim()+'" was not printed. Please report this error!');delete e.printed}))}}(i),n>0){const e=a.formatted.trim();void 0!==a.cursorNodeStart&&(a.cursorNodeStart-=a.formatted.indexOf(e)),a.formatted=e+Xa(t.endOfLine)}if(t.cursorOffset>=0){let n,r,o,i,s;if(t.cursorNode&&a.cursorNodeText?(n=t.locStart(t.cursorNode),r=e.slice(n,t.locEnd(t.cursorNode)),o=t.cursorOffset-n,i=a.cursorNodeStart,s=a.cursorNodeText):(n=0,r=e,o=t.cursorOffset,i=0,s=a.formatted),r===s)return{formatted:a.formatted,cursorOffset:i+o};const u=r.split("");u.splice(o,0,eu);const c=s.split(""),l=Ya.diffArrays(u,c);let f=i;for(const e of l)if(e.removed){if(e.value.includes(eu))break}else f+=e.count;return{formatted:a.formatted,cursorOffset:f}}return{formatted:a.formatted}}function ou(e,t){const n=bi.resolveParser(t),r=!n.hasPragma||n.hasPragma(e);if(t.requirePragma&&!r)return{formatted:e};"auto"===t.endOfLine&&(t.endOfLine=Ga(e));const o=t.cursorOffset>=0,i=t.rangeStart>0,s=t.rangeEnd<e.length;if(e.includes("\r")){const n=[o&&"cursorOffset",i&&"rangeStart",s&&"rangeEnd"].filter(Boolean).sort(((e,n)=>t[e]-t[n]));for(let r=n.length-1;r>=0;r--){const o=n[r];e=e.slice(0,t[o])+tu[o]+e.slice(t[o])}e=e.replace(/\r\n?/g,"\n");for(let r=0;r<n.length;r++){const o=n[r];e=e.replace(tu[o],((e,n)=>(t[o]=n,"")))}}const a="\ufeff"===e.charAt(0);a&&(e=e.slice(1),o&&t.cursorOffset++,i&&t.rangeStart++,s&&t.rangeEnd++),o||(t.cursorOffset=-1),t.rangeStart<0&&(t.rangeStart=0),t.rangeEnd>e.length&&(t.rangeEnd=e.length);const u=i||s?function(e,t){const n=bi.parse(e,t),{ast:r}=n;e=n.text;const o=za.calculateRange(e,t,r),{rangeStart:i,rangeEnd:s}=o,a=e.slice(i,s),u=Math.min(i,e.lastIndexOf("\n",i)+1),c=e.slice(u,i),l=ms.getAlignmentSize(c,t.tabWidth),f=ru(a,Object.assign({},t,{rangeStart:0,rangeEnd:1/0,cursorOffset:t.cursorOffset>=i&&t.cursorOffset<s?t.cursorOffset-i:-1}),l),p=f.formatted.trimEnd(),h=e.slice(0,i),d=e.slice(s);let m,{cursorOffset:g}=t;if(t.cursorOffset>=s?g=t.cursorOffset-s+(i+p.length):void 0!==f.cursorOffset&&(g=f.cursorOffset+i),"lf"===t.endOfLine)m=h+p+d;else{const e=Xa(t.endOfLine);if(g>=0){const t=[h,p,d];let n=0,r=g;for(;n<t.length;){const e=t[n];if(r<e.length){t[n]=t[n].slice(0,r)+tu.cursorOffset+t[n].slice(r);break}n++,r-=e.length}const[o,i,s]=t;m=(o.replace(/\n/g,e)+i+s.replace(/\n/g,e)).replace(tu.cursorOffset,((e,t)=>(g=t,"")))}else m=h.replace(/\n/g,e)+p+d.replace(/\n/g,e)}return{formatted:m,cursorOffset:g}}(e,t):ru(t.insertPragma&&t.printer.insertPragma&&!r?t.printer.insertPragma(e):e,t);return a&&(u.formatted="\ufeff"+u.formatted,o&&u.cursorOffset++),u}var iu={formatWithCursor:(e,t)=>ou(e,t=Ja(t)),parse(e,t,n){t=Ja(t),e.includes("\r")&&(e=e.replace(/\r\n?/g,"\n"));const r=bi.parse(e,t);return n&&(r.ast=Si(r.ast,t)),r},formatAST(e,t){t=Ja(t);const n=Ka(e,t);return Qa(n,t)},formatDoc:(e,t)=>ou(Za(e),t=Ja(Object.assign({},t,{parser:"babel"}))).formatted,printToDoc(e,t){t=Ja(t);const n=bi.parse(e,t),{ast:r}=n;return nu(e=n.text,r,t),Ka(r,t)},printDocToString:(e,t)=>Qa(e,Ja(t))};var su=function(e,t,n){if(["raw","raws","sourceIndex","source","before","after","trailingComma"].forEach((e=>{delete t[e]})),"yaml"===e.type&&delete t.value,"css-comment"===e.type&&"css-root"===n.type&&0!==n.nodes.length&&(n.nodes[0]===e||("yaml"===n.nodes[0].type||"toml"===n.nodes[0].type)&&n.nodes[1]===e)&&(delete t.text,/^\*\s*@(format|prettier)\s*$/.test(e.text)))return null;if("media-query"!==e.type&&"media-query-list"!==e.type&&"media-feature-expression"!==e.type||delete t.value,"css-rule"===e.type&&delete t.params,"selector-combinator"===e.type&&(t.value=t.value.replace(/\s+/g," ")),"media-feature"===e.type&&(t.value=t.value.replace(/ /g,"")),("value-word"===e.type&&(e.isColor&&e.isHex||["initial","inherit","unset","revert"].includes(t.value.replace().toLowerCase()))||"media-feature"===e.type||"selector-root-invalid"===e.type||"selector-pseudo"===e.type)&&(t.value=t.value.toLowerCase()),"css-decl"===e.type&&(t.prop=t.prop.toLowerCase()),"css-atrule"!==e.type&&"css-import"!==e.type||(t.name=t.name.toLowerCase()),"value-number"===e.type&&(t.unit=t.unit.toLowerCase()),"media-feature"!==e.type&&"media-keyword"!==e.type&&"media-type"!==e.type&&"media-unknown"!==e.type&&"media-url"!==e.type&&"media-value"!==e.type&&"selector-attribute"!==e.type&&"selector-string"!==e.type&&"selector-class"!==e.type&&"selector-combinator"!==e.type&&"value-string"!==e.type||!t.value||(t.value=t.value.replace(/'/g,'"').replace(/\\([^a-fA-F\d])/g,"$1")),"selector-attribute"===e.type&&(t.attribute=t.attribute.trim(),t.namespace&&"string"==typeof t.namespace&&(t.namespace=t.namespace.trim(),0===t.namespace.length&&(t.namespace=!0)),t.value&&(t.value=t.value.trim().replace(/^['"]|['"]$/g,""),delete t.quoted)),"media-value"!==e.type&&"media-type"!==e.type&&"value-number"!==e.type&&"selector-root-invalid"!==e.type&&"selector-class"!==e.type&&"selector-combinator"!==e.type&&"selector-tag"!==e.type||!t.value||(t.value=t.value.replace(/([\d.eE+-]+)([a-zA-Z]*)/g,((e,t,n)=>{const r=Number(t);return isNaN(r)?e:r+n.toLowerCase()}))),"selector-tag"===e.type){const n=e.value.toLowerCase();["from","to"].includes(n)&&(t.value=n)}"css-atrule"===e.type&&"supports"===e.name.toLowerCase()&&delete t.value,"selector-unknown"===e.type&&delete t.value};const{builders:{hardline:au,literalline:uu,concat:cu,markAsRoot:lu},utils:{mapDoc:fu}}=Rs;var pu=function(e,t,n){const r=e.getValue();return"yaml"===r.type?lu(cu(["---",au,r.value.trim()?function(e){return fu(e,(e=>"string"==typeof e&&e.includes("\n")?cu(e.split(/(\n)/g).map(((e,t)=>t%2==0?e:uu))):e))}(n(r.value,{parser:"yaml"})):"","---",au])):null};const hu=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");const t=e.match(/(?:\r?\n)/g)||[];if(0===t.length)return;const n=t.filter((e=>"\r\n"===e)).length;return n>t.length-n?"\r\n":"\n"};var du=hu;du.graceful=e=>"string"==typeof e&&hu(e)||"\n";var mu=it((function(e,t){function n(){const e=Vn;return n=function(){return e},e}function r(){const e=(t=du)&&t.__esModule?t:{default:t};var t;return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.extract=function(e){const t=e.match(s);return t?t[0].trimLeft():""},t.strip=function(e){const t=e.match(s);return t&&t[0]?e.substring(t[0].length):e},t.parse=function(e){return p(e).pragmas},t.parseWithComments=p,t.print=function({comments:e="",pragmas:t={}}){const o=(0,r().default)(e)||n().EOL,i=" *",s=Object.keys(t),a=s.map((e=>h(e,t[e]))).reduce(((e,t)=>e.concat(t)),[]).map((e=>" * "+e+o)).join("");if(!e){if(0===s.length)return"";if(1===s.length&&!Array.isArray(t[s[0]])){const e=t[s[0]];return"".concat("/**"," ").concat(h(s[0],e)[0]).concat(" */")}}const u=e.split(o).map((e=>"".concat(i," ").concat(e))).join(o)+o;return"/**"+o+(e?u:"")+(e&&s.length?i+o:"")+a+" */"};const o=/\*\/$/,i=/^\/\*\*/,s=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,a=/(^|\s+)\/\/([^\r\n]*)/g,u=/^(\r?\n)+/,c=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,l=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,f=/(\r?\n|^) *\* ?/g;function p(e){const t=(0,r().default)(e)||n().EOL;e=e.replace(i,"").replace(o,"").replace(f,"$1");let s="";for(;s!==e;)s=e,e=e.replace(c,"".concat(t,"$1 $2").concat(t));e=e.replace(u,"").trimRight();const p=Object.create(null),h=e.replace(l,"").replace(u,"").trimRight();let d;for(;d=l.exec(e);){const e=d[2].replace(a,"");"string"==typeof p[d[1]]||Array.isArray(p[d[1]])?p[d[1]]=[].concat(p[d[1]],e):p[d[1]]=e}return{comments:h,pragmas:p}}function h(e,t){return[].concat(t).map((t=>"@".concat(e," ").concat(t).trim()))}}));ot(mu),mu.extract,mu.strip,mu.parse,mu.parseWithComments,mu.print;var gu={hasPragma:function(e){const t=Object.keys(mu.parse(mu.extract(e)));return t.includes("prettier")||t.includes("format")},insertPragma:function(e){const t=mu.parseWithComments(mu.extract(e)),n=Object.assign({format:""},t.pragmas),r=mu.print({pragmas:n,comments:t.comments.replace(/^(\s+?\r?\n)+/,"")}).replace(/(\r\n|\r)/g,"\n"),o=mu.strip(e);return r+(o.startsWith("\n")?"\n":"\n\n")+o}};const yu={"---":"yaml","+++":"toml"};var bu=function(e){const t=Object.keys(yu).map(Wi).join("|"),n=e.match(new RegExp("^(".concat(t,")[^\\n\\S]*\\n(?:([\\s\\S]*?)\\n)?\\1[^\\n\\S]*(\\n|$)")));if(null===n)return{frontMatter:null,content:e};const[r,o,i]=n;return{frontMatter:{type:yu[o],value:i,raw:r.replace(/\n$/,"")},content:r.replace(/[^\n]/g," ")+e.slice(r.length)}};var vu={hasPragma:function(e){return gu.hasPragma(bu(e).content)},insertPragma:function(e){const{frontMatter:t,content:n}=bu(e);return(t?t.raw+"\n\n":"")+gu.insertPragma(n)}},Du=function(e,t){let n=0;for(let r=0;r<e.line-1;++r)if(n=t.indexOf("\n",n)+1,-1===n)return-1;return n+e.column};const{getLast:Cu,skipEverythingButNewLine:Eu}=ms;var wu={calculateLoc:function e(t,n){if(t&&"object"==typeof t){t.source&&(t.source.startOffset=function(e,t){return e.source?Du(e.source.start,t)-1:null}(t,n),t.source.endOffset=function(e,t){if("css-comment"===e.type&&e.inline)return Eu(t,e.source.startOffset);const n=e.nodes&&Cu(e.nodes);return n&&e.source&&!e.source.end&&(e=n),e.source&&e.source.end?Du(e.source.end,t):null}(t,n));for(const r in t)e(t[r],n)}},replaceQuotesInInlineComments:function(e){let t,n="initial",r="initial",o=!1;const i=[];for(let s=0;s<e.length;s++){const a=e[s];switch(n){case"initial":if("'"===a){n="single-quotes";continue}if('"'===a){n="double-quotes";continue}if(("u"===a||"U"===a)&&"url("===e.slice(s,s+4).toLowerCase()){n="url",s+=3;continue}if("*"===a&&"/"===e[s-1]){n="comment-block";continue}if("/"===a&&"/"===e[s-1]){n="comment-inline",t=s-1;continue}continue;case"single-quotes":if("'"===a&&"\\"!==e[s-1]&&(n=r,r="initial"),"\n"===a||"\r"===a)return e;continue;case"double-quotes":if('"'===a&&"\\"!==e[s-1]&&(n=r,r="initial"),"\n"===a||"\r"===a)return e;continue;case"url":if(")"===a&&(n="initial"),"\n"===a||"\r"===a)return e;if("'"===a){n="single-quotes",r="url";continue}if('"'===a){n="double-quotes",r="url";continue}continue;case"comment-block":"/"===a&&"*"===e[s-1]&&(n="initial");continue;case"comment-inline":'"'!==a&&"'"!==a||(o=!0),"\n"!==a&&"\r"!==a||(o&&i.push([t,s]),n="initial",o=!1);continue}}for(const[t,n]of i)e=e.slice(0,t)+e.slice(t,n).replace(/'/g,"￾").replace(/"/g,"￿")+e.slice(n);return e},restoreQuotesInInlineComments:function(e){return e.replace(/\ufffe/g,"'").replace(/\uffff/g,'"')}};const Au=["red","green","blue","alpha","a","rgb","hue","h","saturation","s","lightness","l","whiteness","w","blackness","b","tint","shade","blend","blenda","contrast","hsl","hsla","hwb","hwba"];function Su(e,t){const n=[].concat(t);let r,o=-1;for(;r=e.getParentNode(++o);)if(n.includes(r.type))return o;return-1}function xu(e,t){const n=Su(e,t);return-1===n?null:e.getParentNode(n)}function _u(e){return"value-operator"===e.type&&"*"===e.value}function Fu(e){return"value-operator"===e.type&&"/"===e.value}function Tu(e){return"value-operator"===e.type&&"+"===e.value}function ku(e){return"value-operator"===e.type&&"-"===e.value}function Nu(e){return"value-operator"===e.type&&"%"===e.value}function Ou(e){return"value-comma_group"===e.type&&e.groups&&e.groups[1]&&"value-colon"===e.groups[1].type}function Lu(e){return"value-paren_group"===e.type&&e.groups&&e.groups[0]&&Ou(e.groups[0])}var Mu={getAncestorCounter:Su,getAncestorNode:xu,getPropOfDeclNode:function(e){const t=xu(e,"css-decl");return t&&t.prop&&t.prop.toLowerCase()},maybeToLowerCase:function(e){return e.includes("$")||e.includes("@")||e.includes("#")||e.startsWith("%")||e.startsWith("--")||e.startsWith(":--")||e.includes("(")&&e.includes(")")?e:e.toLowerCase()},insideValueFunctionNode:function(e,t){const n=xu(e,"value-func");return n&&n.value&&n.value.toLowerCase()===t},insideICSSRuleNode:function(e){const t=xu(e,"css-rule");return t&&t.raws&&t.raws.selector&&(t.raws.selector.startsWith(":import")||t.raws.selector.startsWith(":export"))},insideAtRuleNode:function(e,t){const n=[].concat(t),r=xu(e,"css-atrule");return r&&n.includes(r.name.toLowerCase())},insideURLFunctionInImportAtRuleNode:function(e){const t=e.getValue(),n=xu(e,"css-atrule");return n&&"import"===n.name&&"url"===t.groups[0].value&&2===t.groups.length},isKeyframeAtRuleKeywords:function(e,t){const n=xu(e,"css-atrule");return n&&n.name&&n.name.toLowerCase().endsWith("keyframes")&&["from","to"].includes(t.toLowerCase())},isWideKeywords:function(e){return["initial","inherit","unset","revert"].includes(e.toLowerCase())},isSCSS:function(e,t){return"less"===e||"scss"===e?"scss"===e:/(\w\s*:\s*[^}:]+|#){|@import[^\n]+(?:url|,)/.test(t)},isLastNode:function(e,t){const n=e.getParentNode();if(!n)return!1;const{nodes:r}=n;return r&&r.indexOf(t)===r.length-1},isLessParser:function(e){return"css"===e.parser||"less"===e.parser},isSCSSControlDirectiveNode:function(e){return"css-atrule"===e.type&&["if","else","for","each","while"].includes(e.name)},isDetachedRulesetDeclarationNode:function(e){return!!e.selector&&("string"==typeof e.selector&&/^@.+:.*$/.test(e.selector)||e.selector.value&&/^@.+:.*$/.test(e.selector.value))},isRelationalOperatorNode:function(e){return"value-word"===e.type&&["<",">","<=",">="].includes(e.value)},isEqualityOperatorNode:function(e){return"value-word"===e.type&&["==","!="].includes(e.value)},isMultiplicationNode:_u,isDivisionNode:Fu,isAdditionNode:Tu,isSubtractionNode:ku,isModuloNode:Nu,isMathOperatorNode:function(e){return _u(e)||Fu(e)||Tu(e)||ku(e)||Nu(e)},isEachKeywordNode:function(e){return"value-word"===e.type&&"in"===e.value},isForKeywordNode:function(e){return"value-word"===e.type&&["from","through","end"].includes(e.value)},isURLFunctionNode:function(e){return"value-func"===e.type&&"url"===e.value.toLowerCase()},isIfElseKeywordNode:function(e){return"value-word"===e.type&&["and","or","not"].includes(e.value)},hasComposesNode:function(e){return e.value&&"value-root"===e.value.type&&e.value.group&&"value-value"===e.value.group.type&&"composes"===e.prop.toLowerCase()},hasParensAroundNode:function(e){return e.value&&e.value.group&&e.value.group.group&&"value-paren_group"===e.value.group.group.type&&null!==e.value.group.group.open&&null!==e.value.group.group.close},hasEmptyRawBefore:function(e){return e.raws&&""===e.raws.before},isSCSSNestedPropertyNode:function(e){return!!e.selector&&e.selector.replace(/\/\*.*?\*\//,"").replace(/\/\/.*?\n/,"").trim().endsWith(":")},isDetachedRulesetCallNode:function(e){return e.raws&&e.raws.params&&/^\(\s*\)$/.test(e.raws.params)},isTemplatePlaceholderNode:function(e){return e.name.startsWith("prettier-placeholder")},isTemplatePropNode:function(e){return e.prop.startsWith("@prettier-placeholder")},isPostcssSimpleVarNode:function(e,t){return"$$"===e.value&&"value-func"===e.type&&t&&"value-word"===t.type&&!t.raws.before},isKeyValuePairNode:Ou,isKeyValuePairInParenGroupNode:Lu,isSCSSMapItemNode:function(e){const t=e.getValue();if(0===t.groups.length)return!1;const n=e.getParentNode(1);if(!(Lu(t)||n&&Lu(n)))return!1;const r=xu(e,"css-decl");return!!(r&&r.prop&&r.prop.startsWith("$"))||!!Lu(n)||"value-func"===n.type},isInlineValueCommentNode:function(e){return"value-comment"===e.type&&e.inline},isHashNode:function(e){return"value-word"===e.type&&"#"===e.value},isLeftCurlyBraceNode:function(e){return"value-word"===e.type&&"{"===e.value},isRightCurlyBraceNode:function(e){return"value-word"===e.type&&"}"===e.value},isWordNode:function(e){return["value-word","value-atword"].includes(e.type)},isColonNode:function(e){return"value-colon"===e.type},isMediaAndSupportsKeywords:function(e){return e.value&&["not","and","or"].includes(e.value.toLowerCase())},isColorAdjusterFuncNode:function(e){return"value-func"===e.type&&Au.includes(e.value.toLowerCase())},lastLineHasInlineComment:function(e){return/\/\//.test(e.split(/[\r\n]/).pop())}};const{insertPragma:Pu}=vu,{printNumber:Iu,printString:Bu,hasIgnoreComment:Ru,hasNewline:ju}=ms,{isNextLineEmpty:Vu}=ua,{restoreQuotesInInlineComments:$u}=wu,{builders:{concat:Uu,join:Wu,line:Ku,hardline:qu,softline:Hu,group:zu,fill:Yu,indent:Ju,dedent:Gu,ifBreak:Xu},utils:{removeLines:Qu}}=Rs,{getAncestorNode:Zu,getPropOfDeclNode:ec,maybeToLowerCase:tc,insideValueFunctionNode:nc,insideICSSRuleNode:rc,insideAtRuleNode:oc,insideURLFunctionInImportAtRuleNode:ic,isKeyframeAtRuleKeywords:sc,isWideKeywords:ac,isSCSS:uc,isLastNode:cc,isLessParser:lc,isSCSSControlDirectiveNode:fc,isDetachedRulesetDeclarationNode:pc,isRelationalOperatorNode:hc,isEqualityOperatorNode:dc,isMultiplicationNode:mc,isDivisionNode:gc,isAdditionNode:yc,isSubtractionNode:bc,isMathOperatorNode:vc,isEachKeywordNode:Dc,isForKeywordNode:Cc,isURLFunctionNode:Ec,isIfElseKeywordNode:wc,hasComposesNode:Ac,hasParensAroundNode:Sc,hasEmptyRawBefore:xc,isKeyValuePairNode:_c,isDetachedRulesetCallNode:Fc,isTemplatePlaceholderNode:Tc,isTemplatePropNode:kc,isPostcssSimpleVarNode:Nc,isSCSSMapItemNode:Oc,isInlineValueCommentNode:Lc,isHashNode:Mc,isLeftCurlyBraceNode:Pc,isRightCurlyBraceNode:Ic,isWordNode:Bc,isColonNode:Rc,isMediaAndSupportsKeywords:jc,isColorAdjusterFuncNode:Vc,lastLineHasInlineComment:$c}=Mu;function Uc(e){switch(e.trailingComma){case"all":case"es5":return!0;case"none":default:return!1}}function Wc(e,t,n){const r=e.getValue(),o=[];let i=0;return e.map((e=>{const s=r.nodes[i-1];if(s&&"css-comment"===s.type&&"prettier-ignore"===s.text.trim()){const n=e.getValue();o.push(t.originalText.slice(t.locStart(n),t.locEnd(n)))}else o.push(e.call(n));i!==r.nodes.length-1&&("css-comment"===r.nodes[i+1].type&&!ju(t.originalText,t.locStart(r.nodes[i+1]),{backwards:!0})&&"yaml"!==r.nodes[i].type&&"toml"!==r.nodes[i].type||"css-atrule"===r.nodes[i+1].type&&"else"===r.nodes[i+1].name&&"css-comment"!==r.nodes[i].type?o.push(" "):(o.push(t.__isHTMLStyleAttribute?Ku:qu),Vu(t.originalText,e.getValue(),t.locEnd)&&"yaml"!==r.nodes[i].type&&"toml"!==r.nodes[i].type&&o.push(qu))),i++}),"nodes"),Uu(o)}const Kc=/(['"])(?:(?!\1)[^\\]|\\[\s\S])*\1/g,qc=new RegExp(Kc.source+"|"+"(".concat(/[$@]?[a-zA-Z_\u0080-\uFFFF][\w\-\u0080-\uFFFF]*/g.source,")?")+"(".concat(/(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?/g.source,")")+"(".concat(/[a-zA-Z]+/g.source,")?"),"g");function Hc(e,t){return e.replace(Kc,(e=>Bu(e,t)))}function zc(e,t){const n=t.singleQuote?"'":'"';return e.includes('"')||e.includes("'")?e:n+e+n}function Yc(e){return e.replace(qc,((e,t,n,r,o)=>!n&&r?Jc(r)+tc(o||""):e))}function Jc(e){return Iu(e).replace(/\.0(?=$|e)/,"")}var Gc={print:function(e,t,n){const r=e.getValue();if(!r)return"";if("string"==typeof r)return r;switch(r.type){case"yaml":case"toml":return Uu([r.raw,qu]);case"css-root":{const r=Wc(e,t,n);return r.parts.length?Uu([r,t.__isHTMLStyleAttribute?"":qu]):r}case"css-comment":{const e=r.inline||r.raws.inline,n=t.originalText.slice(t.locStart(r),t.locEnd(r));return e?n.trimEnd():n}case"css-rule":return Uu([e.call(n,"selector"),r.important?" !important":"",r.nodes?Uu([r.selector&&"selector-unknown"===r.selector.type&&$c(r.selector.value)?Ku:" ","{",r.nodes.length>0?Ju(Uu([qu,Wc(e,t,n)])):"",qu,"}",pc(r)?";":""]):";"]);case"css-decl":{const o=e.getParentNode();return Uu([r.raws.before.replace(/[\s;]/g,""),rc(e)?r.prop:tc(r.prop),":"===r.raws.between.trim()?":":r.raws.between.trim(),r.extend?"":" ",Ac(r)?Qu(e.call(n,"value")):e.call(n,"value"),r.raws.important?r.raws.important.replace(/\s*!\s*important/i," !important"):r.important?" !important":"",r.raws.scssDefault?r.raws.scssDefault.replace(/\s*!default/i," !default"):r.scssDefault?" !default":"",r.raws.scssGlobal?r.raws.scssGlobal.replace(/\s*!global/i," !global"):r.scssGlobal?" !global":"",r.nodes?Uu([" {",Ju(Uu([Hu,Wc(e,t,n)])),Hu,"}"]):kc(r)&&!o.raws.semicolon&&";"!==t.originalText[t.locEnd(r)-1]?"":";"])}case"css-atrule":{const o=e.getParentNode(),i=Tc(r)&&!o.raws.semicolon&&";"!==t.originalText[t.locEnd(r)-1];if(lc(t)){if(r.mixin)return Uu([e.call(n,"selector"),r.important?" !important":"",i?"":";"]);if(r.function)return Uu([r.name,Uu([e.call(n,"params")]),i?"":";"]);if(r.variable)return Uu(["@",r.name,": ",r.value?Uu([e.call(n,"value")]):"",r.raws.between.trim()?r.raws.between.trim()+" ":"",r.nodes?Uu(["{",Ju(Uu([r.nodes.length>0?Hu:"",Wc(e,t,n)])),Hu,"}"]):"",i?"":";"])}return Uu(["@",Fc(r)||r.name.endsWith(":")?r.name:tc(r.name),r.params?Uu([Fc(r)?"":Tc(r)?""===r.raws.afterName?"":r.name.endsWith(":")?" ":/^\s*\n\s*\n/.test(r.raws.afterName)?Uu([qu,qu]):/^\s*\n/.test(r.raws.afterName)?qu:" ":" ",e.call(n,"params")]):"",r.selector?Ju(Uu([" ",e.call(n,"selector")])):"",r.value?zu(Uu([" ",e.call(n,"value"),fc(r)?Sc(r)?" ":Ku:""])):"else"===r.name?" ":"",r.nodes?Uu([fc(r)?"":" ","{",Ju(Uu([r.nodes.length>0?Hu:"",Wc(e,t,n)])),Hu,"}"]):i?"":";"])}case"media-query-list":{const t=[];return e.each((e=>{const r=e.getValue();"media-query"===r.type&&""===r.value||t.push(e.call(n))}),"nodes"),zu(Ju(Wu(Ku,t)))}case"media-query":return Uu([Wu(" ",e.map(n,"nodes")),cc(e,r)?"":","]);case"media-type":return Yc(Hc(r.value,t));case"media-feature-expression":return r.nodes?Uu(["(",Uu(e.map(n,"nodes")),")"]):r.value;case"media-feature":return tc(Hc(r.value.replace(/ +/g," "),t));case"media-colon":return Uu([r.value," "]);case"media-value":return Yc(Hc(r.value,t));case"media-keyword":return Hc(r.value,t);case"media-url":return Hc(r.value.replace(/^url\(\s+/gi,"url(").replace(/\s+\)$/gi,")"),t);case"media-unknown":return r.value;case"selector-root":return zu(Uu([oc(e,"custom-selector")?Uu([Zu(e,"css-atrule").customSelector,Ku]):"",Wu(Uu([",",oc(e,["extend","custom-selector","nest"])?Ku:qu]),e.map(n,"nodes"))]));case"selector-selector":return zu(Ju(Uu(e.map(n,"nodes"))));case"selector-comment":return r.value;case"selector-string":return Hc(r.value,t);case"selector-tag":{const t=e.getParentNode(),n=t&&t.nodes.indexOf(r),o=n&&t.nodes[n-1];return Uu([r.namespace?Uu([!0===r.namespace?"":r.namespace.trim(),"|"]):"","selector-nesting"===o.type?r.value:Yc(sc(e,r.value)?r.value.toLowerCase():r.value)])}case"selector-id":return Uu(["#",r.value]);case"selector-class":return Uu([".",Yc(Hc(r.value,t))]);case"selector-attribute":return Uu(["[",r.namespace?Uu([!0===r.namespace?"":r.namespace.trim(),"|"]):"",r.attribute.trim(),r.operator?r.operator:"",r.value?zc(Hc(r.value.trim(),t),t):"",r.insensitive?" i":"","]"]);case"selector-combinator":{if("+"===r.value||">"===r.value||"~"===r.value||">>>"===r.value){const t=e.getParentNode(),n="selector-selector"===t.type&&t.nodes[0]===r?"":Ku;return Uu([n,r.value,cc(e,r)?"":" "])}const n=r.value.trim().startsWith("(")?Ku:"",o=Yc(Hc(r.value.trim(),t))||Ku;return Uu([n,o])}case"selector-universal":return Uu([r.namespace?Uu([!0===r.namespace?"":r.namespace.trim(),"|"]):"",r.value]);case"selector-pseudo":return Uu([tc(r.value),r.nodes&&r.nodes.length>0?Uu(["(",Wu(", ",e.map(n,"nodes")),")"]):""]);case"selector-nesting":return r.value;case"selector-unknown":{const n=Zu(e,"css-rule");if(n&&n.isSCSSNesterProperty)return Yc(Hc(tc(r.value),t));const o=e.getParentNode();if(o.raws&&o.raws.selector){const e=t.locStart(o),n=e+o.raws.selector.length;return t.originalText.slice(e,n).trim()}return r.value}case"value-value":case"value-root":return e.call(n,"group");case"value-comment":return Uu([r.inline?"//":"/*",$u(r.value),r.inline?"":"*/"]);case"value-comma_group":{const t=e.getParentNode(),o=e.getParentNode(1),i=ec(e),s=i&&"value-value"===t.type&&("grid"===i||i.startsWith("grid-template")),a=Zu(e,"css-atrule"),u=a&&fc(a),c=e.map(n,"groups"),l=[],f=nc(e,"url");let p=!1,h=!1;for(let t=0;t<r.groups.length;++t){l.push(c[t]);const n=r.groups[t-1],i=r.groups[t],d=r.groups[t+1],m=r.groups[t+2];if(f){(d&&yc(d)||yc(i))&&l.push(" ");continue}if(!d)continue;if(!n&&"--"===i.value&&"value-atword"===d.type)continue;const g="value-string"===i.type&&i.value.startsWith("#{"),y=p&&"value-string"===d.type&&d.value.endsWith("}");if(g||y){p=!p;continue}if(p)continue;if(Rc(i)||Rc(d))continue;if("value-atword"===i.type&&""===i.value)continue;if("~"===i.value)continue;if(i.value&&i.value.includes("\\")&&d&&"value-comment"!==d.type)continue;if(n&&n.value&&n.value.indexOf("\\")===n.value.length-1&&"value-operator"===i.type&&"/"===i.value)continue;if("\\"===i.value)continue;if(Nc(i,d))continue;if(Mc(i)||Pc(i)||Ic(d)||Pc(d)&&xc(d)||Ic(i)&&xc(d))continue;if("--"===i.value&&Mc(d))continue;const b=vc(i),v=vc(d);if((b&&Mc(d)||v&&Ic(i))&&xc(d))continue;if(nc(e,"calc")&&(yc(i)||yc(d)||bc(i)||bc(d))&&xc(d))continue;const D=(yc(i)||bc(i))&&0===t&&("value-number"===d.type||d.isHex)&&o&&Vc(o)&&!xc(d),C=m&&"value-func"===m.type||m&&Bc(m)||"value-func"===i.type||Bc(i),E="value-func"===d.type||Bc(d)||n&&"value-func"===n.type||n&&Bc(n);(mc(d)||mc(i)||nc(e,"calc")||D||!(gc(d)&&!C||gc(i)&&!E||yc(d)&&!C||yc(i)&&!E||bc(d)||bc(i))||!(xc(d)||b&&(!n||n&&vc(n))))&&(Lc(i)?l.push(qu):u&&(dc(d)||hc(d)||wc(d)||Dc(i)||Cc(i))||a&&"namespace"===a.name.toLowerCase()?l.push(" "):s?i.source&&d.source&&i.source.start.line!==d.source.start.line?(l.push(qu),h=!0):l.push(" "):v?l.push(" "):l.push(Ku))}return h&&l.unshift(qu),u?zu(Ju(Uu(l))):ic(e)?zu(Yu(l)):zu(Ju(Yu(l)))}case"value-paren_group":{const o=e.getParentNode();if(o&&Ec(o)&&(1===r.groups.length||r.groups.length>0&&"value-comma_group"===r.groups[0].type&&r.groups[0].groups.length>0&&"value-word"===r.groups[0].groups[0].type&&r.groups[0].groups[0].value.startsWith("data:")))return Uu([r.open?e.call(n,"open"):"",Wu(",",e.map(n,"groups")),r.close?e.call(n,"close"):""]);if(!r.open){const t=e.map(n,"groups"),r=[];for(let e=0;e<t.length;e++)0!==e&&r.push(Uu([",",Ku])),r.push(t[e]);return zu(Ju(Yu(r)))}const i=Oc(e),s=r.groups[r.groups.length-1],a=s&&"value-comment"===s.type;return zu(Uu([r.open?e.call(n,"open"):"",Ju(Uu([Hu,Wu(Uu([",",Ku]),e.map((e=>{const t=e.getValue(),r=n(e);return _c(t)&&"value-comma_group"===t.type&&t.groups&&t.groups[2]&&"value-paren_group"===t.groups[2].type?(r.contents.contents.parts[1]=zu(r.contents.contents.parts[1]),zu(Gu(r))):r}),"groups"))])),Xu(!a&&uc(t.parser,t.originalText)&&i&&Uc(t)?",":""),Hu,r.close?e.call(n,"close"):""]),{shouldBreak:i})}case"value-func":return Uu([r.value,oc(e,"supports")&&jc(r)?" ":"",e.call(n,"group")]);case"value-paren":return r.value;case"value-number":return Uu([Jc(r.value),tc(r.unit)]);case"value-operator":return r.value;case"value-word":return r.isColor&&r.isHex||ac(r.value)?r.value.toLowerCase():r.value;case"value-colon":return Uu([r.value,nc(e,"url")?"":Ku]);case"value-comma":return Uu([r.value," "]);case"value-string":return Bu(r.raws.quote+r.value+r.raws.quote,t);case"value-atword":return Uu(["@",r.value]);case"value-unicode-range":case"value-unknown":return r.value;default:throw new Error("Unknown postcss type ".concat(JSON.stringify(r.type)))}},embed:pu,insertPragma:Pu,hasPrettierIgnore:Ru,massageAstNode:su};const Xc="Common";var Qc={bracketSpacing:{since:"0.0.0",category:Xc,type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{since:"0.0.0",category:Xc,type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{since:"1.8.2",category:Xc,type:"choice",default:[{since:"1.8.2",value:!0},{since:"1.9.0",value:"preserve"}],description:"How to wrap prose.",choices:[{since:"1.9.0",value:"always",description:"Wrap prose if it exceeds the print width."},{since:"1.9.0",value:"never",description:"Do not wrap prose."},{since:"1.9.0",value:"preserve",description:"Wrap prose as-is."}]}},Zc={singleQuote:Qc.singleQuote},el=function(e,t){const{languageId:n}=e,r=dt(e,["languageId"]);return Object.assign({linguistLanguageId:n},r,{},t(e))},tl="markup",nl="source.css",rl="text/css",ol="#563d7c",il=[".css"],sl={name:"CSS",type:tl,tmScope:nl,aceMode:"css",codemirrorMode:"css",codemirrorMimeType:rl,color:ol,extensions:il,languageId:50},al=Object.freeze({__proto__:null,name:"CSS",type:tl,tmScope:nl,aceMode:"css",codemirrorMode:"css",codemirrorMimeType:rl,color:ol,extensions:il,languageId:50,default:sl}),ul="PostCSS",cl="markup",ll="source.postcss",fl=[".pcss",".postcss"],pl="text",hl=262764437,dl={name:ul,type:cl,tmScope:ll,group:"CSS",extensions:fl,aceMode:pl,languageId:hl},ml=Object.freeze({__proto__:null,name:ul,type:cl,tmScope:ll,group:"CSS",extensions:fl,aceMode:pl,languageId:hl,default:dl}),gl="Less",yl="markup",bl=[".less"],vl="source.css.less",Dl="less",Cl="text/css",El={name:gl,type:yl,group:"CSS",extensions:bl,tmScope:vl,aceMode:Dl,codemirrorMode:"css",codemirrorMimeType:Cl,languageId:198},wl=Object.freeze({__proto__:null,name:gl,type:yl,group:"CSS",extensions:bl,tmScope:vl,aceMode:Dl,codemirrorMode:"css",codemirrorMimeType:Cl,languageId:198,default:El}),Al="SCSS",Sl="markup",xl="source.css.scss",_l="scss",Fl="text/x-scss",Tl=[".scss"],kl={name:Al,type:Sl,tmScope:xl,group:"CSS",aceMode:_l,codemirrorMode:"css",codemirrorMimeType:Fl,extensions:Tl,languageId:329},Nl=Object.freeze({__proto__:null,name:Al,type:Sl,tmScope:xl,group:"CSS",aceMode:_l,codemirrorMode:"css",codemirrorMimeType:Fl,extensions:Tl,languageId:329,default:kl}),Ol=st(al),Ll=st(ml),Ml=st(wl),Pl=st(Nl);var Il={languages:[el(Ol,(()=>({since:"1.4.0",parsers:["css"],vscodeLanguageIds:["css"]}))),el(Ll,(()=>({since:"1.4.0",parsers:["css"],vscodeLanguageIds:["postcss"]}))),el(Ml,(()=>({since:"1.4.0",parsers:["less"],vscodeLanguageIds:["less"]}))),el(Pl,(()=>({since:"1.4.0",parsers:["scss"],vscodeLanguageIds:["scss"]})))],options:Zc,printers:{postcss:Gc}};var Bl={hasPragma:function(e){return/^\s*#[^\n\S]*@(format|prettier)\s*(\n|$)/.test(e)},insertPragma:function(e){return"# @format\n\n"+e}};const{concat:Rl,join:jl,hardline:Vl,line:$l,softline:Ul,group:Wl,indent:Kl,ifBreak:ql}=Rs.builders,{hasIgnoreComment:Hl}=ms,{isNextLineEmpty:zl}=ua,{insertPragma:Yl}=Bl;function Jl(e,t,n){return 0===n.directives.length?"":Rl([" ",Wl(Kl(Rl([Ul,jl(Rl([ql(""," "),Ul]),e.map(t,"directives"))])))])}function Gl(e,t,n){const r=e.getValue().length;return e.map(((e,o)=>{const i=n(e);return zl(t.originalText,e.getValue(),t.locEnd)&&o<r-1?Rl([i,Vl]):i}))}function Xl(e,t,n){return","===n.originalText.slice(e.loc.end,t.loc.start).replace(/#.*/g,"").trim()?", ":" & "}function Ql(e,t,n){const r=e.getNode(),o=[],{interfaces:i}=r,s=e.map((e=>n(e)),"interfaces");for(let e=0;e<i.length;e++){const n=i[e];e>0&&o.push(Xl(i[e-1],n,t)),o.push(s[e])}return o}var Zl={print:function(e,t,n){const r=e.getValue();if(!r)return"";if("string"==typeof r)return r;switch(r.kind){case"Document":{const o=[];return e.map(((e,i)=>{o.push(Rl([e.call(n)])),i!==r.definitions.length-1&&(o.push(Vl),zl(t.originalText,e.getValue(),t.locEnd)&&o.push(Vl))}),"definitions"),Rl([Rl(o),Vl])}case"OperationDefinition":{const o="{"!==t.originalText[t.locStart(r)],i=!!r.name;return Rl([o?r.operation:"",o&&i?Rl([" ",e.call(n,"name")]):"",r.variableDefinitions&&r.variableDefinitions.length?Wl(Rl(["(",Kl(Rl([Ul,jl(Rl([ql("",", "),Ul]),e.map(n,"variableDefinitions"))])),Ul,")"])):"",Jl(e,n,r),r.selectionSet&&(o||i)?" ":"",e.call(n,"selectionSet")])}case"FragmentDefinition":return Rl(["fragment ",e.call(n,"name"),r.variableDefinitions&&r.variableDefinitions.length?Wl(Rl(["(",Kl(Rl([Ul,jl(Rl([ql("",", "),Ul]),e.map(n,"variableDefinitions"))])),Ul,")"])):""," on ",e.call(n,"typeCondition"),Jl(e,n,r)," ",e.call(n,"selectionSet")]);case"SelectionSet":return Rl(["{",Kl(Rl([Vl,jl(Vl,e.call((e=>Gl(e,t,n)),"selections"))])),Vl,"}"]);case"Field":return Wl(Rl([r.alias?Rl([e.call(n,"alias"),": "]):"",e.call(n,"name"),r.arguments.length>0?Wl(Rl(["(",Kl(Rl([Ul,jl(Rl([ql("",", "),Ul]),e.call((e=>Gl(e,t,n)),"arguments"))])),Ul,")"])):"",Jl(e,n,r),r.selectionSet?" ":"",e.call(n,"selectionSet")]));case"Name":return r.value;case"StringValue":return r.block?Rl(['"""',Vl,jl(Vl,r.value.replace(/"""/g,"\\$&").split("\n")),Vl,'"""']):Rl(['"',r.value.replace(/["\\]/g,"\\$&").replace(/\n/g,"\\n"),'"']);case"IntValue":case"FloatValue":case"EnumValue":return r.value;case"BooleanValue":return r.value?"true":"false";case"NullValue":return"null";case"Variable":return Rl(["$",e.call(n,"name")]);case"ListValue":return Wl(Rl(["[",Kl(Rl([Ul,jl(Rl([ql("",", "),Ul]),e.map(n,"values"))])),Ul,"]"]));case"ObjectValue":return Wl(Rl(["{",t.bracketSpacing&&r.fields.length>0?" ":"",Kl(Rl([Ul,jl(Rl([ql("",", "),Ul]),e.map(n,"fields"))])),Ul,ql("",t.bracketSpacing&&r.fields.length>0?" ":""),"}"]));case"ObjectField":case"Argument":return Rl([e.call(n,"name"),": ",e.call(n,"value")]);case"Directive":return Rl(["@",e.call(n,"name"),r.arguments.length>0?Wl(Rl(["(",Kl(Rl([Ul,jl(Rl([ql("",", "),Ul]),e.call((e=>Gl(e,t,n)),"arguments"))])),Ul,")"])):""]);case"NamedType":return e.call(n,"name");case"VariableDefinition":return Rl([e.call(n,"variable"),": ",e.call(n,"type"),r.defaultValue?Rl([" = ",e.call(n,"defaultValue")]):"",Jl(e,n,r)]);case"TypeExtensionDefinition":return Rl(["extend ",e.call(n,"definition")]);case"ObjectTypeExtension":case"ObjectTypeDefinition":return Rl([e.call(n,"description"),r.description?Vl:"","ObjectTypeExtension"===r.kind?"extend ":"","type ",e.call(n,"name"),r.interfaces.length>0?Rl([" implements ",Rl(Ql(e,t,n))]):"",Jl(e,n,r),r.fields.length>0?Rl([" {",Kl(Rl([Vl,jl(Vl,e.call((e=>Gl(e,t,n)),"fields"))])),Vl,"}"]):""]);case"FieldDefinition":return Rl([e.call(n,"description"),r.description?Vl:"",e.call(n,"name"),r.arguments.length>0?Wl(Rl(["(",Kl(Rl([Ul,jl(Rl([ql("",", "),Ul]),e.call((e=>Gl(e,t,n)),"arguments"))])),Ul,")"])):"",": ",e.call(n,"type"),Jl(e,n,r)]);case"DirectiveDefinition":return Rl([e.call(n,"description"),r.description?Vl:"","directive ","@",e.call(n,"name"),r.arguments.length>0?Wl(Rl(["(",Kl(Rl([Ul,jl(Rl([ql("",", "),Ul]),e.call((e=>Gl(e,t,n)),"arguments"))])),Ul,")"])):"",r.repeatable?" repeatable":"",Rl([" on ",jl(" | ",e.map(n,"locations"))])]);case"EnumTypeExtension":case"EnumTypeDefinition":return Rl([e.call(n,"description"),r.description?Vl:"","EnumTypeExtension"===r.kind?"extend ":"","enum ",e.call(n,"name"),Jl(e,n,r),r.values.length>0?Rl([" {",Kl(Rl([Vl,jl(Vl,e.call((e=>Gl(e,t,n)),"values"))])),Vl,"}"]):""]);case"EnumValueDefinition":return Rl([e.call(n,"description"),r.description?Vl:"",e.call(n,"name"),Jl(e,n,r)]);case"InputValueDefinition":return Rl([e.call(n,"description"),r.description?r.description.block?Vl:$l:"",e.call(n,"name"),": ",e.call(n,"type"),r.defaultValue?Rl([" = ",e.call(n,"defaultValue")]):"",Jl(e,n,r)]);case"InputObjectTypeExtension":case"InputObjectTypeDefinition":return Rl([e.call(n,"description"),r.description?Vl:"","InputObjectTypeExtension"===r.kind?"extend ":"","input ",e.call(n,"name"),Jl(e,n,r),r.fields.length>0?Rl([" {",Kl(Rl([Vl,jl(Vl,e.call((e=>Gl(e,t,n)),"fields"))])),Vl,"}"]):""]);case"SchemaDefinition":return Rl(["schema",Jl(e,n,r)," {",r.operationTypes.length>0?Kl(Rl([Vl,jl(Vl,e.call((e=>Gl(e,t,n)),"operationTypes"))])):"",Vl,"}"]);case"OperationTypeDefinition":return Rl([e.call(n,"operation"),": ",e.call(n,"type")]);case"InterfaceTypeExtension":case"InterfaceTypeDefinition":return Rl([e.call(n,"description"),r.description?Vl:"","InterfaceTypeExtension"===r.kind?"extend ":"","interface ",e.call(n,"name"),Jl(e,n,r),r.fields.length>0?Rl([" {",Kl(Rl([Vl,jl(Vl,e.call((e=>Gl(e,t,n)),"fields"))])),Vl,"}"]):""]);case"FragmentSpread":return Rl(["...",e.call(n,"name"),Jl(e,n,r)]);case"InlineFragment":return Rl(["...",r.typeCondition?Rl([" on ",e.call(n,"typeCondition")]):"",Jl(e,n,r)," ",e.call(n,"selectionSet")]);case"UnionTypeExtension":case"UnionTypeDefinition":return Wl(Rl([e.call(n,"description"),r.description?Vl:"",Wl(Rl(["UnionTypeExtension"===r.kind?"extend ":"","union ",e.call(n,"name"),Jl(e,n,r),r.types.length>0?Rl([" =",ql(""," "),Kl(Rl([ql(Rl([$l,"  "])),jl(Rl([$l,"| "]),e.map(n,"types"))]))]):""]))]));case"ScalarTypeExtension":case"ScalarTypeDefinition":return Rl([e.call(n,"description"),r.description?Vl:"","ScalarTypeExtension"===r.kind?"extend ":"","scalar ",e.call(n,"name"),Jl(e,n,r)]);case"NonNullType":return Rl([e.call(n,"type"),"!"]);case"ListType":return Rl(["[",e.call(n,"type"),"]"]);default:throw new Error("unknown graphql type: "+JSON.stringify(r.kind))}},massageAstNode:function(e,t){delete t.loc,delete t.comments},hasPrettierIgnore:Hl,insertPragma:Yl,printComment:function(e){const t=e.getValue();if("Comment"===t.kind)return"#"+t.value.trimEnd();throw new Error("Not a comment: "+JSON.stringify(t))},canAttachComment:function(e){return e.kind&&"Comment"!==e.kind}},ef={bracketSpacing:Qc.bracketSpacing},tf="GraphQL",nf="data",rf=[".graphql",".gql",".graphqls"],of="source.graphql",sf="text",af={name:tf,type:nf,extensions:rf,tmScope:of,aceMode:sf,languageId:139};var uf={languages:[el(st(Object.freeze({__proto__:null,name:tf,type:nf,extensions:rf,tmScope:of,aceMode:sf,languageId:139,default:af})),(()=>({since:"1.5.0",parsers:["graphql"],vscodeLanguageIds:["graphql"]})))],options:ef,printers:{graphql:Zl}};function cf(e,t){return e&&t.some((t=>e.type===t))}function lf(e,t){const n=e.getValue(),r=e.getParentNode(0)||{},o=r.children||r.body||[],i=o.indexOf(n);return-1!==i&&o[i+t]}function ff(e,t=1){return lf(e,-t)}function pf(e){return lf(e,1)}function hf(e){return cf(e,["MustacheCommentStatement"])&&"string"==typeof e.value&&"prettier-ignore"===e.value.trim()}var df={getNextNode:pf,getPreviousNode:ff,hasPrettierIgnore:function(e){const t=e.getValue(),n=ff(e,2);return hf(t)||hf(n)},isGlimmerComponent:function(e){return cf(e,["ElementNode"])&&"string"==typeof e.tag&&(function(e){return e.toUpperCase()===e}(e.tag[0])||e.tag.includes("."))},isNextNodeOfSomeType:function(e,t){return cf(pf(e),t)},isNodeOfSomeType:cf,isParentOfSomeType:function(e,t){return cf(e.getParentNode(0),t)},isPreviousNodeOfSomeType:function(e,t){return cf(ff(e),t)},isWhitespaceNode:function(e){return cf(e,["TextNode"])&&!/\S/.test(e.chars)}};const{concat:mf,join:gf,softline:yf,hardline:bf,line:vf,group:Df,indent:Cf,ifBreak:Ef}=Rs.builders,{getNextNode:wf,getPreviousNode:Af,hasPrettierIgnore:Sf,isGlimmerComponent:xf,isNextNodeOfSomeType:_f,isParentOfSomeType:Ff,isPreviousNodeOfSomeType:Tf,isWhitespaceNode:kf}=df,Nf=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"];function Of(e,t,n){return mf(e.map(((r,o)=>{const i=e.getValue(),s=0===o,a=o===e.getParentNode(0).children.length-1&&!s;return kf(i)&&a?n(r,t,n):s?mf([yf,n(r,t,n)]):n(r,t,n)}),"children"))}function Lf(e,t){const n={quote:'"',regex:/"/g},r={quote:"'",regex:/'/g},o=t.singleQuote?r:n,i=o===r?n:r;let s=!1;(e.includes(o.quote)||e.includes(i.quote))&&(s=(e.match(o.regex)||[]).length>(e.match(i.regex)||[]).length);const a=s?i:o,u=e.replace(a.regex,"\\".concat(a.quote));return mf([a.quote,u,a.quote])}function Mf(e,t){return e.call(t,"path")}function Pf(e,t){const n=e.getValue();let r=[];return n.params.length>0&&(r=r.concat(e.map(t,"params"))),n.hash&&n.hash.pairs.length>0&&r.push(e.call(t,"hash")),r}function If(e,t){const n=[Mf(e,t),...Pf(e,t)];return Cf(Df(gf(vf,n)))}function Bf(e){const t=e.getValue();return t.program&&t.program.blockParams.length?mf([" as |",t.program.blockParams.join(" "),"|"]):""}function Rf(e,t,{open:n=!1,close:r=!1}={}){return Df(mf([n?"{{~#":"{{#",If(e,t),Bf(e),yf,r?"~}}":"}}"]))}function jf(e,t,{open:n=!1,close:r=!1}={}){return mf([n?"{{~/":"{{/",e.call(t,"path"),r?"~}}":"}}"])}function Vf(e){return(e="string"==typeof e?e:"").split("\n").length-1}function $f(e=0,t=0){return new Array(Math.min(e,t)).fill(bf)}function Uf(e,t,n){let r=0,o=0;for(;;){if(o===e.length)return null;let i=e.indexOf("\n",o);if(-1===i&&(i=e.length),r===t)return o+n>i?null:o+n;if(-1===i)return null;r+=1,o=i+1}}var Wf={print:function(e,t,n){const r=e.getValue();if(!r)return"";if(Sf(e)){const e=Uf(t.originalText,r.loc.start.line-1,r.loc.start.column),n=Uf(t.originalText,r.loc.end.line-1,r.loc.end.column);return t.originalText.slice(e,n)}switch(r.type){case"Block":case"Program":case"Template":return Df(mf(e.map(n,"body")));case"ElementNode":{const o=r.children.length>0,i=r.children.some((e=>!kf(e))),s=xf(r)&&(!o||!i)||Nf.includes(r.tag),a=s?mf([" />",yf]):">",u=s?"/>":">",c=(e,t)=>Cf(mf([r.attributes.length?vf:"",gf(vf,e.map(t,"attributes")),r.modifiers.length?vf:"",gf(vf,e.map(t,"modifiers")),r.comments.length?vf:"",gf(vf,e.map(t,"comments"))])),l=wf(e);return mf([Df(mf(["<",r.tag,c(e,n),r.blockParams.length?" as |".concat(r.blockParams.join(" "),"|"):"",Ef(yf,""),Ef(u,a)])),s?"":Df(mf([i?Cf(Of(e,t,n)):"",Ef(o?bf:"",""),mf(["</",r.tag,">"])])),l&&"ElementNode"===l.type?bf:""])}case"BlockStatement":{const t=e.getParentNode(1),o=t&&t.inverse&&1===t.inverse.body.length&&t.inverse.body[0]===r&&"if"===t.inverse.body[0].path.parts[0],i=r.inverse&&1===r.inverse.body.length&&"BlockStatement"===r.inverse.body[0].type&&"if"===r.inverse.body[0].path.parts[0],s=i?e=>e:Cf,a=(r.inverseStrip.open?"{{~":"{{")+"else"+(r.inverseStrip.close?"~}}":"}}");if(r.inverse)return mf([o?mf([r.openStrip.open?"{{~else ":"{{else ",If(e,n),r.openStrip.close?"~}}":"}}"]):Rf(e,n,r.openStrip),Cf(mf([bf,e.call(n,"program")])),r.inverse&&!i?mf([bf,a]):"",r.inverse?s(mf([bf,e.call(n,"inverse")])):"",o?"":mf([bf,jf(e,n,r.closeStrip)])]);if(o)return mf([mf([r.openStrip.open?"{{~else":"{{else ",If(e,n),r.openStrip.close?"~}}":"}}"]),Cf(mf([bf,e.call(n,"program")]))]);const u=r.program.body.some((e=>!kf(e)));return mf([Rf(e,n,r.openStrip),Df(mf([Cf(mf([yf,e.call(n,"program")])),u?bf:yf,jf(e,n,r.closeStrip)]))])}case"ElementModifierStatement":return Df(mf(["{{",If(e,n),yf,"}}"]));case"MustacheStatement":{const t=!1===r.escaped,{open:o,close:i}=r.strip,s=(t?"{{{":"{{")+(o?"~":""),a=(i?"~":"")+(t?"}}}":"}}"),u=Ff(e,["AttrNode","ConcatStatement","ElementNode"])?[s,Cf(yf)]:[s];return Df(mf([...u,If(e,n),yf,a]))}case"SubExpression":{const t=Pf(e,n),r=t.length>0?Cf(mf([vf,Df(gf(vf,t))])):"";return Df(mf(["(",Mf(e,n),r,yf,")"]))}case"AttrNode":{const o="TextNode"===r.value.type;if(o&&""===r.value.chars&&r.value.loc.start.column===r.value.loc.end.column)return mf([r.name]);const i=e.call(n,"value"),s=o?Lf(i.parts.join(),t):i;return mf([r.name,"=",s])}case"ConcatStatement":return mf(['"',mf(e.map((e=>n(e)),"parts").filter((e=>""!==e))),'"']);case"Hash":return mf([gf(vf,e.map(n,"pairs"))]);case"HashPair":return mf([r.key,"=",e.call(n,"value")]);case"TextNode":{const t=2,n=!Af(e),o=!wf(e),i=!/\S/.test(r.chars),s=Vf(r.chars),a="Block"===e.getParentNode(0).type,u="ElementNode"===e.getParentNode(0).type,c="Template"===e.getParentNode(0).type;let l=function(e){return Vf(((e="string"==typeof e?e:"").match(/^([^\S\r\n]*[\r\n])+/g)||[])[0]||"")}(r.chars),f=function(e){return Vf(((e="string"==typeof e?e:"").match(/([\r\n][^\S\r\n]*)+$/g)||[])[0]||"")}(r.chars);if((n||o)&&i&&(a||u||c))return"";i&&s?(l=Math.min(s,t),f=0):(_f(e,["BlockStatement","ElementNode"])&&(f=Math.max(f,1)),(Tf(e,["ElementNode"])||Tf(e,["BlockStatement"]))&&(l=Math.max(l,1)));let p="",h="";if(e.stack.includes("attributes")){const t=e.getParentNode(0);if("ConcatStatement"===t.type){const{parts:e}=t,n=e.indexOf(r);n>0&&"MustacheStatement"===e[n-1].type&&(p=" "),n<e.length-1&&"MustacheStatement"===e[n+1].type&&(h=" ")}}else 0===f&&_f(e,["MustacheStatement"])&&(h=" "),0===l&&Tf(e,["MustacheStatement"])&&(p=" "),n&&(l=0,p=""),o&&(f=0,h="");return mf([...$f(l,t),r.chars.replace(/^[\s ]+/g,p).replace(/[\s ]+$/,h),...$f(f,t)].filter(Boolean))}case"MustacheCommentStatement":{const e=r.value.includes("}}")?"--":"";return mf(["{{!",e,r.value,e,"}}"])}case"PathExpression":return r.original;case"BooleanLiteral":return String(r.value);case"CommentStatement":return mf(["\x3c!--",r.value,"--\x3e"]);case"StringLiteral":return Lf(r.value,t);case"NumberLiteral":return String(r.value);case"UndefinedLiteral":return"undefined";case"NullLiteral":return"null";default:throw new Error("unknown glimmer type: "+JSON.stringify(r.type))}},massageAstNode:function(e,t){if(delete t.loc,delete t.selfClosing,"TextNode"===e.type){const n=e.chars.trim();if(!n)return null;t.chars=n}}},Kf="Handlebars",qf="markup",Hf="HTML",zf=["hbs","htmlbars"],Yf=[".handlebars",".hbs"],Jf="text.html.handlebars",Gf="handlebars",Xf={name:Kf,type:qf,group:Hf,aliases:zf,extensions:Yf,tmScope:Jf,aceMode:Gf,languageId:155};var Qf={languages:[el(st(Object.freeze({__proto__:null,name:Kf,type:qf,group:Hf,aliases:zf,extensions:Yf,tmScope:Jf,aceMode:Gf,languageId:155,default:Xf})),(()=>({since:null,parsers:["glimmer"],vscodeLanguageIds:["handlebars"]})))],printers:{glimmer:Wf}},Zf=Object.freeze({__proto__:null,default:["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","bgsound","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","content","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","element","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","image","img","input","ins","isindex","kbd","keygen","label","legend","li","link","listing","main","map","mark","marquee","math","menu","menuitem","meta","meter","multicol","nav","nextid","nobr","noembed","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","plaintext","pre","progress","q","rb","rbc","rp","rt","rtc","ruby","s","samp","script","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xmp"]}),ep=["accesskey","charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","tabindex","target","type"],tp=["title"],np=["align","alt","archive","code","codebase","height","hspace","name","object","vspace","width"],rp=["accesskey","alt","coords","download","href","hreflang","nohref","ping","referrerpolicy","rel","shape","tabindex","target","type"],op=["autoplay","controls","crossorigin","loop","muted","preload","src"],ip=["href","target"],sp=["color","face","size"],ap=["dir"],up=["cite"],cp=["alink","background","bgcolor","link","text","vlink"],lp=["clear"],fp=["accesskey","autofocus","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","tabindex","type","value"],pp=["height","width"],hp=["align"],dp=["align","char","charoff","span","valign","width"],mp=["align","char","charoff","span","valign","width"],gp=["value"],yp=["cite","datetime"],bp=["open"],vp=["title"],Dp=["open"],Cp=["compact"],Ep=["align"],wp=["compact"],Ap=["height","src","type","width"],Sp=["disabled","form","name"],xp=["color","face","size"],_p=["accept","accept-charset","action","autocomplete","enctype","method","name","novalidate","target"],Fp=["frameborder","longdesc","marginheight","marginwidth","name","noresize","scrolling","src"],Tp=["cols","rows"],kp=["align"],Np=["align"],Op=["align"],Lp=["align"],Mp=["align"],Pp=["align"],Ip=["profile"],Bp=["align","noshade","size","width"],Rp=["manifest","version"],jp=["align","allow","allowfullscreen","allowpaymentrequest","allowusermedia","frameborder","height","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","srcdoc","width"],Vp=["align","alt","border","crossorigin","decoding","height","hspace","ismap","longdesc","name","referrerpolicy","sizes","src","srcset","usemap","vspace","width"],$p=["accept","accesskey","align","alt","autocomplete","autofocus","checked","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","ismap","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","readonly","required","size","src","step","tabindex","title","type","usemap","value","width"],Up=["cite","datetime"],Wp=["prompt"],Kp=["accesskey","for","form"],qp=["accesskey","align"],Hp=["type","value"],zp=["as","charset","color","crossorigin","href","hreflang","imagesizes","imagesrcset","integrity","media","nonce","referrerpolicy","rel","rev","sizes","target","title","type"],Yp=["name"],Jp=["compact"],Gp=["charset","content","http-equiv","name","scheme"],Xp=["high","low","max","min","optimum","value"],Qp=["align","archive","border","classid","codebase","codetype","data","declare","form","height","hspace","name","standby","tabindex","type","typemustmatch","usemap","vspace","width"],Zp=["compact","reversed","start","type"],eh=["disabled","label"],th=["disabled","label","selected","value"],nh=["for","form","name"],rh=["align"],oh=["name","type","value","valuetype"],ih=["width"],sh=["max","value"],ah=["cite"],uh=["async","charset","crossorigin","defer","integrity","language","nomodule","nonce","referrerpolicy","src","type"],ch=["autocomplete","autofocus","disabled","form","multiple","name","required","size","tabindex"],lh=["name"],fh=["media","sizes","src","srcset","type"],ph=["media","nonce","title","type"],hh=["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"],dh=["align","char","charoff","valign"],mh=["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],gh=["accesskey","autocomplete","autofocus","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","tabindex","wrap"],yh=["align","char","charoff","valign"],bh=["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],vh=["align","char","charoff","valign"],Dh=["datetime"],Ch=["align","bgcolor","char","charoff","valign"],Eh=["default","kind","label","src","srclang"],wh=["compact","type"],Ah=["autoplay","controls","crossorigin","height","loop","muted","playsinline","poster","preload","src","width"],Sh={"*":["accesskey","autocapitalize","autofocus","class","contenteditable","dir","draggable","enterkeyhint","hidden","id","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","slot","spellcheck","style","tabindex","title","translate"],a:ep,abbr:tp,applet:np,area:rp,audio:op,base:ip,basefont:sp,bdo:ap,blockquote:up,body:cp,br:lp,button:fp,canvas:pp,caption:hp,col:dp,colgroup:mp,data:gp,del:yp,details:bp,dfn:vp,dialog:Dp,dir:Cp,div:Ep,dl:wp,embed:Ap,fieldset:Sp,font:xp,form:_p,frame:Fp,frameset:Tp,h1:kp,h2:Np,h3:Op,h4:Lp,h5:Mp,h6:Pp,head:Ip,hr:Bp,html:Rp,iframe:jp,img:Vp,input:$p,ins:Up,isindex:Wp,label:Kp,legend:qp,li:Hp,link:zp,map:Yp,menu:Jp,meta:Gp,meter:Xp,object:Qp,ol:Zp,optgroup:eh,option:th,output:nh,p:rh,param:oh,pre:ih,progress:sh,q:ah,script:uh,select:ch,slot:lh,source:fh,style:ph,table:hh,tbody:dh,td:mh,textarea:gh,tfoot:yh,th:bh,thead:vh,time:Dh,tr:Ch,track:Eh,ul:wh,video:Ah},xh=Object.freeze({__proto__:null,a:ep,abbr:tp,applet:np,area:rp,audio:op,base:ip,basefont:sp,bdo:ap,blockquote:up,body:cp,br:lp,button:fp,canvas:pp,caption:hp,col:dp,colgroup:mp,data:gp,del:yp,details:bp,dfn:vp,dialog:Dp,dir:Cp,div:Ep,dl:wp,embed:Ap,fieldset:Sp,font:xp,form:_p,frame:Fp,frameset:Tp,h1:kp,h2:Np,h3:Op,h4:Lp,h5:Mp,h6:Pp,head:Ip,hr:Bp,html:Rp,iframe:jp,img:Vp,input:$p,ins:Up,isindex:Wp,label:Kp,legend:qp,li:Hp,link:zp,map:Yp,menu:Jp,meta:Gp,meter:Xp,object:Qp,ol:Zp,optgroup:eh,option:th,output:nh,p:rh,param:oh,pre:ih,progress:sh,q:ah,script:uh,select:ch,slot:lh,source:fh,style:ph,table:hh,tbody:dh,td:mh,textarea:gh,tfoot:yh,th:bh,thead:vh,time:Dh,tr:Ch,track:Eh,ul:wh,video:Ah,default:Sh}),_h=st(Zf),Fh=st(xh);const{CSS_DISPLAY_TAGS:Th,CSS_DISPLAY_DEFAULT:kh,CSS_WHITE_SPACE_TAGS:Nh,CSS_WHITE_SPACE_DEFAULT:Oh}={CSS_DISPLAY_TAGS:{area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"none",rp:"none",script:"block",source:"block",style:"none",template:"inline",track:"block",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",fieldset:"block",button:"inline-block",video:"inline-block",audio:"inline-block"},CSS_DISPLAY_DEFAULT:"inline",CSS_WHITE_SPACE_TAGS:{listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"},CSS_WHITE_SPACE_DEFAULT:"normal"},Lh=Mh(_h);function Mh(e){const t=Object.create(null);for(const n of e)t[n]=!0;return t}function Ph(e,t){return!(!e.endSourceSpan||("element"!==e.type||"template"!==e.fullName||!e.attrMap.lang||"html"===e.attrMap.lang)&&("ieConditionalComment"!==e.type||!e.lastChild||e.lastChild.isSelfClosing||e.lastChild.endSourceSpan)&&("ieConditionalComment"!==e.type||e.complete)&&("vue"!==t.parser||"element"!==e.type||"root"!==e.parent.type||["template","style","script","html"].includes(e.fullName))&&(!zh(e)||!e.children.some((e=>"text"!==e.type&&"interpolation"!==e.type))))}function Ih(e){return"attribute"!==e.type&&!!e.parent&&"number"==typeof e.index&&0!==e.index&&function(e){return"comment"===e.type&&"prettier-ignore"===e.value.trim()}(e.parent.children[e.index-1])}function Bh(e){return"element"===e.type&&("script"===e.fullName||"style"===e.fullName||"svg:style"===e.fullName||Yh(e)&&("script"===e.name||"style"===e.name))}function Rh(e){return"yaml"===e.type||"toml"===e.type}function jh(e){return Jh(e).startsWith("pre")}function Vh(e){return"element"===e.type&&0!==e.children.length&&(["html","head","ul","ol","select"].includes(e.name)||e.cssDisplay.startsWith("table")&&"table-cell"!==e.cssDisplay)}function $h(e){return qh(e)||"element"===e.type&&"br"===e.fullName||Uh(e)}function Uh(e){return Wh(e)&&Kh(e)}function Wh(e){return e.hasLeadingSpaces&&(e.prev?e.prev.sourceSpan.end.line<e.sourceSpan.start.line:"root"===e.parent.type||e.parent.startSourceSpan.end.line<e.sourceSpan.start.line)}function Kh(e){return e.hasTrailingSpaces&&(e.next?e.next.sourceSpan.start.line>e.sourceSpan.end.line:"root"===e.parent.type||e.parent.endSourceSpan&&e.parent.endSourceSpan.start.line>e.sourceSpan.end.line)}function qh(e){switch(e.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(e.name)}return!1}function Hh(e){return"block"===e||"list-item"===e||e.startsWith("table")}function zh(e){return Jh(e).startsWith("pre")}function Yh(e){return"element"===e.type&&!e.hasExplicitNamespace&&!["html","svg"].includes(e.namespace)}function Jh(e){return"element"===e.type&&(!e.namespace||Yh(e))&&Nh[e.name]||Oh}var Gh={HTML_ELEMENT_ATTRIBUTES:function(e,t){const n=Object.create(null);for(const r of Object.keys(e))n[r]=t(e[r],r);return n}(Fh,Mh),HTML_TAGS:Lh,canHaveInterpolation:function(e){return e.children&&!Bh(e)},countChars:function(e,t){let n=0;for(let r=0;r<e.length;r++)e[r]===t&&n++;return n},countParents:function(e,t=(()=>!0)){let n=0;for(let r=e.stack.length-1;r>=0;r--){const o=e.stack[r];o&&"object"==typeof o&&!Array.isArray(o)&&t(o)&&n++}return n},dedentString:function(e,t=function(e){let t=1/0;for(const n of e.split("\n")){if(0===n.length)continue;if(/\S/.test(n[0]))return 0;const e=n.match(/^\s*/)[0].length;n.length!==e&&e<t&&(t=e)}return t===1/0?0:t}(e)){return 0===t?e:e.split("\n").map((e=>e.slice(t))).join("\n")},forceBreakChildren:Vh,forceBreakContent:function(e){return Vh(e)||"element"===e.type&&0!==e.children.length&&(["body","script","style"].includes(e.name)||e.children.some((e=>function(e){return e.children&&e.children.some((e=>"text"!==e.type))}(e))))||e.firstChild&&e.firstChild===e.lastChild&&Wh(e.firstChild)&&(!e.lastChild.isTrailingSpaceSensitive||Kh(e.lastChild))},forceNextEmptyLine:function(e){return Rh(e)||e.next&&e.sourceSpan.end.line+1<e.next.sourceSpan.start.line},getLastDescendant:function e(t){return t.lastChild?e(t.lastChild):t},getNodeCssStyleDisplay:function(e,t){if(e.prev&&"comment"===e.prev.type){const t=e.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/);if(t)return t[1]}let n=!1;if("element"===e.type&&"svg"===e.namespace){if(!function(e,t){let n=e;for(;n;){if(t(n))return!0;n=n.parent}return!1}(e,(e=>"svg:foreignObject"===e.fullName)))return"svg"===e.name?"inline-block":"block";n=!0}switch(t.htmlWhitespaceSensitivity){case"strict":return"inline";case"ignore":return"block";default:return"element"===e.type&&(!e.namespace||n||Yh(e))&&Th[e.name]||kh}},getNodeCssStyleWhiteSpace:Jh,getPrettierIgnoreAttributeCommentData:function(e){const t=e.trim().match(/^prettier-ignore-attribute(?:\s+([^]+))?$/);return!!t&&(!t[1]||t[1].split(/\s+/))},hasPrettierIgnore:Ih,identity:function(e){return e},inferScriptParser:function(e){if("script"===e.name&&!e.attrMap.src){if(!e.attrMap.lang&&!e.attrMap.type||"module"===e.attrMap.type||"text/javascript"===e.attrMap.type||"text/babel"===e.attrMap.type||"application/javascript"===e.attrMap.type||"jsx"===e.attrMap.lang)return"babel";if("application/x-typescript"===e.attrMap.type||"ts"===e.attrMap.lang||"tsx"===e.attrMap.lang)return"typescript";if("text/markdown"===e.attrMap.type)return"markdown";if(e.attrMap.type.endsWith("json")||e.attrMap.type.endsWith("importmap"))return"json";if("text/x-handlebars-template"===e.attrMap.type)return"glimmer"}if("style"===e.name){if(!e.attrMap.lang||"postcss"===e.attrMap.lang||"css"===e.attrMap.lang)return"css";if("scss"===e.attrMap.lang)return"scss";if("less"===e.attrMap.lang)return"less"}return null},isDanglingSpaceSensitiveNode:function(e){return!(t=e.cssDisplay,Hh(t)||"inline-block"===t||Bh(e));var t},isFrontMatterNode:Rh,isIndentationSensitiveNode:jh,isLeadingSpaceSensitiveNode:function(e){const t=!(Rh(e)||("text"!==e.type&&"interpolation"!==e.type||!e.prev||"text"!==e.prev.type&&"interpolation"!==e.prev.type)&&(!e.parent||"none"===e.parent.cssDisplay||!zh(e.parent)&&(!e.prev&&("root"===e.parent.type||zh(e)&&e.parent||Bh(e.parent)||(n=e.parent.cssDisplay,Hh(n)||"inline-block"===n))||e.prev&&!function(e){return!Hh(e)}(e.prev.cssDisplay))));var n;return t&&!e.prev&&e.parent&&e.parent.tagDefinition&&e.parent.tagDefinition.ignoreFirstLf?"interpolation"===e.type:t},isPreLikeNode:zh,isScriptLikeTag:Bh,isTextLikeNode:function(e){return"text"===e.type||"comment"===e.type},isTrailingSpaceSensitiveNode:function(e){return!(Rh(e)||("text"!==e.type&&"interpolation"!==e.type||!e.next||"text"!==e.next.type&&"interpolation"!==e.next.type)&&(!e.parent||"none"===e.parent.cssDisplay||!zh(e.parent)&&(!e.next&&("root"===e.parent.type||zh(e)&&e.parent||Bh(e.parent)||(t=e.parent.cssDisplay,Hh(t)||"inline-block"===t))||e.next&&!function(e){return!Hh(e)}(e.next.cssDisplay))));var t},isWhitespaceSensitiveNode:function(e){return Bh(e)||"interpolation"===e.type||jh(e)},isUnknownNamespace:Yh,normalizeParts:function(e){const t=[],n=e.slice();for(;0!==n.length;){const e=n.shift();e&&("concat"!==e.type?0===t.length||"string"!=typeof t[t.length-1]||"string"!=typeof e?t.push(e):t.push(t.pop()+e):n.unshift(...e.parts))}return t},preferHardlineAsLeadingSpaces:function(e){return qh(e)||e.prev&&$h(e.prev)||Uh(e)},preferHardlineAsTrailingSpaces:$h,shouldNotPrintClosingTag:function(e,t){return!e.isSelfClosing&&!e.endSourceSpan&&(Ih(e)||Ph(e.parent,t))},shouldPreserveContent:Ph,unescapeQuoteEntities:function(e){return e.replace(/&apos;/g,"'").replace(/&quot;/g,'"')}};const{canHaveInterpolation:Xh,getNodeCssStyleDisplay:Qh,isDanglingSpaceSensitiveNode:Zh,isIndentationSensitiveNode:ed,isLeadingSpaceSensitiveNode:td,isTrailingSpaceSensitiveNode:nd,isWhitespaceSensitiveNode:rd}=Gh,od=[function(e){return e.map((e=>{if("element"===e.type&&e.tagDefinition.ignoreFirstLf&&0!==e.children.length&&"text"===e.children[0].type&&"\n"===e.children[0].value[0]){const[t,...n]=e.children;return e.clone({children:1===t.value.length?n:[t.clone({value:t.value.slice(1)}),...n]})}return e}))},function(e){const t=e=>"element"===e.type&&e.prev&&"ieConditionalStartComment"===e.prev.type&&e.prev.sourceSpan.end.offset===e.startSourceSpan.start.offset&&e.firstChild&&"ieConditionalEndComment"===e.firstChild.type&&e.firstChild.sourceSpan.start.offset===e.startSourceSpan.end.offset;return e.map((e=>{if(e.children){const n=e.children.map(t);if(n.some(Boolean)){const t=[];for(let r=0;r<e.children.length;r++){const o=e.children[r];if(!n[r+1])if(n[r]){const e=o.prev,n=o.firstChild,r=o.sourceSpan.constructor,i=new r(e.sourceSpan.start,n.sourceSpan.end),s=new r(i.start,o.sourceSpan.end);t.push(o.clone({condition:e.condition,sourceSpan:s,startSourceSpan:i,children:o.children.slice(1)}))}else t.push(o)}return e.clone({children:t})}}return e}))},function(e){return function(e,t,n){return e.map((e=>{if(e.children){const r=e.children.map(t);if(r.some(Boolean)){const t=[];for(let o=0;o<e.children.length;o++){const i=e.children[o];if("text"!==i.type&&!r[o]){t.push(i);continue}const s="text"===i.type?i:i.clone({type:"text",value:n(i)});if(0===t.length||"text"!==t[t.length-1].type){t.push(s);continue}const a=t.pop(),u=a.sourceSpan.constructor;t.push(a.clone({value:a.value+s.value,sourceSpan:new u(a.sourceSpan.start,s.sourceSpan.end)}))}return e.clone({children:t})}}return e}))}(e,(e=>"cdata"===e.type),(e=>"<![CDATA[".concat(e.value,"]]>")))},function(e,t){if("html"===t.parser)return e;const n=/\{\{([\s\S]+?)\}\}/g;return e.map((e=>{if(!Xh(e))return e;const t=[];for(const r of e.children){if("text"!==r.type){t.push(r);continue}const e=r.sourceSpan.constructor;let o=r.sourceSpan.start,i=null;const s=r.value.split(n);for(let n=0;n<s.length;n++,o=i){const r=s[n];n%2!=0?(i=o.moveBy(r.length+4),t.push({type:"interpolation",sourceSpan:new e(o,i),children:0===r.length?[]:[{type:"text",value:r,sourceSpan:new e(o.moveBy(2),i.moveBy(-2))}]})):(i=o.moveBy(r.length),0!==r.length&&t.push({type:"text",value:r,sourceSpan:new e(o,i)}))}}return e.clone({children:t})}))},function(e){const t="whitespace";return e.map((e=>{if(!e.children)return e;if(0===e.children.length||1===e.children.length&&"text"===e.children[0].type&&0===e.children[0].value.trim().length)return e.clone({children:[],hasDanglingSpaces:0!==e.children.length});const n=rd(e),r=ed(e);return e.clone({isWhitespaceSensitive:n,isIndentationSensitive:r,children:e.children.reduce(((e,r)=>{if("text"!==r.type||n)return e.concat(r);const o=[],[,i,s,a]=r.value.match(/^(\s*)([\s\S]*?)(\s*)$/);i&&o.push({type:t});const u=r.sourceSpan.constructor;return s&&o.push({type:"text",value:s,sourceSpan:new u(r.sourceSpan.start.moveBy(i.length),r.sourceSpan.end.moveBy(-a.length))}),a&&o.push({type:t}),e.concat(o)}),[]).reduce(((e,n,r,o)=>{if(n.type===t)return e;const i=0!==r&&o[r-1].type===t,s=r!==o.length-1&&o[r+1].type===t;return e.concat(Object.assign({},n,{hasLeadingSpaces:i,hasTrailingSpaces:s}))}),[])})}))},function(e,t){return e.map((e=>Object.assign(e,{cssDisplay:Qh(e,t)})))},function(e){return e.map((e=>Object.assign(e,{isSelfClosing:!e.children||"element"===e.type&&(e.tagDefinition.isVoid||e.startSourceSpan===e.endSourceSpan)})))},function(e,t){return e.map((e=>"element"!==e.type?e:Object.assign(e,{hasHtmComponentClosingTag:e.endSourceSpan&&/^<\s*\/\s*\/\s*>$/.test(t.originalText.slice(e.endSourceSpan.start.offset,e.endSourceSpan.end.offset))})))},function(e){return e.map((e=>e.children?0===e.children.length?e.clone({isDanglingSpaceSensitive:Zh(e)}):e.clone({children:e.children.map((e=>Object.assign({},e,{isLeadingSpaceSensitive:td(e),isTrailingSpaceSensitive:nd(e)}))).map(((e,t,n)=>Object.assign({},e,{isLeadingSpaceSensitive:(0===t||n[t-1].isTrailingSpaceSensitive)&&e.isLeadingSpaceSensitive,isTrailingSpaceSensitive:(t===n.length-1||n[t+1].isLeadingSpaceSensitive)&&e.isTrailingSpaceSensitive})))}):e))},function(e){const t=e=>"element"===e.type&&0===e.attrs.length&&1===e.children.length&&"text"===e.firstChild.type&&!/[^\S\xA0]/.test(e.children[0].value)&&!e.firstChild.hasLeadingSpaces&&!e.firstChild.hasTrailingSpaces&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces&&e.prev&&"text"===e.prev.type&&e.next&&"text"===e.next.type;return e.map((e=>{if(e.children){const n=e.children.map(t);if(n.some(Boolean)){const t=[];for(let r=0;r<e.children.length;r++){const o=e.children[r];if(n[r]){const n=t.pop(),i=e.children[++r],s=e.sourceSpan.constructor,{isTrailingSpaceSensitive:a,hasTrailingSpaces:u}=i;t.push(n.clone({value:n.value+"<".concat(o.rawName,">")+o.firstChild.value+"</".concat(o.rawName,">")+i.value,sourceSpan:new s(n.sourceSpan.start,i.sourceSpan.end),isTrailingSpaceSensitive:a,hasTrailingSpaces:u}))}else t.push(o)}return e.clone({children:t})}}return e}))}];var id=function(e,t){for(const n of od)e=n(e,t);return e};var sd={hasPragma:function(e){return/^\s*<!--\s*@(format|prettier)\s*-->/.test(e)},insertPragma:function(e){return"\x3c!-- @format --\x3e\n\n"+e.replace(/^\s*\n/,"")}};const{builders:{concat:ad,group:ud}}=Rs;var cd={isVueEventBindingExpression:function(e){const t=e.trim();return/^([\w$_]+|\([^)]*?\))\s*=>|^function\s*\(/.test(t)||/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/.test(t)},printVueFor:function(e,t){const{left:n,operator:r,right:o}=function(e){const t=/([^]*?)\s+(in|of)\s+([^]*)/,n=/,([^,}\]]*)(?:,([^,}\]]*))?$/,r=/^\(|\)$/g,o=e.match(t);if(!o)return;const i={};i.for=o[3].trim();const s=o[1].trim().replace(r,""),a=s.match(n);return a?(i.alias=s.replace(n,""),i.iterator1=a[1].trim(),a[2]&&(i.iterator2=a[2].trim())):i.alias=s,{left:"".concat([i.alias,i.iterator1,i.iterator2].filter(Boolean).join(",")),operator:o[2],right:i.for}}(e);return ad([ud(t("function _(".concat(n,") {}"),{parser:"babel",__isVueForBindingLeft:!0}))," ",r," ",t(o,{parser:"__js_expression"})])},printVueSlotScope:function(e,t){return t("function _(".concat(e,") {}"),{parser:"babel",__isVueSlotScope:!0})}};const ld=/^\d+$/;var fd=e=>function(e){return e.sort().filter(((t,n)=>JSON.stringify(t)!==JSON.stringify(e[n-1])))}(e.split(",").map((e=>{const t={};return e.trim().split(/\s+/).forEach(((e,n)=>{if(0===n)return void(t.url=e);const r=e.slice(0,e.length-1),o=e[e.length-1],i=parseInt(r,10),s=parseFloat(r);if("w"===o&&ld.test(r))t.width=i;else if("h"===o&&ld.test(r))t.height=i;else{if("x"!==o||Number.isNaN(s))throw new Error("Invalid srcset descriptor: ".concat(e));t.density=s}})),t})));const{builders:{concat:pd,ifBreak:hd,join:dd,line:md}}=Rs,gd=fd;var yd={printImgSrcset:function(e){const t=gd(e),n=t.some((e=>e.width)),r=t.some((e=>e.height));if(n+r+t.some((e=>e.density))>1)throw new Error("Mixed descriptor in srcset is not supported");const o=n?"width":r?"height":"density",i=n?"w":r?"h":"x",s=e=>Math.max(...e),a=t.map((e=>e.url)),u=s(a.map((e=>e.length))),c=t.map((e=>e[o])).map((e=>e?e.toString():"")),l=c.map((e=>{const t=e.indexOf(".");return-1===t?e.length:t})),f=s(l);return dd(pd([",",md]),a.map(((e,t)=>{const n=[e],r=c[t];if(r){const o=u-e.length+1,s=f-l[t],a=" ".repeat(o+s);n.push(hd(a," "),r+i)}return pd(n)})))},printClassNames:function(e){return e.trim().split(/\s+/).join(" ")}};const{builders:bd,utils:{stripTrailingHardline:vd,mapDoc:Dd}}=Rs,{breakParent:Cd,dedentToRoot:Ed,fill:wd,group:Ad,hardline:Sd,ifBreak:xd,indent:_d,join:Fd,line:Td,literalline:kd,markAsRoot:Nd,softline:Od}=bd,{countChars:Ld,countParents:Md,dedentString:Pd,forceBreakChildren:Id,forceBreakContent:Bd,forceNextEmptyLine:Rd,getLastDescendant:jd,getPrettierIgnoreAttributeCommentData:Vd,hasPrettierIgnore:$d,inferScriptParser:Ud,isScriptLikeTag:Wd,isTextLikeNode:Kd,normalizeParts:qd,preferHardlineAsLeadingSpaces:Hd,shouldNotPrintClosingTag:zd,shouldPreserveContent:Yd,unescapeQuoteEntities:Jd}=Gh,{replaceEndOfLineWith:Gd}=ms,{insertPragma:Xd}=sd,{printVueFor:Qd,printVueSlotScope:Zd,isVueEventBindingExpression:em}=cd,{printImgSrcset:tm,printClassNames:nm}=yd;function rm(e){const t=qd(e);return 0===t.length?"":1===t.length?t[0]:bd.concat(t)}function om(e,t,n){const r=e.getValue();if(Id(r))return rm([Cd,rm(e.map((e=>{const t=e.getValue(),n=t.prev?s(t.prev,t):"";return rm([n?rm([n,Rd(t.prev)?Sd:""]):"",i(e)])}),"children"))]);const o=r.children.map((()=>Symbol("")));return rm(e.map(((e,t)=>{const n=e.getValue();if(Kd(n)){if(n.prev&&Kd(n.prev)){const t=s(n.prev,n);if(t)return Rd(n.prev)?rm([Sd,Sd,i(e)]):rm([t,i(e)])}return i(e)}const r=[],a=[],u=[],c=[],l=n.prev?s(n.prev,n):"",f=n.next?s(n,n.next):"";return l&&(Rd(n.prev)?r.push(Sd,Sd):l===Sd?r.push(Sd):Kd(n.prev)?a.push(l):a.push(xd("",Od,{groupId:o[t-1]}))),f&&(Rd(n)?Kd(n.next)&&c.push(Sd,Sd):f===Sd?Kd(n.next)&&c.push(Sd):u.push(f)),rm([].concat(r,Ad(rm([rm(a),Ad(rm([i(e),rm(u)]),{id:o[t]})])),c))}),"children"));function i(e){const r=e.getValue();return $d(r)?rm([].concat(gm(r,t),Gd(t.originalText.slice(t.locStart(r)+(r.prev&&fm(r.prev)?vm(r).length:0),t.locEnd(r)-(r.next&&hm(r.next)?Em(r,t).length:0)),kd),bm(r,t))):Yd(r,t)?rm([].concat(gm(r,t),Ad(im(e,t,n)),Gd(t.originalText.slice(r.startSourceSpan.end.offset+(r.firstChild&&pm(r.firstChild)?-Dm(r).length:0),r.endSourceSpan.start.offset+(r.lastChild&&mm(r.lastChild)?Cm(r,t).length:dm(r)?-Em(r.lastChild,t).length:0)),kd),um(r,t),bm(r,t))):n(e)}function s(e,t){return Kd(e)&&Kd(t)?e.isTrailingSpaceSensitive?e.hasTrailingSpaces?Hd(t)?Sd:Td:"":Hd(t)?Sd:Od:fm(e)&&($d(t)||t.firstChild||t.isSelfClosing||"element"===t.type&&0!==t.attrs.length)||"element"===e.type&&e.isSelfClosing&&hm(t)?"":!t.isLeadingSpaceSensitive||Hd(t)||hm(t)&&e.lastChild&&mm(e.lastChild)&&e.lastChild.lastChild&&mm(e.lastChild.lastChild)?Sd:t.hasLeadingSpaces?Td:Od}}function im(e,t,n){const r=e.getValue(),o="element"===r.type&&"script"===r.fullName&&1===r.attrs.length&&"src"===r.attrs[0].fullName&&0===r.children.length;return rm([sm(r,t),r.attrs&&0!==r.attrs.length?rm([_d(rm([o?" ":Td,Fd(Td,(r=>{const o="boolean"==typeof r?()=>r:Array.isArray(r)?e=>r.includes(e.rawName):()=>!1;return e.map((e=>{const r=e.getValue();return o(r)?rm(Gd(t.originalText.slice(t.locStart(r),t.locEnd(r)),kd)):n(e)}),"attrs")})(r.prev&&"comment"===r.prev.type&&Vd(r.prev.value)))])),r.firstChild&&pm(r.firstChild)||r.isSelfClosing&&dm(r.parent)?r.isSelfClosing?" ":"":r.isSelfClosing?o?" ":Td:o?"":Od]):r.isSelfClosing?" ":"",r.isSelfClosing?"":am(r)])}function sm(e,t){return e.prev&&fm(e.prev)?"":rm([gm(e,t),vm(e)])}function am(e){return e.firstChild&&pm(e.firstChild)?"":Dm(e)}function um(e,t){return rm([e.isSelfClosing?"":cm(e,t),lm(e,t)])}function cm(e,t){return e.lastChild&&mm(e.lastChild)?"":rm([ym(e,t),Cm(e,t)])}function lm(e,t){return(e.next?hm(e.next):dm(e.parent))?"":rm([Em(e,t),bm(e,t)])}function fm(e){return e.next&&!Kd(e.next)&&Kd(e)&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces}function pm(e){return!e.prev&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function hm(e){return e.prev&&!Kd(e.prev)&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function dm(e){return e.lastChild&&e.lastChild.isTrailingSpaceSensitive&&!e.lastChild.hasTrailingSpaces&&!Kd(jd(e.lastChild))}function mm(e){return!e.next&&!e.hasTrailingSpaces&&e.isTrailingSpaceSensitive&&Kd(jd(e))}function gm(e,t){return pm(e)?Dm(e.parent):hm(e)?Em(e.prev,t):""}function ym(e,t){return dm(e)?Em(e.lastChild,t):""}function bm(e,t){return mm(e)?Cm(e.parent,t):fm(e)?vm(e.next):""}function vm(e){switch(e.type){case"ieConditionalComment":case"ieConditionalStartComment":return"\x3c!--[if ".concat(e.condition);case"ieConditionalEndComment":return"\x3c!--<!";case"interpolation":return"{{";case"docType":return"<!DOCTYPE";case"element":if(e.condition)return"\x3c!--[if ".concat(e.condition,"]>\x3c!--\x3e<").concat(e.rawName);default:return"<".concat(e.rawName)}}function Dm(e){switch(e.isSelfClosing,e.type){case"ieConditionalComment":return"]>";case"element":if(e.condition)return">\x3c!--<![endif]--\x3e";default:return">"}}function Cm(e,t){if(e.isSelfClosing,zd(e,t))return"";switch(e.type){case"ieConditionalComment":return"<!";case"element":if(e.hasHtmComponentClosingTag)return"<//";default:return"</".concat(e.rawName)}}function Em(e,t){if(zd(e,t))return"";switch(e.type){case"ieConditionalComment":case"ieConditionalEndComment":return"[endif]--\x3e";case"ieConditionalStartComment":return"]>\x3c!--\x3e";case"interpolation":return"}}";case"element":if(e.isSelfClosing)return"/>";default:return">"}}function wm(e,t=e.value){return e.parent.isWhitespaceSensitive?e.parent.isIndentationSensitive?Gd(t,kd):Gd(Pd(t.replace(/^\s*?\n|\n\s*?$/g,"")),Sd):Fd(Td,t.split(/[\t\n\f\r ]+/)).parts}var Am={preprocess:id,print:function(e,t,n){const r=e.getValue();switch(r.type){case"root":return t.__onHtmlRoot&&t.__onHtmlRoot(r),bd.concat([Ad(om(e,t,n)),Sd]);case"element":case"ieConditionalComment":{const i=1===r.children.length&&"interpolation"===r.firstChild.type&&r.firstChild.isLeadingSpaceSensitive&&!r.firstChild.hasLeadingSpaces&&r.lastChild.isTrailingSpaceSensitive&&!r.lastChild.hasTrailingSpaces,s=Symbol("element-attr-group-id");return rm([Ad(rm([Ad(im(e,t,n),{id:s}),0===r.children.length?r.hasDanglingSpaces&&r.isDanglingSpaceSensitive?Td:"":rm([Bd(r)?Cd:"",(o=rm([i?xd(Od,"",{groupId:s}):r.firstChild.hasLeadingSpaces&&r.firstChild.isLeadingSpaceSensitive?Td:"text"===r.firstChild.type&&r.isWhitespaceSensitive&&r.isIndentationSensitive?Ed(Od):Od,om(e,t,n)]),i?xd(_d(o),o,{groupId:s}):Wd(r)&&"root"===r.parent.type&&"vue"===t.parser&&!t.vueIndentScriptAndStyle?o:_d(o)),(r.next?hm(r.next):dm(r.parent))?r.lastChild.hasTrailingSpaces&&r.lastChild.isTrailingSpaceSensitive?" ":"":i?xd(Od,"",{groupId:s}):r.lastChild.hasTrailingSpaces&&r.lastChild.isTrailingSpaceSensitive?Td:("comment"===r.lastChild.type||"text"===r.lastChild.type&&r.isWhitespaceSensitive&&r.isIndentationSensitive)&&new RegExp("\\n\\s{".concat(t.tabWidth*Md(e,(e=>e.parent&&"root"!==e.parent.type)),"}$")).test(r.lastChild.value)?"":Od])])),um(r,t)])}case"ieConditionalStartComment":case"ieConditionalEndComment":return rm([sm(r),lm(r)]);case"interpolation":return rm([sm(r,t),rm(e.map(n,"children")),lm(r,t)]);case"text":if("interpolation"===r.parent.type){const e=/\n[^\S\n]*?$/,t=e.test(r.value),n=t?r.value.replace(e,""):r.value;return rm([rm(Gd(n,kd)),t?Sd:""])}return wd(qd([].concat(gm(r,t),wm(r),bm(r,t))));case"docType":return rm([Ad(rm([sm(r,t)," ",r.value.replace(/^html\b/i,"html").replace(/\s+/g," ")])),lm(r,t)]);case"comment":return rm([gm(r,t),rm(Gd(t.originalText.slice(t.locStart(r),t.locEnd(r)),kd)),bm(r,t)]);case"attribute":{if(null===r.value)return r.rawName;const e=Jd(r.value),t=Ld(e,"'")<Ld(e,'"')?"'":'"';return rm([r.rawName,rm(["=",t,rm(Gd('"'===t?e.replace(/"/g,"&quot;"):e.replace(/'/g,"&apos;"),kd)),t])])}case"yaml":case"toml":return rm(Gd(r.raw,kd));default:throw new Error("Unexpected node type ".concat(r.type))}var o},insertPragma:Xd,massageAstNode:function(e,t){return delete t.sourceSpan,delete t.startSourceSpan,delete t.endSourceSpan,delete t.nameSpan,delete t.valueSpan,"text"===e.type||"comment"===e.type||"yaml"===e.type||"toml"===e.type?null:("attribute"===e.type&&delete t.value,void("docType"===e.type&&delete t.value))},embed:function(e,t,n,r){const o=e.getValue();switch(o.type){case"text":if(Wd(o.parent)){const e=Ud(o.parent);if(e){const t="markdown"===e?Pd(o.value.replace(/^[^\S\n]*?\n/,"")):o.value;return bd.concat([rm([Cd,gm(o,r),vd(n(t,{parser:e})),bm(o,r)])])}}else if("interpolation"===o.parent.type)return rm([_d(rm([Td,n(o.value,Object.assign({__isInHtmlInterpolation:!0},"angular"===r.parser?{parser:"__ng_interpolation",trailingComma:"none"}:"vue"===r.parser?{parser:"__vue_expression"}:{parser:"__js_expression"}))])),o.parent.next&&hm(o.parent.next)?" ":Td]);break;case"attribute":{if(!o.value)break;if(/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(r.originalText.slice(o.valueSpan.start.offset,o.valueSpan.end.offset)))return rm([o.rawName,"=",o.value]);if("lwc"===r.parser&&/^\{[\s\S]*\}$/.test(r.originalText.slice(o.valueSpan.start.offset,o.valueSpan.end.offset)))return rm([o.rawName,"=",o.value]);const e=function(e,t,n){const r=t=>new RegExp(t.join("|")).test(e.fullName),o=()=>Jd(e.value);let i=!1;const s=(e,t)=>{const n="NGRoot"===e.type?"NGMicrosyntax"===e.node.type&&1===e.node.body.length&&"NGMicrosyntaxExpression"===e.node.body[0].type?e.node.body[0].expression:e.node:"JsExpressionRoot"===e.type?e.node:e;!n||"ObjectExpression"!==n.type&&"ArrayExpression"!==n.type&&("__vue_expression"!==t.parser||"TemplateLiteral"!==n.type&&"StringLiteral"!==n.type)||(i=!0)},a=e=>Ad(e),u=(e,t=!0)=>Ad(rm([_d(rm([Od,e])),t?Od:""])),c=e=>i?a(e):u(e),l=(e,n)=>t(e,Object.assign({__onHtmlBindingRoot:s},n));if("srcset"===e.fullName&&("img"===e.parent.fullName||"source"===e.parent.fullName))return u(tm(o()));if("class"===e.fullName&&!n.parentParser){const e=o();if(!e.includes("{{"))return nm(e)}if("style"===e.fullName&&!n.parentParser){const e=o();if(!e.includes("{{"))return u(l(e,{parser:"css",__isHTMLStyleAttribute:!0}))}if("vue"===n.parser){if("v-for"===e.fullName)return Qd(o(),l);if("slot-scope"===e.fullName)return Zd(o(),l);const t=["^:","^v-bind:"],n=["^v-"];if(r(["^@","^v-on:"])){const e=o();return c(em(e)?l(e,{parser:"__js_expression"}):vd(l(e,{parser:"__vue_event_binding"})))}if(r(t))return c(l(o(),{parser:"__vue_expression"}));if(r(n))return c(l(o(),{parser:"__js_expression"}))}if("angular"===n.parser){const t=(e,t)=>l(e,Object.assign({},t,{trailingComma:"none"})),n=["^\\*"],i=["^\\[.+\\]$","^bind(on)?-","^ng-(if|show|hide|class|style)$"],s=["^i18n(-.+)?$"];if(r(["^\\(.+\\)$","^on-"]))return c(t(o(),{parser:"__ng_action"}));if(r(i))return c(t(o(),{parser:"__ng_binding"}));if(r(s)){const t=o().trim();return u(wd(wm(e,t)),!t.includes("@@"))}if(r(n))return c(t(o(),{parser:"__ng_directive"}));const a=/\{\{([\s\S]+?)\}\}/g,f=o();if(a.test(f)){const e=[];return f.split(a).forEach(((n,r)=>{if(r%2==0)e.push(rm(Gd(n,kd)));else try{e.push(Ad(rm(["{{",_d(rm([Td,t(n,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})])),Td,"}}"])))}catch(t){e.push("{{",rm(Gd(n,kd)),"}}")}})),Ad(rm(e))}}return null}(o,((e,t)=>n(e,Object.assign({__isInHtmlAttribute:!0},t))),r);if(e)return rm([o.rawName,'="',Ad(Dd(e,(e=>"string"==typeof e?e.replace(/"/g,"&quot;"):e))),'"']);break}case"yaml":return Nd(rm(["---",Sd,0===o.value.trim().length?"":n(o.value,{parser:"yaml"}),"---"]))}}};const Sm="HTML";var xm={htmlWhitespaceSensitivity:{since:"1.15.0",category:Sm,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},vueIndentScriptAndStyle:{since:"1.19.0",category:Sm,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},_m="HTML",Fm="markup",Tm="text.html.basic",km="html",Nm="htmlmixed",Om="text/html",Lm="#e34c26",Mm=["xhtml"],Pm=[".html",".htm",".html.hl",".inc",".st",".xht",".xhtml"],Im={name:_m,type:Fm,tmScope:Tm,aceMode:km,codemirrorMode:Nm,codemirrorMimeType:Om,color:Lm,aliases:Mm,extensions:Pm,languageId:146},Bm=Object.freeze({__proto__:null,name:_m,type:Fm,tmScope:Tm,aceMode:km,codemirrorMode:Nm,codemirrorMimeType:Om,color:Lm,aliases:Mm,extensions:Pm,languageId:146,default:Im}),Rm="markup",jm="#2c3e50",Vm=[".vue"],$m="text.html.vue",Um="html",Wm={name:"Vue",type:Rm,color:jm,extensions:Vm,tmScope:$m,aceMode:Um,languageId:391},Km=Object.freeze({__proto__:null,name:"Vue",type:Rm,color:jm,extensions:Vm,tmScope:$m,aceMode:Um,languageId:391,default:Wm}),qm=st(Bm),Hm=st(Km);var zm={languages:[el(qm,(()=>({name:"Angular",since:"1.15.0",parsers:["angular"],vscodeLanguageIds:["html"],extensions:[".component.html"],filenames:[]}))),el(qm,(e=>({since:"1.15.0",parsers:["html"],vscodeLanguageIds:["html"],extensions:e.extensions.concat([".mjml"])}))),el(qm,(()=>({name:"Lightning Web Components",since:"1.17.0",parsers:["lwc"],vscodeLanguageIds:["html"],extensions:[],filenames:[]}))),el(Hm,(()=>({since:"1.10.0",parsers:["vue"],vscodeLanguageIds:["vue"]})))],printers:{html:Am},options:xm};const{addLeadingComment:Ym,addTrailingComment:Jm,addDanglingComment:Gm,getNextNonSpaceNonCommentCharacterIndex:Xm}=ua;function Qm(e,t){const n=e.body.filter((e=>"EmptyStatement"!==e.type));0===n.length?Gm(e,t):Ym(n[0],t)}function Zm(e,t){"BlockStatement"===e.type?Qm(e,t):Ym(e,t)}function eg(e,t,n,r,o,i){return!(!n||"IfStatement"!==n.type||!r||(")"===ms.getNextNonSpaceNonCommentCharacter(e,o,i.locEnd)?(Jm(t,o),0):t===n.consequent&&r===n.alternate?("BlockStatement"===t.type?Jm(t,o):Gm(n,o),0):"BlockStatement"===r.type?(Qm(r,o),0):"IfStatement"===r.type?(Zm(r.consequent,o),0):n.consequent!==r||(Ym(r,o),0)))}function tg(e,t,n,r,o,i){return!(!n||"WhileStatement"!==n.type||!r||(")"===ms.getNextNonSpaceNonCommentCharacter(e,o,i.locEnd)?(Jm(t,o),0):"BlockStatement"!==r.type||(Qm(r,o),0)))}function ng(e,t,n,r){return!(!e||"TryStatement"!==e.type&&"CatchClause"!==e.type||!n||("CatchClause"===e.type&&t?(Jm(t,r),0):"BlockStatement"===n.type?(Qm(n,r),0):"TryStatement"===n.type?(Zm(n.finalizer,r),0):"CatchClause"!==n.type||(Zm(n.body,r),0)))}function rg(e,t,n,r){return!(!(e&&("ClassDeclaration"===e.type||"ClassExpression"===e.type)&&e.decorators&&e.decorators.length>0)||n&&"Decorator"===n.type||(e.decorators&&0!==e.decorators.length?Jm(e.decorators[e.decorators.length-1],r):Ym(e,r),0))}function og(e,t,n,r,o){return(t&&n&&("Property"===t.type||"TSDeclareMethod"===t.type||"TSAbstractMethodDefinition"===t.type)&&"Identifier"===n.type&&t.key===n&&":"!==ms.getNextNonSpaceNonCommentCharacter(e,n,o.locEnd)||!(!n||!t||"Decorator"!==n.type||"ClassMethod"!==t.type&&"ClassProperty"!==t.type&&"TSAbstractClassProperty"!==t.type&&"TSAbstractMethodDefinition"!==t.type&&"TSDeclareMethod"!==t.type&&"MethodDefinition"!==t.type))&&(Jm(n,r),!0)}function ig(e,t,n,r,o,i){if(t&&"FunctionTypeParam"===t.type&&n&&"FunctionTypeAnnotation"===n.type&&r&&"FunctionTypeParam"!==r.type)return Jm(t,o),!0;if(t&&("Identifier"===t.type||"AssignmentPattern"===t.type)&&n&&lg(n)&&")"===ms.getNextNonSpaceNonCommentCharacter(e,o,i.locEnd))return Jm(t,o),!0;if(n&&"FunctionDeclaration"===n.type&&r&&"BlockStatement"===r.type){const t=(()=>{if(0!==(n.params||n.parameters).length)return ms.getNextNonSpaceNonCommentCharacterIndexWithStartIndex(e,i.locEnd(ms.getLast(n.params||n.parameters)));const t=ms.getNextNonSpaceNonCommentCharacterIndexWithStartIndex(e,i.locEnd(n.id));return ms.getNextNonSpaceNonCommentCharacterIndexWithStartIndex(e,t+1)})();if(i.locStart(o)>t)return Qm(r,o),!0}return!1}function sg(e,t){return!(!e||"ImportSpecifier"!==e.type||(Ym(e,t),0))}function ag(e,t){return!(!e||"LabeledStatement"!==e.type||(Ym(e,t),0))}function ug(e,t,n,r){return t&&t.body&&0===t.body.length?(r?Gm(t,n):Ym(t,n),!0):!(!e||"Program"!==e.type||0!==e.body.length||!e.directives||0!==e.directives.length||(r?Gm(e,n):Ym(e,n),0))}function cg(e){return"Block"===e.type||"CommentBlock"===e.type}function lg(e){return"ArrowFunctionExpression"===e.type||"FunctionExpression"===e.type||"FunctionDeclaration"===e.type||"ObjectMethod"===e.type||"ClassMethod"===e.type||"TSDeclareFunction"===e.type||"TSCallSignatureDeclaration"===e.type||"TSConstructSignatureDeclaration"===e.type||"TSConstructSignatureDeclaration"===e.type||"TSMethodSignature"===e.type||"TSConstructorType"===e.type||"TSFunctionType"===e.type||"TSDeclareMethod"===e.type}function fg(e){return cg(e)&&"*"===e.value[0]&&/@type\b/.test(e.value)}var pg={handleOwnLineComment:function(e,t,n,r,o){const{precedingNode:i,enclosingNode:s,followingNode:a}=e;return ig(t,i,s,a,e,n)||function(e,t,n){return!(!e||"MemberExpression"!==e.type&&"OptionalMemberExpression"!==e.type||!t||"Identifier"!==t.type||(Ym(e,n),0))}(s,a,e)||eg(t,i,s,a,e,n)||tg(t,i,s,a,e,n)||ng(s,i,a,e)||rg(s,0,a,e)||sg(s,e)||function(e,t,n){return!(!e||"ForInStatement"!==e.type&&"ForOfStatement"!==e.type||(Ym(e,n),0))}(s,0,e)||function(e,t,n,r){return!t||"UnionTypeAnnotation"!==t.type&&"TSUnionType"!==t.type?(n&&("UnionTypeAnnotation"===n.type||"TSUnionType"===n.type)&&ms.isNodeIgnoreComment(r)&&(n.types[0].prettierIgnore=!0,r.unignore=!0),!1):(ms.isNodeIgnoreComment(r)&&(n.prettierIgnore=!0,r.unignore=!0),!!e&&(Jm(e,r),!0))}(i,s,a,e)||ug(s,r,e,o)||function(e,t,n,r,o){return!!(n&&"ImportSpecifier"===n.type&&t&&"ImportDeclaration"===t.type&&ms.hasNewline(e,o.locEnd(r)))&&(Jm(n,r),!0)}(t,s,i,e,n)||function(e,t){return!(!e||"AssignmentPattern"!==e.type||(Ym(e,t),0))}(s,e)||og(t,s,i,e,n)||ag(s,e)},handleEndOfLineComment:function(e,t,n,r,o){const{precedingNode:i,enclosingNode:s,followingNode:a}=e;return function(e,t){return!(!e||!fg(t)||(Ym(e,t),0))}(a,e)||ig(t,i,s,a,e,n)||function(e,t,n,r,o,i){const s=t&&!ms.hasNewlineInRange(o,i.locEnd(t),i.locStart(r));return!(t&&s||!e||"ConditionalExpression"!==e.type||!n||(Ym(n,r),0))}(s,i,a,e,t,n)||sg(s,e)||eg(t,i,s,a,e,n)||tg(t,i,s,a,e,n)||ng(s,i,a,e)||rg(s,0,a,e)||ag(s,e)||function(e,t,n){return!!(t&&("CallExpression"===t.type||"OptionalCallExpression"===t.type)&&e&&t.callee===e&&t.arguments.length>0)&&(Ym(t.arguments[0],n),!0)}(i,s,e)||function(e,t){return!(!e||"Property"!==e.type&&"ObjectProperty"!==e.type||(Ym(e,t),0))}(s,e)||ug(s,r,e,o)||function(e,t,n){return!(!e||"TypeAlias"!==e.type||(Ym(e,n),0))}(s,0,e)||function(e,t,n){return!(!e||"VariableDeclarator"!==e.type&&"AssignmentExpression"!==e.type||!t||"ObjectExpression"!==t.type&&"ArrayExpression"!==t.type&&"TemplateLiteral"!==t.type&&"TaggedTemplateExpression"!==t.type&&!cg(n)||(Ym(t,n),0))}(s,a,e)},handleRemainingComment:function(e,t,n,r,o){const{precedingNode:i,enclosingNode:s,followingNode:a}=e;return!!(eg(t,i,s,a,e,n)||tg(t,i,s,a,e,n)||function(e,t,n){return!(!e||"ObjectProperty"!==e.type&&"Property"!==e.type||!e.shorthand||e.key!==t||"AssignmentPattern"!==e.value.type||(Jm(e.value.left,n),0))}(s,i,e)||function(e,t,n,r){return!(")"!==ms.getNextNonSpaceNonCommentCharacter(e,n,r.locEnd)||(t&&(lg(t)&&0===(t.params||t.parameters).length||("CallExpression"===t.type||"OptionalCallExpression"===t.type||"NewExpression"===t.type)&&0===t.arguments.length)?(Gm(t,n),0):!t||"MethodDefinition"!==t.type||0!==t.value.params.length||(Gm(t.value,n),0)))}(t,s,e,n)||og(t,s,i,e,n)||ug(s,r,e,o)||function(e,t,n,r){if(!t||"ArrowFunctionExpression"!==t.type)return!1;const o=Xm(e,n,r.locEnd);return"=>"===e.slice(o,o+2)&&(Gm(t,n),!0)}(t,s,e,n)||function(e,t,n,r,o){return!("("!==ms.getNextNonSpaceNonCommentCharacter(e,r,o.locEnd)||!n||!t||"FunctionDeclaration"!==t.type&&"FunctionExpression"!==t.type&&"ClassMethod"!==t.type&&"MethodDefinition"!==t.type&&"ObjectMethod"!==t.type||(Jm(n,r),0))}(t,s,i,e,n)||function(e,t,n,r,o){return!(!t||"TSMappedType"!==t.type||(r&&"TSTypeParameter"===r.type&&r.name?(Ym(r.name,o),0):!n||"TSTypeParameter"!==n.type||!n.constraint||(Jm(n.constraint,o),0)))}(0,s,i,a,e)||function(e,t){return!(!e||"ContinueStatement"!==e.type&&"BreakStatement"!==e.type||e.label||(Jm(e,t),0))}(s,e)||function(e,t,n,r,o){return!(n||!t||"TSMethodSignature"!==t.type&&"TSDeclareFunction"!==t.type&&"TSAbstractMethodDefinition"!==t.type||";"!==ms.getNextNonSpaceNonCommentCharacter(e,r,o.locEnd)||(Jm(t,r),0))}(t,s,a,e,n))},hasLeadingComment:function(e,t=(()=>!0)){return e.leadingComments?e.leadingComments.some(t):!!e.comments&&e.comments.some((e=>e.leading&&t(e)))},isBlockComment:cg,isTypeCastComment:fg,getGapRegex:function(e){if(e&&"BinaryExpression"!==e.type&&"LogicalExpression"!==e.type)return/^[\s(&|]*$/},getCommentChildNodes:function(e,t){if(("typescript"===t.parser||"flow"===t.parser)&&"MethodDefinition"===e.type&&e.value&&"FunctionExpression"===e.value.type&&0===e.value.params.length&&!e.value.returnType&&(!e.value.typeParameters||0===e.value.typeParameters.length)&&e.value.body)return[...e.decorators||[],e.key,e.value.body]}};const{isBlockComment:hg,hasLeadingComment:dg}=pg,{builders:{indent:mg,join:gg,line:yg,hardline:bg,softline:vg,literalline:Dg,concat:Cg,group:Eg,dedentToRoot:wg},utils:{mapDoc:Ag,stripTrailingHardline:Sg}}=Rs;function xg(e){return e.replace(/([\\`]|\$\{)/g,"\\$1")}function _g(e,t){return Ag(e,(e=>{if(!e.parts)return e;const n=[];return e.parts.forEach((e=>{"string"==typeof e?n.push(t?e.replace(/(\\*)`/g,"$1$1\\`"):xg(e)):n.push(e)})),Object.assign({},e,{parts:n})}))}function Fg(e){const t=[];let n=!1;return e.map((e=>e.trim())).forEach(((e,r,o)=>{""!==e&&(""===o[r-1]&&n?t.push(Cg([bg,e])):t.push(e),n=!0)})),0===t.length?null:gg(bg,t)}function Tg(e){const t=e.getValue(),n=e.getParentNode(),r=e.getParentNode(1);return r&&t.quasis&&"JSXExpressionContainer"===n.type&&"JSXElement"===r.type&&"style"===r.openingElement.name.name&&r.openingElement.attributes.some((e=>"jsx"===e.name.name))||n&&"TaggedTemplateExpression"===n.type&&"Identifier"===n.tag.type&&"css"===n.tag.name||n&&"TaggedTemplateExpression"===n.type&&"MemberExpression"===n.tag.type&&"css"===n.tag.object.name&&("global"===n.tag.property.name||"resolve"===n.tag.property.name)}function kg(e){return e.match((e=>"TemplateLiteral"===e.type),((e,t)=>"ArrayExpression"===e.type&&"elements"===t),((e,t)=>("Property"===e.type||"ObjectProperty"===e.type)&&"Identifier"===e.key.type&&"styles"===e.key.name&&"value"===t),...Ng)}const Ng=[(e,t)=>"ObjectExpression"===e.type&&"properties"===t,(e,t)=>"CallExpression"===e.type&&"Identifier"===e.callee.type&&"Component"===e.callee.name&&"arguments"===t,(e,t)=>"Decorator"===e.type&&"expression"===t];function Og(e){const t=e.getParentNode();if(!t||"TaggedTemplateExpression"!==t.type)return!1;const{tag:n}=t;switch(n.type){case"MemberExpression":return Mg(n.object)||Pg(n);case"CallExpression":return Mg(n.callee)||"MemberExpression"===n.callee.type&&("MemberExpression"===n.callee.object.type&&(Mg(n.callee.object.object)||Pg(n.callee.object))||"CallExpression"===n.callee.object.type&&Mg(n.callee.object.callee));case"Identifier":return"css"===n.name;default:return!1}}function Lg(e){const t=e.getParentNode(),n=e.getParentNode(1);return n&&"JSXExpressionContainer"===t.type&&"JSXAttribute"===n.type&&"JSXIdentifier"===n.name.type&&"css"===n.name.name}function Mg(e){return"Identifier"===e.type&&"styled"===e.name}function Pg(e){return/^[A-Z]/.test(e.object.name)&&"extend"===e.property.name}function Ig(e,t){return dg(e,(e=>hg(e)&&e.value===" ".concat(t," ")))}let Bg=0;var Rg=function(e,t,n,r){const o=e.getValue(),i=e.getParentNode(),s=e.getParentNode(1);switch(o.type){case"TemplateLiteral":{if([Tg,Og,Lg,kg].some((t=>t(e)))){const r=o.quasis.map((e=>e.value.raw));let i=0;const s=r.reduce(((e,t,n)=>0===n?t:e+"@prettier-placeholder-"+i+++"-id"+t),"");return function(e,t,n){const r=t.getValue();if(1===r.quasis.length&&!r.quasis[0].value.raw.trim())return"``";const o=function(e,t){if(!t||!t.length)return e;const n=t.slice();let r=0;const o=Ag(e,(e=>{if(!e||!e.parts||!e.parts.length)return e;let{parts:t}=e;const o=t.indexOf("@"),i=o+1;if(o>-1&&"string"==typeof t[i]&&t[i].startsWith("prettier-placeholder")){const e=t[o],n=t[i],r=t.slice(i+1);t=t.slice(0,o).concat([e+n]).concat(r)}const s=t.findIndex((e=>"string"==typeof e&&e.startsWith("@prettier-placeholder")));if(s>-1){const e=t[s],o=t.slice(s+1),i=e.match(/@prettier-placeholder-(.+)-id([\s\S]*)/),a=i[1],u=i[2],c=n[a];r++,t=t.slice(0,s).concat(["${",c,"}"+u]).concat(o)}return Object.assign({},e,{parts:t})}));return n.length===r?o:null}(e,r.expressions?t.map(n,"expressions"):[]);if(!o)throw new Error("Couldn't insert all the expressions");return Cg(["`",mg(Cg([bg,Sg(o)])),vg,"`"])}(n(s,{parser:"scss"}),e,t)}if(function(e){const t=e.getValue(),n=e.getParentNode();return Ig(t,"GraphQL")||n&&("TaggedTemplateExpression"===n.type&&("MemberExpression"===n.tag.type&&"graphql"===n.tag.object.name&&"experimental"===n.tag.property.name||"Identifier"===n.tag.type&&("gql"===n.tag.name||"graphql"===n.tag.name))||"CallExpression"===n.type&&"Identifier"===n.callee.type&&"graphql"===n.callee.name)}(e)){const r=o.expressions?e.map(t,"expressions"):[],i=o.quasis.length;if(1===i&&""===o.quasis[0].value.raw.trim())return"``";const s=[];for(let e=0;e<i;e++){const t=0===e,a=e===i-1,u=o.quasis[e].value.cooked;if("string"!=typeof u)return null;const c=u.split("\n"),l=c.length,f=r[e],p=l>2&&""===c[0].trim()&&""===c[1].trim(),h=l>2&&""===c[l-1].trim()&&""===c[l-2].trim(),d=c.every((e=>/^\s*(?:#[^\r\n]*)?$/.test(e)));if(!a&&/#[^\r\n]*$/.test(c[l-1]))return null;let m=null;m=d?Fg(c):Sg(n(u,{parser:"graphql"})),m?(m=_g(m,!1),!t&&p&&s.push(""),s.push(m),!a&&h&&s.push("")):t||a||!p||s.push(""),f&&s.push(Cg(["${",f,"}"]))}return Cg(["`",mg(Cg([bg,gg(bg,s)])),bg,"`"])}const i=function(e){return Ig(e.getValue(),"HTML")||e.match((e=>"TemplateLiteral"===e.type),((e,t)=>"TaggedTemplateExpression"===e.type&&"Identifier"===e.tag.type&&"html"===e.tag.name&&"quasi"===t))}(e)?"html":function(e){return e.match((e=>"TemplateLiteral"===e.type),((e,t)=>("Property"===e.type||"ObjectProperty"===e.type)&&"Identifier"===e.key.type&&"template"===e.key.name&&"value"===t),...Ng)}(e)?"angular":void 0;if(i)return function(e,t,n,r,o){const i=e.getValue(),s=Bg;Bg=Bg+1>>>0;const a=e=>"PRETTIER_HTML_PLACEHOLDER_".concat(e,"_").concat(s,"_IN_JS"),u=i.quasis.map(((e,t,n)=>t===n.length-1?e.value.cooked:e.value.cooked+a(t))).join(""),c=e.map(t,"expressions");if(0===c.length&&0===u.trim().length)return"``";const l=new RegExp(a("(\\d+)"),"g");let f=0;const p=Ag(Sg(n(u,{parser:r,__onHtmlRoot(e){f=e.children.length}})),(e=>{if("string"!=typeof e)return e;const t=[],n=e.split(l);for(let e=0;e<n.length;e++){let r=n[e];if(e%2==0){r&&(r=xg(r),o.embeddedInHtml&&(r=r.replace(/<\/(script)\b/gi,"<\\/$1")),t.push(r));continue}const i=+r;t.push(Cg(["${",Eg(c[i]),"}"]))}return Cg(t)})),h=/^\s/.test(u)?" ":"",d=/\s$/.test(u)?" ":"",m="ignore"===o.htmlWhitespaceSensitivity?bg:h&&d?yg:null;return Eg(Cg(m?["`",mg(Cg([m,Eg(p)])),m,"`"]:["`",h,f>1?mg(Eg(p)):Eg(p),d,"`"]))}(e,t,n,i,r);break}case"TemplateElement":if(s&&"TaggedTemplateExpression"===s.type&&1===i.quasis.length&&"Identifier"===s.tag.type&&("md"===s.tag.name||"markdown"===s.tag.name)){const e=i.quasis[0].value.raw.replace(/((?:\\\\)*)\\`/g,((e,t)=>"\\".repeat(t.length/2)+"`")),t=function(e){const t=e.match(/^([^\S\n]*)\S/m);return null===t?"":t[1]}(e);return Cg([""!==t?mg(Cg([vg,a(e.replace(new RegExp("^".concat(t),"gm"),""))])):Cg([Dg,wg(a(e))]),vg])}}function a(e){const t=n(e,{parser:"markdown",__inJsTemplate:!0});return Sg(_g(t,!0))}};var jg=function(e,t,n){if(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","flags","errors"].forEach((e=>{delete t[e]})),e.loc&&null===e.loc.source&&delete t.loc.source,"BigIntLiteral"===e.type&&(t.value=t.value.toLowerCase()),"EmptyStatement"===e.type)return null;if("JSXText"===e.type)return null;if("JSXExpressionContainer"===e.type&&"Literal"===e.expression.type&&" "===e.expression.value)return null;if("TSParameterProperty"===e.type&&null===e.accessibility&&!e.readonly)return{type:"Identifier",name:e.parameter.name,typeAnnotation:t.parameter.typeAnnotation,decorators:t.decorators};"TSNamespaceExportDeclaration"===e.type&&e.specifiers&&0===e.specifiers.length&&delete t.specifiers,"JSXOpeningElement"===e.type&&delete t.selfClosing,"JSXElement"===e.type&&delete t.closingElement,"Property"!==e.type&&"ObjectProperty"!==e.type&&"MethodDefinition"!==e.type&&"ClassProperty"!==e.type&&"TSPropertySignature"!==e.type&&"ObjectTypeProperty"!==e.type||"object"!=typeof e.key||!e.key||"Literal"!==e.key.type&&"StringLiteral"!==e.key.type&&"Identifier"!==e.key.type||delete t.key,"OptionalMemberExpression"===e.type&&!1===e.optional&&(t.type="MemberExpression",delete t.optional),"JSXElement"===e.type&&"style"===e.openingElement.name.name&&e.openingElement.attributes.some((e=>"jsx"===e.name.name))&&t.children.filter((e=>"JSXExpressionContainer"===e.type&&"TemplateLiteral"===e.expression.type)).map((e=>e.expression)).reduce(((e,t)=>e.concat(t.quasis)),[]).forEach((e=>delete e.value)),"JSXAttribute"===e.type&&"css"===e.name.name&&"JSXExpressionContainer"===e.value.type&&"TemplateLiteral"===e.value.expression.type&&t.value.expression.quasis.forEach((e=>delete e.value));const r=e.expression||e.callee;if("Decorator"===e.type&&"CallExpression"===r.type&&"Component"===r.callee.name&&1===r.arguments.length){const n=e.expression.arguments[0].properties;t.expression.arguments[0].properties.forEach(((e,t)=>{let r=null;switch(n[t].key.name){case"styles":"ArrayExpression"===e.value.type&&(r=e.value.elements[0]);break;case"template":"TemplateLiteral"===e.value.type&&(r=e.value)}r&&r.quasis.forEach((e=>delete e.value))}))}"TaggedTemplateExpression"!==e.type||"MemberExpression"!==e.tag.type&&("Identifier"!==e.tag.type||"gql"!==e.tag.name&&"graphql"!==e.tag.name&&"css"!==e.tag.name&&"md"!==e.tag.name&&"markdown"!==e.tag.name&&"html"!==e.tag.name)&&"CallExpression"!==e.tag.type||t.quasi.quasis.forEach((e=>delete e.value)),"TemplateLiteral"===e.type&&(e.leadingComments&&e.leadingComments.some((e=>"CommentBlock"===e.type&&["GraphQL","HTML"].some((t=>e.value===" ".concat(t," ")))))||"CallExpression"===n.type&&"graphql"===n.callee.name)&&t.quasis.forEach((e=>delete e.value))};const{getLast:Vg,hasNewline:$g,hasNewlineInRange:Ug,hasIgnoreComment:Wg,hasNodeIgnoreComment:Kg,skipWhitespace:qg}=ms,Hg=Bo.keyword.isIdentifierNameES5,zg="(?:(?=.)\\s)",Yg=new RegExp("^".concat(zg,"*:")),Jg=new RegExp("^".concat(zg,"*::"));function Gg(e,t){if(!e||"object"!=typeof e)return!1;if(Array.isArray(e))return e.some((e=>Gg(e,t)));const n=t(e);return"boolean"==typeof n?n:Object.keys(e).some((n=>Gg(e[n],t)))}function Xg(e){return"AssignmentExpression"===e.type||"BinaryExpression"===e.type||"LogicalExpression"===e.type||"NGPipeExpression"===e.type||"ConditionalExpression"===e.type||"CallExpression"===e.type||"OptionalCallExpression"===e.type||"MemberExpression"===e.type||"OptionalMemberExpression"===e.type||"SequenceExpression"===e.type||"TaggedTemplateExpression"===e.type||"BindExpression"===e.type||"UpdateExpression"===e.type&&!e.prefix||"TSAsExpression"===e.type||"TSNonNullExpression"===e.type}const Qg=new Set(["ExportDefaultDeclaration","ExportDefaultSpecifier","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration"]);function Zg(e){return e&&Qg.has(e.type)}function ey(e){return"BooleanLiteral"===e.type||"DirectiveLiteral"===e.type||"Literal"===e.type||"NullLiteral"===e.type||"NumericLiteral"===e.type||"RegExpLiteral"===e.type||"StringLiteral"===e.type||"TemplateLiteral"===e.type||"TSTypeLiteral"===e.type||"JSXText"===e.type}function ty(e){return"NumericLiteral"===e.type||"Literal"===e.type&&"number"==typeof e.value}function ny(e){return"StringLiteral"===e.type||"Literal"===e.type&&"string"==typeof e.value}function ry(e){return"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type}function oy(e){return!("CallExpression"!==e.type&&"OptionalCallExpression"!==e.type||"Identifier"!==e.callee.type||"async"!==e.callee.name&&"inject"!==e.callee.name&&"fakeAsync"!==e.callee.name)}function iy(e){return"JSXElement"===e.type||"JSXFragment"===e.type}function sy(e){return"get"===e.kind||"set"===e.kind}function ay(e,t,n){return n.locStart(e)===n.locStart(t)}function uy(e,t){return sy(e)||ay(e,e.value,t)}const cy=new Set(["BinaryExpression","LogicalExpression","NGPipeExpression"]);const ly=/^(skip|[fx]?(it|describe|test))$/;function fy(e){return"CallExpression"===e.type||"OptionalCallExpression"===e.type}const py=new RegExp("([ \n\r\t]+)"),hy=new RegExp("[^ \n\r\t]");function dy(e){return ey(e)&&(hy.test(yy(e))||!/\n/.test(yy(e)))}function my(e,t,n){return iy(t)?Kg(t):t.comments&&t.comments.some((t=>t.leading&&$g(e,n.locEnd(t))))}function gy(e){return e.quasis.some((e=>e.value.raw.includes("\n")))}function yy(e){return e.extra?e.extra.raw:e.raw}var by={classChildNeedsASIProtection:function(e){if(e){if(e.static||e.accessibility)return!1;if(!e.computed){const t=e.key&&e.key.name;if("in"===t||"instanceof"===t)return!0}switch(e.type){case"ClassProperty":case"TSAbstractClassProperty":return e.computed;case"MethodDefinition":case"TSAbstractMethodDefinition":case"ClassMethod":case"ClassPrivateMethod":{const t=e.value?e.value.async:e.async,n=e.value?e.value.generator:e.generator;return!(t||"get"===e.kind||"set"===e.kind||!e.computed&&!n)}case"TSIndexSignature":return!0;default:return!1}}},classPropMayCauseASIProblems:function(e){const t=e.getNode();if("ClassProperty"!==t.type)return!1;const n=t.key&&t.key.name;return!("static"!==n&&"get"!==n&&"set"!==n||t.value||t.typeAnnotation)||void 0},conditionalExpressionChainContainsJSX:function(e){return Boolean(function(e){const t=[];return function e(n){"ConditionalExpression"===n.type?(e(n.test),e(n.consequent),e(n.alternate)):t.push(n)}(e),t}(e).find(iy))},getFlowVariance:function(e){if(!e.variance)return null;const t=e.variance.kind||e.variance;switch(t){case"plus":return"+";case"minus":return"-";default:return t}},getLeftSidePathName:function(e,t){if(t.expressions)return["expressions",0];if(t.left)return["left"];if(t.test)return["test"];if(t.object)return["object"];if(t.callee)return["callee"];if(t.tag)return["tag"];if(t.argument)return["argument"];if(t.expression)return["expression"];throw new Error("Unexpected node has no left side",t)},getParentExportDeclaration:function(e){const t=e.getParentNode();return"declaration"===e.getName()&&Zg(t)?t:null},getTypeScriptMappedTypeModifier:function(e,t){return"+"===e?"+"+t:"-"===e?"-"+t:t},hasDanglingComments:function(e){return e.comments&&e.comments.some((e=>!e.leading&&!e.trailing))},hasFlowAnnotationComment:function(e){return e&&e[0].value.match(Jg)},hasFlowShorthandAnnotationComment:function(e){return e.extra&&e.extra.parenthesized&&e.trailingComments&&e.trailingComments[0].value.match(Yg)},hasLeadingComment:function(e){return e.comments&&e.comments.some((e=>e.leading))},hasLeadingOwnLineComment:my,hasNakedLeftSide:Xg,hasNewlineBetweenOrAfterDecorators:function(e,t){return Ug(t.originalText,t.locStart(e.decorators[0]),t.locEnd(Vg(e.decorators)))||$g(t.originalText,t.locEnd(Vg(e.decorators)))},hasNgSideEffect:function(e){return Gg(e.getValue(),(e=>{switch(e.type){case void 0:return!1;case"CallExpression":case"OptionalCallExpression":case"AssignmentExpression":return!0}}))},hasNode:Gg,hasPrettierIgnore:function(e){return Wg(e)||function(e){const t=e.getValue(),n=e.getParentNode();if(!(n&&t&&iy(t)&&iy(n)))return!1;let r=null;for(let e=n.children.indexOf(t);e>0;e--){const t=n.children[e-1];if("JSXText"!==t.type||dy(t)){r=t;break}}return r&&"JSXExpressionContainer"===r.type&&"JSXEmptyExpression"===r.expression.type&&r.expression.comments&&r.expression.comments.find((e=>"prettier-ignore"===e.value.trim()))}(e)},hasTrailingComment:function(e){return e.comments&&e.comments.some((e=>e.trailing))},identity:function(e){return e},isBinaryish:function(e){return cy.has(e.type)},isCallOrOptionalCallExpression:fy,isEmptyJSXElement:function(e){if(0===e.children.length)return!0;if(e.children.length>1)return!1;const t=e.children[0];return ey(t)&&!dy(t)},isExportDeclaration:Zg,isFlowAnnotationComment:function(e,t,n){const r=n.locStart(t),o=qg(e,n.locEnd(t));return"/*"===e.slice(r,r+2)&&"*/"===e.slice(o,o+2)},isFunctionCompositionArgs:function(e){if(e.length<=1)return!1;let t=0;for(const n of e)if(ry(n)){if(t+=1,t>1)return!0}else if(fy(n))for(const e of n.arguments)if(ry(e))return!0;return!1},isFunctionNotation:uy,isFunctionOrArrowExpression:ry,isGetterOrSetter:sy,isJestEachTemplateLiteral:function(e,t){const n=/^[xf]?(describe|it|test)$/;return"TaggedTemplateExpression"===t.type&&t.quasi===e&&"MemberExpression"===t.tag.type&&"Identifier"===t.tag.property.type&&"each"===t.tag.property.name&&("Identifier"===t.tag.object.type&&n.test(t.tag.object.name)||"MemberExpression"===t.tag.object.type&&"Identifier"===t.tag.object.property.type&&("only"===t.tag.object.property.name||"skip"===t.tag.object.property.name)&&"Identifier"===t.tag.object.object.type&&n.test(t.tag.object.object.name))},isJSXNode:iy,isJSXWhitespaceExpression:function(e){return"JSXExpressionContainer"===e.type&&ey(e.expression)&&" "===e.expression.value&&!e.expression.comments},isLastStatement:function(e){const t=e.getParentNode();if(!t)return!0;const n=e.getValue(),r=(t.body||t.consequent).filter((e=>"EmptyStatement"!==e.type));return r&&r[r.length-1]===n},isLiteral:ey,isLongCurriedCallExpression:function(e){const t=e.getValue(),n=e.getParentNode();return fy(t)&&fy(n)&&n.callee===t&&t.arguments.length>n.arguments.length&&n.arguments.length>0},isSimpleCallArgument:function e(t,n){if(n>=2)return!1;const r=t=>e(t,n+1),o="Literal"===t.type&&t.regex&&t.regex.pattern||"RegExpLiteral"===t.type&&t.pattern;return!(o&&o.length>5)&&("Literal"===t.type||"BooleanLiteral"===t.type||"NullLiteral"===t.type||"NumericLiteral"===t.type||"StringLiteral"===t.type||"Identifier"===t.type||"ThisExpression"===t.type||"Super"===t.type||"BigIntLiteral"===t.type||"PrivateName"===t.type||"ArgumentPlaceholder"===t.type||"RegExpLiteral"===t.type||"Import"===t.type||("TemplateLiteral"===t.type?t.expressions.every(r):"ObjectExpression"===t.type?t.properties.every((e=>!e.computed&&(e.shorthand||e.value&&r(e.value)))):"ArrayExpression"===t.type?t.elements.every((e=>null==e||r(e))):"CallExpression"===t.type||"OptionalCallExpression"===t.type||"NewExpression"===t.type?e(t.callee,n)&&t.arguments.every(r):"MemberExpression"===t.type||"OptionalMemberExpression"===t.type?e(t.object,n)&&e(t.property,n):"UnaryExpression"!==t.type||"!"!==t.operator&&"-"!==t.operator?"TSNonNullExpression"===t.type&&e(t.expression,n):e(t.argument,n)))},isMeaningfulJSXText:dy,isMemberExpressionChain:function e(t){return("MemberExpression"===t.type||"OptionalMemberExpression"===t.type)&&("Identifier"===t.object.type||e(t.object))},isMemberish:function(e){return"MemberExpression"===e.type||"OptionalMemberExpression"===e.type||"BindExpression"===e.type&&e.object},isNgForOf:function(e,t,n){return"NGMicrosyntaxKeyedExpression"===e.type&&"of"===e.key.name&&1===t&&"NGMicrosyntaxLet"===n.body[0].type&&null===n.body[0].value},isNumericLiteral:ty,isObjectType:function(e){return"ObjectTypeAnnotation"===e.type||"TSTypeLiteral"===e.type},isObjectTypePropertyAFunction:function(e,t){return!("ObjectTypeProperty"!==e.type&&"ObjectTypeInternalSlot"!==e.type||"FunctionTypeAnnotation"!==e.value.type||e.static||uy(e,t))},isSimpleFlowType:function(e){return e&&["AnyTypeAnnotation","NullLiteralTypeAnnotation","GenericTypeAnnotation","ThisTypeAnnotation","NumberTypeAnnotation","VoidTypeAnnotation","EmptyTypeAnnotation","MixedTypeAnnotation","BooleanTypeAnnotation","BooleanLiteralTypeAnnotation","StringTypeAnnotation"].includes(e.type)&&!("GenericTypeAnnotation"===e.type&&e.typeParameters)},isSimpleTemplateLiteral:function(e){return 0!==e.expressions.length&&e.expressions.every((e=>{if(e.comments)return!1;if("Identifier"===e.type||"ThisExpression"===e.type)return!0;if("MemberExpression"===e.type||"OptionalMemberExpression"===e.type){let t=e;for(;"MemberExpression"===t.type||"OptionalMemberExpression"===t.type;){if("Identifier"!==t.property.type&&"Literal"!==t.property.type&&"StringLiteral"!==t.property.type&&"NumericLiteral"!==t.property.type)return!1;if(t=t.object,t.comments)return!1}return"Identifier"===t.type||"ThisExpression"===t.type}return!1}))},isStringLiteral:ny,isStringPropSafeToCoerceToIdentifier:function(e,t){return ny(e.key)&&Hg(e.key.value)&&"json"!==t.parser&&!(("typescript"===t.parser||"babel-ts"===t.parser)&&"ClassProperty"===e.type)},isTemplateOnItsOwnLine:function(e,t,n){return("TemplateLiteral"===e.type&&gy(e)||"TaggedTemplateExpression"===e.type&&gy(e.quasi))&&!$g(t,n.locStart(e),{backwards:!0})},isTestCall:function e(t,n){if("CallExpression"!==t.type)return!1;if(1===t.arguments.length){if(oy(t)&&n&&e(n))return ry(t.arguments[0]);if(function(e){return"Identifier"===e.callee.type&&/^(before|after)(Each|All)$/.test(e.callee.name)&&1===e.arguments.length}(t))return oy(t.arguments[0])}else if((2===t.arguments.length||3===t.arguments.length)&&("Identifier"===t.callee.type&&ly.test(t.callee.name)||("MemberExpression"===(r=t).callee.type||"OptionalMemberExpression"===r.callee.type)&&"Identifier"===r.callee.object.type&&"Identifier"===r.callee.property.type&&ly.test(r.callee.object.name)&&("only"===r.callee.property.name||"skip"===r.callee.property.name))&&(function(e){return"TemplateLiteral"===e.type}(t.arguments[0])||ny(t.arguments[0])))return!(t.arguments[2]&&!ty(t.arguments[2]))&&((2===t.arguments.length?ry(t.arguments[1]):function(e){return"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type&&"BlockStatement"===e.body.type}(t.arguments[1])&&t.arguments[1].params.length<=1)||oy(t.arguments[1]));var r;return!1},isTheOnlyJSXElementInMarkdown:function(e,t){if("markdown"!==e.parentParser&&"mdx"!==e.parentParser)return!1;const n=t.getNode();if(!n.expression||!iy(n.expression))return!1;const r=t.getParentNode();return"Program"===r.type&&1===r.body.length},isTSXFile:function(e){return e.filepath&&/\.tsx$/i.test(e.filepath)},isTypeAnnotationAFunction:function(e,t){return!("TypeAnnotation"!==e.type&&"TSTypeAnnotation"!==e.type||"FunctionTypeAnnotation"!==e.typeAnnotation.type||e.static||ay(e,e.typeAnnotation,t))},matchJsxWhitespaceRegex:py,needsHardlineAfterDanglingComment:function(e){if(!e.comments)return!1;const t=Vg(e.comments.filter((e=>!e.leading&&!e.trailing)));return t&&!pg.isBlockComment(t)},rawText:yy,returnArgumentHasLeadingComment:function(e,t){if(my(e.originalText,t,e))return!0;if(Xg(t)){let r,o=t;for(;r=(n=o).expressions?n.expressions[0]:n.left||n.test||n.callee||n.object||n.tag||n.argument||n.expression;)if(o=r,my(e.originalText,o,e))return!0}var n;return!1}};const{getLeftSidePathName:vy,hasFlowShorthandAnnotationComment:Dy,hasNakedLeftSide:Cy,hasNode:Ey}=by;function wy(e,t){const n=e.getParentNode();if(!n)return!1;const r=e.getName(),o=e.getNode();if(e.getValue()!==o)return!1;if(t.__isInHtmlInterpolation&&!t.bracketSpacing&&function(e){switch(e.type){case"ObjectExpression":return!0;default:return!1}}(o)&&Ay(e))return!0;if(function(e){return"BlockStatement"===e.type||"BreakStatement"===e.type||"ClassBody"===e.type||"ClassDeclaration"===e.type||"ClassMethod"===e.type||"ClassProperty"===e.type||"ClassPrivateProperty"===e.type||"ContinueStatement"===e.type||"DebuggerStatement"===e.type||"DeclareClass"===e.type||"DeclareExportAllDeclaration"===e.type||"DeclareExportDeclaration"===e.type||"DeclareFunction"===e.type||"DeclareInterface"===e.type||"DeclareModule"===e.type||"DeclareModuleExports"===e.type||"DeclareVariable"===e.type||"DoWhileStatement"===e.type||"EnumDeclaration"===e.type||"ExportAllDeclaration"===e.type||"ExportDefaultDeclaration"===e.type||"ExportNamedDeclaration"===e.type||"ExpressionStatement"===e.type||"ForInStatement"===e.type||"ForOfStatement"===e.type||"ForStatement"===e.type||"FunctionDeclaration"===e.type||"IfStatement"===e.type||"ImportDeclaration"===e.type||"InterfaceDeclaration"===e.type||"LabeledStatement"===e.type||"MethodDefinition"===e.type||"ReturnStatement"===e.type||"SwitchStatement"===e.type||"ThrowStatement"===e.type||"TryStatement"===e.type||"TSDeclareFunction"===e.type||"TSEnumDeclaration"===e.type||"TSImportEqualsDeclaration"===e.type||"TSInterfaceDeclaration"===e.type||"TSModuleDeclaration"===e.type||"TSNamespaceExportDeclaration"===e.type||"TypeAlias"===e.type||"VariableDeclaration"===e.type||"WhileStatement"===e.type||"WithStatement"===e.type}(o))return!1;if("flow"!==t.parser&&Dy(e.getValue()))return!0;if("Identifier"===o.type)return!!(o.extra&&o.extra.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(o.name));if("ParenthesizedExpression"===n.type)return!1;if(!("ClassDeclaration"!==n.type&&"ClassExpression"!==n.type||n.superClass!==o||"ArrowFunctionExpression"!==o.type&&"AssignmentExpression"!==o.type&&"AwaitExpression"!==o.type&&"BinaryExpression"!==o.type&&"ConditionalExpression"!==o.type&&"LogicalExpression"!==o.type&&"NewExpression"!==o.type&&"ObjectExpression"!==o.type&&"ParenthesizedExpression"!==o.type&&"SequenceExpression"!==o.type&&"TaggedTemplateExpression"!==o.type&&"UnaryExpression"!==o.type&&"UpdateExpression"!==o.type&&"YieldExpression"!==o.type))return!0;if("ExportDefaultDeclaration"===n.type)return Sy(e,t)||"SequenceExpression"===o.type;if("Decorator"===n.type&&n.expression===o){let e=!1,t=!1,n=o;for(;n;)switch(n.type){case"MemberExpression":t=!0,n=n.object;break;case"CallExpression":if(t||e)return!0;e=!0,n=n.callee;break;case"Identifier":return!1;default:return!0}return!0}if("ArrowFunctionExpression"===n.type&&n.body===o&&"SequenceExpression"!==o.type&&ms.startsWithNoLookaheadToken(o,!1)||"ExpressionStatement"===n.type&&ms.startsWithNoLookaheadToken(o,!0))return!0;switch(o.type){case"SpreadElement":case"SpreadProperty":return"MemberExpression"===n.type&&"object"===r&&n.object===o;case"UpdateExpression":if("UnaryExpression"===n.type)return o.prefix&&("++"===o.operator&&"+"===n.operator||"--"===o.operator&&"-"===n.operator);case"UnaryExpression":switch(n.type){case"UnaryExpression":return o.operator===n.operator&&("+"===o.operator||"-"===o.operator);case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return"object"===r;case"TaggedTemplateExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===r;case"BinaryExpression":return"**"===n.operator&&"left"===r;case"TSNonNullExpression":return!0;default:return!1}case"BinaryExpression":{if("UpdateExpression"===n.type)return!0;const t=t=>{let n=0;for(;t;){const r=e.getParentNode(n++);if(!r)return!1;if("ForStatement"===r.type&&r.init===t)return!0;t=r}return!1};if("in"===o.operator&&t(o))return!0}case"TSTypeAssertion":case"TSAsExpression":case"LogicalExpression":switch(n.type){case"ConditionalExpression":return"TSAsExpression"===o.type;case"CallExpression":case"NewExpression":case"OptionalCallExpression":return"callee"===r;case"ClassExpression":case"ClassDeclaration":return"superClass"===r&&n.superClass===o;case"TSTypeAssertion":case"TaggedTemplateExpression":case"UnaryExpression":case"JSXSpreadAttribute":case"SpreadElement":case"SpreadProperty":case"BindExpression":case"AwaitExpression":case"TSAsExpression":case"TSNonNullExpression":case"UpdateExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return"object"===r;case"AssignmentExpression":return n.left===o&&("TSTypeAssertion"===o.type||"TSAsExpression"===o.type);case"LogicalExpression":if("LogicalExpression"===o.type)return n.operator!==o.operator;case"BinaryExpression":{if(!o.operator&&"TSTypeAssertion"!==o.type)return!0;const e=n.operator,t=ms.getPrecedence(e),i=o.operator,s=ms.getPrecedence(i);return t>s||(t===s&&"right"===r?(xi.strictEqual(n.right,o),!0):t===s&&!ms.shouldFlatten(e,i)||(t<s&&"%"===i?"+"===e||"-"===e:!!ms.isBitwiseOperator(e)))}default:return!1}case"SequenceExpression":switch(n.type){case"ReturnStatement":case"ForStatement":return!1;case"ExpressionStatement":return"expression"!==r;case"ArrowFunctionExpression":return"body"!==r;default:return!0}case"YieldExpression":if("UnaryExpression"===n.type||"AwaitExpression"===n.type||"TSAsExpression"===n.type||"TSNonNullExpression"===n.type)return!0;case"AwaitExpression":switch(n.type){case"TaggedTemplateExpression":case"UnaryExpression":case"BinaryExpression":case"LogicalExpression":case"SpreadElement":case"SpreadProperty":case"TSAsExpression":case"TSNonNullExpression":case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return"object"===r;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===r;case"ConditionalExpression":return n.test===o;default:return!1}case"TSJSDocFunctionType":case"TSConditionalType":if("TSConditionalType"===n.type&&o===n.extendsType)return!0;case"TSFunctionType":case"TSConstructorType":if("TSConditionalType"===n.type&&o===n.checkType)return!0;case"TSUnionType":case"TSIntersectionType":if("TSUnionType"===n.type||"TSIntersectionType"===n.type)return!0;case"TSTypeOperator":case"TSInferType":return"TSArrayType"===n.type||"TSOptionalType"===n.type||"TSRestType"===n.type||"TSIndexedAccessType"===n.type&&o===n.objectType||"TSTypeOperator"===n.type||"TSTypeAnnotation"===n.type&&/^TSJSDoc/.test(e.getParentNode(1).type);case"ArrayTypeAnnotation":return"NullableTypeAnnotation"===n.type;case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return"ArrayTypeAnnotation"===n.type||"NullableTypeAnnotation"===n.type||"IntersectionTypeAnnotation"===n.type||"UnionTypeAnnotation"===n.type;case"NullableTypeAnnotation":return"ArrayTypeAnnotation"===n.type;case"FunctionTypeAnnotation":{const t="NullableTypeAnnotation"===n.type?e.getParentNode(1):n;return"UnionTypeAnnotation"===t.type||"IntersectionTypeAnnotation"===t.type||"ArrayTypeAnnotation"===t.type||"NullableTypeAnnotation"===t.type}case"StringLiteral":case"NumericLiteral":case"Literal":if("string"==typeof o.value&&"ExpressionStatement"===n.type&&("typescript"!==t.parser&&!n.directive||"typescript"===t.parser&&"("===t.originalText.charAt(t.locStart(o)-1))){const t=e.getParentNode(1);return"Program"===t.type||"BlockStatement"===t.type}return"MemberExpression"===n.type&&"number"==typeof o.value&&"object"===r&&n.object===o;case"AssignmentExpression":{const t=e.getParentNode(1);return!(("ArrowFunctionExpression"!==n.type||n.body!==o)&&("ClassProperty"===n.type&&n.key===o&&n.computed||"TSPropertySignature"===n.type&&n.name===o||"ForStatement"===n.type&&(n.init===o||n.update===o)||("ExpressionStatement"===n.type?"ObjectPattern"!==o.left.type:"TSPropertySignature"===n.type&&n.key===o||"AssignmentExpression"===n.type||"SequenceExpression"===n.type&&t&&"ForStatement"===t.type&&(t.init===n||t.update===n)||"Property"===n.type&&n.value===o||"NGChainedExpression"===n.type)))}case"ConditionalExpression":switch(n.type){case"TaggedTemplateExpression":case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":case"ExportDefaultDeclaration":case"AwaitExpression":case"JSXSpreadAttribute":case"TSTypeAssertion":case"TypeCastExpression":case"TSAsExpression":case"TSNonNullExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===r;case"ConditionalExpression":return"test"===r&&n.test===o;case"MemberExpression":case"OptionalMemberExpression":return"object"===r;default:return!1}case"FunctionExpression":switch(n.type){case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===r;case"TaggedTemplateExpression":return!0;default:return!1}case"ArrowFunctionExpression":switch(n.type){case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===r;case"MemberExpression":case"OptionalMemberExpression":return"object"===r;case"TSAsExpression":case"BindExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"BinaryExpression":case"AwaitExpression":case"TSTypeAssertion":return!0;case"ConditionalExpression":return"test"===r;default:return!1}case"ClassExpression":switch(n.type){case"NewExpression":return"callee"===r&&n.callee===o;default:return!1}case"OptionalMemberExpression":case"OptionalCallExpression":if("MemberExpression"===n.type&&"object"===r||("CallExpression"===n.type||"NewExpression"===n.type)&&"callee"===r)return!0;case"CallExpression":case"MemberExpression":case"TaggedTemplateExpression":case"TSNonNullExpression":if(("BindExpression"===n.type||"NewExpression"===n.type)&&"callee"===r){let e=o;for(;e;)switch(e.type){case"CallExpression":case"OptionalCallExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":case"BindExpression":e=e.object;break;case"TaggedTemplateExpression":e=e.tag;break;case"TSNonNullExpression":e=e.expression;break;default:return!1}}return!1;case"BindExpression":return("BindExpression"===n.type||"NewExpression"===n.type)&&"callee"===r||("MemberExpression"===n.type||"OptionalMemberExpression"===n.type)&&"object"===r;case"NGPipeExpression":return!("NGRoot"===n.type||"NGMicrosyntaxExpression"===n.type||"ObjectProperty"===n.type||"ArrayExpression"===n.type||("CallExpression"===n.type||"OptionalCallExpression"===n.type)&&n.arguments[r]===o||"NGPipeExpression"===n.type&&"right"===r||"MemberExpression"===n.type&&"property"===r||"AssignmentExpression"===n.type);case"JSXFragment":case"JSXElement":return"callee"===r||"ArrayExpression"!==n.type&&"ArrowFunctionExpression"!==n.type&&"AssignmentExpression"!==n.type&&"AssignmentPattern"!==n.type&&"BinaryExpression"!==n.type&&"CallExpression"!==n.type&&"NewExpression"!==n.type&&"ConditionalExpression"!==n.type&&"ExpressionStatement"!==n.type&&"JsExpressionRoot"!==n.type&&"JSXAttribute"!==n.type&&"JSXElement"!==n.type&&"JSXExpressionContainer"!==n.type&&"JSXFragment"!==n.type&&"LogicalExpression"!==n.type&&"ObjectProperty"!==n.type&&"OptionalCallExpression"!==n.type&&"Property"!==n.type&&"ReturnStatement"!==n.type&&"ThrowStatement"!==n.type&&"TypeCastExpression"!==n.type&&"VariableDeclarator"!==n.type&&"YieldExpression"!==n.type;case"TypeAnnotation":return"returnType"===r&&"ArrowFunctionExpression"===n.type&&function(e){return Ey(e,(e=>"ObjectTypeAnnotation"===e.type&&Ey(e,(e=>"FunctionTypeAnnotation"===e.type||void 0))||void 0))}(o)}return!1}function Ay(e){const t=e.getValue(),n=e.getParentNode(),r=e.getName();switch(n.type){case"NGPipeExpression":if("number"==typeof r&&n.arguments[r]===t&&n.arguments.length-1===r)return e.callParent(Ay);break;case"ObjectProperty":if("value"===r){const t=e.getParentNode(1);return t.properties[t.properties.length-1]===n}break;case"BinaryExpression":case"LogicalExpression":if("right"===r)return e.callParent(Ay);break;case"ConditionalExpression":if("alternate"===r)return e.callParent(Ay);break;case"UnaryExpression":if(n.prefix)return e.callParent(Ay)}return!1}function Sy(e,t){const n=e.getValue(),r=e.getParentNode();return"FunctionExpression"===n.type||"ClassExpression"===n.type?"ExportDefaultDeclaration"===r.type||!wy(e,t):!(!Cy(n)||"ExportDefaultDeclaration"!==r.type&&wy(e,t))&&e.call((e=>Sy(e,t)),...vy(e,n))}var xy=wy;const{builders:{concat:_y,join:Fy,line:Ty}}=Rs;var ky={isVueEventBindingExpression:function e(t){switch(t.type){case"MemberExpression":switch(t.property.type){case"Identifier":case"NumericLiteral":case"StringLiteral":return e(t.object)}return!1;case"Identifier":return!0;default:return!1}},printHtmlBinding:function(e,t,n){const r=e.getValue();if(t.__onHtmlBindingRoot&&null===e.getName()&&t.__onHtmlBindingRoot(r,t),"File"===r.type)return t.__isVueForBindingLeft?e.call((e=>{const{params:t}=e.getValue();return _y([t.length>1?"(":"",Fy(_y([",",Ty]),e.map(n,"params")),t.length>1?")":""])}),"program","body",0):t.__isVueSlotScope?e.call((e=>Fy(_y([",",Ty]),e.map(n,"params"))),"program","body",0):void 0}};var Ny=function(e,t){switch(t.parser){case"json":case"json5":case"json-stringify":case"__js_expression":case"__vue_expression":return Object.assign({},e,{type:t.parser.startsWith("__")?"JsExpressionRoot":"JsonRoot",node:e,comments:[],rootMarker:t.rootMarker});default:return e}};const{shouldFlatten:Oy,getNextNonSpaceNonCommentCharacter:Ly,hasNewline:My,hasNewlineInRange:Py,getLast:Iy,getStringWidth:By,printString:Ry,printNumber:jy,hasIgnoreComment:Vy,hasNodeIgnoreComment:$y,getPenultimate:Uy,startsWithNoLookaheadToken:Wy,getIndentSize:Ky,getPreferredQuote:qy}=ms,{isNextLineEmpty:Hy,isNextLineEmptyAfterIndex:zy,getNextNonSpaceNonCommentCharacterIndex:Yy}=ua,{insertPragma:Jy}=gu,{printHtmlBinding:Gy,isVueEventBindingExpression:Xy}=ky,{classChildNeedsASIProtection:Qy,classPropMayCauseASIProblems:Zy,conditionalExpressionChainContainsJSX:eb,getFlowVariance:tb,getLeftSidePathName:nb,getParentExportDeclaration:rb,getTypeScriptMappedTypeModifier:ob,hasDanglingComments:ib,hasFlowAnnotationComment:sb,hasFlowShorthandAnnotationComment:ab,hasLeadingComment:ub,hasLeadingOwnLineComment:cb,hasNakedLeftSide:lb,hasNewlineBetweenOrAfterDecorators:fb,hasNgSideEffect:pb,hasPrettierIgnore:hb,hasTrailingComment:db,identity:mb,isBinaryish:gb,isCallOrOptionalCallExpression:yb,isEmptyJSXElement:bb,isExportDeclaration:vb,isFlowAnnotationComment:Db,isFunctionCompositionArgs:Cb,isFunctionNotation:Eb,isFunctionOrArrowExpression:wb,isGetterOrSetter:Ab,isJestEachTemplateLiteral:Sb,isJSXNode:xb,isJSXWhitespaceExpression:_b,isLastStatement:Fb,isLiteral:Tb,isLongCurriedCallExpression:kb,isMeaningfulJSXText:Nb,isMemberExpressionChain:Ob,isMemberish:Lb,isNgForOf:Mb,isNumericLiteral:Pb,isObjectType:Ib,isObjectTypePropertyAFunction:Bb,isSimpleCallArgument:Rb,isSimpleFlowType:jb,isSimpleTemplateLiteral:Vb,isStringLiteral:$b,isStringPropSafeToCoerceToIdentifier:Ub,isTemplateOnItsOwnLine:Wb,isTestCall:Kb,isTheOnlyJSXElementInMarkdown:qb,isTSXFile:Hb,isTypeAnnotationAFunction:zb,matchJsxWhitespaceRegex:Yb,needsHardlineAfterDanglingComment:Jb,rawText:Gb,returnArgumentHasLeadingComment:Xb}=by,Qb=new WeakMap,{builders:{concat:Zb,join:ev,line:tv,hardline:nv,softline:rv,literalline:ov,group:iv,indent:sv,align:av,conditionalGroup:uv,fill:cv,ifBreak:lv,breakParent:fv,lineSuffixBoundary:pv,addAlignmentToDoc:hv,dedent:dv},utils:{willBreak:mv,isLineNext:gv,isEmpty:yv,removeLines:bv},printer:{printDocToString:vv}}=Rs;let Dv=0;function Cv(e,t){switch(t=t||"es5",e.trailingComma){case"all":if("all"===t)return!0;case"es5":if("es5"===t)return!0;case"none":default:return!1}}function Ev(e,t,n){const r=e.getValue();return iv(Zb([ev(tv,e.map(n,"decorators")),fb(r,t)?nv:tv]))}function wv(e,t,n,r){const o=e.getValue(),i=o[r.consequentNodePropertyName],s=o[r.alternateNodePropertyName],a=[];let u=!1;const c=e.getParentNode(),l=c.type===r.conditionalNodeType&&r.testNodePropertyNames.some((e=>c[e]===o));let f,p,h=c.type===r.conditionalNodeType&&!l,d=0;do{p=f||o,f=e.getParentNode(d),d++}while(f&&f.type===r.conditionalNodeType&&r.testNodePropertyNames.every((e=>f[e]!==p)));const m=f||c,g=p;if(r.shouldCheckJsx&&(xb(o[r.testNodePropertyNames[0]])||xb(i)||xb(s)||eb(g))){u=!0,h=!0;const t=e=>Zb([lv("(",""),sv(Zb([rv,e])),rv,lv(")","")]),o=e=>"NullLiteral"===e.type||"Literal"===e.type&&null===e.value||"Identifier"===e.type&&"undefined"===e.name;a.push(" ? ",o(i)?e.call(n,r.consequentNodePropertyName):t(e.call(n,r.consequentNodePropertyName))," : ",s.type===r.conditionalNodeType||o(s)?e.call(n,r.alternateNodePropertyName):t(e.call(n,r.alternateNodePropertyName)))}else{const u=Zb([tv,"? ",i.type===r.conditionalNodeType?lv("","("):"",av(2,e.call(n,r.consequentNodePropertyName)),i.type===r.conditionalNodeType?lv("",")"):"",tv,": ",s.type===r.conditionalNodeType?e.call(n,r.alternateNodePropertyName):av(2,e.call(n,r.alternateNodePropertyName))]);a.push(c.type!==r.conditionalNodeType||c[r.alternateNodePropertyName]===o||l?u:t.useTabs?dv(sv(u)):av(Math.max(0,t.tabWidth-2),u))}const y=!u&&("MemberExpression"===c.type||"OptionalMemberExpression"===c.type||"NGPipeExpression"===c.type&&c.left===o)&&!c.computed,b=(e=>c===m?iv(e):e)(Zb([].concat((v=Zb(r.beforeParts()),c.type===r.conditionalNodeType&&c[r.alternateNodePropertyName]===o?av(2,v):v),h?Zb(a):sv(Zb(a)),r.afterParts(y))));var v;return l?iv(Zb([sv(Zb([rv,b])),rv])):b}function Av(e,t,n){const r=[],o=e.getNode(),i="ClassBody"===o.type;return e.map(((e,s)=>{const a=e.getValue();if(!a)return;if("EmptyStatement"===a.type)return;const u=n(e),c=t.originalText,l=[];if(t.semi||i||qb(t,e)||!function(e,t){return"ExpressionStatement"===e.getNode().type&&e.call((e=>Zv(e,t)),"expression")}(e,t)?l.push(u):a.comments&&a.comments.some((e=>e.leading))?l.push(n(e,{needsSemi:!0})):l.push(";",u),!t.semi&&i)if(Zy(e))l.push(";");else if("ClassProperty"===a.type){const e=o.body[s+1];Qy(e)&&l.push(";")}Hy(c,a,t.locEnd)&&!Fb(e)&&l.push(nv),r.push(Zb(l))})),ev(nv,r)}function Sv(e,t,n){const r=e.getNode();if(r.computed)return Zb(["[",e.call(n,"key"),"]"]);const o=e.getParentNode(),{key:i}=r;if("ClassPrivateProperty"===r.type&&"Identifier"===i.type)return Zb(["#",e.call(n,"key")]);if("consistent"===t.quoteProps&&!Qb.has(o)){const e=(o.properties||o.body||o.members).some((e=>!e.computed&&e.key&&$b(e.key)&&!Ub(e,t)));Qb.set(o,e)}if("Identifier"===i.type&&("json"===t.parser||"consistent"===t.quoteProps&&Qb.get(o))){const n=Ry(JSON.stringify(i.name),t);return e.call((e=>ka.printComments(e,(()=>n),t)),"key")}return Ub(r,t)&&("as-needed"===t.quoteProps||"consistent"===t.quoteProps&&!Qb.get(o))?e.call((e=>ka.printComments(e,(()=>i.value),t)),"key"):e.call(n,"key")}function xv(e,t,n){const r=e.getNode(),{kind:o}=r,i=r.value||r,s=[];return o&&"init"!==o&&"method"!==o&&"constructor"!==o?(xi.ok("get"===o||"set"===o),s.push(o," ")):(i.async&&s.push("async "),i.generator&&s.push("*")),s.push(Sv(e,t,n),r.optional||r.key.optional?"?":"",r===i?_v(e,t,n):e.call((e=>_v(e,t,n)),"value")),Zb(s)}function _v(e,t,n){const r=[Nv(e,0,n),iv(Zb([Ov(e,n,t),Pv(e,n,t)]))];return e.getNode().body?r.push(" ",e.call(n,"body")):r.push(t.semi?";":""),Zb(r)}function Fv(e){return"ObjectExpression"===e.type&&(e.properties.length>0||e.comments)||"ArrayExpression"===e.type&&(e.elements.length>0||e.comments)||"TSTypeAssertion"===e.type&&Fv(e.expression)||"TSAsExpression"===e.type&&Fv(e.expression)||"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type&&(!e.returnType||!e.returnType.typeAnnotation||"TSTypeReference"!==e.returnType.typeAnnotation.type)&&("BlockStatement"===e.body.type||"ArrowFunctionExpression"===e.body.type||"ObjectExpression"===e.body.type||"ArrayExpression"===e.body.type||"CallExpression"===e.body.type||"OptionalCallExpression"===e.body.type||"ConditionalExpression"===e.body.type||xb(e.body))}function Tv(e,t,n){const r=e.getValue(),o=r.arguments;if(0===o.length)return Zb(["(",ka.printDanglingComments(e,t,!0),")"]);if(2===o.length&&"ArrowFunctionExpression"===o[0].type&&0===o[0].params.length&&"BlockStatement"===o[0].body.type&&"ArrayExpression"===o[1].type&&!o.find((e=>e.comments)))return Zb(["(",e.call(n,"arguments",0),", ",e.call(n,"arguments",1),")"]);let i=!1,s=!1,a=!1;const u=o.length-1,c=e.map(((e,r)=>{const o=e.getNode(),c=[n(e)];return r===u||(Hy(t.originalText,o,t.locEnd)?(0===r&&(a=!0),i=!0,c.push(",",nv,nv)):c.push(",",tv)),s=function(e,t){if(!e||"ArrowFunctionExpression"!==e.type||!e.body||"BlockStatement"!==e.body.type||!e.params||e.params.length<1)return!1;let r=!1;return t.each((e=>{const t=Zb([n(e)]);r=r||mv(t)}),"params"),r}(o,e),Zb(c)}),"arguments"),l=r.callee&&"Import"===r.callee.type||!Cv(t,"all")?"":",";function f(){return iv(Zb(["(",sv(Zb([tv,Zb(c)])),l,tv,")"]),{shouldBreak:!0})}if("Decorator"!==e.getParentNode().type&&Cb(o))return f();const p=function(e){if(2!==e.length)return!1;const[t,n]=e;return!(t.comments&&t.comments.length||"FunctionExpression"!==t.type&&("ArrowFunctionExpression"!==t.type||"BlockStatement"!==t.body.type)||"FunctionExpression"===n.type||"ArrowFunctionExpression"===n.type||"ConditionalExpression"===n.type||Fv(n))}(o),h=function(e){const t=Iy(e),n=Uy(e);return!ub(t)&&!db(t)&&Fv(t)&&(!n||n.type!==t.type)}(o);if(p||h){const t=(p?c.slice(1).some(mv):c.slice(0,-1).some(mv))||i||s;let u,l=0;e.each((e=>{p&&0===l&&(u=[Zb([e.call((e=>n(e,{expandFirstArg:!0}))),c.length>1?",":"",a?nv:tv,a?nv:""])].concat(c.slice(1))),h&&l===o.length-1&&(u=c.slice(0,-1).concat(e.call((e=>n(e,{expandLastArg:!0}))))),l++}),"arguments");const d=c.some(mv),m=Zb(["(",Zb(u),")"]);return Zb([d?fv:"",uv([d||r.typeArguments||r.typeParameters?lv(f(),m):m,Zb(p?["(",iv(u[0],{shouldBreak:!0}),Zb(u.slice(1)),")"]:["(",Zb(c.slice(0,-1)),iv(Iy(u),{shouldBreak:!0}),")"]),f()],{shouldBreak:t})])}const d=Zb(["(",sv(Zb([rv,Zb(c)])),lv(l),rv,")"]);return kb(e)?d:iv(d,{shouldBreak:c.some(mv)||i})}function kv(e,t,n){const r=e.getValue();if(!r.typeAnnotation)return"";const o=e.getParentNode(),i=r.definite||o&&"VariableDeclarator"===o.type&&o.definite,s="DeclareFunction"===o.type&&o.id===r;return Db(t.originalText,r.typeAnnotation,t)?Zb([" /*: ",e.call(n,"typeAnnotation")," */"]):Zb([s?"":i?"!: ":": ",e.call(n,"typeAnnotation")])}function Nv(e,t,n){const r=e.getValue();return r.typeArguments?e.call(n,"typeArguments"):r.typeParameters?e.call(n,"typeParameters"):""}function Ov(e,t,n,r,o){const i=e.getValue(),s=e.getParentNode(),a=i.parameters?"parameters":"params",u=Kb(s),c=tD(i),l=r&&!(i[a]&&i[a].some((e=>e.comments))),f=o?Nv(e,0,t):"";let p=[];if(i[a]){const r=i[a].length-1;p=e.map(((e,o)=>{const s=[],a=e.getValue();return s.push(t(e)),o===r?i.rest&&s.push(",",tv):u||c||l?s.push(", "):Hy(n.originalText,a,n.locEnd)?s.push(",",nv,nv):s.push(",",tv),Zb(s)}),a)}if(i.rest&&p.push(Zb(["...",e.call(t,"rest")])),0===p.length)return Zb([f,"(",ka.printDanglingComments(e,n,!0,(e=>")"===Ly(n.originalText,e,n.locEnd))),")"]);const h=Iy(i[a]);if(l)return iv(Zb([bv(f),"(",Zb(p.map(bv)),")"]));const d=i[a].every((e=>!e.decorators));if(c&&d)return Zb([f,"(",Zb(p),")"]);if(u)return Zb([f,"(",Zb(p),")"]);if((Bb(s,n)||zb(s,n)||"TypeAlias"===s.type||"UnionTypeAnnotation"===s.type||"TSUnionType"===s.type||"IntersectionTypeAnnotation"===s.type||"FunctionTypeAnnotation"===s.type&&s.returnType===i)&&1===i[a].length&&null===i[a][0].name&&i[a][0].typeAnnotation&&null===i.typeParameters&&jb(i[a][0].typeAnnotation)&&!i.rest)return"always"===n.arrowParens?Zb(["(",Zb(p),")"]):Zb(p);const m=!(h&&"RestElement"===h.type||i.rest);return Zb([f,"(",sv(Zb([rv,Zb(p)])),lv(m&&Cv(n,"all")?",":""),rv,")"])}function Lv(e,t){return"always"!==t.arrowParens&&"avoid"===t.arrowParens&&!(1!==(n=e.getValue()).params.length||n.rest||n.typeParameters||ib(n)||"Identifier"!==n.params[0].type||n.params[0].typeAnnotation||n.params[0].comments||n.params[0].optional||n.predicate||n.returnType);var n}function Mv(e,t,n){const r=e.getValue(),o=[];return r.async&&o.push("async "),r.generator?o.push("function* "):o.push("function "),r.id&&o.push(e.call(t,"id")),o.push(Nv(e,0,t),iv(Zb([Ov(e,t,n),Pv(e,t,n)])),r.body?" ":"",e.call(t,"body")),Zb(o)}function Pv(e,t,n){const r=e.getValue(),o=e.call(t,"returnType");if(r.returnType&&Db(n.originalText,r.returnType,n))return Zb([" /*: ",o," */"]);const i=[o];return r.returnType&&r.returnType.typeAnnotation&&i.unshift(": "),r.predicate&&i.push(r.returnType?" ":": ",e.call(t,"predicate")),Zb(i)}function Iv(e,t,n){const r=e.getValue(),o=t.semi?";":"",i=["export "],s=r.default||"ExportDefaultDeclaration"===r.type;if(s&&i.push("default "),i.push(ka.printDanglingComments(e,t,!0)),Jb(r)&&i.push(nv),r.declaration)i.push(e.call(n,"declaration")),s&&"ClassDeclaration"!==r.declaration.type&&"FunctionDeclaration"!==r.declaration.type&&"TSInterfaceDeclaration"!==r.declaration.type&&"DeclareClass"!==r.declaration.type&&"DeclareFunction"!==r.declaration.type&&"TSDeclareFunction"!==r.declaration.type&&i.push(o);else{if(r.specifiers&&r.specifiers.length>0){const o=[],s=[],a=[];e.each((t=>{const r=e.getValue().type;"ExportSpecifier"===r?o.push(n(t)):"ExportDefaultSpecifier"===r?s.push(n(t)):"ExportNamespaceSpecifier"===r&&a.push(Zb(["* as ",n(t)]))}),"specifiers");const u=0!==a.length&&0!==o.length,c=0!==s.length&&(0!==a.length||0!==o.length),l=o.length>1||s.length>0||r.specifiers&&r.specifiers.some((e=>e.comments));let f="";0!==o.length&&(f=l?iv(Zb(["{",sv(Zb([t.bracketSpacing?tv:rv,ev(Zb([",",tv]),o)])),lv(Cv(t)?",":""),t.bracketSpacing?tv:rv,"}"])):Zb(["{",t.bracketSpacing?" ":"",Zb(o),t.bracketSpacing?" ":"","}"])),i.push("type"===r.exportKind?"type ":"",Zb(s),Zb([c?", ":""]),Zb(a),Zb([u?", ":""]),f)}else i.push("{}");r.source&&i.push(" from ",e.call(n,"source")),i.push(o)}return Zb(i)}function Bv(e,t){const n=rb(e);return n?xi.strictEqual(n.type,"DeclareExportDeclaration"):t.unshift("declare "),Zb(t)}function Rv(e,t,n){const r=e.getValue();return r.modifiers&&r.modifiers.length?Zb([ev(" ",e.map(n,"modifiers"))," "]):""}function jv(e,t,n,r){const o=e.getValue();if(!o[r])return"";if(!Array.isArray(o[r]))return e.call(n,r);const i=e.getNode(2),s=e.getNode(3),a=e.getNode(4);return null!=i&&Kb(i)||0===o[r].length||1===o[r].length&&(eD(o[r][0])||"GenericTypeAnnotation"===o[r][0].type&&eD(o[r][0].id)||"TSTypeReference"===o[r][0].type&&eD(o[r][0].typeName)||"NullableTypeAnnotation"===o[r][0].type||a&&"VariableDeclarator"===a.type&&"TSTypeAnnotation"===i.type&&"ArrowFunctionExpression"!==s.type&&"TSUnionType"!==o[r][0].type&&"UnionTypeAnnotation"!==o[r][0].type&&"TSIntersectionType"!==o[r][0].type&&"IntersectionTypeAnnotation"!==o[r][0].type&&"TSConditionalType"!==o[r][0].type&&"TSMappedType"!==o[r][0].type&&"TSTypeOperator"!==o[r][0].type&&"TSIndexedAccessType"!==o[r][0].type&&"TSArrayType"!==o[r][0].type)?Zb(["<",ev(", ",e.map(n,r)),function(n){if(!ib(n))return"";const r=n.comments.every(pg.isBlockComment),o=ka.printDanglingComments(e,t,r);return r?o:Zb([o,nv])}(o),">"]):iv(Zb(["<",sv(Zb([rv,ev(Zb([",",tv]),e.map(n,r))])),lv("typescript"!==t.parser&&"babel-ts"!==t.parser&&Cv(t,"all")?",":""),rv,">"]))}function Vv(e,t,n){const r=e.getValue(),o=[];r.abstract&&o.push("abstract "),o.push("class"),r.id&&o.push(" ",e.call(n,"id")),o.push(e.call(n,"typeParameters"));const i=[];if(r.superClass){const s=Zb(["extends ",e.call(n,"superClass"),e.call(n,"superTypeParameters")]);r.implements&&0!==r.implements.length||r.superClass.comments&&0!==r.superClass.comments.length?i.push(iv(Zb([tv,e.call((e=>ka.printComments(e,(()=>s),t)),"superClass")]))):o.push(Zb([" ",e.call((e=>ka.printComments(e,(()=>s),t)),"superClass")]))}else r.extends&&r.extends.length>0&&o.push(" extends ",ev(", ",e.map(n,"extends")));return r.mixins&&r.mixins.length>0&&i.push(tv,"mixins ",iv(sv(ev(Zb([",",tv]),e.map(n,"mixins"))))),r.implements&&r.implements.length>0&&i.push(tv,"implements",iv(sv(Zb([tv,ev(Zb([",",tv]),e.map(n,"implements"))])))),i.length>0&&o.push(iv(sv(Zb(i)))),r.body&&r.body.comments&&cb(t.originalText,r.body,t)?o.push(nv):o.push(" "),o.push(e.call(n,"body")),o}function $v(e){const t=e.getValue();return!t.optional||"Identifier"===t.type&&t===e.getParentNode().key?"":"OptionalCallExpression"===t.type||"OptionalMemberExpression"===t.type&&t.computed?"?.":"?"}function Uv(e,t,n){const r=e.call(n,"property"),o=e.getValue(),i=$v(e);return o.computed?!o.property||Pb(o.property)?Zb([i,"[",r,"]"]):iv(Zb([i,"[",sv(Zb([rv,r])),rv,"]"])):Zb([i,".",r])}function Wv(e,t,n){return Zb(["::",e.call(n,"callee")])}function Kv(e,t,n,r){return e?"":"JSXElement"===n.type&&!n.closingElement||r&&"JSXElement"===r.type&&!r.closingElement?1===t.length?rv:nv:rv}function qv(e,t,n,r){return e?nv:1===t.length?"JSXElement"===n.type&&!n.closingElement||r&&"JSXElement"===r.type&&!r.closingElement?nv:rv:nv}function Hv(e){return"LogicalExpression"===e.type&&("ObjectExpression"===e.right.type&&0!==e.right.properties.length||"ArrayExpression"===e.right.type&&0!==e.right.elements.length||!!xb(e.right))}function zv(e,t,n,r,o){let i=[];const s=e.getValue();if(gb(s)){Oy(s.operator,s.left.operator)?i=i.concat(e.call((e=>zv(e,t,n,!0,o)),"left")):i.push(e.call(t,"left"));const a=Hv(s),u=("|>"===s.operator||"NGPipeExpression"===s.type||"|"===s.operator&&"__vue_expression"===n.parser)&&!cb(n.originalText,s.right,n),c="NGPipeExpression"===s.type?"|":s.operator,l="NGPipeExpression"===s.type&&0!==s.arguments.length?iv(sv(Zb([rv,": ",ev(Zb([rv,":",lv(" ")]),e.map(t,"arguments").map((e=>av(2,iv(e)))))]))):"",f=Zb(a?[c," ",e.call(t,"right"),l]:[u?rv:"",c,u?" ":tv,e.call(t,"right"),l]),p=e.getParentNode(),h=!(o&&"LogicalExpression"===s.type)&&p.type!==s.type&&s.left.type!==s.type&&s.right.type!==s.type;i.push(" ",h?iv(f):f),r&&s.comments&&(i=ka.printComments(e,(()=>Zb(i)),n))}else i.push(e.call(t));return i}function Yv(e,t,n,r){return cb(r.originalText,t,r)?sv(Zb([tv,n])):gb(t)&&!Hv(t)||"ConditionalExpression"===t.type&&gb(t.test)&&!Hv(t.test)||"StringLiteralTypeAnnotation"===t.type||"ClassExpression"===t.type&&t.decorators&&t.decorators.length||("Identifier"===e.type||$b(e)||"MemberExpression"===e.type)&&($b(t)||Ob(t))&&"json"!==r.parser&&"json5"!==r.parser||"SequenceExpression"===t.type?iv(sv(Zb([tv,n]))):Zb([" ",n])}function Jv(e,t,n,r,o,i){if(!r)return t;const s=Yv(e,r,o,i);return iv(Zb([t,n,s]))}function Gv(e,t,n){return"EmptyStatement"===e.type?";":"BlockStatement"===e.type||n?Zb([" ",t]):sv(Zb([tv,t]))}function Xv(e,t,n){const r=Gb(e),o=n||"DirectiveLiteral"===e.type;return Ry(r,t,o)}function Qv(e){const t=e.flags.split("").sort().join("");return"/".concat(e.pattern,"/").concat(t)}function Zv(e,t){const n=e.getValue();return!!(xy(e,t)||"ParenthesizedExpression"===n.type||"TypeCastExpression"===n.type||"ArrowFunctionExpression"===n.type&&!Lv(e,t)||"ArrayExpression"===n.type||"ArrayPattern"===n.type||"UnaryExpression"===n.type&&n.prefix&&("+"===n.operator||"-"===n.operator)||"TemplateLiteral"===n.type||"TemplateElement"===n.type||xb(n)||"BindExpression"===n.type&&!n.object||"RegExpLiteral"===n.type||"Literal"===n.type&&n.pattern||"Literal"===n.type&&n.regex)||!!lb(n)&&e.call((e=>Zv(e,t)),...nb(e,n))}function eD(e){if(jb(e)||Ib(e))return!0;if("UnionTypeAnnotation"===e.type||"TSUnionType"===e.type){const t=e.types.filter((e=>"VoidTypeAnnotation"===e.type||"TSVoidKeyword"===e.type||"NullLiteralTypeAnnotation"===e.type||"TSNullKeyword"===e.type)).length,n=e.types.some((e=>"ObjectTypeAnnotation"===e.type||"TSTypeLiteral"===e.type||"GenericTypeAnnotation"===e.type||"TSTypeReference"===e.type));if(e.types.length-1===t&&n)return!0}return!1}function tD(e){if(!e||e.rest)return!1;const t=e.params||e.parameters;if(!t||1!==t.length)return!1;const n=t[0];return!n.comments&&("ObjectPattern"===n.type||"ArrayPattern"===n.type||"Identifier"===n.type&&n.typeAnnotation&&("TypeAnnotation"===n.typeAnnotation.type||"TSTypeAnnotation"===n.typeAnnotation.type)&&Ib(n.typeAnnotation.typeAnnotation)||"FunctionTypeParam"===n.type&&Ib(n.typeAnnotation)||"AssignmentPattern"===n.type&&("ObjectPattern"===n.left.type||"ArrayPattern"===n.left.type)&&("Identifier"===n.right.type||"ObjectExpression"===n.right.type&&0===n.right.properties.length||"ArrayExpression"===n.right.type&&0===n.right.elements.length))}function nD(e,t,n,r){const o=[];let i=[];return e.each((e=>{o.push(Zb(i)),o.push(iv(r(e))),i=[",",tv],e.getValue()&&Hy(t.originalText,e.getValue(),t.locEnd)&&i.push(rv)}),n),Zb(o)}function rD(e,t,n){const r=e.getValue(),o=t.semi?";":"",i=[];r.argument&&(Xb(t,r.argument)?i.push(Zb([" (",sv(Zb([nv,e.call(n,"argument")])),nv,")"])):gb(r.argument)||"SequenceExpression"===r.argument.type?i.push(iv(Zb([lv(" ("," "),sv(Zb([rv,e.call(n,"argument")])),rv,lv(")")]))):i.push(" ",e.call(n,"argument")));const s=Array.isArray(r.comments)&&r.comments[r.comments.length-1],a=s&&("CommentLine"===s.type||"Line"===s.type);return a&&i.push(o),ib(r)&&i.push(" ",ka.printDanglingComments(e,t,!0)),a||i.push(o),Zb(i)}var oD={preprocess:Ny,print:function(e,t,n,r){const o=e.getValue();let i=!1;const s=function(e,t,n,r){const o=e.getValue(),i=t.semi?";":"";if(!o)return"";if("string"==typeof o)return o;const s=Gy(e,t,n);if(s)return s;let a=[];switch(o.type){case"JsExpressionRoot":return e.call(n,"node");case"JsonRoot":return Zb([e.call(n,"node"),nv]);case"File":return o.program&&o.program.interpreter&&a.push(e.call((e=>e.call(n,"interpreter")),"program")),a.push(e.call(n,"program")),Zb(a);case"Program":return o.directives&&e.each((e=>{a.push(n(e),i,nv),Hy(t.originalText,e.getValue(),t.locEnd)&&a.push(nv)}),"directives"),a.push(e.call((e=>Av(e,t,n)),"body")),a.push(ka.printDanglingComments(e,t,!0)),o.body.every((({type:e})=>"EmptyStatement"===e))&&!o.comments||a.push(nv),Zb(a);case"EmptyStatement":return"";case"ExpressionStatement":if(o.directive)return Zb([Xv(o.expression,t,!0),i]);if("__vue_event_binding"===t.parser){const t=e.getParentNode();if("Program"===t.type&&1===t.body.length&&t.body[0]===o)return Zb([e.call(n,"expression"),Xy(o.expression)?";":""])}return Zb([e.call(n,"expression"),qb(t,e)?"":i]);case"ParenthesizedExpression":return o.expression.comments?iv(Zb(["(",sv(Zb([rv,e.call(n,"expression")])),rv,")"])):Zb(["(",e.call(n,"expression"),")"]);case"AssignmentExpression":return Jv(o.left,e.call(n,"left"),Zb([" ",o.operator]),o.right,e.call(n,"right"),t);case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":{const r=e.getParentNode(),i=e.getParentNode(1),s=o!==r.body&&("IfStatement"===r.type||"WhileStatement"===r.type||"SwitchStatement"===r.type||"DoWhileStatement"===r.type),a=zv(e,n,t,!1,s);if(s)return Zb(a);if(("CallExpression"===r.type||"OptionalCallExpression"===r.type)&&r.callee===o||"UnaryExpression"===r.type||("MemberExpression"===r.type||"OptionalMemberExpression"===r.type)&&!r.computed)return iv(Zb([sv(Zb([rv,Zb(a)])),rv]));const u="ReturnStatement"===r.type||"ThrowStatement"===r.type||"JSXExpressionContainer"===r.type&&"JSXAttribute"===i.type||"|"!==o.operator&&"JsExpressionRoot"===r.type||"NGPipeExpression"!==o.type&&("NGRoot"===r.type&&"__ng_binding"===t.parser||"NGMicrosyntaxExpression"===r.type&&"NGMicrosyntax"===i.type&&1===i.body.length)||o===r.body&&"ArrowFunctionExpression"===r.type||o!==r.body&&"ForStatement"===r.type||"ConditionalExpression"===r.type&&"ReturnStatement"!==i.type&&"ThrowStatement"!==i.type&&"CallExpression"!==i.type&&"OptionalCallExpression"!==i.type||"TemplateLiteral"===r.type,c="AssignmentExpression"===r.type||"VariableDeclarator"===r.type||"ClassProperty"===r.type||"TSAbstractClassProperty"===r.type||"ClassPrivateProperty"===r.type||"ObjectProperty"===r.type||"Property"===r.type,l=gb(o.left)&&Oy(o.operator,o.left.operator);if(u||Hv(o)&&!l||!Hv(o)&&c)return iv(Zb(a));if(0===a.length)return"";const f=xb(o.right),p=Zb(f?a.slice(1,-1):a.slice(1)),h=Symbol("logicalChain-"+ ++Dv),d=iv(Zb([a.length>0?a[0]:"",sv(p)]),{id:h});if(!f)return d;const m=Iy(a);return iv(Zb([d,lv(sv(m),m,{groupId:h})]))}case"AssignmentPattern":return Zb([e.call(n,"left")," = ",e.call(n,"right")]);case"TSTypeAssertion":{const t=!("ArrayExpression"===o.expression.type||"ObjectExpression"===o.expression.type),r=iv(Zb(["<",sv(Zb([rv,e.call(n,"typeAnnotation")])),rv,">"])),i=Zb([lv("("),sv(Zb([rv,e.call(n,"expression")])),rv,lv(")")]);return t?uv([Zb([r,e.call(n,"expression")]),Zb([r,iv(i,{shouldBreak:!0})]),Zb([r,e.call(n,"expression")])]):iv(Zb([r,e.call(n,"expression")]))}case"OptionalMemberExpression":case"MemberExpression":{const t=e.getParentNode();let r,i=0;do{r=e.getParentNode(i),i++}while(r&&("MemberExpression"===r.type||"OptionalMemberExpression"===r.type||"TSNonNullExpression"===r.type));const s=r&&("NewExpression"===r.type||"BindExpression"===r.type||"VariableDeclarator"===r.type&&"Identifier"!==r.id.type||"AssignmentExpression"===r.type&&"Identifier"!==r.left.type)||o.computed||"Identifier"===o.object.type&&"Identifier"===o.property.type&&"MemberExpression"!==t.type&&"OptionalMemberExpression"!==t.type;return Zb([e.call(n,"object"),s?Uv(e,0,n):iv(sv(Zb([rv,Uv(e,0,n)])))])}case"MetaProperty":return Zb([e.call(n,"meta"),".",e.call(n,"property")]);case"BindExpression":return o.object&&a.push(e.call(n,"object")),a.push(iv(sv(Zb([rv,Wv(e,0,n)])))),Zb(a);case"Identifier":return Zb([o.name,$v(e),kv(e,t,n)]);case"V8IntrinsicIdentifier":return Zb(["%",o.name]);case"SpreadElement":case"SpreadElementPattern":case"SpreadProperty":case"SpreadPropertyPattern":case"RestElement":case"ObjectTypeSpreadProperty":return Zb(["...",e.call(n,"argument"),kv(e,t,n)]);case"FunctionDeclaration":case"FunctionExpression":return a.push(Mv(e,n,t)),o.body||a.push(i),Zb(a);case"ArrowFunctionExpression":{o.async&&a.push("async "),Lv(e,t)?a.push(e.call(n,"params",0)):a.push(iv(Zb([Ov(e,n,t,r&&(r.expandLastArg||r.expandFirstArg),!0),Pv(e,n,t)])));const i=ka.printDanglingComments(e,t,!0,(e=>{const n=Yy(t.originalText,e,t.locEnd);return"=>"===t.originalText.slice(n,n+2)}));i&&a.push(" ",i),a.push(" =>");const s=e.call((e=>n(e,r)),"body");if(!cb(t.originalText,o.body,t)&&("ArrayExpression"===o.body.type||"ObjectExpression"===o.body.type||"BlockStatement"===o.body.type||xb(o.body)||Wb(o.body,t.originalText,t)||"ArrowFunctionExpression"===o.body.type||"DoExpression"===o.body.type))return iv(Zb([Zb(a)," ",s]));if("SequenceExpression"===o.body.type)return iv(Zb([Zb(a),iv(Zb([" (",sv(Zb([rv,s])),rv,")"]))]));const u=(r&&r.expandLastArg||"JSXExpressionContainer"===e.getParentNode().type)&&!(o.comments&&o.comments.length),c=r&&r.expandLastArg&&Cv(t,"all"),l="ConditionalExpression"===o.body.type&&!Wy(o.body,!1);return iv(Zb([Zb(a),iv(Zb([sv(Zb([tv,l?lv("","("):"",s,l?lv("",")"):""])),u?Zb([lv(c?",":""),rv]):""]))]))}case"YieldExpression":return a.push("yield"),o.delegate&&a.push("*"),o.argument&&a.push(" ",e.call(n,"argument")),Zb(a);case"AwaitExpression":{a.push("await ",e.call(n,"argument"));const t=e.getParentNode();return("CallExpression"===t.type||"OptionalCallExpression"===t.type)&&t.callee===o||("MemberExpression"===t.type||"OptionalMemberExpression"===t.type)&&t.object===o?iv(Zb([sv(Zb([rv,Zb(a)])),rv])):Zb(a)}case"ImportSpecifier":return o.importKind&&a.push(e.call(n,"importKind")," "),a.push(e.call(n,"imported")),o.local&&o.local.name!==o.imported.name&&a.push(" as ",e.call(n,"local")),Zb(a);case"ExportSpecifier":return a.push(e.call(n,"local")),o.exported&&o.exported.name!==o.local.name&&a.push(" as ",e.call(n,"exported")),Zb(a);case"ImportNamespaceSpecifier":return a.push("* as "),a.push(e.call(n,"local")),Zb(a);case"ImportDefaultSpecifier":return e.call(n,"local");case"TSExportAssignment":return Zb(["export = ",e.call(n,"expression"),i]);case"ExportDefaultDeclaration":case"ExportNamedDeclaration":return Iv(e,t,n);case"ExportAllDeclaration":return a.push("export "),"type"===o.exportKind&&a.push("type "),a.push("* "),o.exported&&a.push("as ",e.call(n,"exported")," "),a.push("from ",e.call(n,"source"),i),Zb(a);case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":return e.call(n,"exported");case"ImportDeclaration":{a.push("import "),o.importKind&&"value"!==o.importKind&&a.push(o.importKind+" ");const r=[],s=[];return o.specifiers&&o.specifiers.length>0?(e.each((e=>{const t=e.getValue();"ImportDefaultSpecifier"===t.type||"ImportNamespaceSpecifier"===t.type?r.push(n(e)):s.push(n(e))}),"specifiers"),r.length>0&&a.push(ev(", ",r)),r.length>0&&s.length>0&&a.push(", "),1===s.length&&0===r.length&&o.specifiers&&!o.specifiers.some((e=>e.comments))?a.push(Zb(["{",t.bracketSpacing?" ":"",Zb(s),t.bracketSpacing?" ":"","}"])):s.length>=1&&a.push(iv(Zb(["{",sv(Zb([t.bracketSpacing?tv:rv,ev(Zb([",",tv]),s)])),lv(Cv(t)?",":""),t.bracketSpacing?tv:rv,"}"]))),a.push(" from ")):(o.importKind&&"type"===o.importKind||/{\s*}/.test(t.originalText.slice(t.locStart(o),t.locStart(o.source))))&&a.push("{} from "),a.push(e.call(n,"source"),i),Zb(a)}case"Import":return"import";case"TSModuleBlock":case"BlockStatement":{const r=e.call((e=>Av(e,t,n)),"body"),s=o.body.find((e=>"EmptyStatement"!==e.type)),u=o.directives&&o.directives.length>0,c=e.getParentNode(),l=e.getParentNode(1);return s||u||ib(o)||"ArrowFunctionExpression"!==c.type&&"FunctionExpression"!==c.type&&"FunctionDeclaration"!==c.type&&"ObjectMethod"!==c.type&&"ClassMethod"!==c.type&&"ClassPrivateMethod"!==c.type&&"ForStatement"!==c.type&&"WhileStatement"!==c.type&&"DoWhileStatement"!==c.type&&"DoExpression"!==c.type&&("CatchClause"!==c.type||l.finalizer)&&"TSModuleDeclaration"!==c.type?(a.push("{"),u&&e.each((e=>{a.push(sv(Zb([nv,n(e),i]))),Hy(t.originalText,e.getValue(),t.locEnd)&&a.push(nv)}),"directives"),s&&a.push(sv(Zb([nv,r]))),a.push(ka.printDanglingComments(e,t)),a.push(nv,"}"),Zb(a)):"{}"}case"ReturnStatement":return Zb(["return",rD(e,t,n)]);case"NewExpression":case"OptionalCallExpression":case"CallExpression":{const r="NewExpression"===o.type,i=$v(e);if(!r&&"Identifier"===o.callee.type&&("require"===o.callee.name||"define"===o.callee.name)||1===o.arguments.length&&Wb(o.arguments[0],t.originalText,t)||!r&&Kb(o,e.getParentNode()))return Zb([r?"new ":"",e.call(n,"callee"),i,Nv(e,0,n),Zb(["(",ev(", ",e.map(n,"arguments")),")"])]);const s="Identifier"===o.callee.type&&sb(o.callee.trailingComments);if(s&&(o.callee.trailingComments[0].printed=!0),!r&&Lb(o.callee)&&!e.call((e=>xy(e,t)),"callee"))return function(e,t,n){const r=[];function o(e){const{originalText:n}=t,r=Yy(n,e,t.locEnd);return")"===n.charAt(r)?zy(n,r+1,t.locEnd):Hy(n,e,t.locEnd)}function i(e){const s=e.getValue();"CallExpression"!==s.type&&"OptionalCallExpression"!==s.type||!Lb(s.callee)&&"CallExpression"!==s.callee.type&&"OptionalCallExpression"!==s.callee.type?Lb(s)?(r.unshift({node:s,needsParens:xy(e,t),printed:ka.printComments(e,(()=>"OptionalMemberExpression"===s.type||"MemberExpression"===s.type?Uv(e,0,n):Wv(e,0,n)),t)}),e.call((e=>i(e)),"object")):"TSNonNullExpression"===s.type?(r.unshift({node:s,printed:ka.printComments(e,(()=>"!"),t)}),e.call((e=>i(e)),"expression")):r.unshift({node:s,printed:e.call(n)}):(r.unshift({node:s,printed:Zb([ka.printComments(e,(()=>Zb([$v(e),Nv(e,0,n),Tv(e,t,n)])),t),o(s)?nv:""])}),e.call((e=>i(e)),"callee"))}const s=e.getValue();r.unshift({node:s,printed:Zb([$v(e),Nv(e,0,n),Tv(e,t,n)])}),e.call((e=>i(e)),"callee");const a=[];let u=[r[0]],c=1;for(;c<r.length&&("TSNonNullExpression"===r[c].node.type||"OptionalCallExpression"===r[c].node.type||"CallExpression"===r[c].node.type||("MemberExpression"===r[c].node.type||"OptionalMemberExpression"===r[c].node.type)&&r[c].node.computed&&Pb(r[c].node.property));++c)u.push(r[c]);if("CallExpression"!==r[0].node.type&&"OptionalCallExpression"!==r[0].node.type)for(;c+1<r.length&&Lb(r[c].node)&&Lb(r[c+1].node);++c)u.push(r[c]);a.push(u),u=[];let l=!1;for(;c<r.length;++c){if(l&&Lb(r[c].node)){if(r[c].node.computed&&Pb(r[c].node.property)){u.push(r[c]);continue}a.push(u),u=[],l=!1}"CallExpression"!==r[c].node.type&&"OptionalCallExpression"!==r[c].node.type||(l=!0),u.push(r[c]),r[c].node.comments&&r[c].node.comments.some((e=>e.trailing))&&(a.push(u),u=[],l=!1)}function f(e){return/^[A-Z]|^[_$]+$/.test(e)}function p(e){return e.length<=t.tabWidth}function h(t){const n=e.getParentNode(),r=n&&"ExpressionStatement"===n.type,o=t[1].length&&t[1][0].node.computed;if(1===t[0].length){const e=t[0][0].node;return"ThisExpression"===e.type||"Identifier"===e.type&&(f(e.name)||r&&p(e.name)||o)}const i=Iy(t[0]).node;return("MemberExpression"===i.type||"OptionalMemberExpression"===i.type)&&"Identifier"===i.property.type&&(f(i.property.name)||o)}u.length>0&&a.push(u);const d=a.length>=2&&!a[1][0].node.comments&&h(a);function m(e){const t=e.map((e=>e.printed));return e.length>0&&e[e.length-1].needsParens?Zb(["(",...t,")"]):Zb(t)}function g(e){return 0===e.length?"":sv(iv(Zb([nv,ev(nv,e.map(m))])))}const y=a.map(m),b=Zb(y),v=d?3:2,D=a.reduce(((e,t)=>e.concat(t)),[]),C=D.slice(1,-1).some((e=>ub(e.node)))||D.slice(0,-1).some((e=>db(e.node)))||a[v]&&ub(a[v][0].node);if(a.length<=v&&!C)return kb(e)?b:iv(b);const E=Iy(d?a.slice(1,2)[0]:a[0]).node,w="CallExpression"!==E.type&&"OptionalCallExpression"!==E.type&&o(E),A=Zb([m(a[0]),d?Zb(a.slice(1,2).map(m)):"",w?nv:"",g(a.slice(d?2:1))]),S=r.map((({node:e})=>e)).filter(yb);return C||S.length>2&&S.some((e=>!e.arguments.every((e=>Rb(e,0)))))||y.slice(0,-1).some(mv)||(x=Iy(y),_=Iy(Iy(a)).node,yb(_)&&mv(x)&&S.slice(0,-1).some((e=>e.arguments.some(wb))))?iv(A):Zb([mv(b)||w?fv:"",uv([b,A])]);var x,_}(e,t,n);const a=Zb([r?"new ":"",e.call(n,"callee"),i,s?"/*:: ".concat(o.callee.trailingComments[0].value.slice(2).trim()," */"):"",Nv(e,0,n),Tv(e,t,n)]);return yb(o.callee)?iv(a):a}case"TSInterfaceDeclaration":return o.declare&&a.push("declare "),a.push(o.abstract?"abstract ":"",Rv(e,0,n),"interface ",e.call(n,"id"),o.typeParameters?e.call(n,"typeParameters"):""," "),o.extends&&o.extends.length&&a.push(iv(sv(Zb([rv,"extends ",(1===o.extends.length?mb:sv)(ev(Zb([",",tv]),e.map(n,"extends")))," "])))),a.push(e.call(n,"body")),Zb(a);case"ObjectTypeInternalSlot":return Zb([o.static?"static ":"","[[",e.call(n,"id"),"]]",$v(e),o.method?"":": ",e.call(n,"value")]);case"ObjectExpression":case"ObjectPattern":case"ObjectTypeAnnotation":case"TSInterfaceBody":case"TSTypeLiteral":{let r;r="TSTypeLiteral"===o.type?"members":"TSInterfaceBody"===o.type?"body":"properties";const s="ObjectTypeAnnotation"===o.type,a=[];s&&a.push("indexers","callProperties","internalSlots"),a.push(r);const u=a.map((e=>o[e][0])).sort(((e,n)=>t.locStart(e)-t.locStart(n)))[0],c=e.getParentNode(0),l=s&&c&&("InterfaceDeclaration"===c.type||"DeclareInterface"===c.type||"DeclareClass"===c.type)&&"body"===e.getName(),f="TSInterfaceBody"===o.type||l||"ObjectPattern"===o.type&&"FunctionDeclaration"!==c.type&&"FunctionExpression"!==c.type&&"ArrowFunctionExpression"!==c.type&&"ObjectMethod"!==c.type&&"ClassMethod"!==c.type&&"ClassPrivateMethod"!==c.type&&"AssignmentPattern"!==c.type&&"CatchClause"!==c.type&&o.properties.some((e=>e.value&&("ObjectPattern"===e.value.type||"ArrayPattern"===e.value.type)))||"ObjectPattern"!==o.type&&u&&Py(t.originalText,t.locStart(o),t.locStart(u)),p=l?";":"TSInterfaceBody"===o.type||"TSTypeLiteral"===o.type?lv(i,";"):",",h=o.exact?"{|":"{",d=o.exact?"|}":"}",m=[];a.forEach((r=>{e.each((e=>{const r=e.getValue();m.push({node:r,printed:n(e),loc:t.locStart(r)})}),r)}));let g=[];const y=m.sort(((e,t)=>e.loc-t.loc)).map((e=>{const n=Zb(g.concat(iv(e.printed)));return g=[p,tv],"TSPropertySignature"!==e.node.type&&"TSMethodSignature"!==e.node.type&&"TSConstructSignatureDeclaration"!==e.node.type||!$y(e.node)||g.shift(),Hy(t.originalText,e.node,t.locEnd)&&g.push(nv),n}));if(o.inexact){let n;if(ib(o)){const r=!o.comments.every(pg.isBlockComment),i=ka.printDanglingComments(e,t,!0);n=Zb([i,r||My(t.originalText,t.locEnd(o.comments[o.comments.length-1]))?nv:tv,"..."])}else n="...";y.push(Zb(g.concat(n)))}const b=Iy(o[r]),v=!(o.inexact||b&&("RestElement"===b.type||$y(b)));let D;if(0===y.length){if(!ib(o))return Zb([h,d,kv(e,t,n)]);D=iv(Zb([h,ka.printDanglingComments(e,t),rv,d,$v(e),kv(e,t,n)]))}else D=Zb([h,sv(Zb([t.bracketSpacing?tv:rv,Zb(y)])),lv(v&&(","!==p||Cv(t))?p:""),Zb([t.bracketSpacing?tv:rv,d]),$v(e),kv(e,t,n)]);return e.match((e=>"ObjectPattern"===e.type&&!e.decorators),((e,t,n)=>tD(e)&&("params"===t||"parameters"===t)&&0===n))||e.match(eD,((e,t)=>"typeAnnotation"===t),((e,t)=>"typeAnnotation"===t),((e,t,n)=>tD(e)&&("params"===t||"parameters"===t)&&0===n))?D:iv(D,{shouldBreak:f})}case"ObjectProperty":case"Property":return o.method||"get"===o.kind||"set"===o.kind?xv(e,t,n):(o.shorthand?a.push(e.call(n,"value")):a.push(Jv(o.key,Sv(e,t,n),":",o.value,e.call(n,"value"),t)),Zb(a));case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":case"TSAbstractMethodDefinition":case"TSDeclareMethod":return o.decorators&&0!==o.decorators.length&&a.push(Ev(e,t,n)),o.accessibility&&a.push(o.accessibility+" "),o.static&&a.push("static "),("TSAbstractMethodDefinition"===o.type||o.abstract)&&a.push("abstract "),a.push(xv(e,t,n)),Zb(a);case"ObjectMethod":return xv(e,t,n);case"Decorator":return Zb(["@",e.call(n,"expression"),e.call(n,"callee")]);case"ArrayExpression":case"ArrayPattern":if(0===o.elements.length)ib(o)?a.push(iv(Zb(["[",ka.printDanglingComments(e,t),rv,"]"]))):a.push("[]");else{const r=Iy(o.elements),i=!(r&&"RestElement"===r.type),s=i&&null===r,u=o.elements.length>1&&o.elements.every(((e,t,n)=>{const r=e&&e.type;if("ArrayExpression"!==r&&"ObjectExpression"!==r)return!1;const o=n[t+1];if(o&&r!==o.type)return!1;const i="ArrayExpression"===r?"elements":"properties";return e[i]&&e[i].length>1}));a.push(iv(Zb(["[",sv(Zb([rv,nD(e,t,"elements",n)])),s?",":"",lv(i&&!s&&Cv(t)?",":""),ka.printDanglingComments(e,t,!0),rv,"]"]),{shouldBreak:u}))}return a.push($v(e),kv(e,t,n)),Zb(a);case"SequenceExpression":{const t=e.getParentNode(0);if("ExpressionStatement"===t.type||"ForStatement"===t.type){const t=[];return e.each((e=>{0===e.getName()?t.push(n(e)):t.push(",",sv(Zb([tv,n(e)])))}),"expressions"),iv(Zb(t))}return iv(Zb([ev(Zb([",",tv]),e.map(n,"expressions"))]))}case"ThisExpression":return"this";case"Super":return"super";case"NullLiteral":return"null";case"RegExpLiteral":return Qv(o);case"NumericLiteral":return jy(o.extra.raw);case"BigIntLiteral":return(o.bigint||(o.extra?o.extra.raw:o.raw)).toLowerCase();case"BooleanLiteral":case"StringLiteral":case"Literal":{if(o.regex)return Qv(o.regex);if("number"==typeof o.value)return jy(o.raw);if("string"!=typeof o.value)return""+o.value;const n=e.getParentNode(1),r="typescript"===t.parser&&"string"==typeof o.value&&n&&("Program"===n.type||"BlockStatement"===n.type);return Xv(o,t,r)}case"Directive":return e.call(n,"value");case"DirectiveLiteral":return Xv(o,t);case"UnaryExpression":return a.push(o.operator),/[a-z]$/.test(o.operator)&&a.push(" "),o.argument.comments&&o.argument.comments.length>0?a.push(iv(Zb(["(",sv(Zb([rv,e.call(n,"argument")])),rv,")"]))):a.push(e.call(n,"argument")),Zb(a);case"UpdateExpression":return a.push(e.call(n,"argument"),o.operator),o.prefix&&a.reverse(),Zb(a);case"ConditionalExpression":return wv(e,t,n,{beforeParts:()=>[e.call(n,"test")],afterParts:e=>[e?rv:""],shouldCheckJsx:!0,conditionalNodeType:"ConditionalExpression",consequentNodePropertyName:"consequent",alternateNodePropertyName:"alternate",testNodePropertyNames:["test"]});case"VariableDeclaration":{const t=e.map((e=>n(e)),"declarations"),r=e.getParentNode(),s="ForStatement"===r.type||"ForInStatement"===r.type||"ForOfStatement"===r.type,u=o.declarations.some((e=>e.init));let c;return 1!==t.length||o.declarations[0].comments?t.length>0&&(c=sv(t[0])):c=t[0],a=[o.declare?"declare ":"",o.kind,c?Zb([" ",c]):"",sv(Zb(t.slice(1).map((e=>Zb([",",u&&!s?nv:tv,e])))))],s&&r.body!==o||a.push(i),iv(Zb(a))}case"TSTypeAliasDeclaration":{o.declare&&a.push("declare ");const r=Yv(o.id,o.typeAnnotation,o.typeAnnotation&&e.call(n,"typeAnnotation"),t);return a.push("type ",e.call(n,"id"),e.call(n,"typeParameters")," =",r,i),iv(Zb(a))}case"VariableDeclarator":return Jv(o.id,e.call(n,"id")," =",o.init,o.init&&e.call(n,"init"),t);case"WithStatement":return iv(Zb(["with (",e.call(n,"object"),")",Gv(o.body,e.call(n,"body"))]));case"IfStatement":{const r=Gv(o.consequent,e.call(n,"consequent")),i=iv(Zb(["if (",iv(Zb([sv(Zb([rv,e.call(n,"test")])),rv])),")",r]));if(a.push(i),o.alternate){const r=db(o.consequent)&&o.consequent.comments.some((e=>e.trailing&&!pg.isBlockComment(e)))||Jb(o),i="BlockStatement"===o.consequent.type&&!r;a.push(i?" ":nv),ib(o)&&a.push(ka.printDanglingComments(e,t,!0),r?nv:" "),a.push("else",iv(Gv(o.alternate,e.call(n,"alternate"),"IfStatement"===o.alternate.type)))}return Zb(a)}case"ForStatement":{const r=Gv(o.body,e.call(n,"body")),i=ka.printDanglingComments(e,t,!0),s=i?Zb([i,rv]):"";return o.init||o.test||o.update?Zb([s,iv(Zb(["for (",iv(Zb([sv(Zb([rv,e.call(n,"init"),";",tv,e.call(n,"test"),";",tv,e.call(n,"update")])),rv])),")",r]))]):Zb([s,iv(Zb(["for (;;)",r]))])}case"WhileStatement":return iv(Zb(["while (",iv(Zb([sv(Zb([rv,e.call(n,"test")])),rv])),")",Gv(o.body,e.call(n,"body"))]));case"ForInStatement":return iv(Zb([o.each?"for each (":"for (",e.call(n,"left")," in ",e.call(n,"right"),")",Gv(o.body,e.call(n,"body"))]));case"ForOfStatement":return iv(Zb(["for",o.await?" await":""," (",e.call(n,"left")," of ",e.call(n,"right"),")",Gv(o.body,e.call(n,"body"))]));case"DoWhileStatement":{const t=Gv(o.body,e.call(n,"body")),r=iv(Zb(["do",t]));return a=[r],"BlockStatement"===o.body.type?a.push(" "):a.push(nv),a.push("while ("),a.push(iv(Zb([sv(Zb([rv,e.call(n,"test")])),rv])),")",i),Zb(a)}case"DoExpression":return Zb(["do ",e.call(n,"body")]);case"BreakStatement":return a.push("break"),o.label&&a.push(" ",e.call(n,"label")),a.push(i),Zb(a);case"ContinueStatement":return a.push("continue"),o.label&&a.push(" ",e.call(n,"label")),a.push(i),Zb(a);case"LabeledStatement":return"EmptyStatement"===o.body.type?Zb([e.call(n,"label"),":;"]):Zb([e.call(n,"label"),": ",e.call(n,"body")]);case"TryStatement":return Zb(["try ",e.call(n,"block"),o.handler?Zb([" ",e.call(n,"handler")]):"",o.finalizer?Zb([" finally ",e.call(n,"finalizer")]):""]);case"CatchClause":if(o.param){const r=o.param.comments&&o.param.comments.some((e=>!pg.isBlockComment(e)||e.leading&&My(t.originalText,t.locEnd(e))||e.trailing&&My(t.originalText,t.locStart(e),{backwards:!0}))),i=e.call(n,"param");return Zb(["catch ",Zb(r?["(",sv(Zb([rv,i])),rv,") "]:["(",i,") "]),e.call(n,"body")])}return Zb(["catch ",e.call(n,"body")]);case"ThrowStatement":return Zb(["throw",rD(e,t,n)]);case"SwitchStatement":return Zb([iv(Zb(["switch (",sv(Zb([rv,e.call(n,"discriminant")])),rv,")"]))," {",o.cases.length>0?sv(Zb([nv,ev(nv,e.map((e=>{const r=e.getValue();return Zb([e.call(n),o.cases.indexOf(r)!==o.cases.length-1&&Hy(t.originalText,r,t.locEnd)?nv:""])}),"cases"))])):"",nv,"}"]);case"SwitchCase":{o.test?a.push("case ",e.call(n,"test"),":"):a.push("default:");const r=o.consequent.filter((e=>"EmptyStatement"!==e.type));if(r.length>0){const o=e.call((e=>Av(e,t,n)),"consequent");a.push(1===r.length&&"BlockStatement"===r[0].type?Zb([" ",o]):sv(Zb([nv,o])))}return Zb(a)}case"DebuggerStatement":return Zb(["debugger",i]);case"JSXAttribute":if(a.push(e.call(n,"name")),o.value){let r;if($b(o.value)){let e=Gb(o.value).replace(/&apos;/g,"'").replace(/&quot;/g,'"');const n=qy(e,t.jsxSingleQuote?"'":'"'),i="'"===n?"&apos;":"&quot;";e=e.slice(1,-1).replace(new RegExp(n,"g"),i),r=Zb([n,e,n])}else r=e.call(n,"value");a.push("=",r)}return Zb(a);case"JSXIdentifier":return""+o.name;case"JSXNamespacedName":return ev(":",[e.call(n,"namespace"),e.call(n,"name")]);case"JSXMemberExpression":return ev(".",[e.call(n,"object"),e.call(n,"property")]);case"TSQualifiedName":return ev(".",[e.call(n,"left"),e.call(n,"right")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return Zb(["{",e.call((e=>{const r=Zb(["...",n(e)]),o=e.getValue();return o.comments&&o.comments.length?Zb([sv(Zb([rv,ka.printComments(e,(()=>r),t)])),rv]):r}),"JSXSpreadAttribute"===o.type?"argument":"expression"),"}"]);case"JSXExpressionContainer":{const t=e.getParentNode(0),r=o.expression.comments&&o.expression.comments.length>0,i="JSXEmptyExpression"===o.expression.type||!r&&("ArrayExpression"===o.expression.type||"ObjectExpression"===o.expression.type||"ArrowFunctionExpression"===o.expression.type||"CallExpression"===o.expression.type||"OptionalCallExpression"===o.expression.type||"FunctionExpression"===o.expression.type||"TemplateLiteral"===o.expression.type||"TaggedTemplateExpression"===o.expression.type||"DoExpression"===o.expression.type||xb(t)&&("ConditionalExpression"===o.expression.type||gb(o.expression)));return iv(Zb(i?["{",e.call(n,"expression"),pv,"}"]:["{",sv(Zb([rv,e.call(n,"expression")])),rv,pv,"}"]))}case"JSXFragment":case"JSXElement":{const r=ka.printComments(e,(()=>function(e,t,n){const r=e.getValue();if("JSXElement"===r.type&&bb(r))return Zb([e.call(n,"openingElement"),e.call(n,"closingElement")]);const o="JSXElement"===r.type?e.call(n,"openingElement"):e.call(n,"openingFragment"),i="JSXElement"===r.type?e.call(n,"closingElement"):e.call(n,"closingFragment");if(1===r.children.length&&"JSXExpressionContainer"===r.children[0].type&&("TemplateLiteral"===r.children[0].expression.type||"TaggedTemplateExpression"===r.children[0].expression.type))return Zb([o,Zb(e.map(n,"children")),i]);r.children=r.children.map((e=>_b(e)?{type:"JSXText",value:" ",raw:" "}:e));const s=r.children.filter(xb).length>0,a=r.children.filter((e=>"JSXExpressionContainer"===e.type)).length>1,u="JSXElement"===r.type&&r.openingElement.attributes.length>1;let c=mv(o)||s||u||a;const l="mdx"===e.getParentNode().rootMarker,f=t.singleQuote?"{' '}":'{" "}',p=l?Zb([" "]):lv(Zb([f,rv])," "),h=r.openingElement&&r.openingElement.name&&"fbt"===r.openingElement.name.name,d=function(e,t,n,r,o){const i=e.getValue(),s=[];return e.map(((e,t)=>{const a=e.getValue();if(Tb(a)){const e=Gb(a);if(Nb(a)){const n=e.split(Yb);if(""===n[0]){if(s.push(""),n.shift(),/\n/.test(n[0])){const e=i.children[t+1];s.push(qv(o,n[1],a,e))}else s.push(r);n.shift()}let u;if(""===Iy(n)&&(n.pop(),u=n.pop()),0===n.length)return;if(n.forEach(((e,t)=>{t%2==1?s.push(tv):s.push(e)})),void 0!==u)if(/\n/.test(u)){const e=i.children[t+1];s.push(qv(o,Iy(s),a,e))}else s.push(r);else{const e=i.children[t+1];s.push(Kv(o,Iy(s),a,e))}}else/\n/.test(e)?e.match(/\n/g).length>1&&(s.push(""),s.push(nv)):(s.push(""),s.push(r))}else{const r=n(e);s.push(r);const u=i.children[t+1];if(u&&Nb(u)){const e=Gb(u).trim().split(Yb)[0];s.push(Kv(o,e,a,u))}else s.push(nv)}}),"children"),s}(e,0,n,p,h),m=r.children.some((e=>Nb(e)));for(let e=d.length-2;e>=0;e--){const t=""===d[e]&&""===d[e+1],n=d[e]===nv&&""===d[e+1]&&d[e+2]===nv,r=(d[e]===rv||d[e]===nv)&&""===d[e+1]&&d[e+2]===p,o=d[e]===p&&""===d[e+1]&&(d[e+2]===rv||d[e+2]===nv),i=d[e]===p&&""===d[e+1]&&d[e+2]===p,s=d[e]===rv&&""===d[e+1]&&d[e+2]===nv||d[e]===nv&&""===d[e+1]&&d[e+2]===rv;n&&m||t||r||i||s?d.splice(e,2):o&&d.splice(e+1,2)}for(;d.length&&(gv(Iy(d))||yv(Iy(d)));)d.pop();for(;d.length&&(gv(d[0])||yv(d[0]))&&(gv(d[1])||yv(d[1]));)d.shift(),d.shift();const g=[];d.forEach(((e,t)=>{if(e===p){if(1===t&&""===d[t-1])return 2===d.length?void g.push(f):void g.push(Zb([f,nv]));if(t===d.length-1)return void g.push(f);if(""===d[t-1]&&d[t-2]===nv)return void g.push(f)}g.push(e),mv(e)&&(c=!0)}));const y=m?cv(g):iv(Zb(g),{shouldBreak:!0});if(l)return y;const b=iv(Zb([o,sv(Zb([nv,y])),nv,i]));return c?b:uv([iv(Zb([o,Zb(d),i])),b])}(e,t,n)),t);return function(e,t,n){const r=e.getParentNode();if(!r)return t;if({ArrayExpression:!0,JSXAttribute:!0,JSXElement:!0,JSXExpressionContainer:!0,JSXFragment:!0,ExpressionStatement:!0,CallExpression:!0,OptionalCallExpression:!0,ConditionalExpression:!0,JsExpressionRoot:!0}[r.type])return t;const o=e.match(void 0,(e=>"ArrowFunctionExpression"===e.type),yb,(e=>"JSXExpressionContainer"===e.type)),i=xy(e,n);return iv(Zb([i?"":lv("("),sv(Zb([rv,t])),rv,i?"":lv(")")]),{shouldBreak:o})}(e,r,t)}case"JSXOpeningElement":{const r=e.getValue(),o=r.name&&r.name.comments&&r.name.comments.length>0||r.typeParameters&&r.typeParameters.comments&&r.typeParameters.comments.length>0;if(r.selfClosing&&!r.attributes.length&&!o)return Zb(["<",e.call(n,"name"),e.call(n,"typeParameters")," />"]);if(r.attributes&&1===r.attributes.length&&r.attributes[0].value&&$b(r.attributes[0].value)&&!r.attributes[0].value.value.includes("\n")&&!o&&(!r.attributes[0].comments||!r.attributes[0].comments.length))return iv(Zb(["<",e.call(n,"name"),e.call(n,"typeParameters")," ",Zb(e.map(n,"attributes")),r.selfClosing?" />":">"]));const i=r.attributes.length&&db(Iy(r.attributes)),s=!r.attributes.length&&!o||t.jsxBracketSameLine&&(!o||r.attributes.length)&&!i,a=r.attributes&&r.attributes.some((e=>e.value&&$b(e.value)&&e.value.value.includes("\n")));return iv(Zb(["<",e.call(n,"name"),e.call(n,"typeParameters"),Zb([sv(Zb(e.map((e=>Zb([tv,n(e)])),"attributes"))),r.selfClosing?tv:s?">":rv]),r.selfClosing?"/>":s?"":">"]),{shouldBreak:a})}case"JSXClosingElement":return Zb(["</",e.call(n,"name"),">"]);case"JSXOpeningFragment":case"JSXClosingFragment":{const n=o.comments&&o.comments.length,r=n&&!o.comments.every(pg.isBlockComment),i="JSXOpeningFragment"===o.type;return Zb([i?"<":"</",sv(Zb([r?nv:n&&!i?" ":"",ka.printDanglingComments(e,t,!0)])),r?nv:"",">"])}case"JSXText":throw new Error("JSXTest should be handled by JSXElement");case"JSXEmptyExpression":{const n=o.comments&&!o.comments.every(pg.isBlockComment);return Zb([ka.printDanglingComments(e,t,!n),n?nv:""])}case"ClassBody":return o.comments||0!==o.body.length?Zb(["{",o.body.length>0?sv(Zb([nv,e.call((e=>Av(e,t,n)),"body")])):ka.printDanglingComments(e,t),nv,"}"]):"{}";case"ClassProperty":case"TSAbstractClassProperty":case"ClassPrivateProperty":{o.decorators&&0!==o.decorators.length&&a.push(Ev(e,t,n)),o.accessibility&&a.push(o.accessibility+" "),o.declare&&a.push("declare "),o.static&&a.push("static "),("TSAbstractClassProperty"===o.type||o.abstract)&&a.push("abstract "),o.readonly&&a.push("readonly ");const r=tb(o);return r&&a.push(r),a.push(Sv(e,t,n),$v(e),kv(e,t,n)),o.value&&a.push(" =",Yv(o.key,o.value,e.call(n,"value"),t)),a.push(i),iv(Zb(a))}case"ClassDeclaration":case"ClassExpression":return o.declare&&a.push("declare "),a.push(Zb(Vv(e,t,n))),Zb(a);case"TSInterfaceHeritage":case"TSExpressionWithTypeArguments":return a.push(e.call(n,"expression")),o.typeParameters&&a.push(e.call(n,"typeParameters")),Zb(a);case"TemplateElement":return ev(ov,o.value.raw.split(/\r?\n/g));case"TemplateLiteral":{let r=e.map(n,"expressions");const i=e.getParentNode();if(Sb(o,i)){const e=function(e,t,n){const r=e.quasis[0].value.raw.trim().split(/\s*\|\s*/);if(r.length>1||r.some((e=>0!==e.length))){const o=[],i=t.map((e=>"${"+vv(e,Object.assign({},n,{printWidth:1/0,endOfLine:"lf"})).formatted+"}")),s=[{hasLineBreak:!1,cells:[]}];for(let t=1;t<e.quasis.length;t++){const n=s[s.length-1],r=i[t-1];n.cells.push(r),r.includes("\n")&&(n.hasLineBreak=!0),e.quasis[t].value.raw.includes("\n")&&s.push({hasLineBreak:!1,cells:[]})}const a=Math.max(r.length,...s.map((e=>e.cells.length))),u=Array.from({length:a}).fill(0),c=[{cells:r},...s.filter((e=>0!==e.cells.length))];for(const{cells:e}of c.filter((e=>!e.hasLineBreak)))e.forEach(((e,t)=>{u[t]=Math.max(u[t],By(e))}));return o.push(pv,"`",sv(Zb([nv,ev(nv,c.map((e=>ev(" | ",e.cells.map(((t,n)=>e.hasLineBreak?t:t+" ".repeat(u[n]-By(t))))))))])),nv,"`"),Zb(o)}}(o,r,t);if(e)return e}const s=Vb(o);return s&&(r=r.map((e=>vv(e,Object.assign({},t,{printWidth:1/0})).formatted))),a.push(pv,"`"),e.each((e=>{const i=e.getName();if(a.push(n(e)),i<r.length){const{tabWidth:n}=t,u=e.getValue(),c=Ky(u.value.raw,n);let l=r[i];s||(o.expressions[i].comments&&o.expressions[i].comments.length||"MemberExpression"===o.expressions[i].type||"OptionalMemberExpression"===o.expressions[i].type||"ConditionalExpression"===o.expressions[i].type||"SequenceExpression"===o.expressions[i].type||"TSAsExpression"===o.expressions[i].type||gb(o.expressions[i]))&&(l=Zb([sv(Zb([rv,l])),rv]));const f=0===c&&u.value.raw.endsWith("\n")?av(-1/0,l):hv(l,c,n);a.push(iv(Zb(["${",f,pv,"}"])))}}),"quasis"),a.push("`"),Zb(a)}case"TaggedTemplateExpression":return Zb([e.call(n,"tag"),e.call(n,"typeParameters"),e.call(n,"quasi")]);case"Node":case"Printable":case"SourceLocation":case"Position":case"Statement":case"Function":case"Pattern":case"Expression":case"Declaration":case"Specifier":case"NamedSpecifier":case"Comment":case"MemberTypeAnnotation":case"Type":throw new Error("unprintable type: "+JSON.stringify(o.type));case"TypeAnnotation":case"TSTypeAnnotation":return o.typeAnnotation?e.call(n,"typeAnnotation"):"";case"TSTupleType":case"TupleTypeAnnotation":{const r="TSTupleType"===o.type?"elementTypes":"types",i=o[r].length>0&&"TSRestType"===Iy(o[r]).type;return iv(Zb(["[",sv(Zb([rv,nD(e,t,r,n)])),lv(Cv(t,"all")&&!i?",":""),ka.printDanglingComments(e,t,!0),rv,"]"]))}case"ExistsTypeAnnotation":return"*";case"EmptyTypeAnnotation":return"empty";case"AnyTypeAnnotation":return"any";case"MixedTypeAnnotation":return"mixed";case"ArrayTypeAnnotation":return Zb([e.call(n,"elementType"),"[]"]);case"BooleanTypeAnnotation":return"boolean";case"BooleanLiteralTypeAnnotation":return""+o.value;case"DeclareClass":return Bv(e,Vv(e,t,n));case"TSDeclareFunction":return Zb([o.declare?"declare ":"",Mv(e,n,t),i]);case"DeclareFunction":return Bv(e,["function ",e.call(n,"id"),o.predicate?" ":"",e.call(n,"predicate"),i]);case"DeclareModule":return Bv(e,["module ",e.call(n,"id")," ",e.call(n,"body")]);case"DeclareModuleExports":return Bv(e,["module.exports",": ",e.call(n,"typeAnnotation"),i]);case"DeclareVariable":return Bv(e,["var ",e.call(n,"id"),i]);case"DeclareExportAllDeclaration":return Zb(["declare export * from ",e.call(n,"source")]);case"DeclareExportDeclaration":return Zb(["declare ",Iv(e,t,n)]);case"DeclareOpaqueType":case"OpaqueType":return a.push("opaque type ",e.call(n,"id"),e.call(n,"typeParameters")),o.supertype&&a.push(": ",e.call(n,"supertype")),o.impltype&&a.push(" = ",e.call(n,"impltype")),a.push(i),"DeclareOpaqueType"===o.type?Bv(e,a):Zb(a);case"EnumDeclaration":return Zb(["enum ",e.call(n,"id")," ",e.call(n,"body")]);case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":if("EnumSymbolBody"===o.type||o.explicitType){let e=null;switch(o.type){case"EnumBooleanBody":e="boolean";break;case"EnumNumberBody":e="number";break;case"EnumStringBody":e="string";break;case"EnumSymbolBody":e="symbol"}a.push("of ",e," ")}return 0===o.members.length?a.push(iv(Zb(["{",ka.printDanglingComments(e,t),rv,"}"]))):a.push(iv(Zb(["{",sv(Zb([nv,nD(e,t,"members",n),Cv(t)?",":""])),ka.printDanglingComments(e,t,!0),nv,"}"]))),Zb(a);case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":return Zb([e.call(n,"id")," = ","object"==typeof o.init?e.call(n,"init"):String(o.init)]);case"EnumDefaultedMember":return e.call(n,"id");case"FunctionTypeAnnotation":case"TSFunctionType":{const r=e.getParentNode(0),i=e.getParentNode(1),s=e.getParentNode(2);let u="TSFunctionType"===o.type||!(("ObjectTypeProperty"===r.type||"ObjectTypeInternalSlot"===r.type)&&!tb(r)&&!r.optional&&t.locStart(r)===t.locStart(o)||"ObjectTypeCallProperty"===r.type||s&&"DeclareFunction"===s.type),c=u&&("TypeAnnotation"===r.type||"TSTypeAnnotation"===r.type);const l=c&&u&&("TypeAnnotation"===r.type||"TSTypeAnnotation"===r.type)&&"ArrowFunctionExpression"===i.type;return Bb(r,t)&&(u=!0,c=!0),l&&a.push("("),a.push(Ov(e,n,t,!1,!0)),(o.returnType||o.predicate||o.typeAnnotation)&&a.push(u?" => ":": ",e.call(n,"returnType"),e.call(n,"predicate"),e.call(n,"typeAnnotation")),l&&a.push(")"),iv(Zb(a))}case"TSRestType":return Zb(["...",e.call(n,"typeAnnotation")]);case"TSOptionalType":return Zb([e.call(n,"typeAnnotation"),"?"]);case"FunctionTypeParam":return Zb([e.call(n,"name"),$v(e),o.name?": ":"",e.call(n,"typeAnnotation")]);case"GenericTypeAnnotation":return Zb([e.call(n,"id"),e.call(n,"typeParameters")]);case"DeclareInterface":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return("DeclareInterface"===o.type||o.declare)&&a.push("declare "),a.push("interface"),"DeclareInterface"!==o.type&&"InterfaceDeclaration"!==o.type||a.push(" ",e.call(n,"id"),e.call(n,"typeParameters")),o.extends.length>0&&a.push(iv(sv(Zb([tv,"extends ",(1===o.extends.length?mb:sv)(ev(Zb([",",tv]),e.map(n,"extends")))])))),a.push(" ",e.call(n,"body")),iv(Zb(a));case"ClassImplements":case"InterfaceExtends":return Zb([e.call(n,"id"),e.call(n,"typeParameters")]);case"TSClassImplements":return Zb([e.call(n,"expression"),e.call(n,"typeParameters")]);case"TSIntersectionType":case"IntersectionTypeAnnotation":{const t=e.map(n,"types"),r=[];let i=!1;for(let e=0;e<t.length;++e)0===e?r.push(t[e]):Ib(o.types[e-1])&&Ib(o.types[e])?r.push(Zb([" & ",i?sv(t[e]):t[e]])):Ib(o.types[e-1])||Ib(o.types[e])?(e>1&&(i=!0),r.push(" & ",e>1?sv(t[e]):t[e])):r.push(sv(Zb([" &",tv,t[e]])));return iv(Zb(r))}case"TSUnionType":case"UnionTypeAnnotation":{const r=e.getParentNode(),i=!("TypeParameterInstantiation"===r.type||"TSTypeParameterInstantiation"===r.type||"GenericTypeAnnotation"===r.type||"TSTypeReference"===r.type||"TSTypeAssertion"===r.type||"TupleTypeAnnotation"===r.type||"TSTupleType"===r.type||"FunctionTypeParam"===r.type&&!r.name||("TypeAlias"===r.type||"VariableDeclarator"===r.type||"TSTypeAliasDeclaration"===r.type)&&cb(t.originalText,o,t)),s=eD(o),a=e.map((e=>{let r=e.call(n);return s||(r=av(2,r)),ka.printComments(e,(()=>r),t)}),"types");if(s)return ev(" | ",a);const u=i&&!cb(t.originalText,o,t),c=Zb([lv(Zb([u?tv:"","| "])),ev(Zb([tv,"| "]),a)]);return xy(e,t)?iv(Zb([sv(c),rv])):"TupleTypeAnnotation"===r.type&&r.types.length>1||"TSTupleType"===r.type&&r.elementTypes.length>1?iv(Zb([sv(Zb([lv(Zb(["(",rv])),c])),rv,lv(")")])):iv(i?sv(c):c)}case"NullableTypeAnnotation":return Zb(["?",e.call(n,"typeAnnotation")]);case"TSNullKeyword":case"NullLiteralTypeAnnotation":return"null";case"ThisTypeAnnotation":return"this";case"NumberTypeAnnotation":return"number";case"SymbolTypeAnnotation":return"symbol";case"ObjectTypeCallProperty":return o.static&&a.push("static "),a.push(e.call(n,"value")),Zb(a);case"ObjectTypeIndexer":{const t=tb(o);return Zb([t||"","[",e.call(n,"id"),o.id?": ":"",e.call(n,"key"),"]: ",e.call(n,"value")])}case"ObjectTypeProperty":{const r=tb(o);let i="";return o.proto?i="proto ":o.static&&(i="static "),Zb([i,Ab(o)?o.kind+" ":"",r||"",Sv(e,t,n),$v(e),Eb(o,t)?"":": ",e.call(n,"value")])}case"QualifiedTypeIdentifier":return Zb([e.call(n,"qualification"),".",e.call(n,"id")]);case"StringLiteralTypeAnnotation":return Xv(o,t);case"NumberLiteralTypeAnnotation":return xi.strictEqual(typeof o.value,"number"),null!=o.extra?jy(o.extra.raw):jy(o.raw);case"StringTypeAnnotation":return"string";case"DeclareTypeAlias":case"TypeAlias":{("DeclareTypeAlias"===o.type||o.declare)&&a.push("declare ");const r=Yv(o.id,o.right,e.call(n,"right"),t);return a.push("type ",e.call(n,"id"),e.call(n,"typeParameters")," =",r,i),iv(Zb(a))}case"TypeCastExpression":return Zb(["(",e.call(n,"expression"),kv(e,t,n),")"]);case"TypeParameterDeclaration":case"TypeParameterInstantiation":{const r=e.getValue(),o=r.range?t.originalText.slice(0,r.range[0]).lastIndexOf("/*"):-1;return o>=0&&t.originalText.slice(o).match(/^\/\*\s*::/)?Zb(["/*:: ",jv(e,t,n,"params")," */"]):jv(e,t,n,"params")}case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return jv(e,t,n,"params");case"TSTypeParameter":case"TypeParameter":{const r=e.getParentNode();if("TSMappedType"===r.type)return a.push("[",e.call(n,"name")),o.constraint&&a.push(" in ",e.call(n,"constraint")),a.push("]"),Zb(a);const i=tb(o);i&&a.push(i),a.push(e.call(n,"name")),o.bound&&(a.push(": "),a.push(e.call(n,"bound"))),o.constraint&&a.push(" extends ",e.call(n,"constraint")),o.default&&a.push(" = ",e.call(n,"default"));const s=e.getNode(2);return r.params&&1===r.params.length&&Hb(t)&&!o.constraint&&"ArrowFunctionExpression"===s.type&&a.push(","),Zb(a)}case"TypeofTypeAnnotation":return Zb(["typeof ",e.call(n,"argument")]);case"VoidTypeAnnotation":return"void";case"InferredPredicate":return"%checks";case"DeclaredPredicate":return Zb(["%checks(",e.call(n,"value"),")"]);case"TSAbstractKeyword":return"abstract";case"TSAnyKeyword":return"any";case"TSAsyncKeyword":return"async";case"TSBooleanKeyword":return"boolean";case"TSBigIntKeyword":return"bigint";case"TSConstKeyword":return"const";case"TSDeclareKeyword":return"declare";case"TSExportKeyword":return"export";case"TSNeverKeyword":return"never";case"TSNumberKeyword":return"number";case"TSObjectKeyword":return"object";case"TSProtectedKeyword":return"protected";case"TSPrivateKeyword":return"private";case"TSPublicKeyword":return"public";case"TSReadonlyKeyword":return"readonly";case"TSSymbolKeyword":return"symbol";case"TSStaticKeyword":return"static";case"TSStringKeyword":return"string";case"TSUndefinedKeyword":return"undefined";case"TSUnknownKeyword":return"unknown";case"TSVoidKeyword":return"void";case"TSAsExpression":return Zb([e.call(n,"expression")," as ",e.call(n,"typeAnnotation")]);case"TSArrayType":return Zb([e.call(n,"elementType"),"[]"]);case"TSPropertySignature":return o.export&&a.push("export "),o.accessibility&&a.push(o.accessibility+" "),o.static&&a.push("static "),o.readonly&&a.push("readonly "),a.push(Sv(e,t,n),$v(e)),o.typeAnnotation&&(a.push(": "),a.push(e.call(n,"typeAnnotation"))),o.initializer&&a.push(" = ",e.call(n,"initializer")),Zb(a);case"TSParameterProperty":return o.accessibility&&a.push(o.accessibility+" "),o.export&&a.push("export "),o.static&&a.push("static "),o.readonly&&a.push("readonly "),a.push(e.call(n,"parameter")),Zb(a);case"TSTypeReference":return Zb([e.call(n,"typeName"),jv(e,t,n,"typeParameters")]);case"TSTypeQuery":return Zb(["typeof ",e.call(n,"exprName")]);case"TSIndexSignature":{const r=e.getParentNode(),s=o.parameters.length>1?lv(Cv(t)?",":""):"",a=iv(Zb([sv(Zb([rv,ev(Zb([", ",rv]),e.map(n,"parameters"))])),s,rv]));return Zb([o.export?"export ":"",o.accessibility?Zb([o.accessibility," "]):"",o.static?"static ":"",o.readonly?"readonly ":"","[",o.parameters?a:"",o.typeAnnotation?"]: ":"]",o.typeAnnotation?e.call(n,"typeAnnotation"):"","ClassBody"===r.type?i:""])}case"TSTypePredicate":return Zb([o.asserts?"asserts ":"",e.call(n,"parameterName"),o.typeAnnotation?Zb([" is ",e.call(n,"typeAnnotation")]):""]);case"TSNonNullExpression":return Zb([e.call(n,"expression"),"!"]);case"TSThisType":return"this";case"TSImportType":return Zb([o.isTypeOf?"typeof ":"","import(",e.call(n,o.parameter?"parameter":"argument"),")",o.qualifier?Zb([".",e.call(n,"qualifier")]):"",jv(e,t,n,"typeParameters")]);case"TSLiteralType":return e.call(n,"literal");case"TSIndexedAccessType":return Zb([e.call(n,"objectType"),"[",e.call(n,"indexType"),"]"]);case"TSConstructSignatureDeclaration":case"TSCallSignatureDeclaration":case"TSConstructorType":if("TSCallSignatureDeclaration"!==o.type&&a.push("new "),a.push(iv(Ov(e,n,t,!1,!0))),o.returnType||o.typeAnnotation){const t="TSConstructorType"===o.type;a.push(t?" => ":": ",e.call(n,"returnType"),e.call(n,"typeAnnotation"))}return Zb(a);case"TSTypeOperator":return Zb([o.operator," ",e.call(n,"typeAnnotation")]);case"TSMappedType":{const r=Py(t.originalText,t.locStart(o),t.locEnd(o));return iv(Zb(["{",sv(Zb([t.bracketSpacing?tv:rv,o.readonly?Zb([ob(o.readonly,"readonly")," "]):"",Rv(e,0,n),e.call(n,"typeParameter"),o.optional?ob(o.optional,"?"):"",o.typeAnnotation?": ":"",e.call(n,"typeAnnotation"),lv(i,"")])),ka.printDanglingComments(e,t,!0),t.bracketSpacing?tv:rv,"}"]),{shouldBreak:r})}case"TSMethodSignature":return a.push(o.accessibility?Zb([o.accessibility," "]):"",o.export?"export ":"",o.static?"static ":"",o.readonly?"readonly ":"",o.computed?"[":"",e.call(n,"key"),o.computed?"]":"",$v(e),Ov(e,n,t,!1,!0)),(o.returnType||o.typeAnnotation)&&a.push(": ",e.call(n,"returnType"),e.call(n,"typeAnnotation")),iv(Zb(a));case"TSNamespaceExportDeclaration":return a.push("export as namespace ",e.call(n,"id")),t.semi&&a.push(";"),iv(Zb(a));case"TSEnumDeclaration":return o.declare&&a.push("declare "),o.modifiers&&a.push(Rv(e,0,n)),o.const&&a.push("const "),a.push("enum ",e.call(n,"id")," "),0===o.members.length?a.push(iv(Zb(["{",ka.printDanglingComments(e,t),rv,"}"]))):a.push(iv(Zb(["{",sv(Zb([nv,nD(e,t,"members",n),Cv(t,"es5")?",":""])),ka.printDanglingComments(e,t,!0),nv,"}"]))),Zb(a);case"TSEnumMember":return a.push(e.call(n,"id")),o.initializer&&a.push(" = ",e.call(n,"initializer")),Zb(a);case"TSImportEqualsDeclaration":return o.isExport&&a.push("export "),a.push("import ",e.call(n,"id")," = ",e.call(n,"moduleReference")),t.semi&&a.push(";"),iv(Zb(a));case"TSExternalModuleReference":return Zb(["require(",e.call(n,"expression"),")"]);case"TSModuleDeclaration":{const r=e.getParentNode(),s=Tb(o.id),u="TSModuleDeclaration"===r.type,c=o.body&&"TSModuleDeclaration"===o.body.type;if(u)a.push(".");else{o.declare&&a.push("declare "),a.push(Rv(e,0,n));const r=t.originalText.slice(t.locStart(o),t.locStart(o.id));"Identifier"===o.id.type&&"global"===o.id.name&&!/namespace|module/.test(r)||a.push(s||/(^|\s)module(\s|$)/.test(r)?"module ":"namespace ")}return a.push(e.call(n,"id")),c?a.push(e.call(n,"body")):o.body?a.push(" ",iv(e.call(n,"body"))):a.push(i),Zb(a)}case"PrivateName":return Zb(["#",e.call(n,"id")]);case"TSPrivateIdentifier":return o.escapedText;case"TSConditionalType":return wv(e,t,n,{beforeParts:()=>[e.call(n,"checkType")," ","extends"," ",e.call(n,"extendsType")],afterParts:()=>[],shouldCheckJsx:!1,conditionalNodeType:"TSConditionalType",consequentNodePropertyName:"trueType",alternateNodePropertyName:"falseType",testNodePropertyNames:["checkType","extendsType"]});case"TSInferType":return Zb(["infer"," ",e.call(n,"typeParameter")]);case"InterpreterDirective":return a.push("#!",o.value,nv),Hy(t.originalText,o,t.locEnd)&&a.push(nv),Zb(a);case"NGRoot":return Zb([].concat(e.call(n,"node"),o.node.comments&&0!==o.node.comments.length?Zb([" //",o.node.comments[0].value.trimEnd()]):[]));case"NGChainedExpression":return iv(ev(Zb([";",tv]),e.map((e=>pb(e)?n(e):Zb(["(",n(e),")"])),"expressions")));case"NGEmptyExpression":return"";case"NGQuotedExpression":return Zb([o.prefix,": ",o.value.trim()]);case"NGMicrosyntax":return Zb(e.map(((e,t)=>Zb([0===t?"":Mb(e.getValue(),t,o)?" ":Zb([";",tv]),n(e)])),"body"));case"NGMicrosyntaxKey":return/^[a-z_$][a-z0-9_$]*(-[a-z_$][a-z0-9_$])*$/i.test(o.name)?o.name:JSON.stringify(o.name);case"NGMicrosyntaxExpression":return Zb([e.call(n,"expression"),null===o.alias?"":Zb([" as ",e.call(n,"alias")])]);case"NGMicrosyntaxKeyedExpression":{const t=e.getName(),r=e.getParentNode(),i=Mb(o,t,r)||(1===t&&("then"===o.key.name||"else"===o.key.name)||2===t&&"else"===o.key.name&&"NGMicrosyntaxKeyedExpression"===r.body[t-1].type&&"then"===r.body[t-1].key.name)&&"NGMicrosyntaxExpression"===r.body[0].type;return Zb([e.call(n,"key"),i?" ":": ",e.call(n,"expression")])}case"NGMicrosyntaxLet":return Zb(["let ",e.call(n,"key"),null===o.value?"":Zb([" = ",e.call(n,"value")])]);case"NGMicrosyntaxAs":return Zb([e.call(n,"key")," as ",e.call(n,"alias")]);case"ArgumentPlaceholder":return"?";case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return Zb(["?",e.call(n,"typeAnnotation")]);case"TSJSDocNonNullableType":return Zb(["!",e.call(n,"typeAnnotation")]);case"TSJSDocFunctionType":return Zb(["function(","): ",e.call(n,"typeAnnotation")]);default:throw new Error("unknown type: "+JSON.stringify(o.type))}}(e,t,n,r);if(!o||yv(s))return s;const a=rb(e),u=[];if("ClassMethod"===o.type||"ClassPrivateMethod"===o.type||"ClassProperty"===o.type||"TSAbstractClassProperty"===o.type||"ClassPrivateProperty"===o.type||"MethodDefinition"===o.type||"TSAbstractMethodDefinition"===o.type||"TSDeclareMethod"===o.type);else if(o.decorators&&o.decorators.length>0&&!(a&&t.locStart(a,{ignoreDecorators:!0})>t.locStart(o.decorators[0]))){const r="ClassExpression"===o.type||"ClassDeclaration"===o.type||fb(o,t)?nv:tv;e.each((e=>{let t=e.getValue();t=t.expression?t.expression:t.callee,u.push(n(e),r)}),"decorators"),a&&u.unshift(nv)}else vb(o)&&o.declaration&&o.declaration.decorators&&o.declaration.decorators.length>0&&t.locStart(o,{ignoreDecorators:!0})>t.locStart(o.declaration.decorators[0])?e.each((e=>{const t="Decorator"===e.getValue().type?"":"@";u.push(t,n(e),nv)}),"declaration","decorators"):i=xy(e,t);const c=[];if(i&&c.unshift("("),c.push(s),i){const t=e.getValue();ab(t)&&(c.push(" /*"),c.push(t.trailingComments[0].value.trimStart()),c.push("*/"),t.trailingComments[0].printed=!0),c.push(")")}return u.length>0?iv(Zb(u.concat(c))):Zb(c)},embed:Rg,insertPragma:Jy,massageAstNode:jg,hasPrettierIgnore:hb,willPrintOwnComments:function(e){const t=e.getValue(),n=e.getParentNode();return(t&&(xb(t)||ab(t)||n&&("CallExpression"===n.type||"OptionalCallExpression"===n.type)&&(sb(t.leadingComments)||sb(t.trailingComments)))||n&&("JSXSpreadAttribute"===n.type||"JSXSpreadChild"===n.type||"UnionTypeAnnotation"===n.type||"TSUnionType"===n.type||("ClassDeclaration"===n.type||"ClassExpression"===n.type)&&n.superClass===t))&&(!Vy(e)||"UnionTypeAnnotation"===n.type||"TSUnionType"===n.type)},canAttachComment:function(e){return e.type&&"CommentBlock"!==e.type&&"CommentLine"!==e.type&&"Line"!==e.type&&"Block"!==e.type&&"EmptyStatement"!==e.type&&"TemplateElement"!==e.type&&"Import"!==e.type},printComment:function(e,t){const n=e.getValue();switch(n.type){case"CommentBlock":case"Block":{if(function(e){const t="*".concat(e.value,"*").split("\n");return t.length>1&&t.every((e=>"*"===e.trim()[0]))}(n)){const e=function(e){const t=e.value.split("\n");return Zb(["/*",ev(nv,t.map(((e,n)=>0===n?e.trimEnd():" "+(n<t.length-1?e.trim():e.trimStart())))),"*/"])}(n);return n.trailing&&!My(t.originalText,t.locStart(n),{backwards:!0})?Zb([nv,e]):e}const e=t.locEnd(n),r="*-/"===t.originalText.slice(e-3,e);return"/*"+n.value+(r?"*-/":"*/")}case"CommentLine":case"Line":return t.originalText.slice(t.locStart(n)).startsWith("#!")?"#!"+n.value.trimEnd():"//"+n.value.trimEnd();default:throw new Error("Not a comment: "+JSON.stringify(n))}},isBlockComment:pg.isBlockComment,handleComments:{ownLine:pg.handleOwnLineComment,endOfLine:pg.handleEndOfLineComment,remaining:pg.handleRemainingComment},getGapRegex:pg.getGapRegex,getCommentChildNodes:pg.getCommentChildNodes};const{concat:iD,hardline:sD,indent:aD,join:uD}=Rs.builders;var cD={preprocess:Ny,print:function(e,t,n){const r=e.getValue();switch(r.type){case"JsonRoot":return iD([e.call(n,"node"),sD]);case"ArrayExpression":return 0===r.elements.length?"[]":iD(["[",aD(iD([sD,uD(iD([",",sD]),e.map(n,"elements"))])),sD,"]"]);case"ObjectExpression":return 0===r.properties.length?"{}":iD(["{",aD(iD([sD,uD(iD([",",sD]),e.map(n,"properties"))])),sD,"}"]);case"ObjectProperty":return iD([e.call(n,"key"),": ",e.call(n,"value")]);case"UnaryExpression":return iD(["+"===r.operator?"":r.operator,e.call(n,"argument")]);case"NullLiteral":return"null";case"BooleanLiteral":return r.value?"true":"false";case"StringLiteral":case"NumericLiteral":return JSON.stringify(r.value);case"Identifier":return JSON.stringify(r.name);default:throw new Error("unknown type: "+JSON.stringify(r.type))}},massageAstNode:function(e,t){return delete t.start,delete t.end,delete t.extra,delete t.loc,delete t.comments,delete t.errors,"Identifier"===e.type?{type:"StringLiteral",value:e.name}:"UnaryExpression"===e.type&&"+"===e.operator?t.argument:void 0}};const lD="JavaScript";var fD={arrowParens:{since:"1.9.0",category:lD,type:"choice",default:[{since:"1.9.0",value:"avoid"},{since:"2.0.0",value:"always"}],description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSpacing:Qc.bracketSpacing,jsxBracketSameLine:{since:"0.17.0",category:lD,type:"boolean",default:!1,description:"Put > on the last line instead of at a new line."},semi:{since:"1.0.0",category:lD,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},singleQuote:Qc.singleQuote,jsxSingleQuote:{since:"1.15.0",category:lD,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{since:"1.17.0",category:lD,type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{since:"0.0.0",category:lD,type:"choice",default:[{since:"0.0.0",value:!1},{since:"0.19.0",value:"none"},{since:"2.0.0",value:"es5"}],description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."},{value:"all",description:"Trailing commas wherever possible (including function arguments)."}]}},pD="JavaScript",hD="programming",dD="source.js",mD="javascript",gD="javascript",yD="text/javascript",bD="#f1e05a",vD=["js","node"],DD=[".js","._js",".bones",".cjs",".es",".es6",".frag",".gs",".jake",".jsb",".jscad",".jsfl",".jsm",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib"],CD=["Jakefile"],ED=["chakra","d8","gjs","js","node","qjs","rhino","v8","v8-shell"],wD={name:pD,type:hD,tmScope:dD,aceMode:mD,codemirrorMode:gD,codemirrorMimeType:yD,color:bD,aliases:vD,extensions:DD,filenames:CD,interpreters:ED,languageId:183},AD=Object.freeze({__proto__:null,name:pD,type:hD,tmScope:dD,aceMode:mD,codemirrorMode:gD,codemirrorMimeType:yD,color:bD,aliases:vD,extensions:DD,filenames:CD,interpreters:ED,languageId:183,default:wD}),SD="programming",xD="JavaScript",_D=[".jsx"],FD="source.js.jsx",TD="javascript",kD="text/jsx",ND={name:"JSX",type:SD,group:xD,extensions:_D,tmScope:FD,aceMode:TD,codemirrorMode:"jsx",codemirrorMimeType:kD,languageId:178},OD=Object.freeze({__proto__:null,name:"JSX",type:SD,group:xD,extensions:_D,tmScope:FD,aceMode:TD,codemirrorMode:"jsx",codemirrorMimeType:kD,languageId:178,default:ND}),LD="TypeScript",MD="programming",PD="#2b7489",ID=["ts"],BD=["deno","ts-node"],RD=[".ts"],jD="source.ts",VD="typescript",$D="javascript",UD="application/typescript",WD={name:LD,type:MD,color:PD,aliases:ID,interpreters:BD,extensions:RD,tmScope:jD,aceMode:VD,codemirrorMode:$D,codemirrorMimeType:UD,languageId:378},KD=Object.freeze({__proto__:null,name:LD,type:MD,color:PD,aliases:ID,interpreters:BD,extensions:RD,tmScope:jD,aceMode:VD,codemirrorMode:$D,codemirrorMimeType:UD,languageId:378,default:WD}),qD="programming",HD="TypeScript",zD=[".tsx"],YD="source.tsx",JD="javascript",GD="text/jsx",XD=94901924,QD={name:"TSX",type:qD,group:HD,extensions:zD,tmScope:YD,aceMode:JD,codemirrorMode:"jsx",codemirrorMimeType:GD,languageId:XD},ZD=Object.freeze({__proto__:null,name:"TSX",type:qD,group:HD,extensions:zD,tmScope:YD,aceMode:JD,codemirrorMode:"jsx",codemirrorMimeType:GD,languageId:XD,default:QD}),eC="JSON",tC="data",nC="source.json",rC="json",oC="javascript",iC="application/json",sC=[".json",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".jsonl",".mcmeta",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],aC=[".arcconfig",".htmlhintrc",".tern-config",".tern-project",".watchmanconfig","composer.lock","mcmod.info"],uC={name:eC,type:tC,tmScope:nC,aceMode:rC,codemirrorMode:oC,codemirrorMimeType:iC,searchable:false,extensions:sC,filenames:aC,languageId:174},cC=Object.freeze({__proto__:null,name:eC,type:tC,tmScope:nC,aceMode:rC,codemirrorMode:oC,codemirrorMimeType:iC,searchable:false,extensions:sC,filenames:aC,languageId:174,default:uC}),lC="JSON with Comments",fC="data",pC="JSON",hC="source.js",dC="javascript",mC="javascript",gC="text/javascript",yC=["jsonc"],bC=[".jsonc",".sublime-build",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],vC=[".babelrc",".eslintrc.json",".jscsrc",".jshintrc",".jslintrc","jsconfig.json","language-configuration.json","tsconfig.json"],DC={name:lC,type:fC,group:pC,tmScope:hC,aceMode:dC,codemirrorMode:mC,codemirrorMimeType:gC,aliases:yC,extensions:bC,filenames:vC,languageId:423},CC=Object.freeze({__proto__:null,name:lC,type:fC,group:pC,tmScope:hC,aceMode:dC,codemirrorMode:mC,codemirrorMimeType:gC,aliases:yC,extensions:bC,filenames:vC,languageId:423,default:DC}),EC="JSON5",wC="data",AC=[".json5"],SC="source.js",xC="javascript",_C="javascript",FC="application/json",TC={name:EC,type:wC,extensions:AC,tmScope:SC,aceMode:xC,codemirrorMode:_C,codemirrorMimeType:FC,languageId:175},kC=Object.freeze({__proto__:null,name:EC,type:wC,extensions:AC,tmScope:SC,aceMode:xC,codemirrorMode:_C,codemirrorMimeType:FC,languageId:175,default:TC}),NC=st(AD),OC=st(OD),LC=st(KD),MC=st(ZD),PC=st(cC),IC=st(CC),BC=st(kC);var RC={languages:[el(NC,(e=>({since:"0.0.0",parsers:["babel","flow"],vscodeLanguageIds:["javascript","mongo"],interpreters:e.interpreters.concat(["nodejs"])}))),el(NC,(()=>({name:"Flow",since:"0.0.0",parsers:["babel","flow"],vscodeLanguageIds:["javascript"],aliases:[],filenames:[],extensions:[".js.flow"]}))),el(OC,(()=>({since:"0.0.0",parsers:["babel","flow"],vscodeLanguageIds:["javascriptreact"]}))),el(LC,(()=>({since:"1.4.0",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"]}))),el(MC,(()=>({since:"1.4.0",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"]}))),el(PC,(()=>({name:"JSON.stringify",since:"1.13.0",parsers:["json-stringify"],vscodeLanguageIds:["json"],extensions:[],filenames:["package.json","package-lock.json","composer.json"]}))),el(PC,(e=>({since:"1.5.0",parsers:["json"],vscodeLanguageIds:["json"],filenames:e.filenames.concat([".prettierrc"])}))),el(IC,(e=>({since:"1.5.0",parsers:["json"],vscodeLanguageIds:["jsonc"],filenames:e.filenames.concat([".eslintrc"])}))),el(BC,(()=>({since:"1.13.0",parsers:["json5"],vscodeLanguageIds:["json5"]})))],options:fD,printers:{estree:oD,"estree-json":cD}};const{cjkPattern:jC,kPattern:VC,punctuationPattern:$C}={cjkPattern:"[\\u02ea-\\u02eb\\u1100-\\u11ff\\u2e80-\\u2e99\\u2e9b-\\u2ef3\\u2f00-\\u2fd5\\u3000-\\u303f\\u3041-\\u3096\\u3099-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312f\\u3131-\\u318e\\u3190-\\u3191\\u3196-\\u31ba\\u31c0-\\u31e3\\u31f0-\\u321e\\u322a-\\u3247\\u3260-\\u327e\\u328a-\\u32b0\\u32c0-\\u32cb\\u32d0-\\u3370\\u337b-\\u337f\\u33e0-\\u33fe\\u3400-\\u4db5\\u4e00-\\u9fef\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufe10-\\ufe1f\\ufe30-\\ufe6f\\uff00-\\uffef]|[\\ud840-\\ud868\\ud86a-\\ud86c\\ud86f-\\ud872\\ud874-\\ud879][\\udc00-\\udfff]|\\ud82c[\\udc00-\\udd1e\\udd50-\\udd52\\udd64-\\udd67]|\\ud83c[\\ude00\\ude50-\\ude51]|\\ud869[\\udc00-\\uded6\\udf00-\\udfff]|\\ud86d[\\udc00-\\udf34\\udf40-\\udfff]|\\ud86e[\\udc00-\\udc1d\\udc20-\\udfff]|\\ud873[\\udc00-\\udea1\\udeb0-\\udfff]|\\ud87a[\\udc00-\\udfe0]|\\ud87e[\\udc00-\\ude1d]",kPattern:"[\\u1100-\\u11ff\\u3001-\\u3003\\u3008-\\u3011\\u3013-\\u301f\\u302e-\\u3030\\u3037\\u30fb\\u3131-\\u318e\\u3200-\\u321e\\u3260-\\u327e\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\ufe45-\\ufe46\\uff61-\\uff65\\uffa0-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc]",punctuationPattern:"[\\u0021-\\u002f\\u003a-\\u0040\\u005b-\\u0060\\u007b-\\u007e\\u00a1\\u00a7\\u00ab\\u00b6-\\u00b7\\u00bb\\u00bf\\u037e\\u0387\\u055a-\\u055f\\u0589-\\u058a\\u05be\\u05c0\\u05c3\\u05c6\\u05f3-\\u05f4\\u0609-\\u060a\\u060c-\\u060d\\u061b\\u061e-\\u061f\\u066a-\\u066d\\u06d4\\u0700-\\u070d\\u07f7-\\u07f9\\u0830-\\u083e\\u085e\\u0964-\\u0965\\u0970\\u09fd\\u0a76\\u0af0\\u0c77\\u0c84\\u0df4\\u0e4f\\u0e5a-\\u0e5b\\u0f04-\\u0f12\\u0f14\\u0f3a-\\u0f3d\\u0f85\\u0fd0-\\u0fd4\\u0fd9-\\u0fda\\u104a-\\u104f\\u10fb\\u1360-\\u1368\\u1400\\u166e\\u169b-\\u169c\\u16eb-\\u16ed\\u1735-\\u1736\\u17d4-\\u17d6\\u17d8-\\u17da\\u1800-\\u180a\\u1944-\\u1945\\u1a1e-\\u1a1f\\u1aa0-\\u1aa6\\u1aa8-\\u1aad\\u1b5a-\\u1b60\\u1bfc-\\u1bff\\u1c3b-\\u1c3f\\u1c7e-\\u1c7f\\u1cc0-\\u1cc7\\u1cd3\\u2010-\\u2027\\u2030-\\u2043\\u2045-\\u2051\\u2053-\\u205e\\u207d-\\u207e\\u208d-\\u208e\\u2308-\\u230b\\u2329-\\u232a\\u2768-\\u2775\\u27c5-\\u27c6\\u27e6-\\u27ef\\u2983-\\u2998\\u29d8-\\u29db\\u29fc-\\u29fd\\u2cf9-\\u2cfc\\u2cfe-\\u2cff\\u2d70\\u2e00-\\u2e2e\\u2e30-\\u2e4f\\u3001-\\u3003\\u3008-\\u3011\\u3014-\\u301f\\u3030\\u303d\\u30a0\\u30fb\\ua4fe-\\ua4ff\\ua60d-\\ua60f\\ua673\\ua67e\\ua6f2-\\ua6f7\\ua874-\\ua877\\ua8ce-\\ua8cf\\ua8f8-\\ua8fa\\ua8fc\\ua92e-\\ua92f\\ua95f\\ua9c1-\\ua9cd\\ua9de-\\ua9df\\uaa5c-\\uaa5f\\uaade-\\uaadf\\uaaf0-\\uaaf1\\uabeb\\ufd3e-\\ufd3f\\ufe10-\\ufe19\\ufe30-\\ufe52\\ufe54-\\ufe61\\ufe63\\ufe68\\ufe6a-\\ufe6b\\uff01-\\uff03\\uff05-\\uff0a\\uff0c-\\uff0f\\uff1a-\\uff1b\\uff1f-\\uff20\\uff3b-\\uff3d\\uff3f\\uff5b\\uff5d\\uff5f-\\uff65]|\\ud800[\\udd00-\\udd02\\udf9f\\udfd0]|\\ud801[\\udd6f]|\\ud802[\\udc57\\udd1f\\udd3f\\ude50-\\ude58\\ude7f\\udef0-\\udef6\\udf39-\\udf3f\\udf99-\\udf9c]|\\ud803[\\udf55-\\udf59]|\\ud804[\\udc47-\\udc4d\\udcbb-\\udcbc\\udcbe-\\udcc1\\udd40-\\udd43\\udd74-\\udd75\\uddc5-\\uddc8\\uddcd\\udddb\\udddd-\\udddf\\ude38-\\ude3d\\udea9]|\\ud805[\\udc4b-\\udc4f\\udc5b\\udc5d\\udcc6\\uddc1-\\uddd7\\ude41-\\ude43\\ude60-\\ude6c\\udf3c-\\udf3e]|\\ud806[\\udc3b\\udde2\\ude3f-\\ude46\\ude9a-\\ude9c\\ude9e-\\udea2]|\\ud807[\\udc41-\\udc45\\udc70-\\udc71\\udef7-\\udef8\\udfff]|\\ud809[\\udc70-\\udc74]|\\ud81a[\\ude6e-\\ude6f\\udef5\\udf37-\\udf3b\\udf44]|\\ud81b[\\ude97-\\ude9a\\udfe2]|\\ud82f[\\udc9f]|\\ud836[\\ude87-\\ude8b]|\\ud83a[\\udd5e-\\udd5f]"},{getLast:UC}=ms,WC=["liquidNode","inlineCode","emphasis","strong","delete","link","linkReference","image","imageReference","footnote","footnoteReference","sentence","whitespace","word","break","inlineMath"],KC=WC.concat(["tableCell","paragraph","heading"]),qC=new RegExp(VC),HC=new RegExp($C);function zC(e,t){const[,n,r,o]=t.slice(e.position.start.offset,e.position.end.offset).match(/^\s*(\d+)(\.|\))(\s*)/);return{numberText:n,marker:r,leadingSpaces:o}}var YC={mapAst:function(e,t){return function e(n,r,o){o=o||[];const i=Object.assign({},t(n,r,o));return i.children&&(i.children=i.children.map(((t,n)=>e(t,n,[i].concat(o))))),i}(e,null,null)},splitText:function(e,t){const n="non-cjk",r="cj-letter",o="cjk-punctuation",i=[];return("preserve"===t.proseWrap?e:e.replace(new RegExp("(".concat(jC,")\n(").concat(jC,")"),"g"),"$1$2")).split(/([ \t\n]+)/).forEach(((e,t,a)=>{t%2!=1?(0!==t&&t!==a.length-1||""!==e)&&e.split(new RegExp("(".concat(jC,")"))).forEach(((e,t,i)=>{(0!==t&&t!==i.length-1||""!==e)&&(t%2!=0?s(HC.test(e)?{type:"word",value:e,kind:o,hasLeadingPunctuation:!0,hasTrailingPunctuation:!0}:{type:"word",value:e,kind:qC.test(e)?"k-letter":r,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1}):""!==e&&s({type:"word",value:e,kind:n,hasLeadingPunctuation:HC.test(e[0]),hasTrailingPunctuation:HC.test(UC(e))}))})):i.push({type:"whitespace",value:/\n/.test(e)?"\n":" "})})),i;function s(e){const t=UC(i);var s,a;t&&"word"===t.type&&(t.kind===n&&e.kind===r&&!t.hasTrailingPunctuation||t.kind===r&&e.kind===n&&!e.hasLeadingPunctuation?i.push({type:"whitespace",value:" "}):(s=n,a=o,t.kind===s&&e.kind===a||t.kind===a&&e.kind===s||[t.value,e.value].some((e=>/\u3000/.test(e)))||i.push({type:"whitespace",value:""}))),i.push(e)}},punctuationPattern:$C,getFencedCodeBlockValue:function(e,t){const n=t.slice(e.position.start.offset,e.position.end.offset),r=n.match(/^\s*/)[0].length,o=new RegExp("^\\s{0,".concat(r,"}")),i=n.split("\n"),s=n[r],a=n.slice(r).match(new RegExp("^[".concat(s,"]+")))[0],u=new RegExp("^\\s{0,3}".concat(a)).test(i[i.length-1].slice(c(i.length-1)));return i.slice(1,u?-1:void 0).map(((e,t)=>e.slice(c(t+1)).replace(o,""))).join("\n");function c(t){return e.position.indent[t-1]-1}},getOrderedListItemInfo:zC,hasGitDiffFriendlyOrderedList:function(e,t){if(!e.ordered)return!1;if(e.children.length<2)return!1;const n=Number(zC(e.children[0],t.originalText).numberText),r=Number(zC(e.children[1],t.originalText).numberText);if(0===n&&e.children.length>2){const n=Number(zC(e.children[2],t.originalText).numberText);return 1===r&&1===n}return 1===r},INLINE_NODE_TYPES:WC,INLINE_NODE_WRAPPER_TYPES:KC};const{builders:{hardline:JC,literalline:GC,concat:XC,markAsRoot:QC},utils:{mapDoc:ZC}}=Rs,{getFencedCodeBlockValue:eE}=YC;var tE=function(e,t,n,r){const o=e.getValue();if("code"===o.type&&null!==o.lang){const e=o.lang.match(/^[A-Za-z0-9_-]+/),t=function(e){const t=Dn.getSupportInfo({plugins:r.plugins}).languages.find((t=>t.name.toLowerCase()===e||t.aliases&&t.aliases.includes(e)||t.extensions&&t.extensions.find((t=>t===".".concat(e)))));return t?t.parsers[0]:null}(e?e[0]:"");if(t){const e=r.__inJsTemplate?"~":"`",s=e.repeat(Math.max(3,ms.getMaxContinuousCount(o.value,e)+1)),a=n(eE(o,r.originalText),{parser:t});return QC(XC([s,o.lang,JC,i(a),s]))}}if("yaml"===o.type)return QC(XC(["---",JC,o.value&&o.value.trim()?i(n(o.value,{parser:"yaml"})):"","---"]));switch(o.type){case"importExport":return n(o.value,{parser:"babel"});case"jsx":return n("<$>".concat(o.value,"</$>"),{parser:"__js_expression",rootMarker:"mdx"})}return null;function i(e){return ZC(e,(e=>"string"==typeof e&&e.includes("\n")?XC(e.split(/(\n)/g).map(((e,t)=>t%2==0?e:GC))):e))}};const nE=["format","prettier"];function rE(e){const t="@(".concat(nE.join("|"),")"),n=new RegExp(["\x3c!--\\s*".concat(t,"\\s*--\x3e"),"\x3c!--.*\r?\n[\\s\\S]*(^|\n)[^\\S\n]*".concat(t,"[^\\S\n]*($|\n)[\\s\\S]*\n.*--\x3e")].join("|"),"m"),r=e.match(n);return r&&0===r.index}var oE={startWithPragma:rE,hasPragma:e=>rE(bu(e).content.trimStart()),insertPragma:e=>{const t=bu(e),n="\x3c!-- @".concat(nE[0]," --\x3e");return t.frontMatter?"".concat(t.frontMatter.raw,"\n\n").concat(n,"\n\n").concat(t.content):"".concat(n,"\n\n").concat(t.content)}};const{getOrderedListItemInfo:iE,mapAst:sE,splitText:aE}=YC,uE=/^([\u0000-\uffff]|[\ud800-\udbff][\udc00-\udfff])$/;function cE(e,t,n){return sE(e,(e=>{if(!e.children)return e;const r=e.children.reduce(((e,r)=>{const o=e[e.length-1];return o&&t(o,r)?e.splice(-1,1,n(o,r)):e.push(r),e}),[]);return Object.assign({},e,{children:r})}))}var lE=function(e,t){return function(e){return cE(e,((e,t)=>"importExport"===e.type&&"importExport"===t.type),((e,t)=>({type:"importExport",value:e.value+"\n\n"+t.value,position:{start:e.position.start,end:t.position.end}})))}(e=function(e){return sE(e,(e=>"import"!==e.type&&"export"!==e.type?e:Object.assign({},e,{type:"importExport"})))}(e=function(e,t){return sE(e,((e,n,[r])=>{if("text"!==e.type)return e;let{value:o}=e;return"paragraph"===r.type&&(0===n&&(o=o.trimStart()),n===r.children.length-1&&(o=o.trimEnd())),{type:"sentence",position:e.position,children:aE(o,t)}}))}(e=function(e,t){return sE(e,((e,t,n)=>{if("list"===e.type&&0!==e.children.length){for(let t=0;t<n.length;t++){const r=n[t];if("list"===r.type&&!r.isAligned)return e.isAligned=!1,e}e.isAligned=r(e)}return e}));function n(e){return 0===e.children.length?-1:e.children[0].position.start.column-1}function r(e){if(!e.ordered)return!0;const[r,o]=e.children;if(iE(r,t.originalText).leadingSpaces.length>1)return!0;const i=n(r);return-1!==i&&(1===e.children.length?i%t.tabWidth==0:i===n(o)&&(i%t.tabWidth==0||iE(o,t.originalText).leadingSpaces.length>1))}}(e=function(e,t){return sE(e,((e,n,r)=>{if("code"===e.type){const n=/^\n?( {4,}|\t)/.test(t.originalText.slice(e.position.start.offset,e.position.end.offset));if(e.isIndented=n,n)for(let e=0;e<r.length;e++){const t=r[e];if(t.hasIndentedCodeblock)break;"list"===t.type&&(t.hasIndentedCodeblock=!0)}}return e}))}(e=function(e){return sE(e,(e=>"inlineCode"!==e.type?e:Object.assign({},e,{value:e.value.replace(/\s+/g," ")})))}(e=function(e){return cE(e,((e,t)=>"text"===e.type&&"text"===t.type),((e,t)=>({type:"text",value:e.value+t.value,position:{start:e.position.start,end:t.position.end}})))}(e=function(e,t){return sE(e,(e=>"text"!==e.type?e:Object.assign({},e,{value:"*"!==e.value&&"_"!==e.value&&"$"!==e.value&&uE.test(e.value)&&e.position.end.offset-e.position.start.offset!==e.value.length?t.originalText.slice(e.position.start.offset,e.position.end.offset):e.value})))}(e,t))),t),t),t)))};const{builders:{breakParent:fE,concat:pE,join:hE,line:dE,literalline:mE,markAsRoot:gE,hardline:yE,softline:bE,ifBreak:vE,fill:DE,align:CE,indent:EE,group:wE},utils:{mapDoc:AE},printer:{printDocToString:SE}}=Rs,{getFencedCodeBlockValue:xE,hasGitDiffFriendlyOrderedList:_E,splitText:FE,punctuationPattern:TE,INLINE_NODE_TYPES:kE,INLINE_NODE_WRAPPER_TYPES:NE}=YC,{replaceEndOfLineWith:OE}=ms,LE=["importExport"],ME=["heading","tableCell","link"],PE=["listItem","definition","footnoteDefinition"];function IE(e,t,n,r){const o=e.getValue(),i=null===o.checked?"":o.checked?"[x] ":"[ ] ";return pE([i,UE(e,t,n,{processor:(e,o)=>{if(0===o&&"list"!==e.getValue().type)return CE(" ".repeat(i.length),e.call(n));const s=" ".repeat((a=t.tabWidth-r.length,c=3,a<(u=0)?u:a>c?c:a));var a,u,c;return pE([s,CE(s,e.call(n))])}})])}function BE(e,t){return function(e,t,n){n=n||(()=>!0);let r=-1;for(const o of t.children)if(o.type===e.type&&n(o)?r++:r=-1,o===e)return r}(e,t,(t=>t.ordered===e.ordered))}function RE(e,t){const n=[].concat(t);let r,o=-1;for(;r=e.getParentNode(++o);)if(n.includes(r.type))return o;return-1}function jE(e,t){const n=RE(e,t);return-1===n?null:e.getParentNode(n)}function VE(e,t,n){if("preserve"===n.proseWrap&&"\n"===t)return yE;const r="always"===n.proseWrap&&!jE(e,ME);return""!==t?r?dE:" ":r?bE:""}function $E(e,t,n){const r=[];let o=null;const{children:i}=e.getValue();return i.forEach(((e,t)=>{switch(KE(e)){case"start":null===o&&(o={index:t,offset:e.position.end.offset});break;case"end":null!==o&&(r.push({start:o,end:{index:t,offset:e.position.start.offset}}),o=null)}})),UE(e,t,n,{processor:(e,o)=>{if(0!==r.length){const e=r[0];if(o===e.start.index)return pE([i[e.start.index].value,t.originalText.slice(e.start.offset,e.end.offset),i[e.end.index].value]);if(e.start.index<o&&o<e.end.index)return!1;if(o===e.end.index)return r.shift(),!1}return e.call(n)}})}function UE(e,t,n,r){const o=(r=r||{}).postprocessor||pE,i=r.processor||(e=>e.call(n)),s=e.getValue(),a=[];let u;return e.map(((e,n)=>{const r=e.getValue(),o=i(e,n);if(!1!==o){const e={parts:a,prevNode:u,parentNode:s,options:t};(function(e,t){const n=0===t.parts.length,r=kE.includes(e.type),o="html"===e.type&&NE.includes(t.parentNode.type);return n||r||o})(r,e)||(a.push(yE),u&&LE.includes(u.type)||(function(e,t){const n=(t.prevNode&&t.prevNode.type)===e.type&&PE.includes(e.type),r="listItem"===t.parentNode.type&&!t.parentNode.loose,o=t.prevNode&&"listItem"===t.prevNode.type&&t.prevNode.loose,i="next"===KE(t.prevNode),s="html"===e.type&&t.prevNode&&"html"===t.prevNode.type&&t.prevNode.position.end.line+1===e.position.start.line,a="html"===e.type&&"listItem"===t.parentNode.type&&t.prevNode&&"paragraph"===t.prevNode.type&&t.prevNode.position.end.line+1===e.position.start.line;return o||!(n||r||i||s||a)}(r,e)||qE(r,e))&&a.push(yE),qE(r,e)&&a.push(yE)),a.push(o),u=r}}),"children"),o(a)}function WE(e){let t=e;for(;t.children&&0!==t.children.length;)t=t.children[t.children.length-1];return t}function KE(e){if("html"!==e.type)return!1;const t=e.value.match(/^<!--\s*prettier-ignore(?:-(start|end))?\s*-->$/);return null!==t&&(t[1]?t[1]:"next")}function qE(e,t){const n=t.prevNode&&"list"===t.prevNode.type,r="code"===e.type&&e.isIndented;return n&&r}function HE(e){return AE(e,(e=>{if(!e.parts)return e;if("concat"===e.type&&1===e.parts.length)return e.parts[0];const t=e.parts.reduce(((e,t)=>("concat"===t.type?e.push(...t.parts):""!==t&&e.push(t),e)),[]);return Object.assign({},e,{parts:JE(t)})}))}function zE(e,t){const n=[" "].concat(t||[]);return new RegExp(n.map((e=>"\\".concat(e))).join("|")).test(e)?"<".concat(e,">"):e}function YE(e,t,n){if(null==n&&(n=!0),!e)return"";if(n)return" "+YE(e,t,!1);if(e.includes('"')&&e.includes("'")&&!e.includes(")"))return"(".concat(e,")");const r=e.split("'").length-1,o=e.split('"').length-1,i=r>o?'"':o>r||t.singleQuote?"'":'"';return e=e.replace(new RegExp("(".concat(i,")"),"g"),"\\$1"),"".concat(i).concat(e).concat(i)}function JE(e){return e.reduce(((e,t)=>{const n=ms.getLast(e);return"string"==typeof n&&"string"==typeof t?e.splice(-1,1,n+t):e.push(t),e}),[])}var GE={preprocess:lE,print:function(e,t,n){const r=e.getValue();if(function(e){const t=jE(e,["linkReference","imageReference"]);return t&&("linkReference"!==t.type||"full"!==t.referenceType)}(e))return pE(FE(t.originalText.slice(r.position.start.offset,r.position.end.offset),t).map((n=>"word"===n.type?n.value:""===n.value?"":VE(e,n.value,t))));switch(r.type){case"root":return 0===r.children.length?"":pE([HE($E(e,t,n)),LE.includes(WE(r).type)?"":yE]);case"paragraph":return UE(e,t,n,{postprocessor:DE});case"sentence":return UE(e,t,n);case"word":return r.value.replace(/[*$]/g,"\\$&").replace(new RegExp(["(^|".concat(TE,")(_+)"),"(_+)(".concat(TE,"|$)")].join("|"),"g"),((e,t,n,r,o)=>(n?"".concat(t).concat(n):"".concat(r).concat(o)).replace(/_/g,"\\_")));case"whitespace":{const n=e.getParentNode(),o=n.children.indexOf(r),i=n.children[o+1],s=i&&/^>|^([-+*]|#{1,6}|[0-9]+[.)])$/.test(i.value)?"never":t.proseWrap;return VE(e,r.value,{proseWrap:s})}case"emphasis":{const o=e.getParentNode(),i=o.children.indexOf(r),s=o.children[i-1],a=o.children[i+1],u=s&&"sentence"===s.type&&s.children.length>0&&"word"===ms.getLast(s.children).type&&!ms.getLast(s.children).hasTrailingPunctuation||a&&"sentence"===a.type&&a.children.length>0&&"word"===a.children[0].type&&!a.children[0].hasLeadingPunctuation||jE(e,"emphasis")?"*":"_";return pE([u,UE(e,t,n),u])}case"strong":return pE(["**",UE(e,t,n),"**"]);case"delete":return pE(["~~",UE(e,t,n),"~~"]);case"inlineCode":{const e=ms.getMinNotPresentContinuousCount(r.value,"`"),t="`".repeat(e||1),n=e?" ":"";return pE([t,n,r.value,n,t])}case"link":switch(t.originalText[r.position.start.offset]){case"<":{const e="mailto:",n=r.url.startsWith(e)&&t.originalText.slice(r.position.start.offset+1,r.position.start.offset+1+e.length)!==e?r.url.slice(e.length):r.url;return pE(["<",n,">"])}case"[":return pE(["[",UE(e,t,n),"](",zE(r.url,")"),YE(r.title,t),")"]);default:return t.originalText.slice(r.position.start.offset,r.position.end.offset)}case"image":return pE(["![",r.alt||"","](",zE(r.url,")"),YE(r.title,t),")"]);case"blockquote":return pE(["> ",CE("> ",UE(e,t,n))]);case"heading":return pE(["#".repeat(r.depth)+" ",UE(e,t,n)]);case"code":{if(r.isIndented){const e=" ".repeat(4);return CE(e,pE([e,pE(OE(r.value,yE))]))}const e=t.__inJsTemplate?"~":"`",n=e.repeat(Math.max(3,ms.getMaxContinuousCount(r.value,e)+1));return pE([n,r.lang||"",yE,pE(OE(xE(r,t.originalText),yE)),yE,n])}case"yaml":case"toml":return t.originalText.slice(r.position.start.offset,r.position.end.offset);case"html":{const t=e.getParentNode(),n="root"===t.type&&ms.getLast(t.children)===r?r.value.trimEnd():r.value,o=/^<!--[\s\S]*-->$/.test(n);return pE(OE(n,o?yE:gE(mE)))}case"list":{const o=BE(r,e.getParentNode()),i=_E(r,t);return UE(e,t,n,{processor:(e,s)=>{const a=function(){const e=r.ordered?(0===s?r.start:i?1:r.start+s)+(o%2==0?". ":") "):o%2==0?"- ":"* ";return r.isAligned||r.hasIndentedCodeblock?function(e,t){const n=r();return e+" ".repeat(n>=4?0:n);function r(){const n=e.length%t.tabWidth;return 0===n?0:t.tabWidth-n}}(e,t):e}(),u=e.getValue();return 2===u.children.length&&"html"===u.children[1].type&&u.children[0].position.start.column!==u.children[1].position.start.column?pE([a,IE(e,t,n,a)]):pE([a,CE(" ".repeat(a.length),IE(e,t,n,a))])}})}case"thematicBreak":{const t=RE(e,"list");return-1===t?"---":BE(e.getParentNode(t),e.getParentNode(t+1))%2==0?"***":"---"}case"linkReference":return pE(["[",UE(e,t,n),"]","full"===r.referenceType?pE(["[",r.identifier,"]"]):"collapsed"===r.referenceType?"[]":""]);case"imageReference":switch(r.referenceType){case"full":return pE(["![",r.alt||"","][",r.identifier,"]"]);default:return pE(["![",r.alt,"]","collapsed"===r.referenceType?"[]":""])}case"definition":{const e="always"===t.proseWrap?dE:" ";return wE(pE([pE(["[",r.identifier,"]:"]),EE(pE([e,zE(r.url),null===r.title?"":pE([e,YE(r.title,t,!1)])]))]))}case"footnote":return pE(["[^",UE(e,t,n),"]"]);case"footnoteReference":return pE(["[^",r.identifier,"]"]);case"footnoteDefinition":{const o=e.getParentNode().children[e.getName()+1],i=1===r.children.length&&"paragraph"===r.children[0].type&&("never"===t.proseWrap||"preserve"===t.proseWrap&&r.children[0].position.start.line===r.children[0].position.end.line);return pE(["[^",r.identifier,"]: ",i?UE(e,t,n):wE(pE([CE(" ".repeat(t.tabWidth),UE(e,t,n,{processor:(e,t)=>0===t?wE(pE([bE,e.call(n)])):e.call(n)})),o&&"footnoteDefinition"===o.type?bE:""]))])}case"table":return function(e,t,n){const r=yE.parts[0],o=e.getValue(),i=[];e.map((e=>{const r=[];e.map((e=>{r.push(SE(e.call(n),t).formatted)}),"children"),i.push(r)}),"children");const s=i.reduce(((e,t)=>e.map(((e,n)=>Math.max(e,ms.getStringWidth(t[n]))))),i[0].map((()=>3))),a=hE(r,[l(i[0]),c(),hE(r,i.slice(1).map((e=>l(e))))]);if("never"!==t.proseWrap)return pE([fE,a]);const u=hE(r,[l(i[0],!0),c(!0),hE(r,i.slice(1).map((e=>l(e,!0))))]);return pE([fE,wE(vE(u,a))]);function c(e){return pE(["| ",hE(" | ",s.map(((t,n)=>{const r=e?3:t;switch(o.align[n]){case"left":return":"+"-".repeat(r-1);case"right":return"-".repeat(r-1)+":";case"center":return":"+"-".repeat(r-2)+":";default:return"-".repeat(r)}})))," |"])}function l(e,t){return pE(["| ",hE(" | ",t?e:e.map(((e,t)=>{switch(o.align[t]){case"right":return p(e,s[t]);case"center":return h(e,s[t]);default:return f(e,s[t])}})))," |"])}function f(e,t){const n=t-ms.getStringWidth(e);return pE([e," ".repeat(n)])}function p(e,t){const n=t-ms.getStringWidth(e);return pE([" ".repeat(n),e])}function h(e,t){const n=t-ms.getStringWidth(e),r=Math.floor(n/2),o=n-r;return pE([" ".repeat(r),e," ".repeat(o)])}}(e,t,n);case"tableCell":return UE(e,t,n);case"break":return/\s/.test(t.originalText[r.position.start.offset])?pE(["  ",gE(mE)]):pE(["\\",yE]);case"liquidNode":return pE(OE(r.value,yE));case"importExport":case"jsx":return r.value;case"math":return pE(["$$",yE,r.value?pE([pE(OE(r.value,yE)),yE]):"","$$"]);case"inlineMath":return t.originalText.slice(t.locStart(r),t.locEnd(r));case"tableRow":case"listItem":default:throw new Error("Unknown markdown type ".concat(JSON.stringify(r.type)))}},embed:tE,massageAstNode:function(e,t,n){return delete t.position,delete t.raw,"code"!==e.type&&"yaml"!==e.type&&"import"!==e.type&&"export"!==e.type&&"jsx"!==e.type||delete t.value,"list"===e.type&&delete t.isAligned,"text"===e.type?null:("inlineCode"===e.type&&(t.value=e.value.replace(/[ \t\n]+/g," ")),n&&"root"===n.type&&n.children.length>0&&(n.children[0]===e||("yaml"===n.children[0].type||"toml"===n.children[0].type)&&n.children[1]===e)&&"html"===e.type&&oE.startWithPragma(e.value)?null:void 0)},hasPrettierIgnore:function(e){const t=+e.getName();return 0!==t&&"next"===KE(e.getParentNode().children[t-1])},insertPragma:oE.insertPragma},XE={proseWrap:Qc.proseWrap,singleQuote:Qc.singleQuote},QE="Markdown",ZE="prose",ew=["pandoc"],tw="markdown",nw="text/x-gfm",rw=[".md",".markdown",".mdown",".mdwn",".mdx",".mkd",".mkdn",".mkdown",".ronn",".workbook"],ow=["contents.lr"],iw="source.gfm",sw={name:QE,type:ZE,aliases:ew,aceMode:tw,codemirrorMode:"gfm",codemirrorMimeType:nw,wrap:true,extensions:rw,filenames:ow,tmScope:iw,languageId:222},aw=st(Object.freeze({__proto__:null,name:QE,type:ZE,aliases:ew,aceMode:tw,codemirrorMode:"gfm",codemirrorMimeType:nw,wrap:true,extensions:rw,filenames:ow,tmScope:iw,languageId:222,default:sw}));var uw={languages:[el(aw,(e=>({since:"1.8.0",parsers:["markdown"],vscodeLanguageIds:["markdown"],filenames:e.filenames.concat(["README"]),extensions:e.extensions.filter((e=>".mdx"!==e))}))),el(aw,(()=>({name:"MDX",since:"1.15.0",parsers:["mdx"],vscodeLanguageIds:["mdx"],filenames:[],extensions:[".mdx"]})))],options:XE,printers:{mdast:GE}};var cw={isPragma:function(e){return/^\s*@(prettier|format)\s*$/.test(e)},hasPragma:function(e){return/^\s*#[^\n\S]*@(prettier|format)\s*?(\n|$)/.test(e)},insertPragma:function(e){return"# @format\n\n".concat(e)}};const{getLast:lw}=ms;function fw(e,t){return e&&"string"==typeof e.type&&(!t||t.includes(e.type))}function pw(e){return"prettier-ignore"===e.value.trim()}function hw(e){return e&&e.leadingComments&&0!==e.leadingComments.length}function dw(e){return e&&e.middleComments&&0!==e.middleComments.length}function mw(e){return e&&e.indicatorComment}function gw(e){return e&&e.trailingComment}function yw(e){return e&&e.endComments&&0!==e.endComments.length}function bw(e){const t=[];let n;for(const r of e.split(/( +)/g))" "!==r?" "===n?t.push(r):t.push((t.pop()||"")+r):void 0===n&&t.unshift(""),n=r;return" "===n&&t.push((t.pop()||"")+" "),""===t[0]&&(t.shift(),t.unshift(" "+(t.shift()||""))),t}var vw={getLast:lw,getAncestorCount:function(e,t){let n=0;const r=e.stack.length-1;for(let o=0;o<r;o++){const r=e.stack[o];fw(r)&&t(r)&&n++}return n},isNode:fw,isEmptyNode:function(e){return!(e.children&&0!==e.children.length||function(e){return hw(e)||dw(e)||mw(e)||gw(e)||yw(e)}(e))},mapNode:function e(t,n,r){return n("children"in t?Object.assign({},t,{children:t.children.map((r=>e(r,n,t)))}):t,r)},defineShortcut:function(e,t,n){Object.defineProperty(e,t,{get:n,enumerable:!1})},isNextLineEmpty:function(e,t){let n=0;const r=t.length;for(let o=e.position.end.offset-1;o<r;o++){const e=t[o];if("\n"===e&&n++,1===n&&/\S/.test(e))return!1;if(2===n)return!0}return!1},isLastDescendantNode:function(e){switch(e.getValue().type){case"tag":case"anchor":case"comment":return!1}const t=e.stack.length;for(let n=1;n<t;n++){const t=e.stack[n],r=e.stack[n-1];if(Array.isArray(r)&&"number"==typeof t&&t!==r.length-1)return!1}return!0},getBlockValueLineContents:function(e,{parentIndent:t,isLastDescendant:n,options:r}){const o=e.position.start.line===e.position.end.line?"":r.originalText.slice(e.position.start.offset,e.position.end.offset).match(/^[^\n]*?\n([\s\S]*)$/)[1],i=null===e.indent?(s=o.match(/^( *)\S/m))?s[1].length:1/0:e.indent-1+t;var s;const a=o.split("\n").map((e=>e.slice(i)));return"preserve"===r.proseWrap||"blockLiteral"===e.type?u(a.map((e=>0===e.length?[]:[e]))):u(a.map((e=>0===e.length?[]:bw(e))).reduce(((e,t,n)=>0===n||0===a[n-1].length||0===t.length||/^\s/.test(t[0])||/^\s|\s$/.test(lw(e))?e.concat([t]):e.concat([e.pop().concat(t)])),[]).map((e=>e.reduce(((e,t)=>0!==e.length&&/\s$/.test(lw(e))?e.concat(e.pop()+" "+t):e.concat(t)),[]))).map((e=>"never"===r.proseWrap?[e.join(" ")]:e)));function u(t){if("keep"===e.chomping)return 0===lw(t).length?t.slice(0,-1):t;let r=0;for(let e=t.length-1;e>=0&&0===t[e].length;e--)r++;return 0===r?t:r>=2&&!n?t.slice(0,-(r-1)):t.slice(0,-r)}},getFlowScalarLineContents:function(e,t,n){const r=t.split("\n").map(((e,t,n)=>0===t&&t===n.length-1?e:0!==t&&t!==n.length-1?e.trim():0===t?e.trimEnd():e.trimStart()));return"preserve"===n.proseWrap?r.map((e=>0===e.length?[]:[e])):r.map((e=>0===e.length?[]:bw(e))).reduce(((t,n,o)=>0===o||0===r[o-1].length||0===n.length||"quoteDouble"===e&&lw(lw(t)).endsWith("\\")?t.concat([n]):t.concat([t.pop().concat(n)])),[]).map((e=>"never"===n.proseWrap?[e.join(" ")]:e))},getLastDescendantNode:function e(t){return"children"in t&&0!==t.children.length?e(lw(t.children)):t},hasPrettierIgnore:function(e){const t=e.getValue();if("documentBody"===t.type){const t=e.getParentNode();return yw(t.head)&&pw(lw(t.head.endComments))}return hw(t)&&pw(lw(t.leadingComments))},hasLeadingComments:hw,hasMiddleComments:dw,hasIndicatorComment:mw,hasTrailingComment:gw,hasEndComments:yw};const{insertPragma:Dw,isPragma:Cw}=cw,{getAncestorCount:Ew,getBlockValueLineContents:ww,getFlowScalarLineContents:Aw,getLast:Sw,getLastDescendantNode:xw,hasLeadingComments:_w,hasMiddleComments:Fw,hasIndicatorComment:Tw,hasTrailingComment:kw,hasEndComments:Nw,hasPrettierIgnore:Ow,isLastDescendantNode:Lw,isNextLineEmpty:Mw,isNode:Pw,isEmptyNode:Iw,defineShortcut:Bw,mapNode:Rw}=vw,jw=Rs.builders,{conditionalGroup:Vw,breakParent:$w,concat:Uw,dedent:Ww,dedentToRoot:Kw,fill:qw,group:Hw,hardline:zw,ifBreak:Yw,join:Jw,line:Gw,lineSuffix:Xw,literalline:Qw,markAsRoot:Zw,softline:eA}=jw,{replaceEndOfLineWith:tA}=ms;function nA(e){switch(e.type){case"document":Bw(e,"head",(()=>e.children[0])),Bw(e,"body",(()=>e.children[1]));break;case"documentBody":case"sequenceItem":case"flowSequenceItem":case"mappingKey":case"mappingValue":Bw(e,"content",(()=>e.children[0]));break;case"mappingItem":case"flowMappingItem":Bw(e,"key",(()=>e.children[0])),Bw(e,"value",(()=>e.children[1]))}return e}function rA(e,t,n,r,o){switch(e.type){case"root":return Uw([Jw(zw,n.map(((t,r)=>{const i=e.children[r],s=e.children[r+1];return Uw([o(t),aA(i,s)?Uw([zw,"...",kw(i)?Uw([" ",n.call(o,"trailingComment")]):""]):!s||kw(s.head)?"":Uw([zw,"---"])])}),"children")),0===e.children.length||(s=xw(e),Pw(s,["blockLiteral","blockFolded"])&&"keep"===s.chomping)?"":zw]);case"document":{const i=t.children[n.getName()+1];return Jw(zw,["head"===uA(e,i,t,r)?Jw(zw,[0===e.head.children.length&&0===e.head.endComments.length?"":n.call(o,"head"),Uw(["---",kw(e.head)?Uw([" ",n.call(o,"head","trailingComment")]):""])].filter(Boolean)):"",sA(e)?n.call(o,"body"):""].filter(Boolean))}case"documentHead":return Jw(zw,[].concat(n.map(o,"children"),n.map(o,"endComments")));case"documentBody":{const t=Jw(zw,n.map(o,"children")).parts,r=Jw(zw,n.map(o,"endComments")).parts,i=0===t.length||0===r.length?"":(e=>Pw(e,["blockFolded","blockLiteral"])?"keep"===e.chomping?"":Uw([zw,zw]):zw)(xw(e));return Uw([].concat(t,i,r))}case"directive":return Uw(["%",Jw(" ",[e.name].concat(e.parameters))]);case"comment":return Uw(["#",e.value]);case"alias":return Uw(["*",e.value]);case"tag":return r.originalText.slice(e.position.start.offset,e.position.end.offset);case"anchor":return Uw(["&",e.value]);case"plain":return pA(e.type,r.originalText.slice(e.position.start.offset,e.position.end.offset),r);case"quoteDouble":case"quoteSingle":{const t="'",n='"',o=r.originalText.slice(e.position.start.offset+1,e.position.end.offset-1);if("quoteSingle"===e.type&&o.includes("\\")||"quoteDouble"===e.type&&/\\[^"]/.test(o)){const i="quoteDouble"===e.type?n:t;return Uw([i,pA(e.type,o,r),i])}if(o.includes(n))return Uw([t,pA(e.type,"quoteDouble"===e.type?o.replace(/\\"/g,n).replace(/'/g,t.repeat(2)):o,r),t]);if(o.includes(t))return Uw([n,pA(e.type,"quoteSingle"===e.type?o.replace(/''/g,t):o,r),n]);const i=r.singleQuote?t:n;return Uw([i,pA(e.type,o,r),i])}case"blockFolded":case"blockLiteral":{const t=Ew(n,(e=>Pw(e,["sequence","mapping"]))),i=Lw(n);return Uw(["blockFolded"===e.type?">":"|",null===e.indent?"":e.indent.toString(),"clip"===e.chomping?"":"keep"===e.chomping?"+":"-",Tw(e)?Uw([" ",n.call(o,"indicatorComment")]):"",(null===e.indent?Ww:Kw)(oA(null===e.indent?r.tabWidth:e.indent-1+t,Uw(ww(e,{parentIndent:t,isLastDescendant:i,options:r}).reduce(((t,n,r,o)=>t.concat(0===r?zw:"",qw(Jw(Gw,n).parts),r!==o.length-1?0===n.length?zw:Zw(Qw):"keep"===e.chomping&&i?0===n.length?Kw(zw):Kw(Qw):"")),[]))))])}case"sequence":return Jw(zw,n.map(o,"children"));case"sequenceItem":return Uw(["- ",oA(2,e.content?n.call(o,"content"):"")]);case"mappingKey":case"mappingValue":return e.content?n.call(o,"content"):"";case"mapping":return Jw(zw,n.map(o,"children"));case"mappingItem":case"flowMappingItem":{const i=Iw(e.key),s=Iw(e.value);if(i&&s)return Uw([": "]);const u=n.call(o,"key"),c=n.call(o,"value");if(s)return"flowMappingItem"===e.type&&"flowMapping"===t.type?u:"mappingItem"!==e.type||!cA(e.key.content,r)||kw(e.key.content)||t.tag&&"tag:yaml.org,2002:set"===t.tag.value?Uw(["? ",oA(2,u)]):Uw([u,lA(e)?" ":"",":"]);if(i)return Uw([": ",oA(2,c)]);const l=Symbol("mappingKey");return _w(e.value)||!iA(e.key.content)?Uw(["? ",oA(2,u),zw,Jw("",n.map(o,"value","leadingComments").map((e=>Uw([e,zw])))),": ",oA(2,c)]):!function(e){if(!e)return!0;switch(e.type){case"plain":case"quoteDouble":case"quoteSingle":return e.position.start.line===e.position.end.line;case"alias":return!0;default:return!1}}(e.key.content)||_w(e.key.content)||Fw(e.key.content)||kw(e.key.content)||Nw(e.key)||_w(e.value.content)||Fw(e.value.content)||Nw(e.value)||!cA(e.value.content,r)?Vw([Uw([Hw(Uw([Yw("? "),Hw(oA(2,u),{id:l})])),Yw(Uw([zw,": ",oA(2,c)]),a(Uw([lA(e)?" ":"",":",_w(e.value.content)||Nw(e.value)&&e.value.content&&!Pw(e.value.content,["mapping","sequence"])||"mapping"===t.type&&kw(e.key.content)&&iA(e.value.content)||Pw(e.value.content,["mapping","sequence"])&&null===e.value.content.tag&&null===e.value.content.anchor?zw:e.value.content?Gw:"",c])),{groupId:l})])]):Uw([u,lA(e)?" ":"",": ",c])}case"flowMapping":case"flowSequence":{const t="flowMapping"===e.type?"{":"[",s="flowMapping"===e.type?"}":"]",u="flowMapping"===e.type&&0!==e.children.length&&r.bracketSpacing?Gw:eA,c=0!==e.children.length&&"flowMappingItem"===(i=Sw(e.children)).type&&Iw(i.key)&&Iw(i.value);return Uw([t,a(Uw([u,Uw(n.map(((t,n)=>Uw([o(t),n===e.children.length-1?"":Uw([",",Gw,e.children[n].position.start.line!==e.children[n+1].position.start.line?fA(t,r.originalText):""])])),"children")),Yw(",","")])),c?"":u,s])}case"flowSequenceItem":return n.call(o,"content");default:throw new Error("Unexpected node type ".concat(e.type))}var i,s;function a(e){return jw.align(" ".repeat(r.tabWidth),e)}}function oA(e,t){return"number"==typeof e&&e>0?jw.align(" ".repeat(e),t):jw.align(e,t)}function iA(e){if(!e)return!0;switch(e.type){case"plain":case"quoteDouble":case"quoteSingle":case"alias":case"flowMapping":case"flowSequence":return!0;default:return!1}}function sA(e){return 0!==e.body.children.length||Nw(e.body)}function aA(e,t){return kw(e)||t&&(0!==t.head.children.length||Nw(t.head))}function uA(e,t,n,r){return n.children[0]===e&&/---(\s|$)/.test(r.originalText.slice(r.locStart(e),r.locStart(e)+4))||0!==e.head.children.length||Nw(e.head)||kw(e.head)?"head":!aA(e,t)&&!!t&&"root"}function cA(e,t){if(!e)return!0;switch(e.type){case"plain":case"quoteSingle":case"quoteDouble":break;case"alias":return!0;default:return!1}if("preserve"===t.proseWrap)return e.position.start.line===e.position.end.line;if(/\\$/m.test(t.originalText.slice(e.position.start.offset,e.position.end.offset)))return!1;switch(t.proseWrap){case"never":return!e.value.includes("\n");case"always":return!/[\n ]/.test(e.value);default:return!1}}function lA(e){return e.key.content&&"alias"===e.key.content.type}function fA(e,t){const n=e.getValue(),r=e.stack[0];return r.isNextEmptyLinePrintedChecklist=r.isNextEmptyLinePrintedChecklist||[],!r.isNextEmptyLinePrintedChecklist[n.position.end.line]&&Mw(n,t)?(r.isNextEmptyLinePrintedChecklist[n.position.end.line]=!0,eA):""}function pA(e,t,n){const r=Aw(e,t,n);return Jw(zw,r.map((e=>qw(Jw(Gw,e).parts))))}var hA={preprocess:function(e){return Rw(e,nA)},print:function(e,t,n){const r=e.getValue(),o=e.getParentNode(),i=r.tag?e.call(n,"tag"):"",s=r.anchor?e.call(n,"anchor"):"",a=Pw(r,["mapping","sequence","comment","directive","mappingItem","sequenceItem"])&&!Lw(e)?fA(e,t.originalText):"";return Uw(["mappingValue"!==r.type&&_w(r)?Uw([Jw(zw,e.map(n,"leadingComments")),zw]):"",i,i&&s?" ":"",s,i||s?Pw(r,["sequence","mapping"])&&!Fw(r)?zw:" ":"",Fw(r)?Uw([1===r.middleComments.length?"":zw,Jw(zw,e.map(n,"middleComments")),zw]):"",Ow(e)?Uw(tA(t.originalText.slice(r.position.start.offset,r.position.end.offset),Qw)):Hw(rA(r,o,e,t,n)),kw(r)&&!Pw(r,["document","documentHead"])?Xw(Uw(["mappingValue"!==r.type||r.content?" ":"","mappingKey"===o.type&&"mapping"===e.getParentNode(2).type&&iA(r)?"":$w,e.call(n,"trailingComment")])):"",a,Nw(r)&&!Pw(r,["documentHead","documentBody"])?oA("sequenceItem"===r.type?2:0,Uw([zw,Jw(zw,e.map(n,"endComments"))])):""])},massageAstNode:function(e,t){if(Pw(t))switch(delete t.position,t.type){case"comment":if(Cw(t.value))return null;break;case"quoteDouble":case"quoteSingle":t.type="quote"}},insertPragma:Dw},dA={bracketSpacing:Qc.bracketSpacing,singleQuote:Qc.singleQuote,proseWrap:Qc.proseWrap},mA="YAML",gA="data",yA="source.yaml",bA=["yml"],vA=[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml.mysql"],DA=[".clang-format",".clang-tidy",".gemrc","glide.lock","yarn.lock"],CA="yaml",EA="yaml",wA="text/x-yaml",AA={name:mA,type:gA,tmScope:yA,aliases:bA,extensions:vA,filenames:DA,aceMode:CA,codemirrorMode:EA,codemirrorMimeType:wA,languageId:407},SA={languages:[el(st(Object.freeze({__proto__:null,name:mA,type:gA,tmScope:yA,aliases:bA,extensions:vA,filenames:DA,aceMode:CA,codemirrorMode:EA,codemirrorMimeType:wA,languageId:407,default:AA})),(e=>({since:"1.14.0",parsers:["yaml"],vscodeLanguageIds:["yaml"],filenames:e.filenames.filter((e=>"yarn.lock"!==e))})))],printers:{yaml:hA},options:dA};const{version:xA}=dn,{getSupportInfo:_A}=Dn,FA=[Il,uf,Qf,zm,RC,uw,SA];function TA(e,t=1){return(...n)=>{const r=n[t]||{},o=r.plugins||[];return n[t]=Object.assign({},r,{plugins:[...FA,...Array.isArray(o)?o:Object.values(o)]}),e(...n)}}const kA=TA(iu.formatWithCursor);return{formatWithCursor:kA,format:(e,t)=>kA(e,t).formatted,check(e,t){const{formatted:n}=kA(e,t);return n===e},doc:Rs,getSupportInfo:TA(_A,0),version:xA,util:ua,__debug:{parse:TA(iu.parse),formatAST:TA(iu.formatAST),formatDoc:TA(iu.formatDoc),printToDoc:TA(iu.printToDoc),printDocToString:TA(iu.printDocToString)}}}()},6470:function(e){"use strict";function t(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,r="",o=0,i=-1,s=0,a=0;a<=e.length;++a){if(a<e.length)n=e.charCodeAt(a);else{if(47===n)break;n=47}if(47===n){if(i===a-1||1===s);else if(i!==a-1&&2===s){if(r.length<2||2!==o||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2))if(r.length>2){var u=r.lastIndexOf("/");if(u!==r.length-1){-1===u?(r="",o=0):o=(r=r.slice(0,u)).length-1-r.lastIndexOf("/"),i=a,s=0;continue}}else if(2===r.length||1===r.length){r="",o=0,i=a,s=0;continue}t&&(r.length>0?r+="/..":r="..",o=2)}else r.length>0?r+="/"+e.slice(i+1,a):r=e.slice(i+1,a),o=a-i-1;i=a,s=0}else 46===n&&-1!==s?++s:s=-1}return r}var r={resolve:function(){for(var e,r="",o=!1,i=arguments.length-1;i>=-1&&!o;i--){var s;i>=0?s=arguments[i]:(void 0===e&&(e=process.cwd()),s=e),t(s),0!==s.length&&(r=s+"/"+r,o=47===s.charCodeAt(0))}return r=n(r,!o),o?r.length>0?"/"+r:"/":r.length>0?r:"."},normalize:function(e){if(t(e),0===e.length)return".";var r=47===e.charCodeAt(0),o=47===e.charCodeAt(e.length-1);return 0!==(e=n(e,!r)).length||r||(e="."),e.length>0&&o&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,n=0;n<arguments.length;++n){var o=arguments[n];t(o),o.length>0&&(void 0===e?e=o:e+="/"+o)}return void 0===e?".":r.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n)return"";if((e=r.resolve(e))===(n=r.resolve(n)))return"";for(var o=1;o<e.length&&47===e.charCodeAt(o);++o);for(var i=e.length,s=i-o,a=1;a<n.length&&47===n.charCodeAt(a);++a);for(var u=n.length-a,c=s<u?s:u,l=-1,f=0;f<=c;++f){if(f===c){if(u>c){if(47===n.charCodeAt(a+f))return n.slice(a+f+1);if(0===f)return n.slice(a+f)}else s>c&&(47===e.charCodeAt(o+f)?l=f:0===f&&(l=0));break}var p=e.charCodeAt(o+f);if(p!==n.charCodeAt(a+f))break;47===p&&(l=f)}var h="";for(f=o+l+1;f<=i;++f)f!==i&&47!==e.charCodeAt(f)||(0===h.length?h+="..":h+="/..");return h.length>0?h+n.slice(a+l):(a+=l,47===n.charCodeAt(a)&&++a,n.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),r=47===n,o=-1,i=!0,s=e.length-1;s>=1;--s)if(47===(n=e.charCodeAt(s))){if(!i){o=s;break}}else i=!1;return-1===o?r?"/":".":r&&1===o?"//":e.slice(0,o)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');t(e);var r,o=0,i=-1,s=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var a=n.length-1,u=-1;for(r=e.length-1;r>=0;--r){var c=e.charCodeAt(r);if(47===c){if(!s){o=r+1;break}}else-1===u&&(s=!1,u=r+1),a>=0&&(c===n.charCodeAt(a)?-1==--a&&(i=r):(a=-1,i=u))}return o===i?i=u:-1===i&&(i=e.length),e.slice(o,i)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!s){o=r+1;break}}else-1===i&&(s=!1,i=r+1);return-1===i?"":e.slice(o,i)},extname:function(e){t(e);for(var n=-1,r=0,o=-1,i=!0,s=0,a=e.length-1;a>=0;--a){var u=e.charCodeAt(a);if(47!==u)-1===o&&(i=!1,o=a+1),46===u?-1===n?n=a:1!==s&&(s=1):-1!==n&&(s=-1);else if(!i){r=a+1;break}}return-1===n||-1===o||0===s||1===s&&n===o-1&&n===r+1?"":e.slice(n,o)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+"/"+r:r}(0,e)},parse:function(e){t(e);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;var r,o=e.charCodeAt(0),i=47===o;i?(n.root="/",r=1):r=0;for(var s=-1,a=0,u=-1,c=!0,l=e.length-1,f=0;l>=r;--l)if(47!==(o=e.charCodeAt(l)))-1===u&&(c=!1,u=l+1),46===o?-1===s?s=l:1!==f&&(f=1):-1!==s&&(f=-1);else if(!c){a=l+1;break}return-1===s||-1===u||0===f||1===f&&s===u-1&&s===a+1?-1!==u&&(n.base=n.name=0===a&&i?e.slice(1,u):e.slice(a,u)):(0===a&&i?(n.name=e.slice(1,s),n.base=e.slice(1,u)):(n.name=e.slice(a,s),n.base=e.slice(a,u)),n.ext=e.slice(s,u)),a>0?n.dir=e.slice(0,a-1):i&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};r.posix=r,e.exports=r}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return n[e].call(i.exports,i,i.exports,o),i.exports}t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);o.r(i);var s={};e=e||[null,t({}),t([]),t(t)];for(var a=2&r&&n;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((function(e){s[e]=function(){return n[e]}}));return s.default=function(){return n},o.d(i,s),i},o.d=function(e,t){for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){"use strict";var e,t,n=o(9788);class r{constructor(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){const t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(e,t){for(let t of e)if(r.isIncremental(t)){const e=a(t.range),n=this.offsetAt(e.start),r=this.offsetAt(e.end);this._content=this._content.substring(0,n)+t.text+this._content.substring(r,this._content.length);const o=Math.max(e.start.line,0),i=Math.max(e.end.line,0);let u=this._lineOffsets;const c=s(t.text,!1,n);if(i-o===c.length)for(let e=0,t=c.length;e<t;e++)u[e+o+1]=c[e];else c.length<1e4?u.splice(o+1,i-o,...c):this._lineOffsets=u=u.slice(0,o+1).concat(c,u.slice(i+1));const l=t.text.length-(r-n);if(0!==l)for(let e=o+1+c.length,t=u.length;e<t;e++)u[e]=u[e]+l}else{if(!r.isFull(t))throw new Error("Unknown change event received");this._content=t.text,this._lineOffsets=void 0}this._version=t}getLineOffsets(){return void 0===this._lineOffsets&&(this._lineOffsets=s(this._content,!0)),this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return{line:0,character:e};for(;n<r;){let o=Math.floor((n+r)/2);t[o]>e?r=o:n=o+1}let o=n-1;return{line:o,character:e-t[o]}}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let n=t[e.line],r=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,r),n)}get lineCount(){return this.getLineOffsets().length}static isIncremental(e){let t=e;return null!=t&&"string"==typeof t.text&&void 0!==t.range&&(void 0===t.rangeLength||"number"==typeof t.rangeLength)}static isFull(e){let t=e;return null!=t&&"string"==typeof t.text&&void 0===t.range&&void 0===t.rangeLength}}function i(e,t){if(e.length<=1)return e;const n=e.length/2|0,r=e.slice(0,n),o=e.slice(n);i(r,t),i(o,t);let s=0,a=0,u=0;for(;s<r.length&&a<o.length;){let n=t(r[s],o[a]);e[u++]=n<=0?r[s++]:o[a++]}for(;s<r.length;)e[u++]=r[s++];for(;a<o.length;)e[u++]=o[a++];return e}function s(e,t,n=0){const r=t?[n]:[];for(let t=0;t<e.length;t++){let o=e.charCodeAt(t);13!==o&&10!==o||(13===o&&t+1<e.length&&10===e.charCodeAt(t+1)&&t++,r.push(n+t+1))}return r}function a(e){const t=e.start,n=e.end;return t.line>n.line||t.line===n.line&&t.character>n.character?{start:n,end:t}:e}function u(e){const t=a(e.range);return t!==e.range?{newText:e.newText,range:t}:e}function c(e,t){void 0===t&&(t=!1);var n=e.length,r=0,o="",i=0,s=16,a=0,u=0,c=0,h=0,d=0;function m(t,n){for(var o=0,i=0;o<t||!n;){var s=e.charCodeAt(r);if(s>=48&&s<=57)i=16*i+s-48;else if(s>=65&&s<=70)i=16*i+s-65+10;else{if(!(s>=97&&s<=102))break;i=16*i+s-97+10}r++,o++}return o<t&&(i=-1),i}function g(){if(o="",d=0,i=r,u=a,h=c,r>=n)return i=n,s=17;var t=e.charCodeAt(r);if(l(t)){do{r++,o+=String.fromCharCode(t),t=e.charCodeAt(r)}while(l(t));return s=15}if(f(t))return r++,o+=String.fromCharCode(t),13===t&&10===e.charCodeAt(r)&&(r++,o+="\n"),a++,c=r,s=14;switch(t){case 123:return r++,s=1;case 125:return r++,s=2;case 91:return r++,s=3;case 93:return r++,s=4;case 58:return r++,s=6;case 44:return r++,s=5;case 34:return r++,o=function(){for(var t="",o=r;;){if(r>=n){t+=e.substring(o,r),d=2;break}var i=e.charCodeAt(r);if(34===i){t+=e.substring(o,r),r++;break}if(92!==i){if(i>=0&&i<=31){if(f(i)){t+=e.substring(o,r),d=2;break}d=6}r++}else{if(t+=e.substring(o,r),++r>=n){d=2;break}switch(e.charCodeAt(r++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:var s=m(4,!0);s>=0?t+=String.fromCharCode(s):d=4;break;default:d=5}o=r}}return t}(),s=10;case 47:var g=r-1;if(47===e.charCodeAt(r+1)){for(r+=2;r<n&&!f(e.charCodeAt(r));)r++;return o=e.substring(g,r),s=12}if(42===e.charCodeAt(r+1)){r+=2;for(var b=n-1,v=!1;r<b;){var D=e.charCodeAt(r);if(42===D&&47===e.charCodeAt(r+1)){r+=2,v=!0;break}r++,f(D)&&(13===D&&10===e.charCodeAt(r)&&r++,a++,c=r)}return v||(r++,d=1),o=e.substring(g,r),s=13}return o+=String.fromCharCode(t),r++,s=16;case 45:if(o+=String.fromCharCode(t),++r===n||!p(e.charCodeAt(r)))return s=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return o+=function(){var t=r;if(48===e.charCodeAt(r))r++;else for(r++;r<e.length&&p(e.charCodeAt(r));)r++;if(r<e.length&&46===e.charCodeAt(r)){if(!(++r<e.length&&p(e.charCodeAt(r))))return d=3,e.substring(t,r);for(r++;r<e.length&&p(e.charCodeAt(r));)r++}var n=r;if(r<e.length&&(69===e.charCodeAt(r)||101===e.charCodeAt(r)))if((++r<e.length&&43===e.charCodeAt(r)||45===e.charCodeAt(r))&&r++,r<e.length&&p(e.charCodeAt(r))){for(r++;r<e.length&&p(e.charCodeAt(r));)r++;n=r}else d=3;return e.substring(t,n)}(),s=11;default:for(;r<n&&y(t);)r++,t=e.charCodeAt(r);if(i!==r){switch(o=e.substring(i,r)){case"true":return s=8;case"false":return s=9;case"null":return s=7}return s=16}return o+=String.fromCharCode(t),r++,s=16}}function y(e){if(l(e)||f(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(e){r=e,o="",i=0,s=16,d=0},getPosition:function(){return r},scan:t?function(){var e;do{e=g()}while(e>=12&&e<=15);return e}:g,getToken:function(){return s},getTokenValue:function(){return o},getTokenOffset:function(){return i},getTokenLength:function(){return r-i},getTokenStartLine:function(){return u},getTokenStartCharacter:function(){return i-h},getTokenError:function(){return d}}}function l(e){return 32===e||9===e||11===e||12===e||160===e||5760===e||e>=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function f(e){return 10===e||13===e||8232===e||8233===e}function p(e){return e>=48&&e<=57}!function(e){e.create=function(e,t,n,o){return new r(e,t,n,o)},e.update=function(e,t,n){if(e instanceof r)return e.update(t,n),e;throw new Error("TextDocument.update: document must be created by TextDocument.create")},e.applyEdits=function(e,t){let n=e.getText(),r=i(t.map(u),((e,t)=>{let n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),o=0;const s=[];for(const t of r){let r=e.offsetAt(t.range.start);if(r<o)throw new Error("Overlapping edit");r>o&&s.push(n.substring(o,r)),t.newText.length&&s.push(t.newText),o=e.offsetAt(t.range.end)}return s.push(n.substr(o)),s.join("")}}(e||(e={})),function(e){e.DEFAULT={allowTrailingComma:!1}}(t||(t={}));var h,d=c,m=function(e,n,r){void 0===n&&(n=[]),void 0===r&&(r=t.DEFAULT);var o=null,i=[],s=[];function a(e){Array.isArray(i)?i.push(e):null!==o&&(i[o]=e)}return function(e,n,r){void 0===r&&(r=t.DEFAULT);var o=c(e,!1);function i(e){return e?function(){return e(o.getTokenOffset(),o.getTokenLength(),o.getTokenStartLine(),o.getTokenStartCharacter())}:function(){return!0}}function s(e){return e?function(t){return e(t,o.getTokenOffset(),o.getTokenLength(),o.getTokenStartLine(),o.getTokenStartCharacter())}:function(){return!0}}var a=i(n.onObjectBegin),u=s(n.onObjectProperty),l=i(n.onObjectEnd),f=i(n.onArrayBegin),p=i(n.onArrayEnd),h=s(n.onLiteralValue),d=s(n.onSeparator),m=i(n.onComment),g=s(n.onError),y=r&&r.disallowComments,b=r&&r.allowTrailingComma;function v(){for(;;){var e=o.scan();switch(o.getTokenError()){case 4:D(14);break;case 5:D(15);break;case 3:D(13);break;case 1:y||D(11);break;case 2:D(12);break;case 6:D(16)}switch(e){case 12:case 13:y?D(10):m();break;case 16:D(1);break;case 15:case 14:break;default:return e}}}function D(e,t,n){if(void 0===t&&(t=[]),void 0===n&&(n=[]),g(e),t.length+n.length>0)for(var r=o.getToken();17!==r;){if(-1!==t.indexOf(r)){v();break}if(-1!==n.indexOf(r))break;r=v()}}function C(e){var t=o.getTokenValue();return e?h(t):u(t),v(),!0}v(),17===o.getToken()?!!r.allowEmptyContent||D(4,[],[]):function e(){switch(o.getToken()){case 3:return function(){f(),v();for(var t=!1;4!==o.getToken()&&17!==o.getToken();){if(5===o.getToken()){if(t||D(4,[],[]),d(","),v(),4===o.getToken()&&b)break}else t&&D(6,[],[]);e()||D(4,[],[4,5]),t=!0}return p(),4!==o.getToken()?D(8,[4],[]):v(),!0}();case 1:return function(){a(),v();for(var t=!1;2!==o.getToken()&&17!==o.getToken();){if(5===o.getToken()){if(t||D(4,[],[]),d(","),v(),2===o.getToken()&&b)break}else t&&D(6,[],[]);(10!==o.getToken()?(D(3,[],[2,5]),0):(C(!1),6===o.getToken()?(d(":"),v(),e()||D(4,[],[2,5])):D(5,[],[2,5]),1))||D(4,[],[2,5]),t=!0}return l(),2!==o.getToken()?D(7,[2],[]):v(),!0}();case 10:return C(!0);default:return function(){switch(o.getToken()){case 11:var e=o.getTokenValue(),t=Number(e);isNaN(t)&&(D(2),t=0),h(t);break;case 7:h(null);break;case 8:h(!0);break;case 9:h(!1);break;default:return!1}return v(),!0}()}}()?17!==o.getToken()&&D(9,[],[]):D(4,[],[])}(e,{onObjectBegin:function(){var e={};a(e),s.push(i),i=e,o=null},onObjectProperty:function(e){o=e},onObjectEnd:function(){i=s.pop()},onArrayBegin:function(){var e=[];a(e),s.push(i),i=e,o=null},onArrayEnd:function(){i=s.pop()},onLiteralValue:a,onError:function(e,t,r){n.push({error:e,offset:t,length:r})}},r),i[0]},g=function e(t,n,r){if(void 0===r&&(r=!1),function(e,t,n){return void 0===n&&(n=!1),t>=e.offset&&t<e.offset+e.length||n&&t===e.offset+e.length}(t,n,r)){var o=t.children;if(Array.isArray(o))for(var i=0;i<o.length&&o[i].offset<=n;i++){var s=e(o[i],n,r);if(s)return s}return t}},y=function e(t){if(!t.parent||!t.parent.children)return[];var n=e(t.parent);if("property"===t.parent.type){var r=t.parent.children[0].value;n.push(r)}else if("array"===t.parent.type){var o=t.parent.children.indexOf(t);-1!==o&&n.push(o)}return n},b=function e(t){switch(t.type){case"array":return t.children.map(e);case"object":for(var n=Object.create(null),r=0,o=t.children;r<o.length;r++){var i=o[r],s=i.children[1];s&&(n[i.children[0].value]=e(s))}return n;case"null":case"string":case"number":case"boolean":return t.value;default:return}};h=(()=>{var e={470:e=>{function t(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,r="",o=0,i=-1,s=0,a=0;a<=e.length;++a){if(a<e.length)n=e.charCodeAt(a);else{if(47===n)break;n=47}if(47===n){if(i===a-1||1===s);else if(i!==a-1&&2===s){if(r.length<2||2!==o||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2))if(r.length>2){var u=r.lastIndexOf("/");if(u!==r.length-1){-1===u?(r="",o=0):o=(r=r.slice(0,u)).length-1-r.lastIndexOf("/"),i=a,s=0;continue}}else if(2===r.length||1===r.length){r="",o=0,i=a,s=0;continue}t&&(r.length>0?r+="/..":r="..",o=2)}else r.length>0?r+="/"+e.slice(i+1,a):r=e.slice(i+1,a),o=a-i-1;i=a,s=0}else 46===n&&-1!==s?++s:s=-1}return r}var r={resolve:function(){for(var e,r="",o=!1,i=arguments.length-1;i>=-1&&!o;i--){var s;i>=0?s=arguments[i]:(void 0===e&&(e=process.cwd()),s=e),t(s),0!==s.length&&(r=s+"/"+r,o=47===s.charCodeAt(0))}return r=n(r,!o),o?r.length>0?"/"+r:"/":r.length>0?r:"."},normalize:function(e){if(t(e),0===e.length)return".";var r=47===e.charCodeAt(0),o=47===e.charCodeAt(e.length-1);return 0!==(e=n(e,!r)).length||r||(e="."),e.length>0&&o&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,n=0;n<arguments.length;++n){var o=arguments[n];t(o),o.length>0&&(void 0===e?e=o:e+="/"+o)}return void 0===e?".":r.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n)return"";if((e=r.resolve(e))===(n=r.resolve(n)))return"";for(var o=1;o<e.length&&47===e.charCodeAt(o);++o);for(var i=e.length,s=i-o,a=1;a<n.length&&47===n.charCodeAt(a);++a);for(var u=n.length-a,c=s<u?s:u,l=-1,f=0;f<=c;++f){if(f===c){if(u>c){if(47===n.charCodeAt(a+f))return n.slice(a+f+1);if(0===f)return n.slice(a+f)}else s>c&&(47===e.charCodeAt(o+f)?l=f:0===f&&(l=0));break}var p=e.charCodeAt(o+f);if(p!==n.charCodeAt(a+f))break;47===p&&(l=f)}var h="";for(f=o+l+1;f<=i;++f)f!==i&&47!==e.charCodeAt(f)||(0===h.length?h+="..":h+="/..");return h.length>0?h+n.slice(a+l):(a+=l,47===n.charCodeAt(a)&&++a,n.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),r=47===n,o=-1,i=!0,s=e.length-1;s>=1;--s)if(47===(n=e.charCodeAt(s))){if(!i){o=s;break}}else i=!1;return-1===o?r?"/":".":r&&1===o?"//":e.slice(0,o)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');t(e);var r,o=0,i=-1,s=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var a=n.length-1,u=-1;for(r=e.length-1;r>=0;--r){var c=e.charCodeAt(r);if(47===c){if(!s){o=r+1;break}}else-1===u&&(s=!1,u=r+1),a>=0&&(c===n.charCodeAt(a)?-1==--a&&(i=r):(a=-1,i=u))}return o===i?i=u:-1===i&&(i=e.length),e.slice(o,i)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!s){o=r+1;break}}else-1===i&&(s=!1,i=r+1);return-1===i?"":e.slice(o,i)},extname:function(e){t(e);for(var n=-1,r=0,o=-1,i=!0,s=0,a=e.length-1;a>=0;--a){var u=e.charCodeAt(a);if(47!==u)-1===o&&(i=!1,o=a+1),46===u?-1===n?n=a:1!==s&&(s=1):-1!==n&&(s=-1);else if(!i){r=a+1;break}}return-1===n||-1===o||0===s||1===s&&n===o-1&&n===r+1?"":e.slice(n,o)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+"/"+r:r}(0,e)},parse:function(e){t(e);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;var r,o=e.charCodeAt(0),i=47===o;i?(n.root="/",r=1):r=0;for(var s=-1,a=0,u=-1,c=!0,l=e.length-1,f=0;l>=r;--l)if(47!==(o=e.charCodeAt(l)))-1===u&&(c=!1,u=l+1),46===o?-1===s?s=l:1!==f&&(f=1):-1!==s&&(f=-1);else if(!c){a=l+1;break}return-1===s||-1===u||0===f||1===f&&s===u-1&&s===a+1?-1!==u&&(n.base=n.name=0===a&&i?e.slice(1,u):e.slice(a,u)):(0===a&&i?(n.name=e.slice(1,s),n.base=e.slice(1,u)):(n.name=e.slice(a,s),n.base=e.slice(a,u)),n.ext=e.slice(s,u)),a>0?n.dir=e.slice(0,a-1):i&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};r.posix=r,e.exports=r},447:(e,t,n)=>{var r;if(n.r(t),n.d(t,{URI:()=>m,Utils:()=>x}),"object"==typeof process)r="win32"===process.platform;else if("object"==typeof navigator){var o=navigator.userAgent;r=o.indexOf("Windows")>=0}var i,s,a=(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=/^\w[\w\d+.-]*$/,c=/^\//,l=/^\/\//;function f(e,t){if(!e.scheme&&t)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'.concat(e.authority,'", path: "').concat(e.path,'", query: "').concat(e.query,'", fragment: "').concat(e.fragment,'"}'));if(e.scheme&&!u.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!c.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(l.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}var p="",h="/",d=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,m=function(){function e(e,t,n,r,o,i){void 0===i&&(i=!1),"object"==typeof e?(this.scheme=e.scheme||p,this.authority=e.authority||p,this.path=e.path||p,this.query=e.query||p,this.fragment=e.fragment||p):(this.scheme=function(e,t){return e||t?e:"file"}(e,i),this.authority=t||p,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==h&&(t=h+t):t=h}return t}(this.scheme,n||p),this.query=r||p,this.fragment=o||p,f(this,i))}return e.isUri=function(t){return t instanceof e||!!t&&"string"==typeof t.authority&&"string"==typeof t.fragment&&"string"==typeof t.path&&"string"==typeof t.query&&"string"==typeof t.scheme&&"string"==typeof t.fsPath&&"function"==typeof t.with&&"function"==typeof t.toString},Object.defineProperty(e.prototype,"fsPath",{get:function(){return C(this,!1)},enumerable:!1,configurable:!0}),e.prototype.with=function(e){if(!e)return this;var t=e.scheme,n=e.authority,r=e.path,o=e.query,i=e.fragment;return void 0===t?t=this.scheme:null===t&&(t=p),void 0===n?n=this.authority:null===n&&(n=p),void 0===r?r=this.path:null===r&&(r=p),void 0===o?o=this.query:null===o&&(o=p),void 0===i?i=this.fragment:null===i&&(i=p),t===this.scheme&&n===this.authority&&r===this.path&&o===this.query&&i===this.fragment?this:new y(t,n,r,o,i)},e.parse=function(e,t){void 0===t&&(t=!1);var n=d.exec(e);return n?new y(n[2]||p,S(n[4]||p),S(n[5]||p),S(n[7]||p),S(n[9]||p),t):new y(p,p,p,p,p)},e.file=function(e){var t=p;if(r&&(e=e.replace(/\\/g,h)),e[0]===h&&e[1]===h){var n=e.indexOf(h,2);-1===n?(t=e.substring(2),e=h):(t=e.substring(2,n),e=e.substring(n)||h)}return new y("file",t,e,p,p)},e.from=function(e){var t=new y(e.scheme,e.authority,e.path,e.query,e.fragment);return f(t,!0),t},e.prototype.toString=function(e){return void 0===e&&(e=!1),E(this,e)},e.prototype.toJSON=function(){return this},e.revive=function(t){if(t){if(t instanceof e)return t;var n=new y(t);return n._formatted=t.external,n._fsPath=t._sep===g?t.fsPath:null,n}return t},e}(),g=r?1:void 0,y=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._formatted=null,t._fsPath=null,t}return a(t,e),Object.defineProperty(t.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=C(this,!1)),this._fsPath},enumerable:!1,configurable:!0}),t.prototype.toString=function(e){return void 0===e&&(e=!1),e?E(this,!0):(this._formatted||(this._formatted=E(this,!1)),this._formatted)},t.prototype.toJSON=function(){var e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=g),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e},t}(m),b=((s={})[58]="%3A",s[47]="%2F",s[63]="%3F",s[35]="%23",s[91]="%5B",s[93]="%5D",s[64]="%40",s[33]="%21",s[36]="%24",s[38]="%26",s[39]="%27",s[40]="%28",s[41]="%29",s[42]="%2A",s[43]="%2B",s[44]="%2C",s[59]="%3B",s[61]="%3D",s[32]="%20",s);function v(e,t){for(var n=void 0,r=-1,o=0;o<e.length;o++){var i=e.charCodeAt(o);if(i>=97&&i<=122||i>=65&&i<=90||i>=48&&i<=57||45===i||46===i||95===i||126===i||t&&47===i)-1!==r&&(n+=encodeURIComponent(e.substring(r,o)),r=-1),void 0!==n&&(n+=e.charAt(o));else{void 0===n&&(n=e.substr(0,o));var s=b[i];void 0!==s?(-1!==r&&(n+=encodeURIComponent(e.substring(r,o)),r=-1),n+=s):-1===r&&(r=o)}}return-1!==r&&(n+=encodeURIComponent(e.substring(r))),void 0!==n?n:e}function D(e){for(var t=void 0,n=0;n<e.length;n++){var r=e.charCodeAt(n);35===r||63===r?(void 0===t&&(t=e.substr(0,n)),t+=b[r]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function C(e,t){var n;return n=e.authority&&e.path.length>1&&"file"===e.scheme?"//".concat(e.authority).concat(e.path):47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,r&&(n=n.replace(/\//g,"\\")),n}function E(e,t){var n=t?D:v,r="",o=e.scheme,i=e.authority,s=e.path,a=e.query,u=e.fragment;if(o&&(r+=o,r+=":"),(i||"file"===o)&&(r+=h,r+=h),i){var c=i.indexOf("@");if(-1!==c){var l=i.substr(0,c);i=i.substr(c+1),-1===(c=l.indexOf(":"))?r+=n(l,!1):(r+=n(l.substr(0,c),!1),r+=":",r+=n(l.substr(c+1),!1)),r+="@"}-1===(c=(i=i.toLowerCase()).indexOf(":"))?r+=n(i,!1):(r+=n(i.substr(0,c),!1),r+=i.substr(c))}if(s){if(s.length>=3&&47===s.charCodeAt(0)&&58===s.charCodeAt(2))(f=s.charCodeAt(1))>=65&&f<=90&&(s="/".concat(String.fromCharCode(f+32),":").concat(s.substr(3)));else if(s.length>=2&&58===s.charCodeAt(1)){var f;(f=s.charCodeAt(0))>=65&&f<=90&&(s="".concat(String.fromCharCode(f+32),":").concat(s.substr(2)))}r+=n(s,!0)}return a&&(r+="?",r+=n(a,!1)),u&&(r+="#",r+=t?u:v(u,!1)),r}function w(e){try{return decodeURIComponent(e)}catch(t){return e.length>3?e.substr(0,3)+w(e.substr(3)):e}}var A=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function S(e){return e.match(A)?e.replace(A,(function(e){return w(e)})):e}var x,_=n(470),F=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},T=_.posix||_;!function(e){e.joinPath=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return e.with({path:T.join.apply(T,F([e.path],t,!1))})},e.resolvePath=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=e.path||"/";return e.with({path:T.resolve.apply(T,F([r],t,!1))})},e.dirname=function(e){var t=T.dirname(e.path);return 1===t.length&&46===t.charCodeAt(0)?e:e.with({path:t})},e.basename=function(e){return T.basename(e.path)},e.extname=function(e){return T.extname(e.path)}}(x||(x={}))}},t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}return n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(447)})();const{URI:v,Utils:D}=h;var C,E,w,A,S,x,_,F,T,k,N,O,L,M,P,I,B,R,j,V,$,U,W,K,q,H;!function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647}(C||(C={})),function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647}(E||(E={})),function(e){e.create=function(e,t){return e===Number.MAX_VALUE&&(e=E.MAX_VALUE),t===Number.MAX_VALUE&&(t=E.MAX_VALUE),{line:e,character:t}},e.is=function(e){var t=e;return xe.objectLiteral(t)&&xe.uinteger(t.line)&&xe.uinteger(t.character)}}(w||(w={})),function(e){e.create=function(e,t,n,r){if(xe.uinteger(e)&&xe.uinteger(t)&&xe.uinteger(n)&&xe.uinteger(r))return{start:w.create(e,t),end:w.create(n,r)};if(w.is(e)&&w.is(t))return{start:e,end:t};throw new Error("Range#create called with invalid arguments["+e+", "+t+", "+n+", "+r+"]")},e.is=function(e){var t=e;return xe.objectLiteral(t)&&w.is(t.start)&&w.is(t.end)}}(A||(A={})),function(e){e.create=function(e,t){return{uri:e,range:t}},e.is=function(e){var t=e;return xe.defined(t)&&A.is(t.range)&&(xe.string(t.uri)||xe.undefined(t.uri))}}(S||(S={})),function(e){e.create=function(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}},e.is=function(e){var t=e;return xe.defined(t)&&A.is(t.targetRange)&&xe.string(t.targetUri)&&(A.is(t.targetSelectionRange)||xe.undefined(t.targetSelectionRange))&&(A.is(t.originSelectionRange)||xe.undefined(t.originSelectionRange))}}(x||(x={})),function(e){e.create=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},e.is=function(e){var t=e;return xe.numberRange(t.red,0,1)&&xe.numberRange(t.green,0,1)&&xe.numberRange(t.blue,0,1)&&xe.numberRange(t.alpha,0,1)}}(_||(_={})),function(e){e.create=function(e,t){return{range:e,color:t}},e.is=function(e){var t=e;return A.is(t.range)&&_.is(t.color)}}(F||(F={})),function(e){e.create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},e.is=function(e){var t=e;return xe.string(t.label)&&(xe.undefined(t.textEdit)||R.is(t))&&(xe.undefined(t.additionalTextEdits)||xe.typedArray(t.additionalTextEdits,R.is))}}(T||(T={})),function(e){e.Comment="comment",e.Imports="imports",e.Region="region"}(k||(k={})),function(e){e.create=function(e,t,n,r,o){var i={startLine:e,endLine:t};return xe.defined(n)&&(i.startCharacter=n),xe.defined(r)&&(i.endCharacter=r),xe.defined(o)&&(i.kind=o),i},e.is=function(e){var t=e;return xe.uinteger(t.startLine)&&xe.uinteger(t.startLine)&&(xe.undefined(t.startCharacter)||xe.uinteger(t.startCharacter))&&(xe.undefined(t.endCharacter)||xe.uinteger(t.endCharacter))&&(xe.undefined(t.kind)||xe.string(t.kind))}}(N||(N={})),function(e){e.create=function(e,t){return{location:e,message:t}},e.is=function(e){var t=e;return xe.defined(t)&&S.is(t.location)&&xe.string(t.message)}}(O||(O={})),function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4}(L||(L={})),function(e){e.Unnecessary=1,e.Deprecated=2}(M||(M={})),function(e){e.is=function(e){var t=e;return null!=t&&xe.string(t.href)}}(P||(P={})),function(e){e.create=function(e,t,n,r,o,i){var s={range:e,message:t};return xe.defined(n)&&(s.severity=n),xe.defined(r)&&(s.code=r),xe.defined(o)&&(s.source=o),xe.defined(i)&&(s.relatedInformation=i),s},e.is=function(e){var t,n=e;return xe.defined(n)&&A.is(n.range)&&xe.string(n.message)&&(xe.number(n.severity)||xe.undefined(n.severity))&&(xe.integer(n.code)||xe.string(n.code)||xe.undefined(n.code))&&(xe.undefined(n.codeDescription)||xe.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(xe.string(n.source)||xe.undefined(n.source))&&(xe.undefined(n.relatedInformation)||xe.typedArray(n.relatedInformation,O.is))}}(I||(I={})),function(e){e.create=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o={title:e,command:t};return xe.defined(n)&&n.length>0&&(o.arguments=n),o},e.is=function(e){var t=e;return xe.defined(t)&&xe.string(t.title)&&xe.string(t.command)}}(B||(B={})),function(e){e.replace=function(e,t){return{range:e,newText:t}},e.insert=function(e,t){return{range:{start:e,end:e},newText:t}},e.del=function(e){return{range:e,newText:""}},e.is=function(e){var t=e;return xe.objectLiteral(t)&&xe.string(t.newText)&&A.is(t.range)}}(R||(R={})),function(e){e.create=function(e,t,n){var r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==n&&(r.description=n),r},e.is=function(e){var t=e;return void 0!==t&&xe.objectLiteral(t)&&xe.string(t.label)&&(xe.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(xe.string(t.description)||void 0===t.description)}}(j||(j={})),function(e){e.is=function(e){return"string"==typeof e}}(V||(V={})),function(e){e.replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},e.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},e.del=function(e,t){return{range:e,newText:"",annotationId:t}},e.is=function(e){var t=e;return R.is(t)&&(j.is(t.annotationId)||V.is(t.annotationId))}}($||($={})),function(e){e.create=function(e,t){return{textDocument:e,edits:t}},e.is=function(e){var t=e;return xe.defined(t)&&J.is(t.textDocument)&&Array.isArray(t.edits)}}(U||(U={})),function(e){e.create=function(e,t,n){var r={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},e.is=function(e){var t=e;return t&&"create"===t.kind&&xe.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||xe.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||xe.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||V.is(t.annotationId))}}(W||(W={})),function(e){e.create=function(e,t,n,r){var o={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(o.options=n),void 0!==r&&(o.annotationId=r),o},e.is=function(e){var t=e;return t&&"rename"===t.kind&&xe.string(t.oldUri)&&xe.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||xe.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||xe.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||V.is(t.annotationId))}}(K||(K={})),function(e){e.create=function(e,t,n){var r={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},e.is=function(e){var t=e;return t&&"delete"===t.kind&&xe.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||xe.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||xe.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||V.is(t.annotationId))}}(q||(q={})),function(e){e.is=function(e){var t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((function(e){return xe.string(e.kind)?W.is(e)||K.is(e)||q.is(e):U.is(e)})))}}(H||(H={}));var z,Y,J,G,X,Q,Z,ee,te,ne,re,oe,ie,se,ae,ue,ce,le,fe,pe,he,de,me,ge,ye,be,ve,De,Ce,Ee,we,Ae=function(){function e(e,t){this.edits=e,this.changeAnnotations=t}return e.prototype.insert=function(e,t,n){var r,o;if(void 0===n?r=R.insert(e,t):V.is(n)?(o=n,r=$.insert(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(n),r=$.insert(e,t,o)),this.edits.push(r),void 0!==o)return o},e.prototype.replace=function(e,t,n){var r,o;if(void 0===n?r=R.replace(e,t):V.is(n)?(o=n,r=$.replace(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(n),r=$.replace(e,t,o)),this.edits.push(r),void 0!==o)return o},e.prototype.delete=function(e,t){var n,r;if(void 0===t?n=R.del(e):V.is(t)?(r=t,n=$.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(t),n=$.del(e,r)),this.edits.push(n),void 0!==r)return r},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(e){if(void 0===e)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),Se=function(){function e(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(e,t){var n;if(V.is(e)?n=e:(n=this.nextId(),t=e),void 0!==this._annotations[n])throw new Error("Id "+n+" is already in use.");if(void 0===t)throw new Error("No annotation provided for id "+n);return this._annotations[n]=t,this._size++,n},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();!function(){function e(e){var t=this;this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new Se(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((function(e){if(U.is(e)){var n=new Ae(e.edits,t._changeAnnotations);t._textEditChanges[e.textDocument.uri]=n}}))):e.changes&&Object.keys(e.changes).forEach((function(n){var r=new Ae(e.changes[n]);t._textEditChanges[n]=r}))):this._workspaceEdit={}}Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(e){if(J.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var t={uri:e.uri,version:e.version};if(!(r=this._textEditChanges[t.uri])){var n={textDocument:t,edits:o=[]};this._workspaceEdit.documentChanges.push(n),r=new Ae(o,this._changeAnnotations),this._textEditChanges[t.uri]=r}return r}if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var r;if(!(r=this._textEditChanges[e])){var o=[];this._workspaceEdit.changes[e]=o,r=new Ae(o),this._textEditChanges[e]=r}return r},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new Se,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,o,i;if(j.is(t)||V.is(t)?r=t:n=t,void 0===r?o=W.create(e,n):(i=V.is(r)?r:this._changeAnnotations.manage(r),o=W.create(e,n,i)),this._workspaceEdit.documentChanges.push(o),void 0!==i)return i},e.prototype.renameFile=function(e,t,n,r){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var o,i,s;if(j.is(n)||V.is(n)?o=n:r=n,void 0===o?i=K.create(e,t,r):(s=V.is(o)?o:this._changeAnnotations.manage(o),i=K.create(e,t,r,s)),this._workspaceEdit.documentChanges.push(i),void 0!==s)return s},e.prototype.deleteFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,o,i;if(j.is(t)||V.is(t)?r=t:n=t,void 0===r?o=q.create(e,n):(i=V.is(r)?r:this._changeAnnotations.manage(r),o=q.create(e,n,i)),this._workspaceEdit.documentChanges.push(o),void 0!==i)return i}}(),function(e){e.create=function(e){return{uri:e}},e.is=function(e){var t=e;return xe.defined(t)&&xe.string(t.uri)}}(z||(z={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){var t=e;return xe.defined(t)&&xe.string(t.uri)&&xe.integer(t.version)}}(Y||(Y={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){var t=e;return xe.defined(t)&&xe.string(t.uri)&&(null===t.version||xe.integer(t.version))}}(J||(J={})),function(e){e.create=function(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}},e.is=function(e){var t=e;return xe.defined(t)&&xe.string(t.uri)&&xe.string(t.languageId)&&xe.integer(t.version)&&xe.string(t.text)}}(G||(G={})),function(e){e.PlainText="plaintext",e.Markdown="markdown"}(X||(X={})),function(e){e.is=function(t){var n=t;return n===e.PlainText||n===e.Markdown}}(X||(X={})),function(e){e.is=function(e){var t=e;return xe.objectLiteral(e)&&X.is(t.kind)&&xe.string(t.value)}}(Q||(Q={})),function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25}(Z||(Z={})),function(e){e.PlainText=1,e.Snippet=2}(ee||(ee={})),function(e){e.Deprecated=1}(te||(te={})),function(e){e.create=function(e,t,n){return{newText:e,insert:t,replace:n}},e.is=function(e){var t=e;return t&&xe.string(t.newText)&&A.is(t.insert)&&A.is(t.replace)}}(ne||(ne={})),function(e){e.asIs=1,e.adjustIndentation=2}(re||(re={})),function(e){e.create=function(e){return{label:e}}}(oe||(oe={})),function(e){e.create=function(e,t){return{items:e||[],isIncomplete:!!t}}}(ie||(ie={})),function(e){e.fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},e.is=function(e){var t=e;return xe.string(t)||xe.objectLiteral(t)&&xe.string(t.language)&&xe.string(t.value)}}(se||(se={})),function(e){e.is=function(e){var t=e;return!!t&&xe.objectLiteral(t)&&(Q.is(t.contents)||se.is(t.contents)||xe.typedArray(t.contents,se.is))&&(void 0===e.range||A.is(e.range))}}(ae||(ae={})),function(e){e.create=function(e,t){return t?{label:e,documentation:t}:{label:e}}}(ue||(ue={})),function(e){e.create=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o={label:e};return xe.defined(t)&&(o.documentation=t),xe.defined(n)?o.parameters=n:o.parameters=[],o}}(ce||(ce={})),function(e){e.Text=1,e.Read=2,e.Write=3}(le||(le={})),function(e){e.create=function(e,t){var n={range:e};return xe.number(t)&&(n.kind=t),n}}(fe||(fe={})),function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26}(pe||(pe={})),function(e){e.Deprecated=1}(he||(he={})),function(e){e.create=function(e,t,n,r,o){var i={name:e,kind:t,location:{uri:r,range:n}};return o&&(i.containerName=o),i}}(de||(de={})),function(e){e.create=function(e,t,n,r,o,i){var s={name:e,detail:t,kind:n,range:r,selectionRange:o};return void 0!==i&&(s.children=i),s},e.is=function(e){var t=e;return t&&xe.string(t.name)&&xe.number(t.kind)&&A.is(t.range)&&A.is(t.selectionRange)&&(void 0===t.detail||xe.string(t.detail))&&(void 0===t.deprecated||xe.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))}}(me||(me={})),function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"}(ge||(ge={})),function(e){e.create=function(e,t){var n={diagnostics:e};return null!=t&&(n.only=t),n},e.is=function(e){var t=e;return xe.defined(t)&&xe.typedArray(t.diagnostics,I.is)&&(void 0===t.only||xe.typedArray(t.only,xe.string))}}(ye||(ye={})),function(e){e.create=function(e,t,n){var r={title:e},o=!0;return"string"==typeof t?(o=!1,r.kind=t):B.is(t)?r.command=t:r.edit=t,o&&void 0!==n&&(r.kind=n),r},e.is=function(e){var t=e;return t&&xe.string(t.title)&&(void 0===t.diagnostics||xe.typedArray(t.diagnostics,I.is))&&(void 0===t.kind||xe.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||B.is(t.command))&&(void 0===t.isPreferred||xe.boolean(t.isPreferred))&&(void 0===t.edit||H.is(t.edit))}}(be||(be={})),function(e){e.create=function(e,t){var n={range:e};return xe.defined(t)&&(n.data=t),n},e.is=function(e){var t=e;return xe.defined(t)&&A.is(t.range)&&(xe.undefined(t.command)||B.is(t.command))}}(ve||(ve={})),function(e){e.create=function(e,t){return{tabSize:e,insertSpaces:t}},e.is=function(e){var t=e;return xe.defined(t)&&xe.uinteger(t.tabSize)&&xe.boolean(t.insertSpaces)}}(De||(De={})),function(e){e.create=function(e,t,n){return{range:e,target:t,data:n}},e.is=function(e){var t=e;return xe.defined(t)&&A.is(t.range)&&(xe.undefined(t.target)||xe.string(t.target))}}(Ce||(Ce={})),function(e){e.create=function(e,t){return{range:e,parent:t}},e.is=function(t){var n=t;return void 0!==n&&A.is(n.range)&&(void 0===n.parent||e.is(n.parent))}}(Ee||(Ee={})),function(e){function t(e,n){if(e.length<=1)return e;var r=e.length/2|0,o=e.slice(0,r),i=e.slice(r);t(o,n),t(i,n);for(var s=0,a=0,u=0;s<o.length&&a<i.length;){var c=n(o[s],i[a]);e[u++]=c<=0?o[s++]:i[a++]}for(;s<o.length;)e[u++]=o[s++];for(;a<i.length;)e[u++]=i[a++];return e}e.create=function(e,t,n,r){return new _e(e,t,n,r)},e.is=function(e){var t=e;return!!(xe.defined(t)&&xe.string(t.uri)&&(xe.undefined(t.languageId)||xe.string(t.languageId))&&xe.uinteger(t.lineCount)&&xe.func(t.getText)&&xe.func(t.positionAt)&&xe.func(t.offsetAt))},e.applyEdits=function(e,n){for(var r=e.getText(),o=t(n,(function(e,t){var n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),i=r.length,s=o.length-1;s>=0;s--){var a=o[s],u=e.offsetAt(a.range.start),c=e.offsetAt(a.range.end);if(!(c<=i))throw new Error("Overlapping edit");r=r.substring(0,u)+a.newText+r.substring(c,r.length),i=u}return r}}(we||(we={}));var xe,_e=function(){function e(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content},e.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],t=this._content,n=!0,r=0;r<t.length;r++){n&&(e.push(r),n=!1);var o=t.charAt(r);n="\r"===o||"\n"===o,"\r"===o&&r+1<t.length&&"\n"===t.charAt(r+1)&&r++}n&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return w.create(0,e);for(;n<r;){var o=Math.floor((n+r)/2);t[o]>e?r=o:n=o+1}var i=n-1;return w.create(i,e-t[i])},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var n=t[e.line],r=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,r),n)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),e}();!function(e){var t=Object.prototype.toString;e.defined=function(e){return void 0!==e},e.undefined=function(e){return void 0===e},e.boolean=function(e){return!0===e||!1===e},e.string=function(e){return"[object String]"===t.call(e)},e.number=function(e){return"[object Number]"===t.call(e)},e.numberRange=function(e,n,r){return"[object Number]"===t.call(e)&&n<=e&&e<=r},e.integer=function(e){return"[object Number]"===t.call(e)&&-2147483648<=e&&e<=2147483647},e.uinteger=function(e){return"[object Number]"===t.call(e)&&0<=e&&e<=2147483647},e.func=function(e){return"[object Function]"===t.call(e)},e.objectLiteral=function(e){return null!==e&&"object"==typeof e},e.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)}}(xe||(xe={}));const Fe=Symbol.for("yaml.alias"),Te=Symbol.for("yaml.document"),ke=Symbol.for("yaml.map"),Ne=Symbol.for("yaml.pair"),Oe=Symbol.for("yaml.scalar"),Le=Symbol.for("yaml.seq"),Me=Symbol.for("yaml.node.type"),Pe=e=>!!e&&"object"==typeof e&&e[Me]===Fe,Ie=e=>!!e&&"object"==typeof e&&e[Me]===Te,Be=e=>!!e&&"object"==typeof e&&e[Me]===ke,Re=e=>!!e&&"object"==typeof e&&e[Me]===Ne,je=e=>!!e&&"object"==typeof e&&e[Me]===Oe,Ve=e=>!!e&&"object"==typeof e&&e[Me]===Le;function $e(e){if(e&&"object"==typeof e)switch(e[Me]){case ke:case Le:return!0}return!1}function Ue(e){if(e&&"object"==typeof e)switch(e[Me]){case Fe:case ke:case Oe:case Le:return!0}return!1}class We{constructor(e){Object.defineProperty(this,Me,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}}const Ke=Symbol("break visit"),qe=Symbol("skip children"),He=Symbol("remove node");function ze(e,t){const n=Xe(t);Ie(e)?Ye(null,e.contents,n,Object.freeze([e]))===He&&(e.contents=null):Ye(null,e,n,Object.freeze([]))}function Ye(e,t,n,r){const o=Qe(e,t,n,r);if(Ue(o)||Re(o))return Ze(e,r,o),Ye(e,o,n,r);if("symbol"!=typeof o)if($e(t)){r=Object.freeze(r.concat(t));for(let e=0;e<t.items.length;++e){const o=Ye(e,t.items[e],n,r);if("number"==typeof o)e=o-1;else{if(o===Ke)return Ke;o===He&&(t.items.splice(e,1),e-=1)}}}else if(Re(t)){r=Object.freeze(r.concat(t));const e=Ye("key",t.key,n,r);if(e===Ke)return Ke;e===He&&(t.key=null);const o=Ye("value",t.value,n,r);if(o===Ke)return Ke;o===He&&(t.value=null)}return o}async function Je(e,t){const n=Xe(t);Ie(e)?await Ge(null,e.contents,n,Object.freeze([e]))===He&&(e.contents=null):await Ge(null,e,n,Object.freeze([]))}async function Ge(e,t,n,r){const o=await Qe(e,t,n,r);if(Ue(o)||Re(o))return Ze(e,r,o),Ge(e,o,n,r);if("symbol"!=typeof o)if($e(t)){r=Object.freeze(r.concat(t));for(let e=0;e<t.items.length;++e){const o=await Ge(e,t.items[e],n,r);if("number"==typeof o)e=o-1;else{if(o===Ke)return Ke;o===He&&(t.items.splice(e,1),e-=1)}}}else if(Re(t)){r=Object.freeze(r.concat(t));const e=await Ge("key",t.key,n,r);if(e===Ke)return Ke;e===He&&(t.key=null);const o=await Ge("value",t.value,n,r);if(o===Ke)return Ke;o===He&&(t.value=null)}return o}function Xe(e){return"object"==typeof e&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function Qe(e,t,n,r){var o,i,s,a,u;return"function"==typeof n?n(e,t,r):Be(t)?null===(o=n.Map)||void 0===o?void 0:o.call(n,e,t,r):Ve(t)?null===(i=n.Seq)||void 0===i?void 0:i.call(n,e,t,r):Re(t)?null===(s=n.Pair)||void 0===s?void 0:s.call(n,e,t,r):je(t)?null===(a=n.Scalar)||void 0===a?void 0:a.call(n,e,t,r):Pe(t)?null===(u=n.Alias)||void 0===u?void 0:u.call(n,e,t,r):void 0}function Ze(e,t,n){const r=t[t.length-1];if($e(r))r.items[e]=n;else if(Re(r))"key"===e?r.key=n:r.value=n;else{if(!Ie(r)){const e=Pe(r)?"alias":"scalar";throw new Error(`Cannot replace node with ${e} parent`)}r.contents=n}}ze.BREAK=Ke,ze.SKIP=qe,ze.REMOVE=He,Je.BREAK=Ke,Je.SKIP=qe,Je.REMOVE=He;const et={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"};class tt{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},tt.defaultYaml,e),this.tags=Object.assign({},tt.defaultTags,t)}clone(){const e=new tt(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){const e=new tt(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:tt.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},tt.defaultTags)}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:tt.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},tt.defaultTags),this.atNextDocument=!1);const n=e.trim().split(/[ \t]+/),r=n.shift();switch(r){case"%TAG":{if(2!==n.length&&(t(0,"%TAG directive should contain exactly two parts"),n.length<2))return!1;const[e,r]=n;return this.tags[e]=r,!0}case"%YAML":{if(this.yaml.explicit=!0,1!==n.length)return t(0,"%YAML directive should contain exactly one part"),!1;const[e]=n;return"1.1"===e||"1.2"===e?(this.yaml.version=e,!0):(t(6,`Unsupported YAML version ${e}`,/^\d+\.\d+$/.test(e)),!1)}default:return t(0,`Unknown directive ${r}`,!0),!1}}tagName(e,t){if("!"===e)return"!";if("!"!==e[0])return t(`Not a valid tag: ${e}`),null;if("<"===e[1]){const n=e.slice(2,-1);return"!"===n||"!!"===n?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(">"!==e[e.length-1]&&t("Verbatim tags must end with a >"),n)}const[,n,r]=e.match(/^(.*!)([^!]*)$/);r||t(`The ${e} tag has no suffix`);const o=this.tags[n];return o?o+decodeURIComponent(r):"!"===n?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(const[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+e.substring(n.length).replace(/[!,[\]{}]/g,(e=>et[e]));return"!"===e[0]?e:`!<${e}>`}toString(e){const t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],n=Object.entries(this.tags);let r;if(e&&n.length>0&&Ue(e.contents)){const t={};ze(e.contents,((e,n)=>{Ue(n)&&n.tag&&(t[n.tag]=!0)})),r=Object.keys(t)}else r=[];for(const[o,i]of n)"!!"===o&&"tag:yaml.org,2002:"===i||e&&!r.some((e=>e.startsWith(i)))||t.push(`%TAG ${o} ${i}`);return t.join("\n")}}function nt(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const t=JSON.stringify(e);throw new Error(`Anchor must not contain whitespace or control characters: ${t}`)}return!0}function rt(e){const t=new Set;return ze(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function ot(e,t){for(let n=1;;++n){const r=`${e}${n}`;if(!t.has(r))return r}}tt.defaultYaml={explicit:!1,version:"1.2"},tt.defaultTags={"!!":"tag:yaml.org,2002:"};class it extends We{constructor(e){super(Fe),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e){let t;return ze(e,{Node:(e,n)=>{if(n===this)return ze.BREAK;n.anchor===this.source&&(t=n)}}),t}toJSON(e,t){if(!t)return{source:this.source};const{anchors:n,doc:r,maxAliasCount:o}=t,i=this.resolve(r);if(!i){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(e)}const s=n.get(i);if(!s||void 0===s.res)throw new ReferenceError("This should not happen: Alias anchor was not resolved?");if(o>=0&&(s.count+=1,0===s.aliasCount&&(s.aliasCount=st(r,i,n)),s.count*s.aliasCount>o))throw new ReferenceError("Excessive alias count indicates a resource exhaustion attack");return s.res}toString(e,t,n){const r=`*${this.source}`;if(e){if(nt(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(e)}if(e.implicitKey)return`${r} `}return r}}function st(e,t,n){if(Pe(t)){const r=t.resolve(e),o=n&&r&&n.get(r);return o?o.count*o.aliasCount:0}if($e(t)){let r=0;for(const o of t.items){const t=st(e,o,n);t>r&&(r=t)}return r}if(Re(t)){const r=st(e,t.key,n),o=st(e,t.value,n);return Math.max(r,o)}return 1}function at(e,t,n){if(Array.isArray(e))return e.map(((e,t)=>at(e,String(t),n)));if(e&&"function"==typeof e.toJSON){if(!n||!je(r=e)&&!$e(r)||!r.anchor)return e.toJSON(t,n);const o={aliasCount:0,count:1,res:void 0};n.anchors.set(e,o),n.onCreate=e=>{o.res=e,delete n.onCreate};const i=e.toJSON(t,n);return n.onCreate&&n.onCreate(i),i}var r;return"bigint"!=typeof e||(null==n?void 0:n.keep)?e:Number(e)}const ut=e=>!e||"function"!=typeof e&&"object"!=typeof e;class ct extends We{constructor(e){super(Oe),this.value=e}toJSON(e,t){return(null==t?void 0:t.keep)?this.value:at(this.value,e,t)}toString(){return String(this.value)}}function lt(e,t,n){var r,o;if(Ie(e)&&(e=e.contents),Ue(e))return e;if(Re(e)){const t=null===(o=(r=n.schema[ke]).createNode)||void 0===o?void 0:o.call(r,n.schema,null,n);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||"function"==typeof BigInt&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:i,onAnchor:s,onTagObj:a,schema:u,sourceObjects:c}=n;let l;if(i&&e&&"object"==typeof e){if(l=c.get(e),l)return l.anchor||(l.anchor=s(e)),new it(l.anchor);l={anchor:null,node:null},c.set(e,l)}(null==t?void 0:t.startsWith("!!"))&&(t="tag:yaml.org,2002:"+t.slice(2));let f=function(e,t,n){var r;if(t){const e=n.filter((e=>e.tag===t)),o=null!==(r=e.find((e=>!e.format)))&&void 0!==r?r:e[0];if(!o)throw new Error(`Tag ${t} not found`);return o}return n.find((t=>{var n;return(null===(n=t.identify)||void 0===n?void 0:n.call(t,e))&&!t.format}))}(e,t,u.tags);if(!f){if(e&&"function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!=typeof e){const t=new ct(e);return l&&(l.node=t),t}f=e instanceof Map?u[ke]:Symbol.iterator in Object(e)?u[Le]:u[ke]}a&&(a(f),delete n.onTagObj);const p=(null==f?void 0:f.createNode)?f.createNode(n.schema,e,n):new ct(e);return t&&(p.tag=t),l&&(l.node=p),p}function ft(e,t,n){let r=n;for(let e=t.length-1;e>=0;--e){const n=t[e];if("number"==typeof n&&Number.isInteger(n)&&n>=0){const e=[];e[n]=r,r=e}else r=new Map([[n,r]])}return lt(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}ct.BLOCK_FOLDED="BLOCK_FOLDED",ct.BLOCK_LITERAL="BLOCK_LITERAL",ct.PLAIN="PLAIN",ct.QUOTE_DOUBLE="QUOTE_DOUBLE",ct.QUOTE_SINGLE="QUOTE_SINGLE";const pt=e=>null==e||"object"==typeof e&&!!e[Symbol.iterator]().next().done;class ht extends We{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map((t=>Ue(t)||Re(t)?t.clone(e):t)),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(pt(e))this.add(t);else{const[n,...r]=e,o=this.get(n,!0);if($e(o))o.addIn(r,t);else{if(void 0!==o||!this.schema)throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`);this.set(n,ft(this.schema,r,t))}}}deleteIn(e){const[t,...n]=e;if(0===n.length)return this.delete(t);const r=this.get(t,!0);if($e(r))return r.deleteIn(n);throw new Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){const[n,...r]=e,o=this.get(n,!0);return 0===r.length?!t&&je(o)?o.value:o:$e(o)?o.getIn(r,t):void 0}hasAllNullValues(e){return this.items.every((t=>{if(!Re(t))return!1;const n=t.value;return null==n||e&&je(n)&&null==n.value&&!n.commentBefore&&!n.comment&&!n.tag}))}hasIn(e){const[t,...n]=e;if(0===n.length)return this.has(t);const r=this.get(t,!0);return!!$e(r)&&r.hasIn(n)}setIn(e,t){const[n,...r]=e;if(0===r.length)this.set(n,t);else{const e=this.get(n,!0);if($e(e))e.setIn(r,t);else{if(void 0!==e||!this.schema)throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`);this.set(n,ft(this.schema,r,t))}}}}ht.maxFlowStringSingleLineLength=60;const dt=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function mt(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const gt=(e,t,n)=>e.endsWith("\n")?mt(n,t):n.includes("\n")?"\n"+mt(n,t):(e.endsWith(" ")?"":" ")+n,yt="flow",bt="block",vt="quoted";function Dt(e,t,n="flow",{indentAtStart:r,lineWidth:o=80,minContentWidth:i=20,onFold:s,onOverflow:a}={}){if(!o||o<0)return e;const u=Math.max(1+i,1+o-t.length);if(e.length<=u)return e;const c=[],l={};let f,p,h=o-t.length;"number"==typeof r&&(r>o-Math.max(2,i)?c.push(0):h=o-r);let d,m=!1,g=-1,y=-1,b=-1;for(n===bt&&(g=Ct(e,g),-1!==g&&(h=g+u));d=e[g+=1];){if(n===vt&&"\\"===d){switch(y=g,e[g+1]){case"x":g+=3;break;case"u":g+=5;break;case"U":g+=9;break;default:g+=1}b=g}if("\n"===d)n===bt&&(g=Ct(e,g)),h=g+u,f=void 0;else{if(" "===d&&p&&" "!==p&&"\n"!==p&&"\t"!==p){const t=e[g+1];t&&" "!==t&&"\n"!==t&&"\t"!==t&&(f=g)}if(g>=h)if(f)c.push(f),h=f+u,f=void 0;else if(n===vt){for(;" "===p||"\t"===p;)p=d,d=e[g+=1],m=!0;const t=g>b+1?g-2:y-1;if(l[t])return e;c.push(t),l[t]=!0,h=t+u,f=void 0}else m=!0}p=d}if(m&&a&&a(),0===c.length)return e;s&&s();let v=e.slice(0,c[0]);for(let r=0;r<c.length;++r){const o=c[r],i=c[r+1]||e.length;0===o?v=`\n${t}${e.slice(0,i)}`:(n===vt&&l[o]&&(v+=`${e[o]}\\`),v+=`\n${t}${e.slice(o+1,i)}`)}return v}function Ct(e,t){let n=e[t+1];for(;" "===n||"\t"===n;){do{n=e[t+=1]}while(n&&"\n"!==n);n=e[t+1]}return t}const Et=e=>({indentAtStart:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),wt=e=>/^(%|---|\.\.\.)/m.test(e);function At(e,t){const n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;const{implicitKey:r}=t,o=t.options.doubleQuotedMinMultiLineLength,i=t.indent||(wt(e)?"  ":"");let s="",a=0;for(let e=0,t=n[e];t;t=n[++e])if(" "===t&&"\\"===n[e+1]&&"n"===n[e+2]&&(s+=n.slice(a,e)+"\\ ",e+=1,a=e,t="\\"),"\\"===t)switch(n[e+1]){case"u":{s+=n.slice(a,e);const t=n.substr(e+2,4);switch(t){case"0000":s+="\\0";break;case"0007":s+="\\a";break;case"000b":s+="\\v";break;case"001b":s+="\\e";break;case"0085":s+="\\N";break;case"00a0":s+="\\_";break;case"2028":s+="\\L";break;case"2029":s+="\\P";break;default:"00"===t.substr(0,2)?s+="\\x"+t.substr(2):s+=n.substr(e,6)}e+=5,a=e+1}break;case"n":if(r||'"'===n[e+2]||n.length<o)e+=1;else{for(s+=n.slice(a,e)+"\n\n";"\\"===n[e+2]&&"n"===n[e+3]&&'"'!==n[e+4];)s+="\n",e+=2;s+=i," "===n[e+2]&&(s+="\\"),e+=1,a=e+1}break;default:e+=1}return s=a?s+n.slice(a):n,r?s:Dt(s,i,vt,Et(t))}function St(e,t){if(!1===t.options.singleQuote||t.implicitKey&&e.includes("\n")||/[ \t]\n|\n[ \t]/.test(e))return At(e,t);const n=t.indent||(wt(e)?"  ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&\n${n}`)+"'";return t.implicitKey?r:Dt(r,n,yt,Et(t))}function xt(e,t){const{singleQuote:n}=t.options;let r;if(!1===n)r=At;else{const t=e.includes('"'),o=e.includes("'");r=t&&!o?St:o&&!t?At:n?St:At}return r(e,t)}function _t({comment:e,type:t,value:n},r,o,i){const{blockQuote:s,commentString:a,lineWidth:u}=r.options;if(!s||/\n[\t ]+$/.test(n)||/^\s*$/.test(n))return xt(n,r);const c=r.indent||(r.forceBlockIndent||wt(n)?"  ":""),l="literal"===s||"folded"!==s&&t!==ct.BLOCK_FOLDED&&(t===ct.BLOCK_LITERAL||!function(e,t,n){if(!t||t<0)return!1;const r=t-n,o=e.length;if(o<=r)return!1;for(let t=0,n=0;t<o;++t)if("\n"===e[t]){if(t-n>r)return!0;if(n=t+1,o-n<=r)return!1}return!0}(n,u,c.length));if(!n)return l?"|\n":">\n";let f,p;for(p=n.length;p>0;--p){const e=n[p-1];if("\n"!==e&&"\t"!==e&&" "!==e)break}let h=n.substring(p);const d=h.indexOf("\n");-1===d?f="-":n===h||d!==h.length-1?(f="+",i&&i()):f="",h&&(n=n.slice(0,-h.length),"\n"===h[h.length-1]&&(h=h.slice(0,-1)),h=h.replace(/\n+(?!\n|$)/g,`$&${c}`));let m,g=!1,y=-1;for(m=0;m<n.length;++m){const e=n[m];if(" "===e)g=!0;else{if("\n"!==e)break;y=m}}let b=n.substring(0,y<m?y+1:m);b&&(n=n.substring(b.length),b=b.replace(/\n+/g,`$&${c}`));let v=(l?"|":">")+(g?c?"2":"1":"")+f;return e&&(v+=" "+a(e.replace(/ ?[\r\n]+/g," ")),o&&o()),l?`${v}\n${c}${b}${n=n.replace(/\n+/g,`$&${c}`)}${h}`:`${v}\n${c}${Dt(`${b}${n=n.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${c}`)}${h}`,c,bt,Et(r))}`}function Ft(e,t,n,r){const{implicitKey:o,inFlow:i}=t,s="string"==typeof e.value?e:Object.assign({},e,{value:String(e.value)});let{type:a}=e;a!==ct.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(s.value)&&(a=ct.QUOTE_DOUBLE);const u=e=>{switch(e){case ct.BLOCK_FOLDED:case ct.BLOCK_LITERAL:return o||i?xt(s.value,t):_t(s,t,n,r);case ct.QUOTE_DOUBLE:return At(s.value,t);case ct.QUOTE_SINGLE:return St(s.value,t);case ct.PLAIN:return function(e,t,n,r){const{type:o,value:i}=e,{actualString:s,implicitKey:a,indent:u,inFlow:c}=t;if(a&&/[\n[\]{},]/.test(i)||c&&/[[\]{},]/.test(i))return xt(i,t);if(!i||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(i))return a||c||!i.includes("\n")?xt(i,t):_t(e,t,n,r);if(!a&&!c&&o!==ct.PLAIN&&i.includes("\n"))return _t(e,t,n,r);if(""===u&&wt(i))return t.forceBlockIndent=!0,_t(e,t,n,r);const l=i.replace(/\n+/g,`$&\n${u}`);if(s){const e=e=>{var t;return e.default&&"tag:yaml.org,2002:str"!==e.tag&&(null===(t=e.test)||void 0===t?void 0:t.test(l))},{compat:n,tags:r}=t.doc.schema;if(r.some(e)||(null==n?void 0:n.some(e)))return xt(i,t)}return a?l:Dt(l,u,yt,Et(t))}(s,t,n,r);default:return null}};let c=u(a);if(null===c){const{defaultKeyType:e,defaultStringType:n}=t.options,r=o&&e||n;if(c=u(r),null===c)throw new Error(`Unsupported default string type ${r}`)}return c}function Tt(e,t){const n=Object.assign({blockQuote:!0,commentString:dt,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t);let r;switch(n.collectionStyle){case"block":r=!1;break;case"flow":r=!0;break;default:r=null}return{anchors:new Set,doc:e,indent:"",indentStep:"number"==typeof n.indent?" ".repeat(n.indent):"  ",inFlow:r,options:n}}function kt(e,t,n,r){var o,i;if(Re(e))return e.toString(t,n,r);if(Pe(e)){if(t.doc.directives)return e.toString(t);if(null===(o=t.resolvedAliases)||void 0===o?void 0:o.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let s;const a=Ue(e)?e:t.doc.createNode(e,{onTagObj:e=>s=e});s||(s=function(e,t){var n,r,o,i;if(t.tag){const r=e.filter((e=>e.tag===t.tag));if(r.length>0)return null!==(n=r.find((e=>e.format===t.format)))&&void 0!==n?n:r[0]}let s,a;if(je(t)){a=t.value;const n=e.filter((e=>{var t;return null===(t=e.identify)||void 0===t?void 0:t.call(e,a)}));s=null!==(r=n.find((e=>e.format===t.format)))&&void 0!==r?r:n.find((e=>!e.format))}else a=t,s=e.find((e=>e.nodeClass&&a instanceof e.nodeClass));if(!s){const e=null!==(i=null===(o=null==a?void 0:a.constructor)||void 0===o?void 0:o.name)&&void 0!==i?i:typeof a;throw new Error(`Tag not resolved for ${e} value`)}return s}(t.doc.schema.tags,a));const u=function(e,t,{anchors:n,doc:r}){if(!r.directives)return"";const o=[],i=(je(e)||$e(e))&&e.anchor;i&&nt(i)&&(n.add(i),o.push(`&${i}`));const s=e.tag?e.tag:t.default?null:t.tag;return s&&o.push(r.directives.tagString(s)),o.join(" ")}(a,s,t);u.length>0&&(t.indentAtStart=(null!==(i=t.indentAtStart)&&void 0!==i?i:0)+u.length+1);const c="function"==typeof s.stringify?s.stringify(a,t,n,r):je(a)?Ft(a,t,n,r):a.toString(t,n,r);return u?je(a)||"{"===c[0]||"["===c[0]?`${u} ${c}`:`${u}\n${t.indent}${c}`:c}function Nt(e,t){"debug"!==e&&"warn"!==e||("undefined"!=typeof process&&process.emitWarning?process.emitWarning(t):console.warn(t))}function Ot(e,t,{key:n,value:r}){if((null==e?void 0:e.doc.schema.merge)&&Lt(n))if(r=Pe(r)?r.resolve(e.doc):r,Ve(r))for(const n of r.items)Mt(e,t,n);else if(Array.isArray(r))for(const n of r)Mt(e,t,n);else Mt(e,t,r);else{const o=at(n,"",e);if(t instanceof Map)t.set(o,at(r,o,e));else if(t instanceof Set)t.add(o);else{const i=function(e,t,n){if(null===t)return"";if("object"!=typeof t)return String(t);if(Ue(e)&&n&&n.doc){const t=Tt(n.doc,{});t.anchors=new Set;for(const e of n.anchors.keys())t.anchors.add(e.anchor);t.inFlow=!0,t.inStringifyKey=!0;const r=e.toString(t);if(!n.mapKeyWarned){let e=JSON.stringify(r);e.length>40&&(e=e.substring(0,36)+'..."'),Nt(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return r}return JSON.stringify(t)}(n,o,e),s=at(r,i,e);i in t?Object.defineProperty(t,i,{value:s,writable:!0,enumerable:!0,configurable:!0}):t[i]=s}}return t}const Lt=e=>"<<"===e||je(e)&&"<<"===e.value&&(!e.type||e.type===ct.PLAIN);function Mt(e,t,n){const r=e&&Pe(n)?n.resolve(e.doc):n;if(!Be(r))throw new Error("Merge sources must be maps or map aliases");const o=r.toJSON(null,e,Map);for(const[e,n]of o)t instanceof Map?t.has(e)||t.set(e,n):t instanceof Set?t.add(e):Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!0,configurable:!0});return t}function Pt(e,t,n){const r=lt(e,void 0,n),o=lt(t,void 0,n);return new It(r,o)}class It{constructor(e,t=null){Object.defineProperty(this,Me,{value:Ne}),this.key=e,this.value=t}clone(e){let{key:t,value:n}=this;return Ue(t)&&(t=t.clone(e)),Ue(n)&&(n=n.clone(e)),new It(t,n)}toJSON(e,t){return Ot(t,(null==t?void 0:t.mapAsMap)?new Map:{},this)}toString(e,t,n){return(null==e?void 0:e.doc)?function({key:e,value:t},n,r,o){const{allNullValues:i,doc:s,indent:a,indentStep:u,options:{commentString:c,indentSeq:l,simpleKeys:f}}=n;let p=Ue(e)&&e.comment||null;if(f){if(p)throw new Error("With simple keys, key nodes cannot have comments");if($e(e))throw new Error("With simple keys, collection cannot be used as a key value")}let h=!f&&(!e||p&&null==t&&!n.inFlow||$e(e)||(je(e)?e.type===ct.BLOCK_FOLDED||e.type===ct.BLOCK_LITERAL:"object"==typeof e));n=Object.assign({},n,{allNullValues:!1,implicitKey:!h&&(f||!i),indent:a+u});let d=!1,m=!1,g=kt(e,n,(()=>d=!0),(()=>m=!0));if(!h&&!n.inFlow&&g.length>1024){if(f)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");h=!0}if(n.inFlow){if(i||null==t)return d&&r&&r(),""===g?"?":h?`? ${g}`:g}else if(i&&!f||null==t&&h)return g=`? ${g}`,p&&!d?g+=gt(g,n.indent,c(p)):m&&o&&o(),g;d&&(p=null),h?(p&&(g+=gt(g,n.indent,c(p))),g=`? ${g}\n${a}:`):(g=`${g}:`,p&&(g+=gt(g,n.indent,c(p))));let y="",b=null;Ue(t)?(t.spaceBefore&&(y="\n"),t.commentBefore&&(y+=`\n${mt(c(t.commentBefore),n.indent)}`),b=t.comment):t&&"object"==typeof t&&(t=s.createNode(t)),n.implicitKey=!1,h||p||!je(t)||(n.indentAtStart=g.length+1),m=!1,l||!(u.length>=2)||n.inFlow||h||!Ve(t)||t.flow||t.tag||t.anchor||(n.indent=n.indent.substr(2));let v=!1;const D=kt(t,n,(()=>v=!0),(()=>m=!0));let C=" ";return y||p?C=""!==D||n.inFlow?`${y}\n${n.indent}`:"\n"===y?"\n\n":y:!h&&$e(t)?("["===D[0]||"{"===D[0])&&!D.includes("\n")||(C=`\n${n.indent}`):""!==D&&"\n"!==D[0]||(C=""),g+=C+D,n.inFlow?v&&r&&r():b&&!v?g+=gt(g,n.indent,c(b)):m&&o&&o(),g}(this,e,t,n):JSON.stringify(this)}}function Bt(e,t,n){var r;return((null!==(r=t.inFlow)&&void 0!==r?r:e.flow)?jt:Rt)(e,t,n)}function Rt({comment:e,items:t},n,{blockItemPrefix:r,flowChars:o,itemIndent:i,onChompKeep:s,onComment:a}){const{indent:u,options:{commentString:c}}=n,l=Object.assign({},n,{indent:i,type:null});let f=!1;const p=[];for(let e=0;e<t.length;++e){const o=t[e];let s=null;if(Ue(o))!f&&o.spaceBefore&&p.push(""),Vt(n,p,o.commentBefore,f),o.comment&&(s=o.comment);else if(Re(o)){const e=Ue(o.key)?o.key:null;e&&(!f&&e.spaceBefore&&p.push(""),Vt(n,p,e.commentBefore,f))}f=!1;let a=kt(o,l,(()=>s=null),(()=>f=!0));s&&(a+=gt(a,i,c(s))),f&&s&&(f=!1),p.push(r+a)}let h;if(0===p.length)h=o.start+o.end;else{h=p[0];for(let e=1;e<p.length;++e){const t=p[e];h+=t?`\n${u}${t}`:"\n"}}return e?(h+="\n"+mt(c(e),u),a&&a()):f&&s&&s(),h}function jt({comment:e,items:t},n,{flowChars:r,itemIndent:o,onComment:i}){const{indent:s,indentStep:a,options:{commentString:u}}=n;o+=a;const c=Object.assign({},n,{indent:o,inFlow:!0,type:null});let l=!1,f=0;const p=[];for(let e=0;e<t.length;++e){const r=t[e];let i=null;if(Ue(r))r.spaceBefore&&p.push(""),Vt(n,p,r.commentBefore,!1),r.comment&&(i=r.comment);else if(Re(r)){const e=Ue(r.key)?r.key:null;e&&(e.spaceBefore&&p.push(""),Vt(n,p,e.commentBefore,!1),e.comment&&(l=!0));const t=Ue(r.value)?r.value:null;t?(t.comment&&(i=t.comment),t.commentBefore&&(l=!0)):null==r.value&&e&&e.comment&&(i=e.comment)}i&&(l=!0);let s=kt(r,c,(()=>i=null));e<t.length-1&&(s+=","),i&&(s+=gt(s,o,u(i))),!l&&(p.length>f||s.includes("\n"))&&(l=!0),p.push(s),f=p.length}let h;const{start:d,end:m}=r;if(0===p.length)h=d+m;else if(l||(l=p.reduce(((e,t)=>e+t.length+2),2)>ht.maxFlowStringSingleLineLength),l){h=d;for(const e of p)h+=e?`\n${a}${s}${e}`:"\n";h+=`\n${s}${m}`}else h=`${d} ${p.join(" ")} ${m}`;return e&&(h+=gt(h,u(e),s),i&&i()),h}function Vt({indent:e,options:{commentString:t}},n,r,o){if(r&&o&&(r=r.replace(/^\n+/,"")),r){const o=mt(t(r),e);n.push(o.trimStart())}}function $t(e,t){const n=je(t)?t.value:t;for(const r of e)if(Re(r)){if(r.key===t||r.key===n)return r;if(je(r.key)&&r.key.value===n)return r}}class Ut extends ht{constructor(e){super(ke,e),this.items=[]}static get tagName(){return"tag:yaml.org,2002:map"}add(e,t){var n;let r;r=Re(e)?e:new It(e&&"object"==typeof e&&"key"in e?e.key:e,e.value);const o=$t(this.items,r.key),i=null===(n=this.schema)||void 0===n?void 0:n.sortMapEntries;if(o){if(!t)throw new Error(`Key ${r.key} already set`);je(o.value)&&ut(r.value)?o.value.value=r.value:o.value=r.value}else if(i){const e=this.items.findIndex((e=>i(r,e)<0));-1===e?this.items.push(r):this.items.splice(e,0,r)}else this.items.push(r)}delete(e){const t=$t(this.items,e);return!!t&&this.items.splice(this.items.indexOf(t),1).length>0}get(e,t){const n=$t(this.items,e),r=null==n?void 0:n.value;return!t&&je(r)?r.value:r}has(e){return!!$t(this.items,e)}set(e,t){this.add(new It(e,t),!0)}toJSON(e,t,n){const r=n?new n:(null==t?void 0:t.mapAsMap)?new Map:{};(null==t?void 0:t.onCreate)&&t.onCreate(r);for(const e of this.items)Ot(t,r,e);return r}toString(e,t,n){if(!e)return JSON.stringify(this);for(const e of this.items)if(!Re(e))throw new Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),Bt(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:n,onComment:t})}}const Wt={collection:"map",createNode:function(e,t,n){const{keepUndefined:r,replacer:o}=n,i=new Ut(e),s=(e,s)=>{if("function"==typeof o)s=o.call(t,e,s);else if(Array.isArray(o)&&!o.includes(e))return;(void 0!==s||r)&&i.items.push(Pt(e,s,n))};if(t instanceof Map)for(const[e,n]of t)s(e,n);else if(t&&"object"==typeof t)for(const e of Object.keys(t))s(e,t[e]);return"function"==typeof e.sortMapEntries&&i.items.sort(e.sortMapEntries),i},default:!0,nodeClass:Ut,tag:"tag:yaml.org,2002:map",resolve:(e,t)=>(Be(e)||t("Expected a mapping for this tag"),e)};class Kt extends ht{constructor(e){super(Le,e),this.items=[]}static get tagName(){return"tag:yaml.org,2002:seq"}add(e){this.items.push(e)}delete(e){const t=qt(e);return"number"==typeof t&&this.items.splice(t,1).length>0}get(e,t){const n=qt(e);if("number"!=typeof n)return;const r=this.items[n];return!t&&je(r)?r.value:r}has(e){const t=qt(e);return"number"==typeof t&&t<this.items.length}set(e,t){const n=qt(e);if("number"!=typeof n)throw new Error(`Expected a valid index, not ${e}.`);const r=this.items[n];je(r)&&ut(t)?r.value=t:this.items[n]=t}toJSON(e,t){const n=[];(null==t?void 0:t.onCreate)&&t.onCreate(n);let r=0;for(const e of this.items)n.push(at(e,String(r++),t));return n}toString(e,t,n){return e?Bt(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+"  ",onChompKeep:n,onComment:t}):JSON.stringify(this)}}function qt(e){let t=je(e)?e.value:e;return t&&"string"==typeof t&&(t=Number(t)),"number"==typeof t&&Number.isInteger(t)&&t>=0?t:null}const Ht={collection:"seq",createNode:function(e,t,n){const{replacer:r}=n,o=new Kt(e);if(t&&Symbol.iterator in Object(t)){let e=0;for(let i of t){if("function"==typeof r){const n=t instanceof Set?i:String(e++);i=r.call(t,n,i)}o.items.push(lt(i,void 0,n))}}return o},default:!0,nodeClass:Kt,tag:"tag:yaml.org,2002:seq",resolve:(e,t)=>(Ve(e)||t("Expected a sequence for this tag"),e)},zt={identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:(e,t,n,r)=>Ft(e,t=Object.assign({actualString:!0},t),n,r)},Yt={identify:e=>null==e,createNode:()=>new ct(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new ct(null),stringify:({source:e},t)=>"string"==typeof e&&Yt.test.test(e)?e:t.options.nullStr},Jt={identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new ct("t"===e[0]||"T"===e[0]),stringify:({source:e,value:t},n)=>e&&Jt.test.test(e)&&t===("t"===e[0]||"T"===e[0])?e:t?n.options.trueStr:n.options.falseStr};function Gt({format:e,minFractionDigits:t,tag:n,value:r}){if("bigint"==typeof r)return String(r);const o="number"==typeof r?r:Number(r);if(!isFinite(o))return isNaN(o)?".nan":o<0?"-.inf":".inf";let i=JSON.stringify(r);if(!e&&t&&(!n||"tag:yaml.org,2002:float"===n)&&/^\d/.test(i)){let e=i.indexOf(".");e<0&&(e=i.length,i+=".");let n=t-(i.length-e-1);for(;n-- >0;)i+="0"}return i}const Xt={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN))$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Gt},Qt={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():Gt(e)}},Zt={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new ct(parseFloat(e)),n=e.indexOf(".");return-1!==n&&"0"===e[e.length-1]&&(t.minFractionDigits=e.length-n-1),t},stringify:Gt},en=e=>"bigint"==typeof e||Number.isInteger(e),tn=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function nn(e,t,n){const{value:r}=e;return en(r)&&r>=0?n+r.toString(t):Gt(e)}const rn={identify:e=>en(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>tn(e,2,8,n),stringify:e=>nn(e,8,"0o")},on={identify:en,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>tn(e,0,10,n),stringify:Gt},sn={identify:e=>en(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>tn(e,2,16,n),stringify:e=>nn(e,16,"0x")},an=[Wt,Ht,zt,Yt,Jt,rn,on,sn,Xt,Qt,Zt];function un(e){return"bigint"==typeof e||Number.isInteger(e)}const cn=({value:e})=>JSON.stringify(e),ln=[Wt,Ht].concat([{identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:cn},{identify:e=>null==e,createNode:()=>new ct(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:cn},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>"true"===e,stringify:cn},{identify:un,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>un(e)?e.toString():JSON.stringify(e)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:cn}],{default:!0,tag:"",test:/^/,resolve:(e,t)=>(t(`Unresolved plain scalar ${JSON.stringify(e)}`),e)}),fn={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if("function"==typeof Buffer)return Buffer.from(e,"base64");if("function"==typeof atob){const t=atob(e.replace(/[\n\r]/g,"")),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}return t("This environment does not support reading binary tags; either Buffer or atob is required"),e},stringify({comment:e,type:t,value:n},r,o,i){const s=n;let a;if("function"==typeof Buffer)a=s instanceof Buffer?s.toString("base64"):Buffer.from(s.buffer).toString("base64");else{if("function"!=typeof btoa)throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");{let e="";for(let t=0;t<s.length;++t)e+=String.fromCharCode(s[t]);a=btoa(e)}}if(t||(t=ct.BLOCK_LITERAL),t!==ct.QUOTE_DOUBLE){const e=Math.max(r.options.lineWidth-r.indent.length,r.options.minContentWidth),n=Math.ceil(a.length/e),o=new Array(n);for(let t=0,r=0;t<n;++t,r+=e)o[t]=a.substr(r,e);a=o.join(t===ct.BLOCK_LITERAL?"\n":" ")}return Ft({comment:e,type:t,value:a},r,o,i)}};function pn(e,t){var n;if(Ve(e))for(let r=0;r<e.items.length;++r){let o=e.items[r];if(!Re(o)){if(Be(o)){o.items.length>1&&t("Each pair must have its own sequence indicator");const e=o.items[0]||new It(new ct(null));if(o.commentBefore&&(e.key.commentBefore=e.key.commentBefore?`${o.commentBefore}\n${e.key.commentBefore}`:o.commentBefore),o.comment){const t=null!==(n=e.value)&&void 0!==n?n:e.key;t.comment=t.comment?`${o.comment}\n${t.comment}`:o.comment}o=e}e.items[r]=Re(o)?o:new It(o)}}else t("Expected a sequence for this tag");return e}function hn(e,t,n){const{replacer:r}=n,o=new Kt(e);o.tag="tag:yaml.org,2002:pairs";let i=0;if(t&&Symbol.iterator in Object(t))for(let e of t){let s,a;if("function"==typeof r&&(e=r.call(t,String(i++),e)),Array.isArray(e)){if(2!==e.length)throw new TypeError(`Expected [key, value] tuple: ${e}`);s=e[0],a=e[1]}else if(e&&e instanceof Object){const t=Object.keys(e);if(1!==t.length)throw new TypeError(`Expected { key: value } tuple: ${e}`);s=t[0],a=e[s]}else s=e;o.items.push(Pt(s,a,n))}return o}const dn={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:pn,createNode:hn};class mn extends Kt{constructor(){super(),this.add=Ut.prototype.add.bind(this),this.delete=Ut.prototype.delete.bind(this),this.get=Ut.prototype.get.bind(this),this.has=Ut.prototype.has.bind(this),this.set=Ut.prototype.set.bind(this),this.tag=mn.tag}toJSON(e,t){if(!t)return super.toJSON(e);const n=new Map;(null==t?void 0:t.onCreate)&&t.onCreate(n);for(const e of this.items){let r,o;if(Re(e)?(r=at(e.key,"",t),o=at(e.value,r,t)):r=at(e,"",t),n.has(r))throw new Error("Ordered maps must not include duplicate keys");n.set(r,o)}return n}}mn.tag="tag:yaml.org,2002:omap";const gn={collection:"seq",identify:e=>e instanceof Map,nodeClass:mn,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=pn(e,t),r=[];for(const{key:e}of n.items)je(e)&&(r.includes(e.value)?t(`Ordered maps must not include duplicate keys: ${e.value}`):r.push(e.value));return Object.assign(new mn,n)},createNode(e,t,n){const r=hn(e,t,n),o=new mn;return o.items=r.items,o}};function yn({value:e,source:t},n){return t&&(e?bn:vn).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const bn={identify:e=>!0===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new ct(!0),stringify:yn},vn={identify:e=>!1===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>new ct(!1),stringify:yn},Dn={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN)$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Gt},Cn={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():Gt(e)}},En={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new ct(parseFloat(e.replace(/_/g,""))),n=e.indexOf(".");if(-1!==n){const r=e.substring(n+1).replace(/_/g,"");"0"===r[r.length-1]&&(t.minFractionDigits=r.length)}return t},stringify:Gt},wn=e=>"bigint"==typeof e||Number.isInteger(e);function An(e,t,n,{intAsBigInt:r}){const o=e[0];if("-"!==o&&"+"!==o||(t+=1),e=e.substring(t).replace(/_/g,""),r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`}const t=BigInt(e);return"-"===o?BigInt(-1)*t:t}const i=parseInt(e,n);return"-"===o?-1*i:i}function Sn(e,t,n){const{value:r}=e;if(wn(r)){const e=r.toString(t);return r<0?"-"+n+e.substr(1):n+e}return Gt(e)}const xn={identify:wn,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>An(e,2,2,n),stringify:e=>Sn(e,2,"0b")},_n={identify:wn,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>An(e,1,8,n),stringify:e=>Sn(e,8,"0")},Fn={identify:wn,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>An(e,0,10,n),stringify:Gt},Tn={identify:wn,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>An(e,2,16,n),stringify:e=>Sn(e,16,"0x")};class kn extends Ut{constructor(e){super(e),this.tag=kn.tag}add(e){let t;t=Re(e)?e:"object"==typeof e&&"key"in e&&"value"in e&&null===e.value?new It(e.key,null):new It(e,null),$t(this.items,t.key)||this.items.push(t)}get(e,t){const n=$t(this.items,e);return!t&&Re(n)?je(n.key)?n.key.value:n.key:n}set(e,t){if("boolean"!=typeof t)throw new Error("Expected boolean value for set(key, value) in a YAML set, not "+typeof t);const n=$t(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new It(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,n);throw new Error("Set items must all have null values")}}kn.tag="tag:yaml.org,2002:set";const Nn={collection:"map",identify:e=>e instanceof Set,nodeClass:kn,default:!1,tag:"tag:yaml.org,2002:set",resolve(e,t){if(Be(e)){if(e.hasAllNullValues(!0))return Object.assign(new kn,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e},createNode(e,t,n){const{replacer:r}=n,o=new kn(e);if(t&&Symbol.iterator in Object(t))for(let e of t)"function"==typeof r&&(e=r.call(t,e,e)),o.items.push(Pt(e,null,n));return o}};function On(e,t){const n=e[0],r="-"===n||"+"===n?e.substring(1):e,o=e=>t?BigInt(e):Number(e),i=r.replace(/_/g,"").split(":").reduce(((e,t)=>e*o(60)+o(t)),o(0));return"-"===n?o(-1)*i:i}function Ln(e){let{value:t}=e,n=e=>e;if("bigint"==typeof t)n=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return Gt(e);let r="";t<0&&(r="-",t*=n(-1));const o=n(60),i=[t%o];return t<60?i.unshift(0):(t=(t-i[0])/o,i.unshift(t%o),t>=60&&(t=(t-i[0])/o,i.unshift(t))),r+i.map((e=>e<10?"0"+String(e):String(e))).join(":").replace(/000000\d*$/,"")}const Mn={identify:e=>"bigint"==typeof e||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>On(e,n),stringify:Ln},Pn={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>On(e,!1),stringify:Ln},In={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){const t=e.match(In.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,n,r,o,i,s,a]=t.map(Number),u=t[7]?Number((t[7]+"00").substr(1,3)):0;let c=Date.UTC(n,r-1,o,i||0,s||0,a||0,u);const l=t[8];if(l&&"Z"!==l){let e=On(l,!1);Math.abs(e)<30&&(e*=60),c-=6e4*e}return new Date(c)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")},Bn=[Wt,Ht,zt,Yt,bn,vn,xn,_n,Fn,Tn,Dn,Cn,En,fn,gn,dn,Nn,Mn,Pn,In],Rn=new Map([["core",an],["failsafe",[Wt,Ht,zt]],["json",ln],["yaml11",Bn],["yaml-1.1",Bn]]),jn={binary:fn,bool:Jt,float:Zt,floatExp:Qt,floatNaN:Xt,floatTime:Pn,int:on,intHex:sn,intOct:rn,intTime:Mn,map:Wt,null:Yt,omap:gn,pairs:dn,seq:Ht,set:Nn,timestamp:In},Vn={"tag:yaml.org,2002:binary":fn,"tag:yaml.org,2002:omap":gn,"tag:yaml.org,2002:pairs":dn,"tag:yaml.org,2002:set":Nn,"tag:yaml.org,2002:timestamp":In};function $n(e,t){let n=Rn.get(t);if(!n){if(!Array.isArray(e)){const e=Array.from(Rn.keys()).filter((e=>"yaml11"!==e)).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}n=[]}if(Array.isArray(e))for(const t of e)n=n.concat(t);else"function"==typeof e&&(n=e(n.slice()));return n.map((e=>{if("string"!=typeof e)return e;const t=jn[e];if(t)return t;const n=Object.keys(jn).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown custom tag "${e}"; use one of ${n}`)}))}const Un=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class Wn{constructor({compat:e,customTags:t,merge:n,resolveKnownTags:r,schema:o,sortMapEntries:i,toStringDefaults:s}){this.compat=Array.isArray(e)?$n(e,"compat"):e?$n(null,e):null,this.merge=!!n,this.name="string"==typeof o&&o||"core",this.knownTags=r?Vn:{},this.tags=$n(t,this.name),this.toStringOptions=null!=s?s:null,Object.defineProperty(this,ke,{value:Wt}),Object.defineProperty(this,Oe,{value:zt}),Object.defineProperty(this,Le,{value:Ht}),this.sortMapEntries="function"==typeof i?i:!0===i?Un:null}clone(){const e=Object.create(Wn.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}}function Kn(e,t,n,r){if(r&&"object"==typeof r)if(Array.isArray(r))for(let t=0,n=r.length;t<n;++t){const n=r[t],o=Kn(e,r,String(t),n);void 0===o?delete r[t]:o!==n&&(r[t]=o)}else if(r instanceof Map)for(const t of Array.from(r.keys())){const n=r.get(t),o=Kn(e,r,t,n);void 0===o?r.delete(t):o!==n&&r.set(t,o)}else if(r instanceof Set)for(const t of Array.from(r)){const n=Kn(e,r,t,t);void 0===n?r.delete(t):n!==t&&(r.delete(t),r.add(n))}else for(const[t,n]of Object.entries(r)){const o=Kn(e,r,t,n);void 0===o?delete r[t]:o!==n&&(r[t]=o)}return e.call(t,n,r)}class qn{constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Me,{value:Te});let r=null;"function"==typeof t||Array.isArray(t)?r=t:void 0===n&&t&&(n=t,t=void 0);const o=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,uniqueKeys:!0,version:"1.2"},n);this.options=o;let{version:i}=o;(null==n?void 0:n.directives)?(this.directives=n.directives.atDocument(),this.directives.yaml.explicit&&(i=this.directives.yaml.version)):this.directives=new tt({version:i}),this.setSchema(i,n),this.contents=void 0===e?null:this.createNode(e,r,n)}clone(){const e=Object.create(qn.prototype,{[Me]:{value:Te}});return e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives&&(e.directives=this.directives.clone()),e.schema=this.schema.clone(),e.contents=Ue(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){Hn(this.contents)&&this.contents.add(e)}addIn(e,t){Hn(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){const n=rt(this);e.anchor=!t||n.has(t)?ot(t||"a",n):t}return new it(e.anchor)}createNode(e,t,n){let r;if("function"==typeof t)e=t.call({"":e},"",e),r=t;else if(Array.isArray(t)){const e=e=>"number"==typeof e||e instanceof String||e instanceof Number,n=t.filter(e).map(String);n.length>0&&(t=t.concat(n)),r=t}else void 0===n&&t&&(n=t,t=void 0);const{aliasDuplicateObjects:o,anchorPrefix:i,flow:s,keepUndefined:a,onTagObj:u,tag:c}=null!=n?n:{},{onAnchor:l,setAnchors:f,sourceObjects:p}=function(e,t){const n=[],r=new Map;let o=null;return{onAnchor:r=>{n.push(r),o||(o=rt(e));const i=ot(t,o);return o.add(i),i},setAnchors:()=>{for(const e of n){const t=r.get(e);if("object"!=typeof t||!t.anchor||!je(t.node)&&!$e(t.node)){const t=new Error("Failed to resolve repeated object (this should not happen)");throw t.source=e,t}t.node.anchor=t.anchor}},sourceObjects:r}}(this,i||"a"),h=lt(e,c,{aliasDuplicateObjects:null==o||o,keepUndefined:null!=a&&a,onAnchor:l,onTagObj:u,replacer:r,schema:this.schema,sourceObjects:p});return s&&$e(h)&&(h.flow=!0),f(),h}createPair(e,t,n={}){const r=this.createNode(e,null,n),o=this.createNode(t,null,n);return new It(r,o)}delete(e){return!!Hn(this.contents)&&this.contents.delete(e)}deleteIn(e){return pt(e)?null!=this.contents&&(this.contents=null,!0):!!Hn(this.contents)&&this.contents.deleteIn(e)}get(e,t){return $e(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return pt(e)?!t&&je(this.contents)?this.contents.value:this.contents:$e(this.contents)?this.contents.getIn(e,t):void 0}has(e){return!!$e(this.contents)&&this.contents.has(e)}hasIn(e){return pt(e)?void 0!==this.contents:!!$e(this.contents)&&this.contents.hasIn(e)}set(e,t){null==this.contents?this.contents=ft(this.schema,[e],t):Hn(this.contents)&&this.contents.set(e,t)}setIn(e,t){pt(e)?this.contents=t:null==this.contents?this.contents=ft(this.schema,Array.from(e),t):Hn(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){let n;switch("number"==typeof e&&(e=String(e)),e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new tt({version:"1.1"}),n={merge:!0,resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new tt({version:e}),n={merge:!1,resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,n=null;break;default:{const t=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else{if(!n)throw new Error("With a null YAML version, the { schema: Schema } option is required");this.schema=new Wn(Object.assign(n,t))}}toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:r,onAnchor:o,reviver:i}={}){const s={anchors:new Map,doc:this,keep:!e,mapAsMap:!0===n,mapKeyWarned:!1,maxAliasCount:"number"==typeof r?r:100,stringify:kt},a=at(this.contents,null!=t?t:"",s);if("function"==typeof o)for(const{count:e,res:t}of s.anchors.values())o(t,e);return"function"==typeof i?Kn(i,{"":a},"",a):a}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){const t=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${t}`)}return function(e,t){var n;const r=[];let o=!0===t.directives;if(!1!==t.directives&&e.directives){const t=e.directives.toString(e);t?(r.push(t),o=!0):e.directives.docStart&&(o=!0)}o&&r.push("---");const i=Tt(e,t),{commentString:s}=i.options;if(e.commentBefore){1!==r.length&&r.unshift("");const t=s(e.commentBefore);r.unshift(mt(t,""))}let a=!1,u=null;if(e.contents){if(Ue(e.contents)){if(e.contents.spaceBefore&&o&&r.push(""),e.contents.commentBefore){const t=s(e.contents.commentBefore);r.push(mt(t,""))}i.forceBlockIndent=!!e.comment,u=e.contents.comment}const t=u?void 0:()=>a=!0;let n=kt(e.contents,i,(()=>u=null),t);u&&(n+=gt(n,"",s(u))),"|"!==n[0]&&">"!==n[0]||"---"!==r[r.length-1]?r.push(n):r[r.length-1]=`--- ${n}`}else r.push(kt(e.contents,i));if(null===(n=e.directives)||void 0===n?void 0:n.docEnd)if(e.comment){const t=s(e.comment);t.includes("\n")?(r.push("..."),r.push(mt(t,""))):r.push(`... ${t}`)}else r.push("...");else{let t=e.comment;t&&a&&(t=t.replace(/^\n+/,"")),t&&(a&&!u||""===r[r.length-1]||r.push(""),r.push(mt(s(t),"")))}return r.join("\n")+"\n"}(this,e)}}function Hn(e){if($e(e))return!0;throw new Error("Expected a YAML collection as document contents")}class zn extends Error{constructor(e,t,n,r){super(),this.name=e,this.code=n,this.message=r,this.pos=t}}class Yn extends zn{constructor(e,t,n){super("YAMLParseError",e,t,n)}}class Jn extends zn{constructor(e,t,n){super("YAMLWarning",e,t,n)}}const Gn=(e,t)=>n=>{if(-1===n.pos[0])return;n.linePos=n.pos.map((e=>t.linePos(e)));const{line:r,col:o}=n.linePos[0];n.message+=` at line ${r}, column ${o}`;let i=o-1,s=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,"");if(i>=60&&s.length>80){const e=Math.min(i-39,s.length-79);s="…"+s.substring(e),i-=e-1}if(s.length>80&&(s=s.substring(0,79)+"…"),r>1&&/^ *$/.test(s.substring(0,i))){let n=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);n.length>80&&(n=n.substring(0,79)+"…\n"),s=n+s}if(/[^ ]/.test(s)){let e=1;const t=n.linePos[1];t&&t.line===r&&t.col>o&&(e=Math.min(t.col-o,80-i));const a=" ".repeat(i)+"^".repeat(e);n.message+=`:\n\n${s}\n${a}\n`}};function Xn(e,{flow:t,indicator:n,next:r,offset:o,onError:i,startOnNewline:s}){let a=!1,u=s,c=s,l="",f="",p=!1,h=!1,d=!1,m=null,g=null,y=null,b=null,v=null;for(const r of e)switch(d&&("space"!==r.type&&"newline"!==r.type&&"comma"!==r.type&&i(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),d=!1),r.type){case"space":!t&&u&&"doc-start"!==n&&"\t"===r.source[0]&&i(r,"TAB_AS_INDENT","Tabs are not allowed as indentation"),c=!0;break;case"comment":{c||i(r,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const e=r.source.substring(1)||" ";l?l+=f+e:l=e,f="",u=!1;break}case"newline":u?l?l+=r.source:a=!0:f+=r.source,u=!0,p=!0,(m||g)&&(h=!0),c=!0;break;case"anchor":m&&i(r,"MULTIPLE_ANCHORS","A node can have at most one anchor"),r.source.endsWith(":")&&i(r.offset+r.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),m=r,null===v&&(v=r.offset),u=!1,c=!1,d=!0;break;case"tag":g&&i(r,"MULTIPLE_TAGS","A node can have at most one tag"),g=r,null===v&&(v=r.offset),u=!1,c=!1,d=!0;break;case n:(m||g)&&i(r,"BAD_PROP_ORDER",`Anchors and tags must be after the ${r.source} indicator`),b&&i(r,"UNEXPECTED_TOKEN",`Unexpected ${r.source} in ${null!=t?t:"collection"}`),b=r,u=!1,c=!1;break;case"comma":if(t){y&&i(r,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),y=r,u=!1,c=!1;break}default:i(r,"UNEXPECTED_TOKEN",`Unexpected ${r.type} token`),u=!1,c=!1}const D=e[e.length-1],C=D?D.offset+D.source.length:o;return d&&r&&"space"!==r.type&&"newline"!==r.type&&"comma"!==r.type&&("scalar"!==r.type||""!==r.source)&&i(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),{comma:y,found:b,spaceBefore:a,comment:l,hasNewline:p,hasNewlineAfterProp:h,anchor:m,tag:g,end:C,start:null!=v?v:C}}function Qn(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes("\n"))return!0;if(e.end)for(const t of e.end)if("newline"===t.type)return!0;return!1;case"flow-collection":for(const t of e.items){for(const e of t.start)if("newline"===e.type)return!0;if(t.sep)for(const e of t.sep)if("newline"===e.type)return!0;if(Qn(t.key)||Qn(t.value))return!0}return!1;default:return!0}}function Zn(e,t,n){if("flow-collection"===(null==t?void 0:t.type)){const r=t.end[0];r.indent!==e||"]"!==r.source&&"}"!==r.source||!Qn(t)||n(r,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function er(e,t,n){const{uniqueKeys:r}=e.options;if(!1===r)return!1;const o="function"==typeof r?r:(t,n)=>t===n||je(t)&&je(n)&&t.value===n.value&&!("<<"===t.value&&e.schema.merge);return t.some((e=>o(e.key,n)))}const tr="All mapping items must start at the same column";function nr(e,t,n,r){let o="";if(e){let i=!1,s="";for(const a of e){const{source:e,type:u}=a;switch(u){case"space":i=!0;break;case"comment":{n&&!i&&r(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const t=e.substring(1)||" ";o?o+=s+t:o=t,s="";break}case"newline":o&&(s+=e),i=!0;break;default:r(a,"UNEXPECTED_TOKEN",`Unexpected ${u} at node end`)}t+=e.length}}return{comment:o,offset:t}}const rr="Block collections are not allowed within flow collections",or=e=>e&&("block-map"===e.type||"block-seq"===e.type);function ir(e){var t;let n,r;try{n=new RegExp("(.*?)(?<![ \t])[ \t]*\r?\n","sy"),r=new RegExp("[ \t]*(.*?)(?:(?<![ \t])[ \t]*)?\r?\n","sy")}catch(e){n=/(.*?)[ \t]*\r?\n/ys,r=/[ \t]*(.*?)[ \t]*\r?\n/ys}let o=n.exec(e);if(!o)return e;let i=o[1],s=" ",a=n.lastIndex;for(r.lastIndex=a;o=r.exec(e);)""===o[1]?"\n"===s?i+=s:s="\n":(i+=s+o[1],s=" "),a=r.lastIndex;const u=/[ \t]*(.*)/ys;return u.lastIndex=a,o=u.exec(e),i+s+(null!==(t=null==o?void 0:o[1])&&void 0!==t?t:"")}function sr(e,t){let n="",r=e[t+1];for(;!(" "!==r&&"\t"!==r&&"\n"!==r&&"\r"!==r||"\r"===r&&"\n"!==e[t+2]);)"\n"===r&&(n+="\n"),r=e[(t+=1)+1];return n||(n=" "),{fold:n,offset:t}}const ar={0:"\0",a:"",b:"\b",e:"",f:"\f",n:"\n",r:"\r",t:"\t",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\","\t":"\t"};function ur(e,t,n,r){const o=e.substr(t,n),i=o.length===n&&/^[0-9a-fA-F]+$/.test(o)?parseInt(o,16):NaN;if(isNaN(i)){const o=e.substr(t-2,n+2);return r(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${o}`),o}return String.fromCodePoint(i)}function cr(e,t,n,r){const{value:o,type:i,comment:s,range:a}="block-scalar"===t.type?function(e,t,n){const r=e.offset,o=function({offset:e,props:t},n,r){if("block-scalar-header"!==t[0].type)return r(t[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:o}=t[0],i=o[0];let s=0,a="",u=-1;for(let t=1;t<o.length;++t){const n=o[t];if(a||"-"!==n&&"+"!==n){const r=Number(n);!s&&r?s=r:-1===u&&(u=e+t)}else a=n}-1!==u&&r(u,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${o}`);let c=!1,l="",f=o.length;for(let e=1;e<t.length;++e){const o=t[e];switch(o.type){case"space":c=!0;case"newline":f+=o.source.length;break;case"comment":n&&!c&&r(o,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),f+=o.source.length,l=o.source.substring(1);break;case"error":r(o,"UNEXPECTED_TOKEN",o.message),f+=o.source.length;break;default:{r(o,"UNEXPECTED_TOKEN",`Unexpected token in block scalar header: ${o.type}`);const e=o.source;e&&"string"==typeof e&&(f+=e.length)}}}return{mode:i,indent:s,chomp:a,comment:l,length:f}}(e,t,n);if(!o)return{value:"",type:null,comment:"",range:[r,r,r]};const i=">"===o.mode?ct.BLOCK_FOLDED:ct.BLOCK_LITERAL,s=e.source?function(e){const t=e.split(/\n( *)/),n=t[0],r=n.match(/^( *)/),o=[(null==r?void 0:r[1])?[r[1],n.slice(r[1].length)]:["",n]];for(let e=1;e<t.length;e+=2)o.push([t[e],t[e+1]]);return o}(e.source):[];let a=s.length;for(let e=s.length-1;e>=0;--e){const t=s[e][1];if(""!==t&&"\r"!==t)break;a=e}if(0===a){const t="+"===o.chomp&&s.length>0?"\n".repeat(Math.max(1,s.length-1)):"";let n=r+o.length;return e.source&&(n+=e.source.length),{value:t,type:i,comment:o.comment,range:[r,n,n]}}let u=e.indent+o.indent,c=e.offset+o.length,l=0;for(let e=0;e<a;++e){const[t,r]=s[e];if(""!==r&&"\r"!==r){if(t.length<u){const e="Block scalars with more-indented leading empty lines must use an explicit indentation indicator";n(c+t.length,"MISSING_CHAR",e)}0===o.indent&&(u=t.length),l=e;break}0===o.indent&&t.length>u&&(u=t.length),c+=t.length+r.length+1}for(let e=s.length-1;e>=a;--e)s[e][0].length>u&&(a=e+1);let f="",p="",h=!1;for(let e=0;e<l;++e)f+=s[e][0].slice(u)+"\n";for(let e=l;e<a;++e){let[t,r]=s[e];c+=t.length+r.length+1;const a="\r"===r[r.length-1];if(a&&(r=r.slice(0,-1)),r&&t.length<u){const e="Block scalar lines must not be less indented than their "+(o.indent?"explicit indentation indicator":"first line");n(c-r.length-(a?2:1),"BAD_INDENT",e),t=""}i===ct.BLOCK_LITERAL?(f+=p+t.slice(u)+r,p="\n"):t.length>u||"\t"===r[0]?(" "===p?p="\n":h||"\n"!==p||(p="\n\n"),f+=p+t.slice(u)+r,p="\n",h=!0):""===r?"\n"===p?f+="\n":p="\n":(f+=p+r,p=" ",h=!1)}switch(o.chomp){case"-":break;case"+":for(let e=a;e<s.length;++e)f+="\n"+s[e][0].slice(u);"\n"!==f[f.length-1]&&(f+="\n");break;default:f+="\n"}const d=r+o.length+e.source.length;return{value:f,type:i,comment:o.comment,range:[r,d,d]}}(t,e.options.strict,r):function(e,t,n){const{offset:r,type:o,source:i,end:s}=e;let a,u;const c=(e,t,o)=>n(r+e,t,o);switch(o){case"scalar":a=ct.PLAIN,u=function(e,t){let n="";switch(e[0]){case"\t":n="a tab character";break;case",":n="flow indicator character ,";break;case"%":n="directive indicator character %";break;case"|":case">":n=`block scalar indicator ${e[0]}`;break;case"@":case"`":n=`reserved character ${e[0]}`}return n&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${n}`),ir(e)}(i,c);break;case"single-quoted-scalar":a=ct.QUOTE_SINGLE,u=function(e,t){return"'"===e[e.length-1]&&1!==e.length||t(e.length,"MISSING_CHAR","Missing closing 'quote"),ir(e.slice(1,-1)).replace(/''/g,"'")}(i,c);break;case"double-quoted-scalar":a=ct.QUOTE_DOUBLE,u=function(e,t){let n="";for(let r=1;r<e.length-1;++r){const o=e[r];if("\r"!==o||"\n"!==e[r+1])if("\n"===o){const{fold:t,offset:o}=sr(e,r);n+=t,r=o}else if("\\"===o){let o=e[++r];const i=ar[o];if(i)n+=i;else if("\n"===o)for(o=e[r+1];" "===o||"\t"===o;)o=e[1+ ++r];else if("\r"===o&&"\n"===e[r+1])for(o=e[1+ ++r];" "===o||"\t"===o;)o=e[1+ ++r];else if("x"===o||"u"===o||"U"===o){const i={x:2,u:4,U:8}[o];n+=ur(e,r+1,i,t),r+=i}else{const o=e.substr(r-1,2);t(r-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${o}`),n+=o}}else if(" "===o||"\t"===o){const t=r;let i=e[r+1];for(;" "===i||"\t"===i;)i=e[1+ ++r];"\n"===i||"\r"===i&&"\n"===e[r+2]||(n+=r>t?e.slice(t,r+1):o)}else n+=o}return'"'===e[e.length-1]&&1!==e.length||t(e.length,"MISSING_CHAR",'Missing closing "quote'),n}(i,c);break;default:return n(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${o}`),{value:"",type:null,comment:"",range:[r,r+i.length,r+i.length]}}const l=r+i.length,f=nr(s,l,t,n);return{value:u,type:a,comment:f.comment,range:[r,l,f.offset]}}(t,e.options.strict,r),u=n?e.directives.tagName(n.source,(e=>r(n,"TAG_RESOLVE_FAILED",e))):null,c=n&&u?function(e,t,n,r,o){var i;if("!"===n)return e[Oe];const s=[];for(const t of e.tags)if(!t.collection&&t.tag===n){if(!t.default||!t.test)return t;s.push(t)}for(const e of s)if(null===(i=e.test)||void 0===i?void 0:i.test(t))return e;const a=e.knownTags[n];return a&&!a.collection?(e.tags.push(Object.assign({},a,{default:!1,test:void 0})),a):(o(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,"tag:yaml.org,2002:str"!==n),e[Oe])}(e.schema,o,u,n,r):"scalar"===t.type?function({directives:e,schema:t},n,r,o){var i;const s=t.tags.find((e=>{var t;return e.default&&(null===(t=e.test)||void 0===t?void 0:t.test(n))}))||t[Oe];if(t.compat){const a=null!==(i=t.compat.find((e=>{var t;return e.default&&(null===(t=e.test)||void 0===t?void 0:t.test(n))})))&&void 0!==i?i:t[Oe];s.tag!==a.tag&&o(r,"TAG_RESOLVE_FAILED",`Value may be parsed as either ${e.tagString(s.tag)} or ${e.tagString(a.tag)}`,!0)}return s}(e,o,t,r):e.schema[Oe];let l;try{const i=c.resolve(o,(e=>r(null!=n?n:t,"TAG_RESOLVE_FAILED",e)),e.options);l=je(i)?i:new ct(i)}catch(e){const i=e instanceof Error?e.message:String(e);r(null!=n?n:t,"TAG_RESOLVE_FAILED",i),l=new ct(o)}return l.range=a,l.source=o,i&&(l.type=i),u&&(l.tag=u),c.format&&(l.format=c.format),s&&(l.comment=s),l}function lr(e,t,n){if(t){null===n&&(n=t.length);for(let r=n-1;r>=0;--r){let n=t[r];switch(n.type){case"space":case"comment":case"newline":e-=n.source.length;continue}for(n=t[++r];"space"===(null==n?void 0:n.type);)e+=n.source.length,n=t[++r];break}}return e}const fr={composeNode:pr,composeEmptyNode:hr};function pr(e,t,n,r){const{spaceBefore:o,comment:i,anchor:s,tag:a}=n;let u,c=!0;switch(t.type){case"alias":u=function({options:e},{offset:t,source:n,end:r},o){const i=new it(n.substring(1));""===i.source&&o(t,"BAD_ALIAS","Alias cannot be an empty string"),i.source.endsWith(":")&&o(t+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const s=t+n.length,a=nr(r,s,e.strict,o);return i.range=[t,s,a.offset],a.comment&&(i.comment=a.comment),i}(e,t,r),(s||a)&&r(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":u=cr(e,t,a,r),s&&(u.anchor=s.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":u=function(e,t,n,r,o){let i;switch(n.type){case"block-map":i=function({composeNode:e,composeEmptyNode:t},n,r,o){var i;const s=new Ut(n.schema);n.atRoot&&(n.atRoot=!1);let a=r.offset;for(const u of r.items){const{start:c,key:l,sep:f,value:p}=u,h=Xn(c,{indicator:"explicit-key-ind",next:null!=l?l:null==f?void 0:f[0],offset:a,onError:o,startOnNewline:!0}),d=!h.found;if(d){if(l&&("block-seq"===l.type?o(a,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in l&&l.indent!==r.indent&&o(a,"BAD_INDENT",tr)),!h.anchor&&!h.tag&&!f){h.comment&&(s.comment?s.comment+="\n"+h.comment:s.comment=h.comment);continue}(h.hasNewlineAfterProp||Qn(l))&&o(null!=l?l:c[c.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else(null===(i=h.found)||void 0===i?void 0:i.indent)!==r.indent&&o(a,"BAD_INDENT",tr);const m=h.end,g=l?e(n,l,h,o):t(n,m,c,null,h,o);n.schema.compat&&Zn(r.indent,l,o),er(n,s.items,g)&&o(m,"DUPLICATE_KEY","Map keys must be unique");const y=Xn(null!=f?f:[],{indicator:"map-value-ind",next:p,offset:g.range[2],onError:o,startOnNewline:!l||"block-scalar"===l.type});if(a=y.end,y.found){d&&("block-map"!==(null==p?void 0:p.type)||y.hasNewline||o(a,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&h.start<y.found.offset-1024&&o(g.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const i=p?e(n,p,y,o):t(n,a,f,null,y,o);n.schema.compat&&Zn(r.indent,p,o),a=i.range[2];const c=new It(g,i);n.options.keepSourceTokens&&(c.srcToken=u),s.items.push(c)}else{d&&o(g.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),y.comment&&(g.comment?g.comment+="\n"+y.comment:g.comment=y.comment);const e=new It(g);n.options.keepSourceTokens&&(e.srcToken=u),s.items.push(e)}}return s.range=[r.offset,a,a],s}(e,t,n,o);break;case"block-seq":i=function({composeNode:e,composeEmptyNode:t},n,r,o){const i=new Kt(n.schema);n.atRoot&&(n.atRoot=!1);let s=r.offset;for(const{start:a,value:u}of r.items){const c=Xn(a,{indicator:"seq-item-ind",next:u,offset:s,onError:o,startOnNewline:!0});if(s=c.end,!c.found){if(!(c.anchor||c.tag||u)){c.comment&&(i.comment=c.comment);continue}u&&"block-seq"===u.type?o(s,"BAD_INDENT","All sequence items must start at the same column"):o(s,"MISSING_CHAR","Sequence item without - indicator")}const l=u?e(n,u,c,o):t(n,s,a,null,c,o);n.schema.compat&&Zn(r.indent,u,o),s=l.range[2],i.items.push(l)}return i.range=[r.offset,s,s],i}(e,t,n,o);break;case"flow-collection":i=function({composeNode:e,composeEmptyNode:t},n,r,o){var i;const s="{"===r.start.source,a=s?"flow map":"flow sequence",u=s?new Ut(n.schema):new Kt(n.schema);u.flow=!0;const c=n.atRoot;c&&(n.atRoot=!1);let l=r.offset+r.start.source.length;for(let c=0;c<r.items.length;++c){const f=r.items[c],{start:p,key:h,sep:d,value:m}=f,g=Xn(p,{flow:a,indicator:"explicit-key-ind",next:null!=h?h:null==d?void 0:d[0],offset:l,onError:o,startOnNewline:!1});if(!g.found){if(!(g.anchor||g.tag||d||m)){0===c&&g.comma?o(g.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`):c<r.items.length-1&&o(g.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${a}`),g.comment&&(u.comment?u.comment+="\n"+g.comment:u.comment=g.comment),l=g.end;continue}!s&&n.options.strict&&Qn(h)&&o(h,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(0===c)g.comma&&o(g.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`);else if(g.comma||o(g.start,"MISSING_CHAR",`Missing , between ${a} items`),g.comment){let e="";e:for(const t of p)switch(t.type){case"comma":case"space":break;case"comment":e=t.source.substring(1);break e;default:break e}if(e){let t=u.items[u.items.length-1];Re(t)&&(t=null!==(i=t.value)&&void 0!==i?i:t.key),t.comment?t.comment+="\n"+e:t.comment=e,g.comment=g.comment.substring(e.length+1)}}if(s||d||g.found){const r=g.end,i=h?e(n,h,g,o):t(n,r,p,null,g,o);or(h)&&o(i.range,"BLOCK_IN_FLOW",rr);const c=Xn(null!=d?d:[],{flow:a,indicator:"map-value-ind",next:m,offset:i.range[2],onError:o,startOnNewline:!1});if(c.found){if(!s&&!g.found&&n.options.strict){if(d)for(const e of d){if(e===c.found)break;if("newline"===e.type){o(e,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}g.start<c.found.offset-1024&&o(c.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else m&&("source"in m&&m.source&&":"===m.source[0]?o(m,"MISSING_CHAR",`Missing space after : in ${a}`):o(c.start,"MISSING_CHAR",`Missing , or : between ${a} items`));const y=m?e(n,m,c,o):c.found?t(n,c.end,d,null,c,o):null;y?or(m)&&o(y.range,"BLOCK_IN_FLOW",rr):c.comment&&(i.comment?i.comment+="\n"+c.comment:i.comment=c.comment);const b=new It(i,y);if(n.options.keepSourceTokens&&(b.srcToken=f),s){const e=u;er(n,e.items,i)&&o(r,"DUPLICATE_KEY","Map keys must be unique"),e.items.push(b)}else{const e=new Ut(n.schema);e.flow=!0,e.items.push(b),u.items.push(e)}l=y?y.range[2]:c.end}else{const r=m?e(n,m,g,o):t(n,g.end,d,null,g,o);u.items.push(r),l=r.range[2],or(m)&&o(r.range,"BLOCK_IN_FLOW",rr)}}const f=s?"}":"]",[p,...h]=r.end;let d=l;if(p&&p.source===f)d=p.offset+p.source.length;else{const e=a[0].toUpperCase()+a.substring(1);o(l,c?"MISSING_CHAR":"BAD_INDENT",c?`${e} must end with a ${f}`:`${e} in block collection must be sufficiently indented and end with a ${f}`),p&&1!==p.source.length&&h.unshift(p)}if(h.length>0){const e=nr(h,d,n.options.strict,o);e.comment&&(u.comment?u.comment+="\n"+e.comment:u.comment=e.comment),u.range=[r.offset,d,e.offset]}else u.range=[r.offset,d,d];return u}(e,t,n,o)}if(!r)return i;const s=t.directives.tagName(r.source,(e=>o(r,"TAG_RESOLVE_FAILED",e)));if(!s)return i;const a=i.constructor;if("!"===s||s===a.tagName)return i.tag=a.tagName,i;const u=Be(i)?"map":"seq";let c=t.schema.tags.find((e=>e.collection===u&&e.tag===s));if(!c){const e=t.schema.knownTags[s];if(!e||e.collection!==u)return o(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${s}`,!0),i.tag=s,i;t.schema.tags.push(Object.assign({},e,{default:!1})),c=e}const l=c.resolve(i,(e=>o(r,"TAG_RESOLVE_FAILED",e)),t.options),f=Ue(l)?l:new ct(l);return f.range=i.range,f.tag=s,(null==c?void 0:c.format)&&(f.format=c.format),f}(fr,e,t,a,r),s&&(u.anchor=s.source.substring(1));break;default:r(t,"UNEXPECTED_TOKEN","error"===t.type?t.message:`Unsupported token (type: ${t.type})`),u=hr(e,t.offset,void 0,null,n,r),c=!1}return s&&""===u.anchor&&r(s,"BAD_ALIAS","Anchor cannot be an empty string"),o&&(u.spaceBefore=!0),i&&("scalar"===t.type&&""===t.source?u.comment=i:u.commentBefore=i),e.options.keepSourceTokens&&c&&(u.srcToken=t),u}function hr(e,t,n,r,{spaceBefore:o,comment:i,anchor:s,tag:a},u){const c=cr(e,{type:"scalar",offset:lr(t,n,r),indent:-1,source:""},a,u);return s&&(c.anchor=s.source.substring(1),""===c.anchor&&u(s,"BAD_ALIAS","Anchor cannot be an empty string")),o&&(c.spaceBefore=!0),i&&(c.comment=i),c}function dr(e){if("number"==typeof e)return[e,e+1];if(Array.isArray(e))return 2===e.length?e:[e[0],e[1]];const{offset:t,source:n}=e;return[t,t+("string"==typeof n?n.length:1)]}function mr(e){var t;let n="",r=!1,o=!1;for(let i=0;i<e.length;++i){const s=e[i];switch(s[0]){case"#":n+=(""===n?"":o?"\n\n":"\n")+(s.substring(1)||" "),r=!0,o=!1;break;case"%":"#"!==(null===(t=e[i+1])||void 0===t?void 0:t[0])&&(i+=1),r=!1;break;default:r||(o=!0),r=!1}}return{comment:n,afterEmptyLine:o}}class gr{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(e,t,n,r)=>{const o=dr(e);r?this.warnings.push(new Jn(o,t,n)):this.errors.push(new Yn(o,t,n))},this.directives=new tt({version:e.version||"1.2"}),this.options=e}decorate(e,t){const{comment:n,afterEmptyLine:r}=mr(this.prelude);if(n){const o=e.contents;if(t)e.comment=e.comment?`${e.comment}\n${n}`:n;else if(r||e.directives.docStart||!o)e.commentBefore=n;else if($e(o)&&!o.flow&&o.items.length>0){let e=o.items[0];Re(e)&&(e=e.key);const t=e.commentBefore;e.commentBefore=t?`${n}\n${t}`:n}else{const e=o.commentBefore;o.commentBefore=e?`${n}\n${e}`:n}}t?(Array.prototype.push.apply(e.errors,this.errors),Array.prototype.push.apply(e.warnings,this.warnings)):(e.errors=this.errors,e.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:mr(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,n=-1){for(const t of e)yield*this.next(t);yield*this.end(t,n)}*next(e){switch(e.type){case"directive":this.directives.add(e.source,((t,n,r)=>{const o=dr(e);o[0]+=t,this.onError(o,"BAD_DIRECTIVE",n,r)})),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{const t=function(e,t,{offset:n,start:r,value:o,end:i},s){const a=Object.assign({directives:t},e),u=new qn(void 0,a),c={atRoot:!0,directives:u.directives,options:u.options,schema:u.schema},l=Xn(r,{indicator:"doc-start",next:null!=o?o:null==i?void 0:i[0],offset:n,onError:s,startOnNewline:!0});l.found&&(u.directives.docStart=!0,!o||"block-map"!==o.type&&"block-seq"!==o.type||l.hasNewline||s(l.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),u.contents=o?pr(c,o,l,s):hr(c,l.end,r,null,l,s);const f=u.contents.range[2],p=nr(i,f,!1,s);return p.comment&&(u.comment=p.comment),u.range=[n,f,p.offset],u}(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{const t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,n=new Yn(dr(e),"UNEXPECTED_TOKEN",t);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case"doc-end":{if(!this.doc){const t="Unexpected doc-end without preceding document";this.errors.push(new Yn(dr(e),"UNEXPECTED_TOKEN",t));break}this.doc.directives.docEnd=!0;const t=nr(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){const e=this.doc.comment;this.doc.comment=e?`${e}\n${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new Yn(dr(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){const e=Object.assign({directives:this.directives},this.options),n=new qn(void 0,e);this.atDirectives&&this.onError(t,"MISSING_CHAR","Missing directives-end indicator line"),n.range=[0,t,t],this.decorate(n,!1),yield n}}}const yr=Symbol("break visit"),br=Symbol("skip children"),vr=Symbol("remove item");function Dr(e,t){"type"in e&&"document"===e.type&&(e={start:e.start,value:e.value}),Cr(Object.freeze([]),e,t)}function Cr(e,t,n){let r=n(t,e);if("symbol"==typeof r)return r;for(const o of["key","value"]){const i=t[o];if(i&&"items"in i){for(let t=0;t<i.items.length;++t){const r=Cr(Object.freeze(e.concat([[o,t]])),i.items[t],n);if("number"==typeof r)t=r-1;else{if(r===yr)return yr;r===vr&&(i.items.splice(t,1),t-=1)}}"function"==typeof r&&"key"===o&&(r=r(t,e))}}return"function"==typeof r?r(t,e):r}Dr.BREAK=yr,Dr.SKIP=br,Dr.REMOVE=vr,Dr.itemAtPath=(e,t)=>{let n=e;for(const[e,r]of t){const t=null==n?void 0:n[e];if(!t||!("items"in t))return;n=t.items[r]}return n},Dr.parentCollection=(e,t)=>{const n=Dr.itemAtPath(e,t.slice(0,-1)),r=t[t.length-1][0],o=null==n?void 0:n[r];if(o&&"items"in o)return o;throw new Error("Parent collection not found")};function Er(e){switch(e){case void 0:case" ":case"\n":case"\r":case"\t":return!0;default:return!1}}const wr="0123456789ABCDEFabcdef".split(""),Ar="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()".split(""),Sr=",[]{}".split(""),xr=" ,[]{}\n\r\t".split(""),_r=e=>!e||xr.includes(e);class Fr{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,t=!1){var n;e&&(this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null),this.atEnd=!t;let r=null!==(n=this.next)&&void 0!==n?n:"stream";for(;r&&(t||this.hasChars(1));)r=yield*this.parseNext(r)}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;" "===t||"\t"===t;)t=this.buffer[++e];return!t||"#"===t||"\n"===t||"\r"===t&&"\n"===this.buffer[e+1]}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let n=0;for(;" "===t;)t=this.buffer[++n+e];if("\r"===t){const t=this.buffer[n+e+1];if("\n"===t||!t&&!this.atEnd)return e+n+1}return"\n"===t||n>=this.indentNext||!t&&!this.atEnd?e+n:-1}if("-"===t||"."===t){const t=this.buffer.substr(e,3);if(("---"===t||"..."===t)&&Er(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;return("number"!=typeof e||-1!==e&&e<this.pos)&&(e=this.buffer.indexOf("\n",this.pos),this.lineEndPos=e),-1===e?this.atEnd?this.buffer.substring(this.pos):null:("\r"===this.buffer[e-1]&&(e-=1),this.buffer.substring(this.pos,e))}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=e,null}peek(e){return this.buffer.substr(this.pos,e)}*parseNext(e){switch(e){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let e=this.getLine();if(null===e)return this.setNext("stream");if("\ufeff"===e[0]&&(yield*this.pushCount(1),e=e.substring(1)),"%"===e[0]){let t=e.length;const n=e.indexOf("#");if(-1!==n){const r=e[n-1];" "!==r&&"\t"!==r||(t=n-1)}for(;;){const n=e[t-1];if(" "!==n&&"\t"!==n)break;t-=1}const r=(yield*this.pushCount(t))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-r),this.pushNewline(),"stream"}if(this.atLineEnd()){const t=yield*this.pushSpaces(!0);return yield*this.pushCount(e.length-t),yield*this.pushNewline(),"stream"}return yield"",yield*this.parseLineStart()}*parseLineStart(){const e=this.charAt(0);if(!e&&!this.atEnd)return this.setNext("line-start");if("-"===e||"."===e){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const e=this.peek(3);if("---"===e&&Er(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,"doc";if("..."===e&&Er(this.charAt(3)))return yield*this.pushCount(3),"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!Er(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if(("-"===e||"?"===e||":"===e)&&Er(t)){const e=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=e,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const e=this.getLine();if(null===e)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(_r),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return t+=(yield*this.parseBlockScalarHeader()),t+=(yield*this.pushSpaces(!0)),yield*this.pushCount(e.length-t),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t,n=-1;do{e=yield*this.pushNewline(),e>0?(t=yield*this.pushSpaces(!1),this.indentValue=n=t):t=0,t+=(yield*this.pushSpaces(!0))}while(e+t>0);const r=this.getLine();if(null===r)return this.setNext("flow");if((-1!==n&&n<this.indentNext&&"#"!==r[0]||0===n&&(r.startsWith("---")||r.startsWith("..."))&&Er(r[3]))&&(n!==this.indentNext-1||1!==this.flowLevel||"]"!==r[0]&&"}"!==r[0]))return this.flowLevel=0,yield"",yield*this.parseLineStart();let o=0;for(;","===r[o];)o+=(yield*this.pushCount(1)),o+=(yield*this.pushSpaces(!0)),this.flowKey=!1;switch(o+=(yield*this.pushIndicators()),r[o]){case void 0:return"flow";case"#":return yield*this.pushCount(r.length-o),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(_r),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const e=this.charAt(1);if(this.flowKey||Er(e)||","===e)return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){const e=this.charAt(0);let t=this.buffer.indexOf(e,this.pos+1);if("'"===e)for(;-1!==t&&"'"===this.buffer[t+1];)t=this.buffer.indexOf("'",t+2);else for(;-1!==t;){let e=0;for(;"\\"===this.buffer[t-1-e];)e+=1;if(e%2==0)break;t=this.buffer.indexOf('"',t+1)}const n=this.buffer.substring(0,t);let r=n.indexOf("\n",this.pos);if(-1!==r){for(;-1!==r;){const e=this.continueScalar(r+1);if(-1===e)break;r=n.indexOf("\n",e)}-1!==r&&(t=r-("\r"===n[r-1]?2:1))}if(-1===t){if(!this.atEnd)return this.setNext("quoted-scalar");t=this.buffer.length}return yield*this.pushToIndex(t+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let e=this.pos;for(;;){const t=this.buffer[++e];if("+"===t)this.blockScalarKeep=!0;else if(t>"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if("-"!==t)break}return yield*this.pushUntil((e=>Er(e)||"#"===e))}*parseBlockScalar(){let e,t=this.pos-1,n=0;e:for(let r=this.pos;e=this.buffer[r];++r)switch(e){case" ":n+=1;break;case"\n":t=r,n=0;break;case"\r":{const e=this.buffer[r+1];if(!e&&!this.atEnd)return this.setNext("block-scalar");if("\n"===e)break}default:break e}if(!e&&!this.atEnd)return this.setNext("block-scalar");if(n>=this.indentNext){-1===this.blockScalarIndent?this.indentNext=n:this.indentNext+=this.blockScalarIndent;do{const e=this.continueScalar(t+1);if(-1===e)break;t=this.buffer.indexOf("\n",e)}while(-1!==t);if(-1===t){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}if(!this.blockScalarKeep)for(;;){let e=t-1,r=this.buffer[e];"\r"===r&&(r=this.buffer[--e]);const o=e;for(;" "===r||"\t"===r;)r=this.buffer[--e];if(!("\n"===r&&e>=this.pos&&e+1+n>o))break;t=e}return yield"",yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const e=this.flowLevel>0;let t,n=this.pos-1,r=this.pos-1;for(;t=this.buffer[++r];)if(":"===t){const t=this.buffer[r+1];if(Er(t)||e&&","===t)break;n=r}else if(Er(t)){let o=this.buffer[r+1];if("\r"===t&&("\n"===o?(r+=1,t="\n",o=this.buffer[r+1]):n=r),"#"===o||e&&Sr.includes(o))break;if("\n"===t){const e=this.continueScalar(r+1);if(-1===e)break;r=Math.max(r,e-2)}}else{if(e&&Sr.includes(t))break;n=r}return t||this.atEnd?(yield"",yield*this.pushToIndex(n+1,!0),e?"flow":"doc"):this.setNext("plain-scalar")}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){const n=this.buffer.slice(this.pos,e);return n?(yield n,this.pos+=n.length,n.length):(t&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(_r))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const e=this.flowLevel>0,t=this.charAt(1);if(Er(t)||e&&Sr.includes(t))return e?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if("<"===this.charAt(1)){let e=this.pos+2,t=this.buffer[e];for(;!Er(t)&&">"!==t;)t=this.buffer[++e];return yield*this.pushToIndex(">"===t?e+1:e,!1)}{let e=this.pos+1,t=this.buffer[e];for(;t;)if(Ar.includes(t))t=this.buffer[++e];else{if("%"!==t||!wr.includes(this.buffer[e+1])||!wr.includes(this.buffer[e+2]))break;t=this.buffer[e+=3]}return yield*this.pushToIndex(e,!1)}}*pushNewline(){const e=this.buffer[this.pos];return"\n"===e?yield*this.pushCount(1):"\r"===e&&"\n"===this.charAt(1)?yield*this.pushCount(2):0}*pushSpaces(e){let t,n=this.pos-1;do{t=this.buffer[++n]}while(" "===t||e&&"\t"===t);const r=n-this.pos;return r>0&&(yield this.buffer.substr(this.pos,r),this.pos=n),r}*pushUntil(e){let t=this.pos,n=this.buffer[t];for(;!e(n);)n=this.buffer[++t];return yield*this.pushToIndex(t,!1)}}class Tr{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,n=this.lineStarts.length;for(;t<n;){const r=t+n>>1;this.lineStarts[r]<e?t=r+1:n=r}return this.lineStarts[t]===e?{line:t+1,col:1}:0===t?{line:0,col:e}:{line:t,col:e-this.lineStarts[t-1]+1}}}}function kr(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function Nr(e){for(let t=0;t<e.length;++t)switch(e[t].type){case"space":case"comment":case"newline":break;default:return t}return-1}function Or(e){switch(null==e?void 0:e.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function Lr(e){var t;switch(e.type){case"document":return e.start;case"block-map":{const n=e.items[e.items.length-1];return null!==(t=n.sep)&&void 0!==t?t:n.start}case"block-seq":return e.items[e.items.length-1].start;default:return[]}}function Mr(e){var t;if(0===e.length)return[];let n=e.length;e:for(;--n>=0;)switch(e[n].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;"space"===(null===(t=e[++n])||void 0===t?void 0:t.type););return e.splice(n,e.length)}function Pr(e){if("flow-seq-start"===e.start.type)for(const t of e.items)!t.sep||t.value||kr(t.start,"explicit-key-ind")||kr(t.sep,"map-value-ind")||(t.key&&(t.value=t.key),delete t.key,Or(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}class Ir{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new Fr,this.onNewLine=e}*parse(e,t=!1){this.onNewLine&&0===this.offset&&this.onNewLine(0);for(const n of this.lexer.lex(e,t))yield*this.next(n);t||(yield*this.end())}*next(e){if(this.source=e,this.atScalar)return this.atScalar=!1,yield*this.step(),void(this.offset+=e.length);const t=function(e){switch(e){case"\ufeff":return"byte-order-mark";case"":return"doc-mode";case"":return"flow-error-end";case"":return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case"\n":case"\r\n":return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case"\t":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}(e);if(t)if("scalar"===t)this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=t,yield*this.step(),t){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case"space":this.atNewLine&&" "===e[0]&&(this.indent+=e.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=e.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=e.length}else{const t=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:t,source:e}),this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const e=this.peek(1);if("doc-end"!==this.type||e&&"doc-end"===e.type){if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}else{for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source})}}peek(e){return this.stack[this.stack.length-e]}*pop(e){const t=null!=e?e:this.stack.pop();if(t)if(0===this.stack.length)yield t;else{const e=this.peek(1);switch("block-scalar"===t.type?t.indent="indent"in e?e.indent:0:"flow-collection"===t.type&&"document"===e.type&&(t.indent=0),"flow-collection"===t.type&&Pr(t),e.type){case"document":e.value=t;break;case"block-scalar":e.props.push(t);break;case"block-map":{const n=e.items[e.items.length-1];if(n.value)return e.items.push({start:[],key:t,sep:[]}),void(this.onKeyLine=!0);if(!n.sep)return Object.assign(n,{key:t,sep:[]}),void(this.onKeyLine=!kr(n.start,"explicit-key-ind"));n.value=t;break}case"block-seq":{const n=e.items[e.items.length-1];n.value?e.items.push({start:[],value:t}):n.value=t;break}case"flow-collection":{const n=e.items[e.items.length-1];return void(!n||n.value?e.items.push({start:[],key:t,sep:[]}):n.sep?n.value=t:Object.assign(n,{key:t,sep:[]}))}default:yield*this.pop(),yield*this.pop(t)}if(!("document"!==e.type&&"block-map"!==e.type&&"block-seq"!==e.type||"block-map"!==t.type&&"block-seq"!==t.type)){const n=t.items[t.items.length-1];n&&!n.sep&&!n.value&&n.start.length>0&&-1===Nr(n.start)&&(0===t.indent||n.start.every((e=>"comment"!==e.type||e.indent<t.indent)))&&("document"===e.type?e.end=n.start:e.items.push({start:n.start}),t.items.splice(-1,1))}}else{const e="Tried to pop an empty stack";yield{type:"error",offset:this.offset,source:"",message:e}}}*stream(){switch(this.type){case"directive-line":return void(yield{type:"directive",offset:this.offset,source:this.source});case"byte-order-mark":case"space":case"comment":case"newline":return void(yield this.sourceToken);case"doc-mode":case"doc-start":{const e={type:"document",offset:this.offset,start:[]};return"doc-start"===this.type&&e.start.push(this.sourceToken),void this.stack.push(e)}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case"doc-start":return void(-1!==Nr(e.start)?(yield*this.pop(),yield*this.step()):e.start.push(this.sourceToken));case"anchor":case"tag":case"space":case"comment":case"newline":return void e.start.push(this.sourceToken)}const t=this.startBlockValue(e);t?this.stack.push(t):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(e){if("map-value-ind"===this.type){const t=Mr(Lr(this.peek(2)));let n;e.end?(n=e.end,n.push(this.sourceToken),delete e.end):n=[this.sourceToken];const r={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:t,key:e,sep:n}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=r}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case"space":case"comment":case"newline":return void e.props.push(this.sourceToken);case"scalar":if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let e=this.source.indexOf("\n")+1;for(;0!==e;)this.onNewLine(this.offset+e),e=this.source.indexOf("\n",e)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){var t;const n=e.items[e.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,n.value){const t="end"in n.value?n.value.end:void 0,r=Array.isArray(t)?t[t.length-1]:void 0;"comment"===(null==r?void 0:r.type)?null==t||t.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)e.items.push({start:[this.sourceToken]});else if(n.sep)n.sep.push(this.sourceToken);else{if(this.atIndentedComment(n.start,e.indent)){const r=e.items[e.items.length-2],o=null===(t=null==r?void 0:r.value)||void 0===t?void 0:t.end;if(Array.isArray(o))return Array.prototype.push.apply(o,n.start),o.push(this.sourceToken),void e.items.pop()}n.start.push(this.sourceToken)}return}if(this.indent>=e.indent){const t=!this.onKeyLine&&this.indent===e.indent&&n.sep;let r=[];if(t&&n.sep&&!n.value){const t=[];for(let r=0;r<n.sep.length;++r){const o=n.sep[r];switch(o.type){case"newline":t.push(r);break;case"space":break;case"comment":o.indent>e.indent&&(t.length=0);break;default:t.length=0}}t.length>=2&&(r=n.sep.splice(t[1]))}switch(this.type){case"anchor":case"tag":return void(t||n.value?(r.push(this.sourceToken),e.items.push({start:r}),this.onKeyLine=!0):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken));case"explicit-key-ind":return n.sep||kr(n.start,"explicit-key-ind")?t||n.value?(r.push(this.sourceToken),e.items.push({start:r})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]}):n.start.push(this.sourceToken),void(this.onKeyLine=!0);case"map-value-ind":if(kr(n.start,"explicit-key-ind"))if(n.sep)if(n.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(kr(n.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]});else if(Or(n.key)&&!kr(n.sep,"newline")){const e=Mr(n.start),t=n.key,r=n.sep;r.push(this.sourceToken),delete n.key,delete n.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:t,sep:r}]})}else r.length>0?n.sep=n.sep.concat(r,this.sourceToken):n.sep.push(this.sourceToken);else if(kr(n.start,"newline"))Object.assign(n,{key:null,sep:[this.sourceToken]});else{const e=Mr(n.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}else n.sep?n.value||t?e.items.push({start:r,key:null,sep:[this.sourceToken]}):kr(n.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});return void(this.onKeyLine=!0);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const o=this.flowScalar(this.type);return void(t||n.value?(e.items.push({start:r,key:o,sep:[]}),this.onKeyLine=!0):n.sep?this.stack.push(o):(Object.assign(n,{key:o,sep:[]}),this.onKeyLine=!0))}default:{const o=this.startBlockValue(e);if(o)return t&&"block-seq"!==o.type&&kr(n.start,"explicit-key-ind")&&e.items.push({start:r}),void this.stack.push(o)}}}yield*this.pop(),yield*this.step()}*blockSequence(e){var t;const n=e.items[e.items.length-1];switch(this.type){case"newline":if(n.value){const t="end"in n.value?n.value.end:void 0,r=Array.isArray(t)?t[t.length-1]:void 0;"comment"===(null==r?void 0:r.type)?null==t||t.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(n.start,e.indent)){const r=e.items[e.items.length-2],o=null===(t=null==r?void 0:r.value)||void 0===t?void 0:t.end;if(Array.isArray(o))return Array.prototype.push.apply(o,n.start),o.push(this.sourceToken),void e.items.pop()}n.start.push(this.sourceToken)}return;case"anchor":case"tag":if(n.value||this.indent<=e.indent)break;return void n.start.push(this.sourceToken);case"seq-item-ind":if(this.indent!==e.indent)break;return void(n.value||kr(n.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken))}if(this.indent>e.indent){const t=this.startBlockValue(e);if(t)return void this.stack.push(t)}yield*this.pop(),yield*this.step()}*flowCollection(e){const t=e.items[e.items.length-1];if("flow-error-end"===this.type){let e;do{yield*this.pop(),e=this.peek(1)}while(e&&"flow-collection"===e.type)}else if(0===e.end.length){switch(this.type){case"comma":case"explicit-key-ind":return void(!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken));case"map-value-ind":return void(!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]}));case"space":case"comment":case"newline":case"anchor":case"tag":return void(!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken));case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const n=this.flowScalar(this.type);return void(!t||t.value?e.items.push({start:[],key:n,sep:[]}):t.sep?this.stack.push(n):Object.assign(t,{key:n,sep:[]}))}case"flow-map-end":case"flow-seq-end":return void e.end.push(this.sourceToken)}const n=this.startBlockValue(e);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{const t=this.peek(2);if("block-map"===t.type&&("map-value-ind"===this.type&&t.indent===e.indent||"newline"===this.type&&!t.items[t.items.length-1].sep))yield*this.pop(),yield*this.step();else if("map-value-ind"===this.type&&"flow-collection"!==t.type){const n=Mr(Lr(t));Pr(e);const r=e.end.splice(1,e.end.length);r.push(this.sourceToken);const o={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:r}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=o}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf("\n")+1;for(;0!==e;)this.onNewLine(this.offset+e),e=this.source.indexOf("\n",e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const t=Mr(Lr(e));return t.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t}]}}case"map-value-ind":{this.onKeyLine=!0;const t=Mr(Lr(e));return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return"comment"===this.type&&!(this.indent<=t)&&e.every((e=>"newline"===e.type||"space"===e.type))}*documentEnd(e){"doc-mode"!==this.type&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop())}}}function Br(e,t,n){let r;"function"==typeof t?r=t:void 0===n&&t&&"object"==typeof t&&(n=t);const o=function(e,t={}){const{lineCounter:n,prettyErrors:r}=function(e){const t=!1!==e.prettyErrors;return{lineCounter:e.lineCounter||t&&new Tr||null,prettyErrors:t}}(t),o=new Ir(null==n?void 0:n.addNewLine),i=new gr(t);let s=null;for(const t of i.compose(o.parse(e),!0,e.length))if(s){if("silent"!==s.options.logLevel){s.errors.push(new Yn(t.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}else s=t;return r&&n&&(s.errors.forEach(Gn(e,n)),s.warnings.forEach(Gn(e,n))),s}(e,n);if(!o)return null;if(o.warnings.forEach((e=>Nt(o.options.logLevel,e))),o.errors.length>0){if("silent"!==o.options.logLevel)throw o.errors[0];o.errors=[]}return o.toJS(Object.assign({reviver:r},n))}var Rr,jr,Vr,$r=o(6470),Ur=o(2167),Wr=o(2526),Kr=o.t(Wr,2);function qr(e,t){if(e.length<t.length)return!1;for(var n=0;n<t.length;n++)if(e[n]!==t[n])return!1;return!0}function Hr(e,t){var n=e.length-t.length;return n>0?e.lastIndexOf(t)===n:0===n&&e===t}function zr(e){return qr(e,"(?i)")?new RegExp(e.substring(4),"i"):new RegExp(e)}function Yr(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(typeof e!=typeof t)return!1;if("object"!=typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;var n,r;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(!Yr(e[n],t[n]))return!1}else{var o=[];for(r in e)o.push(r);o.sort();var i=[];for(r in t)i.push(r);if(i.sort(),!Yr(o,i))return!1;for(n=0;n<o.length;n++)if(!Yr(e[o[n]],t[o[n]]))return!1}return!0}function Jr(e){return"number"==typeof e}function Gr(e){return void 0!==e}function Xr(e){return"boolean"==typeof e}function Qr(e,t,...n){return function(e,t){return 0===t.length?e:e.replace(/{(\d+)}/g,((e,n)=>{const[r]=n;return void 0===t[r]?e:t[r]}))}(t,n)}function Zr(){return Qr}(jr=Rr||(Rr={}))[jr.Undefined=0]="Undefined",jr[jr.EnumValueMismatch=1]="EnumValueMismatch",jr[jr.Deprecated=2]="Deprecated",jr[jr.UnexpectedEndOfComment=257]="UnexpectedEndOfComment",jr[jr.UnexpectedEndOfString=258]="UnexpectedEndOfString",jr[jr.UnexpectedEndOfNumber=259]="UnexpectedEndOfNumber",jr[jr.InvalidUnicode=260]="InvalidUnicode",jr[jr.InvalidEscapeCharacter=261]="InvalidEscapeCharacter",jr[jr.InvalidCharacter=262]="InvalidCharacter",jr[jr.PropertyExpected=513]="PropertyExpected",jr[jr.CommaExpected=514]="CommaExpected",jr[jr.ColonExpected=515]="ColonExpected",jr[jr.ValueExpected=516]="ValueExpected",jr[jr.CommaOrCloseBacketExpected=517]="CommaOrCloseBacketExpected",jr[jr.CommaOrCloseBraceExpected=518]="CommaOrCloseBraceExpected",jr[jr.TrailingComma=519]="TrailingComma",jr[jr.DuplicateKey=520]="DuplicateKey",jr[jr.CommentNotPermitted=521]="CommentNotPermitted",jr[jr.SchemaResolveError=768]="SchemaResolveError",(Vr||(Vr={})).LATEST={textDocument:{completion:{completionItem:{documentationFormat:[X.Markdown,X.PlainText],commitCharactersSupport:!0}}}};var eo,to,no,ro,oo=(eo=function(e,t){return(eo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}eo(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),io=Zr(),so={"color-hex":{errorMessage:io("colorHexFormatWarning","Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA."),pattern:/^#([0-9A-Fa-f]{3,4}|([0-9A-Fa-f]{2}){3,4})$/},"date-time":{errorMessage:io("dateTimeFormatWarning","String is not a RFC3339 date-time."),pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},date:{errorMessage:io("dateFormatWarning","String is not a RFC3339 date."),pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/i},time:{errorMessage:io("timeFormatWarning","String is not a RFC3339 time."),pattern:/^([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},email:{errorMessage:io("emailFormatWarning","String is not an e-mail address."),pattern:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/}},ao=function(){function e(e,t,n){void 0===n&&(n=0),this.offset=t,this.length=n,this.parent=e}return Object.defineProperty(e.prototype,"children",{get:function(){return[]},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return"type: "+this.type+" ("+this.offset+"/"+this.length+")"+(this.parent?" parent: {"+this.parent.toString()+"}":"")},e}();function uo(e){return Xr(e)?e?{}:{not:{}}:e}oo((function(e,t){var n=ro.call(this,e,t)||this;return n.type="null",n.value=null,n}),ro=ao),function(e){oo((function(t,n,r){var o=e.call(this,t,r)||this;return o.type="boolean",o.value=n,o}),e)}(ao),function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.type="array",r.items=[],r}oo(t,e),Object.defineProperty(t.prototype,"children",{get:function(){return this.items},enumerable:!1,configurable:!0})}(ao),function(e){oo((function(t,n){var r=e.call(this,t,n)||this;return r.type="number",r.isInteger=!0,r.value=Number.NaN,r}),e)}(ao),function(e){oo((function(t,n,r){var o=e.call(this,t,n,r)||this;return o.type="string",o.value="",o}),e)}(ao),function(e){function t(t,n,r){var o=e.call(this,t,n)||this;return o.type="property",o.colonOffset=-1,o.keyNode=r,o}oo(t,e),Object.defineProperty(t.prototype,"children",{get:function(){return this.valueNode?[this.keyNode,this.valueNode]:[this.keyNode]},enumerable:!1,configurable:!0})}(ao),function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.type="object",r.properties=[],r}oo(t,e),Object.defineProperty(t.prototype,"children",{get:function(){return this.properties},enumerable:!1,configurable:!0})}(ao),(no=to||(to={}))[no.Key=0]="Key",no[no.Enum=1]="Enum";var co=function(){function e(e,t){void 0===e&&(e=-1),this.focusOffset=e,this.exclude=t,this.schemas=[]}return e.prototype.add=function(e){this.schemas.push(e)},e.prototype.merge=function(e){Array.prototype.push.apply(this.schemas,e.schemas)},e.prototype.include=function(e){return(-1===this.focusOffset||mo(e,this.focusOffset))&&e!==this.exclude},e.prototype.newSub=function(){return new e(-1,this.exclude)},e}(),lo=function(){function e(){}return Object.defineProperty(e.prototype,"schemas",{get:function(){return[]},enumerable:!1,configurable:!0}),e.prototype.add=function(e){},e.prototype.merge=function(e){},e.prototype.include=function(e){return!0},e.prototype.newSub=function(){return this},e.instance=new e,e}(),fo=function(){function e(){this.problems=[],this.propertiesMatches=0,this.propertiesValueMatches=0,this.primaryValueMatches=0,this.enumValueMatch=!1,this.enumValues=void 0}return e.prototype.hasProblems=function(){return!!this.problems.length},e.prototype.mergeAll=function(e){for(var t=0,n=e;t<n.length;t++){var r=n[t];this.merge(r)}},e.prototype.merge=function(e){this.problems=this.problems.concat(e.problems)},e.prototype.mergeEnumValues=function(e){if(!this.enumValueMatch&&!e.enumValueMatch&&this.enumValues&&e.enumValues){this.enumValues=this.enumValues.concat(e.enumValues);for(var t=0,n=this.problems;t<n.length;t++){var r=n[t];r.code===Rr.EnumValueMismatch&&(r.message=io("enumWarning","Value is not accepted. Valid values: {0}.",this.enumValues.map((function(e){return JSON.stringify(e)})).join(", ")))}}},e.prototype.mergePropertyMatch=function(e){this.merge(e),this.propertiesMatches++,(e.enumValueMatch||!e.hasProblems()&&e.propertiesMatches)&&this.propertiesValueMatches++,e.enumValueMatch&&e.enumValues&&1===e.enumValues.length&&this.primaryValueMatches++},e.prototype.compare=function(e){var t=this.hasProblems();return t!==e.hasProblems()?t?-1:1:this.enumValueMatch!==e.enumValueMatch?e.enumValueMatch?-1:1:this.primaryValueMatches!==e.primaryValueMatches?this.primaryValueMatches-e.primaryValueMatches:this.propertiesValueMatches!==e.propertiesValueMatches?this.propertiesValueMatches-e.propertiesValueMatches:this.propertiesMatches-e.propertiesMatches},e}();function po(e){return b(e)}function ho(e){return y(e)}function mo(e,t,n){return void 0===n&&(n=!1),t>=e.offset&&t<e.offset+e.length||n&&t===e.offset+e.length}function go(e,t,n,r){if(e&&r.include(e)){var o=e;switch(o.type){case"object":!function(e,t,n,r){for(var o=Object.create(null),i=[],s=0,a=e.properties;s<a.length;s++)o[j=(g=a[s]).keyNode.value]=g.valueNode,i.push(j);if(Array.isArray(t.required))for(var u=0,c=t.required;u<c.length;u++)if(!o[w=c[u]]){var l=e.parent&&"property"===e.parent.type&&e.parent.keyNode,f=l?{offset:l.offset,length:l.length}:{offset:e.offset,length:1};n.problems.push({location:f,message:io("MissingRequiredPropWarning",'Missing property "{0}".',w)})}var p=function(e){for(var t=i.indexOf(e);t>=0;)i.splice(t,1),t=i.indexOf(e)};if(t.properties)for(var h=0,d=Object.keys(t.properties);h<d.length;h++){p(w=d[h]);var m=t.properties[w];if(T=o[w])if(Xr(m))if(m)n.propertiesMatches++,n.propertiesValueMatches++;else{var g=T.parent;n.problems.push({location:{offset:g.keyNode.offset,length:g.keyNode.length},message:t.errorMessage||io("DisallowedExtraPropWarning","Property {0} is not allowed.",w)})}else go(T,m,x=new fo,r),n.mergePropertyMatch(x)}if(t.patternProperties)for(var y=0,b=Object.keys(t.patternProperties);y<b.length;y++)for(var v=b[y],D=zr(v),C=0,E=i.slice(0);C<E.length;C++){var w=E[C];D.test(w)&&(p(w),(T=o[w])&&(Xr(m=t.patternProperties[v])?m?(n.propertiesMatches++,n.propertiesValueMatches++):(g=T.parent,n.problems.push({location:{offset:g.keyNode.offset,length:g.keyNode.length},message:t.errorMessage||io("DisallowedExtraPropWarning","Property {0} is not allowed.",w)})):(go(T,m,x=new fo,r),n.mergePropertyMatch(x))))}if("object"==typeof t.additionalProperties){for(var A=0,S=i;A<S.length;A++)if(T=o[w=S[A]]){var x=new fo;go(T,t.additionalProperties,x,r),n.mergePropertyMatch(x)}}else if(!1===t.additionalProperties&&i.length>0)for(var _=0,F=i;_<F.length;_++){var T;(T=o[w=F[_]])&&(g=T.parent,n.problems.push({location:{offset:g.keyNode.offset,length:g.keyNode.length},message:t.errorMessage||io("DisallowedExtraPropWarning","Property {0} is not allowed.",w)}))}if(Jr(t.maxProperties)&&e.properties.length>t.maxProperties&&n.problems.push({location:{offset:e.offset,length:e.length},message:io("MaxPropWarning","Object has more properties than limit of {0}.",t.maxProperties)}),Jr(t.minProperties)&&e.properties.length<t.minProperties&&n.problems.push({location:{offset:e.offset,length:e.length},message:io("MinPropWarning","Object has fewer properties than the required number of {0}",t.minProperties)}),t.dependencies)for(var k=0,N=Object.keys(t.dependencies);k<N.length;k++)if(o[j=N[k]]){var O=t.dependencies[j];if(Array.isArray(O))for(var L=0,M=O;L<M.length;L++){var P=M[L];o[P]?n.propertiesValueMatches++:n.problems.push({location:{offset:e.offset,length:e.length},message:io("RequiredDependentPropWarning","Object is missing property {0} required by property {1}.",P,j)})}else(m=uo(O))&&(go(e,m,x=new fo,r),n.mergePropertyMatch(x))}var I=uo(t.propertyNames);if(I)for(var B=0,R=e.properties;B<R.length;B++){var j;(j=R[B].keyNode)&&go(j,I,n,lo.instance)}}(o,t,n,r);break;case"array":!function(e,t,n,r){if(Array.isArray(t.items)){for(var o=t.items,i=0;i<o.length;i++){var s=uo(o[i]),a=new fo;(p=e.items[i])?(go(p,s,a,r),n.mergePropertyMatch(a)):e.items.length>=o.length&&n.propertiesValueMatches++}if(e.items.length>o.length)if("object"==typeof t.additionalItems)for(var u=o.length;u<e.items.length;u++)a=new fo,go(e.items[u],t.additionalItems,a,r),n.mergePropertyMatch(a);else!1===t.additionalItems&&n.problems.push({location:{offset:e.offset,length:e.length},message:io("additionalItemsWarning","Array has too many items according to schema. Expected {0} or fewer.",o.length)})}else{var c=uo(t.items);if(c)for(var l=0,f=e.items;l<f.length;l++){var p;go(p=f[l],c,a=new fo,r),n.mergePropertyMatch(a)}}var h=uo(t.contains);if(h&&(e.items.some((function(e){var t=new fo;return go(e,h,t,lo.instance),!t.hasProblems()}))||n.problems.push({location:{offset:e.offset,length:e.length},message:t.errorMessage||io("requiredItemMissingWarning","Array does not contain required item.")})),Jr(t.minItems)&&e.items.length<t.minItems&&n.problems.push({location:{offset:e.offset,length:e.length},message:io("minItemsWarning","Array has too few items. Expected {0} or more.",t.minItems)}),Jr(t.maxItems)&&e.items.length>t.maxItems&&n.problems.push({location:{offset:e.offset,length:e.length},message:io("maxItemsWarning","Array has too many items. Expected {0} or fewer.",t.maxItems)}),!0===t.uniqueItems){var d=po(e);d.some((function(e,t){return t!==d.lastIndexOf(e)}))&&n.problems.push({location:{offset:e.offset,length:e.length},message:io("uniqueItemsWarning","Array has duplicate items.")})}}(o,t,n,r);break;case"string":!function(e,t,n,r){if(Jr(t.minLength)&&e.value.length<t.minLength&&n.problems.push({location:{offset:e.offset,length:e.length},message:io("minLengthWarning","String is shorter than the minimum length of {0}.",t.minLength)}),Jr(t.maxLength)&&e.value.length>t.maxLength&&n.problems.push({location:{offset:e.offset,length:e.length},message:io("maxLengthWarning","String is longer than the maximum length of {0}.",t.maxLength)}),"string"==typeof t.pattern&&(zr(t.pattern).test(e.value)||n.problems.push({location:{offset:e.offset,length:e.length},message:t.patternErrorMessage||t.errorMessage||io("patternWarning",'String does not match the pattern of "{0}".',t.pattern)})),t.format)switch(t.format){case"uri":case"uri-reference":var o=void 0;if(e.value){var i=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(e.value);i?i[2]||"uri"!==t.format||(o=io("uriSchemeMissing","URI with a scheme is expected.")):o=io("uriMissing","URI is expected.")}else o=io("uriEmpty","URI expected.");o&&n.problems.push({location:{offset:e.offset,length:e.length},message:t.patternErrorMessage||t.errorMessage||io("uriFormatWarning","String is not a URI: {0}",o)});break;case"color-hex":case"date-time":case"date":case"time":case"email":var s=so[t.format];e.value&&s.pattern.exec(e.value)||n.problems.push({location:{offset:e.offset,length:e.length},message:t.patternErrorMessage||t.errorMessage||s.errorMessage})}}(o,t,n);break;case"number":!function(e,t,n,r){var o=e.value;function i(e){var t,n=/^(-?\d+)(?:\.(\d+))?(?:e([-+]\d+))?$/.exec(e.toString());return n&&{value:Number(n[1]+(n[2]||"")),multiplier:((null===(t=n[2])||void 0===t?void 0:t.length)||0)-(parseInt(n[3])||0)}}if(Jr(t.multipleOf)){var s=-1;if(Number.isInteger(t.multipleOf))s=o%t.multipleOf;else{var a=i(t.multipleOf),u=i(o);if(a&&u){var c=Math.pow(10,Math.abs(u.multiplier-a.multiplier));u.multiplier<a.multiplier?u.value*=c:a.value*=c,s=u.value%a.value}}0!==s&&n.problems.push({location:{offset:e.offset,length:e.length},message:io("multipleOfWarning","Value is not divisible by {0}.",t.multipleOf)})}function l(e,t){return Jr(t)?t:Xr(t)&&t?e:void 0}function f(e,t){if(!Xr(t)||!t)return e}var p=l(t.minimum,t.exclusiveMinimum);Jr(p)&&o<=p&&n.problems.push({location:{offset:e.offset,length:e.length},message:io("exclusiveMinimumWarning","Value is below the exclusive minimum of {0}.",p)});var h=l(t.maximum,t.exclusiveMaximum);Jr(h)&&o>=h&&n.problems.push({location:{offset:e.offset,length:e.length},message:io("exclusiveMaximumWarning","Value is above the exclusive maximum of {0}.",h)});var d=f(t.minimum,t.exclusiveMinimum);Jr(d)&&o<d&&n.problems.push({location:{offset:e.offset,length:e.length},message:io("minimumWarning","Value is below the minimum of {0}.",d)});var m=f(t.maximum,t.exclusiveMaximum);Jr(m)&&o>m&&n.problems.push({location:{offset:e.offset,length:e.length},message:io("maximumWarning","Value is above the maximum of {0}.",m)})}(o,t,n);break;case"property":return go(o.valueNode,t,n,r)}!function(){function e(e){return o.type===e||"integer"===e&&"number"===o.type&&o.isInteger}if(Array.isArray(t.type)?t.type.some(e)||n.problems.push({location:{offset:o.offset,length:o.length},message:t.errorMessage||io("typeArrayMismatchWarning","Incorrect type. Expected one of {0}.",t.type.join(", "))}):t.type&&(e(t.type)||n.problems.push({location:{offset:o.offset,length:o.length},message:t.errorMessage||io("typeMismatchWarning",'Incorrect type. Expected "{0}".',t.type)})),Array.isArray(t.allOf))for(var i=0,s=t.allOf;i<s.length;i++){var a=s[i];go(o,uo(a),n,r)}var u=uo(t.not);if(u){var c=new fo,l=r.newSub();go(o,u,c,l),c.hasProblems()||n.problems.push({location:{offset:o.offset,length:o.length},message:io("notSchemaWarning","Matches a schema that is not allowed.")});for(var f=0,p=l.schemas;f<p.length;f++){var h=p[f];h.inverted=!h.inverted,r.add(h)}}var d=function(e,t){for(var i=[],s=void 0,a=0,u=e;a<u.length;a++){var c=uo(u[a]),l=new fo,f=r.newSub();if(go(o,c,l,f),l.hasProblems()||i.push(c),s)if(t||l.hasProblems()||s.validationResult.hasProblems()){var p=l.compare(s.validationResult);p>0?s={schema:c,validationResult:l,matchingSchemas:f}:0===p&&(s.matchingSchemas.merge(f),s.validationResult.mergeEnumValues(l))}else s.matchingSchemas.merge(f),s.validationResult.propertiesMatches+=l.propertiesMatches,s.validationResult.propertiesValueMatches+=l.propertiesValueMatches;else s={schema:c,validationResult:l,matchingSchemas:f}}return i.length>1&&t&&n.problems.push({location:{offset:o.offset,length:1},message:io("oneOfWarning","Matches multiple schemas when only one must validate.")}),s&&(n.merge(s.validationResult),n.propertiesMatches+=s.validationResult.propertiesMatches,n.propertiesValueMatches+=s.validationResult.propertiesValueMatches,r.merge(s.matchingSchemas)),i.length};Array.isArray(t.anyOf)&&d(t.anyOf,!1),Array.isArray(t.oneOf)&&d(t.oneOf,!0);var m,g,y,b,v,D,C=function(e){var t=new fo,i=r.newSub();go(o,uo(e),t,i),n.merge(t),n.propertiesMatches+=t.propertiesMatches,n.propertiesValueMatches+=t.propertiesValueMatches,r.merge(i)},E=uo(t.if);if(E&&(m=E,g=uo(t.then),y=uo(t.else),b=uo(m),v=new fo,D=r.newSub(),go(o,b,v,D),r.merge(D),v.hasProblems()?y&&C(y):g&&C(g)),Array.isArray(t.enum)){for(var w=po(o),A=!1,S=0,x=t.enum;S<x.length;S++){if(Yr(w,x[S])){A=!0;break}}n.enumValues=t.enum,n.enumValueMatch=A,A||n.problems.push({location:{offset:o.offset,length:o.length},code:Rr.EnumValueMismatch,message:t.errorMessage||io("enumWarning","Value is not accepted. Valid values: {0}.",t.enum.map((function(e){return JSON.stringify(e)})).join(", "))})}Gr(t.const)&&(Yr(w=po(o),t.const)?n.enumValueMatch=!0:(n.problems.push({location:{offset:o.offset,length:o.length},code:Rr.EnumValueMismatch,message:t.errorMessage||io("constWarning","Value must be {0}.",JSON.stringify(t.const))}),n.enumValueMatch=!1),n.enumValues=[t.const]),t.deprecationMessage&&o.parent&&n.problems.push({location:{offset:o.parent.offset,length:o.parent.length},severity:L.Warning,message:t.deprecationMessage,code:Rr.Deprecated})}(),r.add({node:o,schema:t})}}function yo(e,t){if("string"!=typeof e)throw new TypeError("Expected a string");for(var n,r=String(e),o="",i=!!t&&!!t.extended,s=!!t&&!!t.globstar,a=!1,u=t&&"string"==typeof t.flags?t.flags:"",c=0,l=r.length;c<l;c++)switch(n=r[c]){case"/":case"$":case"^":case"+":case".":case"(":case")":case"=":case"!":case"|":o+="\\"+n;break;case"?":if(i){o+=".";break}case"[":case"]":if(i){o+=n;break}case"{":if(i){a=!0,o+="(";break}case"}":if(i){a=!1,o+=")";break}case",":if(a){o+="|";break}o+="\\"+n;break;case"*":for(var f=r[c-1],p=1;"*"===r[c+1];)p++,c++;var h=r[c+1];s?!(p>1)||"/"!==f&&void 0!==f&&"{"!==f&&","!==f||"/"!==h&&void 0!==h&&","!==h&&"}"!==h?o+="([^/]*)":("/"===h?c++:"/"===f&&o.endsWith("\\/")&&(o=o.substr(0,o.length-2)),o+="((?:[^/]*(?:/|$))*)"):o+=".*";break;default:o+=n}return u&&~u.indexOf("g")||(o="^"+o+"$"),new RegExp(o,u)}!function(){function e(e,t,n){void 0===t&&(t=[]),void 0===n&&(n=[]),this.root=e,this.syntaxErrors=t,this.comments=n}e.prototype.getNodeFromOffset=function(e,t){if(void 0===t&&(t=!1),this.root)return g(this.root,e,t)},e.prototype.visit=function(e){if(this.root){var t=function(n){var r=e(n),o=n.children;if(Array.isArray(o))for(var i=0;i<o.length&&r;i++)r=t(o[i]);return r};t(this.root)}},e.prototype.validate=function(e,t,n){if(void 0===n&&(n=L.Warning),this.root&&t){var r=new fo;return go(this.root,t,r,lo.instance),r.problems.map((function(t){var r,o=A.create(e.positionAt(t.location.offset),e.positionAt(t.location.offset+t.location.length));return I.create(o,t.message,null!==(r=t.severity)&&void 0!==r?r:n,t.code)}))}},e.prototype.getMatchingSchemas=function(e,t,n){void 0===t&&(t=-1);var r=new co(t,n);return this.root&&e&&go(this.root,e,new fo,r),r.schemas}}();var bo=Zr(),vo=function(){function e(e,t){this.globWrappers=[];try{for(var n=0,r=e;n<r.length;n++){var o=r[n],i="!"!==o[0];i||(o=o.substring(1)),o.length>0&&("/"===o[0]&&(o=o.substring(1)),this.globWrappers.push({regexp:yo("**/"+o,{extended:!0,globstar:!0}),include:i}))}this.uris=t}catch(e){this.globWrappers.length=0,this.uris=[]}}return e.prototype.matchesPattern=function(e){for(var t=!1,n=0,r=this.globWrappers;n<r.length;n++){var o=r[n],i=o.regexp,s=o.include;i.test(e)&&(t=s)}return t},e.prototype.getURIs=function(){return this.uris},e}(),Do=function(){function e(e,t,n){this.service=e,this.url=t,this.dependencies={},n&&(this.unresolvedSchema=this.service.promise.resolve(new Co(n)))}return e.prototype.getUnresolvedSchema=function(){return this.unresolvedSchema||(this.unresolvedSchema=this.service.loadSchema(this.url)),this.unresolvedSchema},e.prototype.getResolvedSchema=function(){var e=this;return this.resolvedSchema||(this.resolvedSchema=this.getUnresolvedSchema().then((function(t){return e.service.resolveSchemaContent(t,e.url,e.dependencies)}))),this.resolvedSchema},e.prototype.clearSchema=function(){this.resolvedSchema=void 0,this.unresolvedSchema=void 0,this.dependencies={}},e}(),Co=function(e,t){void 0===t&&(t=[]),this.schema=e,this.errors=t},Eo=function(){function e(e,t){void 0===t&&(t=[]),this.schema=e,this.errors=t}return e.prototype.getSection=function(e){var t=this.getSectionRecursive(e,this.schema);if(t)return uo(t)},e.prototype.getSectionRecursive=function(e,t){if(!t||"boolean"==typeof t||0===e.length)return t;var n=e.shift();if(t.properties&&(t.properties[n],1))return this.getSectionRecursive(e,t.properties[n]);if(t.patternProperties)for(var r=0,o=Object.keys(t.patternProperties);r<o.length;r++){var i=o[r];if(zr(i).test(n))return this.getSectionRecursive(e,t.patternProperties[i])}else{if("object"==typeof t.additionalProperties)return this.getSectionRecursive(e,t.additionalProperties);if(n.match("[0-9]+"))if(Array.isArray(t.items)){var s=parseInt(n,10);if(!isNaN(s)&&t.items[s])return this.getSectionRecursive(e,t.items[s])}else if(t.items)return this.getSectionRecursive(e,t.items)}},e}(),wo=function(){function e(e,t,n){this.contextService=t,this.requestService=e,this.promiseConstructor=n||Promise,this.callOnDispose=[],this.contributionSchemas={},this.contributionAssociations=[],this.schemasById={},this.filePatternAssociations=[],this.registeredSchemasIds={}}return e.prototype.getRegisteredSchemaIds=function(e){return Object.keys(this.registeredSchemasIds).filter((function(t){var n=v.parse(t).scheme;return"schemaservice"!==n&&(!e||e(n))}))},Object.defineProperty(e.prototype,"promise",{get:function(){return this.promiseConstructor},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){for(;this.callOnDispose.length>0;)this.callOnDispose.pop()()},e.prototype.onResourceChange=function(e){var t=this;this.cachedSchemaForResource=void 0;for(var n=!1,r=[e=So(e)],o=Object.keys(this.schemasById).map((function(e){return t.schemasById[e]}));r.length;)for(var i=r.pop(),s=0;s<o.length;s++){var a=o[s];a&&(a.url===i||a.dependencies[i])&&(a.url!==i&&r.push(a.url),a.clearSchema(),o[s]=void 0,n=!0)}return n},e.prototype.setSchemaContributions=function(e){if(e.schemas){var t=e.schemas;for(var n in t){var r=So(n);this.contributionSchemas[r]=this.addSchemaHandle(r,t[n])}}if(Array.isArray(e.schemaAssociations))for(var o=0,i=e.schemaAssociations;o<i.length;o++){var s=i[o],a=s.uris.map(So),u=this.addFilePatternAssociation(s.pattern,a);this.contributionAssociations.push(u)}},e.prototype.addSchemaHandle=function(e,t){var n=new Do(this,e,t);return this.schemasById[e]=n,n},e.prototype.getOrAddSchemaHandle=function(e,t){return this.schemasById[e]||this.addSchemaHandle(e,t)},e.prototype.addFilePatternAssociation=function(e,t){var n=new vo(e,t);return this.filePatternAssociations.push(n),n},e.prototype.registerExternalSchema=function(e,t,n){var r=So(e);return this.registeredSchemasIds[r]=!0,this.cachedSchemaForResource=void 0,t&&this.addFilePatternAssociation(t,[e]),n?this.addSchemaHandle(r,n):this.getOrAddSchemaHandle(r)},e.prototype.clearExternalSchemas=function(){for(var e in this.schemasById={},this.filePatternAssociations=[],this.registeredSchemasIds={},this.cachedSchemaForResource=void 0,this.contributionSchemas)this.schemasById[e]=this.contributionSchemas[e],this.registeredSchemasIds[e]=!0;for(var t=0,n=this.contributionAssociations;t<n.length;t++){var r=n[t];this.filePatternAssociations.push(r)}},e.prototype.getResolvedSchema=function(e){var t=So(e),n=this.schemasById[t];return n?n.getResolvedSchema():this.promise.resolve(void 0)},e.prototype.loadSchema=function(e){if(!this.requestService){var t=bo("json.schema.norequestservice","Unable to load schema from '{0}'. No schema request service available",xo(e));return this.promise.resolve(new Co({},[t]))}return this.requestService(e).then((function(t){if(!t){var n=bo("json.schema.nocontent","Unable to load schema from '{0}': No content.",xo(e));return new Co({},[n])}var r,o=[];r=m(t,o);var i=o.length?[bo("json.schema.invalidFormat","Unable to parse content from '{0}': Parse error at offset {1}.",xo(e),o[0].offset)]:[];return new Co(r,i)}),(function(t){var n=t.toString(),r=t.toString().split("Error: ");return r.length>1&&(n=r[1]),Hr(n,".")&&(n=n.substr(0,n.length-1)),new Co({},[bo("json.schema.nocontent","Unable to load schema from '{0}': {1}.",xo(e),n)])}))},e.prototype.resolveSchemaContent=function(e,t,n){var r=this,o=e.errors.slice(0),i=e.schema;if(i.$schema){var s=So(i.$schema);if("http://json-schema.org/draft-03/schema"===s)return this.promise.resolve(new Eo({},[bo("json.schema.draft03.notsupported","Draft-03 schemas are not supported.")]));"https://json-schema.org/draft/2019-09/schema"===s&&o.push(bo("json.schema.draft201909.notsupported","Draft 2019-09 schemas are not yet fully supported."))}var a=this.contextService,u=function(e,t,n,r){var i=r?decodeURIComponent(r):void 0,s=function(e,t){if(!t)return e;var n=e;return"/"===t[0]&&(t=t.substr(1)),t.split("/").some((function(e){return e=e.replace(/~1/g,"/").replace(/~0/g,"~"),!(n=n[e])})),n}(t,i);if(s)for(var a in s)s.hasOwnProperty(a)&&!e.hasOwnProperty(a)&&(e[a]=s[a]);else o.push(bo("json.schema.invalidref","$ref '{0}' in '{1}' can not be resolved.",i,n))},c=function(e,t,n,i,s){a&&!/^[A-Za-z][A-Za-z0-9+\-.+]*:\/\/.*/.test(t)&&(t=a.resolveRelativePath(t,i)),t=So(t);var c=r.getOrAddSchemaHandle(t);return c.getUnresolvedSchema().then((function(r){if(s[t]=!0,r.errors.length){var i=n?t+"#"+n:t;o.push(bo("json.schema.problemloadingref","Problems loading reference '{0}': {1}",i,r.errors[0]))}return u(e,r.schema,t,n),l(e,r.schema,t,c.dependencies)}))},l=function(e,t,n,o){if(!e||"object"!=typeof e)return Promise.resolve(null);for(var i=[e],s=[],a=[],l=function(e){for(var r=[];e.$ref;){var s=e.$ref,l=s.split("#",2);if(delete e.$ref,l[0].length>0)return void a.push(c(e,l[0],l[1],n,o));-1===r.indexOf(s)&&(u(e,t,n,l[1]),r.push(s))}!function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e;n<r.length;n++){var o=r[n];"object"==typeof o&&i.push(o)}}(e.items,e.additionalItems,e.additionalProperties,e.not,e.contains,e.propertyNames,e.if,e.then,e.else),function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e;n<r.length;n++){var o=r[n];if("object"==typeof o)for(var s in o){var a=o[s];"object"==typeof a&&i.push(a)}}}(e.definitions,e.properties,e.patternProperties,e.dependencies),function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e;n<r.length;n++){var o=r[n];if(Array.isArray(o))for(var s=0,a=o;s<a.length;s++){var u=a[s];"object"==typeof u&&i.push(u)}}}(e.anyOf,e.allOf,e.oneOf,e.items)};i.length;){var f=i.pop();s.indexOf(f)>=0||(s.push(f),l(f))}return r.promise.all(a)};return l(i,i,t,n).then((function(e){return new Eo(i,o)}))},e.prototype.getSchemaForResource=function(e,t){if(t&&t.root&&"object"===t.root.type){var n=t.root.properties.filter((function(e){return"$schema"===e.keyNode.value&&e.valueNode&&"string"===e.valueNode.type}));if(n.length>0){var r=n[0].valueNode;if(r&&"string"===r.type){var o=po(r);if(o&&qr(o,".")&&this.contextService&&(o=this.contextService.resolveRelativePath(o,e)),o){var i=So(o);return this.getOrAddSchemaHandle(i).getResolvedSchema()}}}}if(this.cachedSchemaForResource&&this.cachedSchemaForResource.resource===e)return this.cachedSchemaForResource.resolvedSchema;for(var s=Object.create(null),a=[],u=function(e){try{return v.parse(e).with({fragment:null,query:null}).toString()}catch(t){return e}}(e),c=0,l=this.filePatternAssociations;c<l.length;c++){var f=l[c];if(f.matchesPattern(u))for(var p=0,h=f.getURIs();p<h.length;p++){var d=h[p];s[d]||(a.push(d),s[d]=!0)}}var m=a.length>0?this.createCombinedSchema(e,a).getResolvedSchema():this.promise.resolve(void 0);return this.cachedSchemaForResource={resource:e,resolvedSchema:m},m},e.prototype.createCombinedSchema=function(e,t){if(1===t.length)return this.getOrAddSchemaHandle(t[0]);var n="schemaservice://combinedSchema/"+encodeURIComponent(e),r={allOf:t.map((function(e){return{$ref:e}}))};return this.addSchemaHandle(n,r)},e.prototype.getMatchingSchemas=function(e,t,n){if(n){var r=n.id||"schemaservice://untitled/matchingSchemas/"+Ao++;return this.resolveSchemaContent(new Co(n),r,{}).then((function(e){return t.getMatchingSchemas(e.schema).filter((function(e){return!e.inverted}))}))}return this.getSchemaForResource(e.uri,t).then((function(e){return e?t.getMatchingSchemas(e.schema).filter((function(e){return!e.inverted})):[]}))},e}(),Ao=0;function So(e){try{return v.parse(e).toString()}catch(t){return e}}function xo(e){try{var t=v.parse(e);if("file"===t.scheme)return t.fsPath}catch(e){}return e}function _o(e){try{return new RegExp(e,"u")}catch(t){return new RegExp(e)}}function Fo(e,t){for(let n=++t;n<e.length;n++){const r=e.charAt(n);if(" "!==r&&"\t"!==r)return t;t++}return t}function To(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(typeof e!=typeof t)return!1;if("object"!=typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;let n,r;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(!To(e[n],t[n]))return!1}else{const o=[];for(r in e)o.push(r);o.sort();const i=[];for(r in t)i.push(r);if(i.sort(),!To(o,i))return!1;for(n=0;n<o.length;n++)if(!To(e[o[n]],t[o[n]]))return!1}return!0}function ko(e){return"number"==typeof e}function No(e){return void 0!==e}function Oo(e){return"boolean"==typeof e}function Lo(e){return"string"==typeof e}function Mo(e){var t;return e?e instanceof Error&&null!==(t=e.stack)&&void 0!==t?t:e.toString():"null"}function Po(e){return e.title?e.title:e.$id?Io(e.$id):e.$ref||e._$ref?Io(e.$ref||e._$ref):e.closestTitle||(Array.isArray(e.type)?e.type.join(" | "):e.type)}function Io(e){const t=e.match(/^(?:.*\/)?(.*?)(?:\.schema\.json)?$/);let n=!!t&&t[1];return n||(n="typeNotFound",console.error(`$ref (${e}) not parsed properly`)),n}function Bo(e,t,n){if(null!==e&&"object"==typeof e){var r=t+"\t";if(Array.isArray(e)){if(0===e.length)return"[]";for(var o="[\n",i=0;i<e.length;i++)o+=r+Bo(e[i],r,n),i<e.length-1&&(o+=","),o+="\n";return o+(t+"]")}var s=Object.keys(e);if(0===s.length)return"{}";for(o="{\n",i=0;i<s.length;i++){var a=s[i];o+=r+JSON.stringify(a)+": "+Bo(e[a],r,n),i<s.length-1&&(o+=","),o+="\n"}return o+(t+"}")}return n(e)}var Ro=Zr();!function(){function e(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=Promise),void 0===r&&(r={}),this.schemaService=e,this.contributions=t,this.promiseConstructor=n,this.clientCapabilities=r}e.prototype.doResolve=function(e){for(var t=this.contributions.length-1;t>=0;t--){var n=this.contributions[t].resolveCompletion;if(n){var r=n(e);if(r)return r}}return this.promiseConstructor.resolve(e)},e.prototype.doComplete=function(e,t,n){var r=this,o={items:[],isIncomplete:!1},i=e.getText(),s=e.offsetAt(t),a=n.getNodeFromOffset(s,!0);if(this.isInComment(e,a?a.offset:0,s))return Promise.resolve(o);if(a&&s===a.offset+a.length&&s>0){var u=i[s-1];("object"===a.type&&"}"===u||"array"===a.type&&"]"===u)&&(a=a.parent)}var c,l=this.getCurrentWord(e,s);if(!a||"string"!==a.type&&"number"!==a.type&&"boolean"!==a.type&&"null"!==a.type){var f=s-l.length;f>0&&'"'===i[f-1]&&f--,c=A.create(e.positionAt(f),t)}else c=A.create(e.positionAt(a.offset),e.positionAt(a.offset+a.length));var p={},h={add:function(e){var t=e.label,n=p[t];if(n)n.documentation||(n.documentation=e.documentation),n.detail||(n.detail=e.detail);else{if((t=t.replace(/[\n]/g,"↵")).length>60){var r=t.substr(0,57).trim()+"...";p[r]||(t=r)}c&&void 0!==e.insertText&&(e.textEdit=R.replace(c,e.insertText)),e.label=t,p[t]=e,o.items.push(e)}},setAsIncomplete:function(){o.isIncomplete=!0},error:function(e){console.error(e)},log:function(e){console.log(e)},getNumberOfProposals:function(){return o.items.length}};return this.schemaService.getSchemaForResource(e.uri,n).then((function(t){var u=[],f=!0,d="",m=void 0;if(a&&"string"===a.type){var g=a.parent;g&&"property"===g.type&&g.keyNode===a&&(f=!g.valueNode,m=g,d=i.substr(a.offset+1,a.length-2),g&&(a=g.parent))}if(a&&"object"===a.type){if(a.offset===s)return o;a.properties.forEach((function(e){m&&m===e||(p[e.keyNode.value]=oe.create("__"))}));var y="";f&&(y=r.evaluateSeparatorAfter(e,e.offsetAt(c.end))),t?r.getPropertyCompletions(t,n,a,f,y,h):r.getSchemaLessPropertyCompletions(n,a,d,h);var b=ho(a);r.contributions.forEach((function(t){var n=t.collectPropertyCompletions(e.uri,b,l,f,""===y,h);n&&u.push(n)})),!t&&l.length>0&&'"'!==i.charAt(s-l.length-1)&&(h.add({kind:Z.Property,label:r.getLabelForValue(l),insertText:r.getInsertTextForProperty(l,void 0,!1,y),insertTextFormat:ee.Snippet,documentation:""}),h.setAsIncomplete())}var v={};return t?r.getValueCompletions(t,n,a,s,e,h,v):r.getSchemaLessValueCompletions(n,a,s,e,h),r.contributions.length>0&&r.getContributedValueCompletions(n,a,s,e,h,u),r.promiseConstructor.all(u).then((function(){if(0===h.getNumberOfProposals()){var t=s;!a||"string"!==a.type&&"number"!==a.type&&"boolean"!==a.type&&"null"!==a.type||(t=a.offset+a.length);var n=r.evaluateSeparatorAfter(e,t);r.addFillerValueCompletions(v,n,h)}return o}))}))},e.prototype.getPropertyCompletions=function(e,t,n,r,o,i){var s=this;t.getMatchingSchemas(e.schema,n.offset).forEach((function(e){if(e.node===n&&!e.inverted){var t=e.schema.properties;t&&Object.keys(t).forEach((function(e){var n=t[e];if("object"==typeof n&&!n.deprecationMessage&&!n.doNotSuggest){var a={kind:Z.Property,label:e,insertText:s.getInsertTextForProperty(e,n,r,o),insertTextFormat:ee.Snippet,filterText:s.getFilterTextForValue(e),documentation:s.fromMarkup(n.markdownDescription)||n.description||""};void 0!==n.suggestSortText&&(a.sortText=n.suggestSortText),a.insertText&&Hr(a.insertText,"$1"+o)&&(a.command={title:"Suggest",command:"editor.action.triggerSuggest"}),i.add(a)}}));var a=e.schema.propertyNames;if("object"==typeof a&&!a.deprecationMessage&&!a.doNotSuggest){var u=function(e,t){void 0===t&&(t=void 0);var n={kind:Z.Property,label:e,insertText:s.getInsertTextForProperty(e,void 0,r,o),insertTextFormat:ee.Snippet,filterText:s.getFilterTextForValue(e),documentation:t||s.fromMarkup(a.markdownDescription)||a.description||""};void 0!==a.suggestSortText&&(n.sortText=a.suggestSortText),n.insertText&&Hr(n.insertText,"$1"+o)&&(n.command={title:"Suggest",command:"editor.action.triggerSuggest"}),i.add(n)};if(a.enum)for(var c=0;c<a.enum.length;c++){var l=void 0;a.markdownEnumDescriptions&&c<a.markdownEnumDescriptions.length?l=s.fromMarkup(a.markdownEnumDescriptions[c]):a.enumDescriptions&&c<a.enumDescriptions.length&&(l=a.enumDescriptions[c]),u(a.enum[c],l)}a.const&&u(a.const)}}}))},e.prototype.getSchemaLessPropertyCompletions=function(e,t,n,r){var o=this,i=function(e){e.properties.forEach((function(e){var t=e.keyNode.value;r.add({kind:Z.Property,label:t,insertText:o.getInsertTextForValue(t,""),insertTextFormat:ee.Snippet,filterText:o.getFilterTextForValue(t),documentation:""})}))};if(t.parent)if("property"===t.parent.type){var s=t.parent.keyNode.value;e.visit((function(e){return"property"===e.type&&e!==t.parent&&e.keyNode.value===s&&e.valueNode&&"object"===e.valueNode.type&&i(e.valueNode),!0}))}else"array"===t.parent.type&&t.parent.items.forEach((function(e){"object"===e.type&&e!==t&&i(e)}));else"object"===t.type&&r.add({kind:Z.Property,label:"$schema",insertText:this.getInsertTextForProperty("$schema",void 0,!0,""),insertTextFormat:ee.Snippet,documentation:"",filterText:this.getFilterTextForValue("$schema")})},e.prototype.getSchemaLessValueCompletions=function(e,t,n,r,o){var i=this,s=n;if(!t||"string"!==t.type&&"number"!==t.type&&"boolean"!==t.type&&"null"!==t.type||(s=t.offset+t.length,t=t.parent),!t)return o.add({kind:this.getSuggestionKind("object"),label:"Empty object",insertText:this.getInsertTextForValue({},""),insertTextFormat:ee.Snippet,documentation:""}),void o.add({kind:this.getSuggestionKind("array"),label:"Empty array",insertText:this.getInsertTextForValue([],""),insertTextFormat:ee.Snippet,documentation:""});var a=this.evaluateSeparatorAfter(r,s),u=function(e){e.parent&&!mo(e.parent,n,!0)&&o.add({kind:i.getSuggestionKind(e.type),label:i.getLabelTextForMatchingNode(e,r),insertText:i.getInsertTextForMatchingNode(e,r,a),insertTextFormat:ee.Snippet,documentation:""}),"boolean"===e.type&&i.addBooleanValueCompletion(!e.value,a,o)};if("property"===t.type&&n>(t.colonOffset||0)){var c=t.valueNode;if(c&&(n>c.offset+c.length||"object"===c.type||"array"===c.type))return;var l=t.keyNode.value;e.visit((function(e){return"property"===e.type&&e.keyNode.value===l&&e.valueNode&&u(e.valueNode),!0})),"$schema"===l&&t.parent&&!t.parent.parent&&this.addDollarSchemaCompletions(a,o)}if("array"===t.type)if(t.parent&&"property"===t.parent.type){var f=t.parent.keyNode.value;e.visit((function(e){return"property"===e.type&&e.keyNode.value===f&&e.valueNode&&"array"===e.valueNode.type&&e.valueNode.items.forEach(u),!0}))}else t.items.forEach(u)},e.prototype.getValueCompletions=function(e,t,n,r,o,i,s){var a=r,u=void 0,c=void 0;if(!n||"string"!==n.type&&"number"!==n.type&&"boolean"!==n.type&&"null"!==n.type||(a=n.offset+n.length,c=n,n=n.parent),n){if("property"===n.type&&r>(n.colonOffset||0)){var l=n.valueNode;if(l&&r>l.offset+l.length)return;u=n.keyNode.value,n=n.parent}if(n&&(void 0!==u||"array"===n.type)){for(var f=this.evaluateSeparatorAfter(o,a),p=0,h=t.getMatchingSchemas(e.schema,n.offset,c);p<h.length;p++){var d=h[p];if(d.node===n&&!d.inverted&&d.schema){if("array"===n.type&&d.schema.items)if(Array.isArray(d.schema.items)){var m=this.findItemAtOffset(n,o,r);m<d.schema.items.length&&this.addSchemaValueCompletions(d.schema.items[m],f,i,s)}else this.addSchemaValueCompletions(d.schema.items,f,i,s);if(void 0!==u){var g=!1;if(d.schema.properties&&(D=d.schema.properties[u])&&(g=!0,this.addSchemaValueCompletions(D,f,i,s)),d.schema.patternProperties&&!g)for(var y=0,b=Object.keys(d.schema.patternProperties);y<b.length;y++){var v=b[y];if(zr(v).test(u)){g=!0;var D=d.schema.patternProperties[v];this.addSchemaValueCompletions(D,f,i,s)}}d.schema.additionalProperties&&!g&&(D=d.schema.additionalProperties,this.addSchemaValueCompletions(D,f,i,s))}}}"$schema"!==u||n.parent||this.addDollarSchemaCompletions(f,i),s.boolean&&(this.addBooleanValueCompletion(!0,f,i),this.addBooleanValueCompletion(!1,f,i)),s.null&&this.addNullValueCompletion(f,i)}}else this.addSchemaValueCompletions(e.schema,"",i,s)},e.prototype.getContributedValueCompletions=function(e,t,n,r,o,i){if(t){if("string"!==t.type&&"number"!==t.type&&"boolean"!==t.type&&"null"!==t.type||(t=t.parent),t&&"property"===t.type&&n>(t.colonOffset||0)){var s=t.keyNode.value,a=t.valueNode;if((!a||n<=a.offset+a.length)&&t.parent){var u=ho(t.parent);this.contributions.forEach((function(e){var t=e.collectValueCompletions(r.uri,u,s,o);t&&i.push(t)}))}}}else this.contributions.forEach((function(e){var t=e.collectDefaultCompletions(r.uri,o);t&&i.push(t)}))},e.prototype.addSchemaValueCompletions=function(e,t,n,r){var o=this;"object"==typeof e&&(this.addEnumValueCompletions(e,t,n),this.addDefaultValueCompletions(e,t,n),this.collectTypes(e,r),Array.isArray(e.allOf)&&e.allOf.forEach((function(e){return o.addSchemaValueCompletions(e,t,n,r)})),Array.isArray(e.anyOf)&&e.anyOf.forEach((function(e){return o.addSchemaValueCompletions(e,t,n,r)})),Array.isArray(e.oneOf)&&e.oneOf.forEach((function(e){return o.addSchemaValueCompletions(e,t,n,r)})))},e.prototype.addDefaultValueCompletions=function(e,t,n,r){var o=this;void 0===r&&(r=0);var i=!1;if(Gr(e.default)){for(var s=e.type,a=e.default,u=r;u>0;u--)a=[a],s="array";n.add({kind:this.getSuggestionKind(s),label:this.getLabelForValue(a),insertText:this.getInsertTextForValue(a,t),insertTextFormat:ee.Snippet,detail:Ro("json.suggest.default","Default value")}),i=!0}Array.isArray(e.examples)&&e.examples.forEach((function(s){for(var a=e.type,u=s,c=r;c>0;c--)u=[u],a="array";n.add({kind:o.getSuggestionKind(a),label:o.getLabelForValue(u),insertText:o.getInsertTextForValue(u,t),insertTextFormat:ee.Snippet}),i=!0})),Array.isArray(e.defaultSnippets)&&e.defaultSnippets.forEach((function(s){var a,u,c=e.type,l=s.body,f=s.label;if(Gr(l)){e.type;for(var p=r;p>0;p--)l=[l];a=o.getInsertTextForSnippetValue(l,t),u=o.getFilterTextForSnippetValue(l),f=f||o.getLabelForSnippetValue(l)}else{if("string"!=typeof s.bodyText)return;var h="",d="",m="";for(p=r;p>0;p--)h=h+m+"[\n",d=d+"\n"+m+"]",m+="\t",c="array";a=h+m+s.bodyText.split("\n").join("\n"+m)+d+t,f=f||a,u=a.replace(/[\n]/g,"")}n.add({kind:o.getSuggestionKind(c),label:f,documentation:o.fromMarkup(s.markdownDescription)||s.description,insertText:a,insertTextFormat:ee.Snippet,filterText:u}),i=!0})),!i&&"object"==typeof e.items&&!Array.isArray(e.items)&&r<5&&this.addDefaultValueCompletions(e.items,t,n,r+1)},e.prototype.addEnumValueCompletions=function(e,t,n){if(Gr(e.const)&&n.add({kind:this.getSuggestionKind(e.type),label:this.getLabelForValue(e.const),insertText:this.getInsertTextForValue(e.const,t),insertTextFormat:ee.Snippet,documentation:this.fromMarkup(e.markdownDescription)||e.description}),Array.isArray(e.enum))for(var r=0,o=e.enum.length;r<o;r++){var i=e.enum[r],s=this.fromMarkup(e.markdownDescription)||e.description;e.markdownEnumDescriptions&&r<e.markdownEnumDescriptions.length&&this.doesSupportMarkdown()?s=this.fromMarkup(e.markdownEnumDescriptions[r]):e.enumDescriptions&&r<e.enumDescriptions.length&&(s=e.enumDescriptions[r]),n.add({kind:this.getSuggestionKind(e.type),label:this.getLabelForValue(i),insertText:this.getInsertTextForValue(i,t),insertTextFormat:ee.Snippet,documentation:s})}},e.prototype.collectTypes=function(e,t){if(!Array.isArray(e.enum)&&!Gr(e.const)){var n=e.type;Array.isArray(n)?n.forEach((function(e){return t[e]=!0})):n&&(t[n]=!0)}},e.prototype.addFillerValueCompletions=function(e,t,n){e.object&&n.add({kind:this.getSuggestionKind("object"),label:"{}",insertText:this.getInsertTextForGuessedValue({},t),insertTextFormat:ee.Snippet,detail:Ro("defaults.object","New object"),documentation:""}),e.array&&n.add({kind:this.getSuggestionKind("array"),label:"[]",insertText:this.getInsertTextForGuessedValue([],t),insertTextFormat:ee.Snippet,detail:Ro("defaults.array","New array"),documentation:""})},e.prototype.addBooleanValueCompletion=function(e,t,n){n.add({kind:this.getSuggestionKind("boolean"),label:e?"true":"false",insertText:this.getInsertTextForValue(e,t),insertTextFormat:ee.Snippet,documentation:""})},e.prototype.addNullValueCompletion=function(e,t){t.add({kind:this.getSuggestionKind("null"),label:"null",insertText:"null"+e,insertTextFormat:ee.Snippet,documentation:""})},e.prototype.addDollarSchemaCompletions=function(e,t){var n=this;this.schemaService.getRegisteredSchemaIds((function(e){return"http"===e||"https"===e})).forEach((function(r){return t.add({kind:Z.Module,label:n.getLabelForValue(r),filterText:n.getFilterTextForValue(r),insertText:n.getInsertTextForValue(r,e),insertTextFormat:ee.Snippet,documentation:""})}))},e.prototype.getLabelForValue=function(e){return JSON.stringify(e)},e.prototype.getFilterTextForValue=function(e){return JSON.stringify(e)},e.prototype.getFilterTextForSnippetValue=function(e){return JSON.stringify(e).replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")},e.prototype.getLabelForSnippetValue=function(e){return JSON.stringify(e).replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")},e.prototype.getInsertTextForPlainText=function(e){return e.replace(/[\\\$\}]/g,"\\$&")},e.prototype.getInsertTextForValue=function(e,t){var n=JSON.stringify(e,null,"\t");return"{}"===n?"{$1}"+t:"[]"===n?"[$1]"+t:this.getInsertTextForPlainText(n+t)},e.prototype.getInsertTextForSnippetValue=function(e,t){return Bo(e,"",(function(e){return"string"==typeof e&&"^"===e[0]?e.substr(1):JSON.stringify(e)}))+t},e.prototype.getInsertTextForGuessedValue=function(e,t){switch(typeof e){case"object":return null===e?"${1:null}"+t:this.getInsertTextForValue(e,t);case"string":var n=JSON.stringify(e);return n=n.substr(1,n.length-2),'"${1:'+(n=this.getInsertTextForPlainText(n))+'}"'+t;case"number":case"boolean":return"${1:"+JSON.stringify(e)+"}"+t}return this.getInsertTextForValue(e,t)},e.prototype.getSuggestionKind=function(e){if(Array.isArray(e)){var t=e;e=t.length>0?t[0]:void 0}if(!e)return Z.Value;switch(e){case"string":return Z.Value;case"object":return Z.Module;case"property":return Z.Property;default:return Z.Value}},e.prototype.getLabelTextForMatchingNode=function(e,t){switch(e.type){case"array":return"[]";case"object":return"{}";default:return t.getText().substr(e.offset,e.length)}},e.prototype.getInsertTextForMatchingNode=function(e,t,n){switch(e.type){case"array":return this.getInsertTextForValue([],n);case"object":return this.getInsertTextForValue({},n);default:var r=t.getText().substr(e.offset,e.length)+n;return this.getInsertTextForPlainText(r)}},e.prototype.getInsertTextForProperty=function(e,t,n,r){var o=this.getInsertTextForValue(e,"");if(!n)return o;var i,s=o+": ",a=0;if(t){if(Array.isArray(t.defaultSnippets)){if(1===t.defaultSnippets.length){var u=t.defaultSnippets[0].body;Gr(u)&&(i=this.getInsertTextForSnippetValue(u,""))}a+=t.defaultSnippets.length}if(t.enum&&(i||1!==t.enum.length||(i=this.getInsertTextForGuessedValue(t.enum[0],"")),a+=t.enum.length),Gr(t.default)&&(i||(i=this.getInsertTextForGuessedValue(t.default,"")),a++),Array.isArray(t.examples)&&t.examples.length&&(i||(i=this.getInsertTextForGuessedValue(t.examples[0],"")),a+=t.examples.length),0===a){var c=Array.isArray(t.type)?t.type[0]:t.type;switch(c||(t.properties?c="object":t.items&&(c="array")),c){case"boolean":i="$1";break;case"string":i='"$1"';break;case"object":i="{$1}";break;case"array":i="[$1]";break;case"number":case"integer":i="${1:0}";break;case"null":i="${1:null}";break;default:return o}}}return(!i||a>1)&&(i="$1"),s+i+r},e.prototype.getCurrentWord=function(e,t){for(var n=t-1,r=e.getText();n>=0&&-1===' \t\n\r\v":{[,]}'.indexOf(r.charAt(n));)n--;return r.substring(n+1,t)},e.prototype.evaluateSeparatorAfter=function(e,t){var n=d(e.getText(),!0);switch(n.setPosition(t),n.scan()){case 5:case 2:case 4:case 17:return"";default:return","}},e.prototype.findItemAtOffset=function(e,t,n){for(var r=d(t.getText(),!0),o=e.items,i=o.length-1;i>=0;i--){var s=o[i];if(n>s.offset+s.length)return r.setPosition(s.offset+s.length),5===r.scan()&&n>=r.getTokenOffset()+r.getTokenLength()?i+1:i;if(n>=s.offset)return i}return 0},e.prototype.isInComment=function(e,t,n){var r=d(e.getText(),!1);r.setPosition(t);for(var o=r.scan();17!==o&&r.getTokenOffset()+r.getTokenLength()<n;)o=r.scan();return(12===o||13===o)&&r.getTokenOffset()<=n},e.prototype.fromMarkup=function(e){if(e&&this.doesSupportMarkdown())return{kind:X.Markdown,value:e}},e.prototype.doesSupportMarkdown=function(){if(!Gr(this.supportsMarkdown)){var e=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsMarkdown=e&&e.completionItem&&Array.isArray(e.completionItem.documentationFormat)&&-1!==e.completionItem.documentationFormat.indexOf(X.Markdown)}return this.supportsMarkdown},e.prototype.doesSupportsCommitCharacters=function(){if(!Gr(this.supportsCommitCharacters)){var e=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsCommitCharacters=e&&e.completionItem&&!!e.completionItem.commitCharactersSupport}return this.supportsCommitCharacters}}();var jo=Zr(),Vo=function(){function e(e,t){this.jsonSchemaService=e,this.promise=t,this.validationEnabled=!0}return e.prototype.configure=function(e){e&&(this.validationEnabled=!1!==e.validate,this.commentSeverity=e.allowComments?void 0:L.Error)},e.prototype.doValidation=function(e,t,n,r){var o=this;if(!this.validationEnabled)return this.promise.resolve([]);var i=[],s={},a=function(e){var t=e.range.start.line+" "+e.range.start.character+" "+e.message;s[t]||(s[t]=!0,i.push(e))},u=function(r){var s=(null==n?void 0:n.trailingCommas)?Ko(n.trailingCommas):L.Error,u=(null==n?void 0:n.comments)?Ko(n.comments):o.commentSeverity,c=(null==n?void 0:n.schemaValidation)?Ko(n.schemaValidation):L.Warning,l=(null==n?void 0:n.schemaRequest)?Ko(n.schemaRequest):L.Warning;if(r){if(r.errors.length&&t.root&&l){var f=t.root,p="object"===f.type?f.properties[0]:void 0;if(p&&"$schema"===p.keyNode.value){var h=p.valueNode||p,d=A.create(e.positionAt(h.offset),e.positionAt(h.offset+h.length));a(I.create(d,r.errors[0],l,Rr.SchemaResolveError))}else d=A.create(e.positionAt(f.offset),e.positionAt(f.offset+1)),a(I.create(d,r.errors[0],l,Rr.SchemaResolveError))}else if(c){var m=t.validate(e,r.schema,c);m&&m.forEach(a)}Uo(r.schema)&&(u=void 0),Wo(r.schema)&&(s=void 0)}for(var g=0,y=t.syntaxErrors;g<y.length;g++){var b=y[g];if(b.code===Rr.TrailingComma){if("number"!=typeof s)continue;b.severity=s}a(b)}if("number"==typeof u){var v=jo("InvalidCommentToken","Comments are not permitted in JSON.");t.comments.forEach((function(e){a(I.create(e,v,u,Rr.CommentNotPermitted))}))}return i};if(r){var c=r.id||"schemaservice://untitled/"+$o++;return this.jsonSchemaService.resolveSchemaContent(new Co(r),c,{}).then((function(e){return u(e)}))}return this.jsonSchemaService.getSchemaForResource(e.uri,t).then((function(e){return u(e)}))},e}(),$o=0;function Uo(e){if(e&&"object"==typeof e){if(Xr(e.allowComments))return e.allowComments;if(e.allOf)for(var t=0,n=e.allOf;t<n.length;t++){var r=Uo(n[t]);if(Xr(r))return r}}}function Wo(e){if(e&&"object"==typeof e){if(Xr(e.allowTrailingCommas))return e.allowTrailingCommas;var t=e;if(Xr(t.allowsTrailingCommas))return t.allowsTrailingCommas;if(e.allOf)for(var n=0,r=e.allOf;n<r.length;n++){var o=Wo(r[n]);if(Xr(o))return o}}}function Ko(e){switch(e){case"error":return L.Error;case"warning":return L.Warning;case"ignore":return}}function qo(e){return e<48?0:e<=57?e-48:(e<97&&(e+=32),e>=97&&e<=102?e-97+10:0)}function Ho(e){if("#"===e[0])switch(e.length){case 4:return{red:17*qo(e.charCodeAt(1))/255,green:17*qo(e.charCodeAt(2))/255,blue:17*qo(e.charCodeAt(3))/255,alpha:1};case 5:return{red:17*qo(e.charCodeAt(1))/255,green:17*qo(e.charCodeAt(2))/255,blue:17*qo(e.charCodeAt(3))/255,alpha:17*qo(e.charCodeAt(4))/255};case 7:return{red:(16*qo(e.charCodeAt(1))+qo(e.charCodeAt(2)))/255,green:(16*qo(e.charCodeAt(3))+qo(e.charCodeAt(4)))/255,blue:(16*qo(e.charCodeAt(5))+qo(e.charCodeAt(6)))/255,alpha:1};case 9:return{red:(16*qo(e.charCodeAt(1))+qo(e.charCodeAt(2)))/255,green:(16*qo(e.charCodeAt(3))+qo(e.charCodeAt(4)))/255,blue:(16*qo(e.charCodeAt(5))+qo(e.charCodeAt(6)))/255,alpha:(16*qo(e.charCodeAt(7))+qo(e.charCodeAt(8)))/255}}}var zo=function(){function e(e){this.schemaService=e}return e.prototype.findDocumentSymbols=function(e,t,n){var r=this;void 0===n&&(n={resultLimit:Number.MAX_VALUE});var o=t.root;if(!o)return[];var i=n.resultLimit||Number.MAX_VALUE,s=e.uri;if(("vscode://defaultsettings/keybindings.json"===s||Hr(s.toLowerCase(),"/user/keybindings.json"))&&"array"===o.type){for(var a=[],u=0,c=o.items;u<c.length;u++){var l=c[u];if("object"===l.type)for(var f=0,p=l.properties;f<p.length;f++){var h=p[f];if("key"===h.keyNode.value&&h.valueNode){var d=S.create(e.uri,Yo(e,l));if(a.push({name:po(h.valueNode),kind:pe.Function,location:d}),--i<=0)return n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(s),a}}}return a}for(var m=[{node:o,containerName:""}],g=0,y=!1,b=[],v=function(t,n){"array"===t.type?t.items.forEach((function(e){e&&m.push({node:e,containerName:n})})):"object"===t.type&&t.properties.forEach((function(t){var o=t.valueNode;if(o)if(i>0){i--;var s=S.create(e.uri,Yo(e,t)),a=n?n+"."+t.keyNode.value:t.keyNode.value;b.push({name:r.getKeyLabel(t),kind:r.getSymbolKind(o.type),location:s,containerName:n}),m.push({node:o,containerName:a})}else y=!0}))};g<m.length;){var D=m[g++];v(D.node,D.containerName)}return y&&n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(s),b},e.prototype.findDocumentSymbols2=function(e,t,n){var r=this;void 0===n&&(n={resultLimit:Number.MAX_VALUE});var o=t.root;if(!o)return[];var i=n.resultLimit||Number.MAX_VALUE,s=e.uri;if(("vscode://defaultsettings/keybindings.json"===s||Hr(s.toLowerCase(),"/user/keybindings.json"))&&"array"===o.type){for(var a=[],u=0,c=o.items;u<c.length;u++){var l=c[u];if("object"===l.type)for(var f=0,p=l.properties;f<p.length;f++){var h=p[f];if("key"===h.keyNode.value&&h.valueNode){var d=Yo(e,l),m=Yo(e,h.keyNode);if(a.push({name:po(h.valueNode),kind:pe.Function,range:d,selectionRange:m}),--i<=0)return n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(s),a}}}return a}for(var g=[],y=[{node:o,result:g}],b=0,v=!1,D=function(t,n){"array"===t.type?t.items.forEach((function(t,o){if(t)if(i>0){i--;var s=Yo(e,t),a=s,u={name:String(o),kind:r.getSymbolKind(t.type),range:s,selectionRange:a,children:[]};n.push(u),y.push({result:u.children,node:t})}else v=!0})):"object"===t.type&&t.properties.forEach((function(t){var o=t.valueNode;if(o)if(i>0){i--;var s=Yo(e,t),a=Yo(e,t.keyNode),u=[],c={name:r.getKeyLabel(t),kind:r.getSymbolKind(o.type),range:s,selectionRange:a,children:u,detail:r.getDetail(o)};n.push(c),y.push({result:u,node:o})}else v=!0}))};b<y.length;){var C=y[b++];D(C.node,C.result)}return v&&n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(s),g},e.prototype.getSymbolKind=function(e){switch(e){case"object":return pe.Module;case"string":return pe.String;case"number":return pe.Number;case"array":return pe.Array;case"boolean":return pe.Boolean;default:return pe.Variable}},e.prototype.getKeyLabel=function(e){var t=e.keyNode.value;return t&&(t=t.replace(/[\n]/g,"↵")),t&&t.trim()?t:'"'+t+'"'},e.prototype.getDetail=function(e){if(e)return"boolean"===e.type||"number"===e.type||"null"===e.type||"string"===e.type?String(e.value):"array"===e.type?e.children.length?void 0:"[]":"object"===e.type?e.children.length?void 0:"{}":void 0},e.prototype.findDocumentColors=function(e,t,n){return this.schemaService.getSchemaForResource(e.uri,t).then((function(r){var o=[];if(r)for(var i=n&&"number"==typeof n.resultLimit?n.resultLimit:Number.MAX_VALUE,s={},a=0,u=t.getMatchingSchemas(r.schema);a<u.length;a++){var c=u[a];if(!c.inverted&&c.schema&&("color"===c.schema.format||"color-hex"===c.schema.format)&&c.node&&"string"===c.node.type){var l=String(c.node.offset);if(!s[l]){var f=Ho(po(c.node));if(f){var p=Yo(e,c.node);o.push({color:f,range:p})}if(s[l]=!0,--i<=0)return n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(e.uri),o}}}return o}))},e.prototype.getColorPresentations=function(e,t,n,r){var o,i=[],s=Math.round(255*n.red),a=Math.round(255*n.green),u=Math.round(255*n.blue);function c(e){var t=e.toString(16);return 2!==t.length?"0"+t:t}return o=1===n.alpha?"#"+c(s)+c(a)+c(u):"#"+c(s)+c(a)+c(u)+c(Math.round(255*n.alpha)),i.push({label:o,textEdit:R.replace(r,JSON.stringify(o))}),i},e}();function Yo(e,t){return A.create(e.positionAt(t.offset),e.positionAt(t.offset+t.length))}var Jo,Go,Xo,Qo,Zo,ei=Zr(),ti={schemaAssociations:[],schemas:{"http://json-schema.org/schema#":{$ref:"http://json-schema.org/draft-07/schema#"},"http://json-schema.org/draft-04/schema#":{$schema:"http://json-schema.org/draft-04/schema#",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{default:0}]},simpleTypes:{type:"string",enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},type:"object",properties:{id:{type:"string",format:"uri"},$schema:{type:"string",format:"uri"},title:{type:"string"},description:{type:"string"},default:{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minLength:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minItems:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},uniqueItems:{type:"boolean",default:!1},maxProperties:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minProperties:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},required:{allOf:[{$ref:"#/definitions/stringArray"}]},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{anyOf:[{type:"string",enum:["date-time","uri","email","hostname","ipv4","ipv6","regex"]},{type:"string"}]},allOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},anyOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},oneOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},not:{allOf:[{$ref:"#"}]}},dependencies:{exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},default:{}},"http://json-schema.org/draft-07/schema#":{definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}}},ni={id:ei("schema.json.id","A unique identifier for the schema."),$schema:ei("schema.json.$schema","The schema to verify this document against."),title:ei("schema.json.title","A descriptive title of the element."),description:ei("schema.json.description","A long description of the element. Used in hover menus and suggestions."),default:ei("schema.json.default","A default value. Used by suggestions."),multipleOf:ei("schema.json.multipleOf","A number that should cleanly divide the current value (i.e. have no remainder)."),maximum:ei("schema.json.maximum","The maximum numerical value, inclusive by default."),exclusiveMaximum:ei("schema.json.exclusiveMaximum","Makes the maximum property exclusive."),minimum:ei("schema.json.minimum","The minimum numerical value, inclusive by default."),exclusiveMinimum:ei("schema.json.exclusiveMininum","Makes the minimum property exclusive."),maxLength:ei("schema.json.maxLength","The maximum length of a string."),minLength:ei("schema.json.minLength","The minimum length of a string."),pattern:ei("schema.json.pattern","A regular expression to match the string against. It is not implicitly anchored."),additionalItems:ei("schema.json.additionalItems","For arrays, only when items is set as an array. If it is a schema, then this schema validates items after the ones specified by the items array. If it is false, then additional items will cause validation to fail."),items:ei("schema.json.items","For arrays. Can either be a schema to validate every element against or an array of schemas to validate each item against in order (the first schema will validate the first element, the second schema will validate the second element, and so on."),maxItems:ei("schema.json.maxItems","The maximum number of items that can be inside an array. Inclusive."),minItems:ei("schema.json.minItems","The minimum number of items that can be inside an array. Inclusive."),uniqueItems:ei("schema.json.uniqueItems","If all of the items in the array must be unique. Defaults to false."),maxProperties:ei("schema.json.maxProperties","The maximum number of properties an object can have. Inclusive."),minProperties:ei("schema.json.minProperties","The minimum number of properties an object can have. Inclusive."),required:ei("schema.json.required","An array of strings that lists the names of all properties required on this object."),additionalProperties:ei("schema.json.additionalProperties","Either a schema or a boolean. If a schema, then used to validate all properties not matched by 'properties' or 'patternProperties'. If false, then any properties not matched by either will cause this schema to fail."),definitions:ei("schema.json.definitions","Not used for validation. Place subschemas here that you wish to reference inline with $ref."),properties:ei("schema.json.properties","A map of property names to schemas for each property."),patternProperties:ei("schema.json.patternProperties","A map of regular expressions on property names to schemas for matching properties."),dependencies:ei("schema.json.dependencies","A map of property names to either an array of property names or a schema. An array of property names means the property named in the key depends on the properties in the array being present in the object in order to be valid. If the value is a schema, then the schema is only applied to the object if the property in the key exists on the object."),enum:ei("schema.json.enum","The set of literal values that are valid."),type:ei("schema.json.type","Either a string of one of the basic schema types (number, integer, null, array, object, boolean, string) or an array of strings specifying a subset of those types."),format:ei("schema.json.format","Describes the format expected for the value."),allOf:ei("schema.json.allOf","An array of schemas, all of which must match."),anyOf:ei("schema.json.anyOf","An array of schemas, where at least one must match."),oneOf:ei("schema.json.oneOf","An array of schemas, exactly one of which must match."),not:ei("schema.json.not","A schema which must not match."),$id:ei("schema.json.$id","A unique identifier for the schema."),$ref:ei("schema.json.$ref","Reference a definition hosted on any location."),$comment:ei("schema.json.$comment","Comments from schema authors to readers or maintainers of the schema."),readOnly:ei("schema.json.readOnly","Indicates that the value of the instance is managed exclusively by the owning authority."),examples:ei("schema.json.examples","Sample JSON values associated with a particular schema, for the purpose of illustrating usage."),contains:ei("schema.json.contains",'An array instance is valid against "contains" if at least one of its elements is valid against the given schema.'),propertyNames:ei("schema.json.propertyNames","If the instance is an object, this keyword validates if every property name in the instance validates against the provided schema."),const:ei("schema.json.const","An instance validates successfully against this keyword if its value is equal to the value of the keyword."),contentMediaType:ei("schema.json.contentMediaType","Describes the media type of a string property."),contentEncoding:ei("schema.json.contentEncoding","Describes the content encoding of a string property."),if:ei("schema.json.if",'The validation outcome of the "if" subschema controls which of the "then" or "else" keywords are evaluated.'),then:ei("schema.json.then",'The "if" subschema is used for validation when the "if" subschema succeeds.'),else:ei("schema.json.else",'The "else" subschema is used for validation when the "if" subschema fails.')};for(Zo in ti.schemas)for(Qo in(Jo=ti.schemas[Zo]).properties)"boolean"==typeof(Go=Jo.properties[Qo])&&(Go=Jo.properties[Qo]={}),(Xo=ni[Qo])?Go.description=Xo:console.log(Qo+": localize('schema.json."+Qo+'\', "")');function ri(e,t){var n=[];return t.visit((function(r){var o;if("property"===r.type&&"$ref"===r.keyNode.value&&"string"===(null===(o=r.valueNode)||void 0===o?void 0:o.type)){var i=r.valueNode.value,s=function(e,t){var n=function(e){return"#"===e?[]:"#"!==e[0]||"/"!==e[1]?null:e.substring(2).split(/\//).map(si)}(t);return n?ii(n,e.root):null}(t,i);if(s){var a=e.positionAt(s.offset);n.push({target:e.uri+"#"+(a.line+1)+","+(a.character+1),range:oi(e,r.valueNode)})}}return!0})),Promise.resolve(n)}function oi(e,t){return A.create(e.positionAt(t.offset+1),e.positionAt(t.offset+t.length-1))}function ii(e,t){if(!t)return null;if(0===e.length)return t;var n=e.shift();if(t&&"object"===t.type){var r=t.properties.find((function(e){return e.keyNode.value===n}));return r?ii(e,r.valueNode):null}if(t&&"array"===t.type&&n.match(/^(0|[1-9][0-9]*)$/)){var o=Number.parseInt(n),i=t.items[o];return i?ii(e,i):null}return null}function si(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function ai(e,t){for(const n of t.documents)if(n.internalDocument&&n.internalDocument.range[0]<=e&&n.internalDocument.range[2]>=e)return n;return 1===t.documents.length?t.documents[0]:null}function ui(e){const t=["mapping","scalar","sequence"];return e?e.filter((e=>{if("string"==typeof e){const n=e.split(" "),r=n[1]&&n[1].toLowerCase()||"scalar";return"map"!==r&&-1!==t.indexOf(r)}return!1})):[]}function ci(e,t){if(!t||!e)return!1;if(t.length!==e.length)return!1;for(let n=e.length-1;n>=0;n--)if(e[n]!==t[n])return!1;return!0}var li,fi,pi=Zr(),hi={"color-hex":{errorMessage:pi("colorHexFormatWarning","Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA."),pattern:/^#([0-9A-Fa-f]{3,4}|([0-9A-Fa-f]{2}){3,4})$/},"date-time":{errorMessage:pi("dateTimeFormatWarning","String is not a RFC3339 date-time."),pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},date:{errorMessage:pi("dateFormatWarning","String is not a RFC3339 date."),pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/i},time:{errorMessage:pi("timeFormatWarning","String is not a RFC3339 time."),pattern:/^([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},email:{errorMessage:pi("emailFormatWarning","String is not an e-mail address."),pattern:/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/}},di="YAML";(fi=li||(li={})).missingRequiredPropWarning="missingRequiredPropWarning",fi.typeMismatchWarning="typeMismatchWarning",fi.constWarning="constWarning";var mi,gi={[li.missingRequiredPropWarning]:'Missing property "{0}".',[li.typeMismatchWarning]:'Incorrect type. Expected "{0}".',[li.constWarning]:"Value must be {0}."},yi=class{constructor(e,t,n,r){this.offset=n,this.length=r,this.parent=e,this.internalNode=t}getNodeFromOffsetEndInclusive(e){const t=[],n=r=>{if(e>=r.offset&&e<=r.offset+r.length){const o=r.children;for(let r=0;r<o.length&&o[r].offset<=e;r++){const e=n(o[r]);e&&t.push(e)}return r}return null},r=n(this);let o=Number.MAX_VALUE,i=null;for(const n of t){const t=n.length+n.offset-e+(e-n.offset);t<o&&(i=n,o=t)}return i||r}get children(){return[]}toString(){return"type: "+this.type+" ("+this.offset+"/"+this.length+")"+(this.parent?" parent: {"+this.parent.toString()+"}":"")}},bi=class extends yi{constructor(e,t,n,r){super(e,t,n,r),this.type="null",this.value=null}},vi=class extends yi{constructor(e,t,n,r,o){super(e,t,r,o),this.type="boolean",this.value=n}},Di=class extends yi{constructor(e,t,n,r){super(e,t,n,r),this.type="array",this.items=[]}get children(){return this.items}},Ci=class extends yi{constructor(e,t,n,r){super(e,t,n,r),this.type="number",this.isInteger=!0,this.value=Number.NaN}},Ei=class extends yi{constructor(e,t,n,r){super(e,t,n,r),this.type="string",this.value=""}},wi=class extends yi{constructor(e,t,n,r){super(e,t,n,r),this.type="property",this.colonOffset=-1}get children(){return this.valueNode?[this.keyNode,this.valueNode]:[this.keyNode]}},Ai=class extends yi{constructor(e,t,n,r){super(e,t,n,r),this.type="object",this.properties=[]}get children(){return this.properties}};function Si(e){if(void 0!==e)return Oo(e)?e?{}:{not:{}}:("object"!=typeof e&&(console.warn(`Wrong schema: ${JSON.stringify(e)}, it MUST be an Object or Boolean`),e={type:e}),e)}!function(e){e[e.Key=0]="Key",e[e.Enum=1]="Enum"}(mi||(mi={}));var xi=class{constructor(e=-1,t=null){this.focusOffset=e,this.exclude=t,this.schemas=[]}add(e){this.schemas.push(e)}merge(e){this.schemas.push(...e.schemas)}include(e){return(-1===this.focusOffset||ki(e,this.focusOffset))&&e!==this.exclude}newSub(){return new xi(-1,this.exclude)}},_i=class{constructor(){}get schemas(){return[]}add(e){}merge(e){}include(e){return!0}newSub(){return this}};_i.instance=new _i;var Fi=class{constructor(e){this.problems=[],this.propertiesMatches=0,this.propertiesValueMatches=0,this.primaryValueMatches=0,this.enumValueMatch=!1,this.enumValues=e?[]:null}hasProblems(){return!!this.problems.length}mergeAll(e){for(const t of e)this.merge(t)}merge(e){this.problems=this.problems.concat(e.problems)}mergeEnumValues(e){if(!this.enumValueMatch&&!e.enumValueMatch&&this.enumValues&&e.enumValues){this.enumValues=this.enumValues.concat(e.enumValues);for(const e of this.problems)e.code===Rr.EnumValueMismatch&&(e.message=pi("enumWarning","Value is not accepted. Valid values: {0}.",[...new Set(this.enumValues)].map((e=>JSON.stringify(e))).join(", ")))}}mergeWarningGeneric(e,t){var n,r;if(null===(n=this.problems)||void 0===n?void 0:n.length)for(const n of t){const t=this.problems.filter((e=>e.problemType===n));for(const o of t){const t=null===(r=e.problems)||void 0===r?void 0:r.find((e=>e.problemType===n&&o.location.offset===e.location.offset&&(n!==li.missingRequiredPropWarning||ci(e.problemArgs,o.problemArgs))));t&&(t.problemArgs.length&&(t.problemArgs.filter((e=>!o.problemArgs.includes(e))).forEach((e=>o.problemArgs.push(e))),o.message=Pi(o.problemType,o.problemArgs)),this.mergeSources(t,o))}}}mergePropertyMatch(e){this.merge(e),this.propertiesMatches++,(e.enumValueMatch||!e.hasProblems()&&e.propertiesMatches)&&this.propertiesValueMatches++,e.enumValueMatch&&e.enumValues&&this.primaryValueMatches++}mergeSources(e,t){const n=e.source.replace("yaml-schema: ","");t.source.includes(n)||(t.source=t.source+" | "+n),t.schemaUri.includes(e.schemaUri[0])||(t.schemaUri=t.schemaUri.concat(e.schemaUri))}compareGeneric(e){const t=this.hasProblems();return t!==e.hasProblems()?t?-1:1:this.enumValueMatch!==e.enumValueMatch?e.enumValueMatch?-1:1:this.propertiesValueMatches!==e.propertiesValueMatches?this.propertiesValueMatches-e.propertiesValueMatches:this.primaryValueMatches!==e.primaryValueMatches?this.primaryValueMatches-e.primaryValueMatches:this.propertiesMatches-e.propertiesMatches}compareKubernetes(e){const t=this.hasProblems();return this.propertiesMatches!==e.propertiesMatches?this.propertiesMatches-e.propertiesMatches:this.enumValueMatch!==e.enumValueMatch?e.enumValueMatch?-1:1:this.primaryValueMatches!==e.primaryValueMatches?this.primaryValueMatches-e.primaryValueMatches:this.propertiesValueMatches!==e.propertiesValueMatches?this.propertiesValueMatches-e.propertiesValueMatches:t!==e.hasProblems()?t?-1:1:this.propertiesMatches-e.propertiesMatches}};function Ti(e){switch(e.type){case"array":return e.children.map(Ti);case"object":{const t=Object.create(null);for(let n=0,r=e.children;n<r.length;n++){const e=r[n],o=e.children[1];o&&(t[e.children[0].value]=Ti(o))}return t}case"null":case"string":case"number":case"boolean":return e.value;default:return}}function ki(e,t,n=!1){return t>=e.offset&&t<=e.offset+e.length||n&&t===e.offset+e.length}function Ni(e,t,n){if(void 0===n&&(n=!1),ki(e,t,n)){const r=e.children;if(Array.isArray(r))for(let e=0;e<r.length&&r[e].offset<=t;e++){const o=Ni(r[e],t,n);if(o)return o}return e}}function Oi(e,t,n,r,o,i){const{isKubernetes:s}=i;if(e&&o.include(e)&&"object"==typeof t){switch(t.url||(t.url=n.url),t.closestTitle=t.title||n.closestTitle,e.type){case"object":!function(e,t,r,o){var a;const u=Object.create(null),c=[],l=[...e.properties];for(;l.length>0;){const e=l.pop(),t=e.keyNode.value;if("<<"===t&&e.valueNode)switch(e.valueNode.type){case"object":l.push(...e.valueNode.properties);break;case"array":e.valueNode.items.forEach((e=>{var t;e&&(t=e.properties,Symbol.iterator in Object(t))&&l.push(...e.properties)}))}else u[t]=e.valueNode,c.push(t)}if(Array.isArray(t.required))for(const o of t.required)if(void 0===u[o]){const i=e.parent&&"property"===e.parent.type&&e.parent.keyNode,s=i?{offset:i.offset,length:i.length}:{offset:e.offset,length:1};r.problems.push({location:s,severity:L.Warning,message:Pi(li.missingRequiredPropWarning,[o]),source:Li(t,n),schemaUri:Mi(t,n),problemArgs:[o],problemType:li.missingRequiredPropWarning})}const f=e=>{let t=c.indexOf(e);for(;t>=0;)c.splice(t,1),t=c.indexOf(e)};if(t.properties)for(const e of Object.keys(t.properties)){f(e);const c=t.properties[e],l=u[e];if(l)if(Oo(c))if(c)r.propertiesMatches++,r.propertiesValueMatches++;else{const o=l.parent;r.problems.push({location:{offset:o.keyNode.offset,length:o.keyNode.length},severity:L.Warning,message:t.errorMessage||pi("DisallowedExtraPropWarning","Property {0} is not allowed.",e),source:Li(t,n),schemaUri:Mi(t,n)})}else{c.url=null!==(a=t.url)&&void 0!==a?a:n.url;const e=new Fi(s);Oi(l,c,t,e,o,i),r.mergePropertyMatch(e),r.mergeEnumValues(e)}}if(t.patternProperties)for(const e of Object.keys(t.patternProperties)){const a=_o(e);for(const l of c.slice(0))if(a.test(l)){f(l);const a=u[l];if(a){const u=t.patternProperties[e];if(Oo(u))if(u)r.propertiesMatches++,r.propertiesValueMatches++;else{const e=a.parent;r.problems.push({location:{offset:e.keyNode.offset,length:e.keyNode.length},severity:L.Warning,message:t.errorMessage||pi("DisallowedExtraPropWarning","Property {0} is not allowed.",l),source:Li(t,n),schemaUri:Mi(t,n)})}else{const e=new Fi(s);Oi(a,u,t,e,o,i),r.mergePropertyMatch(e),r.mergeEnumValues(e)}}}}if("object"==typeof t.additionalProperties)for(const e of c){const n=u[e];if(n){const e=new Fi(s);Oi(n,t.additionalProperties,t,e,o,i),r.mergePropertyMatch(e),r.mergeEnumValues(e)}}else if((!1===t.additionalProperties||"object"===t.type&&void 0===t.additionalProperties&&!0===i.disableAdditionalProperties)&&c.length>0)for(const e of c){const o=u[e];if(o){let i=null;"property"!==o.type?(i=o.parent,"object"===i.type&&(i=i.properties[0])):i=o,r.problems.push({location:{offset:i.keyNode.offset,length:i.keyNode.length},severity:L.Warning,message:t.errorMessage||pi("DisallowedExtraPropWarning","Property {0} is not allowed.",e),source:Li(t,n),schemaUri:Mi(t,n)})}}if(ko(t.maxProperties)&&e.properties.length>t.maxProperties&&r.problems.push({location:{offset:e.offset,length:e.length},severity:L.Warning,message:pi("MaxPropWarning","Object has more properties than limit of {0}.",t.maxProperties),source:Li(t,n),schemaUri:Mi(t,n)}),ko(t.minProperties)&&e.properties.length<t.minProperties&&r.problems.push({location:{offset:e.offset,length:e.length},severity:L.Warning,message:pi("MinPropWarning","Object has fewer properties than the required number of {0}",t.minProperties),source:Li(t,n),schemaUri:Mi(t,n)}),t.dependencies)for(const a of Object.keys(t.dependencies))if(u[a]){const c=t.dependencies[a];if(Array.isArray(c))for(const o of c)u[o]?r.propertiesValueMatches++:r.problems.push({location:{offset:e.offset,length:e.length},severity:L.Warning,message:pi("RequiredDependentPropWarning","Object is missing property {0} required by property {1}.",o,a),source:Li(t,n),schemaUri:Mi(t,n)});else{const n=Si(c);if(n){const a=new Fi(s);Oi(e,n,t,a,o,i),r.mergePropertyMatch(a),r.mergeEnumValues(a)}}}const p=Si(t.propertyNames);if(p)for(const n of e.properties){const e=n.keyNode;e&&Oi(e,p,t,r,_i.instance,i)}}(e,t,r,o);break;case"array":!function(e,t,r,o){if(Array.isArray(t.items)){const a=t.items;for(let n=0;n<a.length;n++){const u=Si(a[n]),c=new Fi(s),l=e.items[n];l?(Oi(l,u,t,c,o,i),r.mergePropertyMatch(c),r.mergeEnumValues(c)):e.items.length>=a.length&&r.propertiesValueMatches++}if(e.items.length>a.length)if("object"==typeof t.additionalItems)for(let n=a.length;n<e.items.length;n++){const a=new Fi(s);Oi(e.items[n],t.additionalItems,t,a,o,i),r.mergePropertyMatch(a),r.mergeEnumValues(a)}else!1===t.additionalItems&&r.problems.push({location:{offset:e.offset,length:e.length},severity:L.Warning,message:pi("additionalItemsWarning","Array has too many items according to schema. Expected {0} or fewer.",a.length),source:Li(t,n),schemaUri:Mi(t,n)})}else{const n=Si(t.items);if(n){const a=new Fi(s);e.items.forEach((e=>{if(n.oneOf&&1===n.oneOf.length){const s=Si(n.oneOf[0]);s.title=t.title,s.closestTitle=t.closestTitle,Oi(e,s,t,a,o,i),r.mergePropertyMatch(a),r.mergeEnumValues(a)}else Oi(e,n,t,a,o,i),r.mergePropertyMatch(a),r.mergeEnumValues(a)}))}}const a=Si(t.contains);if(a&&(e.items.some((e=>{const n=new Fi(s);return Oi(e,a,t,n,_i.instance,i),!n.hasProblems()}))||r.problems.push({location:{offset:e.offset,length:e.length},severity:L.Warning,message:t.errorMessage||pi("requiredItemMissingWarning","Array does not contain required item."),source:Li(t,n),schemaUri:Mi(t,n)})),ko(t.minItems)&&e.items.length<t.minItems&&r.problems.push({location:{offset:e.offset,length:e.length},severity:L.Warning,message:pi("minItemsWarning","Array has too few items. Expected {0} or more.",t.minItems),source:Li(t,n),schemaUri:Mi(t,n)}),ko(t.maxItems)&&e.items.length>t.maxItems&&r.problems.push({location:{offset:e.offset,length:e.length},severity:L.Warning,message:pi("maxItemsWarning","Array has too many items. Expected {0} or fewer.",t.maxItems),source:Li(t,n),schemaUri:Mi(t,n)}),!0===t.uniqueItems){const o=Ti(e);o.some(((e,t)=>t!==o.lastIndexOf(e)))&&r.problems.push({location:{offset:e.offset,length:e.length},severity:L.Warning,message:pi("uniqueItemsWarning","Array has duplicate items."),source:Li(t,n),schemaUri:Mi(t,n)})}}(e,t,r,o);break;case"string":!function(e,t,r){if(ko(t.minLength)&&e.value.length<t.minLength&&r.problems.push({location:{offset:e.offset,length:e.length},severity:L.Warning,message:pi("minLengthWarning","String is shorter than the minimum length of {0}.",t.minLength),source:Li(t,n),schemaUri:Mi(t,n)}),ko(t.maxLength)&&e.value.length>t.maxLength&&r.problems.push({location:{offset:e.offset,length:e.length},severity:L.Warning,message:pi("maxLengthWarning","String is longer than the maximum length of {0}.",t.maxLength),source:Li(t,n),schemaUri:Mi(t,n)}),Lo(t.pattern)&&(_o(t.pattern).test(e.value)||r.problems.push({location:{offset:e.offset,length:e.length},severity:L.Warning,message:t.patternErrorMessage||t.errorMessage||pi("patternWarning",'String does not match the pattern of "{0}".',t.pattern),source:Li(t,n),schemaUri:Mi(t,n)})),t.format)switch(t.format){case"uri":case"uri-reference":{let o;if(e.value)try{v.parse(e.value).scheme||"uri"!==t.format||(o=pi("uriSchemeMissing","URI with a scheme is expected."))}catch(e){o=e.message}else o=pi("uriEmpty","URI expected.");o&&r.problems.push({location:{offset:e.offset,length:e.length},severity:L.Warning,message:t.patternErrorMessage||t.errorMessage||pi("uriFormatWarning","String is not a URI: {0}",o),source:Li(t,n),schemaUri:Mi(t,n)})}break;case"color-hex":case"date-time":case"date":case"time":case"email":{const o=hi[t.format];e.value&&o.pattern.exec(e.value)||r.problems.push({location:{offset:e.offset,length:e.length},severity:L.Warning,message:t.patternErrorMessage||t.errorMessage||o.errorMessage,source:Li(t,n),schemaUri:Mi(t,n)})}}}(e,t,r);break;case"number":!function(e,t,r){const o=e.value;function i(e,t){return ko(t)?t:Oo(t)&&t?e:void 0}function s(e,t){if(!Oo(t)||!t)return e}ko(t.multipleOf)&&o%t.multipleOf!=0&&r.problems.push({location:{offset:e.offset,length:e.length},severity:L.Warning,message:pi("multipleOfWarning","Value is not divisible by {0}.",t.multipleOf),source:Li(t,n),schemaUri:Mi(t,n)});const a=i(t.minimum,t.exclusiveMinimum);ko(a)&&o<=a&&r.problems.push({location:{offset:e.offset,length:e.length},severity:L.Warning,message:pi("exclusiveMinimumWarning","Value is below the exclusive minimum of {0}.",a),source:Li(t,n),schemaUri:Mi(t,n)});const u=i(t.maximum,t.exclusiveMaximum);ko(u)&&o>=u&&r.problems.push({location:{offset:e.offset,length:e.length},severity:L.Warning,message:pi("exclusiveMaximumWarning","Value is above the exclusive maximum of {0}.",u),source:Li(t,n),schemaUri:Mi(t,n)});const c=s(t.minimum,t.exclusiveMinimum);ko(c)&&o<c&&r.problems.push({location:{offset:e.offset,length:e.length},severity:L.Warning,message:pi("minimumWarning","Value is below the minimum of {0}.",c),source:Li(t,n),schemaUri:Mi(t,n)});const l=s(t.maximum,t.exclusiveMaximum);ko(l)&&o>l&&r.problems.push({location:{offset:e.offset,length:e.length},severity:L.Warning,message:pi("maximumWarning","Value is above the maximum of {0}.",l),source:Li(t,n),schemaUri:Mi(t,n)})}(e,t,r);break;case"property":return Oi(e.valueNode,t,t,r,o,i)}!function(){function c(t){return e.type===t||"integer"===t&&"number"===e.type&&e.isInteger}if(Array.isArray(t.type))t.type.some(c)||r.problems.push({location:{offset:e.offset,length:e.length},severity:L.Warning,message:t.errorMessage||pi("typeArrayMismatchWarning","Incorrect type. Expected one of {0}.",t.type.join(", ")),source:Li(t,n),schemaUri:Mi(t,n)});else if(t.type&&!c(t.type)){const o="object"===t.type?Po(t):t.type;r.problems.push({location:{offset:e.offset,length:e.length},severity:L.Warning,message:t.errorMessage||Pi(li.typeMismatchWarning,[o]),source:Li(t,n),schemaUri:Mi(t,n),problemType:li.typeMismatchWarning,problemArgs:[o]})}if(Array.isArray(t.allOf))for(const n of t.allOf)Oi(e,Si(n),t,r,o,i);const l=Si(t.not);if(l){const a=new Fi(s),u=o.newSub();Oi(e,l,t,a,u,i),a.hasProblems()||r.problems.push({location:{offset:e.offset,length:e.length},severity:L.Warning,message:pi("notSchemaWarning","Matches a schema that is not allowed."),source:Li(t,n),schemaUri:Mi(t,n)});for(const e of u.schemas)e.inverted=!e.inverted,o.add(e)}const f=(c,l)=>{const f=[],p=[];let h=null;for(const n of c){const r=Si(n),c=new Fi(s),d=o.newSub();Oi(e,r,t,c,d,i),c.hasProblems()||(f.push(r),0===c.propertiesMatches&&p.push(r)),h=h?s?a(c,h,r,d):u(l,c,h,r,d):{schema:r,validationResult:c,matchingSchemas:d}}return f.length>1&&0===p.length&&l&&r.problems.push({location:{offset:e.offset,length:1},severity:L.Warning,message:pi("oneOfWarning","Minimum one schema should validate."),source:Li(t,n),schemaUri:Mi(t,n)}),null!==h&&(r.merge(h.validationResult),r.propertiesMatches+=h.validationResult.propertiesMatches,r.propertiesValueMatches+=h.validationResult.propertiesValueMatches,o.merge(h.matchingSchemas)),f.length};Array.isArray(t.anyOf)&&f(t.anyOf,!1),Array.isArray(t.oneOf)&&f(t.oneOf,!0);const p=(t,n)=>{const a=new Fi(s),u=o.newSub();Oi(e,Si(t),n,a,u,i),r.merge(a),r.propertiesMatches+=a.propertiesMatches,r.propertiesValueMatches+=a.propertiesValueMatches,o.merge(u)},h=Si(t.if);if(h&&((t,n,r,a)=>{const u=Si(t),c=new Fi(s),l=o.newSub();Oi(e,u,n,c,l,i),o.merge(l),c.hasProblems()?a&&p(a,n):r&&p(r,n)})(h,t,Si(t.then),Si(t.else)),Array.isArray(t.enum)){const o=Ti(e);let i=!1;for(const e of t.enum)if(To(o,e)){i=!0;break}r.enumValues=t.enum,r.enumValueMatch=i,i||r.problems.push({location:{offset:e.offset,length:e.length},severity:L.Warning,code:Rr.EnumValueMismatch,message:t.errorMessage||pi("enumWarning","Value is not accepted. Valid values: {0}.",t.enum.map((e=>JSON.stringify(e))).join(", ")),source:Li(t,n),schemaUri:Mi(t,n)})}No(t.const)&&(To(Ti(e),t.const)?r.enumValueMatch=!0:(r.problems.push({location:{offset:e.offset,length:e.length},severity:L.Warning,code:Rr.EnumValueMismatch,problemType:li.constWarning,message:t.errorMessage||Pi(li.constWarning,[JSON.stringify(t.const)]),source:Li(t,n),schemaUri:Mi(t,n),problemArgs:[JSON.stringify(t.const)]}),r.enumValueMatch=!1),r.enumValues=[t.const]),t.deprecationMessage&&e.parent&&r.problems.push({location:{offset:e.parent.offset,length:e.parent.length},severity:L.Warning,message:t.deprecationMessage,source:Li(t,n),schemaUri:Mi(t,n)})}(),o.add({node:e,schema:t})}function a(e,t,n,r){const o=e.compareKubernetes(t.validationResult);return o>0?t={schema:n,validationResult:e,matchingSchemas:r}:0===o&&(t.matchingSchemas.merge(r),t.validationResult.mergeEnumValues(e)),t}function u(e,t,n,r,o){if(e||t.hasProblems()||n.validationResult.hasProblems()){const e=t.compareGeneric(n.validationResult);e>0?n={schema:r,validationResult:t,matchingSchemas:o}:0===e&&(n.matchingSchemas.merge(o),n.validationResult.mergeEnumValues(t),n.validationResult.mergeWarningGeneric(t,[li.missingRequiredPropWarning,li.typeMismatchWarning,li.constWarning]))}else n.matchingSchemas.merge(o),n.validationResult.propertiesMatches+=t.propertiesMatches,n.validationResult.propertiesValueMatches+=t.propertiesValueMatches;return n}}function Li(e,t){var n;if(e){let r;if(e.title)r=e.title;else if(e.closestTitle)r=e.closestTitle;else if(t.closestTitle)r=t.closestTitle;else{const o=null!==(n=e.url)&&void 0!==n?n:t.url;if(o){const e=v.parse(o);"file"===e.scheme&&(r=e.fsPath),r=e.toString()}}if(r)return`yaml-schema: ${r}`}return di}function Mi(e,t){var n;const r=null!==(n=e.url)&&void 0!==n?n:t.url;return r?[r]:[]}function Pi(e,t){return pi(e,gi[e],t.join(" | "))}var Ii=0;function Bi(e,t,n,r){if(e||(Ii=0),!t)return null;if(Be(t))return function(e,t,n,r){let o;o=e.flow&&!e.range?function(e){let t=Number.MAX_SAFE_INTEGER,n=0;for(const r of e.items)Re(r)&&(Ue(r.key)&&r.key.range&&r.key.range[0]<=t&&(t=r.key.range[0]),Ue(r.value)&&r.value.range&&r.value.range[2]>=n&&(n=r.value.range[2]));return[t,n,n]}(e):e.range;const i=new Ai(t,e,...ji(o,r));for(const t of e.items)Re(t)&&i.properties.push(Bi(i,t,n,r));return i}(t,e,n,r);if(Re(t))return function(e,t,n,r){const o=e.key,i=e.value,s=o.range[0];let a=o.range[1],u=o.range[2];i&&(a=i.range[1],u=i.range[2]);const c=new wi(t,e,...ji([s,a,u],r));if(Pe(o)){const e=new Ei(t,o,...Ri(o.range));e.value=o.source,c.keyNode=e}else c.keyNode=Bi(c,o,n,r);return c.valueNode=Bi(c,i,n,r),c}(t,e,n,r);if(Ve(t))return function(e,t,n,r){const o=new Di(t,e,...Ri(e.range));for(const t of e.items)if(Ue(t)){const e=Bi(o,t,n,r);e&&o.children.push(e)}return o}(t,e,n,r);if(je(t))return function(e,t){if(null===e.value)return new bi(t,e,...Ri(e.range));switch(typeof e.value){case"string":{const n=new Ei(t,e,...Ri(e.range));return n.value=e.value,n}case"boolean":return new vi(t,e,e.value,...Ri(e.range));case"number":{const n=new Ci(t,e,...Ri(e.range));return n.value=e.value,n.isInteger=Number.isInteger(n.value),n}default:{const n=new Ei(t,e,...Ri(e.range));return n.value=e.source,n}}}(t,e);if(Pe(t)){if(Ii>1e3)return;return function(e,t,n,r){Ii++;const o=e.resolve(n);if(o)return Bi(t,o,n,r);{const n=new Ei(t,e,...Ri(e.range));return n.value=e.source,n}}(t,e,n,r)}}function Ri(e){return[e[0],e[1]-e[0]]}function ji(e,t){const n=t.linePos(e[0]),r=t.linePos(e[1]),o=[e[0],e[1]-e[0]];return n.line===r.line||t.lineStarts.length===r.line&&1!==r.col||o[1]--,o}function Vi(e){return void 0!==e.start}function $i(e,t,n){let r=n(t,e);if("symbol"==typeof r)return r;for(const o of["key","value"]){const i=t[o];if(i&&"items"in i){for(let t=0;t<i.items.length;++t){const r=$i(Object.freeze(e.concat([[o,t]])),i.items[t],n);if("number"==typeof r)t=r-1;else{if(r===ze.BREAK)return ze.BREAK;r===ze.REMOVE&&(i.items.splice(t,1),t-=1)}}"function"==typeof r&&"key"===o&&(r=r(t,e))}}const o=t.sep;if(o)for(let t=0;t<o.length;++t){const r=$i(Object.freeze(e),o[t],n);if("number"==typeof r)t=r-1;else{if(r===ze.BREAK)return ze.BREAK;r===ze.REMOVE&&(o.items.splice(t,1),t-=1)}}return"function"==typeof r?r(t,e):r}var Ui=class extends class{constructor(e,t=[],n=[]){this.root=e,this.syntaxErrors=t,this.comments=n}getNodeFromOffset(e,t=!1){if(this.root)return Ni(this.root,e,t)}getNodeFromOffsetEndInclusive(e){return this.root&&this.root.getNodeFromOffsetEndInclusive(e)}visit(e){if(this.root){const t=n=>{let r=e(n);const o=n.children;if(Array.isArray(o))for(let e=0;e<o.length&&r;e++)r=t(o[e]);return r};t(this.root)}}validate(e,t){if(this.root&&t){const n=new Fi(this.isKubernetes);return Oi(this.root,t,t,n,_i.instance,{isKubernetes:this.isKubernetes,disableAdditionalProperties:this.disableAdditionalProperties}),n.problems.map((t=>{const n=A.create(e.positionAt(t.location.offset),e.positionAt(t.location.offset+t.location.length)),r=I.create(n,t.message,t.severity,t.code?t.code:Rr.Undefined,t.source);return r.data={schemaUri:t.schemaUri},r}))}return null}getMatchingSchemas(e,t=-1,n=null){const r=new xi(t,n);return this.root&&e&&Oi(this.root,e,e,new Fi(this.isKubernetes),r,{isKubernetes:this.isKubernetes,disableAdditionalProperties:this.disableAdditionalProperties}),r.schemas}}{constructor(e){super(null,[]),this.lineCounter=e}clone(){const e=new Ui(this.lineCounter);return e.isKubernetes=this.isKubernetes,e.disableAdditionalProperties=this.disableAdditionalProperties,e.currentDocIndex=this.currentDocIndex,e._lineComments=this.lineComments.slice(),e.internalDocument=this._internalDocument.clone(),e}collectLineComments(){this._lineComments=[],this._internalDocument.commentBefore&&this._internalDocument.commentBefore.split("\n").forEach((e=>this._lineComments.push(`#${e}`))),ze(this.internalDocument,((e,t)=>{(null==t?void 0:t.commentBefore)&&(null==t?void 0:t.commentBefore.split("\n")).forEach((e=>this._lineComments.push(`#${e}`))),(null==t?void 0:t.comment)&&this._lineComments.push(`#${t.comment}`)})),this._internalDocument.comment&&this._lineComments.push(`#${this._internalDocument.comment}`)}set internalDocument(e){this._internalDocument=e,this.root=Bi(null,this._internalDocument.contents,this._internalDocument,this.lineCounter)}get internalDocument(){return this._internalDocument}get lineComments(){return this._lineComments||this.collectLineComments(),this._lineComments}set lineComments(e){this._lineComments=e}get errors(){return this.internalDocument.errors.map(qi)}get warnings(){return this.internalDocument.warnings.map(qi)}getNodeFromPosition(e,t,n){const r=t.getPosition(e);if(0===t.getLineContent(r.line).trim().length)return[this.findClosestNode(e,t,n),!0];let o;return ze(this.internalDocument,((t,n)=>{if(!n)return;const r=n.range;return r?r[0]<=e&&r[1]>=e?void(o=n):ze.SKIP:void 0})),[o,!1]}findClosestNode(e,t,n){let r,o=this.internalDocument.range[2],i=this.internalDocument.range[0];ze(this.internalDocument,((t,n)=>{if(!n)return;const s=n.range;if(!s)return;const a=s[2]-e;i<=s[0]&&a<=0&&Math.abs(a)<=o&&(o=Math.abs(a),i=s[0],r=n)}));const s=t.getPosition(e),a=function(e,t){if(e.length<t)return 0;for(let n=0;n<t;n++){const t=e.charCodeAt(n);if(32!==t&&9!==t)return n}return t}(t.getLineContent(s.line),s.character);return je(r)&&null===r.value||a===s.character&&(r=this.getProperParentByIndentation(a,r,t,"",n)),r}getProperParentByIndentation(e,t,n,r,o,i){if(!t)return this.internalDocument.contents;if(o=o||2,Ue(t)&&t.range){const s=n.getPosition(t.range[0]),a=n.getLineContent(s.line);if((r=""===r?a.trim():r).startsWith("-")&&e===o&&r===a.trim()&&(s.character+=e),s.character>e&&s.character>0){const s=this.getParent(t);if(s)return this.getProperParentByIndentation(e,s,n,r,o,i)}else{if(!(s.character<e))return t;{const e=this.getParent(t);if(Re(e)&&Ue(e.value))return e.value;if(Re(i)&&Ue(i.value))return i.value}}}else if(Re(t)){i=t;const s=this.getParent(t);return this.getProperParentByIndentation(e,s,n,r,o,i)}return t}getParent(e){return function(e,t){let n;if(ze(e,((e,r,o)=>{if(r===t)return n=o[o.length-1],ze.BREAK})),!Ie(n))return n}(this.internalDocument,e)}},Wi=class{constructor(e,t){this.documents=e,this.tokens=t,this.errors=[],this.warnings=[]}},Ki=new class{constructor(){this.cache=new Map}getYamlDocument(e,t,n=!1){return this.ensureCache(e,null!=t?t:Ji,n),this.cache.get(e.uri).document}clear(){this.cache.clear()}ensureCache(e,t,n){const r=e.uri;this.cache.has(r)||this.cache.set(r,{version:-1,document:new Wi([],[]),parserOptions:Ji});const o=this.cache.get(r);if(o.version!==e.version||t.customTags&&!ci(o.parserOptions.customTags,t.customTags)){let r=e.getText();n&&!/\S/.test(r)&&(r=`{${r}}`);const i=function(e,t=Ji,n){const r={strict:!1,customTags:zi(t.customTags),version:t.yamlVersion,keepSourceTokens:!0},o=new gr(r),i=new Tr;let s=!1;if(n){const t=new Yi(n),r=t.getPosition(e.length);s=0===t.getLineContent(r.line).trim().length}const a=(s?new Ir:new Ir(i.addNewLine)).parse(e),u=Array.from(a),c=o.compose(u,!0,e.length),l=Array.from(c,(e=>function(e,t){const n=new Ui(t);return n.internalDocument=e,n}(e,i)));return new Wi(l,u)}(r,t,e);o.document=i,o.version=e.version,o.parserOptions=t}}};function qi(e){return{message:e.message,location:{start:e.pos[0],end:e.pos[1],toLineEnd:!0},severity:1,code:Rr.Undefined}}var Hi=class{constructor(e,t){this.tag=e,this.type=t}get collection(){return"mapping"===this.type?"map":"sequence"===this.type?"seq":void 0}resolve(e){return Be(e)&&"mapping"===this.type||Ve(e)&&"sequence"===this.type||"string"==typeof e&&"scalar"===this.type?e:void 0}};function zi(e){const t=[],n=ui(e);for(const e of n){const n=e.split(" "),r=n[0],o=n[1]&&n[1].toLowerCase()||"scalar";t.push(new Hi(r,o))}return t.push(new class{constructor(){this.tag="!include",this.type="scalar"}resolve(e,t){if(e&&e.length>0&&e.trim())return e;t("!include without value")}}),t}var Yi=class{constructor(e){this.doc=e}getLineCount(){return this.doc.lineCount}getLineLength(e){const t=this.doc.getLineOffsets();return e>=t.length?this.doc.getText().length:e<0?0:(e+1<t.length?t[e+1]:this.doc.getText().length)-t[e]}getLineContent(e){const t=this.doc.getLineOffsets();if(e>=t.length)return this.doc.getText();if(e<0)return"";const n=e+1<t.length?t[e+1]:this.doc.getText().length;return this.doc.getText().substring(t[e],n)}getLineCharCode(e,t){return this.doc.getText(A.create(e-1,t-1,e-1,t)).charCodeAt(0)}getText(e){return this.doc.getText(e)}getPosition(e){return this.doc.positionAt(e)}},Ji={customTags:[],yamlVersion:"1.2"};function Gi(e){const t=e.match(/^#\s+yaml-language-server\s*:/g);return null!==t&&1===t.length}var Xi,Qi,Zi=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{u(r.next(e))}catch(e){i(e)}}function a(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},es=Zr();(Qi=Xi||(Xi={}))[Qi.delete=0]="delete",Qi[Qi.add=1]="add",Qi[Qi.deleteAll=2]="deleteAll";var ts=class extends wo{constructor(e,t,n){super(e,t,n),this.schemaUriToNameAndDescription=new Map,this.customSchemaProvider=void 0,this.requestService=e,this.schemaPriorityMapping=new Map}registerCustomSchemaProvider(e){this.customSchemaProvider=e}getAllSchemas(){const e=[],t=new Set;for(const n of this.filePatternAssociations){const r=n.uris[0];if(t.has(r))continue;t.add(r);const o={uri:r,fromStore:!1,usedForCurrentFile:!1};if(this.schemaUriToNameAndDescription.has(r)){const{name:e,description:t,versions:n}=this.schemaUriToNameAndDescription.get(r);o.name=e,o.description=t,o.fromStore=!0,o.versions=n}e.push(o)}return e}resolveSchemaContent(e,t,n){return Zi(this,void 0,void 0,(function*(){const r=e.errors.slice(0);let o=e.schema;const i=this.contextService,s=(e,t,n,o)=>{const i=((e,t)=>{if(!t)return e;let n=e;return"/"===t[0]&&(t=t.substr(1)),t.split("/").some((e=>(n=n[e],!n))),n})(t,o);if(i)for(const t in i)Object.prototype.hasOwnProperty.call(i,t)&&!Object.prototype.hasOwnProperty.call(e,t)&&(e[t]=i[t]);else r.push(es("json.schema.invalidref","$ref '{0}' in '{1}' can not be resolved.",o,n))},a=(e,t,n,o,a)=>{i&&!/^\w+:\/\/.*/.test(t)&&(t=i.resolveRelativePath(t,o)),t=this.normalizeId(t);const c=this.getOrAddSchemaHandle(t);return c.getUnresolvedSchema().then((o=>{if(a[t]=!0,o.errors.length){const e=n?t+"#"+n:t;r.push(es("json.schema.problemloadingref","Problems loading reference '{0}': {1}",e,o.errors[0]))}return s(e,o.schema,t,n),e.url=t,u(e,o.schema,t,c.dependencies)}))},u=(e,t,n,r)=>Zi(this,void 0,void 0,(function*(){if(!e||"object"!=typeof e)return null;const i=[e],u=[],c=[],l=e=>{const o=[];for(;e.$ref;){const i=e.$ref,u=i.split("#",2);if(e._$ref=e.$ref,delete e.$ref,u[0].length>0)return void c.push(a(e,u[0],u[1],n,r));-1===o.indexOf(i)&&(s(e,t,n,u[1]),o.push(i))}((...e)=>{for(const t of e)"object"==typeof t&&i.push(t)})(e.items,e.additionalItems,e.additionalProperties,e.not,e.contains,e.propertyNames,e.if,e.then,e.else),((...e)=>{for(const t of e)if("object"==typeof t)for(const e in t){const n=t[e];"object"==typeof n&&i.push(n)}})(e.definitions,e.properties,e.patternProperties,e.dependencies),((...e)=>{for(const t of e)if(Array.isArray(t))for(const e of t)"object"==typeof e&&i.push(e)})(e.anyOf,e.allOf,e.oneOf,e.items,e.schemaSequence)};if(n.indexOf("#")>0){const e=n.split("#",2);if(e[0].length>0&&e[1].length>0){const t={};yield a(t,e[0],e[1],n,r);for(const e in o)"required"!==e&&Object.prototype.hasOwnProperty.call(o,e)&&!Object.prototype.hasOwnProperty.call(t,e)&&(t[e]=o[e]);o=t}}for(;i.length;){const e=i.pop();u.indexOf(e)>=0||(u.push(e),l(e))}return Promise.all(c)}));return yield u(o,o,t,n),new Eo(o,r)}))}getSchemaForResource(e,t){const n=()=>{const n=Object.create(null),r=[];let o=function(e){if(e instanceof Ui){const t=e.lineComments.find((e=>Gi(e)));if(null!=t){const e=t.match(/\$schema=\S+/g);if(null!==e&&e.length>=1)return e.length>=2&&console.log("Several $schema attributes have been found on the yaml-language-server modeline. The first one will be picked."),e[0].substring("$schema=".length)}}}(t);if(void 0!==o){if(!o.startsWith("file:")&&!o.startsWith("http")){let t="";if(o.indexOf("#")>0){const e=o.split("#",2);o=e[0],t=e[1]}if($r.isAbsolute(o))o=v.file(o).toString();else{const t=v.parse(e);o=v.file($r.resolve($r.parse(t.fsPath).dir,o)).toString()}t.length>0&&(o+="#"+t)}this.addSchemaPriority(o,Ds.Modeline),r.push(o),n[o]=!0}for(const t of this.filePatternAssociations)if(t.matchesPattern(e))for(const e of t.getURIs())n[e]||(r.push(e),n[e]=!0);const i=this.normalizeId(e);if(this.schemasById[i]&&r.push(i),r.length>0){const n=this.highestPrioritySchemas(r),o=super.createCombinedSchema(e,n);return o.getResolvedSchema().then((e=>(e.schema&&"object"==typeof e.schema&&(e.schema.url=o.url),e.schema&&e.schema.schemaSequence&&e.schema.schemaSequence[t.currentDocIndex]?new Eo(e.schema.schemaSequence[t.currentDocIndex]):e)))}return Promise.resolve(null)};return this.customSchemaProvider?this.customSchemaProvider(e).then((e=>Array.isArray(e)?0===e.length?n():Promise.all(e.map((e=>this.resolveCustomSchema(e,t)))).then((e=>({errors:[],schema:{anyOf:e.map((e=>e.schema))}})),(()=>n())):e?this.resolveCustomSchema(e,t):n())).then((e=>e),(()=>n())):n()}addSchemaPriority(e,t){let n=this.schemaPriorityMapping.get(e);n?(n=n.add(t),this.schemaPriorityMapping.set(e,n)):this.schemaPriorityMapping.set(e,(new Set).add(t))}highestPrioritySchemas(e){let t=0;const n=new Map;return e.forEach((e=>{(this.schemaPriorityMapping.get(e)||[0]).forEach((r=>{r>t&&(t=r);let o=n.get(r);o?(o=o.concat(e),n.set(r,o)):n.set(r,[e])}))})),n.get(t)||[]}resolveCustomSchema(e,t){return Zi(this,void 0,void 0,(function*(){const n=yield this.loadSchema(e),r=yield this.resolveSchemaContent(n,e,[]);return r.schema&&(r.schema.url=e),r.schema&&r.schema.schemaSequence&&r.schema.schemaSequence[t.currentDocIndex]?new Eo(r.schema.schemaSequence[t.currentDocIndex]):r}))}saveSchema(e,t){return Zi(this,void 0,void 0,(function*(){const n=this.normalizeId(e);return this.getOrAddSchemaHandle(n,t),this.schemaPriorityMapping.set(n,(new Set).add(Ds.Settings)),Promise.resolve(void 0)}))}deleteSchemas(e){return Zi(this,void 0,void 0,(function*(){return e.schemas.forEach((e=>{this.deleteSchema(e)})),Promise.resolve(void 0)}))}deleteSchema(e){return Zi(this,void 0,void 0,(function*(){const t=this.normalizeId(e);return this.schemasById[t]&&delete this.schemasById[t],this.schemaPriorityMapping.delete(t),Promise.resolve(void 0)}))}addContent(e){return Zi(this,void 0,void 0,(function*(){const t=yield this.getResolvedSchema(e.schema);if(t){const n=this.resolveJSONSchemaToSection(t.schema,e.path);"object"==typeof n&&(n[e.key]=e.content),yield this.saveSchema(e.schema,t.schema)}}))}deleteContent(e){return Zi(this,void 0,void 0,(function*(){const t=yield this.getResolvedSchema(e.schema);if(t){const n=this.resolveJSONSchemaToSection(t.schema,e.path);"object"==typeof n&&delete n[e.key],yield this.saveSchema(e.schema,t.schema)}}))}resolveJSONSchemaToSection(e,t){const n=t.split("/");let r=e;for(const e of n)""!==e&&(this.resolveNext(r,e),r=r[e]);return r}resolveNext(e,t){if(Array.isArray(e)&&isNaN(t))throw new Error("Expected a number after the array object");if("object"==typeof e&&"string"!=typeof t)throw new Error("Expected a string after the object")}normalizeId(e){try{return v.parse(e).toString()}catch(t){return e}}getOrAddSchemaHandle(e,t){return super.getOrAddSchemaHandle(e,t)}loadSchema(e){const t=this.requestService;return super.loadSchema(e).then((n=>{if(n.errors&&void 0===n.schema)return t(e).then((t=>{if(!t){const t=es("json.schema.nocontent","Unable to load schema from '{0}': No content.",ns(e));return new Co({},[t])}try{const e=Br(t);return new Co(e,[])}catch(t){const n=es("json.schema.invalidFormat","Unable to parse content from '{0}': {1}.",ns(e),t);return new Co({},[n])}}),(e=>{let t=e.toString();const n=e.toString().split("Error: ");return n.length>1&&(t=n[1]),new Co({},[t])}));if(n.uri=e,this.schemaUriToNameAndDescription.has(e)){const{name:t,description:r,versions:o}=this.schemaUriToNameAndDescription.get(e);n.schema.title=null!=t?t:n.schema.title,n.schema.description=null!=r?r:n.schema.description,n.schema.versions=null!=o?o:n.schema.versions}return n}))}registerExternalSchema(e,t,n,r,o,i){return(r||o)&&this.schemaUriToNameAndDescription.set(e,{name:r,description:o,versions:i}),super.registerExternalSchema(e,t,n)}clearExternalSchemas(){super.clearExternalSchemas()}setSchemaContributions(e){super.setSchemaContributions(e)}getRegisteredSchemaIds(e){return super.getRegisteredSchemaIds(e)}getResolvedSchema(e){return super.getResolvedSchema(e)}onResourceChange(e){return super.onResourceChange(e)}};function ns(e){try{const t=v.parse(e);if("file"===t.scheme)return t.fsPath}catch(e){}return e}function rs(e,t){for(const n of e)n.isKubernetes=t}function os(e){if(e)return e.replace(/([^\n\r])(\r?\n)([^\n\r])/gm,"$1\n\n$3").replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}function is(e){for(const t of e.start)if("anchor"===t.type)return t;if(e.sep&&Array.isArray(e.sep))for(const t of e.sep)if("anchor"===t.type)return t}var ss,as=(e,t)=>{const n=t.positionAt(e.location.start),r={start:n,end:e.location.toLineEnd?w.create(n.line,new Yi(t).getLineLength(n.line)):t.positionAt(e.location.end)};return I.create(r,e.message,e.severity,e.code,di)};function us(e,t){if(!e)return;const n=[],r=Ki.getYamlDocument(e);for(const t of r.documents)r.documents.length>1&&n.push(cs(e,t.root)),t.visit((t=>{var r;return("property"===t.type&&"array"===t.valueNode.type||"object"===t.type&&"array"===(null===(r=t.parent)||void 0===r?void 0:r.type))&&n.push(cs(e,t)),"property"===t.type&&"object"===t.valueNode.type&&n.push(cs(e,t)),!0}));const o=t&&t.rangeLimit;return"number"!=typeof o||n.length<=o?n:(t&&t.onRangeLimitExceeded&&t.onRangeLimitExceeded(e.uri),n.slice(0,t.rangeLimit))}function cs(e,t){const n=e.positionAt(t.offset);let r=e.positionAt(t.offset+t.length);const o=e.getText(A.create(n,r)),i=o.length-o.trimRight().length;return i>0&&(r=e.positionAt(t.offset+t.length-i)),N.create(n.line,r.line,n.character,r.character)}function ls(e,t){const n={};return n[e]=t,{changes:n}}(ss||(ss={})).JUMP_TO_SCHEMA="jumpToSchema";var fs=new class{constructor(){this.commands=new Map}executeCommand(e){if(this.commands.has(e.command))return this.commands.get(e.command)(...e.arguments);throw new Error(`Command '${e.command}' not found`)}registerCommand(e,t){this.commands.set(e,t)}};function ps(e,t){const{position:n}=t,r=new Yi(e);if("\n"===t.ch){const e=r.getLineContent(n.line-1);if(e.trimRight().endsWith(":")){const o=r.getLineContent(n.line),i=o.substring(n.character,o.length),s=-1!==e.indexOf(" - ");if(0===i.trimRight().length){const r=n.character-(e.length-e.trimLeft().length);if(r===t.options.tabSize&&!s)return;const i=[];return o.length>0&&i.push(R.del(A.create(n,w.create(n.line,o.length-1)))),i.push(R.insert(n," ".repeat(t.options.tabSize+(s?2-r:0)))),i}if(s)return[R.insert(n," ".repeat(t.options.tabSize))]}if(e.trimRight().endsWith("|"))return[R.insert(n," ".repeat(t.options.tabSize))];if(e.includes(" - ")&&!e.includes(": "))return[R.insert(n,"- ")];if(e.includes(" - ")&&e.includes(": "))return[R.insert(n,"  ")]}}function hs(e){const t=new Map;return e?(e.url?e.url.startsWith("schemaservice://combinedSchema/")?ds(e,t):t.set(e.url,e):ds(e,t),t):t}function ds(e,t){e.allOf&&ms(e.allOf,t),e.anyOf&&ms(e.anyOf,t),e.oneOf&&ms(e.oneOf,t)}function ms(e,t){for(const n of e)Oo(n)||n.url&&!t.has(n.url)&&t.set(n.url,n)}function gs(e,t){const n=v.parse(e);let r=$r.basename(n.fsPath);return $r.extname(n.fsPath)||(r+=".json"),Object.getOwnPropertyDescriptor(t,"name")?Object.getOwnPropertyDescriptor(t,"name").value+` (${r})`:t.title?t.title+` (${r})`:r}function ys(e,t,n,r,o){let i;for(o.spacesDiff=0,o.looksLikeAlignment=!1,i=0;i<t&&i<r&&e.charCodeAt(i)===n.charCodeAt(i);i++);let s=0,a=0;for(let n=i;n<t;n++)32===e.charCodeAt(n)?s++:a++;let u=0,c=0;for(let e=i;e<r;e++)32===n.charCodeAt(e)?u++:c++;if(s>0&&a>0)return;if(u>0&&c>0)return;const l=Math.abs(a-c),f=Math.abs(s-u);if(0===l)return o.spacesDiff=f,void(f>0&&0<=u-1&&u-1<e.length&&u<n.length&&32!==n.charCodeAt(u)&&32===e.charCodeAt(u-1)&&44===e.charCodeAt(e.length-1)&&(o.looksLikeAlignment=!0));f%l!=0||(o.spacesDiff=f/l)}function bs(e,t,n,r,o=0,i=0){if(null!==e&&"object"==typeof e){const s=0===o&&r.shouldIndentWithTab||o>0?t+r.indentation:"";if(Array.isArray(e)){if(i+=1,0===e.length)return"";let a="";for(let u=0;u<e.length;u++){let c=e[u];"object"==typeof e[u]?(Array.isArray(e[u])||(c=vs(e[u],i)),a+=bs(c,t,n,r,o+=1,i)):a+="\n"+s+"- "+n(e[u])}return a}{const i=Object.keys(e);if(0===i.length)return"";let a=0===o&&r.newLineFirst||o>0?"\n":"";for(let u=0;u<i.length;u++){const c=i[u],l="object"==typeof e[c],f=l?":":": ",p=s+(l&&/^\s|-/.test(c)?r.indentation:"");0!==o||0!==u||r.indentFirstObject?a+=s+c+f+bs(e[c],p,n,r,o+=1,0):a+=t+c+f+bs(e[c],p,n,r,o+=1,0),u<i.length-1&&(a+="\n")}return a}}return n(e)}function vs(e,t){const n={};for(let r=0;r<Object.keys(e).length;r++){const o=Object.keys(e)[r];0===r?n["- ".repeat(t)+o]=e[o]:n["  ".repeat(t)+o]=e[o]}return n}var Ds,Cs,Es,ws=Zr(),As=/[\\]+"/g,Ss=Z.Class,xs=/^\d+$/;function _s(e){let t;if(t="string"==typeof e?e:""+e,0===t.length)return t;if("true"===t||"false"===t||"null"===t||xs.test(t))return`"${t}"`;-1!==t.indexOf('"')&&(t=t.replace(As,'"'));let n="@"===t.charAt(0);if(!n){let e=t.indexOf(":",0);for(;e>0&&e<t.length;e=t.indexOf(":",e+1)){if(e===t.length-1){n=!0;break}const r=t.charAt(e+1);if("\t"===r||" "===r){n=!0;break}}}return n&&(t=`"${t}"`),t}function Fs(){}function Ts(e,t,n,r,o,i){const s=new ts(e,t),a=new class{constructor(e,t={},n,r){this.schemaService=e,this.clientCapabilities=t,this.yamlDocument=n,this.telemetry=r,this.completionEnabled=!0}configure(e){e&&(this.completionEnabled=e.completion),this.customTags=e.customTags,this.yamlVersion=e.yamlVersion,this.configuredIndentation=e.indentation,this.disableDefaultProperties=e.disableDefaultProperties}doComplete(e,t,n=!1){return r=this,o=void 0,s=function*(){const r=ie.create([],!1);if(!this.completionEnabled)return r;const o=this.yamlDocument.getYamlDocument(e,{customTags:this.customTags,yamlVersion:this.yamlVersion},!0),i=new Yi(e);if(this.configuredIndentation)this.indentation=this.configuredIndentation;else{const e=function(e,t,n){const r=Math.min(e.getLineCount(),1e4);let o=0,i=0,s="",a=0;const u=[2,4,6,8,3,5,7],c=[0,0,0,0,0,0,0,0,0],l=new class{constructor(){this.spacesDiff=0,this.looksLikeAlignment=!1}};for(let t=1;t<=r;t++){const n=e.getLineLength(t),r=e.getLineContent(t),u=n<=65536;let f=!1,p=0,h=0,d=0;for(let o=0,i=n;o<i;o++){const n=u?r.charCodeAt(o):e.getLineCharCode(t,o);if(9===n)d++;else{if(32!==n){f=!0,p=o;break}h++}}if(!f)continue;if(d>0?o++:h>1&&i++,ys(s,a,r,p,l),l.looksLikeAlignment&&2!==l.spacesDiff)continue;const m=l.spacesDiff;m<=8&&c[m]++,s=r,a=p}let f=!0;o!==i&&(f=o<i);let p=2;if(f){let e=f?0:.1*r;u.forEach((t=>{const n=c[t];n>e&&(e=n,p=t)})),4===p&&c[4]>0&&c[2]>0&&c[2]>=c[4]/2&&(p=2)}return{insertSpaces:f,tabSize:p}}(i);this.indentation=e.insertSpaces?" ".repeat(e.tabSize):"\t"}rs(o.documents,n);const s=e.offsetAt(t);if(":"===e.getText().charAt(s-1))return Promise.resolve(r);let a=ai(s,o);if(null===a)return Promise.resolve(r);a=a.clone();let[u,c]=a.getNodeFromPosition(s,i,this.indentation.length);const l=this.getCurrentWord(e,s);let f=null;if(u&&je(u)&&"null"===u.value){const t=e.positionAt(u.range[0]);t.character+=1;const n=e.positionAt(u.range[2]);n.character+=1,f=A.create(t,n)}else if(u&&je(u)&&u.value){const t=e.positionAt(u.range[0]);s>0&&t.character>0&&"-"===e.getText().charAt(s-1)&&(t.character-=1),f=A.create(t,e.positionAt(u.range[1]))}else{let n=e.offsetAt(t)-l.length;n>0&&'"'===e.getText()[n-1]&&n--,f=A.create(e.positionAt(n),t)}const p={},h={add:e=>{const t=!!e.parent;let n=e.label;if(!n)return void console.warn(`Ignoring CompletionItem without label: ${JSON.stringify(e)}`);Lo(n)||(n=String(n));const o=p[n];if(!o||t){if(n=n.replace(/[\n]/g,"↵"),n.length>60){const e=n.substr(0,57).trim()+"...";p[e]||(n=e)}e.insertText.endsWith("$1")&&!t&&(e.insertText=e.insertText.substr(0,e.insertText.length-2)),f&&f.start.line===f.end.line&&(e.textEdit=R.replace(f,e.insertText)),e.label=n,t&&function(e){var t;if("__"===(null===(t=p[e.label])||void 0===t?void 0:t.label))return;const n=e.parent.schema,o=Po(n),i=n.markdownDescription||n.description;let s=r.items.find((e=>{var t;return(null===(t=e.parent)||void 0===t?void 0:t.schema)===n&&e.kind===Ss}));s&&s.parent.insertTexts.includes(e.insertText)||(s?s.parent.insertTexts.push(e.insertText):(s=Object.assign(Object.assign({},e),{label:o,documentation:i,sortText:"_"+o,kind:Ss}),s.parent.insertTexts=[e.insertText],r.items.push(s)))}(e),o||(p[n]=e,r.items.push(e))}else!o.documentation&&e.documentation&&(o.documentation=e.documentation)},error:e=>{this.telemetry.sendError("yaml.completion.error",{error:Mo(e)})},log:e=>{console.log(e)},getNumberOfProposals:()=>r.items.length};this.customTags.length>0&&this.getCustomTagValueCompletions(h);let d=i.getLineContent(t.line);d.endsWith("\n")&&(d=d.substr(0,d.length-1));try{const n=yield this.schemaService.getSchemaForResource(e.uri,a);if((!n||n.errors.length)&&0===t.line&&0===t.character&&!Gi(d)){const e={kind:Z.Text,label:"Inline schema",insertText:"# yaml-language-server: $schema=",insertTextFormat:ee.PlainText};r.items.push(e)}if(Gi(d)||function(e,t){let n=!1;for(const r of e){if("document"===r.type)$i([],r,(e=>{var o;if(Vi(e)&&"comment"===(null===(o=e.value)||void 0===o?void 0:o.type)){if(r.offset<=t&&e.value.source.length+e.value.offset>=t)return n=!0,ze.BREAK}else if("comment"===e.type&&e.offset<=t&&e.offset+e.source.length>=t)return n=!0,ze.BREAK}));else if("comment"===r.type&&r.offset<=t&&r.source.length+r.offset>=t)return!0;if(n)break}return n}(o.tokens,s)){const e=d.indexOf("$schema=");return-1!==e&&e+"$schema=".length<=t.character&&this.schemaService.getAllSchemas().forEach((e=>{var t;const n={kind:Z.Constant,label:null!==(t=e.name)&&void 0!==t?t:e.uri,detail:e.description,insertText:e.uri,insertTextFormat:ee.PlainText,insertTextMode:re.asIs};r.items.push(n)})),r}if(!n||n.errors.length)return r;let m=null;if(!u)if(!a.internalDocument.contents||je(a.internalDocument.contents)){const e=a.internalDocument.createNode({});e.range=[s,s+1,s+1],a.internalDocument.contents=e,a.internalDocument=a.internalDocument,u=e}else u=a.findClosestNode(s,i),c=!0;const g=u;if(u)if(0===d.length)u=a.internalDocument.contents;else{const n=a.getParent(u);if(n){if(je(u)){if(u.value){if(Re(n)){if(n.value===u){if(d.trim().length>0&&d.indexOf(":")<0){const e=this.createTempObjNode(l,u,a);if(Ve(a.internalDocument.contents)){const t=function(e,t){for(const[n,r]of e.items.entries())if(t===r)return n}(a.internalDocument.contents,n);"number"==typeof t&&(a.internalDocument.set(t,e),a.internalDocument=a.internalDocument)}else a.internalDocument.set(n.key,e),a.internalDocument=a.internalDocument;m=e.items[0],u=e}else if(0===d.trim().length){const e=a.getParent(n);e&&(u=e)}}else if(n.key===u){const e=a.getParent(n);m=n,e&&(u=e)}}else if(Ve(n))if(d.trim().length>0){const e=this.createTempObjNode(l,u,a);n.delete(u),n.add(e),a.internalDocument=a.internalDocument,u=e}else u=n}else if(null===u.value)if(Re(n)){if(n.key===u)u=n;else if(Ue(n.key)&&n.key.range){const r=a.getParent(n);if(c&&r&&Be(r)&&function(e){if(e.items.length>1)return!1;const t=e.items[0];return!(!je(t.key)||!je(t.value)||""!==t.key.value||t.value.value)}(r))u=r;else{const o=e.positionAt(n.key.range[0]);if(t.character>o.character&&t.line!==o.line){const e=this.createTempObjNode(l,u,a);r&&(Be(r)||Ve(r))?(r.set(n.key,e),a.internalDocument=a.internalDocument):(a.internalDocument.set(n.key,e),a.internalDocument=a.internalDocument),m=e.items[0],u=e}else o.character===t.character&&r&&(u=r)}}}else if(Ve(n))if("-"!==d.charAt(t.character-1)){const e=this.createTempObjNode(l,u,a);n.delete(u),n.add(e),a.internalDocument=a.internalDocument,u=e}else u=n}else if(Be(u)&&!c&&0===d.trim().length&&Ve(n)){const e=i.getLineContent(t.line+1);i.getLineCount()!==t.line+1&&0!==e.trim().length||(u=n)}}else if(je(u)){const e=this.createTempObjNode(l,u,a);a.internalDocument.contents=e,a.internalDocument=a.internalDocument,m=e.items[0],u=e}else if(Be(u))for(const e of u.items)Ue(e.value)&&e.value.range&&e.value.range[0]===s+1&&(u=e.value)}if(u&&Be(u)){const t=u.items;for(const e of t)m&&m===e||je(e.key)&&(p[e.key.value+""]=oe.create("__"));this.addPropertyCompletions(n,a,u,g,"",h,i,f),!n&&l.length>0&&'"'!==e.getText().charAt(s-l.length-1)&&h.add({kind:Z.Property,label:l,insertText:this.getInsertTextForProperty(l,null,""),insertTextFormat:ee.Snippet})}const y={};this.getValueCompletions(n,a,u,s,e,h,y)}catch(e){this.telemetry.sendError("yaml.completion.error",{error:Mo(e)})}return this.finalizeParentCompletion(r),r},new((i=void 0)||(i=Promise))((function(e,t){function n(e){try{u(s.next(e))}catch(e){t(e)}}function a(e){try{u(s.throw(e))}catch(e){t(e)}}function u(t){var r;t.done?e(t.value):(r=t.value,r instanceof i?r:new i((function(e){e(r)}))).then(n,a)}u((s=s.apply(r,o||[])).next())}));var r,o,i,s}finalizeParentCompletion(e){e.items.forEach((e=>{if("parent"in e){const t=e.parent.indent||"";let n=(e=>{let t=0;return e.map((e=>{const n=e.match(/\$([0-9]+)|\${[0-9]+:/g);if(!n)return e;const r=n.map((e=>+e.replace(/\${([0-9]+)[:|]/g,"$1").replace("$",""))).reduce(((e,t)=>t>e?t:e),0),o=e.replace(/\$([0-9]+)/g,((e,n)=>"$"+(+n+t))).replace(/\${([0-9]+)[:|]/g,((e,n)=>"${"+(+n+t)+":"));return t+=r,o}))})(e.parent.insertTexts).join(`\n${t}`);n.endsWith("$1")&&(n=n.substring(0,n.length-2)),e.insertText=n,e.textEdit&&(e.textEdit.newText=n);const r=n.replace(/\${[0-9]+[:|](.*)}/g,((e,t)=>t)).replace(/\$([0-9]+)/g,""),o=e.documentation?[e.documentation,"","----",""]:[];e.documentation={kind:X.Markdown,value:[...o,"```yaml",t+r,"```"].join("\n")},delete e.parent}}))}createTempObjNode(e,t,n){const r={};r[e]=null;const o=n.internalDocument.createNode(r);return o.range=t.range,o.items[0].key.range=t.range,o.items[0].value.range=t.range,o}addPropertyCompletions(e,t,n,r,o,i,s,a){var u;const c=t.getMatchingSchemas(e.schema),l=s.getText(a),f=s.getLineContent(a.start.line),p=0===f.trim().length,h=-1!==f.indexOf(":"),d=t.getParent(n),m=c.find((e=>e.node.internalNode===r&&e.schema.properties));for(const e of c){if((e.node.internalNode===n&&!m||e.node.internalNode===r)&&!e.inverted){this.collectDefaultSnippets(e.schema,o,i,{newLineFirst:!1,indentFirstObject:!1,shouldIndentWithTab:!1});const t=e.schema.properties;if(t){const r=e.schema.maxProperties;if(void 0===r||void 0===n.items||n.items.length<r||n.items.length===r&&!p)for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)){const c=t[r];if("object"==typeof c&&!c.deprecationMessage&&!c.doNotSuggest){let t,f="";if(d&&Ve(d)&&n.items.length<=1&&!p){const e=s.getText(),t=e.lastIndexOf("-",n.range[0]-1);t>=0&&(f=" "+e.slice(t+1,n.range[0]))}if("array"===c.type&&(t=n.items.find((e=>je(e.key)&&e.key.range&&e.key.value===r&&je(e.value)&&!e.value.value&&s.getPosition(e.key.range[2]).line===a.end.line-1)))&&t)if(Array.isArray(c.items))this.addSchemaValueCompletions(c.items[0],o,i,{});else if("object"==typeof c.items&&"object"===c.items.type){const e=`- ${this.getInsertTextForObject(c.items,o,"  ").insertText.trimLeft()}`,t=this.getDocumentationWithMarkdownText("Create an item of an array"+(c.description?" ("+c.description+")":""),e);i.add({kind:this.getSuggestionKind(c.items.type),label:"- (array item)",documentation:t,insertText:e,insertTextFormat:ee.Snippet})}let m=r;r.startsWith(l)&&h||(m=this.getInsertTextForProperty(r,c,o,f+this.indentation)),i.add({kind:Z.Property,label:r,insertText:m,insertTextFormat:ee.Snippet,documentation:this.fromMarkup(c.markdownDescription)||c.description||""}),(null===(u=e.schema.required)||void 0===u?void 0:u.includes(r))&&i.add({label:r,insertText:this.getInsertTextForProperty(r,c,o,f+this.indentation),insertTextFormat:ee.Snippet,documentation:this.fromMarkup(c.markdownDescription)||c.description||"",parent:{schema:e.schema,indent:f}})}}}d&&Ve(d)&&"object"!==e.schema.type&&this.addSchemaValueCompletions(e.schema,o,i,{},Array.isArray(d.items))}d&&e.node.internalNode===d&&e.schema.defaultSnippets&&(1===n.items.length?this.collectDefaultSnippets(e.schema,o,i,{newLineFirst:!1,indentFirstObject:!1,shouldIndentWithTab:!0},1):this.collectDefaultSnippets(e.schema,o,i,{newLineFirst:!1,indentFirstObject:!0,shouldIndentWithTab:!1},1))}}getValueCompletions(e,t,n,r,o,i,s){let a=null;if(n&&je(n)&&(n=t.getParent(n)),n){if(Re(n)){const e=n.value;if(e&&e.range&&r>e.range[0]+e.range[2])return;a=je(n.key)?n.key.value+"":null,n=t.getParent(n)}if(n&&(null!==a||Ve(n))){const u="",c=t.getMatchingSchemas(e.schema);for(const e of c)if(e.node.internalNode===n&&!e.inverted&&e.schema){if(e.schema.items&&(this.collectDefaultSnippets(e.schema,u,i,{newLineFirst:!1,indentFirstObject:!1,shouldIndentWithTab:!1}),Ve(n)&&n.items))if(Array.isArray(e.schema.items)){const t=this.findItemAtOffset(n,o,r);t<e.schema.items.length&&this.addSchemaValueCompletions(e.schema.items[t],u,i,s)}else if("object"==typeof e.schema.items&&"object"===e.schema.items.type){const t=`- ${this.getInsertTextForObject(e.schema.items,u,"  ").insertText.trimLeft()}`,n=this.getDocumentationWithMarkdownText("Create an item of an array"+(e.schema.description?" ("+e.schema.description+")":""),t);i.add({kind:this.getSuggestionKind(e.schema.items.type),label:"- (array item)",documentation:n,insertText:t,insertTextFormat:ee.Snippet}),this.addSchemaValueCompletions(e.schema.items,u,i,s)}else"object"==typeof e.schema.items&&e.schema.items.anyOf?(e.schema.items.anyOf.filter((e=>"object"==typeof e)).forEach(((t,n)=>{const r=Po(t),o=`- ${this.getInsertTextForObject(t,u).insertText.trimLeft()}`,s=r?" type `"+r+"`":"",a=e.schema.description?" ("+e.schema.description+")":"",c=this.getDocumentationWithMarkdownText(`Create an item of an array${s}${a}`,o);i.add({kind:this.getSuggestionKind(t.type),label:"- (array item) "+(r||n+1),documentation:c,insertText:o,insertTextFormat:ee.Snippet})})),this.addSchemaValueCompletions(e.schema.items,u,i,s)):this.addSchemaValueCompletions(e.schema.items,u,i,s);if(e.schema.properties){const t=e.schema.properties[a];t&&this.addSchemaValueCompletions(t,u,i,s)}}s.boolean&&(this.addBooleanValueCompletion(!0,u,i),this.addBooleanValueCompletion(!1,u,i)),s.null&&this.addNullValueCompletion(u,i)}}else this.addSchemaValueCompletions(e.schema,"",i,s)}getInsertTextForProperty(e,t,n,r=this.indentation){const o=this.getInsertTextForValue(e,"","string"),i=o+":";let s,a=0;if(t){let e=Array.isArray(t.type)?t.type[0]:t.type;if(e||(t.properties?e="object":t.items?e="array":t.anyOf&&(e="anyOf")),Array.isArray(t.defaultSnippets)){if(1===t.defaultSnippets.length){const e=t.defaultSnippets[0].body;No(e)&&(s=this.getInsertTextForSnippetValue(e,"",{newLineFirst:!0,indentFirstObject:!1,shouldIndentWithTab:!1},1),s.startsWith(" ")||s.startsWith("\n")||(s=" "+s))}a+=t.defaultSnippets.length}if(t.enum&&(s||1!==t.enum.length||(s=" "+this.getInsertTextForGuessedValue(t.enum[0],"",e)),a+=t.enum.length),t.const&&(s||(s=this.getInsertTextForGuessedValue(t.const,"",e),s=function(e){return e.replace(/\$\{1:(.*)\}/,"$1")}(s),s=" "+s),a++),No(t.default)&&(s||(s=" "+this.getInsertTextForGuessedValue(t.default,"",e)),a++),Array.isArray(t.examples)&&t.examples.length&&(s||(s=" "+this.getInsertTextForGuessedValue(t.examples[0],"",e)),a+=t.examples.length),t.properties)return`${i}\n${this.getInsertTextForObject(t,n,r).insertText}`;if(t.items)return`${i}\n${r}- ${this.getInsertTextForArray(t.items,n,1,r).insertText}`;if(0===a)switch(e){case"boolean":case"string":s=" $1";break;case"object":s=`\n${r}`;break;case"array":s=`\n${r}- `;break;case"number":case"integer":s=" ${1:0}";break;case"null":s=" ${1:null}";break;case"anyOf":s=" $1";break;default:return o}}return(!s||a>1)&&(s=" $1"),i+s+n}getInsertTextForObject(e,t,n=this.indentation,r=1){let o="";return e.properties?(Object.keys(e.properties).forEach((i=>{const s=e.properties[i];let a=Array.isArray(s.type)?s.type[0]:s.type;if(a||(s.anyOf&&(a="anyOf"),s.properties&&(a="object"),s.items&&(a="array")),e.required&&e.required.indexOf(i)>-1)switch(a){case"boolean":case"string":case"number":case"integer":case"anyOf":{let e=s.default||s.const;e?("string"===a&&(e=_s(e)),o+=`${n}${i}: \${${r++}:${e}}\n`):o+=`${n}${i}: $${r++}\n`;break}case"array":{const e=this.getInsertTextForArray(s.items,t,r++,n),a=e.insertText.split("\n");let u=e.insertText;if(a.length>1){for(let e=1;e<a.length;e++){const t=a[e];a[e]=`${n}${this.indentation}  ${t.trimLeft()}`}u=a.join("\n")}r=e.insertIndex,o+=`${n}${i}:\n${n}${this.indentation}- ${u}\n`}break;case"object":{const e=this.getInsertTextForObject(s,t,`${n}${this.indentation}`,r++);r=e.insertIndex,o+=`${n}${i}:\n${e.insertText}\n`}}else if(!this.disableDefaultProperties&&void 0!==s.default)switch(a){case"boolean":case"number":case"integer":o+=`${n}${i}: \${${r++}:${s.default}}\n`;break;case"string":o+=`${n}${i}: \${${r++}:${_s(s.default)}}\n`}})),0===o.trim().length&&(o=`${n}$${r++}\n`),o=o.trimRight()+t,{insertText:o,insertIndex:r}):(o=`${n}$${r++}\n`,{insertText:o,insertIndex:r})}getInsertTextForArray(e,t,n=1,r=this.indentation){let o="";if(!e)return o="$"+n++,{insertText:o,insertIndex:n};let i=Array.isArray(e.type)?e.type[0]:e.type;switch(i||(e.properties&&(i="object"),e.items&&(i="array")),e.type){case"boolean":o=`\${${n++}:false}`;break;case"number":case"integer":o=`\${${n++}:0}`;break;case"string":o=`\${${n++}:""}`;break;case"object":{const i=this.getInsertTextForObject(e,t,`${r}  `,n++);o=i.insertText.trimLeft(),n=i.insertIndex}}return{insertText:o,insertIndex:n}}getInsertTextForGuessedValue(e,t,n){switch(typeof e){case"object":return null===e?"${1:null}"+t:this.getInsertTextForValue(e,t,n);case"string":{let r=JSON.stringify(e);return r=r.substr(1,r.length-2),r=this.getInsertTextForPlainText(r),"string"===n&&(r=_s(r)),"${1:"+r+"}"+t}case"number":case"boolean":return"${1:"+e+"}"+t}return this.getInsertTextForValue(e,t,n)}getInsertTextForPlainText(e){return e.replace(/[\\$}]/g,"\\$&")}getInsertTextForValue(e,t,n){switch(null===e&&(e="null"),typeof e){case"object":{const n=this.indentation;return this.getInsertTemplateForValue(e,n,{index:1},t)}}return"string"===(n=Array.isArray(n)?n[0]:n)&&(e=_s(e)),this.getInsertTextForPlainText(e+t)}getInsertTemplateForValue(e,t,n,r){if(Array.isArray(e)){let r="\n";for(const o of e)r+=`${t}- \${${n.index++}:${o}}\n`;return r}if("object"==typeof e){let o="\n";for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)){const s=e[i];let a;o+=`${t}\${${n.index++}:${i}}:`,a="object"==typeof s?`${this.getInsertTemplateForValue(s,t+this.indentation,n,r)}`:` \${${n.index++}:${this.getInsertTextForPlainText(s+r)}}\n`,o+=`${a}`}return o}return this.getInsertTextForPlainText(e+r)}addSchemaValueCompletions(e,t,n,r,o){"object"==typeof e&&(this.addEnumValueCompletions(e,t,n,o),this.addDefaultValueCompletions(e,t,n),this.collectTypes(e,r),Array.isArray(e.allOf)&&e.allOf.forEach((e=>this.addSchemaValueCompletions(e,t,n,r))),Array.isArray(e.anyOf)&&e.anyOf.forEach((e=>this.addSchemaValueCompletions(e,t,n,r))),Array.isArray(e.oneOf)&&e.oneOf.forEach((e=>this.addSchemaValueCompletions(e,t,n,r))))}collectTypes(e,t){if(Array.isArray(e.enum)||No(e.const))return;const n=e.type;Array.isArray(n)?n.forEach((function(e){return t[e]=!0})):n&&(t[n]=!0)}addDefaultValueCompletions(e,t,n,r=0){let o=!1;if(No(e.default)){let i,s=e.type,a=e.default;for(let e=r;e>0;e--)a=[a],s="array";i="object"==typeof a?"Default value":a.toString().replace(As,'"'),n.add({kind:this.getSuggestionKind(s),label:i,insertText:this.getInsertTextForValue(a,t,s),insertTextFormat:ee.Snippet,detail:ws("json.suggest.default","Default value")}),o=!0}Array.isArray(e.examples)&&e.examples.forEach((i=>{let s=e.type,a=i;for(let e=r;e>0;e--)a=[a],s="array";n.add({kind:this.getSuggestionKind(s),label:this.getLabelForValue(a),insertText:this.getInsertTextForValue(a,t,s),insertTextFormat:ee.Snippet}),o=!0})),this.collectDefaultSnippets(e,t,n,{newLineFirst:!0,indentFirstObject:!0,shouldIndentWithTab:!0}),o||"object"!=typeof e.items||Array.isArray(e.items)||this.addDefaultValueCompletions(e.items,t,n,r+1)}addEnumValueCompletions(e,t,n,r){if(No(e.const)&&!r&&n.add({kind:this.getSuggestionKind(e.type),label:this.getLabelForValue(e.const),insertText:this.getInsertTextForValue(e.const,t,e.type),insertTextFormat:ee.Snippet,documentation:this.fromMarkup(e.markdownDescription)||e.description}),Array.isArray(e.enum))for(let r=0,o=e.enum.length;r<o;r++){const o=e.enum[r];let i=this.fromMarkup(e.markdownDescription)||e.description;e.markdownEnumDescriptions&&r<e.markdownEnumDescriptions.length&&this.doesSupportMarkdown()?i=this.fromMarkup(e.markdownEnumDescriptions[r]):e.enumDescriptions&&r<e.enumDescriptions.length&&(i=e.enumDescriptions[r]),n.add({kind:this.getSuggestionKind(e.type),label:this.getLabelForValue(o),insertText:this.getInsertTextForValue(o,t,void 0),insertTextFormat:ee.Snippet,documentation:i})}}getLabelForValue(e){return null===e?"null":Array.isArray(e)?JSON.stringify(e):e}collectDefaultSnippets(e,t,n,r,o=0){if(Array.isArray(e.defaultSnippets))for(const i of e.defaultSnippets){let s,a,u=e.type,c=i.body,l=i.label;if(No(c)){const n=i.type||e.type;if(0===o&&"array"===n){const e={};Object.keys(c).forEach(((t,n)=>{0!==n||t.startsWith("-")?e[`  ${t}`]=c[t]:e[`- ${t}`]=c[t]})),c=e}s=this.getInsertTextForSnippetValue(c,t,r),l=l||this.getLabelForSnippetValue(c)}else if("string"==typeof i.bodyText){let e="",n="",r="";for(let t=o;t>0;t--)e=e+r+"[\n",n=n+"\n"+r+"]",r+=this.indentation,u="array";s=e+r+i.bodyText.split("\n").join("\n"+r)+n+t,l=l||s,a=s.replace(/[\n]/g,"")}n.add({kind:i.suggestionKind||this.getSuggestionKind(u),label:l,sortText:i.sortText||i.label,documentation:this.fromMarkup(i.markdownDescription)||i.description,insertText:s,insertTextFormat:ee.Snippet,filterText:a})}}getInsertTextForSnippetValue(e,t,n,r){return bs(e,"",(e=>{if("string"==typeof e){if("^"===e[0])return e.substr(1);if("true"===e||"false"===e)return`"${e}"`}return e}),Object.assign(Object.assign({},n),{indentation:this.indentation}),r)+t}addBooleanValueCompletion(e,t,n){n.add({kind:this.getSuggestionKind("boolean"),label:e?"true":"false",insertText:this.getInsertTextForValue(e,t,"boolean"),insertTextFormat:ee.Snippet,documentation:""})}addNullValueCompletion(e,t){t.add({kind:this.getSuggestionKind("null"),label:"null",insertText:"null"+e,insertTextFormat:ee.Snippet,documentation:""})}getLabelForSnippetValue(e){return JSON.stringify(e).replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")}getCustomTagValueCompletions(e){ui(this.customTags).forEach((t=>{const n=t.split(" ")[0];this.addCustomTagValueCompletion(e," ",n)}))}addCustomTagValueCompletion(e,t,n){e.add({kind:this.getSuggestionKind("string"),label:n,insertText:n+t,insertTextFormat:ee.Snippet,documentation:""})}getDocumentationWithMarkdownText(e,t){let n=e;return this.doesSupportMarkdown()&&(t=t.replace(/\${[0-9]+[:|](.*)}/g,((e,t)=>t)).replace(/\$([0-9]+)/g,""),n=this.fromMarkup(`${e}\n \`\`\`\n${t}\n\`\`\``)),n}getSuggestionKind(e){if(Array.isArray(e)){const t=e;e=t.length>0?t[0]:null}if(!e)return Z.Value;switch(e){case"string":return Z.Value;case"object":return Z.Module;case"property":return Z.Property;default:return Z.Value}}getCurrentWord(e,t){let n=t-1;const r=e.getText();for(;n>=0&&-1===' \t\n\r\v":{[,]}'.indexOf(r.charAt(n));)n--;return r.substring(n+1,t)}fromMarkup(e){if(e&&this.doesSupportMarkdown())return{kind:X.Markdown,value:e}}doesSupportMarkdown(){if(void 0===this.supportsMarkdown){const e=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsMarkdown=e&&e.completionItem&&Array.isArray(e.completionItem.documentationFormat)&&-1!==e.completionItem.documentationFormat.indexOf(X.Markdown)}return this.supportsMarkdown}findItemAtOffset(e,t,n){for(let t=e.items.length-1;t>=0;t--){const r=e.items[t];if(Ue(r)&&r.range){if(n>r.range[1])return t;if(n>=r.range[0])return t}}return 0}}(s,i,Ki,r),u=new class{constructor(e,t){this.telemetry=t,this.shouldHover=!0,this.schemaService=e}configure(e){e&&(this.shouldHover=e.hover)}doHover(e,t,n=!1){try{if(!this.shouldHover||!e)return Promise.resolve(void 0);const r=Ki.getYamlDocument(e),o=ai(e.offsetAt(t),r);if(null===o)return Promise.resolve(void 0);rs(r.documents,n);const i=r.documents.indexOf(o);return o.currentDocIndex=i,this.getHover(e,t,o)}catch(e){this.telemetry.sendError("yaml.hover.error",{error:Mo(e)})}}getHover(e,t,n){const r=e.offsetAt(t);let o=n.getNodeFromOffset(r);if(!o||("object"===o.type||"array"===o.type)&&r>o.offset+1&&r<o.offset+o.length-1)return Promise.resolve(null);const i=o;if("string"===o.type){const e=o.parent;if(e&&"property"===e.type&&e.keyNode===o&&(o=e.valueNode,!o))return Promise.resolve(null)}const s=A.create(e.positionAt(i.offset),e.positionAt(i.offset+i.length));return this.schemaService.getSchemaForResource(e.uri,n).then((e=>{if(e&&o&&!e.errors.length){const r=n.getMatchingSchemas(e.schema,o.offset);let i,a,u,c;const l=[];r.every((e=>{if(e.node===o&&!e.inverted&&e.schema){if(i=i||e.schema.title||e.schema.closestTitle,a=a||e.schema.markdownDescription||os(e.schema.description),e.schema.enum){const t=e.schema.enum.indexOf(Ti(o));e.schema.markdownEnumDescriptions?u=e.schema.markdownEnumDescriptions[t]:e.schema.enumDescriptions&&(u=os(e.schema.enumDescriptions[t])),u&&(c=e.schema.enum[t],"string"!=typeof c&&(c=JSON.stringify(c)))}e.schema.examples&&e.schema.examples.forEach((e=>{l.push(JSON.stringify(e))}))}return!0}));let f="";return i&&(f="#### "+os(i)),a&&(f.length>0&&(f+="\n\n"),f+=a),u&&(f.length>0&&(f+="\n\n"),f+=`\`${t=c,-1!==t.indexOf("`")?"`` "+t+" ``":t}\`: ${u}`),0!==l.length&&(f.length>0&&(f+="\n\n"),f+="Examples:",l.forEach((e=>{f+=`\n\n\`\`\`${e}\`\`\``}))),f.length>0&&e.schema.url&&(f+=`\n\nSource: [${function(e){let t="JSON Schema";const n=e.url;if(n){const e=v.parse(n);t=$r.basename(e.fsPath)}else e.title&&(t=e.title);return t}(e.schema)}](${e.schema.url})`),{contents:{kind:"markdown",value:f},range:s}}var t;return null}))}}(s,r),c=new class{constructor(e,t){this.telemetry=t,this.jsonDocumentSymbols=new zo(e),this.jsonDocumentSymbols.getKeyLabel=e=>{const t=e.keyNode.internalNode;let n="";return n=Be(t)?"{}":Ve(t)?"[]":t.source,n}}findDocumentSymbols(e,t={resultLimit:Number.MAX_VALUE}){let n=[];try{const r=Ki.getYamlDocument(e);if(!r||0===r.documents.length)return null;for(const o of r.documents)o.root&&(n=n.concat(this.jsonDocumentSymbols.findDocumentSymbols(e,o,t)))}catch(e){this.telemetry.sendError("yaml.documentSymbols.error",{error:Mo(e)})}return n}findHierarchicalDocumentSymbols(e,t={resultLimit:Number.MAX_VALUE}){let n=[];try{const r=Ki.getYamlDocument(e);if(!r||0===r.documents.length)return null;for(const o of r.documents)o.root&&(n=n.concat(this.jsonDocumentSymbols.findDocumentSymbols2(e,o,t)))}catch(e){this.telemetry.sendError("yaml.hierarchicalDocumentSymbols.error",{error:Mo(e)})}return n}}(s,r),l=new class{constructor(e,t){this.telemetry=t,this.MATCHES_MULTIPLE="Matches multiple schemas when only one must validate.",this.validationEnabled=!0,this.jsonValidation=new Vo(e,Promise),this.additionalValidation=new class{constructor(){this.validators=[],this.validators.push(new class{validate(e,t){const n=[],r=new Set,o=new Set,i=new Map;ze(t.internalDocument,((e,n,s)=>{Ue(n)&&(($e(n)||je(n))&&n.anchor&&(r.add(n),i.set(n,s[s.length-1])),Pe(n)&&o.add(n.resolve(t.internalDocument)))}));for(const t of r)if(!o.has(t)){const r=this.getAnchorNode(i.get(t));if(r){const t=A.create(e.positionAt(r.offset),e.positionAt(r.offset+r.source.length)),o=I.create(t,`Unused anchor "${r.source}"`,L.Hint,0);o.tags=[M.Unnecessary],n.push(o)}}return n}getAnchorNode(e){if(e&&e.srcToken){const t=e.srcToken;if(Vi(t))return is(t);if((e=>!!e&&"items"in e)(t))for(const e of t.items){const t=is(e);if(t)return t}}}})}validate(e,t){const n=[];for(const r of this.validators)n.push(...r.validate(e,t));return n}}}configure(e){e&&(this.validationEnabled=e.validate,this.customTags=e.customTags,this.disableAdditionalProperties=e.disableAdditionalProperties,this.yamlVersion=e.yamlVersion)}doValidation(e,t=!1){return n=this,r=void 0,i=function*(){if(!this.validationEnabled)return Promise.resolve([]);const n=[];try{const r=Ki.getYamlDocument(e,{customTags:this.customTags,yamlVersion:this.yamlVersion},!0);let o=0;for(const i of r.documents){i.isKubernetes=t,i.currentDocIndex=o,i.disableAdditionalProperties=this.disableAdditionalProperties;const r=yield this.jsonValidation.doValidation(e,i),s=i;s.errors.length>0&&n.push(...s.errors),s.warnings.length>0&&n.push(...s.warnings),n.push(...r),n.push(...this.additionalValidation.validate(e,i)),o++}}catch(e){this.telemetry.sendError("yaml.validation.error",Mo(e))}let r;const o=new Set,i=[];for(let s of n){if(t&&s.message===this.MATCHES_MULTIPLE)continue;if(Object.prototype.hasOwnProperty.call(s,"location")&&(s=as(s,e)),s.source||(s.source=di),r&&r.message===s.message&&r.range.end.line===s.range.start.line&&Math.abs(r.range.end.character-s.range.end.character)>=1){r.range.end=s.range.end;continue}r=s;const n=s.range.start.line+" "+s.range.start.character+" "+s.message;o.has(n)||(i.push(s),o.add(n))}return i},new((o=void 0)||(o=Promise))((function(e,t){function s(e){try{u(i.next(e))}catch(e){t(e)}}function a(e){try{u(i.throw(e))}catch(e){t(e)}}function u(t){var n;t.done?e(t.value):(n=t.value,n instanceof o?n:new o((function(e){e(n)}))).then(s,a)}u((i=i.apply(n,r||[])).next())}));var n,r,o,i}}(s,r),f=new class{constructor(){this.formatterEnabled=!0}configure(e){e&&(this.formatterEnabled=e.format)}format(e,t){if(!this.formatterEnabled)return[];try{const n=e.getText(),r={parser:"yaml",plugins:[Kr],tabWidth:t.tabWidth||t.tabSize,singleQuote:t.singleQuote,bracketSpacing:t.bracketSpacing,proseWrap:"always"===t.proseWrap?"always":"never"===t.proseWrap?"never":"preserve",printWidth:t.printWidth},o=Ur.format(n,r);return[R.replace(A.create(w.create(0,0),e.positionAt(n.length)),o)]}catch(e){return[]}}},p=new class{constructor(e){this.clientCapabilities=e,this.indentation="  "}configure(e){this.indentation=e.indentation}getCodeAction(e,t){if(!t.context.diagnostics)return;const n=[];return n.push(...this.getConvertToBooleanActions(t.context.diagnostics,e)),n.push(...this.getJumpToSchemaActions(t.context.diagnostics)),n.push(...this.getTabToSpaceConverting(t.context.diagnostics,e)),n.push(...this.getUnusedAnchorsDelete(t.context.diagnostics,e)),n}getJumpToSchemaActions(e){var t,n,r,o,i;if(null===(o=null===(r=null===(n=null===(t=this.clientCapabilities)||void 0===t?void 0:t.window)||void 0===n?void 0:n.showDocument)||void 0===r?void 0:r.support)||void 0===o||!o)return[];const s=new Map;for(const t of e){const e=(null===(i=t.data)||void 0===i?void 0:i.schemaUri)||[];for(const n of e)n&&(s.has(n)||s.set(n,[]),s.get(n).push(t))}const a=[];for(const e of s.keys()){const t=be.create(`Jump to schema location (${$r.basename(e)})`,B.create("JumpToSchema",ss.JUMP_TO_SCHEMA,e));t.diagnostics=s.get(e),a.push(t)}return a}getTabToSpaceConverting(e,t){const n=[],r=new Yi(t),o=[];for(const i of e)if("Using tabs can lead to unpredictable results"===i.message){if(o.includes(i.range.start.line))continue;const e=r.getLineContent(i.range.start.line);let s=0,a="";for(let t=i.range.start.character;t<=i.range.end.character&&"\t"===e.charAt(t);t++)s++,a+=this.indentation;o.push(i.range.start.line);let u=i.range;s!==i.range.end.character-i.range.start.character&&(u=A.create(i.range.start,w.create(i.range.end.line,i.range.start.character+s))),n.push(be.create("Convert Tab to Spaces",ls(t.uri,[R.replace(u,a)]),ge.QuickFix))}if(0!==n.length){const e=[];for(let t=0;t<=r.getLineCount();t++){const n=r.getLineContent(t);let o=0,i="";for(let r=0;r<n.length;r++){const s=n.charAt(r);if(" "!==s&&"\t"!==s){0!==o&&(e.push(R.replace(A.create(t,r-o,t,r),i)),o=0,i="");break}" "!==s||0===o?"\t"===s&&(i+=this.indentation,o++):(e.push(R.replace(A.create(t,r-o,t,r),i)),o=0,i="")}0!==o&&e.push(R.replace(A.create(t,0,t,r.getLineLength(t)),i))}e.length>0&&n.push(be.create("Convert all Tabs to Spaces",ls(t.uri,e),ge.QuickFix))}return n}getUnusedAnchorsDelete(e,t){const n=[],r=new Yi(t);for(const o of e)if(o.message.startsWith("Unused anchor")&&o.source===di){const e=A.create(o.range.start,o.range.end),i=r.getText(e),s=Fo(r.getLineContent(e.end.line),e.end.character);e.end.character=s;const a=be.create(`Delete unused anchor: ${i}`,ls(t.uri,[R.del(e)]),ge.QuickFix);a.diagnostics=[o],n.push(a)}return n}getConvertToBooleanActions(e,t){const n=[];for(const r of e)if('Incorrect type. Expected "boolean".'===r.message){const e=t.getText(r.range).toLocaleLowerCase();if('"true"'===e||'"false"'===e||"'true'"===e||"'false'"===e){const o=e.includes("true")?"true":"false";n.push(be.create("Convert to boolean",ls(t.uri,[R.replace(r.range,o)]),ge.QuickFix))}}return n}}(i),h=new class{constructor(e,t){this.schemaService=e,this.telemetry=t}getCodeLens(e,t){return n=this,r=void 0,i=function*(){const t=[];try{const n=Ki.getYamlDocument(e);let r=new Map;for(const t of n.documents){const n=yield this.schemaService.getSchemaForResource(e.uri,t);(null==n?void 0:n.schema)&&(r=new Map([...hs(null==n?void 0:n.schema),...r]))}for(const e of r){const n=ve.create(A.create(0,0,0,0));n.command={title:gs(e[0],e[1]),command:ss.JUMP_TO_SCHEMA,arguments:[e[0]]},t.push(n)}}catch(e){this.telemetry.sendError("yaml.codeLens.error",{error:Mo(e)})}return t},new((o=void 0)||(o=Promise))((function(e,t){function s(e){try{u(i.next(e))}catch(e){t(e)}}function a(e){try{u(i.throw(e))}catch(e){t(e)}}function u(t){var n;t.done?e(t.value):(n=t.value,n instanceof o?n:new o((function(e){e(n)}))).then(s,a)}u((i=i.apply(n,r||[])).next())}));var n,r,o,i}resolveCodeLens(e){return e}}(s,r),d=new class{constructor(e){this.telemetry=e}findLinks(e){try{const t=Ki.getYamlDocument(e),n=[];for(const r of t.documents)n.push(ri(e,r));return Promise.all(n).then((e=>[].concat(...e)))}catch(e){this.telemetry.sendError("yaml.documentLink.error",{error:Mo(e)})}}}(r),m=new class{constructor(e){this.telemetry=e}getDefinition(e,t){try{const n=Ki.getYamlDocument(e),r=e.offsetAt(t.position),o=ai(r,n);if(o){const[t]=o.getNodeFromPosition(r,new Yi(e));if(t&&Pe(t)){const n=t.resolve(o.internalDocument);if(n&&n.range){const t=A.create(e.positionAt(n.range[0]),e.positionAt(n.range[2])),r=A.create(e.positionAt(n.range[0]),e.positionAt(n.range[1]));return[x.create(e.uri,t,r)]}}}}catch(e){this.telemetry.sendError("yaml.definition.error",{error:Mo(e)})}}}(r);return new Fs(s,o,n),function(e,t){e.registerCommand(ss.JUMP_TO_SCHEMA,(e=>{return n=this,r=void 0,i=function*(){if(e){if(!e.startsWith("file")&&!/^[a-z]:[\\/]/i.test(e)){const t=v.parse(e),n=v.from({scheme:"json-schema",authority:t.authority,path:t.path.endsWith(".json")?t.path:t.path+".json",fragment:e});e=n.toString()}if(/^[a-z]:[\\/]/i.test(e)){const t=v.file(e);e=t.toString()}(yield t.window.showDocument({uri:e,external:!1,takeFocus:!0}))||t.window.showErrorMessage(`Cannot open ${e}`)}},new((o=void 0)||(o=Promise))((function(e,t){function s(e){try{u(i.next(e))}catch(e){t(e)}}function a(e){try{u(i.throw(e))}catch(e){t(e)}}function u(t){var n;t.done?e(t.value):(n=t.value,n instanceof o?n:new o((function(e){e(n)}))).then(s,a)}u((i=i.apply(n,r||[])).next())}));var n,r,o,i}))}(fs,n),{configure:e=>{s.clearExternalSchemas(),e.schemas&&(s.schemaPriorityMapping=new Map,e.schemas.forEach((e=>{const t=e.priority?e.priority:0;s.addSchemaPriority(e.uri,t),s.registerExternalSchema(e.uri,e.fileMatch,e.schema,e.name,e.description,e.versions)}))),l.configure(e),u.configure(e),a.configure(e),f.configure(e),p.configure(e)},registerCustomSchemaProvider:e=>{s.registerCustomSchemaProvider(e)},findLinks:d.findLinks.bind(d),doComplete:a.doComplete.bind(a),doValidation:l.doValidation.bind(l),doHover:u.doHover.bind(u),findDocumentSymbols:c.findDocumentSymbols.bind(c),findDocumentSymbols2:c.findHierarchicalDocumentSymbols.bind(c),doDefinition:m.getDefinition.bind(m),resetSchema:e=>s.onResourceChange(e),doFormat:f.format.bind(f),doDocumentOnTypeFormatting:ps,addSchema:(e,t)=>s.saveSchema(e,t),deleteSchema:e=>s.deleteSchema(e),modifySchemaContent:e=>s.addContent(e),deleteSchemaContent:e=>s.deleteContent(e),deleteSchemasWhole:e=>s.deleteSchemas(e),getFoldingRanges:us,getCodeAction:(e,t)=>p.getCodeAction(e,t),getCodeLens:(e,t)=>h.getCodeLens(e,t),resolveCodeLens:e=>h.resolveCodeLens(e)}}async function ks(e){const t=await fetch(e);if(t.ok)return t.text();throw new Error(`Schema request failed for ${e}`)}(Cs=Ds||(Ds={}))[Cs.SchemaStore=1]="SchemaStore",Cs[Cs.SchemaAssociation=2]="SchemaAssociation",Cs[Cs.Settings=3]="Settings",Cs[Cs.Modeline=4]="Modeline",Es=(t,{enableSchemaRequest:n,languageSettings:r})=>{const o=Ts(n?ks:null,null,null,null,null);o.configure(r);const i=n=>{const r=t.getMirrorModels();for(const t of r)if(String(t.uri)===n)return e.create(n,"yaml",t.version,t.getValue())};return{doValidation(e){const t=i(e);return t?o.doValidation(t,r.isKubernetes):[]},doComplete(e,t){const n=i(e);return o.doComplete(n,t,r.isKubernetes)},doDefinition(e,t){const n=i(e);return o.doDefinition(n,{position:t,textDocument:{uri:e}})},doHover(e,t){const n=i(e);return o.doHover(n,t)},format(e,t){const n=i(e);return o.doFormat(n,t)},resetSchema:e=>o.resetSchema(e),findDocumentSymbols(e){const t=i(e);return o.findDocumentSymbols2(t,{})},findLinks(e){const t=i(e);return o.findLinks(t)},getCodeAction(e,t,n){const r=i(e);return o.getCodeAction(r,{range:t,textDocument:{uri:e},context:{diagnostics:n}})}}},self.onmessage=()=>{(0,n.j)(((e,t)=>Object.create(Es(e,t))))}}()}();