diff --git a/frontend/resources/public/js/sd.js b/frontend/resources/public/js/sd.js deleted file mode 100644 index 2cc5f7bab..000000000 --- a/frontend/resources/public/js/sd.js +++ /dev/null @@ -1 +0,0 @@ -(()=>{var t={219:function(t){t.exports=function(){"use strict";function t(t,e){return t(e={exports:{}},e.exports),e.exports}var e=t((function(t){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)})),r=t((function(t){var e=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=e)})),n=(r.version,function(t){return"object"==typeof t?null!==t:"function"==typeof t}),i=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t},o=function(t){try{return!!t()}catch(t){return!0}},s=!o((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})),a=e.document,u=n(a)&&n(a.createElement),c=!s&&!o((function(){return 7!=Object.defineProperty((t="div",u?a.createElement(t):{}),"a",{get:function(){return 7}}).a;var t})),l=Object.defineProperty,f={f:s?Object.defineProperty:function(t,e,r){if(i(t),e=function(t,e){if(!n(t))return t;var r,i;if(e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;if("function"==typeof(r=t.valueOf)&&!n(i=r.call(t)))return i;if(!e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;throw TypeError("Can't convert object to primitive value")}(e,!0),i(r),c)try{return l(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t}},h=s?function(t,e,r){return f.f(t,e,function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}(1,r))}:function(t,e,r){return t[e]=r,t},p={}.hasOwnProperty,d=function(t,e){return p.call(t,e)},m=0,g=Math.random(),y=t((function(t){var n="__core-js_shared__",i=e[n]||(e[n]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})})),b=y("native-function-to-string",Function.toString),v=t((function(t){var n=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++m+g).toString(36))}("src"),i="toString",o=(""+b).split(i);r.inspectSource=function(t){return b.call(t)},(t.exports=function(t,r,i,s){var a="function"==typeof i;a&&(d(i,"name")||h(i,"name",r)),t[r]!==i&&(a&&(d(i,n)||h(i,n,t[r]?""+t[r]:o.join(String(r)))),t===e?t[r]=i:s?t[r]?t[r]=i:h(t,r,i):(delete t[r],h(t,r,i)))})(Function.prototype,i,(function(){return"function"==typeof this&&this[n]||b.call(this)}))})),w=function(t,e,r){if(function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!")}(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,i){return t.call(e,r,n,i)}}return function(){return t.apply(e,arguments)}},x="prototype",E=function(t,n,i){var o,s,a,u,c=t&E.F,l=t&E.G,f=t&E.S,p=t&E.P,d=t&E.B,m=l?e:f?e[n]||(e[n]={}):(e[n]||{})[x],g=l?r:r[n]||(r[n]={}),y=g[x]||(g[x]={});for(o in l&&(i=n),i)a=((s=!c&&m&&void 0!==m[o])?m:i)[o],u=d&&s?w(a,e):p&&"function"==typeof a?w(Function.call,a):a,m&&v(m,o,a,t&E.U),g[o]!=a&&h(g,o,u),p&&y[o]!=a&&(y[o]=a)};e.core=r,E.F=1,E.G=2,E.S=4,E.P=8,E.B=16,E.W=32,E.U=64,E.R=128;var A=E,_=Math.ceil,D=Math.floor,S=function(t){return isNaN(t=+t)?0:(t>0?D:_)(t)},k=function(t,e){var r,n,i=String(function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}(t)),o=S(e),s=i.length;return o<0||o>=s?void 0:(r=i.charCodeAt(o))<55296||r>56319||o+1===s||(n=i.charCodeAt(o+1))<56320||n>57343?r:n-56320+(r-55296<<10)+65536};A(A.P,"String",{codePointAt:function(t){return k(this,t)}}),r.String.codePointAt;var C=Math.max,F=Math.min,O=String.fromCharCode,j=String.fromCodePoint;A(A.S+A.F*(!!j&&1!=j.length),"String",{fromCodePoint:function(t){for(var e,r=arguments,n=[],i=arguments.length,o=0;i>o;){if(e=+r[o++],a=1114111,((s=S(s=e))<0?C(s+a,0):F(s,a))!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?O(e):O(55296+((e-=65536)>>10),e%1024+56320))}var s,a;return n.join("")}}),r.String.fromCodePoint;var T,B,R,P,N,$,M,I,L,z,U,W,G,q,H={Space_Separator:/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,ID_Start:/[\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\u0860-\u086A\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\u09FC\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-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\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\uDF2D-\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\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\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\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\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\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,ID_Continue:/[\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\u0860-\u086A\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\u09FC\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-\u0AFF\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\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\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-\u1CF9\u1D00-\u1DF9\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\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-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\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\uDF2D-\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\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\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\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\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\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},V={isSpaceSeparator:function(t){return"string"==typeof t&&H.Space_Separator.test(t)},isIdStartChar:function(t){return"string"==typeof t&&(t>="a"&&t<="z"||t>="A"&&t<="Z"||"$"===t||"_"===t||H.ID_Start.test(t))},isIdContinueChar:function(t){return"string"==typeof t&&(t>="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"||"$"===t||"_"===t||"‌"===t||"‍"===t||H.ID_Continue.test(t))},isDigit:function(t){return"string"==typeof t&&/[0-9]/.test(t)},isHexDigit:function(t){return"string"==typeof t&&/[0-9A-Fa-f]/.test(t)}};function Y(t,e,r){var n=t[e];if(null!=n&&"object"==typeof n)if(Array.isArray(n))for(var i=0;i0;){var r=J();if(!V.isHexDigit(r))throw ot(X());t+=X()}return String.fromCodePoint(parseInt(t,16))}var rt={start:function(){if("eof"===M.type)throw st();nt()},beforePropertyName:function(){switch(M.type){case"identifier":case"string":return I=M.value,void(B="afterPropertyName");case"punctuator":return void it();case"eof":throw st()}},afterPropertyName:function(){if("eof"===M.type)throw st();B="beforePropertyValue"},beforePropertyValue:function(){if("eof"===M.type)throw st();nt()},beforeArrayValue:function(){if("eof"===M.type)throw st();"punctuator"!==M.type||"]"!==M.value?nt():it()},afterPropertyValue:function(){if("eof"===M.type)throw st();switch(M.value){case",":return void(B="beforePropertyName");case"}":it()}},afterArrayValue:function(){if("eof"===M.type)throw st();switch(M.value){case",":return void(B="beforeArrayValue");case"]":it()}},end:function(){}};function nt(){var t;switch(M.type){case"punctuator":switch(M.value){case"{":t={};break;case"[":t=[]}break;case"null":case"boolean":case"numeric":case"string":t=M.value}if(void 0===L)L=t;else{var e=R[R.length-1];Array.isArray(e)?e.push(t):Object.defineProperty(e,I,{value:t,writable:!0,enumerable:!0,configurable:!0})}if(null!==t&&"object"==typeof t)R.push(t),B=Array.isArray(t)?"beforeArrayValue":"beforePropertyName";else{var r=R[R.length-1];B=null==r?"end":Array.isArray(r)?"afterArrayValue":"afterPropertyValue"}}function it(){R.pop();var t=R[R.length-1];B=null==t?"end":Array.isArray(t)?"afterArrayValue":"afterPropertyValue"}function ot(t){return ct(void 0===t?"JSON5: invalid end of input at "+N+":"+$:"JSON5: invalid character '"+ut(t)+"' at "+N+":"+$)}function st(){return ct("JSON5: invalid end of input at "+N+":"+$)}function at(){return ct("JSON5: invalid identifier character at "+N+":"+($-=5))}function ut(t){var e={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(e[t])return e[t];if(t<" "){var r=t.charCodeAt(0).toString(16);return"\\x"+("00"+r).substring(r.length)}return t}function ct(t){var e=new SyntaxError(t);return e.lineNumber=N,e.columnNumber=$,e}return{parse:function(t,e){T=String(t),B="start",R=[],P=0,N=1,$=0,M=void 0,I=void 0,L=void 0;do{M=K(),rt[B]()}while("eof"!==M.type);return"function"==typeof e?Y({"":L},"",e):L},stringify:function(t,e,r){var n,i,o,s=[],a="",u="";if(null==e||"object"!=typeof e||Array.isArray(e)||(r=e.space,o=e.quote,e=e.replacer),"function"==typeof e)i=e;else if(Array.isArray(e)){n=[];for(var c=0,l=e;c0&&(r=Math.min(10,Math.floor(r)),u=" ".substr(0,r)):"string"==typeof r&&(u=r.substr(0,10)),p("",{"":t});function p(t,e){var r=e[t];switch(null!=r&&("function"==typeof r.toJSON5?r=r.toJSON5(t):"function"==typeof r.toJSON&&(r=r.toJSON(t))),i&&(r=i.call(e,t,r)),r instanceof Number?r=Number(r):r instanceof String?r=String(r):r instanceof Boolean&&(r=r.valueOf()),r){case null:return"null";case!0:return"true";case!1:return"false"}return"string"==typeof r?d(r):"number"==typeof r?String(r):"object"==typeof r?Array.isArray(r)?function(t){if(s.indexOf(t)>=0)throw TypeError("Converting circular structure to JSON5");s.push(t);var e=a;a+=u;for(var r,n=[],i=0;i=0)throw TypeError("Converting circular structure to JSON5");s.push(t);var e=a;a+=u;for(var r,i,o=[],c=0,l=n||Object.keys(t);c{"use strict";var t=r(219);const e=()=>"object"==typeof window?"Windows"===window.navigator.userAgentData?.platform||window.navigator.userAgent.includes("Windows"):"win32"===process?.platform,n=65,i=97,o=90,s=122,a=46,u=47,c=92,l=58;function f(t,e="and"){switch(t.length){case 0:return"";case 1:return`${t[0]}`;case 2:return`${t[0]} ${e} ${t[1]}`;case 3:return`${t[0]}, ${t[1]}, ${e} ${t[2]}`;default:return`${t.slice(0,-1).join(", ")}, ${e} ${t[t.length-1]}`}}e();const h=["string","function","number","object","Function","Object","boolean","bigint","symbol"],p=/^[A-Z][a-zA-Z0-9]*$/;class d extends Error{constructor(t,e,r){const n=function(t,e,r){Array.isArray(e)||(e=[e]);let n="The ";if(t.endsWith(" argument"))n+=`${t} `;else{const e=t.includes(".")?"property":"argument";n+=`"${t}" ${e} `}n+="must be ";const i=[],o=[],s=[];for(const t of e)h.includes(t)?i.push(t.toLowerCase()):null!==p.exec(t)?o.push(t):s.push(t);if(o.length>0){const t=i.indexOf("object");-1!==t&&(i.splice(t,1),o.push("Object"))}return i.length>0&&(n+=`${i.length>1?"one of type":"of type"} ${f(i,"or")}`,(o.length>0||s.length>0)&&(n+=" or ")),o.length>0&&(n+=`an instance of ${f(o,"or")}`,s.length>0&&(n+=" or ")),s.length>0&&(s.length>1?n+=`one of ${f(s,"or")}`:(s[0].toLowerCase()!==s[0]&&(n+="an "),n+=`${s[0]}`)),n+=". Received "+typeof r,n}(t,e,r);super(n),this.name="ERR_INVALID_ARG_TYPE"}}const m=(t,e)=>{if("string"!=typeof t)throw new d(e,"string",t)};"object"==typeof window&&(window.process||(window.process={}),window.process.cwd=()=>"/");const g=e();function y(t){return t===u||t===c}function b(t){return t===u}function v(t){return t>=n&&t<=o||t>=i&&t<=s}function w(t,e,r,n){let i="",o=0,s=-1,c=0,l=0;for(let f=0;f<=t.length;++f){if(f2){const t=i.lastIndexOf(r);-1===t?(i="",o=0):(i=i.slice(0,t),o=i.length-1-i.lastIndexOf(r)),s=f,c=0;continue}if(0!==i.length){i="",o=0,s=f,c=0;continue}}e&&(i+=i.length>0?`${r}..`:"..",o=2)}else i.length>0?i+=`${r}${t.slice(s+1,f)}`:i=t.slice(s+1,f),o=f-s-1;s=f,c=0}else l===a&&-1!==c?++c:c=-1}return i}function x(t,e){((t,e,r=0)=>{if(0===r){if(null===t||Array.isArray(t))throw new d(e,"Object",t);if("object"!=typeof t)throw new d(e,"Object",t)}else{if(!(1&r)&&null===t)throw new d(e,"Object",t);if(!(2&r)&&Array.isArray(t))throw new d(e,"Object",t);const n=typeof t;if(!("object"===n||4&r&&"function"===n))throw new d(e,"Object",t)}})(e,"pathObject");const r=e.dir||e.root,n=e.base||`${e.name||""}${function(t){return t?`${"."===t[0]?"":"."}${t}`:""}(e.ext)}`;return r?r===e.root?`${r}${n}`:`${r}${t}${n}`:n}function E(...t){let e="",r="",n=!1;for(let i=t.length-1;i>=-1;i--){let o;if(i>=0){if(o=t[i],m(o,`paths[${i}]`),0===o.length)continue}else 0===e.length?o=process.cwd():(o=process?.env[`=${e}`]||process.cwd(),(void 0===o||o.slice(0,2).toLowerCase()!==e.toLowerCase()&&o.charCodeAt(2)===c)&&(o=`${e}\\`));const s=o.length;let a=0,u="",f=!1;const h=o.charCodeAt(0);if(1===s)y(h)&&(a=1,f=!0);else if(y(h))if(f=!0,y(o.charCodeAt(1))){let t=2,e=t;for(;t2&&y(o.charCodeAt(2))&&(f=!0,a=3));if(u.length>0)if(e.length>0){if(u.toLowerCase()!==e.toLowerCase())continue}else e=u;if(n){if(e.length>0)break}else if(r=`${o.slice(a)}\\${r}`,n=f,f&&e.length>0)break}return r=w(r,!n,"\\",y),n?`${e}\\${r}`:`${e}${r}`||"."}function A(t){m(t,"path");const e=t.length;if(0===e)return".";let r,n=0,i=!1;const o=t.charCodeAt(0);if(1===e)return b(o)?"\\":t;if(y(o))if(i=!0,y(t.charCodeAt(1))){let i=2,o=i;for(;i2&&y(t.charCodeAt(2))&&(i=!0,n=3));let s=n0&&y(t.charCodeAt(e-1))&&(s+="\\"),void 0===r?i?`\\${s}`:s:i?`${r}\\${s}`:`${r}${s}`}function _(...t){if(0===t.length)return".";let e,r;for(let n=0;n0&&(void 0===e?e=r=i:e+=`\\${i}`)}if(void 0===e)return".";let n=!0,i=0;if(void 0!==r&&y(r.charCodeAt(0))){++i;const t=r.length;t>1&&y(r.charCodeAt(1))&&(++i,t>2&&(y(r.charCodeAt(2))?++i:n=!1))}if(n){for(;i=2&&(e=`\\${e.slice(i)}`)}return A(e)}function D(t){m(t,"path");const e=t.length;if(0===e)return".";let r=-1,n=0;const i=t.charCodeAt(0);if(1===e)return y(i)?t:".";if(y(i)){if(r=n=1,y(t.charCodeAt(1))){let i=2,o=i;for(;i2&&y(t.charCodeAt(2))?3:2,n=r);let o=-1,s=!0;for(let r=e-1;r>=n;--r)if(y(t.charCodeAt(r))){if(!s){o=r;break}}else s=!1;if(-1===o){if(-1===r)return".";o=r}return t.slice(0,o)}function S(t){m(t,"path");let e=0,r=-1,n=0,i=-1,o=!0,s=0;t.length>=2&&t.charCodeAt(1)===l&&v(t.charCodeAt(0))&&(e=n=2);for(let u=t.length-1;u>=e;--u){const e=t.charCodeAt(u);if(y(e)){if(!o){n=u+1;break}}else-1===i&&(o=!1,i=u+1),e===a?-1===r?r=u:1!==s&&(s=1):-1!==r&&(s=-1)}return-1===r||-1===i||0===s||1===s&&r===i-1&&r===n+1?"":t.slice(r,i)}const k=x.bind(null,"\\");const C=(()=>{if(g){const t=/\\/g;return()=>{const e=process.cwd().replace(t,"/");return e.slice(e.indexOf("/"))}}return()=>process.cwd()})();function F(...t){let e="",r=!1;for(let n=t.length-1;n>=-1&&!r;n--){const i=n>=0?t[n]:C();m(i,`paths[${n}]`),0!==i.length&&(e=`${i}/${e}`,r=i.charCodeAt(0)===u)}return e=w(e,!r,"/",b),r?`/${e}`:e.length>0?e:"."}function O(t){if(m(t,"path"),0===t.length)return".";const e=t.charCodeAt(0)===u,r=t.charCodeAt(t.length-1)===u;return 0===(t=w(t,!e,"/",b)).length?e?"/":r?"./":".":(r&&(t+="/"),e?`/${t}`:t)}function j(...t){if(0===t.length)return".";let e;for(let r=0;r0&&(void 0===e?e=n:e+=`/${n}`)}return void 0===e?".":O(e)}function T(t){if(m(t,"path"),0===t.length)return".";const e=t.charCodeAt(0)===u;let r=-1,n=!0;for(let e=t.length-1;e>=1;--e)if(t.charCodeAt(e)===u){if(!n){r=e;break}}else n=!1;return-1===r?e?"/":".":e&&1===r?"//":t.slice(0,r)}function B(t){m(t,"path");let e=-1,r=0,n=-1,i=!0,o=0;for(let s=t.length-1;s>=0;--s){const c=t.charCodeAt(s);if(c!==u)-1===n&&(i=!1,n=s+1),c===a?-1===e?e=s:1!==o&&(o=1):-1!==e&&(o=-1);else if(!i){r=s+1;break}}return-1===e||-1===n||0===o||1===o&&e===n-1&&e===r+1?"":t.slice(e,n)}const R={resolve:E,normalize:A,isAbsolute:function(t){m(t,"path");const e=t.length;if(0===e)return!1;const r=t.charCodeAt(0);return y(r)||e>2&&v(r)&&t.charCodeAt(1)===l&&y(t.charCodeAt(2))},join:_,relative:function(t,e){if(m(t,"from"),m(e,"to"),t===e)return"";const r=E(t),n=E(e);if(r===n)return"";if((t=r.toLowerCase())===(e=n.toLowerCase()))return"";let i=0;for(;ii&&t.charCodeAt(o-1)===c;)o--;const s=o-i;let a=0;for(;aa&&e.charCodeAt(u-1)===c;)u--;const l=u-a,f=sf){if(e.charCodeAt(a+p)===c)return n.slice(a+p+1);if(2===p)return n.slice(a+p)}s>f&&(t.charCodeAt(i+p)===c?h=p:2===p&&(h=3)),-1===h&&(h=0)}let d="";for(p=i+h+1;p<=o;++p)p!==o&&t.charCodeAt(p)!==c||(d+=0===d.length?"..":"\\..");return a+=h,d.length>0?`${d}${n.slice(a,u)}`:(n.charCodeAt(a)===c&&++a,n.slice(a,u))},toNamespacedPath:function(t){if("string"!=typeof t||0===t.length)return t;const e=E(t);if(e.length<=2)return t;if(e.charCodeAt(0)===c){if(e.charCodeAt(1)===c){const t=e.charCodeAt(2);if(63!==t&&t!==a)return`\\\\?\\UNC\\${e.slice(2)}`}}else if(v(e.charCodeAt(0))&&e.charCodeAt(1)===l&&e.charCodeAt(2)===c)return`\\\\?\\${e}`;return t},dirname:D,basename:function(t,e){void 0!==e&&m(e,"ext"),m(t,"path");let r=0,n=-1,i=!0;if(t.length>=2&&v(t.charCodeAt(0))&&t.charCodeAt(1)===l&&(r=2),void 0!==e&&e.length>0&&e.length<=t.length){if(e===t)return"";let o=e.length-1,s=-1;for(let a=t.length-1;a>=r;--a){const u=t.charCodeAt(a);if(y(u)){if(!i){r=a+1;break}}else-1===s&&(i=!1,s=a+1),o>=0&&(u===e.charCodeAt(o)?-1==--o&&(n=a):(o=-1,n=s))}return r===n?n=s:-1===n&&(n=t.length),t.slice(r,n)}for(let e=t.length-1;e>=r;--e)if(y(t.charCodeAt(e))){if(!i){r=e+1;break}}else-1===n&&(i=!1,n=e+1);return-1===n?"":t.slice(r,n)},extname:S,format:k,parse:function(t){m(t,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(0===t.length)return e;const r=t.length;let n=0,i=t.charCodeAt(0);if(1===r)return y(i)?(e.root=e.dir=t,e):(e.base=e.name=t,e);if(y(i)){if(n=1,y(t.charCodeAt(1))){let e=2,i=e;for(;e0&&(e.root=t.slice(0,n));let o=-1,s=n,u=-1,c=!0,f=t.length-1,h=0;for(;f>=n;--f)if(i=t.charCodeAt(f),y(i)){if(!c){s=f+1;break}}else-1===u&&(c=!1,u=f+1),i===a?-1===o?o=f:1!==h&&(h=1):-1!==o&&(h=-1);return-1!==u&&(-1===o||0===h||1===h&&o===u-1&&o===s+1?e.base=e.name=t.slice(s,u):(e.name=t.slice(s,o),e.base=t.slice(s,u),e.ext=t.slice(o,u))),e.dir=s>0&&s!==n?t.slice(0,s-1):e.root,e},sep:"\\",delimiter:";"},P={resolve:F,normalize:O,isAbsolute:function(t){return m(t,"path"),t.length>0&&t.charCodeAt(0)===u},join:j,relative:function(t,e){if(m(t,"from"),m(e,"to"),t===e)return"";if((t=F(t))===(e=F(e)))return"";const r=t.length,n=r-1,i=e.length-1,o=no){if(e.charCodeAt(1+a)===u)return e.slice(1+a+1);if(0===a)return e.slice(1+a)}else n>o&&(t.charCodeAt(1+a)===u?s=a:0===a&&(s=0));let c="";for(a=1+s+1;a<=r;++a)a!==r&&t.charCodeAt(a)!==u||(c+=0===c.length?"..":"/..");return`${c}${e.slice(1+s)}`},toNamespacedPath:function(t){return t},dirname:T,basename:function(t,e){void 0!==e&&m(e,"ext"),m(t,"path");let r=0,n=-1,i=!0;if(void 0!==e&&e.length>0&&e.length<=t.length){if(e===t)return"";let o=e.length-1,s=-1;for(let a=t.length-1;a>=0;--a){const c=t.charCodeAt(a);if(c===u){if(!i){r=a+1;break}}else-1===s&&(i=!1,s=a+1),o>=0&&(c===e.charCodeAt(o)?-1==--o&&(n=a):(o=-1,n=s))}return r===n?n=s:-1===n&&(n=t.length),t.slice(r,n)}for(let e=t.length-1;e>=0;--e)if(t.charCodeAt(e)===u){if(!i){r=e+1;break}}else-1===n&&(i=!1,n=e+1);return-1===n?"":t.slice(r,n)},extname:B,format:x.bind(null,"/"),parse:function(t){m(t,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(0===t.length)return e;const r=t.charCodeAt(0)===u;let n;r?(e.root="/",n=1):n=0;let i=-1,o=0,s=-1,c=!0,l=t.length-1,f=0;for(;l>=n;--l){const e=t.charCodeAt(l);if(e!==u)-1===s&&(c=!1,s=l+1),e===a?-1===i?i=l:1!==f&&(f=1):-1!==i&&(f=-1);else if(!c){o=l+1;break}}if(-1!==s){const n=0===o&&r?1:o;-1===i||0===f||1===f&&i===s-1&&i===o+1?e.base=e.name=t.slice(n,s):(e.name=t.slice(n,i),e.base=t.slice(n,s),e.ext=t.slice(i,s))}return o>0?e.dir=t.slice(0,o-1):r&&(e.dir="/"),e},sep:"/",delimiter:":"},N={...R,posix:P,win32:R},$={...P,posix:P,win32:R},M=g?_:j,I=g?D:T,L=g?S:B;var z,U,W={};function G(){throw new Error("setTimeout has not been defined")}function q(){throw new Error("clearTimeout has not been defined")}function H(t){if(z===setTimeout)return setTimeout(t,0);if((z===G||!z)&&setTimeout)return z=setTimeout,setTimeout(t,0);try{return z(t,0)}catch(e){try{return z.call(null,t,0)}catch(e){return z.call(this,t,0)}}}!function(){try{z="function"==typeof setTimeout?setTimeout:G}catch(t){z=G}try{U="function"==typeof clearTimeout?clearTimeout:q}catch(t){U=q}}();var V,Y=[],K=!1,J=-1;function X(){K&&V&&(K=!1,V.length?Y=V.concat(Y):J=-1,Y.length&&Z())}function Z(){if(!K){var t=H(X);K=!0;for(var e=Y.length;e;){for(V=Y,Y=[];++J1)for(var r=1;r"undefined"!=typeof require?require:"undefined"!=typeof Proxy?new Proxy(t,{get:(t,e)=>("undefined"!=typeof require?require:t)[e]}):t)((function(t){if("undefined"!=typeof require)return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')})),ut=(t,e)=>function(){return e||(0,t[it(t)[0]])((e={exports:{}}).exports,e),e.exports},ct=ut({"node_modules/memfs/lib/constants.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.constants=void 0,t.constants={O_RDONLY:0,O_WRONLY:1,O_RDWR:2,S_IFMT:61440,S_IFREG:32768,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960,S_IFSOCK:49152,O_CREAT:64,O_EXCL:128,O_NOCTTY:256,O_TRUNC:512,O_APPEND:1024,O_DIRECTORY:65536,O_NOATIME:262144,O_NOFOLLOW:131072,O_SYNC:1052672,O_SYMLINK:2097152,O_DIRECT:16384,O_NONBLOCK:2048,S_IRWXU:448,S_IRUSR:256,S_IWUSR:128,S_IXUSR:64,S_IRWXG:56,S_IRGRP:32,S_IWGRP:16,S_IXGRP:8,S_IRWXO:7,S_IROTH:4,S_IWOTH:2,S_IXOTH:1,F_OK:0,R_OK:4,W_OK:2,X_OK:1,UV_FS_SYMLINK_DIR:1,UV_FS_SYMLINK_JUNCTION:2,UV_FS_COPYFILE_EXCL:1,UV_FS_COPYFILE_FICLONE:2,UV_FS_COPYFILE_FICLONE_FORCE:4,COPYFILE_EXCL:1,COPYFILE_FICLONE:2,COPYFILE_FICLONE_FORCE:4}}}),lt=ut({"node_modules/memfs/lib/Stats.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Stats=void 0;var e=ct(),{S_IFMT:r,S_IFDIR:n,S_IFREG:i,S_IFBLK:o,S_IFCHR:s,S_IFLNK:a,S_IFIFO:u,S_IFSOCK:c}=e.constants,l=class t{static build(e,r=!1){const n=new t,{uid:i,gid:o,atime:s,mtime:a,ctime:u}=e,c=r?t=>BigInt(t):t=>t;n.uid=c(i),n.gid=c(o),n.rdev=c(0),n.blksize=c(4096),n.ino=c(e.ino),n.size=c(e.getSize()),n.blocks=c(1),n.atime=s,n.mtime=a,n.ctime=u,n.birthtime=u,n.atimeMs=c(s.getTime()),n.mtimeMs=c(a.getTime());const l=c(u.getTime());if(n.ctimeMs=l,n.birthtimeMs=l,r){n.atimeNs=BigInt(s.getTime())*BigInt(1e6),n.mtimeNs=BigInt(a.getTime())*BigInt(1e6);const t=BigInt(u.getTime())*BigInt(1e6);n.ctimeNs=t,n.birthtimeNs=t}return n.dev=c(0),n.mode=c(e.mode),n.nlink=c(e.nlink),n}_checkModeProperty(t){return(Number(this.mode)&r)===t}isDirectory(){return this._checkModeProperty(n)}isFile(){return this._checkModeProperty(i)}isBlockDevice(){return this._checkModeProperty(o)}isCharacterDevice(){return this._checkModeProperty(s)}isSymbolicLink(){return this._checkModeProperty(a)}isFIFO(){return this._checkModeProperty(u)}isSocket(){return this._checkModeProperty(c)}};t.Stats=l,t.default=l}}),ft=ut({"node_modules/base64-js/index.js"(t){t.byteLength=function(t){var e=s(t),r=e[0],n=e[1];return 3*(r+n)/4-n},t.toByteArray=function(t){var e,r,o=s(t),a=o[0],u=o[1],c=new i(function(t,e,r){return 3*(e+r)/4-r}(0,a,u)),l=0,f=u>0?a-4:a;for(r=0;r>16&255,c[l++]=e>>8&255,c[l++]=255&e;return 2===u&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,c[l++]=255&e),1===u&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,c[l++]=e>>8&255,c[l++]=255&e),c},t.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],s=16383,u=0,c=n-i;uc?c:u+s));return 1===i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),o.join("")};var e,r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(e=0;e<64;++e)r[e]=o[e],n[o.charCodeAt(e)]=e;function s(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function a(t,e,n){for(var i,o,s=[],a=e;a>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return s.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63}}),ht=ut({"node_modules/ieee754/index.js"(t){t.read=function(t,e,r,n,i){var o,s,a=8*i-n-1,u=(1<>1,l=-7,f=r?i-1:0,h=r?-1:1,p=t[e+f];for(f+=h,o=p&(1<<-l)-1,p>>=-l,l+=a;l>0;o=256*o+t[e+f],f+=h,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=n;l>0;s=256*s+t[e+f],f+=h,l-=8);if(0===o)o=1-c;else{if(o===u)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,n),o-=c}return(p?-1:1)*s*Math.pow(2,o-n)},t.write=function(t,e,r,n,i,o){var s,a,u,c=8*o-i-1,l=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:o-1,d=n?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),(e+=s+f>=1?h/u:h*Math.pow(2,1-f))*u>=2&&(s++,u/=2),s+f>=l?(a=0,s=l):s+f>=1?(a=(e*u-1)*Math.pow(2,i),s+=f):(a=e*Math.pow(2,f-1)*Math.pow(2,i),s=0));i>=8;t[r+p]=255&a,p+=d,a/=256,i-=8);for(s=s<0;t[r+p]=255&s,p+=d,s/=256,c-=8);t[r+p-d]|=128*m}}}),pt=ut({"node_modules/buffer/index.js"(t){var e=ft(),r=ht(),n="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=s,t.SlowBuffer=function(t){return+t!=t&&(t=0),s.alloc(+t)},t.INSPECT_MAX_BYTES=50;var i=2147483647;function o(t){if(t>i)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,s.prototype),e}function s(t,e,r){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return c(t)}return a(t,e,r)}function a(t,e,r){if("string"==typeof t)return function(t,e){if("string"==typeof e&&""!==e||(e="utf8"),!s.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const r=0|p(t,e);let n=o(r);const i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}(t,e);if(ArrayBuffer.isView(t))return function(t){if(V(t,Uint8Array)){const e=new Uint8Array(t);return f(e.buffer,e.byteOffset,e.byteLength)}return l(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(V(t,ArrayBuffer)||t&&V(t.buffer,ArrayBuffer))return f(t,e,r);if("undefined"!=typeof SharedArrayBuffer&&(V(t,SharedArrayBuffer)||t&&V(t.buffer,SharedArrayBuffer)))return f(t,e,r);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return s.from(n,e,r);const i=function(t){if(s.isBuffer(t)){const e=0|h(t.length),r=o(e);return 0===r.length||t.copy(r,0,0,e),r}return void 0!==t.length?"number"!=typeof t.length||Y(t.length)?o(0):l(t):"Buffer"===t.type&&Array.isArray(t.data)?l(t.data):void 0}(t);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return s.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function u(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function c(t){return u(t),o(t<0?0:0|h(t))}function l(t){const e=t.length<0?0:0|h(t.length),r=o(e);for(let n=0;n=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return 0|t}function p(t,e){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||V(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);const r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return G(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return q(t).length;default:if(i)return n?-1:G(t).length;e=(""+e).toLowerCase(),i=!0}}function d(t,e,r){let n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return C(this,e,r);case"utf8":case"utf-8":return _(this,e,r);case"ascii":return S(this,e,r);case"latin1":case"binary":return k(this,e,r);case"base64":return A(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function m(t,e,r){const n=t[e];t[e]=t[r],t[r]=n}function g(t,e,r,n,i){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),Y(r=+r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof e&&(e=s.from(e,n)),s.isBuffer(e))return 0===e.length?-1:y(t,e,r,n,i);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):y(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function y(t,e,r,n,i){let o,s=1,a=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;s=2,a/=2,u/=2,r/=2}function c(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(i){let n=-1;for(o=r;oa&&(r=a-u),o=r;o>=0;o--){let r=!0;for(let n=0;ni&&(n=i):n=i;const o=e.length;let s;for(n>o/2&&(n=o/2),s=0;s>8,i=r%256,o.push(i),o.push(n);return o}(e,t.length-r),t,r,n)}function A(t,r,n){return 0===r&&n===t.length?e.fromByteArray(t):e.fromByteArray(t.slice(r,n))}function _(t,e,r){r=Math.min(t.length,r);const n=[];let i=e;for(;i239?4:e>223?3:e>191?2:1;if(i+s<=r){let r,n,a,u;switch(s){case 1:e<128&&(o=e);break;case 2:r=t[i+1],128==(192&r)&&(u=(31&e)<<6|63&r,u>127&&(o=u));break;case 3:r=t[i+1],n=t[i+2],128==(192&r)&&128==(192&n)&&(u=(15&e)<<12|(63&r)<<6|63&n,u>2047&&(u<55296||u>57343)&&(o=u));break;case 4:r=t[i+1],n=t[i+2],a=t[i+3],128==(192&r)&&128==(192&n)&&128==(192&a)&&(u=(15&e)<<18|(63&r)<<12|(63&n)<<6|63&a,u>65535&&u<1114112&&(o=u))}}null===o?(o=65533,s=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),i+=s}return function(t){const e=t.length;if(e<=D)return String.fromCharCode.apply(String,t);let r="",n=0;for(;nn.length?(s.isBuffer(e)||(e=s.from(e)),e.copy(n,i)):Uint8Array.prototype.set.call(n,e,i);else{if(!s.isBuffer(e))throw new TypeError('"list" argument must be an Array of Buffers');e.copy(n,i)}i+=e.length}return n},s.byteLength=p,s.prototype._isBuffer=!0,s.prototype.swap16=function(){const t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;er&&(e+=" ... "),""},n&&(s.prototype[n]=s.prototype.inspect),s.prototype.compare=function(t,e,r,n,i){if(V(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;let o=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(e>>>=0);const u=Math.min(o,a),c=this.slice(n,i),l=t.slice(e,r);for(let t=0;t>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}const i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return b(this,t,e,r);case"utf8":case"utf-8":return v(this,t,e,r);case"ascii":case"latin1":case"binary":return w(this,t,e,r);case"base64":return x(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,t,e,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var D=4096;function S(t,e,r){let n="";r=Math.min(t.length,r);for(let i=e;in)&&(r=n);let i="";for(let n=e;nr)throw new RangeError("Trying to access beyond buffer length")}function j(t,e,r,n,i,o){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function T(t,e,r,n,i){L(e,n,i,t,r,7);let o=Number(e&BigInt(4294967295));t[r++]=o,o>>=8,t[r++]=o,o>>=8,t[r++]=o,o>>=8,t[r++]=o;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[r++]=s,s>>=8,t[r++]=s,s>>=8,t[r++]=s,s>>=8,t[r++]=s,r}function B(t,e,r,n,i){L(e,n,i,t,r,7);let o=Number(e&BigInt(4294967295));t[r+7]=o,o>>=8,t[r+6]=o,o>>=8,t[r+5]=o,o>>=8,t[r+4]=o;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[r+3]=s,s>>=8,t[r+2]=s,s>>=8,t[r+1]=s,s>>=8,t[r]=s,r+8}function R(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function P(t,e,n,i,o){return e=+e,n>>>=0,o||R(t,0,n,4),r.write(t,e,n,i,23,4),n+4}function N(t,e,n,i,o){return e=+e,n>>>=0,o||R(t,0,n,8),r.write(t,e,n,i,52,8),n+8}s.prototype.slice=function(t,e){const r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e>>=0,e>>>=0,r||O(t,e,this.length);let n=this[t],i=1,o=0;for(;++o>>=0,e>>>=0,r||O(t,e,this.length);let n=this[t+--e],i=1;for(;e>0&&(i*=256);)n+=this[t+--e]*i;return n},s.prototype.readUint8=s.prototype.readUInt8=function(t,e){return t>>>=0,e||O(t,1,this.length),this[t]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(t,e){return t>>>=0,e||O(t,2,this.length),this[t]|this[t+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(t,e){return t>>>=0,e||O(t,2,this.length),this[t]<<8|this[t+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(t,e){return t>>>=0,e||O(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(t,e){return t>>>=0,e||O(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},s.prototype.readBigUInt64LE=J((function(t){z(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||U(t,this.length-8);const n=e+256*this[++t]+65536*this[++t]+this[++t]*2**24,i=this[++t]+256*this[++t]+65536*this[++t]+r*2**24;return BigInt(n)+(BigInt(i)<>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||U(t,this.length-8);const n=e*2**24+65536*this[++t]+256*this[++t]+this[++t],i=this[++t]*2**24+65536*this[++t]+256*this[++t]+r;return(BigInt(n)<>>=0,e>>>=0,r||O(t,e,this.length);let n=this[t],i=1,o=0;for(;++o=i&&(n-=Math.pow(2,8*e)),n},s.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||O(t,e,this.length);let n=e,i=1,o=this[t+--n];for(;n>0&&(i*=256);)o+=this[t+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},s.prototype.readInt8=function(t,e){return t>>>=0,e||O(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},s.prototype.readInt16LE=function(t,e){t>>>=0,e||O(t,2,this.length);const r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt16BE=function(t,e){t>>>=0,e||O(t,2,this.length);const r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt32LE=function(t,e){return t>>>=0,e||O(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},s.prototype.readInt32BE=function(t,e){return t>>>=0,e||O(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},s.prototype.readBigInt64LE=J((function(t){z(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||U(t,this.length-8);const n=this[t+4]+256*this[t+5]+65536*this[t+6]+(r<<24);return(BigInt(n)<>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||U(t,this.length-8);const n=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(n)<>>=0,e||O(t,4,this.length),r.read(this,t,!0,23,4)},s.prototype.readFloatBE=function(t,e){return t>>>=0,e||O(t,4,this.length),r.read(this,t,!1,23,4)},s.prototype.readDoubleLE=function(t,e){return t>>>=0,e||O(t,8,this.length),r.read(this,t,!0,52,8)},s.prototype.readDoubleBE=function(t,e){return t>>>=0,e||O(t,8,this.length),r.read(this,t,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(t,e,r,n){t=+t,e>>>=0,r>>>=0,n||j(this,t,e,r,Math.pow(2,8*r)-1,0);let i=1,o=0;for(this[e]=255&t;++o>>=0,r>>>=0,n||j(this,t,e,r,Math.pow(2,8*r)-1,0);let i=r-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+r},s.prototype.writeUint8=s.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||j(this,t,e,1,255,0),this[e]=255&t,e+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||j(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||j(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||j(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||j(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},s.prototype.writeBigUInt64LE=J((function(t,e=0){return T(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),s.prototype.writeBigUInt64BE=J((function(t,e=0){return B(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),s.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){const n=Math.pow(2,8*r-1);j(this,t,e,r,n-1,-n)}let i=0,o=1,s=0;for(this[e]=255&t;++i>>=0,!n){const n=Math.pow(2,8*r-1);j(this,t,e,r,n-1,-n)}let i=r-1,o=1,s=0;for(this[e+i]=255&t;--i>=0&&(o*=256);)t<0&&0===s&&0!==this[e+i+1]&&(s=1),this[e+i]=(t/o|0)-s&255;return e+r},s.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||j(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},s.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||j(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},s.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||j(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},s.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||j(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},s.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||j(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},s.prototype.writeBigInt64LE=J((function(t,e=0){return T(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),s.prototype.writeBigInt64BE=J((function(t,e=0){return B(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),s.prototype.writeFloatLE=function(t,e,r){return P(this,t,e,!0,r)},s.prototype.writeFloatBE=function(t,e,r){return P(this,t,e,!1,r)},s.prototype.writeDoubleLE=function(t,e,r){return N(this,t,e,!0,r)},s.prototype.writeDoubleBE=function(t,e,r){return N(this,t,e,!1,r)},s.prototype.copy=function(t,e,r,n){if(!s.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function L(t,e,r,n,i,o){if(t>r||t3?0===e||e===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(o+1)}${n}`:`>= -(2${n} ** ${8*(o+1)-1}${n}) and < 2 ** ${8*(o+1)-1}${n}`:`>= ${e}${n} and <= ${r}${n}`,new $.ERR_OUT_OF_RANGE("value",i,t)}!function(t,e,r){z(e,"offset"),void 0!==t[e]&&void 0!==t[e+r]||U(e,t.length-(r+1))}(n,i,o)}function z(t,e){if("number"!=typeof t)throw new $.ERR_INVALID_ARG_TYPE(e,"number",t)}function U(t,e,r){if(Math.floor(t)!==t)throw z(t,r),new $.ERR_OUT_OF_RANGE(r||"offset","an integer",t);if(e<0)throw new $.ERR_BUFFER_OUT_OF_BOUNDS;throw new $.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${e}`,t)}M("ERR_BUFFER_OUT_OF_BOUNDS",(function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),M("ERR_INVALID_ARG_TYPE",(function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`}),TypeError),M("ERR_OUT_OF_RANGE",(function(t,e,r){let n=`The value of "${t}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>2**32?i=I(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=I(i)),i+="n"),n+=` It must be ${e}. Received ${i}`,n}),RangeError);var W=/[^+/0-9A-Za-z-_]/g;function G(t,e){let r;e=e||1/0;const n=t.length;let i=null;const o=[];for(let s=0;s55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function q(t){return e.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(W,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function H(t,e,r,n){let i;for(i=0;i=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function V(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function Y(t){return t!=t}var K=function(){const t="0123456789abcdef",e=new Array(256);for(let r=0;r<16;++r){const n=16*r;for(let i=0;i<16;++i)e[n+i]=t[r]+t[i]}return e}();function J(t){return"undefined"==typeof BigInt?X:t}function X(){throw new Error("BigInt not supported")}}}),dt=ut({"node_modules/memfs/lib/internal/buffer.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.bufferFrom=t.bufferAllocUnsafe=t.Buffer=void 0;var e=pt();function r(t,...r){return new e.Buffer(t,...r)}Object.defineProperty(t,"Buffer",{enumerable:!0,get:function(){return e.Buffer}});var n=e.Buffer.allocUnsafe||r;t.bufferAllocUnsafe=n;var i=e.Buffer.from||r;t.bufferFrom=i}}),mt=ut({"node_modules/has-symbols/shams.js"(t,e){e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,e);if(42!==i.value||!0!==i.enumerable)return!1}return!0}}}),gt=ut({"node_modules/has-tostringtag/shams.js"(t,e){var r=mt();e.exports=function(){return r()&&!!Symbol.toStringTag}}}),yt=ut({"node_modules/has-symbols/index.js"(t,e){var r="undefined"!=typeof Symbol&&Symbol,n=mt();e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&n()}}}),bt=ut({"node_modules/has-proto/index.js"(t,e){var r={foo:{}},n=Object;e.exports=function(){return{__proto__:r}.foo===r.foo&&!({__proto__:null}instanceof n)}}}),vt=ut({"node_modules/function-bind/implementation.js"(t,e){var r=Array.prototype.slice,n=Object.prototype.toString;e.exports=function(t){var e=this;if("function"!=typeof e||"[object Function]"!==n.call(e))throw new TypeError("Function.prototype.bind called on incompatible "+e);for(var i,o=r.call(arguments,1),s=Math.max(0,e.length-o.length),a=[],u=0;u1&&"boolean"!=typeof e)throw new o('"allowMissing" argument must be a boolean');if(null===D(/^%?[^%]*%?$/,t))throw new n("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(t){var e=_(t,0,1),r=_(t,-1);if("%"===e&&"%"!==r)throw new n("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new n("invalid intrinsic syntax, expected opening `%`");var i=[];return A(t,S,(function(t,e,r,n){i[i.length]=r?A(n,k,"$1"):e||t})),i}(t),i=r.length>0?r[0]:"",s=C("%"+i+"%",e),u=s.name,c=s.value,l=!1,f=s.alias;f&&(i=f[0],E(r,x([0,1],f)));for(var h=1,p=!0;h=r.length){var b=a(c,d);c=(p=!!b)&&"get"in b&&!("originalValue"in b.get)?b.get:c[d]}else p=w(c,d),c=c[d];p&&!l&&(g[u]=c)}}return c}}}),At=ut({"node_modules/call-bind/index.js"(t,e){var r=wt(),n=Et(),i=n("%Function.prototype.apply%"),o=n("%Function.prototype.call%"),s=n("%Reflect.apply%",!0)||r.call(o,i),a=n("%Object.getOwnPropertyDescriptor%",!0),u=n("%Object.defineProperty%",!0),c=n("%Math.max%");if(u)try{u({},"a",{value:1})}catch(t){u=null}e.exports=function(t){var e=s(r,o,arguments);return a&&u&&a(e,"length").configurable&&u(e,"length",{value:1+c(0,t.length-(arguments.length-1))}),e};var l=function(){return s(r,i,arguments)};u?u(e.exports,"apply",{value:l}):e.exports.apply=l}}),_t=ut({"node_modules/call-bind/callBound.js"(t,e){var r=Et(),n=At(),i=n(r("String.prototype.indexOf"));e.exports=function(t,e){var o=r(t,!!e);return"function"==typeof o&&i(t,".prototype.")>-1?n(o):o}}}),Dt=ut({"node_modules/is-arguments/index.js"(t,e){var r=gt()(),n=_t()("Object.prototype.toString"),i=function(t){return!(r&&t&&"object"==typeof t&&Symbol.toStringTag in t)&&"[object Arguments]"===n(t)},o=function(t){return!!i(t)||null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Array]"!==n(t)&&"[object Function]"===n(t.callee)},s=function(){return i(arguments)}();i.isLegacyArguments=o,e.exports=s?i:o}}),St=ut({"node_modules/is-generator-function/index.js"(t,e){var r,n=Object.prototype.toString,i=Function.prototype.toString,o=/^\s*(?:function)?\*/,s=gt()(),a=Object.getPrototypeOf;e.exports=function(t){if("function"!=typeof t)return!1;if(o.test(i.call(t)))return!0;if(!s)return"[object GeneratorFunction]"===n.call(t);if(!a)return!1;if(void 0===r){var e=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch(t){}}();r=!!e&&a(e)}return a(t)===r}}}),kt=ut({"node_modules/is-callable/index.js"(t,e){var r,n,i=Function.prototype.toString,o="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof o&&"function"==typeof Object.defineProperty)try{r=Object.defineProperty({},"length",{get:function(){throw n}}),n={},o((function(){throw 42}),null,r)}catch(t){t!==n&&(o=null)}else o=null;var s,a=/^\s*class\b/,u=function(t){try{var e=i.call(t);return a.test(e)}catch(t){return!1}},c=function(t){try{return!u(t)&&(i.call(t),!0)}catch(t){return!1}},l=Object.prototype.toString,f="function"==typeof Symbol&&!!Symbol.toStringTag,h=!(0 in[,]),p=function(){return!1};"object"==typeof document&&(s=document.all,l.call(s)===l.call(document.all)&&(p=function(t){if((h||!t)&&(void 0===t||"object"==typeof t))try{var e=l.call(t);return("[object HTMLAllCollection]"===e||"[object HTML document.all class]"===e||"[object HTMLCollection]"===e||"[object Object]"===e)&&null==t("")}catch(t){}return!1})),e.exports=o?function(t){if(p(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;try{o(t,null,r)}catch(t){if(t!==n)return!1}return!u(t)&&c(t)}:function(t){if(p(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if(f)return c(t);if(u(t))return!1;var e=l.call(t);return!("[object Function]"!==e&&"[object GeneratorFunction]"!==e&&!/^\[object HTML/.test(e))&&c(t)}}}),Ct=ut({"node_modules/for-each/index.js"(t,e){var r=kt(),n=Object.prototype.toString,i=Object.prototype.hasOwnProperty;e.exports=function(t,e,o){if(!r(e))throw new TypeError("iterator must be a function");var s;arguments.length>=3&&(s=o),"[object Array]"===n.call(t)?function(t,e,r){for(var n=0,o=t.length;n-1?e:"Object"===e&&function(t){var e=!1;return r(d,(function(r,n){if(!e)try{r(t),e=f(n,1)}catch(t){}})),e}(t)}return s?function(t){var e=!1;return r(d,(function(r,n){if(!e)try{"$"+r(t)===n&&(e=f(n,1))}catch(t){}})),e}(t):null}}}),Tt=ut({"node_modules/is-typed-array/index.js"(t,e){var r=jt();e.exports=function(t){return!!r(t)}}}),Bt=ut({"node_modules/util/support/types.js"(t){var e=Dt(),r=St(),n=jt(),i=Tt();function o(t){return t.call.bind(t)}var s,a,u="undefined"!=typeof BigInt,c="undefined"!=typeof Symbol,l=o(Object.prototype.toString),f=o(Number.prototype.valueOf),h=o(String.prototype.valueOf),p=o(Boolean.prototype.valueOf);function d(t,e){if("object"!=typeof t)return!1;try{return e(t),!0}catch(t){return!1}}function m(t){return"[object Map]"===l(t)}function g(t){return"[object Set]"===l(t)}function y(t){return"[object WeakMap]"===l(t)}function b(t){return"[object WeakSet]"===l(t)}function v(t){return"[object ArrayBuffer]"===l(t)}function w(t){return"undefined"!=typeof ArrayBuffer&&(v.working?v(t):t instanceof ArrayBuffer)}function x(t){return"[object DataView]"===l(t)}function E(t){return"undefined"!=typeof DataView&&(x.working?x(t):t instanceof DataView)}u&&(s=o(BigInt.prototype.valueOf)),c&&(a=o(Symbol.prototype.valueOf)),t.isArgumentsObject=e,t.isGeneratorFunction=r,t.isTypedArray=i,t.isPromise=function(t){return"undefined"!=typeof Promise&&t instanceof Promise||null!==t&&"object"==typeof t&&"function"==typeof t.then&&"function"==typeof t.catch},t.isArrayBufferView=function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):i(t)||E(t)},t.isUint8Array=function(t){return"Uint8Array"===n(t)},t.isUint8ClampedArray=function(t){return"Uint8ClampedArray"===n(t)},t.isUint16Array=function(t){return"Uint16Array"===n(t)},t.isUint32Array=function(t){return"Uint32Array"===n(t)},t.isInt8Array=function(t){return"Int8Array"===n(t)},t.isInt16Array=function(t){return"Int16Array"===n(t)},t.isInt32Array=function(t){return"Int32Array"===n(t)},t.isFloat32Array=function(t){return"Float32Array"===n(t)},t.isFloat64Array=function(t){return"Float64Array"===n(t)},t.isBigInt64Array=function(t){return"BigInt64Array"===n(t)},t.isBigUint64Array=function(t){return"BigUint64Array"===n(t)},m.working="undefined"!=typeof Map&&m(new Map),t.isMap=function(t){return"undefined"!=typeof Map&&(m.working?m(t):t instanceof Map)},g.working="undefined"!=typeof Set&&g(new Set),t.isSet=function(t){return"undefined"!=typeof Set&&(g.working?g(t):t instanceof Set)},y.working="undefined"!=typeof WeakMap&&y(new WeakMap),t.isWeakMap=function(t){return"undefined"!=typeof WeakMap&&(y.working?y(t):t instanceof WeakMap)},b.working="undefined"!=typeof WeakSet&&b(new WeakSet),t.isWeakSet=function(t){return b(t)},v.working="undefined"!=typeof ArrayBuffer&&v(new ArrayBuffer),t.isArrayBuffer=w,x.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&x(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=E;var A="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function _(t){return"[object SharedArrayBuffer]"===l(t)}function D(t){return void 0!==A&&(void 0===_.working&&(_.working=_(new A)),_.working?_(t):t instanceof A)}function S(t){return d(t,f)}function k(t){return d(t,h)}function C(t){return d(t,p)}function F(t){return u&&d(t,s)}function O(t){return c&&d(t,a)}t.isSharedArrayBuffer=D,t.isAsyncFunction=function(t){return"[object AsyncFunction]"===l(t)},t.isMapIterator=function(t){return"[object Map Iterator]"===l(t)},t.isSetIterator=function(t){return"[object Set Iterator]"===l(t)},t.isGeneratorObject=function(t){return"[object Generator]"===l(t)},t.isWebAssemblyCompiledModule=function(t){return"[object WebAssembly.Module]"===l(t)},t.isNumberObject=S,t.isStringObject=k,t.isBooleanObject=C,t.isBigIntObject=F,t.isSymbolObject=O,t.isBoxedPrimitive=function(t){return S(t)||k(t)||C(t)||F(t)||O(t)},t.isAnyArrayBuffer=function(t){return"undefined"!=typeof Uint8Array&&(w(t)||D(t))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}))}}),Rt=ut({"node_modules/util/support/isBufferBrowser.js"(t,e){e.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}}}),Pt=ut({"node_modules/inherits/inherits_browser.js"(t,e){"function"==typeof Object.create?e.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}}}),Nt=ut({"node_modules/util/util.js"(t){var e=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),r={},n=0;n=o)return t;switch(t){case"%s":return String(i[n++]);case"%d":return Number(i[n++]);case"%j":try{return JSON.stringify(i[n++])}catch(t){return"[Circular]"}default:return t}})),u=i[n];n=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),p(r)?n.showHidden=r:r&&t._extend(n,r),y(n.showHidden)&&(n.showHidden=!1),y(n.depth)&&(n.depth=2),y(n.colors)&&(n.colors=!1),y(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=a),c(n,e,n.depth)}function a(t,e){var r=s.styles[e];return r?"["+s.colors[r][0]+"m"+t+"["+s.colors[r][1]+"m":t}function u(t,e){return t}function c(e,r,n){if(e.customInspect&&r&&E(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,e);return g(i)||(i=c(e,i,n)),i}var o=function(t,e){if(y(e))return t.stylize("undefined","undefined");if(g(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}return m(e)?t.stylize(""+e,"number"):p(e)?t.stylize(""+e,"boolean"):d(e)?t.stylize("null","null"):void 0}(e,r);if(o)return o;var s=Object.keys(r),a=function(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(r)),x(r)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return l(r);if(0===s.length){if(E(r)){var u=r.name?": "+r.name:"";return e.stylize("[Function"+u+"]","special")}if(b(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(w(r))return e.stylize(Date.prototype.toString.call(r),"date");if(x(r))return l(r)}var v,A="",_=!1,D=["{","}"];return h(r)&&(_=!0,D=["[","]"]),E(r)&&(A=" [Function"+(r.name?": "+r.name:"")+"]"),b(r)&&(A=" "+RegExp.prototype.toString.call(r)),w(r)&&(A=" "+Date.prototype.toUTCString.call(r)),x(r)&&(A=" "+l(r)),0!==s.length||_&&0!=r.length?n<0?b(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),v=_?function(t,e,r,n,i){for(var o=[],s=0,a=e.length;s60?r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1]:r[0]+e+" "+t.join(", ")+" "+r[1]}(v,A,D)):D[0]+A+D[1]}function l(t){return"["+Error.prototype.toString.call(t)+"]"}function f(t,e,r,n,i,o){var s,a,u;if((u=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?a=u.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):u.set&&(a=t.stylize("[Setter]","special")),S(n,i)||(s="["+i+"]"),a||(t.seen.indexOf(u.value)<0?(a=d(r)?c(t,u.value,null):c(t,u.value,r-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map((function(t){return" "+t})).join("\n").slice(2):"\n"+a.split("\n").map((function(t){return" "+t})).join("\n")):a=t.stylize("[Circular]","special")),y(s)){if(o&&i.match(/^\d+$/))return a;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.slice(1,-1),s=t.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=t.stylize(s,"string"))}return s+": "+a}function h(t){return Array.isArray(t)}function p(t){return"boolean"==typeof t}function d(t){return null===t}function m(t){return"number"==typeof t}function g(t){return"string"==typeof t}function y(t){return void 0===t}function b(t){return v(t)&&"[object RegExp]"===A(t)}function v(t){return"object"==typeof t&&null!==t}function w(t){return v(t)&&"[object Date]"===A(t)}function x(t){return v(t)&&("[object Error]"===A(t)||t instanceof Error)}function E(t){return"function"==typeof t}function A(t){return Object.prototype.toString.call(t)}function _(t){return t<10?"0"+t.toString(10):t.toString(10)}W.env.NODE_DEBUG&&(n=(n=W.env.NODE_DEBUG).replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),o=new RegExp("^"+n+"$","i")),t.debuglog=function(e){if(e=e.toUpperCase(),!i[e])if(o.test(e)){var r=W.pid;i[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else i[e]=function(){};return i[e]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=Bt(),t.isArray=h,t.isBoolean=p,t.isNull=d,t.isNullOrUndefined=function(t){return null==t},t.isNumber=m,t.isString=g,t.isSymbol=function(t){return"symbol"==typeof t},t.isUndefined=y,t.isRegExp=b,t.types.isRegExp=b,t.isObject=v,t.isDate=w,t.types.isDate=w,t.isError=x,t.types.isNativeError=x,t.isFunction=E,t.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},t.isBuffer=Rt();var D=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function S(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.log=function(){console.log("%s - %s",function(){var t=new Date,e=[_(t.getHours()),_(t.getMinutes()),_(t.getSeconds())].join(":");return[t.getDate(),D[t.getMonth()],e].join(" ")}(),t.format.apply(t,arguments))},t.inherits=Pt(),t._extend=function(t,e){if(!e||!v(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t};var k="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function C(t,e){if(!t){var r=new Error("Promise was rejected with a falsy value");r.reason=t,t=r}return e(t)}t.promisify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');if(k&&t[k]){var r;if("function"!=typeof(r=t[k]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(r,k,{value:r,enumerable:!1,writable:!1,configurable:!0}),r}function r(){for(var e,r,n=new Promise((function(t,n){e=t,r=n})),i=[],o=0;o2?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:2===r?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}u("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),u("ERR_INVALID_ARG_TYPE",(function(t,e,n){var i,s,a,u,l;if(void 0===o&&(o=te()),o("string"==typeof t,"'name' must be a string"),"string"==typeof e&&(s="not ",e.substr(0,4)===s)?(i="must not be",e=e.replace(/^not /,"")):i="must be",function(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-9,r)===e}(t," argument"))a="The ".concat(t," ").concat(i," ").concat(c(e,"type"));else{var f=("number"!=typeof l&&(l=0),l+1>(u=t).length||-1===u.indexOf(".",l)?"argument":"property");a='The "'.concat(t,'" ').concat(f," ").concat(i," ").concat(c(e,"type"))}return a+". Received type ".concat(r(n))}),TypeError),u("ERR_INVALID_ARG_VALUE",(function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===s&&(s=Nt());var n=s.inspect(e);return n.length>128&&(n="".concat(n.slice(0,128),"...")),"The argument '".concat(t,"' ").concat(r,". Received ").concat(n)}),TypeError,RangeError),u("ERR_INVALID_RETURN_VALUE",(function(t,e,n){var i;return i=n&&n.constructor&&n.constructor.name?"instance of ".concat(n.constructor.name):"type ".concat(r(n)),"Expected ".concat(t,' to be returned from the "').concat(e,'"')+" function but got ".concat(i,".")}),TypeError),u("ERR_MISSING_ARGS",(function(){for(var t=arguments.length,e=new Array(t),r=0;r0,"At least one arg needs to be specified");var n="The ",i=e.length;switch(e=e.map((function(t){return'"'.concat(t,'"')})),i){case 1:n+="".concat(e[0]," argument");break;case 2:n+="".concat(e[0]," and ").concat(e[1]," arguments");break;default:n+=e.slice(0,i-1).join(", "),n+=", and ".concat(e[i-1]," arguments")}return"".concat(n," must be specified")}),TypeError),e.exports.codes=a}}),Mt=ut({"node_modules/assert/build/internal/assert/assertion_error.js"(t,e){function r(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function n(t,e){for(var r=0;rt.length)&&(r=t.length),t.substring(r-e.length,r)===e}var d="",m="",g="",y="",b={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function v(t){var e=Object.keys(t),r=Object.create(Object.getPrototypeOf(t));return e.forEach((function(e){r[e]=t[e]})),Object.defineProperty(r,"message",{value:t.message}),r}function w(t){return f(t,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var x=function(t){function e(t){var r;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),"object"!==l(t)||null===t)throw new h("options","Object",t);var n=t.message,s=t.operator,a=t.stackStartFn,u=t.actual,f=t.expected,x=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=n)r=i(this,c(e).call(this,String(n)));else if(W.stderr&&W.stderr.isTTY&&(W.stderr&&W.stderr.getColorDepth&&1!==W.stderr.getColorDepth()?(d="",m="",y="",g=""):(d="",m="",y="",g="")),"object"===l(u)&&null!==u&&"object"===l(f)&&null!==f&&"stack"in u&&u instanceof Error&&"stack"in f&&f instanceof Error&&(u=v(u),f=v(f)),"deepStrictEqual"===s||"strictEqual"===s)r=i(this,c(e).call(this,function(t,e,r){var n="",i="",o=0,s="",a=!1,u=w(t),c=u.split("\n"),f=w(e).split("\n"),h=0,v="";if("strictEqual"===r&&"object"===l(t)&&"object"===l(e)&&null!==t&&null!==e&&(r="strictEqualObject"),1===c.length&&1===f.length&&c[0]!==f[0]){var x=c[0].length+f[0].length;if(x<=10){if(!("object"===l(t)&&null!==t||"object"===l(e)&&null!==e||0===t&&0===e))return"".concat(b[r],"\n\n")+"".concat(c[0]," !== ").concat(f[0],"\n")}else if("strictEqualObject"!==r&&x<(W.stderr&&W.stderr.isTTY?W.stderr.columns:80)){for(;c[0][h]===f[0][h];)h++;h>2&&(v="\n ".concat(function(t,e){if(e=Math.floor(e),0==t.length||0==e)return"";var r=t.length*e;for(e=Math.floor(Math.log(e)/Math.log(2));e;)t+=t,e--;return t+t.substring(0,r-t.length)}(" ",h),"^"),h=0)}}for(var E=c[c.length-1],A=f[f.length-1];E===A&&(h++<2?s="\n ".concat(E).concat(s):n=E,c.pop(),f.pop(),0!==c.length&&0!==f.length);)E=c[c.length-1],A=f[f.length-1];var _=Math.max(c.length,f.length);if(0===_){var D=u.split("\n");if(D.length>30)for(D[26]="".concat(d,"...").concat(y);D.length>27;)D.pop();return"".concat(b.notIdentical,"\n\n").concat(D.join("\n"),"\n")}h>3&&(s="\n".concat(d,"...").concat(y).concat(s),a=!0),""!==n&&(s="\n ".concat(n).concat(s),n="");var S=0,k=b[r]+"\n".concat(m,"+ actual").concat(y," ").concat(g,"- expected").concat(y),C=" ".concat(d,"...").concat(y," Lines skipped");for(h=0;h<_;h++){var F=h-o;if(c.length1&&h>2&&(F>4?(i+="\n".concat(d,"...").concat(y),a=!0):F>3&&(i+="\n ".concat(f[h-2]),S++),i+="\n ".concat(f[h-1]),S++),o=h,n+="\n".concat(g,"-").concat(y," ").concat(f[h]),S++;else if(f.length1&&h>2&&(F>4?(i+="\n".concat(d,"...").concat(y),a=!0):F>3&&(i+="\n ".concat(c[h-2]),S++),i+="\n ".concat(c[h-1]),S++),o=h,i+="\n".concat(m,"+").concat(y," ").concat(c[h]),S++;else{var O=f[h],j=c[h],T=j!==O&&(!p(j,",")||j.slice(0,-1)!==O);T&&p(O,",")&&O.slice(0,-1)===j&&(T=!1,j+=","),T?(F>1&&h>2&&(F>4?(i+="\n".concat(d,"...").concat(y),a=!0):F>3&&(i+="\n ".concat(c[h-2]),S++),i+="\n ".concat(c[h-1]),S++),o=h,i+="\n".concat(m,"+").concat(y," ").concat(j),n+="\n".concat(g,"-").concat(y," ").concat(O),S+=2):(i+=n,n="",1!==F&&0!==h||(i+="\n ".concat(j),S++))}if(S>20&&h<_-2)return"".concat(k).concat(C,"\n").concat(i,"\n").concat(d,"...").concat(y).concat(n,"\n")+"".concat(d,"...").concat(y)}return"".concat(k).concat(a?C:"","\n").concat(i).concat(n).concat(s).concat(v)}(u,f,s)));else if("notDeepStrictEqual"===s||"notStrictEqual"===s){var E=b[s],A=w(u).split("\n");if("notStrictEqual"===s&&"object"===l(u)&&null!==u&&(E=b.notStrictEqualObject),A.length>30)for(A[26]="".concat(d,"...").concat(y);A.length>27;)A.pop();r=1===A.length?i(this,c(e).call(this,"".concat(E," ").concat(A[0]))):i(this,c(e).call(this,"".concat(E,"\n\n").concat(A.join("\n"),"\n")))}else{var _=w(u),D="",S=b[s];"notDeepEqual"===s||"notEqual"===s?(_="".concat(b[s],"\n\n").concat(_)).length>1024&&(_="".concat(_.slice(0,1021),"...")):(D="".concat(w(f)),_.length>512&&(_="".concat(_.slice(0,509),"...")),D.length>512&&(D="".concat(D.slice(0,509),"...")),"deepEqual"===s||"equal"===s?_="".concat(S,"\n\n").concat(_,"\n\nshould equal\n\n"):D=" ".concat(s," ").concat(D)),r=i(this,c(e).call(this,"".concat(_).concat(D)))}return Error.stackTraceLimit=x,r.generatedMessage=!n,Object.defineProperty(o(r),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),r.code="ERR_ASSERTION",r.actual=u,r.expected=f,r.operator=s,Error.captureStackTrace&&Error.captureStackTrace(o(r),a),r.stack,r.name="AssertionError",i(r)}var s,a;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(e,t),s=e,a=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:f.custom,value:function(t,e){return f(this,function(t){for(var e=1;e=0&&"[object Function]"===r.call(t.callee)),n}}}),zt=ut({"node_modules/object-keys/implementation.js"(t,e){var r,n,i,o,s,a,u,c,l,f,h,p;Object.keys||(n=Object.prototype.hasOwnProperty,i=Object.prototype.toString,o=Lt(),s=Object.prototype.propertyIsEnumerable,a=!s.call({toString:null},"toString"),u=s.call((function(){}),"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],l=function(t){var e=t.constructor;return e&&e.prototype===t},f={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!f["$"+t]&&n.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{l(window[t])}catch(t){return!0}}catch(t){return!0}return!1}(),p=function(t){if("undefined"==typeof window||!h)return l(t);try{return l(t)}catch(t){return!1}},r=function(t){var e=null!==t&&"object"==typeof t,r="[object Function]"===i.call(t),s=o(t),l=e&&"[object String]"===i.call(t),f=[];if(!e&&!r&&!s)throw new TypeError("Object.keys called on a non-object");var h=u&&r;if(l&&t.length>0&&!n.call(t,0))for(var d=0;d0)for(var m=0;m2?arguments[2]:{},s=r(e);n&&(s=o.call(s,Object.getOwnPropertySymbols(e)));for(var a=0;a10)return!0;for(var e=0;e57)return!0}return 10===t.length&&t>=Math.pow(2,32)}function j(t){return Object.keys(t).filter(O).concat(u(t).filter(Object.prototype.propertyIsEnumerable.bind(t)))}function T(t,e){if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i1?r-1:0),i=1;i1?r-1:0),i=1;i1?r-1:0),i=1;i1?r-1:0),i=1;i0,"At least one expected value needs to be specified"),t=t.map((t=>String(t))),n>2?`one of ${r} ${t.slice(0,n-1).join(", ")}, or `+t[n-1]:2===n?`one of ${r} ${t[0]} or ${t[1]}`:`of ${r} ${t[0]}`}return`of ${r} ${String(t)}`}t.AssertionError=a,t.message=u,t.E=c,t.Error=o(s.Error),t.TypeError=o(s.TypeError),t.RangeError=o(s.RangeError),c("ERR_ARG_NOT_ITERABLE","%s must be iterable"),c("ERR_ASSERTION","%s"),c("ERR_BUFFER_OUT_OF_BOUNDS",(function(t,e){return e?"Attempt to write outside buffer bounds":`"${t}" is outside of buffer bounds`})),c("ERR_CHILD_CLOSED_BEFORE_REPLY","Child closed before reply received"),c("ERR_CONSOLE_WRITABLE_STREAM","Console expects a writable stream instance for %s"),c("ERR_CPU_USAGE","Unable to obtain cpu usage %s"),c("ERR_DNS_SET_SERVERS_FAILED",((t,e)=>`c-ares failed to set servers: "${t}" [${e}]`)),c("ERR_FALSY_VALUE_REJECTION","Promise was rejected with falsy value"),c("ERR_ENCODING_NOT_SUPPORTED",(t=>`The "${t}" encoding is not supported`)),c("ERR_ENCODING_INVALID_ENCODED_DATA",(t=>`The encoded data was not valid for encoding ${t}`)),c("ERR_HTTP_HEADERS_SENT","Cannot render headers after they are sent to the client"),c("ERR_HTTP_INVALID_STATUS_CODE","Invalid status code: %s"),c("ERR_HTTP_TRAILER_INVALID","Trailers are invalid with this transfer encoding"),c("ERR_INDEX_OUT_OF_RANGE","Index out of range"),c("ERR_INVALID_ARG_TYPE",(function(t,r,n){let i,o;if(e(t,"name is required"),r.includes("not ")?(i="must not be",r=r.split("not ")[1]):i="must be",Array.isArray(t))o=`The ${t.map((t=>`"${t}"`)).join(", ")} arguments ${i} ${l(r,"type")}`;else if(t.includes(" argument"))o=`The ${t} ${i} ${l(r,"type")}`;else{const e=t.includes(".")?"property":"argument";o=`The "${t}" ${e} ${i} ${l(r,"type")}`}return arguments.length>=3&&(o+=". Received type "+(null!==n?typeof n:"null")),o})),c("ERR_INVALID_ARRAY_LENGTH",((t,r,n)=>(e.strictEqual(typeof n,"number"),`The array "${t}" (length ${n}) must be of length ${r}.`))),c("ERR_INVALID_BUFFER_SIZE","Buffer size must be a multiple of %s"),c("ERR_INVALID_CALLBACK","Callback must be a function"),c("ERR_INVALID_CHAR","Invalid character in %s"),c("ERR_INVALID_CURSOR_POS","Cannot set cursor row without setting its column"),c("ERR_INVALID_FD",'"fd" must be a positive integer: %s'),c("ERR_INVALID_FILE_URL_HOST",'File URL host must be "localhost" or empty on %s'),c("ERR_INVALID_FILE_URL_PATH","File URL path %s"),c("ERR_INVALID_HANDLE_TYPE","This handle type cannot be sent"),c("ERR_INVALID_IP_ADDRESS","Invalid IP address: %s"),c("ERR_INVALID_OPT_VALUE",((t,e)=>`The value "${String(e)}" is invalid for option "${t}"`)),c("ERR_INVALID_OPT_VALUE_ENCODING",(t=>`The value "${String(t)}" is invalid for option "encoding"`)),c("ERR_INVALID_REPL_EVAL_CONFIG",'Cannot specify both "breakEvalOnSigint" and "eval" for REPL'),c("ERR_INVALID_SYNC_FORK_INPUT","Asynchronous forks do not support Buffer, Uint8Array or string input: %s"),c("ERR_INVALID_THIS",'Value of "this" must be of type %s'),c("ERR_INVALID_TUPLE","%s must be an iterable %s tuple"),c("ERR_INVALID_URL","Invalid URL: %s"),c("ERR_INVALID_URL_SCHEME",(t=>`The URL must be ${l(t,"scheme")}`)),c("ERR_IPC_CHANNEL_CLOSED","Channel closed"),c("ERR_IPC_DISCONNECTED","IPC channel is already disconnected"),c("ERR_IPC_ONE_PIPE","Child process can have only one IPC pipe"),c("ERR_IPC_SYNC_FORK","IPC cannot be used with synchronous forks"),c("ERR_MISSING_ARGS",(function(...t){e(t.length>0,"At least one arg needs to be specified");let r="The ";const n=t.length;switch(t=t.map((t=>`"${t}"`)),n){case 1:r+=`${t[0]} argument`;break;case 2:r+=`${t[0]} and ${t[1]} arguments`;break;default:r+=t.slice(0,n-1).join(", "),r+=`, and ${t[n-1]} arguments`}return`${r} must be specified`})),c("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),c("ERR_NAPI_CONS_FUNCTION","Constructor must be a function"),c("ERR_NAPI_CONS_PROTOTYPE_OBJECT","Constructor.prototype must be an object"),c("ERR_NO_CRYPTO","Node.js is not compiled with OpenSSL crypto support"),c("ERR_NO_LONGER_SUPPORTED","%s is no longer supported"),c("ERR_PARSE_HISTORY_DATA","Could not parse history data in %s"),c("ERR_SOCKET_ALREADY_BOUND","Socket is already bound"),c("ERR_SOCKET_BAD_PORT","Port should be > 0 and < 65536"),c("ERR_SOCKET_BAD_TYPE","Bad socket type specified. Valid types are: udp4, udp6"),c("ERR_SOCKET_CANNOT_SEND","Unable to send data"),c("ERR_SOCKET_CLOSED","Socket is closed"),c("ERR_SOCKET_DGRAM_NOT_RUNNING","Not running"),c("ERR_STDERR_CLOSE","process.stderr cannot be closed"),c("ERR_STDOUT_CLOSE","process.stdout cannot be closed"),c("ERR_STREAM_WRAP","Stream has StringDecoder set or is in objectMode"),c("ERR_TLS_CERT_ALTNAME_INVALID","Hostname/IP does not match certificate's altnames: %s"),c("ERR_TLS_DH_PARAM_SIZE",(t=>`DH parameter size ${t} is less than 2048`)),c("ERR_TLS_HANDSHAKE_TIMEOUT","TLS handshake timeout"),c("ERR_TLS_RENEGOTIATION_FAILED","Failed to renegotiate"),c("ERR_TLS_REQUIRED_SERVER_NAME",'"servername" is required parameter for Server.addContext'),c("ERR_TLS_SESSION_ATTACK","TSL session renegotiation attack detected"),c("ERR_TRANSFORM_ALREADY_TRANSFORMING","Calling transform done when still transforming"),c("ERR_TRANSFORM_WITH_LENGTH_0","Calling transform done when writableState.length != 0"),c("ERR_UNKNOWN_ENCODING","Unknown encoding: %s"),c("ERR_UNKNOWN_SIGNAL","Unknown signal: %s"),c("ERR_UNKNOWN_STDIN_TYPE","Unknown stdin file type"),c("ERR_UNKNOWN_STREAM_TYPE","Unknown stream file type"),c("ERR_V8BREAKITERATOR","Full ICU data not installed. See https://github.com/nodejs/node/wiki/Intl")}}),re=ut({"node_modules/memfs/lib/encoding.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.strToEncoding=t.assertEncoding=t.ENCODING_UTF8=void 0;var e=dt(),r=ee();t.ENCODING_UTF8="utf8",t.assertEncoding=function(t){if(t&&!e.Buffer.isEncoding(t))throw new r.TypeError("ERR_INVALID_OPT_VALUE_ENCODING",t)},t.strToEncoding=function(r,n){return n&&n!==t.ENCODING_UTF8?"buffer"===n?new e.Buffer(r):new e.Buffer(r).toString(n):r}}}),ne=ut({"node_modules/memfs/lib/Dirent.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Dirent=void 0;var e=ct(),r=re(),{S_IFMT:n,S_IFDIR:i,S_IFREG:o,S_IFBLK:s,S_IFCHR:a,S_IFLNK:u,S_IFIFO:c,S_IFSOCK:l}=e.constants,f=class t{constructor(){this.name="",this.path="",this.mode=0}static build(e,n){const i=new t,{mode:o}=e.getNode();return i.name=(0,r.strToEncoding)(e.getName(),n),i.mode=o,i.path=e.getPath(),i}_checkModeProperty(t){return(this.mode&n)===t}isDirectory(){return this._checkModeProperty(i)}isFile(){return this._checkModeProperty(o)}isBlockDevice(){return this._checkModeProperty(s)}isCharacterDevice(){return this._checkModeProperty(a)}isSymbolicLink(){return this._checkModeProperty(u)}isFIFO(){return this._checkModeProperty(c)}isSocket(){return this._checkModeProperty(l)}};t.Dirent=f,t.default=f}}),ie=ut({"node_modules/path/node_modules/util/support/isBufferBrowser.js"(t,e){e.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}}}),oe=ut({"node_modules/path/node_modules/inherits/inherits_browser.js"(t,e){"function"==typeof Object.create?e.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}}),se=ut({"node_modules/path/node_modules/util/util.js"(t){var e=/%[sdj%]/g;t.format=function(t){if(!d(t)){for(var r=[],n=0;n=s)return t;switch(t){case"%s":return String(o[n++]);case"%d":return Number(o[n++]);case"%j":try{return JSON.stringify(o[n++])}catch(t){return"[Circular]"}default:return t}})),u=o[n];n=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),f(r)?n.showHidden=r:r&&t._extend(n,r),m(n.showHidden)&&(n.showHidden=!1),m(n.depth)&&(n.depth=2),m(n.colors)&&(n.colors=!1),m(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=o),a(n,e,n.depth)}function o(t,e){var r=i.styles[e];return r?"["+i.colors[r][0]+"m"+t+"["+i.colors[r][1]+"m":t}function s(t,e){return t}function a(e,r,n){if(e.customInspect&&r&&w(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,e);return d(i)||(i=a(e,i,n)),i}var o=function(t,e){if(m(e))return t.stylize("undefined","undefined");if(d(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}return p(e)?t.stylize(""+e,"number"):f(e)?t.stylize(""+e,"boolean"):h(e)?t.stylize("null","null"):void 0}(e,r);if(o)return o;var s=Object.keys(r),y=function(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(r)),v(r)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return u(r);if(0===s.length){if(w(r)){var x=r.name?": "+r.name:"";return e.stylize("[Function"+x+"]","special")}if(g(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(b(r))return e.stylize(Date.prototype.toString.call(r),"date");if(v(r))return u(r)}var E,A="",D=!1,S=["{","}"];return l(r)&&(D=!0,S=["[","]"]),w(r)&&(A=" [Function"+(r.name?": "+r.name:"")+"]"),g(r)&&(A=" "+RegExp.prototype.toString.call(r)),b(r)&&(A=" "+Date.prototype.toUTCString.call(r)),v(r)&&(A=" "+u(r)),0!==s.length||D&&0!=r.length?n<0?g(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),E=D?function(t,e,r,n,i){for(var o=[],s=0,a=e.length;s60?r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1]:r[0]+e+" "+t.join(", ")+" "+r[1]}(E,A,S)):S[0]+A+S[1]}function u(t){return"["+Error.prototype.toString.call(t)+"]"}function c(t,e,r,n,i,o){var s,u,c;if((c=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?u=c.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):c.set&&(u=t.stylize("[Setter]","special")),_(n,i)||(s="["+i+"]"),u||(t.seen.indexOf(c.value)<0?(u=h(r)?a(t,c.value,null):a(t,c.value,r-1)).indexOf("\n")>-1&&(u=o?u.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+u.split("\n").map((function(t){return" "+t})).join("\n")):u=t.stylize("[Circular]","special")),m(s)){if(o&&i.match(/^\d+$/))return u;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=t.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=t.stylize(s,"string"))}return s+": "+u}function l(t){return Array.isArray(t)}function f(t){return"boolean"==typeof t}function h(t){return null===t}function p(t){return"number"==typeof t}function d(t){return"string"==typeof t}function m(t){return void 0===t}function g(t){return y(t)&&"[object RegExp]"===x(t)}function y(t){return"object"==typeof t&&null!==t}function b(t){return y(t)&&"[object Date]"===x(t)}function v(t){return y(t)&&("[object Error]"===x(t)||t instanceof Error)}function w(t){return"function"==typeof t}function x(t){return Object.prototype.toString.call(t)}function E(t){return t<10?"0"+t.toString(10):t.toString(10)}t.debuglog=function(e){if(m(r)&&(r=W.env.NODE_DEBUG||""),e=e.toUpperCase(),!n[e])if(new RegExp("\\b"+e+"\\b","i").test(r)){var i=W.pid;n[e]=function(){var r=t.format.apply(t,arguments);console.error("%s %d: %s",e,i,r)}}else n[e]=function(){};return n[e]},t.inspect=i,i.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},i.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=l,t.isBoolean=f,t.isNull=h,t.isNullOrUndefined=function(t){return null==t},t.isNumber=p,t.isString=d,t.isSymbol=function(t){return"symbol"==typeof t},t.isUndefined=m,t.isRegExp=g,t.isObject=y,t.isDate=b,t.isError=v,t.isFunction=w,t.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},t.isBuffer=ie();var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function _(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.log=function(){console.log("%s - %s",function(){var t=new Date,e=[E(t.getHours()),E(t.getMinutes()),E(t.getSeconds())].join(":");return[t.getDate(),A[t.getMonth()],e].join(" ")}(),t.format.apply(t,arguments))},t.inherits=oe(),t._extend=function(t,e){if(!e||!y(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t}}}),ae=ut({"node_modules/path/path.js"(t,e){var r="win32"===W.platform,n=se();function i(t,e){for(var r=[],n=0;n=0&&!t[n];n--);return 0===r&&n===e?t:r>n?[]:t.slice(r,n+1)}var s=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,a=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,u={};function c(t){var e=s.exec(t),r=(e[1]||"")+(e[2]||""),n=e[3]||"",i=a.exec(n);return[r,i[1],i[2],i[3]]}function l(t){var e=s.exec(t),r=e[1]||"",n=!!r&&":"!==r[1];return{device:r,isUnc:n,isAbsolute:n||!!e[2],tail:e[3]}}function f(t){return"\\\\"+t.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}u.resolve=function(){for(var t="",e="",r=!1,o=arguments.length-1;o>=-1;o--){var s;if(o>=0?s=arguments[o]:t?(s=W.env["="+t])&&s.substr(0,3).toLowerCase()===t.toLowerCase()+"\\"||(s=t+"\\"):s=W.cwd(),!n.isString(s))throw new TypeError("Arguments to path.resolve must be strings");if(s){var a=l(s),u=a.device,c=a.isUnc,h=a.isAbsolute,p=a.tail;if((!u||!t||u.toLowerCase()===t.toLowerCase())&&(t||(t=u),r||(e=p+"\\"+e,r=h),t&&r))break}}return c&&(t=f(t)),t+(r?"\\":"")+(e=i(e.split(/[\\\/]+/),!r).join("\\"))||"."},u.normalize=function(t){var e=l(t),r=e.device,n=e.isUnc,o=e.isAbsolute,s=e.tail,a=/[\\\/]$/.test(s);return(s=i(s.split(/[\\\/]+/),!o).join("\\"))||o||(s="."),s&&a&&(s+="\\"),n&&(r=f(r)),r+(o?"\\":"")+s},u.isAbsolute=function(t){return l(t).isAbsolute},u.join=function(){for(var t=[],e=0;e=-1&&!e;r--){var o=r>=0?arguments[r]:W.cwd();if(!n.isString(o))throw new TypeError("Arguments to path.resolve must be strings");o&&(t=o+"/"+t,e="/"===o[0])}return(e?"/":"")+(t=i(t.split("/"),!e).join("/"))||"."},p.normalize=function(t){var e=p.isAbsolute(t),r=t&&"/"===t[t.length-1];return(t=i(t.split("/"),!e).join("/"))||e||(t="."),t&&r&&(t+="/"),(e?"/":"")+t},p.isAbsolute=function(t){return"/"===t.charAt(0)},p.join=function(){for(var t="",e=0;e1)for(var r=1;r{if(void 0!==W)return W;try{return ue()}catch(t){return}})()||{};return t.cwd||(t.cwd=()=>"/"),t.emitWarning||(t.emitWarning=(t,e)=>{console.warn(`${e}${e?": ":""}${t}`)}),t.env||(t.env={}),t}Object.defineProperty(t,"__esModule",{value:!0}),t.createProcess=void 0,t.createProcess=e,t.default=e()}}),le=ut({"node_modules/events/events.js"(t,e){var r,n="object"==typeof Reflect?Reflect:null,i=n&&"function"==typeof n.apply?n.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)};r=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var o=Number.isNaN||function(t){return t!=t};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(t,e){return new Promise((function(r,n){function i(r){t.removeListener(e,o),n(r)}function o(){"function"==typeof t.removeListener&&t.removeListener("error",i),r([].slice.call(arguments))}g(t,e,o,{once:!0}),"error"!==e&&function(t,e,r){"function"==typeof t.on&&g(t,"error",e,{once:!0})}(t,i)}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var a=10;function u(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function c(t){return void 0===t._maxListeners?s.defaultMaxListeners:t._maxListeners}function l(t,e,r,n){var i,o,s,a;if(u(r),void 0===(o=t._events)?(o=t._events=Object.create(null),t._eventsCount=0):(void 0!==o.newListener&&(t.emit("newListener",e,r.listener?r.listener:r),o=t._events),s=o[e]),void 0===s)s=o[e]=r,++t._eventsCount;else if("function"==typeof s?s=o[e]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),(i=c(t))>0&&s.length>i&&!s.warned){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=t,l.type=e,l.count=s.length,a=l,console&&console.warn&&console.warn(a)}return t}function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},i=f.bind(n);return i.listener=r,n.wrapFn=i,i}function p(t,e,r){var n=t._events;if(void 0===n)return[];var i=n[e];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(t){for(var e=new Array(t.length),r=0;r0&&(s=e[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var u=o[t];if(void 0===u)return!1;if("function"==typeof u)i(u,this,e);else{var c=u.length,l=m(u,c);for(r=0;r=0;o--)if(r[o]===e||r[o].listener===e){s=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(t,e){for(;e+1=0;n--)this.removeListener(t,e[n]);return this},s.prototype.listeners=function(t){return p(this,t,!0)},s.prototype.rawListeners=function(t){return p(this,t,!1)},s.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):d.call(t,e)},s.prototype.listenerCount=d,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}}}),fe=ut({"node_modules/memfs/lib/node.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.File=t.Link=t.Node=t.SEP=void 0;var e=ce(),r=dt(),n=ct(),i=le(),o=lt(),{S_IFMT:s,S_IFDIR:a,S_IFREG:u,S_IFLNK:c,O_APPEND:l}=n.constants,f=()=>{var t,r;return null!==(r=null===(t=e.default.getuid)||void 0===t?void 0:t.call(e.default))&&void 0!==r?r:0},h=()=>{var t,r;return null!==(r=null===(t=e.default.getgid)||void 0===t?void 0:t.call(e.default))&&void 0!==r?r:0};t.SEP="/";var p=class extends i.EventEmitter{constructor(t,e=438){super(),this._uid=f(),this._gid=h(),this._atime=new Date,this._mtime=new Date,this._ctime=new Date,this._perm=438,this.mode=u,this._nlink=1,this._perm=e,this.mode|=e,this.ino=t}set ctime(t){this._ctime=t}get ctime(){return this._ctime}set uid(t){this._uid=t,this.ctime=new Date}get uid(){return this._uid}set gid(t){this._gid=t,this.ctime=new Date}get gid(){return this._gid}set atime(t){this._atime=t,this.ctime=new Date}get atime(){return this._atime}set mtime(t){this._mtime=t,this.ctime=new Date}get mtime(){return this._mtime}set perm(t){this._perm=t,this.ctime=new Date}get perm(){return this._perm}set nlink(t){this._nlink=t,this.ctime=new Date}get nlink(){return this._nlink}getString(t="utf8"){return this.atime=new Date,this.getBuffer().toString(t)}setString(t){this.buf=(0,r.bufferFrom)(t,"utf8"),this.touch()}getBuffer(){return this.atime=new Date,this.buf||this.setBuffer((0,r.bufferAllocUnsafe)(0)),(0,r.bufferFrom)(this.buf)}setBuffer(t){this.buf=(0,r.bufferFrom)(t),this.touch()}getSize(){return this.buf?this.buf.length:0}setModeProperty(t){this.mode=this.mode&~s|t}setIsFile(){this.setModeProperty(u)}setIsDirectory(){this.setModeProperty(a)}setIsSymlink(){this.setModeProperty(c)}isFile(){return(this.mode&s)===u}isDirectory(){return(this.mode&s)===a}isSymlink(){return(this.mode&s)===c}makeSymlink(t){this.symlink=t,this.setIsSymlink()}write(t,e=0,n=t.length,i=0){if(this.buf||(this.buf=(0,r.bufferAllocUnsafe)(0)),i+n>this.buf.length){const t=(0,r.bufferAllocUnsafe)(i+n);this.buf.copy(t,0,0,this.buf.length),this.buf=t}return t.copy(this.buf,i,e,e+n),this.touch(),n}read(t,e=0,n=t.byteLength,i=0){this.atime=new Date,this.buf||(this.buf=(0,r.bufferAllocUnsafe)(0));let o=n;o>t.byteLength&&(o=t.byteLength),o+i>this.buf.length&&(o=this.buf.length-i);const s=t instanceof r.Buffer?t:r.Buffer.from(t.buffer);return this.buf.copy(s,e,i,i+o),o}truncate(t=0){if(t)if(this.buf||(this.buf=(0,r.bufferAllocUnsafe)(0)),t<=this.buf.length)this.buf=this.buf.slice(0,t);else{const e=(0,r.bufferAllocUnsafe)(t);this.buf.copy(e),e.fill(0,this.buf.length),this.buf=e}else this.buf=(0,r.bufferAllocUnsafe)(0);this.touch()}chmod(t){this.perm=t,this.mode=-512&this.mode|t,this.touch()}chown(t,e){this.uid=t,this.gid=e,this.touch()}touch(){this.mtime=new Date,this.emit("change",this)}canRead(t=f(),e=h()){return!!(4&this.perm)||!!(e===this.gid&&32&this.perm)||!!(t===this.uid&&256&this.perm)}canWrite(t=f(),e=h()){return!!(2&this.perm)||!!(e===this.gid&&16&this.perm)||!!(t===this.uid&&128&this.perm)}del(){this.emit("delete",this)}toJSON(){return{ino:this.ino,uid:this.uid,gid:this.gid,atime:this.atime.getTime(),mtime:this.mtime.getTime(),ctime:this.ctime.getTime(),perm:this.perm,mode:this.mode,nlink:this.nlink,symlink:this.symlink,data:this.getString()}}};t.Node=p;var d=class e extends i.EventEmitter{get steps(){return this._steps}set steps(t){this._steps=t;for(const[t,e]of this.children.entries())"."!==t&&".."!==t&&(null==e||e.syncSteps())}constructor(t,e,r){super(),this.children=new Map,this._steps=[],this.ino=0,this.length=0,this.vol=t,this.parent=e,this.name=r,this.syncSteps()}setNode(t){this.node=t,this.ino=t.ino}getNode(){return this.node}createChild(t,r=this.vol.createNode()){const n=new e(this.vol,this,t);return n.setNode(r),r.isDirectory()&&(n.children.set(".",n),n.getNode().nlink++),this.setChild(t,n),n}setChild(t,r=new e(this.vol,this,t)){return this.children.set(t,r),r.parent=this,this.length++,r.getNode().isDirectory()&&(r.children.set("..",this),this.getNode().nlink++),this.getNode().mtime=new Date,this.emit("child:add",r,this),r}deleteChild(t){t.getNode().isDirectory()&&(t.children.delete(".."),this.getNode().nlink--),this.children.delete(t.getName()),this.length--,this.getNode().mtime=new Date,this.emit("child:delete",t,this)}getChild(t){return this.getNode().mtime=new Date,this.children.get(t)}getPath(){return this.steps.join(t.SEP)}getName(){return this.steps[this.steps.length-1]}walk(t,e=t.length,r=0){if(r>=t.length)return this;if(r>=e)return this;const n=t[r],i=this.getChild(n);return i?i.walk(t,e,r+1):null}toJSON(){return{steps:this.steps,ino:this.ino,children:Array.from(this.children.keys())}}syncSteps(){this.steps=this.parent?this.parent.steps.concat([this.name]):[this.name]}};t.Link=d,t.File=class{constructor(t,e,r,n){this.link=t,this.node=e,this.flags=r,this.fd=n,this.position=0,this.flags&l&&(this.position=this.getSize())}getString(t="utf8"){return this.node.getString()}setString(t){this.node.setString(t)}getBuffer(){return this.node.getBuffer()}setBuffer(t){this.node.setBuffer(t)}getSize(){return this.node.getSize()}truncate(t){this.node.truncate(t)}seekTo(t){this.position=t}stats(){return o.default.build(this.node)}write(t,e=0,r=t.length,n){"number"!=typeof n&&(n=this.position);const i=this.node.write(t,e,r,n);return this.position=n+i,i}read(t,e=0,r=t.byteLength,n){"number"!=typeof n&&(n=this.position);const i=this.node.read(t,e,r,n);return this.position=n+i,i}chmod(t){this.node.chmod(t)}chown(t,e){this.node.chown(t,e)}}}}),he=ut({"node_modules/memfs/lib/setImmediate.js"(t){var e;Object.defineProperty(t,"__esModule",{value:!0}),e="function"==typeof setImmediate?setImmediate.bind("undefined"!=typeof globalThis?globalThis:global):setTimeout.bind("undefined"!=typeof globalThis?globalThis:global),t.default=e}}),pe=ut({"node_modules/memfs/lib/queueMicrotask.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.default="function"==typeof queueMicrotask?queueMicrotask:t=>Promise.resolve().then((()=>t())).catch((()=>{}))}}),de=ut({"node_modules/memfs/lib/setTimeoutUnref.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(t,e,r){const n=setTimeout.apply("undefined"!=typeof globalThis?globalThis:global,arguments);return n&&"object"==typeof n&&"function"==typeof n.unref&&n.unref(),n}}}),me=ut({"node_modules/emitter-component/index.js"(t,e){function r(t){if(t)return function(t){for(var e in r.prototype)t[e]=r.prototype[e];return t}(t)}e.exports=r,r.prototype.on=r.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks[t]=this._callbacks[t]||[]).push(e),this},r.prototype.once=function(t,e){var r=this;function n(){r.off(t,n),e.apply(this,arguments)}return this._callbacks=this._callbacks||{},n.fn=e,this.on(t,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,n=this._callbacks[t];if(!n)return this;if(1==arguments.length)return delete this._callbacks[t],this;for(var i=0;i{e(t)})),!1}return!0}function c(t){return t>>>0===t}function l(t){if(!c(t))throw TypeError(e.ERRSTR.FD)}function f(t,e=i.ENCODING_UTF8){return n.Buffer.isBuffer(t)?t:t instanceof Uint8Array?(0,o.bufferFrom)(t):(0,o.bufferFrom)(String(t),e)}t.isWin="win32"===W.platform,t.promisify=function(t,e,r=(t=>t)){return(...n)=>new Promise(((i,o)=>{t[e].bind(t)(...n,((t,e)=>t?o(t):i(r(e))))}))},t.validateCallback=a,t.modeToNumber=function t(r,n){const i=function(e,r){return"number"==typeof e?e:"string"==typeof e?parseInt(e,8):r?t(r):void 0}(r,n);if("number"!=typeof i||isNaN(i))throw new TypeError(e.ERRSTR.MODE_INT);return i},t.nullCheck=u,t.pathToFilename=function(t){if("string"!=typeof t&&!n.Buffer.isBuffer(t)){try{if(!(t instanceof at("url").URL))throw new TypeError(e.ERRSTR.PATH_STR)}catch(t){throw new TypeError(e.ERRSTR.PATH_STR)}t=function(t){if(""!==t.hostname)throw new r.TypeError("ERR_INVALID_FILE_URL_HOST",W.platform);const e=t.pathname;for(let t=0;t '${n}'`),t){case"ENOENT":return`ENOENT: no such file or directory, ${e}${i}`;case"EBADF":return`EBADF: bad file descriptor, ${e}${i}`;case"EINVAL":return`EINVAL: invalid argument, ${e}${i}`;case"EPERM":return`EPERM: operation not permitted, ${e}${i}`;case"EPROTO":return`EPROTO: protocol error, ${e}${i}`;case"EEXIST":return`EEXIST: file already exists, ${e}${i}`;case"ENOTDIR":return`ENOTDIR: not a directory, ${e}${i}`;case"EISDIR":return`EISDIR: illegal operation on a directory, ${e}${i}`;case"EACCES":return`EACCES: permission denied, ${e}${i}`;case"ENOTEMPTY":return`ENOTEMPTY: directory not empty, ${e}${i}`;case"EMFILE":return`EMFILE: too many open files, ${e}${i}`;case"ENOSYS":return`ENOSYS: function not implemented, ${e}${i}`;case"ERR_FS_EISDIR":return`[ERR_FS_EISDIR]: Path is a directory: ${e} returned EISDIR (is a directory) ${r}`;case"ERR_OUT_OF_RANGE":return`[ERR_OUT_OF_RANGE]: value out of range, ${e}${i}`;default:return`${t}: error occurred, ${e}${i}`}}(t,e,r,n));return o.code=t,r&&(o.path=r),o},t.genRndStr6=function t(){const e=(Math.random()+1).toString(36).substring(2,8);return 6===e.length?e:t()},t.flagsToNumber=function(t){if("number"==typeof t)return t;if("string"==typeof t){const r=e.FLAGS[t];if(void 0!==r)return r}throw new r.TypeError("ERR_INVALID_OPT_VALUE","flags",t)},t.isFd=c,t.validateFd=l,t.dataToBuffer=f,t.bufToUint8=t=>new Uint8Array(t.buffer,t.byteOffset,t.byteLength),t.getWriteArgs=(t,e,r,n,i,o)=>{l(t);let s,u,c,h=0,p=null;const d=typeof e,m=typeof r,g=typeof n,y=typeof i;"string"!==d?"function"===m?c=r:"function"===g?(h=0|r,c=n):"function"===y?(h=0|r,s=n,c=i):(h=0|r,s=n,p=i,c=o):"function"===m?c=r:"function"===g?(p=r,c=n):"function"===y&&(p=r,u=n,c=i);const b=f(e,u);return"string"!==d?void 0===s&&(s=b.length):(h=0,s=b.length),[t,"string"===d,b,h,s,p,a(c)]},t.getWriteSyncArgs=(t,e,r,n,i)=>{let o,s,a,u;l(t);const c="string"!=typeof e;c?(s=0|(r||0),a=n,u=i):(u=r,o=n);const h=f(e,o);return c?void 0===a&&(a=h.length):(s=0,a=h.length),[t,h,s||0,a,u]},t.bufferToEncoding=function(t,e){return e&&"buffer"!==e?t.toString(e):t};var h=(e,r)=>{let n=e[r];return r>0&&("/"===n||t.isWin&&"\\"===n)};t.unixify=(e,r=!0)=>t.isWin?(e=((t,e)=>{if("string"!=typeof t)throw new TypeError("expected a string");return t=t.replace(/[\\\/]+/g,"/"),!1!==e&&(t=(t=>{let e=t.length-1;if(e<2)return t;for(;h(t,e);)e--;return t.substr(0,e+1)})(t)),t})(e,r)).replace(/^([a-zA-Z]+:|\.\/)/,""):e}}),ve=ut({"node_modules/memfs/lib/node/FileHandle.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.FileHandle=void 0;var e=be();t.FileHandle=class{constructor(t,e){this.fs=t,this.fd=e}appendFile(t,r){return(0,e.promisify)(this.fs,"appendFile")(this.fd,t,r)}chmod(t){return(0,e.promisify)(this.fs,"fchmod")(this.fd,t)}chown(t,r){return(0,e.promisify)(this.fs,"fchown")(this.fd,t,r)}close(){return(0,e.promisify)(this.fs,"close")(this.fd)}datasync(){return(0,e.promisify)(this.fs,"fdatasync")(this.fd)}read(t,r,n,i){return(0,e.promisify)(this.fs,"read",(e=>({bytesRead:e,buffer:t})))(this.fd,t,r,n,i)}readv(t,r){return(0,e.promisify)(this.fs,"readv",(e=>({bytesRead:e,buffers:t})))(this.fd,t,r)}readFile(t){return(0,e.promisify)(this.fs,"readFile")(this.fd,t)}stat(t){return(0,e.promisify)(this.fs,"fstat")(this.fd,t)}sync(){return(0,e.promisify)(this.fs,"fsync")(this.fd)}truncate(t){return(0,e.promisify)(this.fs,"ftruncate")(this.fd,t)}utimes(t,r){return(0,e.promisify)(this.fs,"futimes")(this.fd,t,r)}write(t,r,n,i){return(0,e.promisify)(this.fs,"write",(e=>({bytesWritten:e,buffer:t})))(this.fd,t,r,n,i)}writev(t,r){return(0,e.promisify)(this.fs,"writev",(e=>({bytesWritten:e,buffers:t})))(this.fd,t,r)}writeFile(t,r){return(0,e.promisify)(this.fs,"writeFile")(this.fd,t,r)}}}}),we=ut({"node_modules/memfs/lib/node/FsPromises.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.FsPromises=void 0;var e=be(),r=ct();t.FsPromises=class{constructor(t,n){this.fs=t,this.FileHandle=n,this.constants=r.constants,this.cp=(0,e.promisify)(this.fs,"cp"),this.opendir=(0,e.promisify)(this.fs,"opendir"),this.statfs=(0,e.promisify)(this.fs,"statfs"),this.lutimes=(0,e.promisify)(this.fs,"lutimes"),this.access=(0,e.promisify)(this.fs,"access"),this.chmod=(0,e.promisify)(this.fs,"chmod"),this.chown=(0,e.promisify)(this.fs,"chown"),this.copyFile=(0,e.promisify)(this.fs,"copyFile"),this.lchmod=(0,e.promisify)(this.fs,"lchmod"),this.lchown=(0,e.promisify)(this.fs,"lchown"),this.link=(0,e.promisify)(this.fs,"link"),this.lstat=(0,e.promisify)(this.fs,"lstat"),this.mkdir=(0,e.promisify)(this.fs,"mkdir"),this.mkdtemp=(0,e.promisify)(this.fs,"mkdtemp"),this.readdir=(0,e.promisify)(this.fs,"readdir"),this.readlink=(0,e.promisify)(this.fs,"readlink"),this.realpath=(0,e.promisify)(this.fs,"realpath"),this.rename=(0,e.promisify)(this.fs,"rename"),this.rmdir=(0,e.promisify)(this.fs,"rmdir"),this.rm=(0,e.promisify)(this.fs,"rm"),this.stat=(0,e.promisify)(this.fs,"stat"),this.symlink=(0,e.promisify)(this.fs,"symlink"),this.truncate=(0,e.promisify)(this.fs,"truncate"),this.unlink=(0,e.promisify)(this.fs,"unlink"),this.utimes=(0,e.promisify)(this.fs,"utimes"),this.readFile=(t,r)=>(0,e.promisify)(this.fs,"readFile")(t instanceof this.FileHandle?t.fd:t,r),this.appendFile=(t,r,n)=>(0,e.promisify)(this.fs,"appendFile")(t instanceof this.FileHandle?t.fd:t,r,n),this.open=(t,r="r",n)=>(0,e.promisify)(this.fs,"open",(t=>new this.FileHandle(this.fs,t)))(t,r,n),this.writeFile=(t,r,n)=>(0,e.promisify)(this.fs,"writeFile")(t instanceof this.FileHandle?t.fd:t,r,n),this.watch=()=>{throw new Error("Not implemented")}}}}}),xe=ut({"node_modules/memfs/lib/json-joy/util/print/printTree.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.printTree=void 0,t.printTree=(t="",e)=>{e=e.filter(Boolean);let r="";for(let n=0;n=e.length-1,o=e[n];if(!o)continue;const s=o(t+(i?" ":"│")+" ");r+=`\n${t}${s?i?"└─":"├─":"│ "} ${s}`}return r}}}),Ee=ut({"node_modules/memfs/lib/node-to-fsa/util.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.newNotAllowedError=t.newTypeMismatchError=t.newNotFoundError=t.assertCanWrite=t.assertName=t.basename=t.ctx=void 0,t.ctx=(t={})=>Object.assign({separator:"/",syncHandleAllowed:!1,mode:"read"},t),t.basename=(t,e)=>{t[t.length-1]===e&&(t=t.slice(0,-1));const r=t.lastIndexOf(e);return-1===r?t:t.slice(r+1)};var e=/^(\.{1,2})$|^(.*([\/\\]).*)$/;t.assertName=(t,r,n)=>{if(!t||e.test(t))throw new TypeError(`Failed to execute '${r}' on '${n}': Name is not allowed.`)},t.assertCanWrite=t=>{if("readwrite"!==t)throw new DOMException("The request is not allowed by the user agent or the platform in the current context.","NotAllowedError")},t.newNotFoundError=()=>new DOMException("A requested file or directory could not be found at the time an operation was processed.","NotFoundError"),t.newTypeMismatchError=()=>new DOMException("The path supplied exists, but was not an entry of requested type.","TypeMismatchError"),t.newNotAllowedError=()=>new DOMException("Permission not granted.","NotAllowedError")}}),Ae=ut({"node_modules/memfs/lib/print/index.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.toTreeSync=void 0;var e=xe(),r=Ee();t.toTreeSync=(n,i={})=>{var o;const s=i.separator||"/";let a=i.dir||s;a[a.length-1]!==s&&(a+=s);const u=i.tab||"",c=null!==(o=i.depth)&&void 0!==o?o:10;let l=" (...)";if(c>0){const r=n.readdirSync(a,{withFileTypes:!0});l=(0,e.printTree)(u,r.map((e=>r=>e.isDirectory()?(0,t.toTreeSync)(n,{dir:a+e.name,depth:c-1,tab:r}):e.isSymbolicLink()?e.name+" → "+n.readlinkSync(a+e.name):""+e.name)))}return(0,r.basename)(a,s)+s+l}}}),_e=ut({"node_modules/memfs/lib/node/options.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.getWriteFileOptions=t.writeFileDefaults=t.getRealpathOptsAndCb=t.getRealpathOptions=t.getStatOptsAndCb=t.getStatOptions=t.getAppendFileOptsAndCb=t.getAppendFileOpts=t.getReaddirOptsAndCb=t.getReaddirOptions=t.getReadFileOptions=t.getRmOptsAndCb=t.getRmdirOptions=t.getDefaultOptsAndCb=t.getDefaultOpts=t.optsDefaults=t.optsAndCbGenerator=t.optsGenerator=t.getOptions=t.getMkdirOptions=void 0;var e=ye(),r=re(),n=be(),i={mode:511,recursive:!1};function o(t,e){let n;if(!e)return t;{const r=typeof e;switch(r){case"string":n=Object.assign({},t,{encoding:e});break;case"object":n=Object.assign({},t,e);break;default:throw TypeError((t=>`Expected options to be either an object or a string, but got ${t} instead`)(r))}}return"buffer"!==n.encoding&&(0,r.assertEncoding)(n.encoding),n}function s(t){return e=>o(t,e)}function a(t){return(e,r)=>"function"==typeof e?[t(),e]:[t(e),(0,n.validateCallback)(r)]}t.getMkdirOptions=t=>"number"==typeof t?Object.assign({},i,{mode:t}):Object.assign({},i,t),t.getOptions=o,t.optsGenerator=s,t.optsAndCbGenerator=a,t.optsDefaults={encoding:"utf8"},t.getDefaultOpts=s(t.optsDefaults),t.getDefaultOptsAndCb=a(t.getDefaultOpts);var u={recursive:!1};t.getRmdirOptions=t=>Object.assign({},u,t);var c=s(t.optsDefaults);t.getRmOptsAndCb=a(c),t.getReadFileOptions=s({flag:"r"}),t.getReaddirOptions=s({encoding:"utf8",recursive:!1,withFileTypes:!1}),t.getReaddirOptsAndCb=a(t.getReaddirOptions);var l={encoding:"utf8",mode:438,flag:e.FLAGS[e.FLAGS.a]};t.getAppendFileOpts=s(l),t.getAppendFileOptsAndCb=a(t.getAppendFileOpts);var f={bigint:!1};t.getStatOptions=(t={})=>Object.assign({},f,t),t.getStatOptsAndCb=(e,r)=>"function"==typeof e?[(0,t.getStatOptions)(),e]:[(0,t.getStatOptions)(e),(0,n.validateCallback)(r)];var h=t.optsDefaults;t.getRealpathOptions=s(h),t.getRealpathOptsAndCb=a(t.getRealpathOptions),t.writeFileDefaults={encoding:"utf8",mode:438,flag:e.FLAGS[e.FLAGS.w]},t.getWriteFileOptions=s(t.writeFileDefaults)}}),De=ut({"node_modules/memfs/lib/volume.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.FSWatcher=t.StatWatcher=t.Volume=t.toUnixTimestamp=t.dataToStr=t.pathToSteps=t.filenameToSteps=void 0;var e=ae(),r=fe(),n=lt(),i=ne(),o=dt(),s=he(),a=pe(),u=ce(),c=de(),l=ge(),f=ct(),h=le(),p=re(),d=ve(),m=Nt(),g=we(),y=Ae(),b=ye(),v=_e(),w=be(),x=e.resolve,{O_RDONLY:E,O_WRONLY:A,O_RDWR:_,O_CREAT:D,O_EXCL:S,O_TRUNC:k,O_APPEND:C,O_DIRECTORY:F,O_SYMLINK:O,F_OK:j,COPYFILE_EXCL:T,COPYFILE_FICLONE_FORCE:B}=f.constants,{sep:R,relative:P,join:N,dirname:$}=e.posix?e.posix:e,M="ENOENT",I="EBADF",L="EEXIST",z="ENOTDIR",U="EISDIR",W=(t,e=u.default.cwd())=>x(e,t);if(w.isWin){const t=W;W=(e,r)=>(0,w.unixify)(t(e,r))}function G(t,e){const r=W(t,e).substring(1);return r?r.split(R):[]}function q(t){if("string"==typeof t&&+t==t)return+t;if(t instanceof Date)return t.getTime()/1e3;if(isFinite(t))return t<0?Date.now()/1e3:t;throw new Error("Cannot parse time: "+t)}function H(t){if("number"!=typeof t)throw TypeError(b.ERRSTR.UID)}function V(t){if("number"!=typeof t)throw TypeError(b.ERRSTR.GID)}t.filenameToSteps=G,t.pathToSteps=function(t){return G((0,w.pathToFilename)(t))},t.dataToStr=function(t,e=p.ENCODING_UTF8){return o.Buffer.isBuffer(t)?t.toString(e):t instanceof Uint8Array?(0,o.bufferFrom)(t).toString(e):String(t)},t.toUnixTimestamp=q;var Y=()=>{throw new Error("Not implemented")},K=class t{static fromJSON(e,r){const n=new t;return n.fromJSON(e,r),n}static fromNestedJSON(e,r){const n=new t;return n.fromNestedJSON(e,r),n}get promises(){if(null===this.promisesApi)throw new Error("Promise is not supported in this environment.");return this.promisesApi}constructor(t={}){this.ino=0,this.inodes={},this.releasedInos=[],this.fds={},this.releasedFds=[],this.maxFiles=1e4,this.openFiles=0,this.promisesApi=new g.FsPromises(this,d.FileHandle),this.statWatchers={},this.cpSync=Y,this.lutimesSync=Y,this.statfsSync=Y,this.opendirSync=Y,this.cp=Y,this.lutimes=Y,this.statfs=Y,this.openAsBlob=Y,this.opendir=Y,this.props=Object.assign({Node:r.Node,Link:r.Link,File:r.File},t);const e=this.createLink();e.setNode(this.createNode(!0));const n=this;this.StatWatcher=class extends Z{constructor(){super(n)}};const i=Q;this.ReadStream=class extends i{constructor(...t){super(n,...t)}};const o=et;this.WriteStream=class extends o{constructor(...t){super(n,...t)}},this.FSWatcher=class extends rt{constructor(){super(n)}},e.setChild(".",e),e.getNode().nlink++,e.setChild("..",e),e.getNode().nlink++,this.root=e}createLink(t,e,r=!1,n){if(!t)return new this.props.Link(this,null,"");if(!e)throw new Error("createLink: name cannot be empty");return t.createChild(e,this.createNode(r,n))}deleteLink(t){const e=t.parent;return!!e&&(e.deleteChild(t),!0)}newInoNumber(){return this.releasedInos.pop()||(this.ino=(this.ino+1)%4294967295,this.ino)}newFdNumber(){const e=this.releasedFds.pop();return"number"==typeof e?e:t.fd--}createNode(t=!1,e){const r=new this.props.Node(this.newInoNumber(),e);return t&&r.setIsDirectory(),this.inodes[r.ino]=r,r}deleteNode(t){t.del(),delete this.inodes[t.ino],this.releasedInos.push(t.ino)}getLink(t){return this.root.walk(t)}getLinkOrThrow(t,e){const r=G(t),n=this.getLink(r);if(!n)throw(0,w.createError)(M,e,t);return n}getResolvedLink(t){let e="string"==typeof t?G(t):t,r=this.root,n=0;for(;n{let n;try{n=t.apply(this,e)}catch(t){return void r(t)}r(null,n)}))}_toJSON(t=this.root,e={},r,n){let i=!0,o=t.children;t.getNode().isFile()&&(o=new Map([[t.getName(),t.parent.getChild(t.getName())]]),t=t.parent);for(const s of o.keys()){if("."===s||".."===s)continue;i=!1;const o=t.getChild(s);if(!o)throw new Error("_toJSON: unexpected undefined");const a=o.getNode();if(a.isFile()){let t=o.getPath();r&&(t=P(r,t)),e[t]=n?a.getBuffer():a.getString()}else a.isDirectory()&&this._toJSON(o,e,r)}let s=t.getPath();return r&&(s=P(r,s)),s&&i&&(e[s]=null),e}toJSON(t,e={},r=!1,n=!1){const i=[];if(t){Array.isArray(t)||(t=[t]);for(const e of t){const t=(0,w.pathToFilename)(e),r=this.getResolvedLink(t);r&&i.push(r)}}else i.push(this.root);if(!i.length)return e;for(const t of i)this._toJSON(t,e,r?t.getPath():"",n);return e}fromJSON(t,e=u.default.cwd()){for(let r in t){const n=t[r];if(r=W(r,e),"string"==typeof n||n instanceof o.Buffer){const t=$(r);this.mkdirpBase(t,511),this.writeFileSync(r,n)}else this.mkdirpBase(r,511)}}fromNestedJSON(t,e){this.fromJSON(function(t){const e={};return function t(r,n){for(const i in n){const s=n[i],a=N(r,i);"string"==typeof s||s instanceof o.Buffer?e[a]=s:"object"==typeof s&&null!==s&&Object.keys(s).length>0?t(a,s):e[a]=null}}("",t),e}(t),e)}toTree(t={separator:R}){return(0,y.toTreeSync)(this,t)}reset(){this.ino=0,this.inodes={},this.releasedInos=[],this.fds={},this.releasedFds=[],this.openFiles=0,this.root=this.createLink(),this.root.setNode(this.createNode(!0))}mountSync(t,e){this.fromJSON(e,t)}openLink(t,e,r=!0){if(this.openFiles>=this.maxFiles)throw(0,w.createError)("EMFILE","open",t.getPath());let n=t;if(r&&(n=this.resolveSymlinks(t)),!n)throw(0,w.createError)(M,"open",t.getPath());const i=n.getNode();if(i.isDirectory()){if((e&(E|_|A))!==E)throw(0,w.createError)(U,"open",t.getPath())}else if(e&F)throw(0,w.createError)(z,"open",t.getPath());if(!(e&A||i.canRead()))throw(0,w.createError)("EACCES","open",t.getPath());const o=new this.props.File(t,i,e,this.newFdNumber());return this.fds[o.fd]=o,this.openFiles++,e&k&&o.truncate(),o}openFile(t,e,r,n=!0){const i=G(t);let o=n?this.getResolvedLink(i):this.getLink(i);if(o&&e&S)throw(0,w.createError)(L,"open",t);if(!o&&e&D){const t=this.getResolvedLink(i.slice(0,i.length-1));if(!t)throw(0,w.createError)(M,"open",R+i.join(R));e&D&&"number"==typeof r&&(o=this.createLink(t,i[i.length-1],!1,r))}if(o)return this.openLink(o,e,n);throw(0,w.createError)(M,"open",t)}openBase(t,e,r,n=!0){const i=this.openFile(t,e,r,n);if(!i)throw(0,w.createError)(M,"open",t);return i.fd}openSync(t,e,r=438){const n=(0,w.modeToNumber)(r),i=(0,w.pathToFilename)(t),o=(0,w.flagsToNumber)(e);return this.openBase(i,o,n,!(o&O))}open(t,e,r,n){let i=r,o=n;"function"==typeof r&&(i=438,o=r),i=i||438;const s=(0,w.modeToNumber)(i),a=(0,w.pathToFilename)(t),u=(0,w.flagsToNumber)(e);this.wrapAsync(this.openBase,[a,u,s,!(u&O)],o)}closeFile(t){this.fds[t.fd]&&(this.openFiles--,delete this.fds[t.fd],this.releasedFds.push(t.fd))}closeSync(t){(0,w.validateFd)(t);const e=this.getFileByFdOrThrow(t,"close");this.closeFile(e)}close(t,e){(0,w.validateFd)(t),this.wrapAsync(this.closeSync,[t],e)}openFileOrGetById(t,e,r){if("number"==typeof t){const e=this.fds[t];if(!e)throw(0,w.createError)(M);return e}return this.openFile((0,w.pathToFilename)(t),e,r)}readBase(t,e,r,n,i){if(e.byteLength{o&&o(null,0,e)}));(0,s.default)((()=>{try{const s=this.readBase(t,e,r,n,i);o(null,s,e)}catch(t){o(t)}}))}readvBase(t,e,r){const n=this.getFileByFdOrThrow(t);let i=null!=r?r:void 0;-1===i&&(i=void 0);let o=0;for(const t of e){const e=n.read(t,0,t.byteLength,i);if(i=void 0,o+=e,e{try{const r=this.readvBase(t,e,i);o(null,r,e)}catch(t){o(t)}}))}readvSync(t,e,r){return(0,w.validateFd)(t),this.readvBase(t,e,r)}readFileBase(t,e,r){let n;const i="number"==typeof t&&(0,w.isFd)(t);let o;if(i)o=t;else{const r=G((0,w.pathToFilename)(t)),n=this.getResolvedLink(r);if(n&&n.getNode().isDirectory())throw(0,w.createError)(U,"open",n.getPath());o=this.openSync(t,e)}try{n=(0,w.bufferToEncoding)(this.getFileByFdOrThrow(o).getBuffer(),r)}finally{i||this.closeSync(o)}return n}readFileSync(t,e){const r=(0,v.getReadFileOptions)(e),n=(0,w.flagsToNumber)(r.flag);return this.readFileBase(t,n,r.encoding)}readFile(t,e,r){const[n,i]=(0,v.optsAndCbGenerator)(v.getReadFileOptions)(e,r),o=(0,w.flagsToNumber)(n.flag);this.wrapAsync(this.readFileBase,[t,o,n.encoding],i)}writeBase(t,e,r,n,i){const o=this.getFileByFdOrThrow(t,"write");if(o.node.isSymlink())throw(0,w.createError)(I,"write",o.link.getPath());return o.write(e,r,n,-1===i||"number"!=typeof i?void 0:i)}writeSync(t,e,r,n,i){const[,o,s,a,u]=(0,w.getWriteSyncArgs)(t,e,r,n,i);return this.writeBase(t,o,s,a,u)}write(t,e,r,n,i,o){const[,a,u,c,l,f,h]=(0,w.getWriteArgs)(t,e,r,n,i,o);(0,s.default)((()=>{try{const r=this.writeBase(t,u,c,l,f);h(null,r,a?e:u)}catch(t){h(t)}}))}writevBase(t,e,r){const n=this.getFileByFdOrThrow(t);let i=null!=r?r:void 0;-1===i&&(i=void 0);let s=0;for(const t of e){const e=o.Buffer.from(t.buffer,t.byteOffset,t.byteLength),r=n.write(e,0,e.byteLength,i);if(i=void 0,s+=r,r{try{const r=this.writevBase(t,e,i);o(null,r,e)}catch(t){o(t)}}))}writevSync(t,e,r){return(0,w.validateFd)(t),this.writevBase(t,e,r)}writeFileBase(t,e,r,n){const i="number"==typeof t;let o;o=i?t:this.openBase((0,w.pathToFilename)(t),r,n);let s=0,a=e.length,u=r&C?void 0:0;try{for(;a>0;){const t=this.writeSync(o,e,s,a,u);s+=t,a-=t,void 0!==u&&(u+=t)}}finally{i||this.closeSync(o)}}writeFileSync(t,e,r){const n=(0,v.getWriteFileOptions)(r),i=(0,w.flagsToNumber)(n.flag),o=(0,w.modeToNumber)(n.mode),s=(0,w.dataToBuffer)(e,n.encoding);this.writeFileBase(t,s,i,o)}writeFile(t,e,r,n){let i=r,o=n;"function"==typeof r&&(i=v.writeFileDefaults,o=r);const s=(0,w.validateCallback)(o),a=(0,v.getWriteFileOptions)(i),u=(0,w.flagsToNumber)(a.flag),c=(0,w.modeToNumber)(a.mode),l=(0,w.dataToBuffer)(e,a.encoding);this.wrapAsync(this.writeFileBase,[t,l,u,c],s)}linkBase(t,e){const r=G(t),n=this.getLink(r);if(!n)throw(0,w.createError)(M,"link",t,e);const i=G(e),o=this.getLinkParent(i);if(!o)throw(0,w.createError)(M,"link",t,e);const s=i[i.length-1];if(o.getChild(s))throw(0,w.createError)(L,"link",t,e);const a=n.getNode();a.nlink++,o.createChild(s,a)}copyFileBase(t,e,r){const n=this.readFileSync(t);if(r&T&&this.existsSync(e))throw(0,w.createError)(L,"copyFile",t,e);if(r&B)throw(0,w.createError)("ENOSYS","copyFile",t,e);this.writeFileBase(e,n,b.FLAGS.w,438)}copyFileSync(t,e,r){const n=(0,w.pathToFilename)(t),i=(0,w.pathToFilename)(e);return this.copyFileBase(n,i,0|(r||0))}copyFile(t,e,r,n){const i=(0,w.pathToFilename)(t),o=(0,w.pathToFilename)(e);let s,a;"function"==typeof r?(s=0,a=r):(s=r,a=n),(0,w.validateCallback)(a),this.wrapAsync(this.copyFileBase,[i,o,s],a)}linkSync(t,e){const r=(0,w.pathToFilename)(t),n=(0,w.pathToFilename)(e);this.linkBase(r,n)}link(t,e,r){const n=(0,w.pathToFilename)(t),i=(0,w.pathToFilename)(e);this.wrapAsync(this.linkBase,[n,i],r)}unlinkBase(t){const e=G(t),r=this.getLink(e);if(!r)throw(0,w.createError)(M,"unlink",t);if(r.length)throw Error("Dir not empty...");this.deleteLink(r);const n=r.getNode();n.nlink--,n.nlink<=0&&this.deleteNode(n)}unlinkSync(t){const e=(0,w.pathToFilename)(t);this.unlinkBase(e)}unlink(t,e){const r=(0,w.pathToFilename)(t);this.wrapAsync(this.unlinkBase,[r],e)}symlinkBase(t,e){const r=G(e),n=this.getLinkParent(r);if(!n)throw(0,w.createError)(M,"symlink",t,e);const i=r[r.length-1];if(n.getChild(i))throw(0,w.createError)(L,"symlink",t,e);const o=n.createChild(i);return o.getNode().makeSymlink(G(t)),o}symlinkSync(t,e,r){const n=(0,w.pathToFilename)(t),i=(0,w.pathToFilename)(e);this.symlinkBase(n,i)}symlink(t,e,r,n){const i=(0,w.validateCallback)("function"==typeof r?r:n),o=(0,w.pathToFilename)(t),s=(0,w.pathToFilename)(e);this.wrapAsync(this.symlinkBase,[o,s],i)}realpathBase(t,e){const r=G(t),n=this.getResolvedLink(r);if(!n)throw(0,w.createError)(M,"realpath",t);return(0,p.strToEncoding)(n.getPath()||"/",e)}realpathSync(t,e){return this.realpathBase((0,w.pathToFilename)(t),(0,v.getRealpathOptions)(e).encoding)}realpath(t,e,r){const[n,i]=(0,v.getRealpathOptsAndCb)(e,r),o=(0,w.pathToFilename)(t);this.wrapAsync(this.realpathBase,[o,n.encoding],i)}lstatBase(t,e=!1,r=!1){const i=this.getLink(G(t));if(i)return n.default.build(i.getNode(),e);if(r)throw(0,w.createError)(M,"lstat",t)}lstatSync(t,e){const{throwIfNoEntry:r=!0,bigint:n=!1}=(0,v.getStatOptions)(e);return this.lstatBase((0,w.pathToFilename)(t),n,r)}lstat(t,e,r){const[{throwIfNoEntry:n=!0,bigint:i=!1},o]=(0,v.getStatOptsAndCb)(e,r);this.wrapAsync(this.lstatBase,[(0,w.pathToFilename)(t),i,n],o)}statBase(t,e=!1,r=!0){const i=this.getResolvedLink(G(t));if(i)return n.default.build(i.getNode(),e);if(r)throw(0,w.createError)(M,"stat",t)}statSync(t,e){const{bigint:r=!0,throwIfNoEntry:n=!0}=(0,v.getStatOptions)(e);return this.statBase((0,w.pathToFilename)(t),r,n)}stat(t,e,r){const[{bigint:n=!1,throwIfNoEntry:i=!0},o]=(0,v.getStatOptsAndCb)(e,r);this.wrapAsync(this.statBase,[(0,w.pathToFilename)(t),n,i],o)}fstatBase(t,e=!1){const r=this.getFileByFd(t);if(!r)throw(0,w.createError)(I,"fstat");return n.default.build(r.node,e)}fstatSync(t,e){return this.fstatBase(t,(0,v.getStatOptions)(e).bigint)}fstat(t,e,r){const[n,i]=(0,v.getStatOptsAndCb)(e,r);this.wrapAsync(this.fstatBase,[t,n.bigint],i)}renameBase(t,e){const r=this.getLink(G(t));if(!r)throw(0,w.createError)(M,"rename",t,e);const n=G(e),i=this.getLinkParent(n);if(!i)throw(0,w.createError)(M,"rename",t,e);const o=r.parent;o&&o.deleteChild(r);const s=n[n.length-1];r.name=s,r.steps=[...i.steps,s],i.setChild(r.getName(),r)}renameSync(t,e){const r=(0,w.pathToFilename)(t),n=(0,w.pathToFilename)(e);this.renameBase(r,n)}rename(t,e,r){const n=(0,w.pathToFilename)(t),i=(0,w.pathToFilename)(e);this.wrapAsync(this.renameBase,[n,i],r)}existsBase(t){return!!this.statBase(t)}existsSync(t){try{return this.existsBase((0,w.pathToFilename)(t))}catch(t){return!1}}exists(t,e){const r=(0,w.pathToFilename)(t);if("function"!=typeof e)throw Error(b.ERRSTR.CB);(0,s.default)((()=>{try{e(this.existsBase(r))}catch(t){e(!1)}}))}accessBase(t,e){this.getLinkOrThrow(t,"access")}accessSync(t,e=j){const r=(0,w.pathToFilename)(t);e|=0,this.accessBase(r,e)}access(t,e,r){let n,i=j;"function"!=typeof e?(i=0|e,n=(0,w.validateCallback)(r)):n=e;const o=(0,w.pathToFilename)(t);this.wrapAsync(this.accessBase,[o,i],n)}appendFileSync(t,e,r){const n=(0,v.getAppendFileOpts)(r);n.flag&&!(0,w.isFd)(t)||(n.flag="a"),this.writeFileSync(t,e,n)}appendFile(t,e,r,n){const[i,o]=(0,v.getAppendFileOptsAndCb)(r,n);i.flag&&!(0,w.isFd)(t)||(i.flag="a"),this.writeFile(t,e,i,o)}readdirBase(t,r){const n=G(t),o=this.getResolvedLink(n);if(!o)throw(0,w.createError)(M,"readdir",t);if(!o.getNode().isDirectory())throw(0,w.createError)(z,"scandir",t);const s=[];for(const t of o.children.keys()){const e=o.getChild(t);if(e&&"."!==t&&".."!==t&&(s.push(i.default.build(e,r.encoding)),r.recursive&&e.children.size)){const t=Object.assign(Object.assign({},r),{recursive:!0,withFileTypes:!0}),n=this.readdirBase(e.getPath(),t);s.push(...n)}}if(w.isWin||"buffer"===r.encoding||s.sort(((t,e)=>t.namee.name?1:0)),r.withFileTypes)return s;let a=t;return w.isWin&&(a=a.replace(/\\/g,"/")),s.map((t=>r.recursive?t.path.replace(a+e.posix.sep,""):t.name))}readdirSync(t,e){const r=(0,v.getReaddirOptions)(e),n=(0,w.pathToFilename)(t);return this.readdirBase(n,r)}readdir(t,e,r){const[n,i]=(0,v.getReaddirOptsAndCb)(e,r),o=(0,w.pathToFilename)(t);this.wrapAsync(this.readdirBase,[o,n],i)}readlinkBase(t,e){const r=this.getLinkOrThrow(t,"readlink").getNode();if(!r.isSymlink())throw(0,w.createError)("EINVAL","readlink",t);const n=R+r.symlink.join(R);return(0,p.strToEncoding)(n,e)}readlinkSync(t,e){const r=(0,v.getDefaultOpts)(e),n=(0,w.pathToFilename)(t);return this.readlinkBase(n,r.encoding)}readlink(t,e,r){const[n,i]=(0,v.getDefaultOptsAndCb)(e,r),o=(0,w.pathToFilename)(t);this.wrapAsync(this.readlinkBase,[o,n.encoding],i)}fsyncBase(t){this.getFileByFdOrThrow(t,"fsync")}fsyncSync(t){this.fsyncBase(t)}fsync(t,e){this.wrapAsync(this.fsyncBase,[t],e)}fdatasyncBase(t){this.getFileByFdOrThrow(t,"fdatasync")}fdatasyncSync(t){this.fdatasyncBase(t)}fdatasync(t,e){this.wrapAsync(this.fdatasyncBase,[t],e)}ftruncateBase(t,e){this.getFileByFdOrThrow(t,"ftruncate").truncate(e)}ftruncateSync(t,e){this.ftruncateBase(t,e)}ftruncate(t,e,r){const n="number"==typeof e?e:0,i=(0,w.validateCallback)("number"==typeof e?r:e);this.wrapAsync(this.ftruncateBase,[t,n],i)}truncateBase(t,e){const r=this.openSync(t,"r+");try{this.ftruncateSync(r,e)}finally{this.closeSync(r)}}truncateSync(t,e){if((0,w.isFd)(t))return this.ftruncateSync(t,e);this.truncateBase(t,e)}truncate(t,e,r){const n="number"==typeof e?e:0,i=(0,w.validateCallback)("number"==typeof e?r:e);if((0,w.isFd)(t))return this.ftruncate(t,n,i);this.wrapAsync(this.truncateBase,[t,n],i)}futimesBase(t,e,r){const n=this.getFileByFdOrThrow(t,"futimes").node;n.atime=new Date(1e3*e),n.mtime=new Date(1e3*r)}futimesSync(t,e,r){this.futimesBase(t,q(e),q(r))}futimes(t,e,r,n){this.wrapAsync(this.futimesBase,[t,q(e),q(r)],n)}utimesBase(t,e,r){const n=this.openSync(t,"r");try{this.futimesBase(n,e,r)}finally{this.closeSync(n)}}utimesSync(t,e,r){this.utimesBase((0,w.pathToFilename)(t),q(e),q(r))}utimes(t,e,r,n){this.wrapAsync(this.utimesBase,[(0,w.pathToFilename)(t),q(e),q(r)],n)}mkdirBase(t,e){const r=G(t);if(!r.length)throw(0,w.createError)(L,"mkdir",t);const n=this.getLinkParentAsDirOrThrow(t,"mkdir"),i=r[r.length-1];if(n.getChild(i))throw(0,w.createError)(L,"mkdir",t);n.createChild(i,this.createNode(!0,e))}mkdirpBase(t,e){const r=W(t),n=r.substring(1),i=n?n.split(R):[];let o=this.root,s=!1;for(let t=0;t1)return this.mkdtempBase(t,e,r-1);throw Error("Could not create temp dir.")}throw n}}mkdtempSync(t,e){const{encoding:r}=(0,v.getDefaultOpts)(e);if(!t||"string"!=typeof t)throw new TypeError("filename prefix is required");return(0,w.nullCheck)(t),this.mkdtempBase(t,r)}mkdtemp(t,e,r){const[{encoding:n},i]=(0,v.getDefaultOptsAndCb)(e,r);if(!t||"string"!=typeof t)throw new TypeError("filename prefix is required");(0,w.nullCheck)(t)&&this.wrapAsync(this.mkdtempBase,[t,n],i)}rmdirBase(t,e){const r=(0,v.getRmdirOptions)(e),n=this.getLinkAsDirOrThrow(t,"rmdir");if(n.length&&!r.recursive)throw(0,w.createError)("ENOTEMPTY","rmdir",t);this.deleteLink(n)}rmdirSync(t,e){this.rmdirBase((0,w.pathToFilename)(t),e)}rmdir(t,e,r){const n=(0,v.getRmdirOptions)(e),i=(0,w.validateCallback)("function"==typeof e?e:r);this.wrapAsync(this.rmdirBase,[(0,w.pathToFilename)(t),n],i)}rmBase(t,e={}){const r=this.getResolvedLink(t);if(r){if(r.getNode().isDirectory()&&!e.recursive)throw(0,w.createError)("ERR_FS_EISDIR","rm",t);this.deleteLink(r)}else if(!e.force)throw(0,w.createError)(M,"stat",t)}rmSync(t,e){this.rmBase((0,w.pathToFilename)(t),e)}rm(t,e,r){const[n,i]=(0,v.getRmOptsAndCb)(e,r);this.wrapAsync(this.rmBase,[(0,w.pathToFilename)(t),n],i)}fchmodBase(t,e){this.getFileByFdOrThrow(t,"fchmod").chmod(e)}fchmodSync(t,e){this.fchmodBase(t,(0,w.modeToNumber)(e))}fchmod(t,e,r){this.wrapAsync(this.fchmodBase,[t,(0,w.modeToNumber)(e)],r)}chmodBase(t,e){const r=this.openSync(t,"r");try{this.fchmodBase(r,e)}finally{this.closeSync(r)}}chmodSync(t,e){const r=(0,w.modeToNumber)(e),n=(0,w.pathToFilename)(t);this.chmodBase(n,r)}chmod(t,e,r){const n=(0,w.modeToNumber)(e),i=(0,w.pathToFilename)(t);this.wrapAsync(this.chmodBase,[i,n],r)}lchmodBase(t,e){const r=this.openBase(t,_,0,!1);try{this.fchmodBase(r,e)}finally{this.closeSync(r)}}lchmodSync(t,e){const r=(0,w.modeToNumber)(e),n=(0,w.pathToFilename)(t);this.lchmodBase(n,r)}lchmod(t,e,r){const n=(0,w.modeToNumber)(e),i=(0,w.pathToFilename)(t);this.wrapAsync(this.lchmodBase,[i,n],r)}fchownBase(t,e,r){this.getFileByFdOrThrow(t,"fchown").chown(e,r)}fchownSync(t,e,r){H(e),V(r),this.fchownBase(t,e,r)}fchown(t,e,r,n){H(e),V(r),this.wrapAsync(this.fchownBase,[t,e,r],n)}chownBase(t,e,r){this.getResolvedLinkOrThrow(t,"chown").getNode().chown(e,r)}chownSync(t,e,r){H(e),V(r),this.chownBase((0,w.pathToFilename)(t),e,r)}chown(t,e,r,n){H(e),V(r),this.wrapAsync(this.chownBase,[(0,w.pathToFilename)(t),e,r],n)}lchownBase(t,e,r){this.getLinkOrThrow(t,"lchown").getNode().chown(e,r)}lchownSync(t,e,r){H(e),V(r),this.lchownBase((0,w.pathToFilename)(t),e,r)}lchown(t,e,r,n){H(e),V(r),this.wrapAsync(this.lchownBase,[(0,w.pathToFilename)(t),e,r],n)}watchFile(t,e,r){const n=(0,w.pathToFilename)(t);let i=e,o=r;if("function"==typeof i&&(o=e,i=null),"function"!=typeof o)throw Error('"watchFile()" requires a listener function');let s=5007,a=!0;i&&"object"==typeof i&&("number"==typeof i.interval&&(s=i.interval),"boolean"==typeof i.persistent&&(a=i.persistent));let u=this.statWatchers[n];return u||(u=new this.StatWatcher,u.start(n,a,s),this.statWatchers[n]=u),u.addListener("change",o),u}unwatchFile(t,e){const r=(0,w.pathToFilename)(t),n=this.statWatchers[r];n&&("function"==typeof e?n.removeListener("change",e):n.removeAllListeners("change"),0===n.listenerCount("change")&&(n.stop(),delete this.statWatchers[r]))}createReadStream(t,e){return new this.ReadStream(t,e)}createWriteStream(t,e){return new this.WriteStream(t,e)}watch(t,e,r){const n=(0,w.pathToFilename)(t);let i=e;"function"==typeof e&&(r=e,i=null);let{persistent:o,recursive:s,encoding:a}=(0,v.getDefaultOpts)(i);void 0===o&&(o=!0),void 0===s&&(s=!1);const u=new this.FSWatcher;return u.start(n,o,s,a),r&&u.addListener("change",r),u}};function J(t){t.emit("stop")}t.Volume=K,K.fd=2147483647;var X,Z=class extends h.EventEmitter{constructor(t){super(),this.onInterval=()=>{try{const t=this.vol.statSync(this.filename);this.hasChanged(t)&&(this.emit("change",t,this.prev),this.prev=t)}finally{this.loop()}},this.vol=t}loop(){this.timeoutRef=this.setTimeout(this.onInterval,this.interval)}hasChanged(t){return t.mtimeMs>this.prev.mtimeMs||t.nlink!==this.prev.nlink}start(t,e=!0,r=5007){this.filename=(0,w.pathToFilename)(t),this.setTimeout=e?setTimeout.bind("undefined"!=typeof globalThis?globalThis:global):c.default,this.interval=r,this.prev=this.vol.statSync(this.filename),this.loop()}stop(){clearTimeout(this.timeoutRef),(0,a.default)((()=>{J.call(this,this)}))}};function Q(t,e,r){if(!(this instanceof Q))return new Q(t,e,r);if(this._vol=t,void 0===(r=Object.assign({},(0,v.getOptions)(r,{}))).highWaterMark&&(r.highWaterMark=65536),l.Readable.call(this,r),this.path=(0,w.pathToFilename)(e),this.fd=void 0===r.fd?null:r.fd,this.flags=void 0===r.flags?"r":r.flags,this.mode=void 0===r.mode?438:r.mode,this.start=r.start,this.end=r.end,this.autoClose=void 0===r.autoClose||r.autoClose,this.pos=void 0,this.bytesRead=0,void 0!==this.start){if("number"!=typeof this.start)throw new TypeError('"start" option must be a Number');if(void 0===this.end)this.end=1/0;else if("number"!=typeof this.end)throw new TypeError('"end" option must be a Number');if(this.start>this.end)throw new Error('"start" option must be <= "end" option');this.pos=this.start}"number"!=typeof this.fd&&this.open(),this.on("end",(function(){this.autoClose&&this.destroy&&this.destroy()}))}function tt(t){this.close()}function et(t,e,r){if(!(this instanceof et))return new et(t,e,r);if(this._vol=t,r=Object.assign({},(0,v.getOptions)(r,{})),l.Writable.call(this,r),this.path=(0,w.pathToFilename)(e),this.fd=void 0===r.fd?null:r.fd,this.flags=void 0===r.flags?"w":r.flags,this.mode=void 0===r.mode?438:r.mode,this.start=r.start,this.autoClose=void 0===r.autoClose||!!r.autoClose,this.pos=void 0,this.bytesWritten=0,this.pending=!0,void 0!==this.start){if("number"!=typeof this.start)throw new TypeError('"start" option must be a Number');if(this.start<0)throw new Error('"start" must be >= zero');this.pos=this.start}r.encoding&&this.setDefaultEncoding(r.encoding),"number"!=typeof this.fd&&this.open(),this.once("finish",(function(){this.autoClose&&this.close()}))}t.StatWatcher=Z,m.inherits(Q,l.Readable),t.ReadStream=Q,Q.prototype.open=function(){var t=this;this._vol.open(this.path,this.flags,this.mode,((e,r)=>{if(e)return t.autoClose&&t.destroy&&t.destroy(),void t.emit("error",e);t.fd=r,t.emit("open",r),t.read()}))},Q.prototype._read=function(t){if("number"!=typeof this.fd)return this.once("open",(function(){this._read(t)}));if(!this.destroyed){var e;(!X||X.length-X.used<128)&&(e=this._readableState.highWaterMark,(X=(0,o.bufferAllocUnsafe)(e)).used=0);var r=X,n=Math.min(X.length-X.used,t),i=X.used;if(void 0!==this.pos&&(n=Math.min(this.end-this.pos+1,n)),n<=0)return this.push(null);var s=this;this._vol.read(this.fd,X,X.used,n,this.pos,(function(t,e){if(t)s.autoClose&&s.destroy&&s.destroy(),s.emit("error",t);else{var n=null;e>0&&(s.bytesRead+=e,n=r.slice(i,i+e)),s.push(n)}})),void 0!==this.pos&&(this.pos+=n),X.used+=n}},Q.prototype._destroy=function(t,e){this.close((r=>{e(t||r)}))},Q.prototype.close=function(t){var e;if(t&&this.once("close",t),this.closed||"number"!=typeof this.fd)return"number"!=typeof this.fd?void this.once("open",tt):(0,a.default)((()=>this.emit("close")));"boolean"==typeof(null===(e=this._readableState)||void 0===e?void 0:e.closed)?this._readableState.closed=!0:this.closed=!0,this._vol.close(this.fd,(t=>{t?this.emit("error",t):this.emit("close")})),this.fd=null},m.inherits(et,l.Writable),t.WriteStream=et,et.prototype.open=function(){this._vol.open(this.path,this.flags,this.mode,function(t,e){if(t)return this.autoClose&&this.destroy&&this.destroy(),void this.emit("error",t);this.fd=e,this.pending=!1,this.emit("open",e)}.bind(this))},et.prototype._write=function(t,e,r){if(!(t instanceof o.Buffer||t instanceof Uint8Array))return this.emit("error",new Error("Invalid data"));if("number"!=typeof this.fd)return this.once("open",(function(){this._write(t,e,r)}));var n=this;this._vol.write(this.fd,t,0,t.length,this.pos,((t,e)=>{if(t)return n.autoClose&&n.destroy&&n.destroy(),r(t);n.bytesWritten+=e,r()})),void 0!==this.pos&&(this.pos+=t.length)},et.prototype._writev=function(t,e){if("number"!=typeof this.fd)return this.once("open",(function(){this._writev(t,e)}));const r=this,n=t.length,i=new Array(n);for(var s=0,a=0;a{if(t)return r.destroy&&r.destroy(),e(t);r.bytesWritten+=n,e()})),void 0!==this.pos&&(this.pos+=s)},et.prototype.close=function(t){var e;if(t&&this.once("close",t),this.closed||"number"!=typeof this.fd)return"number"!=typeof this.fd?void this.once("open",tt):(0,a.default)((()=>this.emit("close")));"boolean"==typeof(null===(e=this._writableState)||void 0===e?void 0:e.closed)?this._writableState.closed=!0:this.closed=!0,this._vol.close(this.fd,(t=>{t?this.emit("error",t):this.emit("close")})),this.fd=null},et.prototype._destroy=Q.prototype._destroy,et.prototype.destroySoon=et.prototype.end;var rt=class extends h.EventEmitter{constructor(t){super(),this._filename="",this._filenameEncoded="",this._recursive=!1,this._encoding=p.ENCODING_UTF8,this._listenerRemovers=new Map,this._onParentChild=t=>{t.getName()===this._getName()&&this._emit("rename")},this._emit=t=>{this.emit("change",t,this._filenameEncoded)},this._persist=()=>{this._timer=setTimeout(this._persist,1e6)},this._vol=t}_getName(){return this._steps[this._steps.length-1]}start(t,e=!0,r=!1,n=p.ENCODING_UTF8){this._filename=(0,w.pathToFilename)(t),this._steps=G(this._filename),this._filenameEncoded=(0,p.strToEncoding)(this._filename),this._recursive=r,this._encoding=n;try{this._link=this._vol.getLinkOrThrow(this._filename,"FSWatcher")}catch(t){const e=new Error(`watch ${this._filename} ${t.code}`);throw e.code=t.code,e.errno=t.code,e}const i=t=>{var e;const r=t.getPath(),n=t.getNode(),i=()=>{let t=P(this._filename,r);return t||(t=this._getName()),this.emit("change","change",t)};n.on("change",i);const o=null!==(e=this._listenerRemovers.get(n.ino))&&void 0!==e?e:[];o.push((()=>n.removeListener("change",i))),this._listenerRemovers.set(n.ino,o)},o=t=>{var e;const n=t.getNode(),s=t=>{this.emit("change","rename",P(this._filename,t.getPath())),setTimeout((()=>{i(t),o(t)}))},a=t=>{const e=t=>{const r=t.getNode().ino,n=this._listenerRemovers.get(r);n&&(n.forEach((t=>t())),this._listenerRemovers.delete(r));for(const[r,n]of t.children.entries())n&&"."!==r&&".."!==r&&e(n)};e(t),this.emit("change","rename",P(this._filename,t.getPath()))};for(const[e,r]of t.children.entries())r&&"."!==e&&".."!==e&&i(r);if(t.on("child:add",s),t.on("child:delete",a),(null!==(e=this._listenerRemovers.get(n.ino))&&void 0!==e?e:[]).push((()=>{t.removeListener("child:add",s),t.removeListener("child:delete",a)})),r)for(const[e,r]of t.children.entries())r&&"."!==e&&".."!==e&&o(r)};i(this._link),o(this._link);const s=this._link.parent;s&&(s.setMaxListeners(s.getMaxListeners()+1),s.on("child:delete",this._onParentChild)),e&&this._persist()}close(){clearTimeout(this._timer),this._listenerRemovers.forEach((t=>{t.forEach((t=>t()))})),this._listenerRemovers.clear();const t=this._link.parent;t&&t.removeListener("child:delete",this._onParentChild)}};t.FSWatcher=rt}}),Se=ut({"node_modules/memfs/lib/node/lists/fsSynchronousApiList.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.fsSynchronousApiList=void 0,t.fsSynchronousApiList=["accessSync","appendFileSync","chmodSync","chownSync","closeSync","copyFileSync","existsSync","fchmodSync","fchownSync","fdatasyncSync","fstatSync","fsyncSync","ftruncateSync","futimesSync","lchmodSync","lchownSync","linkSync","lstatSync","mkdirSync","mkdtempSync","openSync","readdirSync","readFileSync","readlinkSync","readSync","readvSync","realpathSync","renameSync","rmdirSync","rmSync","statSync","symlinkSync","truncateSync","unlinkSync","utimesSync","writeFileSync","writeSync","writevSync"]}}),ke=ut({"node_modules/memfs/lib/node/lists/fsCallbackApiList.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.fsCallbackApiList=void 0,t.fsCallbackApiList=["access","appendFile","chmod","chown","close","copyFile","createReadStream","createWriteStream","exists","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","read","readv","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","unwatchFile","utimes","watch","watchFile","write","writev","writeFile"]}}),Ce=ut({"node_modules/memfs/lib/index.js"(t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.memfs=t.fs=t.createFsFromVolume=t.vol=t.Volume=void 0;var r=lt(),n=ne(),i=De(),o=ct(),s=Se(),a=ke(),{F_OK:u,R_OK:c,W_OK:l,X_OK:f}=o.constants;function h(t){const e={F_OK:u,R_OK:c,W_OK:l,X_OK:f,constants:o.constants,Stats:r.default,Dirent:n.default};for(const r of s.fsSynchronousApiList)"function"==typeof t[r]&&(e[r]=t[r].bind(t));for(const r of a.fsCallbackApiList)"function"==typeof t[r]&&(e[r]=t[r].bind(t));return e.StatWatcher=t.StatWatcher,e.FSWatcher=t.FSWatcher,e.WriteStream=t.WriteStream,e.ReadStream=t.ReadStream,e.promises=t.promises,e._toUnixTimestamp=i.toUnixTimestamp,e.__vol=t,e}t.Volume=i.Volume,t.vol=new i.Volume,t.createFsFromVolume=h,t.fs=h(t.vol),t.memfs=(e={},r="/")=>{const n=t.Volume.fromNestedJSON(e,r);return{fs:h(n),vol:n}},e.exports=Object.assign(Object.assign({},e.exports),t.fs),e.exports.semantic=!0}}),Fe=((t,e,r)=>(r=null!=t?et(ot(t)):{},((t,e,r,n)=>{if(e&&"object"==typeof e||"function"==typeof e)for(let r of it(e))st.call(t,r)||undefined===r||rt(t,r,{get:()=>e[r],enumerable:!(n=nt(e,r))||n.enumerable});return t})(rt(r,"default",{value:t,enumerable:!0}),t)))(Ce());let Oe=Fe.default;const je=(t=0)=>e=>`[${e+t}m`,Te=(t=0)=>e=>`[${38+t};5;${e}m`,Be=(t=0)=>(e,r,n)=>`[${38+t};2;${e};${r};${n}m`,Re={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[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],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};Object.keys(Re.modifier),Object.keys(Re.color),Object.keys(Re.bgColor);const Pe=function(){const t=new Map;for(const[e,r]of Object.entries(Re)){for(const[e,n]of Object.entries(r))Re[e]={open:`[${n[0]}m`,close:`[${n[1]}m`},r[e]=Re[e],t.set(n[0],n[1]);Object.defineProperty(Re,e,{value:r,enumerable:!1})}return Object.defineProperty(Re,"codes",{value:t,enumerable:!1}),Re.color.close="",Re.bgColor.close="",Re.color.ansi=je(),Re.color.ansi256=Te(),Re.color.ansi16m=Be(),Re.bgColor.ansi=je(10),Re.bgColor.ansi256=Te(10),Re.bgColor.ansi16m=Be(10),Object.defineProperties(Re,{rgbToAnsi256:{value:(t,e,r)=>t===e&&e===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(e/255*5)+Math.round(r/255*5),enumerable:!1},hexToRgb:{value(t){const e=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!e)return[0,0,0];let[r]=e;3===r.length&&(r=[...r].map((t=>t+t)).join(""));const n=Number.parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},enumerable:!1},hexToAnsi256:{value:t=>Re.rgbToAnsi256(...Re.hexToRgb(t)),enumerable:!1},ansi256ToAnsi:{value(t){if(t<8)return 30+t;if(t<16)return t-8+90;let e,r,n;if(t>=232)e=(10*(t-232)+8)/255,r=e,n=e;else{const i=(t-=16)%36;e=Math.floor(t/36)/5,r=Math.floor(i/6)/5,n=i%6/5}const i=2*Math.max(e,r,n);if(0===i)return 30;let o=30+(Math.round(n)<<2|Math.round(r)<<1|Math.round(e));return 2===i&&(o+=60),o},enumerable:!1},rgbToAnsi:{value:(t,e,r)=>Re.ansi256ToAnsi(Re.rgbToAnsi256(t,e,r)),enumerable:!1},hexToAnsi:{value:t=>Re.ansi256ToAnsi(Re.hexToAnsi256(t)),enumerable:!1}}),Re}(),Ne=(()=>{if(navigator.userAgentData){const t=navigator.userAgentData.brands.find((({brand:t})=>"Chromium"===t));if(t&&t.version>93)return 3}return/\b(Chrome|Chromium)\//.test(navigator.userAgent)?1:0})(),$e=0!==Ne&&{level:Ne,hasBasic:!0,has256:Ne>=2,has16m:Ne>=3},Me={stdout:$e,stderr:$e};function Ie(t,e,r){let n=t.indexOf(e);if(-1===n)return t;const i=e.length;let o=0,s="";do{s+=t.slice(o,n)+e+r,o=n+i,n=t.indexOf(e,o)}while(-1!==n);return s+=t.slice(o),s}const{stdout:Le,stderr:ze}=Me,Ue=Symbol("GENERATOR"),We=Symbol("STYLER"),Ge=Symbol("IS_EMPTY"),qe=["ansi","ansi","ansi256","ansi16m"],He=Object.create(null);function Ve(t){return(t=>{const e=(...t)=>t.join(" ");return((t,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const r=Le?Le.level:0;t.level=void 0===e.level?r:e.level})(e,t),Object.setPrototypeOf(e,Ve.prototype),e})(t)}Object.setPrototypeOf(Ve.prototype,Function.prototype);for(const[t,e]of Object.entries(Pe))He[t]={get(){const r=Ze(this,Xe(e.open,e.close,this[We]),this[Ge]);return Object.defineProperty(this,t,{value:r}),r}};He.visible={get(){const t=Ze(this,this[We],!0);return Object.defineProperty(this,"visible",{value:t}),t}};const Ye=(t,e,r,...n)=>"rgb"===t?"ansi16m"===e?Pe[r].ansi16m(...n):"ansi256"===e?Pe[r].ansi256(Pe.rgbToAnsi256(...n)):Pe[r].ansi(Pe.rgbToAnsi(...n)):"hex"===t?Ye("rgb",e,r,...Pe.hexToRgb(...n)):Pe[r][t](...n),Ke=["rgb","hex","ansi256"];for(const t of Ke)He[t]={get(){const{level:e}=this;return function(...r){const n=Xe(Ye(t,qe[e],"color",...r),Pe.color.close,this[We]);return Ze(this,n,this[Ge])}}},He["bg"+t[0].toUpperCase()+t.slice(1)]={get(){const{level:e}=this;return function(...r){const n=Xe(Ye(t,qe[e],"bgColor",...r),Pe.bgColor.close,this[We]);return Ze(this,n,this[Ge])}}};const Je=Object.defineProperties((()=>{}),{...He,level:{enumerable:!0,get(){return this[Ue].level},set(t){this[Ue].level=t}}}),Xe=(t,e,r)=>{let n,i;return void 0===r?(n=t,i=e):(n=r.openAll+t,i=e+r.closeAll),{open:t,close:e,openAll:n,closeAll:i,parent:r}},Ze=(t,e,r)=>{const n=(...t)=>Qe(n,1===t.length?""+t[0]:t.join(" "));return Object.setPrototypeOf(n,Je),n[Ue]=t,n[We]=e,n[Ge]=r,n},Qe=(t,e)=>{if(t.level<=0||!e)return t[Ge]?"":e;let r=t[We];if(void 0===r)return e;const{openAll:n,closeAll:i}=r;if(e.includes(""))for(;void 0!==r;)e=Ie(e,r.close,r.open),r=r.parent;const o=e.indexOf("\n");return-1!==o&&(e=function(t,e,r,n){let i=0,o="";do{const s="\r"===t[n-1];o+=t.slice(i,s?n-1:n)+e+(s?"\r\n":"\n")+r,i=n+1,n=t.indexOf("\n",i)}while(-1!==n);return o+=t.slice(i),o}(e,i,n,o)),n+e+i};Object.defineProperties(Ve.prototype,He);const tr=Ve(),er=(Ve({level:ze?ze.level:0}),tr);"object"==typeof window&&(window.process={cwd:()=>"/"});var rr=Object.create,nr=Object.defineProperty,ir=Object.getOwnPropertyDescriptor,or=Object.getOwnPropertyNames,sr=Object.getPrototypeOf,ar=Object.prototype.hasOwnProperty,ur=(t,e)=>function(){return e||(0,t[or(t)[0]])((e={exports:{}}).exports,e),e.exports},cr=(t,e,r)=>(r=null!=t?rr(sr(t)):{},((t,e,r,n)=>{if(e&&"object"==typeof e||"function"==typeof e)for(let r of or(e))ar.call(t,r)||undefined===r||nr(t,r,{get:()=>e[r],enumerable:!(n=ir(e,r))||n.enumerable});return t})(!e&&t&&t.__esModule?r:nr(r,"default",{value:t,enumerable:!0}),t)),lr=ur({"node_modules/balanced-match/index.js"(t,e){function r(t,e,r){t instanceof RegExp&&(t=n(t,r)),e instanceof RegExp&&(e=n(e,r));var o=i(t,e,r);return o&&{start:o[0],end:o[1],pre:r.slice(0,o[0]),body:r.slice(o[0]+t.length,o[1]),post:r.slice(o[1]+e.length)}}function n(t,e){var r=e.match(t);return r?r[0]:null}function i(t,e,r){var n,i,o,s,a,u=r.indexOf(t),c=r.indexOf(e,u+1),l=u;if(u>=0&&c>0){if(t===e)return[u,c];for(n=[],o=r.length;l>=0&&!a;)l==u?(n.push(l),u=r.indexOf(t,l+1)):1==n.length?a=[n.pop(),c]:((i=n.pop())=0?u:c;n.length&&(a=[o,s])}return a}e.exports=r,r.range=i}}),fr=ur({"node_modules/brace-expansion/index.js"(t,e){var r=lr();e.exports=function(t){return t?("{}"===t.substr(0,2)&&(t="\\{\\}"+t.substr(2)),m(function(t){return t.split("\\\\").join(n).split("\\{").join(i).split("\\}").join(o).split("\\,").join(s).split("\\.").join(a)}(t),!0).map(c)):[]};var n="\0SLASH"+Math.random()+"\0",i="\0OPEN"+Math.random()+"\0",o="\0CLOSE"+Math.random()+"\0",s="\0COMMA"+Math.random()+"\0",a="\0PERIOD"+Math.random()+"\0";function u(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function c(t){return t.split(n).join("\\").split(i).join("{").split(o).join("}").split(s).join(",").split(a).join(".")}function l(t){if(!t)return[""];var e=[],n=r("{","}",t);if(!n)return t.split(",");var i=n.pre,o=n.body,s=n.post,a=i.split(",");a[a.length-1]+="{"+o+"}";var u=l(s);return s.length&&(a[a.length-1]+=u.shift(),a.push.apply(a,u)),e.push.apply(e,a),e}function f(t){return"{"+t+"}"}function h(t){return/^-?0\d/.test(t)}function p(t,e){return t<=e}function d(t,e){return t>=e}function m(t,e){var n=[],i=r("{","}",t);if(!i)return[t];var s=i.pre,a=i.post.length?m(i.post,!1):[""];if(/\$$/.test(i.pre))for(var c=0;c=0;if(!x&&!E)return i.post.match(/,.*\}/)?m(t=i.pre+"{"+i.body+o+i.post):[t];if(x)y=i.body.split(/\.\./);else if(1===(y=l(i.body)).length&&1===(y=m(y[0],!1).map(f)).length)return a.map((function(t){return i.pre+y[0]+t}));if(x){var A=u(y[0]),_=u(y[1]),D=Math.max(y[0].length,y[1].length),S=3==y.length?Math.abs(u(y[2])):1,k=p;_0){var T=new Array(j+1).join("0");O=F<0?"-"+T+O.slice(1):T+O}}b.push(O)}}else{b=[];for(var B=0;B=s)return t;switch(t){case"%s":return String(o[n++]);case"%d":return Number(o[n++]);case"%j":try{return JSON.stringify(o[n++])}catch(t){return"[Circular]"}default:return t}})),u=o[n];n=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),f(r)?n.showHidden=r:r&&t._extend(n,r),m(n.showHidden)&&(n.showHidden=!1),m(n.depth)&&(n.depth=2),m(n.colors)&&(n.colors=!1),m(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=o),a(n,e,n.depth)}function o(t,e){var r=i.styles[e];return r?"["+i.colors[r][0]+"m"+t+"["+i.colors[r][1]+"m":t}function s(t,e){return t}function a(e,r,n){if(e.customInspect&&r&&w(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,e);return d(i)||(i=a(e,i,n)),i}var o=function(t,e){if(m(e))return t.stylize("undefined","undefined");if(d(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}return p(e)?t.stylize(""+e,"number"):f(e)?t.stylize(""+e,"boolean"):h(e)?t.stylize("null","null"):void 0}(e,r);if(o)return o;var s=Object.keys(r),y=function(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(r)),v(r)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return u(r);if(0===s.length){if(w(r)){var x=r.name?": "+r.name:"";return e.stylize("[Function"+x+"]","special")}if(g(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(b(r))return e.stylize(Date.prototype.toString.call(r),"date");if(v(r))return u(r)}var E,A="",D=!1,S=["{","}"];return l(r)&&(D=!0,S=["[","]"]),w(r)&&(A=" [Function"+(r.name?": "+r.name:"")+"]"),g(r)&&(A=" "+RegExp.prototype.toString.call(r)),b(r)&&(A=" "+Date.prototype.toUTCString.call(r)),v(r)&&(A=" "+u(r)),0!==s.length||D&&0!=r.length?n<0?g(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),E=D?function(t,e,r,n,i){for(var o=[],s=0,a=e.length;s60?r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1]:r[0]+e+" "+t.join(", ")+" "+r[1]}(E,A,S)):S[0]+A+S[1]}function u(t){return"["+Error.prototype.toString.call(t)+"]"}function c(t,e,r,n,i,o){var s,u,c;if((c=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?u=c.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):c.set&&(u=t.stylize("[Setter]","special")),_(n,i)||(s="["+i+"]"),u||(t.seen.indexOf(c.value)<0?(u=h(r)?a(t,c.value,null):a(t,c.value,r-1)).indexOf("\n")>-1&&(u=o?u.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+u.split("\n").map((function(t){return" "+t})).join("\n")):u=t.stylize("[Circular]","special")),m(s)){if(o&&i.match(/^\d+$/))return u;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=t.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=t.stylize(s,"string"))}return s+": "+u}function l(t){return Array.isArray(t)}function f(t){return"boolean"==typeof t}function h(t){return null===t}function p(t){return"number"==typeof t}function d(t){return"string"==typeof t}function m(t){return void 0===t}function g(t){return y(t)&&"[object RegExp]"===x(t)}function y(t){return"object"==typeof t&&null!==t}function b(t){return y(t)&&"[object Date]"===x(t)}function v(t){return y(t)&&("[object Error]"===x(t)||t instanceof Error)}function w(t){return"function"==typeof t}function x(t){return Object.prototype.toString.call(t)}function E(t){return t<10?"0"+t.toString(10):t.toString(10)}t.debuglog=function(e){if(m(r)&&(r=process.env.NODE_DEBUG||""),e=e.toUpperCase(),!n[e])if(new RegExp("\\b"+e+"\\b","i").test(r)){var i=process.pid;n[e]=function(){var r=t.format.apply(t,arguments);console.error("%s %d: %s",e,i,r)}}else n[e]=function(){};return n[e]},t.inspect=i,i.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},i.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=l,t.isBoolean=f,t.isNull=h,t.isNullOrUndefined=function(t){return null==t},t.isNumber=p,t.isString=d,t.isSymbol=function(t){return"symbol"==typeof t},t.isUndefined=m,t.isRegExp=g,t.isObject=y,t.isDate=b,t.isError=v,t.isFunction=w,t.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},t.isBuffer=hr();var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function _(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.log=function(){console.log("%s - %s",function(){var t=new Date,e=[E(t.getHours()),E(t.getMinutes()),E(t.getSeconds())].join(":");return[t.getDate(),A[t.getMonth()],e].join(" ")}(),t.format.apply(t,arguments))},t.inherits=pr(),t._extend=function(t,e){if(!e||!y(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t}}}),mr=ur({"node_modules/path/path.js"(t,e){var r="win32"===process.platform,n=dr();function i(t,e){for(var r=[],n=0;n=0&&!t[n];n--);return 0===r&&n===e?t:r>n?[]:t.slice(r,n+1)}var s=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,a=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,u={};function c(t){var e=s.exec(t),r=(e[1]||"")+(e[2]||""),n=e[3]||"",i=a.exec(n);return[r,i[1],i[2],i[3]]}function l(t){var e=s.exec(t),r=e[1]||"",n=!!r&&":"!==r[1];return{device:r,isUnc:n,isAbsolute:n||!!e[2],tail:e[3]}}function f(t){return"\\\\"+t.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}u.resolve=function(){for(var t="",e="",r=!1,o=arguments.length-1;o>=-1;o--){var s;if(o>=0?s=arguments[o]:t?(s=process.env["="+t])&&s.substr(0,3).toLowerCase()===t.toLowerCase()+"\\"||(s=t+"\\"):s=process.cwd(),!n.isString(s))throw new TypeError("Arguments to path.resolve must be strings");if(s){var a=l(s),u=a.device,c=a.isUnc,h=a.isAbsolute,p=a.tail;if((!u||!t||u.toLowerCase()===t.toLowerCase())&&(t||(t=u),r||(e=p+"\\"+e,r=h),t&&r))break}}return c&&(t=f(t)),t+(r?"\\":"")+(e=i(e.split(/[\\\/]+/),!r).join("\\"))||"."},u.normalize=function(t){var e=l(t),r=e.device,n=e.isUnc,o=e.isAbsolute,s=e.tail,a=/[\\\/]$/.test(s);return(s=i(s.split(/[\\\/]+/),!o).join("\\"))||o||(s="."),s&&a&&(s+="\\"),n&&(r=f(r)),r+(o?"\\":"")+s},u.isAbsolute=function(t){return l(t).isAbsolute},u.join=function(){for(var t=[],e=0;e=-1&&!e;r--){var o=r>=0?arguments[r]:process.cwd();if(!n.isString(o))throw new TypeError("Arguments to path.resolve must be strings");o&&(t=o+"/"+t,e="/"===o[0])}return(e?"/":"")+(t=i(t.split("/"),!e).join("/"))||"."},p.normalize=function(t){var e=p.isAbsolute(t),r=t&&"/"===t[t.length-1];return(t=i(t.split("/"),!e).join("/"))||e||(t="."),t&&r&&(t+="/"),(e?"/":"")+t},p.isAbsolute=function(t){return"/"===t.charAt(0)},p.join=function(){for(var t="",e=0;e= 0x80 (not a basic code point)","invalid-input":"Invalid input"},y=c-1,b=Math.floor,v=String.fromCharCode;function w(t){throw new RangeError(g[t])}function x(t,e){for(var r=t.length,n=[];r--;)n[r]=e(t[r]);return n}function E(t,e){var r=t.split("@"),n="";return r.length>1&&(n=r[0]+"@",t=r[1]),n+x((t=t.replace(m,".")).split("."),e).join(".")}function A(t){for(var e,r,n=[],i=0,o=t.length;i=55296&&e<=56319&&i65535&&(e+=v((t-=65536)>>>10&1023|55296),t=56320|1023&t),e+v(t)})).join("")}function D(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function S(t,e,r){var n=0;for(t=r?b(t/h):t>>1,t+=b(t/e);t>y*l>>1;n+=c)t=b(t/y);return b(n+(y+1)*t/(t+f))}function k(t){var e,r,n,i,o,s,a,f,h,p,d,m=[],g=t.length,y=0,v=128,x=72;for((r=t.lastIndexOf("-"))<0&&(r=0),n=0;n=128&&w("not-basic"),m.push(t.charCodeAt(n));for(i=r>0?r+1:0;i=g&&w("invalid-input"),((f=(d=t.charCodeAt(i++))-48<10?d-22:d-65<26?d-65:d-97<26?d-97:c)>=c||f>b((u-y)/s))&&w("overflow"),y+=f*s,!(f<(h=a<=x?1:a>=x+l?l:a-x));a+=c)s>b(u/(p=c-h))&&w("overflow"),s*=p;x=S(y-o,e=m.length+1,0==o),b(y/e)>u-v&&w("overflow"),v+=b(y/e),y%=e,m.splice(y++,0,v)}return _(m)}function C(t){var e,r,n,i,o,s,a,f,h,p,d,m,g,y,x,E=[];for(m=(t=A(t)).length,e=128,r=0,o=72,s=0;s=e&&db((u-r)/(g=n+1))&&w("overflow"),r+=(a-e)*g,e=a,s=0;su&&w("overflow"),d==e){for(f=r,h=c;!(f<(p=h<=o?1:h>=o+l?l:h-o));h+=c)x=f-p,y=c-p,E.push(v(D(p+x%y,0))),f=b(x/y);E.push(v(D(f,0))),o=S(r,g,n==i),r=0,++n}++r,++e}return E.join("")}if(s={version:"1.4.1",ucs2:{decode:A,encode:_},decode:k,encode:C,toASCII:function(t){return E(t,(function(t){return d.test(t)?"xn--"+C(t):t}))},toUnicode:function(t){return E(t,(function(t){return p.test(t)?k(t.slice(4).toLowerCase()):t}))}},"function"==typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",(function(){return s}));else if(n&&i)if(e.exports==n)i.exports=s;else for(a in s)s.hasOwnProperty(a)&&(n[a]=s[a]);else r.punycode=s}(t)}}),yr=ur({"node_modules/has-symbols/shams.js"(t,e){e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,e);if(42!==i.value||!0!==i.enumerable)return!1}return!0}}}),br=ur({"node_modules/has-symbols/index.js"(t,e){var r="undefined"!=typeof Symbol&&Symbol,n=yr();e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&n()}}}),vr=ur({"node_modules/has-proto/index.js"(t,e){var r={foo:{}},n=Object;e.exports=function(){return{__proto__:r}.foo===r.foo&&!({__proto__:null}instanceof n)}}}),wr=ur({"node_modules/function-bind/implementation.js"(t,e){var r=Array.prototype.slice,n=Object.prototype.toString;e.exports=function(t){var e=this;if("function"!=typeof e||"[object Function]"!==n.call(e))throw new TypeError("Function.prototype.bind called on incompatible "+e);for(var i,o=r.call(arguments,1),s=Math.max(0,e.length-o.length),a=[],u=0;u1&&"boolean"!=typeof e)throw new o('"allowMissing" argument must be a boolean');if(null===D(/^%?[^%]*%?$/,t))throw new n("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(t){var e=_(t,0,1),r=_(t,-1);if("%"===e&&"%"!==r)throw new n("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new n("invalid intrinsic syntax, expected opening `%`");var i=[];return A(t,S,(function(t,e,r,n){i[i.length]=r?A(n,k,"$1"):e||t})),i}(t),i=r.length>0?r[0]:"",s=C("%"+i+"%",e),u=s.name,c=s.value,l=!1,f=s.alias;f&&(i=f[0],E(r,x([0,1],f)));for(var h=1,p=!0;h=r.length){var b=a(c,d);c=(p=!!b)&&"get"in b&&!("originalValue"in b.get)?b.get:c[d]}else p=w(c,d),c=c[d];p&&!l&&(g[u]=c)}}return c}}}),_r=ur({"node_modules/call-bind/index.js"(t,e){var r=xr(),n=Ar(),i=n("%Function.prototype.apply%"),o=n("%Function.prototype.call%"),s=n("%Reflect.apply%",!0)||r.call(o,i),a=n("%Object.getOwnPropertyDescriptor%",!0),u=n("%Object.defineProperty%",!0),c=n("%Math.max%");if(u)try{u({},"a",{value:1})}catch(t){u=null}e.exports=function(t){var e=s(r,o,arguments);return a&&u&&a(e,"length").configurable&&u(e,"length",{value:1+c(0,t.length-(arguments.length-1))}),e};var l=function(){return s(r,i,arguments)};u?u(e.exports,"apply",{value:l}):e.exports.apply=l}}),Dr=ur({"node_modules/call-bind/callBound.js"(t,e){var r=Ar(),n=_r(),i=n(r("String.prototype.indexOf"));e.exports=function(t,e){var o=r(t,!!e);return"function"==typeof o&&i(t,".prototype.")>-1?n(o):o}}}),Sr=ur({"(disabled):node_modules/object-inspect/util.inspect"(){}}),kr=ur({"node_modules/object-inspect/index.js"(t,e){var r="function"==typeof Map&&Map.prototype,n=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=r&&n&&"function"==typeof n.get?n.get:null,o=r&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,a=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=s&&a&&"function"==typeof a.get?a.get:null,c=s&&Set.prototype.forEach,l="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,h="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,d=Object.prototype.toString,m=Function.prototype.toString,g=String.prototype.match,y=String.prototype.slice,b=String.prototype.replace,v=String.prototype.toUpperCase,w=String.prototype.toLowerCase,x=RegExp.prototype.test,E=Array.prototype.concat,A=Array.prototype.join,_=Array.prototype.slice,D=Math.floor,S="function"==typeof BigInt?BigInt.prototype.valueOf:null,k=Object.getOwnPropertySymbols,C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,F="function"==typeof Symbol&&"object"==typeof Symbol.iterator,O="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,j=Object.prototype.propertyIsEnumerable,T=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function B(t,e){if(t===1/0||t===-1/0||t!=t||t&&t>-1e3&&t<1e3||x.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var n=t<0?-D(-t):D(t);if(n!==t){var i=String(n),o=y.call(e,i.length+1);return b.call(i,r,"$&_")+"."+b.call(b.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(e,r,"$&_")}var R=Sr(),P=R.custom,N=z(P)?P:null;function $(t,e,r){var n="double"===(r.quoteStyle||e)?'"':"'";return n+t+n}function M(t){return b.call(String(t),/"/g,""")}function I(t){return!("[object Array]"!==G(t)||O&&"object"==typeof t&&O in t)}function L(t){return!("[object RegExp]"!==G(t)||O&&"object"==typeof t&&O in t)}function z(t){if(F)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!C)return!1;try{return C.call(t),!0}catch(t){}return!1}e.exports=function t(e,r,n,s){var a=r||{};if(W(a,"quoteStyle")&&"single"!==a.quoteStyle&&"double"!==a.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(W(a,"maxStringLength")&&("number"==typeof a.maxStringLength?a.maxStringLength<0&&a.maxStringLength!==1/0:null!==a.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var d=!W(a,"customInspect")||a.customInspect;if("boolean"!=typeof d&&"symbol"!==d)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(W(a,"indent")&&null!==a.indent&&"\t"!==a.indent&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(W(a,"numericSeparator")&&"boolean"!=typeof a.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var v=a.numericSeparator;if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return H(e,a);if("number"==typeof e){if(0===e)return 1/0/e>0?"0":"-0";var x=String(e);return v?B(e,x):x}if("bigint"==typeof e){var D=String(e)+"n";return v?B(e,D):D}var k=void 0===a.depth?5:a.depth;if(void 0===n&&(n=0),n>=k&&k>0&&"object"==typeof e)return I(e)?"[Array]":"[Object]";var P,U=function(t,e){var r;if("\t"===t.indent)r="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;r=A.call(Array(t.indent+1)," ")}return{base:r,prev:A.call(Array(e+1),r)}}(a,n);if(void 0===s)s=[];else if(q(s,e)>=0)return"[Circular]";function V(e,r,i){if(r&&(s=_.call(s)).push(r),i){var o={depth:a.depth};return W(a,"quoteStyle")&&(o.quoteStyle=a.quoteStyle),t(e,o,n+1,s)}return t(e,a,n+1,s)}if("function"==typeof e&&!L(e)){var Q=function(t){if(t.name)return t.name;var e=g.call(m.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}(e),tt=Z(e,V);return"[Function"+(Q?": "+Q:" (anonymous)")+"]"+(tt.length>0?" { "+A.call(tt,", ")+" }":"")}if(z(e)){var et=F?b.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):C.call(e);return"object"!=typeof e||F?et:Y(et)}if((P=e)&&"object"==typeof P&&("undefined"!=typeof HTMLElement&&P instanceof HTMLElement||"string"==typeof P.nodeName&&"function"==typeof P.getAttribute)){for(var rt="<"+w.call(String(e.nodeName)),nt=e.attributes||[],it=0;it"}if(I(e)){if(0===e.length)return"[]";var ot=Z(e,V);return U&&!function(t){for(var e=0;e=0)return!1;return!0}(ot)?"["+X(ot,U)+"]":"[ "+A.call(ot,", ")+" ]"}if(function(t){return!("[object Error]"!==G(t)||O&&"object"==typeof t&&O in t)}(e)){var st=Z(e,V);return"cause"in Error.prototype||!("cause"in e)||j.call(e,"cause")?0===st.length?"["+String(e)+"]":"{ ["+String(e)+"] "+A.call(st,", ")+" }":"{ ["+String(e)+"] "+A.call(E.call("[cause]: "+V(e.cause),st),", ")+" }"}if("object"==typeof e&&d){if(N&&"function"==typeof e[N]&&R)return R(e,{depth:k-n});if("symbol"!==d&&"function"==typeof e.inspect)return e.inspect()}if(function(t){if(!i||!t||"object"!=typeof t)return!1;try{i.call(t);try{u.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(e)){var at=[];return o&&o.call(e,(function(t,r){at.push(V(r,e,!0)+" => "+V(t,e))})),J("Map",i.call(e),at,U)}if(function(t){if(!u||!t||"object"!=typeof t)return!1;try{u.call(t);try{i.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(e)){var ut=[];return c&&c.call(e,(function(t){ut.push(V(t,e))})),J("Set",u.call(e),ut,U)}if(function(t){if(!l||!t||"object"!=typeof t)return!1;try{l.call(t,l);try{f.call(t,f)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(e))return K("WeakMap");if(function(t){if(!f||!t||"object"!=typeof t)return!1;try{f.call(t,f);try{l.call(t,l)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(e))return K("WeakSet");if(function(t){if(!h||!t||"object"!=typeof t)return!1;try{return h.call(t),!0}catch(t){}return!1}(e))return K("WeakRef");if(function(t){return!("[object Number]"!==G(t)||O&&"object"==typeof t&&O in t)}(e))return Y(V(Number(e)));if(function(t){if(!t||"object"!=typeof t||!S)return!1;try{return S.call(t),!0}catch(t){}return!1}(e))return Y(V(S.call(e)));if(function(t){return!("[object Boolean]"!==G(t)||O&&"object"==typeof t&&O in t)}(e))return Y(p.call(e));if(function(t){return!("[object String]"!==G(t)||O&&"object"==typeof t&&O in t)}(e))return Y(V(String(e)));if(!function(t){return!("[object Date]"!==G(t)||O&&"object"==typeof t&&O in t)}(e)&&!L(e)){var ct=Z(e,V),lt=T?T(e)===Object.prototype:e instanceof Object||e.constructor===Object,ft=e instanceof Object?"":"null prototype",ht=!lt&&O&&Object(e)===e&&O in e?y.call(G(e),8,-1):ft?"Object":"",pt=(lt||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(ht||ft?"["+A.call(E.call([],ht||[],ft||[]),": ")+"] ":"");return 0===ct.length?pt+"{}":U?pt+"{"+X(ct,U)+"}":pt+"{ "+A.call(ct,", ")+" }"}return String(e)};var U=Object.prototype.hasOwnProperty||function(t){return t in this};function W(t,e){return U.call(t,e)}function G(t){return d.call(t)}function q(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;re.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return H(y.call(t,0,e.maxStringLength),e)+n}return $(b.call(b.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,V),"single",e)}function V(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+v.call(e.toString(16))}function Y(t){return"Object("+t+")"}function K(t){return t+" { ? }"}function J(t,e,r,n){return t+" ("+e+") {"+(n?X(r,n):A.call(r,", "))+"}"}function X(t,e){if(0===t.length)return"";var r="\n"+e.prev+e.base;return r+A.call(t,","+r)+"\n"+e.prev}function Z(t,e){var r=I(t),n=[];if(r){n.length=t.length;for(var i=0;i1;){var e=t.pop(),r=e.obj[e.prop];if(i(r)){for(var n=[],o=0;o=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||s===r.RFC1738&&(40===l||41===l)?u+=a.charAt(c):l<128?u+=o[l]:l<2048?u+=o[192|l>>6]+o[128|63&l]:l<55296||l>=57344?u+=o[224|l>>12]+o[128|l>>6&63]+o[128|63&l]:(c+=1,l=65536+((1023&l)<<10|1023&a.charCodeAt(c)),u+=o[240|l>>18]+o[128|l>>12&63]+o[128|l>>6&63]+o[128|63&l])}return u},isBuffer:function(t){return!(!t||"object"!=typeof t||!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t)))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(i(t)){for(var r=[],n=0;n0?_.join(",")||null:void 0}];else if(a(d))F=d;else{var j=Object.keys(_);F=m?j.sort(m):j}for(var T=s&&a(_)&&1===_.length?i+"[]":i,B=0;B0?x+w:""}}}),Tr=ur({"node_modules/qs/lib/parse.js"(t,e){var r=Or(),n=Object.prototype.hasOwnProperty,i=Array.isArray,o={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},a=function(t,e){return t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},u=function(t,e,r,i){if(t){var o=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,s=/(\[[^[\]]*])/g,u=r.depth>0&&/(\[[^[\]]*])/.exec(o),c=u?o.slice(0,u.index):o,l=[];if(c){if(!r.plainObjects&&n.call(Object.prototype,c)&&!r.allowPrototypes)return;l.push(c)}for(var f=0;r.depth>0&&null!==(u=s.exec(o))&&f=0;--o){var s,u=t[o];if("[]"===u&&r.parseArrays)s=[].concat(i);else{s=r.plainObjects?Object.create(null):{};var c="["===u.charAt(0)&&"]"===u.charAt(u.length-1)?u.slice(1,-1):u,l=parseInt(c,10);r.parseArrays||""!==c?!isNaN(l)&&u!==c&&String(l)===c&&l>=0&&r.parseArrays&&l<=r.arrayLimit?(s=[])[l]=i:"__proto__"!==c&&(s[c]=i):s={0:i}}i=s}return i}(l,e,r,i)}};e.exports=function(t,e){var c=function(t){if(!t)return o;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?o.charset:t.charset;return{allowDots:void 0===t.allowDots?o.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:o.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:o.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:o.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:o.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:o.comma,decoder:"function"==typeof t.decoder?t.decoder:o.decoder,delimiter:"string"==typeof t.delimiter||r.isRegExp(t.delimiter)?t.delimiter:o.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:o.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:o.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:o.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:o.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:o.strictNullHandling}}(e);if(""===t||null==t)return c.plainObjects?Object.create(null):{};for(var l="string"==typeof t?function(t,e){var u,c={__proto__:null},l=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,f=e.parameterLimit===1/0?void 0:e.parameterLimit,h=l.split(e.delimiter,f),p=-1,d=e.charset;if(e.charsetSentinel)for(u=0;u-1&&(g=i(g)?[g]:g),n.call(c,m)?c[m]=r.combine(c[m],g):c[m]=g}return c}(t,c):t,f=c.plainObjects?Object.create(null):{},h=Object.keys(l),p=0;p",'"',"`"," ","\r","\n","\t"]),a=["'"].concat(s),u=["%","/","?",";","#"].concat(a),c=["/","?","#"],l=/^[+a-z0-9A-Z_-]{0,63}$/,f=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,h={javascript:!0,"javascript:":!0},p={javascript:!0,"javascript:":!0},d={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},m=Br();function g(t,e,n){if(t&&"object"==typeof t&&t instanceof r)return t;var i=new r;return i.parse(t,e,n),i}r.prototype.parse=function(t,r,i){if("string"!=typeof t)throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var s=t.indexOf("?"),g=-1!==s&&s127?T+="x":T+=j[B];if(!T.match(l)){var P=F.slice(0,S),N=F.slice(S+1),$=j.match(f);$&&(P.push($[1]),N.unshift($[2])),N.length&&(b="/"+N.join(".")+b),this.hostname=P.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),C||(this.hostname=e.toASCII(this.hostname));var M=this.port?":"+this.port:"",I=this.hostname||"";this.host=I+M,this.href+=this.host,C&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!h[x])for(S=0,O=a.length;S0)&&n.host.split("@"))&&(n.auth=C.shift(),n.hostname=C.shift(),n.host=n.hostname)),n.search=t.search,n.query=t.query,null===n.pathname&&null===n.search||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n;if(!E.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var _=E.slice(-1)[0],D=(n.host||t.host||E.length>1)&&("."===_||".."===_)||""===_,S=0,k=E.length;k>=0;k--)"."===(_=E[k])?E.splice(k,1):".."===_?(E.splice(k,1),S++):S&&(E.splice(k,1),S--);if(!w&&!x)for(;S--;S)E.unshift("..");!w||""===E[0]||E[0]&&"/"===E[0].charAt(0)||E.unshift(""),D&&"/"!==E.join("/").substr(-1)&&E.push("");var C,F=""===E[0]||E[0]&&"/"===E[0].charAt(0);return A&&(n.hostname=F?"":E.length?E.shift():"",n.host=n.hostname,(C=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=C.shift(),n.hostname=C.shift(),n.host=n.hostname)),(w=w||n.host&&E.length)&&!F&&E.unshift(""),E.length>0?n.pathname=E.join("/"):(n.pathname=null,n.path=null),null===n.pathname&&null===n.search||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=t.auth||n.auth,n.slashes=n.slashes||t.slashes,n.href=n.format(),n},r.prototype.parseHost=function(){var t=this.host,e=i.exec(t);e&&(":"!==(e=e[0])&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)},t.parse=g,t.resolve=function(t,e){return g(t,!1,!0).resolve(e)},t.resolveObject=function(t,e){return t?g(t,!1,!0).resolveObject(e):e},t.format=function(t){return"string"==typeof t&&(t=g(t)),t instanceof r?t.format():r.prototype.format.call(t)},t.Url=r}}),Pr=ur({"node_modules/events/events.js"(t,e){var r,n="object"==typeof Reflect?Reflect:null,i=n&&"function"==typeof n.apply?n.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)};r=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var o=Number.isNaN||function(t){return t!=t};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(t,e){return new Promise((function(r,n){function i(r){t.removeListener(e,o),n(r)}function o(){"function"==typeof t.removeListener&&t.removeListener("error",i),r([].slice.call(arguments))}g(t,e,o,{once:!0}),"error"!==e&&function(t,e,r){"function"==typeof t.on&&g(t,"error",e,{once:!0})}(t,i)}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var a=10;function u(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function c(t){return void 0===t._maxListeners?s.defaultMaxListeners:t._maxListeners}function l(t,e,r,n){var i,o,s,a;if(u(r),void 0===(o=t._events)?(o=t._events=Object.create(null),t._eventsCount=0):(void 0!==o.newListener&&(t.emit("newListener",e,r.listener?r.listener:r),o=t._events),s=o[e]),void 0===s)s=o[e]=r,++t._eventsCount;else if("function"==typeof s?s=o[e]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),(i=c(t))>0&&s.length>i&&!s.warned){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=t,l.type=e,l.count=s.length,a=l,console&&console.warn&&console.warn(a)}return t}function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},i=f.bind(n);return i.listener=r,n.wrapFn=i,i}function p(t,e,r){var n=t._events;if(void 0===n)return[];var i=n[e];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(t){for(var e=new Array(t.length),r=0;r0&&(s=e[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var u=o[t];if(void 0===u)return!1;if("function"==typeof u)i(u,this,e);else{var c=u.length,l=m(u,c);for(r=0;r=0;o--)if(r[o]===e||r[o].listener===e){s=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(t,e){for(;e+1=0;n--)this.removeListener(t,e[n]);return this},s.prototype.listeners=function(t){return p(this,t,!0)},s.prototype.rawListeners=function(t){return p(this,t,!1)},s.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):d.call(t,e)},s.prototype.listenerCount=d,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}}}),Nr=ur({"node_modules/emitter-component/index.js"(t,e){function r(t){if(t)return function(t){for(var e in r.prototype)t[e]=r.prototype[e];return t}(t)}e.exports=r,r.prototype.on=r.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks[t]=this._callbacks[t]||[]).push(e),this},r.prototype.once=function(t,e){var r=this;function n(){r.off(t,n),e.apply(this,arguments)}return this._callbacks=this._callbacks||{},n.fn=e,this.on(t,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,n=this._callbacks[t];if(!n)return this;if(1==arguments.length)return delete this._callbacks[t],this;for(var i=0;i0?a-4:a;for(r=0;r>16&255,c[l++]=e>>8&255,c[l++]=255&e;return 2===u&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,c[l++]=255&e),1===u&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,c[l++]=e>>8&255,c[l++]=255&e),c},t.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],s=16383,u=0,c=n-i;uc?c:u+s));return 1===i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),o.join("")};var e,r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(e=0;e<64;++e)r[e]=o[e],n[o.charCodeAt(e)]=e;function s(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function a(t,e,n){for(var i,o,s=[],a=e;a>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return s.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63}}),Ir=ur({"node_modules/ieee754/index.js"(t){t.read=function(t,e,r,n,i){var o,s,a=8*i-n-1,u=(1<>1,l=-7,f=r?i-1:0,h=r?-1:1,p=t[e+f];for(f+=h,o=p&(1<<-l)-1,p>>=-l,l+=a;l>0;o=256*o+t[e+f],f+=h,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=n;l>0;s=256*s+t[e+f],f+=h,l-=8);if(0===o)o=1-c;else{if(o===u)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,n),o-=c}return(p?-1:1)*s*Math.pow(2,o-n)},t.write=function(t,e,r,n,i,o){var s,a,u,c=8*o-i-1,l=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:o-1,d=n?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),(e+=s+f>=1?h/u:h*Math.pow(2,1-f))*u>=2&&(s++,u/=2),s+f>=l?(a=0,s=l):s+f>=1?(a=(e*u-1)*Math.pow(2,i),s+=f):(a=e*Math.pow(2,f-1)*Math.pow(2,i),s=0));i>=8;t[r+p]=255&a,p+=d,a/=256,i-=8);for(s=s<0;t[r+p]=255&s,p+=d,s/=256,c-=8);t[r+p-d]|=128*m}}}),Lr=ur({"node_modules/buffer/index.js"(t){var e=Mr(),r=Ir(),n="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=s,t.SlowBuffer=function(t){return+t!=t&&(t=0),s.alloc(+t)},t.INSPECT_MAX_BYTES=50;var i=2147483647;function o(t){if(t>i)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,s.prototype),e}function s(t,e,r){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return c(t)}return a(t,e,r)}function a(t,e,r){if("string"==typeof t)return function(t,e){if("string"==typeof e&&""!==e||(e="utf8"),!s.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const r=0|p(t,e);let n=o(r);const i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}(t,e);if(ArrayBuffer.isView(t))return function(t){if(V(t,Uint8Array)){const e=new Uint8Array(t);return f(e.buffer,e.byteOffset,e.byteLength)}return l(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(V(t,ArrayBuffer)||t&&V(t.buffer,ArrayBuffer))return f(t,e,r);if("undefined"!=typeof SharedArrayBuffer&&(V(t,SharedArrayBuffer)||t&&V(t.buffer,SharedArrayBuffer)))return f(t,e,r);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return s.from(n,e,r);const i=function(t){if(s.isBuffer(t)){const e=0|h(t.length),r=o(e);return 0===r.length||t.copy(r,0,0,e),r}return void 0!==t.length?"number"!=typeof t.length||Y(t.length)?o(0):l(t):"Buffer"===t.type&&Array.isArray(t.data)?l(t.data):void 0}(t);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return s.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function u(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function c(t){return u(t),o(t<0?0:0|h(t))}function l(t){const e=t.length<0?0:0|h(t.length),r=o(e);for(let n=0;n=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return 0|t}function p(t,e){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||V(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);const r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return G(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return q(t).length;default:if(i)return n?-1:G(t).length;e=(""+e).toLowerCase(),i=!0}}function d(t,e,r){let n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return C(this,e,r);case"utf8":case"utf-8":return _(this,e,r);case"ascii":return S(this,e,r);case"latin1":case"binary":return k(this,e,r);case"base64":return A(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function m(t,e,r){const n=t[e];t[e]=t[r],t[r]=n}function g(t,e,r,n,i){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),Y(r=+r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof e&&(e=s.from(e,n)),s.isBuffer(e))return 0===e.length?-1:y(t,e,r,n,i);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):y(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function y(t,e,r,n,i){let o,s=1,a=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;s=2,a/=2,u/=2,r/=2}function c(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(i){let n=-1;for(o=r;oa&&(r=a-u),o=r;o>=0;o--){let r=!0;for(let n=0;ni&&(n=i):n=i;const o=e.length;let s;for(n>o/2&&(n=o/2),s=0;s>8,i=r%256,o.push(i),o.push(n);return o}(e,t.length-r),t,r,n)}function A(t,r,n){return 0===r&&n===t.length?e.fromByteArray(t):e.fromByteArray(t.slice(r,n))}function _(t,e,r){r=Math.min(t.length,r);const n=[];let i=e;for(;i239?4:e>223?3:e>191?2:1;if(i+s<=r){let r,n,a,u;switch(s){case 1:e<128&&(o=e);break;case 2:r=t[i+1],128==(192&r)&&(u=(31&e)<<6|63&r,u>127&&(o=u));break;case 3:r=t[i+1],n=t[i+2],128==(192&r)&&128==(192&n)&&(u=(15&e)<<12|(63&r)<<6|63&n,u>2047&&(u<55296||u>57343)&&(o=u));break;case 4:r=t[i+1],n=t[i+2],a=t[i+3],128==(192&r)&&128==(192&n)&&128==(192&a)&&(u=(15&e)<<18|(63&r)<<12|(63&n)<<6|63&a,u>65535&&u<1114112&&(o=u))}}null===o?(o=65533,s=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),i+=s}return function(t){const e=t.length;if(e<=D)return String.fromCharCode.apply(String,t);let r="",n=0;for(;nn.length?(s.isBuffer(e)||(e=s.from(e)),e.copy(n,i)):Uint8Array.prototype.set.call(n,e,i);else{if(!s.isBuffer(e))throw new TypeError('"list" argument must be an Array of Buffers');e.copy(n,i)}i+=e.length}return n},s.byteLength=p,s.prototype._isBuffer=!0,s.prototype.swap16=function(){const t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;er&&(e+=" ... "),""},n&&(s.prototype[n]=s.prototype.inspect),s.prototype.compare=function(t,e,r,n,i){if(V(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;let o=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(e>>>=0);const u=Math.min(o,a),c=this.slice(n,i),l=t.slice(e,r);for(let t=0;t>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}const i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return b(this,t,e,r);case"utf8":case"utf-8":return v(this,t,e,r);case"ascii":case"latin1":case"binary":return w(this,t,e,r);case"base64":return x(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,t,e,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var D=4096;function S(t,e,r){let n="";r=Math.min(t.length,r);for(let i=e;in)&&(r=n);let i="";for(let n=e;nr)throw new RangeError("Trying to access beyond buffer length")}function j(t,e,r,n,i,o){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function T(t,e,r,n,i){L(e,n,i,t,r,7);let o=Number(e&BigInt(4294967295));t[r++]=o,o>>=8,t[r++]=o,o>>=8,t[r++]=o,o>>=8,t[r++]=o;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[r++]=s,s>>=8,t[r++]=s,s>>=8,t[r++]=s,s>>=8,t[r++]=s,r}function B(t,e,r,n,i){L(e,n,i,t,r,7);let o=Number(e&BigInt(4294967295));t[r+7]=o,o>>=8,t[r+6]=o,o>>=8,t[r+5]=o,o>>=8,t[r+4]=o;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[r+3]=s,s>>=8,t[r+2]=s,s>>=8,t[r+1]=s,s>>=8,t[r]=s,r+8}function R(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function P(t,e,n,i,o){return e=+e,n>>>=0,o||R(t,0,n,4),r.write(t,e,n,i,23,4),n+4}function N(t,e,n,i,o){return e=+e,n>>>=0,o||R(t,0,n,8),r.write(t,e,n,i,52,8),n+8}s.prototype.slice=function(t,e){const r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e>>=0,e>>>=0,r||O(t,e,this.length);let n=this[t],i=1,o=0;for(;++o>>=0,e>>>=0,r||O(t,e,this.length);let n=this[t+--e],i=1;for(;e>0&&(i*=256);)n+=this[t+--e]*i;return n},s.prototype.readUint8=s.prototype.readUInt8=function(t,e){return t>>>=0,e||O(t,1,this.length),this[t]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(t,e){return t>>>=0,e||O(t,2,this.length),this[t]|this[t+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(t,e){return t>>>=0,e||O(t,2,this.length),this[t]<<8|this[t+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(t,e){return t>>>=0,e||O(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(t,e){return t>>>=0,e||O(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},s.prototype.readBigUInt64LE=J((function(t){z(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||U(t,this.length-8);const n=e+256*this[++t]+65536*this[++t]+this[++t]*2**24,i=this[++t]+256*this[++t]+65536*this[++t]+r*2**24;return BigInt(n)+(BigInt(i)<>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||U(t,this.length-8);const n=e*2**24+65536*this[++t]+256*this[++t]+this[++t],i=this[++t]*2**24+65536*this[++t]+256*this[++t]+r;return(BigInt(n)<>>=0,e>>>=0,r||O(t,e,this.length);let n=this[t],i=1,o=0;for(;++o=i&&(n-=Math.pow(2,8*e)),n},s.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||O(t,e,this.length);let n=e,i=1,o=this[t+--n];for(;n>0&&(i*=256);)o+=this[t+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},s.prototype.readInt8=function(t,e){return t>>>=0,e||O(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},s.prototype.readInt16LE=function(t,e){t>>>=0,e||O(t,2,this.length);const r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt16BE=function(t,e){t>>>=0,e||O(t,2,this.length);const r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt32LE=function(t,e){return t>>>=0,e||O(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},s.prototype.readInt32BE=function(t,e){return t>>>=0,e||O(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},s.prototype.readBigInt64LE=J((function(t){z(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||U(t,this.length-8);const n=this[t+4]+256*this[t+5]+65536*this[t+6]+(r<<24);return(BigInt(n)<>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||U(t,this.length-8);const n=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(n)<>>=0,e||O(t,4,this.length),r.read(this,t,!0,23,4)},s.prototype.readFloatBE=function(t,e){return t>>>=0,e||O(t,4,this.length),r.read(this,t,!1,23,4)},s.prototype.readDoubleLE=function(t,e){return t>>>=0,e||O(t,8,this.length),r.read(this,t,!0,52,8)},s.prototype.readDoubleBE=function(t,e){return t>>>=0,e||O(t,8,this.length),r.read(this,t,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(t,e,r,n){t=+t,e>>>=0,r>>>=0,n||j(this,t,e,r,Math.pow(2,8*r)-1,0);let i=1,o=0;for(this[e]=255&t;++o>>=0,r>>>=0,n||j(this,t,e,r,Math.pow(2,8*r)-1,0);let i=r-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+r},s.prototype.writeUint8=s.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||j(this,t,e,1,255,0),this[e]=255&t,e+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||j(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||j(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||j(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||j(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},s.prototype.writeBigUInt64LE=J((function(t,e=0){return T(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),s.prototype.writeBigUInt64BE=J((function(t,e=0){return B(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),s.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){const n=Math.pow(2,8*r-1);j(this,t,e,r,n-1,-n)}let i=0,o=1,s=0;for(this[e]=255&t;++i>>=0,!n){const n=Math.pow(2,8*r-1);j(this,t,e,r,n-1,-n)}let i=r-1,o=1,s=0;for(this[e+i]=255&t;--i>=0&&(o*=256);)t<0&&0===s&&0!==this[e+i+1]&&(s=1),this[e+i]=(t/o|0)-s&255;return e+r},s.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||j(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},s.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||j(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},s.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||j(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},s.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||j(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},s.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||j(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},s.prototype.writeBigInt64LE=J((function(t,e=0){return T(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),s.prototype.writeBigInt64BE=J((function(t,e=0){return B(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),s.prototype.writeFloatLE=function(t,e,r){return P(this,t,e,!0,r)},s.prototype.writeFloatBE=function(t,e,r){return P(this,t,e,!1,r)},s.prototype.writeDoubleLE=function(t,e,r){return N(this,t,e,!0,r)},s.prototype.writeDoubleBE=function(t,e,r){return N(this,t,e,!1,r)},s.prototype.copy=function(t,e,r,n){if(!s.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function L(t,e,r,n,i,o){if(t>r||t3?0===e||e===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(o+1)}${n}`:`>= -(2${n} ** ${8*(o+1)-1}${n}) and < 2 ** ${8*(o+1)-1}${n}`:`>= ${e}${n} and <= ${r}${n}`,new $.ERR_OUT_OF_RANGE("value",i,t)}!function(t,e,r){z(e,"offset"),void 0!==t[e]&&void 0!==t[e+r]||U(e,t.length-(r+1))}(n,i,o)}function z(t,e){if("number"!=typeof t)throw new $.ERR_INVALID_ARG_TYPE(e,"number",t)}function U(t,e,r){if(Math.floor(t)!==t)throw z(t,r),new $.ERR_OUT_OF_RANGE(r||"offset","an integer",t);if(e<0)throw new $.ERR_BUFFER_OUT_OF_BOUNDS;throw new $.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${e}`,t)}M("ERR_BUFFER_OUT_OF_BOUNDS",(function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),M("ERR_INVALID_ARG_TYPE",(function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`}),TypeError),M("ERR_OUT_OF_RANGE",(function(t,e,r){let n=`The value of "${t}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>2**32?i=I(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=I(i)),i+="n"),n+=` It must be ${e}. Received ${i}`,n}),RangeError);var W=/[^+/0-9A-Za-z-_]/g;function G(t,e){let r;e=e||1/0;const n=t.length;let i=null;const o=[];for(let s=0;s55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function q(t){return e.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(W,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function H(t,e,r,n){let i;for(i=0;i=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function V(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function Y(t){return t!=t}var K=function(){const t="0123456789abcdef",e=new Array(256);for(let r=0;r<16;++r){const n=16*r;for(let i=0;i<16;++i)e[n+i]=t[r]+t[i]}return e}();function J(t){return"undefined"==typeof BigInt?X:t}function X(){throw new Error("BigInt not supported")}}}),zr=ur({"node_modules/safe-buffer/index.js"(t,e){var r=Lr(),n=r.Buffer;function i(t,e){for(var r in t)e[r]=t[r]}function o(t,e,r){return n(t,e,r)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=r:(i(r,t),t.Buffer=o),o.prototype=Object.create(n.prototype),i(n,o),o.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return n(t,e,r)},o.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var i=n(t);return void 0!==e?"string"==typeof r?i.fill(e,r):i.fill(e):i.fill(0),i},o.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n(t)},o.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r.SlowBuffer(t)}}}),Ur=ur({"node_modules/string_decoder/lib/string_decoder.js"(t){var e=zr().Buffer,r=e.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function n(t){var n;switch(this.encoding=function(t){var n=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof n&&(e.isEncoding===r||!r(t)))throw new Error("Unknown encoding: "+t);return n||t}(t),this.encoding){case"utf16le":this.text=s,this.end=a,n=4;break;case"utf8":this.fillLast=o,n=4;break;case"base64":this.text=u,this.end=c,n=3;break;default:return this.write=l,void(this.end=f)}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(n)}function i(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function o(t){var e=this.lastTotal-this.lastNeed,r=function(t,e,r){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==r?r:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function s(t,e){if((t.length-e)%2==0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function a(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function u(t,e){var r=(t.length-e)%3;return 0===r?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function c(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function l(t){return t.toString(this.encoding)}function f(t){return t&&t.length?this.write(t):""}t.StringDecoder=n,n.prototype.write=function(t){if(0===t.length)return"";var e,r;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0?(o>0&&(t.lastNeed=o-1),o):--n=0?(o>0&&(t.lastNeed=o-2),o):--n=0?(o>0&&(2===o?o=0:t.lastNeed=o-3),o):0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)},n.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}}}),Wr=cr(fr(),1),Gr=t=>{if("string"!=typeof t)throw new TypeError("invalid pattern");if(t.length>65536)throw new TypeError("pattern is too long")},qr={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},Hr=t=>t.replace(/[[\]\\-]/g,"\\$&"),Vr=t=>t.join(""),Yr=(t,e)=>{const r=e;if("["!==t.charAt(r))throw new Error("not in a brace expression");const n=[],i=[];let o=r+1,s=!1,a=!1,u=!1,c=!1,l=r,f="";t:for(;of?n.push(Hr(f)+"-"+Hr(e)):e===f&&n.push(Hr(e)),f="",o++):t.startsWith("-]",o+1)?(n.push(Hr(e+"-")),o+=2):t.startsWith("-",o+1)?(f=e,o+=2):(n.push(Hr(e)),o++)}else u=!0,o++}else c=!0,o++}if(le?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"),Jr=new Set(["!","?","+","*","@"]),Xr=t=>Jr.has(t),Zr="(?!\\.)",Qr=new Set(["[","."]),tn=new Set(["..","."]),en=new Set("().*{}+?[]^$\\!"),rn="[^/]",nn=rn+"*?",on=rn+"+?",sn=class t{type;#t;#e;#r=!1;#n=[];#i;#o;#s;#a=!1;#u;#c;#l=!1;constructor(t,e,r={}){this.type=t,t&&(this.#e=!0),this.#i=e,this.#t=this.#i?this.#i.#t:this,this.#u=this.#t===this?r:this.#t.#u,this.#s=this.#t===this?[]:this.#t.#s,"!"!==t||this.#t.#a||this.#s.push(this),this.#o=this.#i?this.#i.#n.length:0}get hasMagic(){if(void 0!==this.#e)return this.#e;for(const t of this.#n)if("string"!=typeof t&&(t.type||t.hasMagic))return this.#e=!0;return this.#e}toString(){return void 0!==this.#c?this.#c:this.type?this.#c=this.type+"("+this.#n.map((t=>String(t))).join("|")+")":this.#c=this.#n.map((t=>String(t))).join("")}#f(){if(this!==this.#t)throw new Error("should only call on root");if(this.#a)return this;let t;for(this.toString(),this.#a=!0;t=this.#s.pop();){if("!"!==t.type)continue;let e=t,r=e.#i;for(;r;){for(let n=e.#o+1;!r.type&&n"string"==typeof t?t:t.toJSON())):[this.type,...this.#n.map((t=>t.toJSON()))];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===this.#t||this.#t.#a&&"!"===this.#i?.type)&&t.push({}),t}isStart(){if(this.#t===this)return!0;if(!this.#i?.isStart())return!1;if(0===this.#o)return!0;const e=this.#i;for(let r=0;r{const[i,o,s,a]="string"==typeof r?t.#p(r,this.#e,n):r.toRegExpSource(e);return this.#e=this.#e||s,this.#r=this.#r||a,i})).join("");let o="";if(this.isStart()&&"string"==typeof this.#n[0]&&(1!==this.#n.length||!tn.has(this.#n[0]))){const t=Qr,n=r&&t.has(i.charAt(0))||i.startsWith("\\.")&&t.has(i.charAt(2))||i.startsWith("\\.\\.")&&t.has(i.charAt(4)),s=!r&&!e&&t.has(i.charAt(0));o=n?"(?!(?:^|/)\\.\\.?(?:$|/))":s?Zr:""}let s="";return this.isEnd()&&this.#t.#a&&"!"===this.#i?.type&&(s="(?:$|\\/)"),[o+i+s,Kr(i),this.#e=!!this.#e,this.#r]}const n="*"===this.type||"+"===this.type,i="!"===this.type?"(?:(?!(?:":"(?:";let o=this.#d(r);if(this.isStart()&&this.isEnd()&&!o&&"!"!==this.type){const t=this.toString();return this.#n=[t],this.type=null,this.#e=void 0,[t,Kr(this.toString()),!1,!1]}let s=!n||e||r?"":this.#d(!0);s===o&&(s=""),s&&(o=`(?:${o})(?:${s})*?`);let a="";return a="!"===this.type&&this.#l?(this.isStart()&&!r?Zr:"")+on:i+o+("!"===this.type?"))"+(!this.isStart()||r||e?"":Zr)+nn+")":"@"===this.type?")":"?"===this.type?")?":"+"===this.type&&s?")":"*"===this.type&&s?")?":`)${this.type}`),[a,Kr(o),this.#e=!!this.#e,this.#r]}#d(t){return this.#n.map((e=>{if("string"==typeof e)throw new Error("string type in extglob ast??");const[r,n,i,o]=e.toRegExpSource(t);return this.#r=this.#r||o,r})).filter((t=>!(this.isStart()&&this.isEnd()&&!t))).join("|")}static#p(t,e,r=!1){let n=!1,i="",o=!1;for(let s=0;se?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&"),un=(t,e,r={})=>(Gr(e),!(!r.nocomment&&"#"===e.charAt(0))&&new Rn(e,r).match(t)),cn=/^\*+([^+@!?\*\[\(]*)$/,ln=t=>e=>!e.startsWith(".")&&e.endsWith(t),fn=t=>e=>e.endsWith(t),hn=t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),pn=t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),dn=/^\*+\.\*+$/,mn=t=>!t.startsWith(".")&&t.includes("."),gn=t=>"."!==t&&".."!==t&&t.includes("."),yn=/^\.\*+$/,bn=t=>"."!==t&&".."!==t&&t.startsWith("."),vn=/^\*+$/,wn=t=>0!==t.length&&!t.startsWith("."),xn=t=>0!==t.length&&"."!==t&&".."!==t,En=/^\?+([^+@!?\*\[\(]*)?$/,An=([t,e=""])=>{const r=kn([t]);return e?(e=e.toLowerCase(),t=>r(t)&&t.toLowerCase().endsWith(e)):r},_n=([t,e=""])=>{const r=Cn([t]);return e?(e=e.toLowerCase(),t=>r(t)&&t.toLowerCase().endsWith(e)):r},Dn=([t,e=""])=>{const r=Cn([t]);return e?t=>r(t)&&t.endsWith(e):r},Sn=([t,e=""])=>{const r=kn([t]);return e?t=>r(t)&&t.endsWith(e):r},kn=([t])=>{const e=t.length;return t=>t.length===e&&!t.startsWith(".")},Cn=([t])=>{const e=t.length;return t=>t.length===e&&"."!==t&&".."!==t},Fn="object"==typeof process&&process?"object"==typeof process.env&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix";un.sep="win32"===Fn?"\\":"/";var On=Symbol("globstar **");un.GLOBSTAR=On,un.filter=(t,e={})=>r=>un(r,t,e);var jn=(t,e={})=>Object.assign({},t,e);un.defaults=t=>{if(!t||"object"!=typeof t||!Object.keys(t).length)return un;const e=un;return Object.assign(((r,n,i={})=>e(r,n,jn(t,i))),{Minimatch:class extends e.Minimatch{constructor(e,r={}){super(e,jn(t,r))}static defaults(r){return e.defaults(jn(t,r)).Minimatch}},AST:class extends e.AST{constructor(e,r,n={}){super(e,r,jn(t,n))}static fromGlob(r,n={}){return e.AST.fromGlob(r,jn(t,n))}},unescape:(r,n={})=>e.unescape(r,jn(t,n)),escape:(r,n={})=>e.escape(r,jn(t,n)),filter:(r,n={})=>e.filter(r,jn(t,n)),defaults:r=>e.defaults(jn(t,r)),makeRe:(r,n={})=>e.makeRe(r,jn(t,n)),braceExpand:(r,n={})=>e.braceExpand(r,jn(t,n)),match:(r,n,i={})=>e.match(r,n,jn(t,i)),sep:e.sep,GLOBSTAR:On})};var Tn=(t,e={})=>(Gr(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:(0,Wr.default)(t));un.braceExpand=Tn,un.makeRe=(t,e={})=>new Rn(t,e).makeRe(),un.match=(t,e,r={})=>{const n=new Rn(e,r);return t=t.filter((t=>n.match(t))),n.options.nonull&&!t.length&&t.push(e),t};var Bn=/[?*]|[+@!]\(.*?\)|\[|\]/,Rn=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(t,e={}){Gr(t),e=e||{},this.options=e,this.pattern=t,this.platform=e.platform||Fn,this.isWindows="win32"===this.platform,this.windowsPathsNoEscape=!!e.windowsPathsNoEscape||!1===e.allowWindowsEscape,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!e.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!e.nonegate,this.comment=!1,this.empty=!1,this.partial=!!e.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=void 0!==e.windowsNoMagicRoot?e.windowsNoMagicRoot:!(!this.isWindows||!this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const t of this.set)for(const e of t)if("string"!=typeof e)return!0;return!1}debug(...t){}make(){const t=this.pattern,e=this.options;if(!e.nocomment&&"#"===t.charAt(0))return void(this.comment=!0);if(!t)return void(this.empty=!0);this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],e.debug&&(this.debug=(...t)=>console.error(...t)),this.debug(this.pattern,this.globSet);const r=this.globSet.map((t=>this.slashSplit(t)));this.globParts=this.preprocess(r),this.debug(this.pattern,this.globParts);let n=this.globParts.map(((t,e,r)=>{if(this.isWindows&&this.windowsNoMagicRoot){const e=!(""!==t[0]||""!==t[1]||"?"!==t[2]&&Bn.test(t[2])||Bn.test(t[3])),r=/^[a-z]:/i.test(t[0]);if(e)return[...t.slice(0,4),...t.slice(4).map((t=>this.parse(t)))];if(r)return[t[0],...t.slice(1).map((t=>this.parse(t)))]}return t.map((t=>this.parse(t)))}));if(this.debug(this.pattern,n),this.set=n.filter((t=>-1===t.indexOf(!1))),this.isWindows)for(let t=0;t=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):t=e>=1?this.levelOneOptimize(t):this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map((t=>{let e=-1;for(;-1!==(e=t.indexOf("**",e+1));){let r=e;for(;"**"===t[r+1];)r++;r!==e&&t.splice(e,r-e)}return t}))}levelOneOptimize(t){return t.map((t=>(t=t.reduce(((t,e)=>{const r=t[t.length-1];return"**"===e&&"**"===r?t:".."===e&&r&&".."!==r&&"."!==r&&"**"!==r?(t.pop(),t):(t.push(e),t)}),[]),0===t.length?[""]:t)))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let e=!1;do{if(e=!1,!this.preserveMultipleSlashes){for(let r=1;rn&&r.splice(n+1,i-n);let o=r[n+1];const s=r[n+2],a=r[n+3];if(".."!==o)continue;if(!s||"."===s||".."===s||!a||"."===a||".."===a)continue;e=!0,r.splice(n,1);const u=r.slice(0);u[n]="**",t.push(u),n--}if(!this.preserveMultipleSlashes){for(let t=1;tt.length))}partsMatch(t,e,r=!1){let n=0,i=0,o=[],s="";for(;no?e=e.slice(s):o>s&&(t=t.slice(o)))}}const{optimizationLevel:i=1}=this.options;i>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var o=0,s=0,a=t.length,u=e.length;o>> no match, partial?",t,f,e,h),f!==a))}let i;if("string"==typeof c?(i=l===c,this.debug("string match",c,l,i)):(i=c.test(l),this.debug("pattern match",c,l,i)),!i)return!1}if(o===a&&s===u)return!0;if(o===a)return r;if(s===u)return o===a-1&&""===t[o];throw new Error("wtf?")}braceExpand(){return Tn(this.pattern,this.options)}parse(t){Gr(t);const e=this.options;if("**"===t)return On;if(""===t)return"";let r,n=null;(r=t.match(vn))?n=e.dot?xn:wn:(r=t.match(cn))?n=(e.nocase?e.dot?pn:hn:e.dot?fn:ln)(r[1]):(r=t.match(En))?n=(e.nocase?e.dot?_n:An:e.dot?Dn:Sn)(r):(r=t.match(dn))?n=e.dot?gn:mn:(r=t.match(yn))&&(n=bn);const i=sn.fromGlob(t,this.options).toMMPattern();return n?Object.assign(i,{test:n}):i}makeRe(){if(this.regexp||!1===this.regexp)return this.regexp;const t=this.set;if(!t.length)return this.regexp=!1,this.regexp;const e=this.options,r=e.noglobstar?"[^/]*?":e.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",n=new Set(e.nocase?["i"]:[]);let i=t.map((t=>{const e=t.map((t=>{if(t instanceof RegExp)for(const e of t.flags.split(""))n.add(e);return"string"==typeof t?t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):t===On?On:t._src}));return e.forEach(((t,n)=>{const i=e[n+1],o=e[n-1];t===On&&o!==On&&(void 0===o?void 0!==i&&i!==On?e[n+1]="(?:\\/|"+r+"\\/)?"+i:e[n]=r:void 0===i?e[n-1]=o+"(?:\\/|"+r+")?":i!==On&&(e[n-1]=o+"(?:\\/|\\/"+r+"\\/)"+i,e[n+1]=On))})),e.filter((t=>t!==On)).join("/")})).join("|");const[o,s]=t.length>1?["(?:",")"]:["",""];i="^"+o+i+s+"$",this.negate&&(i="^(?!"+i+").+$");try{this.regexp=new RegExp(i,[...n].join(""))}catch(t){this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,e=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return""===t;if("/"===t&&e)return!0;const r=this.options;this.isWindows&&(t=t.split("\\").join("/"));const n=this.slashSplit(t);this.debug(this.pattern,"split",n);const i=this.set;this.debug(this.pattern,"set",i);let o=n[n.length-1];if(!o)for(let t=n.length-2;!o&&t>=0;t--)o=n[t];for(let t=0;t{"function"==typeof $n.emitWarning?$n.emitWarning(t,e,r,n):console.error(`[${r}] ${e}: ${t}`)},In=globalThis.AbortController,Ln=globalThis.AbortSignal;if(void 0===In){Ln=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(t,e){this._onabort.push(e)}},In=class{constructor(){e()}signal=new Ln;abort(t){if(!this.signal.aborted){this.signal.reason=t,this.signal.aborted=!0;for(const e of this.signal._onabort)e(t);this.signal.onabort?.(t)}}};let t="1"!==$n.env?.LRU_CACHE_IGNORE_AC_WARNING;const e=()=>{t&&(t=!1,Mn("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}Symbol("type");var zn=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),Un=t=>zn(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?Wn:null:null,Wn=class extends Array{constructor(t){super(t),this.fill(0)}},Gn=class t{heap;length;static#m=!1;static create(e){const r=Un(e);if(!r)return[];t.#m=!0;const n=new t(e,r);return t.#m=!1,n}constructor(e,r){if(!t.#m)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(e),this.length=0}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}},qn=class t{#g;#y;#b;#v;#w;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#x;#E;#A;#_;#D;#S;#k;#C;#F;#O;#j;#T;#B;#R;#P;#N;#$;static unsafeExposeInternals(t){return{starts:t.#B,ttls:t.#R,sizes:t.#T,keyMap:t.#A,keyList:t.#_,valList:t.#D,next:t.#S,prev:t.#k,get head(){return t.#C},get tail(){return t.#F},free:t.#O,isBackgroundFetch:e=>t.#M(e),backgroundFetch:(e,r,n,i)=>t.#I(e,r,n,i),moveToTail:e=>t.#L(e),indexes:e=>t.#z(e),rindexes:e=>t.#U(e),isStale:e=>t.#W(e)}}get max(){return this.#g}get maxSize(){return this.#y}get calculatedSize(){return this.#E}get size(){return this.#x}get fetchMethod(){return this.#w}get dispose(){return this.#b}get disposeAfter(){return this.#v}constructor(e){const{max:r=0,ttl:n,ttlResolution:i=1,ttlAutopurge:o,updateAgeOnGet:s,updateAgeOnHas:a,allowStale:u,dispose:c,disposeAfter:l,noDisposeOnSet:f,noUpdateTTL:h,maxSize:p=0,maxEntrySize:d=0,sizeCalculation:m,fetchMethod:g,noDeleteOnFetchRejection:y,noDeleteOnStaleGet:b,allowStaleOnFetchRejection:v,allowStaleOnFetchAbort:w,ignoreFetchAbort:x}=e;if(0!==r&&!zn(r))throw new TypeError("max option must be a nonnegative integer");const E=r?Un(r):Array;if(!E)throw new Error("invalid max value: "+r);if(this.#g=r,this.#y=p,this.maxEntrySize=d||this.#y,this.sizeCalculation=m,this.sizeCalculation){if(!this.#y&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if("function"!=typeof this.sizeCalculation)throw new TypeError("sizeCalculation set to non-function")}if(void 0!==g&&"function"!=typeof g)throw new TypeError("fetchMethod must be a function if specified");if(this.#w=g,this.#N=!!g,this.#A=new Map,this.#_=new Array(r).fill(void 0),this.#D=new Array(r).fill(void 0),this.#S=new E(r),this.#k=new E(r),this.#C=0,this.#F=0,this.#O=Gn.create(r),this.#x=0,this.#E=0,"function"==typeof c&&(this.#b=c),"function"==typeof l?(this.#v=l,this.#j=[]):(this.#v=void 0,this.#j=void 0),this.#P=!!this.#b,this.#$=!!this.#v,this.noDisposeOnSet=!!f,this.noUpdateTTL=!!h,this.noDeleteOnFetchRejection=!!y,this.allowStaleOnFetchRejection=!!v,this.allowStaleOnFetchAbort=!!w,this.ignoreFetchAbort=!!x,0!==this.maxEntrySize){if(0!==this.#y&&!zn(this.#y))throw new TypeError("maxSize must be a positive integer if specified");if(!zn(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#G()}if(this.allowStale=!!u,this.noDeleteOnStaleGet=!!b,this.updateAgeOnGet=!!s,this.updateAgeOnHas=!!a,this.ttlResolution=zn(i)||0===i?i:1,this.ttlAutopurge=!!o,this.ttl=n||0,this.ttl){if(!zn(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#q()}if(0===this.#g&&0===this.ttl&&0===this.#y)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#g&&!this.#y){const e="LRU_CACHE_UNBOUNDED";(t=>!Nn.has(t))(e)&&(Nn.add(e),Mn("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",e,t))}}getRemainingTTL(t){return this.#A.has(t)?1/0:0}#q(){const t=new Wn(this.#g),e=new Wn(this.#g);this.#R=t,this.#B=e,this.#H=(r,n,i=Pn.now())=>{if(e[r]=0!==n?i:0,t[r]=n,0!==n&&this.ttlAutopurge){const t=setTimeout((()=>{this.#W(r)&&this.delete(this.#_[r])}),n+1);t.unref&&t.unref()}},this.#V=r=>{e[r]=0!==t[r]?Pn.now():0},this.#Y=(i,o)=>{if(t[o]){const s=t[o],a=e[o];i.ttl=s,i.start=a,i.now=r||n();const u=i.now-a;i.remainingTTL=s-u}};let r=0;const n=()=>{const t=Pn.now();if(this.ttlResolution>0){r=t;const e=setTimeout((()=>r=0),this.ttlResolution);e.unref&&e.unref()}return t};this.getRemainingTTL=i=>{const o=this.#A.get(i);if(void 0===o)return 0;const s=t[o],a=e[o];return 0===s||0===a?1/0:s-((r||n())-a)},this.#W=i=>0!==t[i]&&0!==e[i]&&(r||n())-e[i]>t[i]}#V=()=>{};#Y=()=>{};#H=()=>{};#W=()=>!1;#G(){const t=new Wn(this.#g);this.#E=0,this.#T=t,this.#K=e=>{this.#E-=t[e],t[e]=0},this.#J=(t,e,r,n)=>{if(this.#M(e))return 0;if(!zn(r)){if(!n)throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");if("function"!=typeof n)throw new TypeError("sizeCalculation must be a function");if(r=n(e,t),!zn(r))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return r},this.#X=(e,r,n)=>{if(t[e]=r,this.#y){const r=this.#y-t[e];for(;this.#E>r;)this.#Z(!0)}this.#E+=t[e],n&&(n.entrySize=r,n.totalCalculatedSize=this.#E)}}#K=t=>{};#X=(t,e,r)=>{};#J=(t,e,r,n)=>{if(r||n)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#z({allowStale:t=this.allowStale}={}){if(this.#x)for(let e=this.#F;this.#Q(e)&&(!t&&this.#W(e)||(yield e),e!==this.#C);)e=this.#k[e]}*#U({allowStale:t=this.allowStale}={}){if(this.#x)for(let e=this.#C;this.#Q(e)&&(!t&&this.#W(e)||(yield e),e!==this.#F);)e=this.#S[e]}#Q(t){return void 0!==t&&this.#A.get(this.#_[t])===t}*entries(){for(const t of this.#z())void 0===this.#D[t]||void 0===this.#_[t]||this.#M(this.#D[t])||(yield[this.#_[t],this.#D[t]])}*rentries(){for(const t of this.#U())void 0===this.#D[t]||void 0===this.#_[t]||this.#M(this.#D[t])||(yield[this.#_[t],this.#D[t]])}*keys(){for(const t of this.#z()){const e=this.#_[t];void 0===e||this.#M(this.#D[t])||(yield e)}}*rkeys(){for(const t of this.#U()){const e=this.#_[t];void 0===e||this.#M(this.#D[t])||(yield e)}}*values(){for(const t of this.#z())void 0===this.#D[t]||this.#M(this.#D[t])||(yield this.#D[t])}*rvalues(){for(const t of this.#U())void 0===this.#D[t]||this.#M(this.#D[t])||(yield this.#D[t])}[Symbol.iterator](){return this.entries()}find(t,e={}){for(const r of this.#z()){const n=this.#D[r],i=this.#M(n)?n.__staleWhileFetching:n;if(void 0!==i&&t(i,this.#_[r],this))return this.get(this.#_[r],e)}}forEach(t,e=this){for(const r of this.#z()){const n=this.#D[r],i=this.#M(n)?n.__staleWhileFetching:n;void 0!==i&&t.call(e,i,this.#_[r],this)}}rforEach(t,e=this){for(const r of this.#U()){const n=this.#D[r],i=this.#M(n)?n.__staleWhileFetching:n;void 0!==i&&t.call(e,i,this.#_[r],this)}}purgeStale(){let t=!1;for(const e of this.#U({allowStale:!0}))this.#W(e)&&(this.delete(this.#_[e]),t=!0);return t}dump(){const t=[];for(const e of this.#z({allowStale:!0})){const r=this.#_[e],n=this.#D[e],i=this.#M(n)?n.__staleWhileFetching:n;if(void 0===i||void 0===r)continue;const o={value:i};if(this.#R&&this.#B){o.ttl=this.#R[e];const t=Pn.now()-this.#B[e];o.start=Math.floor(Date.now()-t)}this.#T&&(o.size=this.#T[e]),t.unshift([r,o])}return t}load(t){this.clear();for(const[e,r]of t){if(r.start){const t=Date.now()-r.start;r.start=Pn.now()-t}this.set(e,r.value,r)}}set(t,e,r={}){if(void 0===e)return this.delete(t),this;const{ttl:n=this.ttl,start:i,noDisposeOnSet:o=this.noDisposeOnSet,sizeCalculation:s=this.sizeCalculation,status:a}=r;let{noUpdateTTL:u=this.noUpdateTTL}=r;const c=this.#J(t,e,r.size||0,s);if(this.maxEntrySize&&c>this.maxEntrySize)return a&&(a.set="miss",a.maxEntrySizeExceeded=!0),this.delete(t),this;let l=0===this.#x?void 0:this.#A.get(t);if(void 0===l)l=0===this.#x?this.#F:0!==this.#O.length?this.#O.pop():this.#x===this.#g?this.#Z(!1):this.#x,this.#_[l]=t,this.#D[l]=e,this.#A.set(t,l),this.#S[this.#F]=l,this.#k[l]=this.#F,this.#F=l,this.#x++,this.#X(l,c,a),a&&(a.set="add"),u=!1;else{this.#L(l);const r=this.#D[l];if(e!==r){if(this.#N&&this.#M(r)){r.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:e}=r;void 0===e||o||(this.#P&&this.#b?.(e,t,"set"),this.#$&&this.#j?.push([e,t,"set"]))}else o||(this.#P&&this.#b?.(r,t,"set"),this.#$&&this.#j?.push([r,t,"set"]));if(this.#K(l),this.#X(l,c,a),this.#D[l]=e,a){a.set="replace";const t=r&&this.#M(r)?r.__staleWhileFetching:r;void 0!==t&&(a.oldValue=t)}}else a&&(a.set="update")}if(0===n||this.#R||this.#q(),this.#R&&(u||this.#H(l,n,i),a&&this.#Y(a,l)),!o&&this.#$&&this.#j){const t=this.#j;let e;for(;e=t?.shift();)this.#v?.(...e)}return this}pop(){try{for(;this.#x;){const t=this.#D[this.#C];if(this.#Z(!0),this.#M(t)){if(t.__staleWhileFetching)return t.__staleWhileFetching}else if(void 0!==t)return t}}finally{if(this.#$&&this.#j){const t=this.#j;let e;for(;e=t?.shift();)this.#v?.(...e)}}}#Z(t){const e=this.#C,r=this.#_[e],n=this.#D[e];return this.#N&&this.#M(n)?n.__abortController.abort(new Error("evicted")):(this.#P||this.#$)&&(this.#P&&this.#b?.(n,r,"evict"),this.#$&&this.#j?.push([n,r,"evict"])),this.#K(e),t&&(this.#_[e]=void 0,this.#D[e]=void 0,this.#O.push(e)),1===this.#x?(this.#C=this.#F=0,this.#O.length=0):this.#C=this.#S[e],this.#A.delete(r),this.#x--,e}has(t,e={}){const{updateAgeOnHas:r=this.updateAgeOnHas,status:n}=e,i=this.#A.get(t);if(void 0!==i){const t=this.#D[i];if(this.#M(t)&&void 0===t.__staleWhileFetching)return!1;if(!this.#W(i))return r&&this.#V(i),n&&(n.has="hit",this.#Y(n,i)),!0;n&&(n.has="stale",this.#Y(n,i))}else n&&(n.has="miss");return!1}peek(t,e={}){const{allowStale:r=this.allowStale}=e,n=this.#A.get(t);if(void 0!==n&&(r||!this.#W(n))){const t=this.#D[n];return this.#M(t)?t.__staleWhileFetching:t}}#I(t,e,r,n){const i=void 0===e?void 0:this.#D[e];if(this.#M(i))return i;const o=new In,{signal:s}=r;s?.addEventListener("abort",(()=>o.abort(s.reason)),{signal:o.signal});const a={signal:o.signal,options:r,context:n},u=(n,i=!1)=>{const{aborted:s}=o.signal,u=r.ignoreFetchAbort&&void 0!==n;if(r.status&&(s&&!i?(r.status.fetchAborted=!0,r.status.fetchError=o.signal.reason,u&&(r.status.fetchAbortIgnored=!0)):r.status.fetchResolved=!0),s&&!u&&!i)return c(o.signal.reason);const f=l;return this.#D[e]===l&&(void 0===n?f.__staleWhileFetching?this.#D[e]=f.__staleWhileFetching:this.delete(t):(r.status&&(r.status.fetchUpdated=!0),this.set(t,n,a.options))),n},c=n=>{const{aborted:i}=o.signal,s=i&&r.allowStaleOnFetchAbort,a=s||r.allowStaleOnFetchRejection,u=a||r.noDeleteOnFetchRejection,c=l;if(this.#D[e]===l&&(u&&void 0!==c.__staleWhileFetching?s||(this.#D[e]=c.__staleWhileFetching):this.delete(t)),a)return r.status&&void 0!==c.__staleWhileFetching&&(r.status.returnedStale=!0),c.__staleWhileFetching;if(c.__returned===c)throw n};r.status&&(r.status.fetchDispatched=!0);const l=new Promise(((e,n)=>{const s=this.#w?.(t,i,a);s&&s instanceof Promise&&s.then((t=>e(void 0===t?void 0:t)),n),o.signal.addEventListener("abort",(()=>{r.ignoreFetchAbort&&!r.allowStaleOnFetchAbort||(e(void 0),r.allowStaleOnFetchAbort&&(e=t=>u(t,!0)))}))})).then(u,(t=>(r.status&&(r.status.fetchRejected=!0,r.status.fetchError=t),c(t)))),f=Object.assign(l,{__abortController:o,__staleWhileFetching:i,__returned:void 0});return void 0===e?(this.set(t,f,{...a.options,status:void 0}),e=this.#A.get(t)):this.#D[e]=f,f}#M(t){if(!this.#N)return!1;const e=t;return!!e&&e instanceof Promise&&e.hasOwnProperty("__staleWhileFetching")&&e.__abortController instanceof In}async fetch(t,e={}){const{allowStale:r=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,ttl:o=this.ttl,noDisposeOnSet:s=this.noDisposeOnSet,size:a=0,sizeCalculation:u=this.sizeCalculation,noUpdateTTL:c=this.noUpdateTTL,noDeleteOnFetchRejection:l=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:f=this.allowStaleOnFetchRejection,ignoreFetchAbort:h=this.ignoreFetchAbort,allowStaleOnFetchAbort:p=this.allowStaleOnFetchAbort,context:d,forceRefresh:m=!1,status:g,signal:y}=e;if(!this.#N)return g&&(g.fetch="get"),this.get(t,{allowStale:r,updateAgeOnGet:n,noDeleteOnStaleGet:i,status:g});const b={allowStale:r,updateAgeOnGet:n,noDeleteOnStaleGet:i,ttl:o,noDisposeOnSet:s,size:a,sizeCalculation:u,noUpdateTTL:c,noDeleteOnFetchRejection:l,allowStaleOnFetchRejection:f,allowStaleOnFetchAbort:p,ignoreFetchAbort:h,status:g,signal:y};let v=this.#A.get(t);if(void 0===v){g&&(g.fetch="miss");const e=this.#I(t,v,b,d);return e.__returned=e}{const e=this.#D[v];if(this.#M(e)){const t=r&&void 0!==e.__staleWhileFetching;return g&&(g.fetch="inflight",t&&(g.returnedStale=!0)),t?e.__staleWhileFetching:e.__returned=e}const i=this.#W(v);if(!m&&!i)return g&&(g.fetch="hit"),this.#L(v),n&&this.#V(v),g&&this.#Y(g,v),e;const o=this.#I(t,v,b,d),s=void 0!==o.__staleWhileFetching&&r;return g&&(g.fetch=i?"stale":"refresh",s&&i&&(g.returnedStale=!0)),s?o.__staleWhileFetching:o.__returned=o}}get(t,e={}){const{allowStale:r=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,status:o}=e,s=this.#A.get(t);if(void 0!==s){const e=this.#D[s],a=this.#M(e);return o&&this.#Y(o,s),this.#W(s)?(o&&(o.get="stale"),a?(o&&r&&void 0!==e.__staleWhileFetching&&(o.returnedStale=!0),r?e.__staleWhileFetching:void 0):(i||this.delete(t),o&&r&&(o.returnedStale=!0),r?e:void 0)):(o&&(o.get="hit"),a?e.__staleWhileFetching:(this.#L(s),n&&this.#V(s),e))}o&&(o.get="miss")}#tt(t,e){this.#k[e]=t,this.#S[t]=e}#L(t){t!==this.#F&&(t===this.#C?this.#C=this.#S[t]:this.#tt(this.#k[t],this.#S[t]),this.#tt(this.#F,t),this.#F=t)}delete(t){let e=!1;if(0!==this.#x){const r=this.#A.get(t);if(void 0!==r)if(e=!0,1===this.#x)this.clear();else{this.#K(r);const e=this.#D[r];this.#M(e)?e.__abortController.abort(new Error("deleted")):(this.#P||this.#$)&&(this.#P&&this.#b?.(e,t,"delete"),this.#$&&this.#j?.push([e,t,"delete"])),this.#A.delete(t),this.#_[r]=void 0,this.#D[r]=void 0,r===this.#F?this.#F=this.#k[r]:r===this.#C?this.#C=this.#S[r]:(this.#S[this.#k[r]]=this.#S[r],this.#k[this.#S[r]]=this.#k[r]),this.#x--,this.#O.push(r)}}if(this.#$&&this.#j?.length){const t=this.#j;let e;for(;e=t?.shift();)this.#v?.(...e)}return e}clear(){for(const t of this.#U({allowStale:!0})){const e=this.#D[t];if(this.#M(e))e.__abortController.abort(new Error("deleted"));else{const r=this.#_[t];this.#P&&this.#b?.(e,r,"delete"),this.#$&&this.#j?.push([e,r,"delete"])}}if(this.#A.clear(),this.#D.fill(void 0),this.#_.fill(void 0),this.#R&&this.#B&&(this.#R.fill(0),this.#B.fill(0)),this.#T&&this.#T.fill(0),this.#C=0,this.#F=0,this.#O.length=0,this.#E=0,this.#x=0,this.#$&&this.#j){const t=this.#j;let e;for(;e=t?.shift();)this.#v?.(...e)}}},Hn=cr(mr(),1),Vn=cr(Rr(),1),Yn=cr(Pr(),1),Kn=cr($r(),1),Jn=cr(Ur(),1),Xn="object"==typeof process&&process?process:{stdout:null,stderr:null},Zn=t=>!!t&&"object"==typeof t&&(t instanceof Ni||t instanceof Kn.default||Qn(t)||ti(t)),Qn=t=>!!t&&"object"==typeof t&&t instanceof Yn.EventEmitter&&"function"==typeof t.pipe&&t.pipe!==Kn.default.Writable.prototype.pipe,ti=t=>!!t&&"object"==typeof t&&t instanceof Yn.EventEmitter&&"function"==typeof t.write&&"function"==typeof t.end,ei=Symbol("EOF"),ri=Symbol("maybeEmitEnd"),ni=Symbol("emittedEnd"),ii=Symbol("emittingEnd"),oi=Symbol("emittedError"),si=Symbol("closed"),ai=Symbol("read"),ui=Symbol("flush"),ci=Symbol("flushChunk"),li=Symbol("encoding"),fi=Symbol("decoder"),hi=Symbol("flowing"),pi=Symbol("paused"),di=Symbol("resume"),mi=Symbol("buffer"),gi=Symbol("pipes"),yi=Symbol("bufferLength"),bi=Symbol("bufferPush"),vi=Symbol("bufferShift"),wi=Symbol("objectMode"),xi=Symbol("destroyed"),Ei=Symbol("error"),Ai=Symbol("emitData"),_i=Symbol("emitEnd"),Di=Symbol("emitEnd2"),Si=Symbol("async"),ki=Symbol("abort"),Ci=Symbol("aborted"),Fi=Symbol("signal"),Oi=Symbol("dataListeners"),ji=Symbol("discarded"),Ti=t=>Promise.resolve().then(t),Bi=t=>t(),Ri=class{src;dest;opts;ondrain;constructor(t,e,r){this.src=t,this.dest=e,this.opts=r,this.ondrain=()=>t[di](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(t){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Pi=class extends Ri{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(t,e,r){super(t,e,r),this.proxyErrors=t=>e.emit("error",t),t.on("error",this.proxyErrors)}},Ni=class extends Yn.EventEmitter{[hi]=!1;[pi]=!1;[gi]=[];[mi]=[];[wi];[li];[Si];[fi];[ei]=!1;[ni]=!1;[ii]=!1;[si]=!1;[oi]=null;[yi]=0;[xi]=!1;[Fi];[Ci]=!1;[Oi]=0;[ji]=!1;writable=!0;readable=!0;constructor(...t){const e=t[0]||{};if(super(),e.objectMode&&"string"==typeof e.encoding)throw new TypeError("Encoding and objectMode may not be used together");var r;e.objectMode?(this[wi]=!0,this[li]=null):!(r=e).objectMode&&r.encoding&&"buffer"!==r.encoding?(this[li]=e.encoding,this[wi]=!1):(this[wi]=!1,this[li]=null),this[Si]=!!e.async,this[fi]=this[li]?new Jn.StringDecoder(this[li]):null,e&&!0===e.debugExposeBuffer&&Object.defineProperty(this,"buffer",{get:()=>this[mi]}),e&&!0===e.debugExposePipes&&Object.defineProperty(this,"pipes",{get:()=>this[gi]});const{signal:n}=e;n&&(this[Fi]=n,n.aborted?this[ki]():n.addEventListener("abort",(()=>this[ki]())))}get bufferLength(){return this[yi]}get encoding(){return this[li]}set encoding(t){throw new Error("Encoding must be set at instantiation time")}setEncoding(t){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[wi]}set objectMode(t){throw new Error("objectMode must be set at instantiation time")}get async(){return this[Si]}set async(t){this[Si]=this[Si]||!!t}[ki](){this[Ci]=!0,this.emit("abort",this[Fi]?.reason),this.destroy(this[Fi]?.reason)}get aborted(){return this[Ci]}set aborted(t){}write(t,e,r){if(this[Ci])return!1;if(this[ei])throw new Error("write after end");if(this[xi])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;"function"==typeof e&&(r=e,e="utf8"),e||(e="utf8");const n=this[Si]?Ti:Bi;if(!this[wi]&&!Buffer.isBuffer(t))if((t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t))(t))t=Buffer.from(t.buffer,t.byteOffset,t.byteLength);else if((t=>t instanceof ArrayBuffer||!!t&&"object"==typeof t&&t.constructor&&"ArrayBuffer"===t.constructor.name&&t.byteLength>=0)(t))t=Buffer.from(t);else if("string"!=typeof t)throw new Error("Non-contiguous data written to non-objectMode stream");return this[wi]?(this[hi]&&0!==this[yi]&&this[ui](!0),this[hi]?this.emit("data",t):this[bi](t),0!==this[yi]&&this.emit("readable"),r&&n(r),this[hi]):t.length?("string"!=typeof t||e===this[li]&&!this[fi]?.lastNeed||(t=Buffer.from(t,e)),Buffer.isBuffer(t)&&this[li]&&(t=this[fi].write(t)),this[hi]&&0!==this[yi]&&this[ui](!0),this[hi]?this.emit("data",t):this[bi](t),0!==this[yi]&&this.emit("readable"),r&&n(r),this[hi]):(0!==this[yi]&&this.emit("readable"),r&&n(r),this[hi])}read(t){if(this[xi])return null;if(this[ji]=!1,0===this[yi]||0===t||t&&t>this[yi])return this[ri](),null;this[wi]&&(t=null),this[mi].length>1&&!this[wi]&&(this[mi]=[this[li]?this[mi].join(""):Buffer.concat(this[mi],this[yi])]);const e=this[ai](t||null,this[mi][0]);return this[ri](),e}[ai](t,e){if(this[wi])this[vi]();else{const r=e;t===r.length||null===t?this[vi]():"string"==typeof r?(this[mi][0]=r.slice(t),e=r.slice(0,t),this[yi]-=t):(this[mi][0]=r.subarray(t),e=r.subarray(0,t),this[yi]-=t)}return this.emit("data",e),this[mi].length||this[ei]||this.emit("drain"),e}end(t,e,r){return"function"==typeof t&&(r=t,t=void 0),"function"==typeof e&&(r=e,e="utf8"),void 0!==t&&this.write(t,e),r&&this.once("end",r),this[ei]=!0,this.writable=!1,!this[hi]&&this[pi]||this[ri](),this}[di](){this[xi]||(this[Oi]||this[gi].length||(this[ji]=!0),this[pi]=!1,this[hi]=!0,this.emit("resume"),this[mi].length?this[ui]():this[ei]?this[ri]():this.emit("drain"))}resume(){return this[di]()}pause(){this[hi]=!1,this[pi]=!0,this[ji]=!1}get destroyed(){return this[xi]}get flowing(){return this[hi]}get paused(){return this[pi]}[bi](t){this[wi]?this[yi]+=1:this[yi]+=t.length,this[mi].push(t)}[vi](){return this[wi]?this[yi]-=1:this[yi]-=this[mi][0].length,this[mi].shift()}[ui](t=!1){do{}while(this[ci](this[vi]())&&this[mi].length);t||this[mi].length||this[ei]||this.emit("drain")}[ci](t){return this.emit("data",t),this[hi]}pipe(t,e){if(this[xi])return t;this[ji]=!1;const r=this[ni];return e=e||{},t===Xn.stdout||t===Xn.stderr?e.end=!1:e.end=!1!==e.end,e.proxyErrors=!!e.proxyErrors,r?e.end&&t.end():(this[gi].push(e.proxyErrors?new Pi(this,t,e):new Ri(this,t,e)),this[Si]?Ti((()=>this[di]())):this[di]()),t}unpipe(t){const e=this[gi].find((e=>e.dest===t));e&&(1===this[gi].length?(this[hi]&&0===this[Oi]&&(this[hi]=!1),this[gi]=[]):this[gi].splice(this[gi].indexOf(e),1),e.unpipe())}addListener(t,e){return this.on(t,e)}on(t,e){const r=super.on(t,e);if("data"===t)this[ji]=!1,this[Oi]++,this[gi].length||this[hi]||this[di]();else if("readable"===t&&0!==this[yi])super.emit("readable");else if((t=>"end"===t||"finish"===t||"prefinish"===t)(t)&&this[ni])super.emit(t),this.removeAllListeners(t);else if("error"===t&&this[oi]){const t=e;this[Si]?Ti((()=>t.call(this,this[oi]))):t.call(this,this[oi])}return r}removeListener(t,e){return this.off(t,e)}off(t,e){const r=super.off(t,e);return"data"===t&&(this[Oi]=this.listeners("data").length,0!==this[Oi]||this[ji]||this[gi].length||(this[hi]=!1)),r}removeAllListeners(t){const e=super.removeAllListeners(t);return"data"!==t&&void 0!==t||(this[Oi]=0,this[ji]||this[gi].length||(this[hi]=!1)),e}get emittedEnd(){return this[ni]}[ri](){this[ii]||this[ni]||this[xi]||0!==this[mi].length||!this[ei]||(this[ii]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[si]&&this.emit("close"),this[ii]=!1)}emit(t,...e){const r=e[0];if("error"!==t&&"close"!==t&&t!==xi&&this[xi])return!1;if("data"===t)return!(!this[wi]&&!r)&&(this[Si]?(Ti((()=>this[Ai](r))),!0):this[Ai](r));if("end"===t)return this[_i]();if("close"===t){if(this[si]=!0,!this[ni]&&!this[xi])return!1;const t=super.emit("close");return this.removeAllListeners("close"),t}if("error"===t){this[oi]=r,super.emit(Ei,r);const t=!(this[Fi]&&!this.listeners("error").length)&&super.emit("error",r);return this[ri](),t}if("resume"===t){const t=super.emit("resume");return this[ri](),t}if("finish"===t||"prefinish"===t){const e=super.emit(t);return this.removeAllListeners(t),e}const n=super.emit(t,...e);return this[ri](),n}[Ai](t){for(const e of this[gi])!1===e.dest.write(t)&&this.pause();const e=!this[ji]&&super.emit("data",t);return this[ri](),e}[_i](){return!this[ni]&&(this[ni]=!0,this.readable=!1,this[Si]?(Ti((()=>this[Di]())),!0):this[Di]())}[Di](){if(this[fi]){const t=this[fi].end();if(t){for(const e of this[gi])e.dest.write(t);this[ji]||super.emit("data",t)}}for(const t of this[gi])t.end();const t=super.emit("end");return this.removeAllListeners("end"),t}async collect(){const t=Object.assign([],{dataLength:0});this[wi]||(t.dataLength=0);const e=this.promise();return this.on("data",(e=>{t.push(e),this[wi]||(t.dataLength+=e.length)})),await e,t}async concat(){if(this[wi])throw new Error("cannot concat in objectMode");const t=await this.collect();return this[li]?t.join(""):Buffer.concat(t,t.dataLength)}async promise(){return new Promise(((t,e)=>{this.on(xi,(()=>e(new Error("stream destroyed")))),this.on("error",(t=>e(t))),this.on("end",(()=>t()))}))}[Symbol.asyncIterator](){this[ji]=!1;let t=!1;const e=async()=>(this.pause(),t=!0,{value:void 0,done:!0});return{next:()=>{if(t)return e();const r=this.read();if(null!==r)return Promise.resolve({done:!1,value:r});if(this[ei])return e();let n,i;const o=t=>{this.off("data",s),this.off("end",a),this.off(xi,u),e(),i(t)},s=t=>{this.off("error",o),this.off("end",a),this.off(xi,u),this.pause(),n({value:t,done:!!this[ei]})},a=()=>{this.off("error",o),this.off("data",s),this.off(xi,u),e(),n({done:!0,value:void 0})},u=()=>o(new Error("stream destroyed"));return new Promise(((t,e)=>{i=e,n=t,this.once(xi,u),this.once("error",o),this.once("end",a),this.once("data",s)}))},throw:e,return:e,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[ji]=!1;let t=!1;const e=()=>(this.pause(),this.off(Ei,e),this.off(xi,e),this.off("end",e),t=!0,{done:!0,value:void 0});return this.once("end",e),this.once(Ei,e),this.once(xi,e),{next:()=>{if(t)return e();const r=this.read();return null===r?e():{done:!1,value:r}},throw:e,return:e,[Symbol.iterator](){return this}}}destroy(t){return this[xi]?(t?this.emit("error",t):this.emit(xi),this):(this[xi]=!0,this[ji]=!0,this[mi].length=0,this[yi]=0,"function"!=typeof this.close||this[si]||this.close(),t?this.emit("error",t):this.emit(xi),this)}static get isStream(){return Zn}},$i=/^\\\\\?\\([a-z]:)\\?$/i,Mi=/[\\\/]/,Ii=10,Li=15,zi=-16,Ui=128,Wi=t=>t.isFile()?8:t.isDirectory()?4:t.isSymbolicLink()?Ii:t.isCharacterDevice()?2:t.isBlockDevice()?6:t.isSocket()?12:t.isFIFO()?1:0,Gi=new Map,qi=t=>{const e=Gi.get(t);if(e)return e;const r=t.normalize("NFKD");return Gi.set(t,r),r},Hi=new Map,Vi=t=>{const e=Hi.get(t);if(e)return e;const r=qi(t.toLowerCase());return Hi.set(t,r),r},Yi=class extends qn{constructor(){super({max:256})}},Ki=class extends qn{constructor(t=16384){super({maxSize:t,sizeCalculation:t=>t.length+1})}},Ji=Symbol("PathScurry setAsCwd"),Xi=class{name;root;roots;parent;nocase;#et;#rt;get dev(){return this.#rt}#nt;get mode(){return this.#nt}#it;get nlink(){return this.#it}#ot;get uid(){return this.#ot}#st;get gid(){return this.#st}#at;get rdev(){return this.#at}#ut;get blksize(){return this.#ut}#ct;get ino(){return this.#ct}#x;get size(){return this.#x}#lt;get blocks(){return this.#lt}#ft;get atimeMs(){return this.#ft}#ht;get mtimeMs(){return this.#ht}#pt;get ctimeMs(){return this.#pt}#dt;get birthtimeMs(){return this.#dt}#mt;get atime(){return this.#mt}#gt;get mtime(){return this.#gt}#yt;get ctime(){return this.#yt}#bt;get birthtime(){return this.#bt}#vt;#wt;#xt;#Et;#At;#_t;#Dt;#St;#kt;#Ct;get path(){return(this.parent||this).fullpath()}constructor(t,e=0,r,n,i,o,s){this.name=t,this.#vt=i?Vi(t):qi(t),this.#Dt=1023&e,this.nocase=i,this.roots=n,this.root=r||this,this.#St=o,this.#xt=s.fullpath,this.#At=s.relative,this.#_t=s.relativePosix,this.parent=s.parent,this.parent?this.#et=this.parent.#et:this.#et=s.fs}depth(){return void 0!==this.#wt?this.#wt:this.parent?this.#wt=this.parent.depth()+1:this.#wt=0}childrenCache(){return this.#St}resolve(t){if(!t)return this;const e=this.getRootString(t),r=t.substring(e.length).split(this.splitSep);return e?this.getRoot(e).#Ft(r):this.#Ft(r)}#Ft(t){let e=this;for(const r of t)e=e.child(r);return e}children(){const t=this.#St.get(this);if(t)return t;const e=Object.assign([],{provisional:0});return this.#St.set(this,e),this.#Dt&=-17,e}child(t,e){if(""===t||"."===t)return this;if(".."===t)return this.parent||this;const r=this.children(),n=this.nocase?Vi(t):qi(t);for(const t of r)if(t.#vt===n)return t;const i=this.parent?this.sep:"",o=this.#xt?this.#xt+i+t:void 0,s=this.newChild(t,0,{...e,parent:this,fullpath:o});return this.canReaddir()||(s.#Dt|=Ui),r.push(s),s}relative(){if(void 0!==this.#At)return this.#At;const t=this.name,e=this.parent;if(!e)return this.#At=this.name;const r=e.relative();return r+(r&&e.parent?this.sep:"")+t}relativePosix(){if("/"===this.sep)return this.relative();if(void 0!==this.#_t)return this.#_t;const t=this.name,e=this.parent;if(!e)return this.#_t=this.fullpathPosix();const r=e.relativePosix();return r+(r&&e.parent?"/":"")+t}fullpath(){if(void 0!==this.#xt)return this.#xt;const t=this.name,e=this.parent;if(!e)return this.#xt=this.name;const r=e.fullpath()+(e.parent?this.sep:"")+t;return this.#xt=r}fullpathPosix(){if(void 0!==this.#Et)return this.#Et;if("/"===this.sep)return this.#Et=this.fullpath();if(!this.parent){const t=this.fullpath().replace(/\\/g,"/");return/^[a-z]:\//i.test(t)?this.#Et=`//?/${t}`:this.#Et=t}const t=this.parent,e=t.fullpathPosix(),r=e+(e&&t.parent?"/":"")+this.name;return this.#Et=r}isUnknown(){return!(this.#Dt&Li)}isType(t){return this[`is${t}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return 8==(this.#Dt&Li)}isDirectory(){return 4==(this.#Dt&Li)}isCharacterDevice(){return 2==(this.#Dt&Li)}isBlockDevice(){return 6==(this.#Dt&Li)}isFIFO(){return 1==(this.#Dt&Li)}isSocket(){return 12==(this.#Dt&Li)}isSymbolicLink(){return(this.#Dt&Ii)===Ii}lstatCached(){return 32&this.#Dt?this:void 0}readlinkCached(){return this.#kt}realpathCached(){return this.#Ct}readdirCached(){const t=this.children();return t.slice(0,t.provisional)}canReadlink(){if(this.#kt)return!0;if(!this.parent)return!1;const t=this.#Dt&Li;return!(0!==t&&t!==Ii||256&this.#Dt||this.#Dt&Ui)}calledReaddir(){return!!(16&this.#Dt)}isENOENT(){return!!(this.#Dt&Ui)}isNamed(t){return this.nocase?this.#vt===Vi(t):this.#vt===qi(t)}async readlink(){const t=this.#kt;if(t)return t;if(this.canReadlink()&&this.parent)try{const t=await this.#et.promises.readlink(this.fullpath()),e=this.parent.resolve(t);if(e)return this.#kt=e}catch(t){return void this.#Ot(t.code)}}readlinkSync(){const t=this.#kt;if(t)return t;if(this.canReadlink()&&this.parent)try{const t=this.#et.readlinkSync(this.fullpath()),e=this.parent.resolve(t);if(e)return this.#kt=e}catch(t){return void this.#Ot(t.code)}}#jt(t){this.#Dt|=16;for(let e=t.provisional;ee(null,t)))}readdirCB(t,e=!1){if(!this.canReaddir())return void(e?t(null,[]):queueMicrotask((()=>t(null,[]))));const r=this.children();if(this.calledReaddir()){const n=r.slice(0,r.provisional);return void(e?t(null,n):queueMicrotask((()=>t(null,n))))}if(this.#Wt.push(t),this.#Gt)return;this.#Gt=!0;const n=this.fullpath();this.#et.readdir(n,{withFileTypes:!0},((t,e)=>{if(t)this.#Nt(t.code),r.provisional=0;else{for(const t of e)this.#Mt(t,r);this.#jt(r)}this.#qt(r.slice(0,r.provisional))}))}#Ht;async readdir(){if(!this.canReaddir())return[];const t=this.children();if(this.calledReaddir())return t.slice(0,t.provisional);const e=this.fullpath();if(this.#Ht)await this.#Ht;else{let r=()=>{};this.#Ht=new Promise((t=>r=t));try{for(const r of await this.#et.promises.readdir(e,{withFileTypes:!0}))this.#Mt(r,t);this.#jt(t)}catch(e){this.#Nt(e.code),t.provisional=0}this.#Ht=void 0,r()}return t.slice(0,t.provisional)}readdirSync(){if(!this.canReaddir())return[];const t=this.children();if(this.calledReaddir())return t.slice(0,t.provisional);const e=this.fullpath();try{for(const r of this.#et.readdirSync(e,{withFileTypes:!0}))this.#Mt(r,t);this.#jt(t)}catch(e){this.#Nt(e.code),t.provisional=0}return t.slice(0,t.provisional)}canReaddir(){if(704&this.#Dt)return!1;const t=Li&this.#Dt;return 0===t||4===t||t===Ii}shouldWalk(t,e){return!(4&~this.#Dt)&&!(704&this.#Dt)&&!t.has(this)&&(!e||e(this))}async realpath(){if(this.#Ct)return this.#Ct;if(!(896&this.#Dt))try{const t=await this.#et.promises.realpath(this.fullpath());return this.#Ct=this.resolve(t)}catch(t){this.#Rt()}}realpathSync(){if(this.#Ct)return this.#Ct;if(!(896&this.#Dt))try{const t=this.#et.realpathSync(this.fullpath());return this.#Ct=this.resolve(t)}catch(t){this.#Rt()}}[Ji](t){if(t===this)return;const e=new Set([]);let r=[],n=this;for(;n&&n.parent;)e.add(n),n.#At=r.join(this.sep),n.#_t=r.join("/"),n=n.parent,r.push("..");for(n=t;n&&n.parent&&!e.has(n);)n.#At=void 0,n.#_t=void 0,n=n.parent}},Zi=class t extends Xi{sep="\\";splitSep=Mi;constructor(t,e=0,r,n,i,o,s){super(t,e,r,n,i,o,s)}newChild(e,r=0,n={}){return new t(e,r,this.root,this.roots,this.nocase,this.childrenCache(),n)}getRootString(t){return Hn.win32.parse(t).root}getRoot(t){if((t=(t=>t.replace(/\//g,"\\").replace($i,"$1\\"))(t.toUpperCase()))===this.root.name)return this.root;for(const[e,r]of Object.entries(this.roots))if(this.sameRoot(t,e))return this.roots[t]=r;return this.roots[t]=new eo(t,this).root}sameRoot(t,e=this.root.name){return(t=t.toUpperCase().replace(/\//g,"\\").replace($i,"$1\\"))===e}},Qi=class t extends Xi{splitSep="/";sep="/";constructor(t,e=0,r,n,i,o,s){super(t,e,r,n,i,o,s)}getRootString(t){return t.startsWith("/")?"/":""}getRoot(t){return this.root}newChild(e,r=0,n={}){return new t(e,r,this.root,this.roots,this.nocase,this.childrenCache(),n)}},to=class{root;rootPath;roots;cwd;#Vt;#Yt;#St;nocase;#et;constructor(t=process.cwd(),e,r,{nocase:n,childrenCacheSize:i=16384,fs:o}={}){this.#et=o,(t instanceof URL||t.startsWith("file://"))&&(t=(0,Vn.fileURLToPath)(t));const s=e.resolve(t);this.roots=Object.create(null),this.rootPath=this.parseRootPath(s),this.#Vt=new Yi,this.#Yt=new Yi,this.#St=new Ki(i);const a=s.substring(this.rootPath.length).split(r);if(1!==a.length||a[0]||a.pop(),void 0===n)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=n,this.root=this.newRoot(this.#et),this.roots[this.rootPath]=this.root;let u=this.root,c=a.length-1;const l=e.sep;let f=this.rootPath,h=!1;for(const t of a){const e=c--;u=u.child(t,{relative:new Array(e).fill("..").join(l),relativePosix:new Array(e).fill("..").join("/"),fullpath:f+=(h?"":l)+t}),h=!0}this.cwd=u}depth(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),t.depth()}childrenCache(){return this.#St}resolve(...t){let e="";for(let r=t.length-1;r>=0;r--){const n=t[r];if(n&&"."!==n&&(e=e?`${n}/${e}`:n,this.isAbsolute(n)))break}const r=this.#Vt.get(e);if(void 0!==r)return r;const n=this.cwd.resolve(e).fullpath();return this.#Vt.set(e,n),n}resolvePosix(...t){let e="";for(let r=t.length-1;r>=0;r--){const n=t[r];if(n&&"."!==n&&(e=e?`${n}/${e}`:n,this.isAbsolute(n)))break}const r=this.#Yt.get(e);if(void 0!==r)return r;const n=this.cwd.resolve(e).fullpathPosix();return this.#Yt.set(e,n),n}relative(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),t.relative()}relativePosix(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),t.relativePosix()}basename(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),t.name}dirname(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),(t.parent||t).fullpath()}async readdir(t=this.cwd,e={withFileTypes:!0}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof Xi||(e=t,t=this.cwd);const{withFileTypes:r}=e;if(t.canReaddir()){const e=await t.readdir();return r?e:e.map((t=>t.name))}return[]}readdirSync(t=this.cwd,e={withFileTypes:!0}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof Xi||(e=t,t=this.cwd);const{withFileTypes:r=!0}=e;return t.canReaddir()?r?t.readdirSync():t.readdirSync().map((t=>t.name)):[]}async lstat(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),t.lstat()}lstatSync(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),t.lstatSync()}async readlink(t=this.cwd,{withFileTypes:e}={withFileTypes:!1}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof Xi||(e=t.withFileTypes,t=this.cwd);const r=await t.readlink();return e?r:r?.fullpath()}readlinkSync(t=this.cwd,{withFileTypes:e}={withFileTypes:!1}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof Xi||(e=t.withFileTypes,t=this.cwd);const r=t.readlinkSync();return e?r:r?.fullpath()}async realpath(t=this.cwd,{withFileTypes:e}={withFileTypes:!1}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof Xi||(e=t.withFileTypes,t=this.cwd);const r=await t.realpath();return e?r:r?.fullpath()}realpathSync(t=this.cwd,{withFileTypes:e}={withFileTypes:!1}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof Xi||(e=t.withFileTypes,t=this.cwd);const r=t.realpathSync();return e?r:r?.fullpath()}async walk(t=this.cwd,e={}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof Xi||(e=t,t=this.cwd);const{withFileTypes:r=!0,follow:n=!1,filter:i,walkFilter:o}=e,s=[];i&&!i(t)||s.push(r?t:t.fullpath());const a=new Set,u=(t,e)=>{a.add(t),t.readdirCB(((t,c)=>{if(t)return e(t);let l=c.length;if(!l)return e();const f=()=>{0==--l&&e()};for(const t of c)i&&!i(t)||s.push(r?t:t.fullpath()),n&&t.isSymbolicLink()?t.realpath().then((t=>t?.isUnknown()?t.lstat():t)).then((t=>t?.shouldWalk(a,o)?u(t,f):f())):t.shouldWalk(a,o)?u(t,f):f()}),!0)},c=t;return new Promise(((t,e)=>{u(c,(r=>{if(r)return e(r);t(s)}))}))}walkSync(t=this.cwd,e={}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof Xi||(e=t,t=this.cwd);const{withFileTypes:r=!0,follow:n=!1,filter:i,walkFilter:o}=e,s=[];i&&!i(t)||s.push(r?t:t.fullpath());const a=new Set([t]);for(const t of a){const e=t.readdirSync();for(const t of e){i&&!i(t)||s.push(r?t:t.fullpath());let e=t;if(t.isSymbolicLink()){if(!n||!(e=t.realpathSync()))continue;e.isUnknown()&&e.lstatSync()}e.shouldWalk(a,o)&&a.add(e)}}return s}[Symbol.asyncIterator](){return this.iterate()}iterate(t=this.cwd,e={}){return"string"==typeof t?t=this.cwd.resolve(t):t instanceof Xi||(e=t,t=this.cwd),this.stream(t,e)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(t=this.cwd,e={}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof Xi||(e=t,t=this.cwd);const{withFileTypes:r=!0,follow:n=!1,filter:i,walkFilter:o}=e;i&&!i(t)||(yield r?t:t.fullpath());const s=new Set([t]);for(const t of s){const e=t.readdirSync();for(const t of e){i&&!i(t)||(yield r?t:t.fullpath());let e=t;if(t.isSymbolicLink()){if(!n||!(e=t.realpathSync()))continue;e.isUnknown()&&e.lstatSync()}e.shouldWalk(s,o)&&s.add(e)}}}stream(t=this.cwd,e={}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof Xi||(e=t,t=this.cwd);const{withFileTypes:r=!0,follow:n=!1,filter:i,walkFilter:o}=e,s=new Ni({objectMode:!0});i&&!i(t)||s.write(r?t:t.fullpath());const a=new Set,u=[t];let c=0;const l=()=>{let t=!1;for(;!t;){const e=u.shift();if(!e)return void(0===c&&s.end());c++,a.add(e);const f=(e,p,d=!1)=>{if(e)return s.emit("error",e);if(n&&!d){const t=[];for(const e of p)e.isSymbolicLink()&&t.push(e.realpath().then((t=>t?.isUnknown()?t.lstat():t)));if(t.length)return void Promise.all(t).then((()=>f(null,p,!0)))}for(const e of p)!e||i&&!i(e)||s.write(r?e:e.fullpath())||(t=!0);c--;for(const t of p){const e=t.realpathCached()||t;e.shouldWalk(a,o)&&u.push(e)}t&&!s.flowing?s.once("drain",l):h||l()};let h=!0;e.readdirCB(f,!0),h=!1}};return l(),s}streamSync(t=this.cwd,e={}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof Xi||(e=t,t=this.cwd);const{withFileTypes:r=!0,follow:n=!1,filter:i,walkFilter:o}=e,s=new Ni({objectMode:!0}),a=new Set;i&&!i(t)||s.write(r?t:t.fullpath());const u=[t];let c=0;const l=()=>{let t=!1;for(;!t;){const e=u.shift();if(!e)return void(0===c&&s.end());c++,a.add(e);const l=e.readdirSync();for(const e of l)i&&!i(e)||s.write(r?e:e.fullpath())||(t=!0);c--;for(const t of l){let e=t;if(t.isSymbolicLink()){if(!n||!(e=t.realpathSync()))continue;e.isUnknown()&&e.lstatSync()}e.shouldWalk(a,o)&&u.push(e)}}t&&!s.flowing&&s.once("drain",l)};return l(),s}chdir(t=this.cwd){const e=this.cwd;this.cwd="string"==typeof t?this.cwd.resolve(t):t,this.cwd[Ji](e)}},eo=class extends to{sep="\\";constructor(t=process.cwd(),e={}){const{nocase:r=!0}=e;super(t,Hn.win32,"\\",{...e,nocase:r}),this.nocase=r;for(let t=this.cwd;t;t=t.parent)t.nocase=this.nocase}parseRootPath(t){return Hn.win32.parse(t).root.toUpperCase()}newRoot(t){return new Zi(this.rootPath,4,void 0,this.roots,this.nocase,this.childrenCache(),{fs:t})}isAbsolute(t){return t.startsWith("/")||t.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(t)}},ro=class extends to{sep="/";constructor(t=process.cwd(),e={}){const{nocase:r=!1}=e;super(t,Hn.posix,"/",{...e,nocase:r}),this.nocase=r}parseRootPath(t){return"/"}newRoot(t){return new Qi(this.rootPath,4,void 0,this.roots,this.nocase,this.childrenCache(),{fs:t})}isAbsolute(t){return t.startsWith("/")}},no=class extends ro{constructor(t=process.cwd(),e={}){const{nocase:r=!0}=e;super(t,{...e,nocase:r})}},io=(process.platform,"win32"===process.platform?eo:"darwin"===process.platform?no:ro),oo=cr(Rr(),1),so=class t{#Kt;#Jt;#Xt;length;#Zt;#Qt;#te;#ee;#re;#ne;#ie=!0;constructor(t,e,r,n){if(!(t.length>=1))throw new TypeError("empty pattern list");if(!(e.length>=1))throw new TypeError("empty glob list");if(e.length!==t.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=t.length,r<0||r>=this.length)throw new TypeError("index out of range");if(this.#Kt=t,this.#Jt=e,this.#Xt=r,this.#Zt=n,0===this.#Xt)if(this.isUNC()){const[t,e,r,n,...i]=this.#Kt,[o,s,a,u,...c]=this.#Jt;""===i[0]&&(i.shift(),c.shift());const l=[t,e,r,n,""].join("/"),f=[o,s,a,u,""].join("/");this.#Kt=[l,...i],this.#Jt=[f,...c],this.length=this.#Kt.length}else if(this.isDrive()||this.isAbsolute()){const[t,...e]=this.#Kt,[r,...n]=this.#Jt;""===e[0]&&(e.shift(),n.shift());const i=t+"/",o=r+"/";this.#Kt=[i,...e],this.#Jt=[o,...n],this.length=this.#Kt.length}}pattern(){return this.#Kt[this.#Xt]}isString(){return"string"==typeof this.#Kt[this.#Xt]}isGlobstar(){return this.#Kt[this.#Xt]===On}isRegExp(){return this.#Kt[this.#Xt]instanceof RegExp}globString(){return this.#te=this.#te||(0===this.#Xt?this.isAbsolute()?this.#Jt[0]+this.#Jt.slice(1).join("/"):this.#Jt.join("/"):this.#Jt.slice(this.#Xt).join("/"))}hasMore(){return this.length>this.#Xt+1}rest(){return void 0!==this.#Qt?this.#Qt:this.hasMore()?(this.#Qt=new t(this.#Kt,this.#Jt,this.#Xt+1,this.#Zt),this.#Qt.#ne=this.#ne,this.#Qt.#re=this.#re,this.#Qt.#ee=this.#ee,this.#Qt):this.#Qt=null}isUNC(){const t=this.#Kt;return void 0!==this.#re?this.#re:this.#re="win32"===this.#Zt&&0===this.#Xt&&""===t[0]&&""===t[1]&&"string"==typeof t[2]&&!!t[2]&&"string"==typeof t[3]&&!!t[3]}isDrive(){const t=this.#Kt;return void 0!==this.#ee?this.#ee:this.#ee="win32"===this.#Zt&&0===this.#Xt&&this.length>1&&"string"==typeof t[0]&&/^[a-z]:$/i.test(t[0])}isAbsolute(){const t=this.#Kt;return void 0!==this.#ne?this.#ne:this.#ne=""===t[0]&&t.length>1||this.isDrive()||this.isUNC()}root(){const t=this.#Kt[0];return"string"==typeof t&&this.isAbsolute()&&0===this.#Xt?t:""}checkFollowGlobstar(){return!(0===this.#Xt||!this.isGlobstar()||!this.#ie)}markFollowGlobstar(){return!(0===this.#Xt||!this.isGlobstar()||!this.#ie||(this.#ie=!1,0))}},ao="object"==typeof process&&process&&"string"==typeof process.platform?process.platform:"linux",uo=class{relative;relativeChildren;absolute;absoluteChildren;constructor(t,{nobrace:e,nocase:r,noext:n,noglobstar:i,platform:o=ao}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[];const s={dot:!0,nobrace:e,nocase:r,noext:n,noglobstar:i,optimizationLevel:2,platform:o,nocomment:!0,nonegate:!0};for(const e of t){const t=new Rn(e,s);for(let e=0;e[t,!!(2&e),!!(1&e)]))}},fo=class{store=new Map;add(t,e){if(!t.canReaddir())return;const r=this.store.get(t);r?r.find((t=>t.globString()===e.globString()))||r.push(e):this.store.set(t,[e])}get(t){const e=this.store.get(t);if(!e)throw new Error("attempting to walk unknown path");return e}entries(){return this.keys().map((t=>[t,this.store.get(t)]))}keys(){return[...this.store.keys()].filter((t=>t.canReaddir()))}},ho=class t{hasWalkedCache;matches=new lo;subwalks=new fo;patterns;follow;dot;opts;constructor(t,e){this.opts=t,this.follow=!!t.follow,this.dot=!!t.dot,this.hasWalkedCache=e?e.copy():new co}processPatterns(t,e){this.patterns=e;const r=e.map((e=>[t,e]));for(let[t,e]of r){this.hasWalkedCache.storeWalked(t,e);const r=e.root(),n=e.isAbsolute()&&!1!==this.opts.absolute;if(r){t=t.resolve("/"===r&&void 0!==this.opts.root?this.opts.root:r);const n=e.rest();if(!n){this.matches.add(t,!0,!1);continue}e=n}if(t.isENOENT())continue;let i,o,s=!1;for(;"string"==typeof(i=e.pattern())&&(o=e.rest());){const r=t.resolve(i);t=r,e=o,s=!0}if(i=e.pattern(),o=e.rest(),s){if(this.hasWalkedCache.hasWalked(t,e))continue;this.hasWalkedCache.storeWalked(t,e)}if("string"!=typeof i)if(i===On){(!t.isSymbolicLink()||this.follow||e.checkFollowGlobstar())&&this.subwalks.add(t,e);const r=o?.pattern(),i=o?.rest();if(o&&(""!==r&&"."!==r||i)){if(".."===r){const e=t.parent||t;i?this.hasWalkedCache.hasWalked(e,i)||this.subwalks.add(e,i):this.matches.add(e,n,!0)}}else this.matches.add(t,n,""===r||"."===r)}else i instanceof RegExp&&this.subwalks.add(t,e);else{const e=".."===i||""===i||"."===i;this.matches.add(t.resolve(i),n,e)}}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new t(this.opts,this.hasWalkedCache)}filterEntries(t,e){const r=this.subwalks.get(t),n=this.child();for(const t of e)for(const e of r){const r=e.isAbsolute(),i=e.pattern(),o=e.rest();i===On?n.testGlobstar(t,e,o,r):i instanceof RegExp?n.testRegExp(t,i,o,r):n.testString(t,i,o,r)}return n}testGlobstar(t,e,r,n){if(!this.dot&&t.name.startsWith(".")||(e.hasMore()||this.matches.add(t,n,!1),t.canReaddir()&&(this.follow||!t.isSymbolicLink()?this.subwalks.add(t,e):t.isSymbolicLink()&&(r&&e.checkFollowGlobstar()?this.subwalks.add(t,r):e.markFollowGlobstar()&&this.subwalks.add(t,e)))),r){const e=r.pattern();if("string"==typeof e&&".."!==e&&""!==e&&"."!==e)this.testString(t,e,r.rest(),n);else if(".."===e){const e=t.parent||t;this.subwalks.add(e,r)}else e instanceof RegExp&&this.testRegExp(t,e,r.rest(),n)}}testRegExp(t,e,r,n){e.test(t.name)&&(r?this.subwalks.add(t,r):this.matches.add(t,n,!1))}testString(t,e,r,n){t.isNamed(e)&&(r?this.subwalks.add(t,r):this.matches.add(t,n,!1))}},po=class{path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#oe=[];#se;#ae;signal;maxDepth;constructor(t,e,r){this.patterns=t,this.path=e,this.opts=r,this.#ae=r.posix||"win32"!==r.platform?"/":"\\",r.ignore&&(this.#se=((t,e)=>"string"==typeof t?new uo([t],e):Array.isArray(t)?new uo(t,e):t)(r.ignore,r)),this.maxDepth=r.maxDepth||1/0,r.signal&&(this.signal=r.signal,this.signal.addEventListener("abort",(()=>{this.#oe.length=0})))}#ue(t){return this.seen.has(t)||!!this.#se?.ignored?.(t)}#ce(t){return!!this.#se?.childrenIgnored?.(t)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;let t;for(this.paused=!1;!this.paused&&(t=this.#oe.shift());)t()}onResume(t){this.signal?.aborted||(this.paused?this.#oe.push(t):t())}async matchCheck(t,e){if(e&&this.opts.nodir)return;let r;if(this.opts.realpath){if(r=t.realpathCached()||await t.realpath(),!r)return;t=r}const n=t.isUnknown()||this.opts.stat;return this.matchCheckTest(n?await t.lstat():t,e)}matchCheckTest(t,e){return!t||!(this.maxDepth===1/0||t.depth()<=this.maxDepth)||e&&!t.canReaddir()||this.opts.nodir&&t.isDirectory()||this.#ue(t)?void 0:t}matchCheckSync(t,e){if(e&&this.opts.nodir)return;let r;if(this.opts.realpath){if(r=t.realpathCached()||t.realpathSync(),!r)return;t=r}const n=t.isUnknown()||this.opts.stat;return this.matchCheckTest(n?t.lstatSync():t,e)}matchFinish(t,e){if(this.#ue(t))return;const r=void 0===this.opts.absolute?e:this.opts.absolute;this.seen.add(t);const n=this.opts.mark&&t.isDirectory()?this.#ae:"";if(this.opts.withFileTypes)this.matchEmit(t);else if(r){const e=this.opts.posix?t.fullpathPosix():t.fullpath();this.matchEmit(e+n)}else{const e=this.opts.posix?t.relativePosix():t.relative(),r=this.opts.dotRelative&&!e.startsWith(".."+this.#ae)?"."+this.#ae:"";this.matchEmit(e?r+e+n:"."+n)}}async match(t,e,r){const n=await this.matchCheck(t,r);n&&this.matchFinish(n,e)}matchSync(t,e,r){const n=this.matchCheckSync(t,r);n&&this.matchFinish(n,e)}walkCB(t,e,r){this.signal?.aborted&&r(),this.walkCB2(t,e,new ho(this.opts),r)}walkCB2(t,e,r,n){if(this.#ce(t))return n();if(this.signal?.aborted&&n(),this.paused)return void this.onResume((()=>this.walkCB2(t,e,r,n)));r.processPatterns(t,e);let i=1;const o=()=>{0==--i&&n()};for(const[t,e,n]of r.matches.entries())this.#ue(t)||(i++,this.match(t,e,n).then((()=>o())));for(const t of r.subwalkTargets()){if(this.maxDepth!==1/0&&t.depth()>=this.maxDepth)continue;i++;const e=t.readdirCached();t.calledReaddir()?this.walkCB3(t,e,r,o):t.readdirCB(((e,n)=>this.walkCB3(t,n,r,o)),!0)}o()}walkCB3(t,e,r,n){r=r.filterEntries(t,e);let i=1;const o=()=>{0==--i&&n()};for(const[t,e,n]of r.matches.entries())this.#ue(t)||(i++,this.match(t,e,n).then((()=>o())));for(const[t,e]of r.subwalks.entries())i++,this.walkCB2(t,e,r.child(),o);o()}walkCBSync(t,e,r){this.signal?.aborted&&r(),this.walkCB2Sync(t,e,new ho(this.opts),r)}walkCB2Sync(t,e,r,n){if(this.#ce(t))return n();if(this.signal?.aborted&&n(),this.paused)return void this.onResume((()=>this.walkCB2Sync(t,e,r,n)));r.processPatterns(t,e);let i=1;const o=()=>{0==--i&&n()};for(const[t,e,n]of r.matches.entries())this.#ue(t)||this.matchSync(t,e,n);for(const t of r.subwalkTargets()){if(this.maxDepth!==1/0&&t.depth()>=this.maxDepth)continue;i++;const e=t.readdirSync();this.walkCB3Sync(t,e,r,o)}o()}walkCB3Sync(t,e,r,n){r=r.filterEntries(t,e);let i=1;const o=()=>{0==--i&&n()};for(const[t,e,n]of r.matches.entries())this.#ue(t)||this.matchSync(t,e,n);for(const[t,e]of r.subwalks.entries())i++,this.walkCB2Sync(t,e,r.child(),o);o()}},mo=class extends po{matches;constructor(t,e,r){super(t,e,r),this.matches=new Set}matchEmit(t){this.matches.add(t)}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise(((t,e)=>{this.walkCB(this.path,this.patterns,(()=>{this.signal?.aborted?e(this.signal.reason):t(this.matches)}))})),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,(()=>{if(this.signal?.aborted)throw this.signal.reason})),this.matches}},go=class extends po{results;constructor(t,e,r){super(t,e,r),this.results=new Ni({signal:this.signal,objectMode:!0}),this.results.on("drain",(()=>this.resume())),this.results.on("resume",(()=>this.resume()))}matchEmit(t){this.results.write(t),this.results.flowing||this.pause()}stream(){const t=this.path;return t.isUnknown()?t.lstat().then((()=>{this.walkCB(t,this.patterns,(()=>this.results.end()))})):this.walkCB(t,this.patterns,(()=>this.results.end())),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,(()=>this.results.end())),this.results}},yo="object"==typeof process&&process&&"string"==typeof process.platform?process.platform:"linux",bo=class{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;opts;patterns;constructor(t,e){if(!e)throw new TypeError("glob options required");if(this.withFileTypes=!!e.withFileTypes,this.signal=e.signal,this.follow=!!e.follow,this.dot=!!e.dot,this.dotRelative=!!e.dotRelative,this.nodir=!!e.nodir,this.mark=!!e.mark,e.cwd?(e.cwd instanceof URL||e.cwd.startsWith("file://"))&&(e.cwd=(0,oo.fileURLToPath)(e.cwd)):this.cwd="",this.cwd=e.cwd||"",this.root=e.root,this.magicalBraces=!!e.magicalBraces,this.nobrace=!!e.nobrace,this.noext=!!e.noext,this.realpath=!!e.realpath,this.absolute=e.absolute,this.noglobstar=!!e.noglobstar,this.matchBase=!!e.matchBase,this.maxDepth="number"==typeof e.maxDepth?e.maxDepth:1/0,this.stat=!!e.stat,this.ignore=e.ignore,this.withFileTypes&&void 0!==this.absolute)throw new Error("cannot set absolute and withFileTypes:true");if("string"==typeof t&&(t=[t]),this.windowsPathsNoEscape=!!e.windowsPathsNoEscape||!1===e.allowWindowsEscape,this.windowsPathsNoEscape&&(t=t.map((t=>t.replace(/\\/g,"/")))),this.matchBase){if(e.noglobstar)throw new TypeError("base matching requires globstar");t=t.map((t=>t.includes("/")?t:`./**/${t}`))}if(this.pattern=t,this.platform=e.platform||yo,this.opts={...e,platform:this.platform},e.scurry){if(this.scurry=e.scurry,void 0!==e.nocase&&e.nocase!==e.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{const t="win32"===e.platform?eo:"darwin"===e.platform?no:e.platform?ro:io;this.scurry=new t(this.cwd,{nocase:e.nocase,fs:e.fs})}this.nocase=this.scurry.nocase;const r="darwin"===this.platform||"win32"===this.platform,n={...e,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:r,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},i=this.pattern.map((t=>new Rn(t,n))),[o,s]=i.reduce(((t,e)=>(t[0].push(...e.set),t[1].push(...e.globParts),t)),[[],[]]);this.patterns=o.map(((t,e)=>{const r=s[e];if(!r)throw new Error("invalid pattern object");return new so(t,r,0,this.platform)}))}async walk(){return[...await new mo(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase}).walk()]}walkSync(){return[...new mo(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase}).walkSync()]}stream(){return new go(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase}).stream()}streamSync(){return new go(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}};function vo(t,e={}){return new bo(t,e).streamSync()}function wo(t,e={}){return new bo(t,e).stream()}function xo(t,e={}){return new bo(t,e).walkSync()}async function Eo(t,e={}){return new bo(t,e).walk()}function Ao(t,e={}){return new bo(t,e).iterateSync()}function _o(t,e={}){return new bo(t,e).iterate()}var Do=vo,So=Object.assign(wo,{sync:vo}),ko=Ao,Co=Object.assign(_o,{sync:Ao}),Fo=Object.assign(xo,{stream:vo,iterate:Ao}),Oo=Object.assign(Eo,{glob:Eo,globSync:xo,sync:Fo,globStream:wo,stream:So,globStreamSync:vo,streamSync:Do,globIterate:_o,iterate:Co,globIterateSync:Ao,iterateSync:ko,Glob:bo,hasMagic:(t,e={})=>{Array.isArray(t)||(t=[t]);for(const r of t)if(new Rn(r,e).hasMagic())return!0;return!1},escape:an,unescape:Kr});Oo.glob=Oo;const jo=(t,e=!1)=>e?t:"win32"===process?.platform&&"object"!=typeof window?N.resolve(t):$.resolve(t);function To(t){if("object"!=typeof t||null===t)return!1;const e=Object.getPrototypeOf(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)}function Bo(t,e={},r){const{collision:n,overrideKeys:i}=e,o={};if(null==t)return o;let s=t[0]||{};r=r||[],"object"!=typeof s&&(s=o);for(let o=1;o{Object.keys(t).forEach((n=>{["$value","$type"].includes(n)?e=!0:To(t[n])&&r(t[n])}))};return r(t),e}function Po(t,e){for(let r in t)e.apply(null,[t,r,t[r]]),t[r]&&"object"==typeof t[r]&&Po(t[r],e)}async function No(e,r=!1,n,i=!0,o={},s,a){const u=a??Oe,c={};let l=[];for(let t=0;tt.replace(/^\//,""))));for(let e=0;e{Object.hasOwn(t,(s?"$":"")+"value")&&!t.filePath&&(t.filePath=f,t.isSource=i)})),r?Bo([c,p],{collision:n,overrideKeys:[s?"$value":"value"]}):Object.assign(c,p))}return{tokens:c,usesDtcg:s}}const $o={opening_character:"{",closing_character:"}",separator:"."};function Mo(t={}){const e={...$o,...t};return new RegExp("\\"+e.opening_character+"([^"+e.closing_character+"]+)\\"+e.closing_character,"g")}const Io='Use log.verbosity "verbose" or use CLI option --verbose for more details.',Lo=new class{constructor(){this.groupedMessages={},this.GROUP={PropertyReferenceWarnings:"Property Reference Errors",PropertyValueCollisions:"Property Value Collisions",TemplateDeprecationWarnings:"Template Deprecation Warnings",RegisterTemplateDeprecationWarnings:"Register Template Deprecation Warnings",SassMapFormatDeprecationWarnings:"Sass Map Format Deprecation Warnings",MissingRegisterTransformErrors:"Missing Register Transform Errors",PropertyNameCollisionWarnings:"Property Name Collision Warnings",FilteredOutputReferences:"Filtered Output Reference Warnings",UnknownCSSFontProperties:"Unknown CSS Font Shorthand Properties"}}flush(t){const e=this.fetchMessages(t);return this.clear(t),e}add(t,e){t&&(this.groupedMessages[t]||(this.groupedMessages[t]=[]),-1===this.groupedMessages[t].indexOf(e)&&this.groupedMessages[t].push(e))}remove(t,e){if(t&&this.groupedMessages[t]?.length>0){const r=this.groupedMessages[t].indexOf(e);-1!==r&&this.groupedMessages[t].splice(r,1)}}count(t){return this.groupedMessages[t]?this.groupedMessages[t].length:0}fetchMessages(t){return t&&this.groupedMessages[t]||[]}clear(t){t&&this.groupedMessages[t]&&delete this.groupedMessages[t]}};function zo(t,e){const r=e??$o.separator;if("string"!=typeof t)throw new Error("Getting path from name failed. Name must be a string");return t.split(r)}function Uo(t,e={}){const r={...$o,...e};if(!Array.isArray(t))throw new Error("Getting name for path failed. Path must be an array");return t.join(r.separator)}function Wo(t,e){let r=e;if(Array.isArray(t)){for(let e=0;e0&&c.push(Uo(u)),t.replace(p,((r,i)=>{const o=zo(i=i.trim(),n),f=g===o[o.length-1];if(f&&-1!==s.indexOf(i))return"";if(!f&&-1!==s.indexOf(`${i}.${g}`))return"";if(c.push(i),d=Wo(o,e),!f&&d&&Object.hasOwn(d,g)&&(d=d[g]),void 0!==d)if("string"==typeof d||"number"==typeof d){if(m=t.replace(r,`${d}`),Go(m,p)){const t=m.slice(1,-1);if(Object.hasOwn(l,t));else if(-1!==c.indexOf(t)){const e=c.indexOf(t),r=c.slice(e);r.forEach((function(t){l[t]=!0})),r.push(t);const n=`Circular definition cycle: ${r.join(", ")}`;if(h)throw new Error(n);Lo.add(qo,"Circular definition cycle: "+r.join(", "))}else m=Vo(m,e,{regex:p,ignorePaths:s,usesDtcg:a,current_context:u,separator:n,stack:c,foundCirc:l,firstIteration:!1})}"number"==typeof d&&d.toString()===m&&(m=d)}else m=d;else{const t=Uo(u,{separator:n}),e=`${t?`${t} `:""}tries to reference ${i}, which is not defined.`;if(h)throw new Error(e);Lo.add(qo,e),m=d}return c.pop(),""})),m}const Yo={ignoreKeys:["original"]};function Ko(t,e={}){const r={...Yo,...e},n=structuredClone(t);if(r.regex=Mo(r),"object"==typeof t)return Jo(n,n,r,[],{});throw new Error("Please pass an object in")}function Jo(t,e,r,n,i){for(const o in t){if(!Object.hasOwn(t,o))continue;const s=t[o];if(!r.ignoreKeys||-1===r.ignoreKeys.indexOf(o)){if(n.push(o),"object"==typeof s)Jo(s,e,r,n,i);else if("string"==typeof s&&s.indexOf("{")>-1){const a=Vo(s,e,{...r,current_context:n,foundCirc:i});void 0!==a&&(t[o]=a)}n.pop()}}return e}function Xo(t,e,r=[]){for(let n in t)Object.hasOwn(t,n)&&(To(t[n])&&Object.hasOwn(t[n],(e?"$":"")+"value")?r.push(t[n]):To(t[n])&&Xo(t[n],e,r));return r}function Zo(t,e=!1){return Xo(t,e)}async function Qo(t,e=[],r={},n={}){let i=t;const o=Object.entries(r);if(o.length>0)for(const[t,r]of o)e.includes(t)&&(i=await r(i,n));return i}var ts=Object.create,es=Object.defineProperty,rs=Object.getOwnPropertyDescriptor,ns=Object.getOwnPropertyNames,is=Object.getPrototypeOf,os=Object.prototype.hasOwnProperty,ss=((t,e)=>function(){return e||(0,t[ns(t)[0]])((e={exports:{}}).exports,e),e.exports})({"node_modules/deepmerge/dist/cjs.js"(t,e){var r=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===n}(t)}(t)},n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function i(t,e){return!1!==e.clone&&e.isMergeableObject(t)?u((r=t,Array.isArray(r)?[]:{}),t,e):t;var r}function o(t,e,r){return t.concat(e).map((function(t){return i(t,r)}))}function s(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return Object.propertyIsEnumerable.call(t,e)})):[]}(t))}function a(t,e){try{return e in t}catch(t){return!1}}function u(t,e,n){(n=n||{}).arrayMerge=n.arrayMerge||o,n.isMergeableObject=n.isMergeableObject||r,n.cloneUnlessOtherwiseSpecified=i;var c=Array.isArray(e);return c===Array.isArray(t)?c?n.arrayMerge(t,e,n):function(t,e,r){var n={};return r.isMergeableObject(t)&&s(t).forEach((function(e){n[e]=i(t[e],r)})),s(e).forEach((function(o){(function(t,e){return a(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,o)||(a(t,o)&&r.isMergeableObject(e[o])?n[o]=function(t,e){if(!e.customMerge)return u;var r=e.customMerge(t);return"function"==typeof r?r:u}(o,r)(t[o],e[o],r):n[o]=i(e[o],r))})),n}(t,e,n):i(e,n)}u.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,r){return u(t,r,e)}),{})};var c=u;e.exports=c}}),as=((t,e,r)=>(r=null!=t?ts(is(t)):{},((t,e,r,n)=>{if(e&&"object"==typeof e||"function"==typeof e)for(let r of ns(e))os.call(t,r)||undefined===r||es(t,r,{get:()=>e[r],enumerable:!(n=rs(e,r))||n.enumerable});return t})(es(r,"default",{value:t,enumerable:!0}),t)))(ss()),us=as.default;const cs=(t,e,r=!0)=>us(t,e,{isMergeableObject:t=>Array.isArray(t)||To(t),arrayMerge:(t,e)=>r&&t.length>0&&e.length>0?Array.from(new Set([...t,...e])):[...t,...e]}),ls={border:{style:"strokeStyle",width:"dimension"},transition:{delay:"duration",timingFunction:"cubicBezier"},shadow:{offsetX:"dimension",offsetY:"dimension",blur:"dimension",spread:"dimension"},gradient:{position:"number"},typography:{fontSize:"dimension",letterSpacing:"dimension",lineHeight:"number"}};function fs(t,e,r={}){const n=cs(ls,r),i=n[e],o=n[t];return"object"==typeof i&&i[t]?i[t]:"string"==typeof o?o:t}function hs(t,e,r){const n=r?.expand??e.expand??!1;let i=!1,o=!1;if("function"==typeof n||"boolean"==typeof n)i=n;else{const r=e.usesDtcg?t.$type:t.type;if(void 0===n.include&&void 0===n.exclude&&(i=!0),n.include&&(i="function"==typeof n.include?n.include:n.include.includes(r)),n.exclude){if(n.include)throw Error("expand.include should not be combined with expand.exclude, use one or the other.");i="function"==typeof n.exclude?n.exclude:n.exclude.includes(r),o=!0}}let s=i;return"function"==typeof i&&(s=i(t,e,r)),o?!s:s}function ps(t,e,r){const n=e.usesDtcg,i={};Object.keys(t).filter((t=>!["$value","value","$type","type"].filter((t=>n?t.startsWith("$"):!t.startsWith("$"))).includes(t))).forEach((e=>{i[e]=t[e]}));const o=n?t.$value:t.value,s=t.$type??t.type,a={};let u={};const c=r?.expand??e.expand;return"object"==typeof c&&(u=c.typesMap??{}),(Array.isArray(o)?o:[o]).forEach(((t,e,r)=>{let o=a;r.length>1&&(a[e+1]={},o=o[e+1]),Object.entries(t).forEach((([t,e])=>{o[t]={...i,[(n?"$":"")+"value"]:e,[(n?"$":"")+"type"]:fs(t,s,u)},Array.isArray(o[t].path)&&(o[t].path=[...o[t].path,t])}))})),a}function ds(t,e,r,n){for(const i in t){const o=t[i];if("object"!=typeof o||null===o)continue;const s=r.usesDtcg;let a=s?o.$value:o.value;a?("string"==typeof a&&Go(a)&&(a=Ho(a,e,{usesDtcg:s}),o[s?"$value":"value"]=a),"object"==typeof a&&hs(o,r,n)&&(t[i]=ps(o,r,n))):ds(o,e,r,n)}}function ms(t,e,r){const n=structuredClone(t);return ds(n,structuredClone(t),e,r),n}function gs(t){return gs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gs(t)}var ys=/^\s+/,bs=/\s+$/;function vs(t,e){if(e=e||{},(t=t||"")instanceof vs)return t;if(!(this instanceof vs))return new vs(t,e);var r=function(t){var e={r:0,g:0,b:0},r=1,n=null,i=null,o=null,s=!1,a=!1;return"string"==typeof t&&(t=function(t){t=t.replace(ys,"").replace(bs,"").toLowerCase();var e,r=!1;if(Ns[t])t=Ns[t],r=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};return(e=Ks.rgb.exec(t))?{r:e[1],g:e[2],b:e[3]}:(e=Ks.rgba.exec(t))?{r:e[1],g:e[2],b:e[3],a:e[4]}:(e=Ks.hsl.exec(t))?{h:e[1],s:e[2],l:e[3]}:(e=Ks.hsla.exec(t))?{h:e[1],s:e[2],l:e[3],a:e[4]}:(e=Ks.hsv.exec(t))?{h:e[1],s:e[2],v:e[3]}:(e=Ks.hsva.exec(t))?{h:e[1],s:e[2],v:e[3],a:e[4]}:(e=Ks.hex8.exec(t))?{r:zs(e[1]),g:zs(e[2]),b:zs(e[3]),a:qs(e[4]),format:r?"name":"hex8"}:(e=Ks.hex6.exec(t))?{r:zs(e[1]),g:zs(e[2]),b:zs(e[3]),format:r?"name":"hex"}:(e=Ks.hex4.exec(t))?{r:zs(e[1]+""+e[1]),g:zs(e[2]+""+e[2]),b:zs(e[3]+""+e[3]),a:qs(e[4]+""+e[4]),format:r?"name":"hex8"}:!!(e=Ks.hex3.exec(t))&&{r:zs(e[1]+""+e[1]),g:zs(e[2]+""+e[2]),b:zs(e[3]+""+e[3]),format:r?"name":"hex"}}(t)),"object"==gs(t)&&(Js(t.r)&&Js(t.g)&&Js(t.b)?(e=function(t,e,r){return{r:255*Is(t,255),g:255*Is(e,255),b:255*Is(r,255)}}(t.r,t.g,t.b),s=!0,a="%"===String(t.r).substr(-1)?"prgb":"rgb"):Js(t.h)&&Js(t.s)&&Js(t.v)?(n=Ws(t.s),i=Ws(t.v),e=function(t,e,r){t=6*Is(t,360),e=Is(e,100),r=Is(r,100);var n=Math.floor(t),i=t-n,o=r*(1-e),s=r*(1-i*e),a=r*(1-(1-i)*e),u=n%6;return{r:255*[r,s,o,o,a,r][u],g:255*[a,r,r,s,o,o][u],b:255*[o,o,a,r,r,s][u]}}(t.h,n,i),s=!0,a="hsv"):Js(t.h)&&Js(t.s)&&Js(t.l)&&(n=Ws(t.s),o=Ws(t.l),e=function(t,e,r){var n,i,o;function s(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}if(t=Is(t,360),e=Is(e,100),r=Is(r,100),0===e)n=i=o=r;else{var a=r<.5?r*(1+e):r+e-r*e,u=2*r-a;n=s(u,a,t+1/3),i=s(u,a,t),o=s(u,a,t-1/3)}return{r:255*n,g:255*i,b:255*o}}(t.h,n,o),s=!0,a="hsl"),t.hasOwnProperty("a")&&(r=t.a)),r=Ms(r),{ok:s,format:t.format||a,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:r}}(t);this._originalInput=t,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=Math.round(100*this._a)/100,this._format=e.format||r.format,this._gradientType=e.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=r.ok}function ws(t,e,r){t=Is(t,255),e=Is(e,255),r=Is(r,255);var n,i,o=Math.max(t,e,r),s=Math.min(t,e,r),a=(o+s)/2;if(o==s)n=i=0;else{var u=o-s;switch(i=a>.5?u/(2-o-s):u/(o+s),o){case t:n=(e-r)/u+(e>1)+720)%360;--e;)n.h=(n.h+i)%360,o.push(vs(n));return o}function Ps(t,e){e=e||6;for(var r=vs(t).toHsv(),n=r.h,i=r.s,o=r.v,s=[],a=1/e;e--;)s.push(vs({h:n,s:i,v:o})),o=(o+a)%1;return s}vs.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,e,r,n=this.toRgb();return t=n.r/255,e=n.g/255,r=n.b/255,.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},setAlpha:function(t){return this._a=Ms(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=xs(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=xs(this._r,this._g,this._b),e=Math.round(360*t.h),r=Math.round(100*t.s),n=Math.round(100*t.v);return 1==this._a?"hsv("+e+", "+r+"%, "+n+"%)":"hsva("+e+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var t=ws(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=ws(this._r,this._g,this._b),e=Math.round(360*t.h),r=Math.round(100*t.s),n=Math.round(100*t.l);return 1==this._a?"hsl("+e+", "+r+"%, "+n+"%)":"hsla("+e+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(t){return Es(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return function(t,e,r,n,i){var o=[Us(Math.round(t).toString(16)),Us(Math.round(e).toString(16)),Us(Math.round(r).toString(16)),Us(Gs(n))];return i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*Is(this._r,255))+"%",g:Math.round(100*Is(this._g,255))+"%",b:Math.round(100*Is(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*Is(this._r,255))+"%, "+Math.round(100*Is(this._g,255))+"%, "+Math.round(100*Is(this._b,255))+"%)":"rgba("+Math.round(100*Is(this._r,255))+"%, "+Math.round(100*Is(this._g,255))+"%, "+Math.round(100*Is(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&($s[Es(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+As(this._r,this._g,this._b,this._a),r=e,n=this._gradientType?"GradientType = 1, ":"";if(t){var i=vs(t);r="#"+As(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+e+",endColorstr="+r+")"},toString:function(t){var e=!!t;t=t||this._format;var r=!1,n=this._a<1&&this._a>=0;return e||!n||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"hex4"!==t&&"hex8"!==t&&"name"!==t?("rgb"===t&&(r=this.toRgbString()),"prgb"===t&&(r=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(r=this.toHexString()),"hex3"===t&&(r=this.toHexString(!0)),"hex4"===t&&(r=this.toHex8String(!0)),"hex8"===t&&(r=this.toHex8String()),"name"===t&&(r=this.toName()),"hsl"===t&&(r=this.toHslString()),"hsv"===t&&(r=this.toHsvString()),r||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return vs(this.toString())},_applyModification:function(t,e){var r=t.apply(null,[this].concat([].slice.call(e)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(ks,arguments)},brighten:function(){return this._applyModification(Cs,arguments)},darken:function(){return this._applyModification(Fs,arguments)},desaturate:function(){return this._applyModification(_s,arguments)},saturate:function(){return this._applyModification(Ds,arguments)},greyscale:function(){return this._applyModification(Ss,arguments)},spin:function(){return this._applyModification(Os,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(Rs,arguments)},complement:function(){return this._applyCombination(js,arguments)},monochromatic:function(){return this._applyCombination(Ps,arguments)},splitcomplement:function(){return this._applyCombination(Bs,arguments)},triad:function(){return this._applyCombination(Ts,[3])},tetrad:function(){return this._applyCombination(Ts,[4])}},vs.fromRatio=function(t,e){if("object"==gs(t)){var r={};for(var n in t)t.hasOwnProperty(n)&&(r[n]="a"===n?t[n]:Ws(t[n]));t=r}return vs(t,e)},vs.equals=function(t,e){return!(!t||!e)&&vs(t).toRgbString()==vs(e).toRgbString()},vs.random=function(){return vs.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},vs.mix=function(t,e,r){r=0===r?0:r||50;var n=vs(t).toRgb(),i=vs(e).toRgb(),o=r/100;return vs({r:(i.r-n.r)*o+n.r,g:(i.g-n.g)*o+n.g,b:(i.b-n.b)*o+n.b,a:(i.a-n.a)*o+n.a})},vs.readability=function(t,e){var r=vs(t),n=vs(e);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)},vs.isReadable=function(t,e,r){var n,i,o=vs.readability(t,e);switch(i=!1,n=function(t){var e,r;return"AA"!==(e=((t=t||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==e&&(e="AA"),"small"!==(r=(t.size||"small").toLowerCase())&&"large"!==r&&(r="small"),{level:e,size:r}}(r),n.level+n.size){case"AAsmall":case"AAAlarge":i=o>=4.5;break;case"AAlarge":i=o>=3;break;case"AAAsmall":i=o>=7}return i},vs.mostReadable=function(t,e,r){var n,i,o,s,a=null,u=0;i=(r=r||{}).includeFallbackColors,o=r.level,s=r.size;for(var c=0;cu&&(u=n,a=vs(e[c]));return vs.isReadable(t,a,{level:o,size:s})||!i?a:(r.includeFallbackColors=!1,vs.mostReadable(t,["#fff","#000"],r))};var Ns=vs.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},$s=vs.hexNames=function(t){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[t[r]]=r);return e}(Ns);function Ms(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function Is(t,e){(function(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)})(t)&&(t="100%");var r=function(t){return"string"==typeof t&&-1!=t.indexOf("%")}(t);return t=Math.min(e,Math.max(0,parseFloat(t))),r&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function Ls(t){return Math.min(1,Math.max(0,t))}function zs(t){return parseInt(t,16)}function Us(t){return 1==t.length?"0"+t:""+t}function Ws(t){return t<=1&&(t=100*t+"%"),t}function Gs(t){return Math.round(255*parseFloat(t)).toString(16)}function qs(t){return zs(t)/255}var Hs,Vs,Ys,Ks=(Vs="[\\s|\\(]+("+(Hs="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+Hs+")[,|\\s]+("+Hs+")\\s*\\)?",Ys="[\\s|\\(]+("+Hs+")[,|\\s]+("+Hs+")[,|\\s]+("+Hs+")[,|\\s]+("+Hs+")\\s*\\)?",{CSS_UNIT:new RegExp(Hs),rgb:new RegExp("rgb"+Vs),rgba:new RegExp("rgba"+Ys),hsl:new RegExp("hsl"+Vs),hsla:new RegExp("hsla"+Ys),hsv:new RegExp("hsv"+Vs),hsva:new RegExp("hsva"+Ys),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function Js(t){return!!Ks.CSS_UNIT.exec(t)}const Xs=/([\p{Ll}\d])(\p{Lu})/gu,Zs=/(\p{Lu})([\p{Lu}][\p{Ll}])/gu,Qs=/(\d)\p{Ll}|(\p{L})\d/u,ta=/[^\p{L}\d]+/giu,ea="$1\0$2",ra="";function na(t){let e=t.trim();e=e.replace(Xs,ea).replace(Zs,ea),e=e.replace(ta,"\0");let r=0,n=e.length;for(;"\0"===e.charAt(r);)r++;if(r===n)return[];for(;"\0"===e.charAt(n-1);)n--;return e.slice(r,n).split(/\0/g)}function ia(t){const e=na(t);for(let t=0;tt.toUpperCase():t=>t.toLocaleUpperCase(u)),a=e?.mergeAmbiguousCharacters?function(t,e){return r=>`${e(r[0])}${t(r.slice(1))}`}(o,s):function(t,e){return(r,n)=>{const i=r[0];return(n>0&&i>="0"&&i<="9"?"_"+i:e(i))+t(r.slice(1))}}(o,s);var u;return r+n.map(((t,e)=>0===e?o(t):a(t,e))).join(e?.delimiter??"")+i}function aa(t,e){return oa(t,{delimiter:"_",...e})}function ua(t){return!1===t?t=>t.toLowerCase():e=>e.toLocaleLowerCase(t)}function ca(t,e={}){const r=e.split??(e.separateNumbers?ia:na),n=e.prefixCharacters??ra,i=e.suffixCharacters??ra;let o=0,s=t.length;for(;oo;){const e=s-1,r=t.charAt(e);if(!i.includes(r))break;s=e}return[t.slice(0,o),r(t.slice(o,s)),t.slice(s)]}const la=Lo.GROUP.UnknownCSSFontProperties,fa=/&#x([^;]+);/g,ha={mergeAmbiguousCharacters:!0};function pa(t,e){return"color"===(e.usesDtcg?t.$type:t.type)&&vs(e.usesDtcg?t.$value:t.value).isValid()}function da(t,e){return"dimension"===(e.usesDtcg?t.$type:t.type)}function ma(t,e){return"fontSize"===(e.usesDtcg?t.$type:t.type)}function ga(t,e){return"asset"===(e.usesDtcg?t.$type:t.type)}function ya(t,e){return"content"===(e.usesDtcg?t.$type:t.type)}function ba(t,e,r){return`${t}${r.usesDtcg?e.$value:e.value}${t}`}function va(t,e){return ba('"',t,e)}function wa(t,e,r){throw`Invalid Number: '${t}: ${e}' is not a valid number, cannot transform to '${r}' \n`}function xa(t){return t&&t.basePxFontSize||16}function Ea(t){let e=t.trim();const r=e.startsWith("'")&&e.endsWith("'");return r||(e=e.replace(/'/g,"\\'")),new RegExp("\\s+").test(e)&&!r?`'${e}'`:e}const Aa={"attribute/cti":{type:"attribute",transform:function(t){const e=["category","type","item","subitem","state"],r=t.attributes||{},n={};for(let r=0;rda(t,e)||ma(t,e),transform:function(t,e,r){const n=r.usesDtcg?t.$value:t.value,i=parseFloat(n);return isNaN(i)&&wa(t.name,n,"object"),{original:n,number:i,decimal:i/100,scale:i*xa(e)}}},"size/remToSp":{type:"value",filter:ma,transform:function(t,e,r){const n=r.usesDtcg?t.$value:t.value,i=parseFloat(n),o=xa(e);return isNaN(i)&&wa(t.name,n,"sp"),(i*o).toFixed(2)+"sp"}},"size/remToDp":{type:"value",filter:da,transform:function(t,e,r){const n=r.usesDtcg?t.$value:t.value,i=parseFloat(n),o=xa(e);return isNaN(i)&&wa(t.name,n,"dp"),(i*o).toFixed(2)+"dp"}},"size/px":{type:"value",filter:(t,e)=>da(t,e)||ma(t,e),transform:function(t,e,r){const n=r.usesDtcg?t.$value:t.value,i=parseFloat(n);return isNaN(i)&&wa(t.name,n,"px"),i+"px"}},"size/rem":{type:"value",filter:(t,e)=>da(t,e)||ma(t,e),transform:function(t,e,r){const n=r.usesDtcg?t.$value:t.value;if(`${n}`.match(/[^0-9.]/g))return n;const i=parseFloat(n);return isNaN(i)&&wa(t.name,n,"rem"),i+"rem"}},"size/remToPt":{type:"value",filter:(t,e)=>da(t,e)||ma(t,e),transform:function(t,e,r){const n=r.usesDtcg?t.$value:t.value,i=parseFloat(n),o=xa(e);return isNaN(i)&&wa(t.name,n,"pt"),(i*o).toFixed(2)+"f"}},"size/compose/remToSp":{type:"value",filter:ma,transform:function(t,e,r){const n=r.usesDtcg?t.$value:t.value,i=parseFloat(n),o=xa(e);return isNaN(i)&&wa(t.name,n,"sp"),(i*o).toFixed(2)+".sp"}},"size/compose/remToDp":{type:"value",filter:da,transform:function(t,e,r){const n=r.usesDtcg?t.$value:t.value,i=parseFloat(n),o=xa(e);return isNaN(i)&&wa(t.name,n,"dp"),(i*o).toFixed(2)+".dp"}},"size/compose/em":{type:"value",filter:ma,transform:function(t,e,r){const n=r.usesDtcg?t.$value:t.value,i=parseFloat(n);return isNaN(i)&&wa(t.name,n,"em"),i+".em"}},"size/swift/remToCGFloat":{type:"value",filter:(t,e)=>da(t,e)||ma(t,e),transform:function(t,e,r){const n=r.usesDtcg?t.$value:t.value,i=parseFloat(n),o=xa(e);return isNaN(i)&&wa(t.name,n,"CGFloat"),`CGFloat(${(i*o).toFixed(2)})`}},"size/remToPx":{type:"value",filter:(t,e)=>da(t,e)||ma(t,e),transform:function(t,e,r){const n=r.usesDtcg?t.$value:t.value,i=parseFloat(n),o=xa(e);return isNaN(i)&&wa(t.name,n,"px"),(i*o).toFixed(0)+"px"}},"size/pxToRem":{type:"value",filter:(t,e)=>da(t,e)||ma(t,e),transform:(t,e,r)=>{const n=r.usesDtcg?t.$value:t.value,i=parseFloat(n),o=xa(e);return isNaN(i)&&wa(t.name,n,"rem"),0===i?"0":i/o+"rem"}},"html/icon":{type:"value",filter:function(t,e){return"html"===(e.usesDtcg?t.$type:t.type)},transform:function(t,e,r){return(r.usesDtcg?t.$value:t.value).replace(fa,(function(t,e){return"'\\"+e+"'"}))}},"content/quote":{type:"value",filter:ya,transform:function(t,e,r){return ba("'",t,r)}},"content/objC/literal":{type:"value",filter:ya,transform:function(t,e,r){return"@"+va(t,r)}},"content/swift/literal":{type:"value",filter:ya,transform:(t,e,r)=>va(t,r)},"time/seconds":{type:"value",filter:function(t,e){return"time"===(e.usesDtcg?t.$type:t.type)},transform:function(t,e,r){return(parseFloat(r.usesDtcg?t.$value:t.value)/1e3).toFixed(2)+"s"}},"fontFamily/css":{type:"value",filter:(t,e)=>{const r=e.usesDtcg?t.$type:t.type;return!!r&&["fontFamily","typography"].includes(r)},transform:(t,e,r)=>function(t,e){const r=e.usesDtcg?t.$value:t.value,n=t=>{let e=t;return"string"==typeof e&&e.includes(",")&&(e=e.split(",").map((t=>t.trim()))),Array.isArray(e)?e.map((t=>Ea(t))).join(", "):Ea(e)};return"typography"===(e.usesDtcg?t.$type:t.type)?r.fontFamily?{...r,fontFamily:n(r.fontFamily)}:r:n(r)}(t,r)},"cubicBezier/css":{type:"value",filter:(t,e)=>{const r=e.usesDtcg?t.$type:t.type;return!!r&&["cubicBezier","transition"].includes(r)},transform:(t,e,r)=>function(t,e){const r=e.usesDtcg?t.$value:t.value,n=t=>Array.isArray(t)?`cubic-bezier(${t.join(", ")})`:t;return"transition"===(e.usesDtcg?t.$type:t.type)?r.timingFunction?{...r,timingFunction:n(r.timingFunction)}:r:n(r)}(t,r)},"strokeStyle/css/shorthand":{type:"value",transitive:!0,filter:(t,e)=>"strokeStyle"===(e.usesDtcg?t.$type:t.type),transform:(t,e,r)=>{const n=r.usesDtcg?t.$value:t.value;return"object"!=typeof n?n:"dashed"}},"border/css/shorthand":{type:"value",transitive:!0,filter:(t,e)=>"border"===(e.usesDtcg?t.$type:t.type),transform:(t,e,r)=>{const n=r.usesDtcg?t.$value:t.value;if("object"!=typeof n)return n;const{color:i,width:o}=n;let{style:s}=n;return"object"==typeof s&&(s="dashed"),`${o?`${o} `:""}${s?`${s}`:"none"}${i?` ${i}`:""}`}},"typography/css/shorthand":{type:"value",transitive:!0,filter:(t,e)=>"typography"===(e.usesDtcg?t.$type:t.type),transform:(t,e,r)=>{const n=r.usesDtcg?t.$value:t.value;if("object"!=typeof n)return n;let{fontFamily:i}=n;const{fontWeight:o,fontVariant:s,fontWidth:a,fontSize:u,fontStyle:c,lineHeight:l}=n,f=["fontStyle","fontVariant","fontWeight","fontWidth","fontSize","lineHeight","fontFamily"],h=Object.keys(n).filter((t=>!f.includes(t)));return h.length>0&&Lo.add(la,`${h.join(", ")} for token at ${t.path.join(".")}${t.filePath?` in ${t.filePath}`:""}`),i=i??"sans-serif",`${c?`${c} `:""}${s?`${s} `:""}${o?`${o} `:""}${a?`${a} `:""}${u?`${u}`:`${xa(e)}px`}${l?`/${l} `:" "}${i}`}},"transition/css/shorthand":{type:"value",transitive:!0,filter:(t,e)=>"transition"===(e.usesDtcg?t.$type:t.type),transform:(t,e,r)=>{const n=r.usesDtcg?t.$value:t.value;if("object"!=typeof n)return n;const{duration:i,delay:o,timingFunction:s}=n;return`${i} ${s} ${o}`}},"shadow/css/shorthand":{type:"value",transitive:!0,filter:(t,e)=>"shadow"===(e.usesDtcg?t.$type:t.type),transform:(t,e,r)=>{const n=r.usesDtcg?t.$value:t.value;if("object"!=typeof n)return n;const i=t=>{if("object"!=typeof t)return t;const{type:e,color:r,offsetX:n,offsetY:i,blur:o,spread:s}=t;return`${e?`${e} `:""}${n??0} ${i??0} ${o??0} ${s?`${s} `:""}${r??"#000000"}`};return Array.isArray(n)?n.map(i).join(", "):i(n)}},"asset/url":{type:"value",filter:ga,transform:function(t,e,r){return`url("${(r.usesDtcg?t.$value:t.value).replace(/"/g,'\\"')}")`}},"asset/base64":{type:"value",filter:ga,transform:function(t,e,r,n){return function(t,e=Oe){if("string"!=typeof t)throw new Error("filePath name must be a string");const r=e.readFileSync(jo(t,e.__custom_fs__),"utf-8");return btoa(r)}(r.usesDtcg?t.$value:t.value,n)}},"asset/path":{type:"value",filter:ga,transform:function(t,e,r){return M(process?.cwd()??"/",r.usesDtcg?t.$value:t.value)}},"asset/objC/literal":{type:"value",filter:ga,transform:function(t,e,r){return"@"+va(t,r)}},"asset/swift/literal":{type:"value",filter:ga,transform:(t,e,r)=>va(t,r)},"color/hex8flutter":{type:"value",filter:pa,transform:function(t,e,r){const n=vs(r.usesDtcg?t.$value:t.value).toHex8().toUpperCase();return`Color(0x${n.slice(6)}${n.slice(0,6)})`}},"content/flutter/literal":{type:"value",filter:ya,transform:(t,e,r)=>va(t,r)},"asset/flutter/literal":{type:"value",filter:ga,transform:(t,e,r)=>va(t,r)},"size/flutter/remToDouble":{type:"value",filter:(t,e)=>da(t,e)||ma(t,e),transform:function(t,e,r){const n=xa(e);return(parseFloat(r.usesDtcg?t.$value:t.value)*n).toFixed(2)}}},_a={web:["attribute/cti","name/kebab","size/px","color/css"],js:["attribute/cti","name/pascal","size/rem","color/hex"],scss:["attribute/cti","name/kebab","time/seconds","html/icon","size/rem","color/css","asset/url","fontFamily/css","cubicBezier/css","strokeStyle/css/shorthand","border/css/shorthand","typography/css/shorthand","transition/css/shorthand","shadow/css/shorthand"],css:["attribute/cti","name/kebab","time/seconds","html/icon","size/rem","color/css","asset/url","fontFamily/css","cubicBezier/css","strokeStyle/css/shorthand","border/css/shorthand","typography/css/shorthand","transition/css/shorthand","shadow/css/shorthand"],less:["attribute/cti","name/kebab","time/seconds","html/icon","size/rem","color/hex","asset/url","fontFamily/css","cubicBezier/css","strokeStyle/css/shorthand","border/css/shorthand","typography/css/shorthand","transition/css/shorthand","shadow/css/shorthand"],html:["attribute/cti","attribute/color","name/human"],android:["attribute/cti","name/snake","color/hex8android","size/remToSp","size/remToDp"],compose:["attribute/cti","name/camel","color/composeColor","size/compose/em","size/compose/remToSp","size/compose/remToDp"],ios:["attribute/cti","name/pascal","color/UIColor","content/objC/literal","asset/objC/literal","size/remToPt"],"ios-swift":["attribute/cti","name/camel","color/UIColorSwift","content/swift/literal","asset/swift/literal","size/swift/remToCGFloat"],"ios-swift-separate":["attribute/cti","name/camel","color/UIColorSwift","content/swift/literal","asset/swift/literal","size/swift/remToCGFloat"],assets:["attribute/cti"],flutter:["attribute/cti","name/camel","color/hex8flutter","size/flutter/remToDouble","content/flutter/literal","asset/flutter/literal"],"flutter-separate":["attribute/cti","name/camel","color/hex8flutter","size/flutter/remToDouble","content/flutter/literal","asset/flutter/literal"],"react-native":["name/camel","color/css","size/object"]},Da=Lo.GROUP.FilteredOutputReferences;function Sa(t,e,r={},n=[],i=!1){const{usesDtcg:o}=r,s=Mo(r);function a(t,s){const a=zo(s=s.trim().replace(`.${o?"$":""}value`,""),r.separator??$o.separator);let u=Wo(a,e);if(void 0===u&&r.unfilteredTokens&&(i||Lo.add(Da,s),u=Wo(a,r.unfilteredTokens)),void 0!==u)n.push({...u,ref:a});else if(i)throw new Error(`tries to reference ${s}, which is not defined.`);return""}if("string"==typeof t&&t.replace(s,a),"object"==typeof t)for(const i in t)Object.hasOwn(t,i)&&("string"==typeof t[i]&&t[i].replace(s,a),"object"==typeof t[i]&&Sa(t[i],e,r,n));return n}const ka={prefix:"",commentStyle:"long",commentPosition:"inline",indentation:"",separator:" =",suffix:";"};function Ca({outputReferences:t=!1,outputReferenceFallbacks:e=!1,dictionary:r,format:n,formatting:i={},themeable:o=!1,usesDtcg:s=!1}){const a={};switch(n){case"css":a.prefix="--",a.indentation=" ",a.separator=":";break;case"sass":a.prefix="$",a.commentStyle="short",a.indentation="",a.separator=":";break;case"less":a.prefix="@",a.commentStyle="short",a.indentation="",a.separator=":";break;case"stylus":a.prefix="$",a.commentStyle="short",a.indentation="",a.separator="="}const u={...ka,...a,...i};let{prefix:c,commentStyle:l,indentation:f,separator:h,suffix:p}=u;const{tokens:d,unfilteredTokens:m}=r;return function(i){let a=`${f}${c}${i.name}${h} `,g=s?i.$value:i.value;const y=s?i.original.$value:i.original.value;if(Go(y)&&("function"==typeof t?t(i,{dictionary:r,usesDtcg:s}):t)){const t=Sa(y,d,{unfilteredTokens:m},[]),r="object"==typeof y&&null!==y;r||(g=y),t.forEach((t=>{if(Object.hasOwn(t,(s?"$":"")+"value")&&Object.hasOwn(t,"name")){const i=s?t.$value:t.value,o=function(){return"css"===n?e?`var(${c}${t.name}, ${i})`:`var(${c}${t.name})`:`${c}${t.name}`};g=`${g}`.replace(r?i:new RegExp(`{${t.path.join("\\.")}(\\.\\$?value)?}`,"g"),o)}}))}a+=g;const b="boolean"==typeof i.themeable?i.themeable:o;"sass"===n&&b&&(a+=" !default"),a+=p;const v=i.$description??i.comment;return v&&"none"!==l&&(a=function(t,e,r){const{commentStyle:n,indentation:i}=r;let{commentPosition:o}=r;const s=e.split("\n");let a;switch(s.length>1&&(o="above"),n){case"short":"inline"===o?a=`// ${e}`:(a=s.reduce(((t,e)=>`${t}${i}// ${e}\n`),""),a=a.replace(/\n$/g,""));break;case"long":s.length>1?(a=s.reduce(((t,e)=>`${t}${i} * ${e}\n`),`${i}/**\n`),a+=`${i} */`):a=`${"above"===o?i:""}/* ${e} */`}return"above"===o?`${a}\n${t}`:`${t} ${a}`}(a,v,u)),a}}const Fa="\n",Oa={lineSeparator:Fa,prefix:" * ",header:`/**${Fa}`,footer:`${Fa} */${Fa}${Fa}`,fileHeaderTimestamp:!1};async function ja({file:t,commentStyle:e,formatting:r={},options:n={}}){let i=!0;if(void 0!==t?.options?.showFileHeader&&(i=t.options.showFileHeader),!i)return"";let o=t=>t;t?.options?.fileHeader&&"string"!=typeof t?.options?.fileHeader&&(o=t.options.fileHeader);let{prefix:s,lineSeparator:a,header:u,footer:c,fileHeaderTimestamp:l}=Object.assign({},Oa,r);const f=["Do not edit directly, this file was auto-generated.",...l?[`Generated on ${(new Date).toUTCString()}`]:[]];return"short"===e?(s="// ",u=`${a}`,c=`${a}${a}`):"xml"===e&&(s=" ",u=`\x3c!--${a}`,c=`${a}--\x3e`),`${u}${(await o(f,n)).map((t=>`${s}${t}`)).join(a)}${c}`}function Ta(t,e){return function r(n,i){if(void 0===n)return-1;if(void 0===i)return 1;if(n.original&&Go(n.original.value)){if(i.original&&Go(i.original.value)){const o=Sa(n.original.value,t,{unfilteredTokens:e?.unfilteredTokens}),s=Sa(i.original.value,t,{unfilteredTokens:e?.unfilteredTokens});return o.forEach((t=>{if(t.name===i.name)return 1})),s.forEach((t=>{if(t.name===n.name)return-1})),r(o[0],s[0])}return 1}return-1}}const Ba={lineSeparator:"\n"};function Ra({format:t,dictionary:e,outputReferences:r=!1,outputReferenceFallbacks:n,formatting:i={},themeable:o=!1,usesDtcg:s=!1}){let a=e.allTokens;const u=e.tokens;let{lineSeparator:c}=Object.assign({},Ba,i);return r&&(a=[...a].sort(Ta(u,{unfilteredTokens:e.unfilteredTokens}))),a.map(Ca({outputReferences:r,outputReferenceFallbacks:n,dictionary:e,format:t,formatting:i,themeable:o,usesDtcg:s})).filter((function(t){return!!t})).join(c)}function Pa(t,e){const{outputStringLiterals:r=!1}=e??{};return Array.isArray(t)?function(t){if(t.length>0){const e=Pa(t[0]);return t.every((t=>Pa(t)===e))?e+"[]":`(${Array.from(new Set(t.map(((e,r)=>{const n=t.length===r+1;return`${Pa(e)}${n?"":" | "}`})))).join("")})[]`}return"any[]"}(t):"object"==typeof t?function(t){const e=Object.entries(t);return`{ ${e.map((([t,r],n)=>{const i=e.length===n+1;return`${t}: ${Pa(r)}${i?"":", "}`})).join("")} }`}(t):r&&"string"==typeof t?`"${t.replace(/"/g,'\\"')}"`:["string","number","boolean"].includes(typeof t)?typeof t:"any"}function Na(t,e,r,n){return e.filter((function(t){return"icon"===t.type})).map((function(e){return t+e.name+": "+(r.usesDtcg?e.$value:e.value)+";\n."+n.prefix+"-icon."+e.attributes?.item+":before { content: "+t+e.name+"; }"})).join("\n")}function $a(t,e){return e.name>t.name?-1:1}function Ma(t,e=!1){if("object"!=typeof t||Array.isArray(t))return t;const r={};if(Object.hasOwn(t,(e?"$":"")+"value"))return e?t.$value:t.value;for(const n in t)Object.hasOwn(t,n)&&(r[n]=Ma(t[n],e));return r}function Ia(t,e,r){return null==t.objectType&&(t.objectType=void 0===e?"class":e),void 0===t.import?void 0===r||["ios-swift","ios-swift-separate"].includes(r)?t.import=["UIKit"]:t.import=["SwiftUI"]:"string"==typeof t.import&&(t.import=[t.import]),void 0===t.accessControl?t.accessControl="public":""!==t.accessControl&&(t.accessControl=`${t.accessControl}`),t}Lo.GROUP.FilteredOutputReferences;const La=15,za=573,Ua=-2;function Wa(t){return Ga(t.map((([t,e])=>new Array(t).fill(e,0,t))))}function Ga(t){return t.reduce(((t,e)=>t.concat(Array.isArray(e)?Ga(e):e)),[])}const qa=[0,1,2,3].concat(...Wa([[2,4],[2,5],[4,6],[4,7],[8,8],[8,9],[16,10],[16,11],[32,12],[32,13],[64,14],[64,15],[2,0],[1,16],[1,17],[2,18],[2,19],[4,20],[4,21],[8,22],[8,23],[16,24],[16,25],[32,26],[32,27],[64,28],[64,29]]));function Ha(){const t=this;function e(t,e){let r=0;do{r|=1&t,t>>>=1,r<<=1}while(--e>0);return r>>>1}t.build_tree=function(r){const n=t.dyn_tree,i=t.stat_desc.static_tree,o=t.stat_desc.elems;let s,a,u,c=-1;for(r.heap_len=0,r.heap_max=za,s=0;s=1;s--)r.pqdownheap(n,s);u=o;do{s=r.heap[1],r.heap[1]=r.heap[r.heap_len--],r.pqdownheap(n,1),a=r.heap[1],r.heap[--r.heap_max]=s,r.heap[--r.heap_max]=a,n[2*u]=n[2*s]+n[2*a],r.depth[u]=Math.max(r.depth[s],r.depth[a])+1,n[2*s+1]=n[2*a+1]=u,r.heap[1]=u++,r.pqdownheap(n,1)}while(r.heap_len>=2);r.heap[--r.heap_max]=r.heap[1],function(e){const r=t.dyn_tree,n=t.stat_desc.static_tree,i=t.stat_desc.extra_bits,o=t.stat_desc.extra_base,s=t.stat_desc.max_length;let a,u,c,l,f,h,p=0;for(l=0;l<=La;l++)e.bl_count[l]=0;for(r[2*e.heap[e.heap_max]+1]=0,a=e.heap_max+1;as&&(l=s,p++),r[2*u+1]=l,u>t.max_code||(e.bl_count[l]++,f=0,u>=o&&(f=i[u-o]),h=r[2*u],e.opt_len+=h*(l+f),n&&(e.static_len+=h*(n[2*u+1]+f)));if(0!==p){do{for(l=s-1;0===e.bl_count[l];)l--;e.bl_count[l]--,e.bl_count[l+1]+=2,e.bl_count[s]--,p-=2}while(p>0);for(l=s;0!==l;l--)for(u=e.bl_count[l];0!==u;)c=e.heap[--a],c>t.max_code||(r[2*c+1]!=l&&(e.opt_len+=(l-r[2*c+1])*r[2*c],r[2*c+1]=l),u--)}}(r),function(t,r,n){const i=[];let o,s,a,u=0;for(o=1;o<=La;o++)i[o]=u=u+n[o-1]<<1;for(s=0;s<=r;s++)a=t[2*s+1],0!==a&&(t[2*s]=e(i[a]++,a))}(n,t.max_code,r.bl_count)}}function Va(t,e,r,n,i){const o=this;o.static_tree=t,o.extra_bits=e,o.extra_base=r,o.elems=n,o.max_length=i}Ha._length_code=[0,1,2,3,4,5,6,7].concat(...Wa([[2,8],[2,9],[2,10],[2,11],[4,12],[4,13],[4,14],[4,15],[8,16],[8,17],[8,18],[8,19],[16,20],[16,21],[16,22],[16,23],[32,24],[32,25],[32,26],[31,27],[1,28]])),Ha.base_length=[0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,32,40,48,56,64,80,96,112,128,160,192,224,0],Ha.base_dist=[0,1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576],Ha.d_code=function(t){return t<256?qa[t]:qa[256+(t>>>7)]},Ha.extra_lbits=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],Ha.extra_dbits=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Ha.extra_blbits=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Ha.bl_order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];const Ya=Wa([[144,8],[112,9],[24,7],[8,8]]);Va.static_ltree=Ga([12,140,76,204,44,172,108,236,28,156,92,220,60,188,124,252,2,130,66,194,34,162,98,226,18,146,82,210,50,178,114,242,10,138,74,202,42,170,106,234,26,154,90,218,58,186,122,250,6,134,70,198,38,166,102,230,22,150,86,214,54,182,118,246,14,142,78,206,46,174,110,238,30,158,94,222,62,190,126,254,1,129,65,193,33,161,97,225,17,145,81,209,49,177,113,241,9,137,73,201,41,169,105,233,25,153,89,217,57,185,121,249,5,133,69,197,37,165,101,229,21,149,85,213,53,181,117,245,13,141,77,205,45,173,109,237,29,157,93,221,61,189,125,253,19,275,147,403,83,339,211,467,51,307,179,435,115,371,243,499,11,267,139,395,75,331,203,459,43,299,171,427,107,363,235,491,27,283,155,411,91,347,219,475,59,315,187,443,123,379,251,507,7,263,135,391,71,327,199,455,39,295,167,423,103,359,231,487,23,279,151,407,87,343,215,471,55,311,183,439,119,375,247,503,15,271,143,399,79,335,207,463,47,303,175,431,111,367,239,495,31,287,159,415,95,351,223,479,63,319,191,447,127,383,255,511,0,64,32,96,16,80,48,112,8,72,40,104,24,88,56,120,4,68,36,100,20,84,52,116,3,131,67,195,35,163,99,227].map(((t,e)=>[t,Ya[e]])));const Ka=Wa([[30,5]]);function Ja(t,e,r,n,i){const o=this;o.good_length=t,o.max_lazy=e,o.nice_length=r,o.max_chain=n,o.func=i}Va.static_dtree=Ga([0,16,8,24,4,20,12,28,2,18,10,26,6,22,14,30,1,17,9,25,5,21,13,29,3,19,11,27,7,23].map(((t,e)=>[t,Ka[e]]))),Va.static_l_desc=new Va(Va.static_ltree,Ha.extra_lbits,257,286,La),Va.static_d_desc=new Va(Va.static_dtree,Ha.extra_dbits,0,30,La),Va.static_bl_desc=new Va(null,Ha.extra_blbits,0,19,7);const Xa=[new Ja(0,0,0,0,0),new Ja(4,4,8,4,1),new Ja(4,5,16,8,1),new Ja(4,6,32,32,1),new Ja(4,4,16,16,2),new Ja(8,16,32,32,2),new Ja(8,16,128,128,2),new Ja(8,32,128,256,2),new Ja(32,128,258,1024,2),new Ja(32,258,258,4096,2)],Za=["need dictionary","stream end","","","stream error","data error","","buffer error","",""],Qa=113,tu=666,eu=262;function ru(t,e,r,n){const i=t[2*e],o=t[2*r];return i>>8&255)}function V(t,e){let r;const n=e;U>16-n?(r=t,z|=r<>>16-U,U+=n-16):(z|=t<=8&&(q(255&z),z>>>=8,U-=8)}function X(e,r){let n,i,o;if(t.dist_buf[M]=e,t.lc_buf[M]=255&r,M++,0===e?j[2*r]++:(I++,e--,j[2*(Ha._length_code[r]+256+1)]++,T[2*Ha.d_code(e)]++),!(8191&M)&&k>2){for(n=8*M,i=x-y,o=0;o<30;o++)n+=T[2*o]*(5+Ha.extra_dbits[o]);if(n>>>=3,I8?H(z):U>0&&q(255&z),z=0,U=0}function tt(e,r,n){V(0+(n?1:0),3),function(e,r,n){Q(),L=8,H(r),H(~r),t.pending_buf.set(u.subarray(e,e+r),t.pending),t.pending+=r}(e,r)}function et(r){(function(e,r,n){let i,o,s=0;k>0?(R.build_tree(t),P.build_tree(t),s=function(){let e;for(G(j,R.max_code),G(T,P.max_code),N.build_tree(t),e=18;e>=3&&0===B[2*Ha.bl_order[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(),i=t.opt_len+3+7>>>3,o=t.static_len+3+7>>>3,o<=i&&(i=o)):i=o=r+5,r+4<=i&&-1!=e?tt(e,r,n):o==i?(V(2+(n?1:0),3),Z(Va.static_ltree,Va.static_dtree)):(V(4+(n?1:0),3),function(t,e,r){let n;for(V(t-257,5),V(e-1,5),V(r-4,4),n=0;n=0?y:-1,x-y,r),y=x,e.flush_pending()}function rt(){let t,r,n,i;do{if(i=c-A-x,0===i&&0===x&&0===A)i=o;else if(-1==i)i--;else if(x>=o+o-eu){u.set(u.subarray(o,o+o),0),E-=o,x-=o,y-=o,t=p,n=t;do{r=65535&f[--n],f[n]=r>=o?r-o:0}while(0!=--t);t=o,n=t;do{r=65535&l[--n],l[n]=r>=o?r-o:0}while(0!=--t);i+=o}if(0===e.avail_in)return;t=e.read_buf(u,x+A,i),A+=t,A>=3&&(h=255&u[x],h=(h<o-eu?x-(o-eu):0;let f=O;const h=a,p=x+258;let d=u[i+s-1],m=u[i+s];_>=F&&(n>>=2),f>A&&(f=A);do{if(e=t,u[e+s]==m&&u[e+s-1]==d&&u[e]==u[i]&&u[++e]==u[i+1]){i+=2,e++;do{}while(u[++i]==u[++e]&&u[++i]==u[++e]&&u[++i]==u[++e]&&u[++i]==u[++e]&&u[++i]==u[++e]&&u[++i]==u[++e]&&u[++i]==u[++e]&&u[++i]==u[++e]&&is){if(E=t,s=r,r>=f)break;d=u[i+s-1],m=u[i+s]}}}while((t=65535&l[t&h])>c&&0!=--n);return s<=A?s:A}t.depth=[],t.bl_count=[],t.heap=[],j=[],T=[],B=[],t.pqdownheap=function(e,r){const n=t.heap,i=n[r];let o=r<<1;for(;o<=t.heap_len&&(o9||8!=M||E<9||E>15||v<0||v>9||G<0||G>2?Ua:(e.dstate=t,s=E,o=1<9||r<0||r>2?Ua:(Xa[k].func!=Xa[e].func&&0!==t.total_in&&(n=t.deflate(1)),k!=e&&(k=e,S=Xa[k].max_lazy,F=Xa[k].good_length,O=Xa[k].nice_length,D=Xa[k].max_chain),C=r,n)},t.deflateSetDictionary=function(t,e,n){let i,s=n,c=0;if(!e||42!=r)return Ua;if(s<3)return 0;for(s>o-eu&&(s=o-eu,c=n-s),u.set(e.subarray(c,c+s),0),x=s,y=s,h=255&u[0],h=(h<4||d<0)return Ua;if(!c.next_out||!c.next_in&&0!==c.avail_in||r==tu&&4!=d)return c.msg=Za[4],Ua;if(0===c.avail_out)return c.msg=Za[7],-5;if(e=c,j=i,i=d,42==r&&(F=8+(s-8<<4)<<8,O=(k-1&255)>>1,O>3&&(O=3),F|=O<<6,0!==x&&(F|=32),F+=31-F%31,r=Qa,function(t){q(t>>8&255),q(255&t)}(F)),0!==t.pending){if(e.flush_pending(),0===e.avail_out)return i=-1,0}else if(0===e.avail_in&&d<=j&&4!=d)return e.msg=Za[7],-5;if(r==tu&&0!==e.avail_in)return c.msg=Za[7],-5;if(0!==e.avail_in||0!==A||0!=d&&r!=tu){switch(T=-1,Xa[k].func){case 0:T=function(t){let r,i=65535;for(i>n-5&&(i=n-5);;){if(A<=1){if(rt(),0===A&&0==t)return 0;if(0===A)break}if(x+=A,A=0,r=y+i,(0===x||x>=r)&&(A=x-r,x=r,et(!1),0===e.avail_out))return 0;if(x-y>=o-eu&&(et(!1),0===e.avail_out))return 0}return et(4==t),0===e.avail_out?4==t?2:0:4==t?3:1}(d);break;case 1:T=function(t){let r,n=0;for(;;){if(A=3&&(h=(h<=3)if(r=X(x-E,b-3),A-=b,b<=S&&A>=3){b--;do{x++,h=(h<=3&&(h=(h<4096)&&(b=2)),_>=3&&b<=_){n=x+A-3,r=X(x-1-v,_-3),A-=_-1,_-=2;do{++x<=n&&(h=(h<r&&(i=r),0===i?0:(n.avail_in-=i,t.set(n.next_in.subarray(n.next_in_index,n.next_in_index+i),e),n.next_in_index+=i,n.total_in+=i,i)},flush_pending(){const t=this;let e=t.dstate.pending;e>t.avail_out&&(e=t.avail_out),0!==e&&(t.next_out.set(t.dstate.pending_buf.subarray(t.dstate.pending_out,t.dstate.pending_out+e),t.next_out_index),t.next_out_index+=e,t.dstate.pending_out+=e,t.total_out+=e,t.avail_out-=e,t.dstate.pending-=e,0===t.dstate.pending&&(t.dstate.pending_out=0))}};const ou=0,su=1,au=-2,uu=-3,cu=-4,lu=-5,fu=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],hu=1440,pu=[96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,192,80,7,10,0,8,96,0,8,32,0,9,160,0,8,0,0,8,128,0,8,64,0,9,224,80,7,6,0,8,88,0,8,24,0,9,144,83,7,59,0,8,120,0,8,56,0,9,208,81,7,17,0,8,104,0,8,40,0,9,176,0,8,8,0,8,136,0,8,72,0,9,240,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,200,81,7,13,0,8,100,0,8,36,0,9,168,0,8,4,0,8,132,0,8,68,0,9,232,80,7,8,0,8,92,0,8,28,0,9,152,84,7,83,0,8,124,0,8,60,0,9,216,82,7,23,0,8,108,0,8,44,0,9,184,0,8,12,0,8,140,0,8,76,0,9,248,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,196,81,7,11,0,8,98,0,8,34,0,9,164,0,8,2,0,8,130,0,8,66,0,9,228,80,7,7,0,8,90,0,8,26,0,9,148,84,7,67,0,8,122,0,8,58,0,9,212,82,7,19,0,8,106,0,8,42,0,9,180,0,8,10,0,8,138,0,8,74,0,9,244,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,204,81,7,15,0,8,102,0,8,38,0,9,172,0,8,6,0,8,134,0,8,70,0,9,236,80,7,9,0,8,94,0,8,30,0,9,156,84,7,99,0,8,126,0,8,62,0,9,220,82,7,27,0,8,110,0,8,46,0,9,188,0,8,14,0,8,142,0,8,78,0,9,252,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,194,80,7,10,0,8,97,0,8,33,0,9,162,0,8,1,0,8,129,0,8,65,0,9,226,80,7,6,0,8,89,0,8,25,0,9,146,83,7,59,0,8,121,0,8,57,0,9,210,81,7,17,0,8,105,0,8,41,0,9,178,0,8,9,0,8,137,0,8,73,0,9,242,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,202,81,7,13,0,8,101,0,8,37,0,9,170,0,8,5,0,8,133,0,8,69,0,9,234,80,7,8,0,8,93,0,8,29,0,9,154,84,7,83,0,8,125,0,8,61,0,9,218,82,7,23,0,8,109,0,8,45,0,9,186,0,8,13,0,8,141,0,8,77,0,9,250,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,198,81,7,11,0,8,99,0,8,35,0,9,166,0,8,3,0,8,131,0,8,67,0,9,230,80,7,7,0,8,91,0,8,27,0,9,150,84,7,67,0,8,123,0,8,59,0,9,214,82,7,19,0,8,107,0,8,43,0,9,182,0,8,11,0,8,139,0,8,75,0,9,246,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,206,81,7,15,0,8,103,0,8,39,0,9,174,0,8,7,0,8,135,0,8,71,0,9,238,80,7,9,0,8,95,0,8,31,0,9,158,84,7,99,0,8,127,0,8,63,0,9,222,82,7,27,0,8,111,0,8,47,0,9,190,0,8,15,0,8,143,0,8,79,0,9,254,96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,193,80,7,10,0,8,96,0,8,32,0,9,161,0,8,0,0,8,128,0,8,64,0,9,225,80,7,6,0,8,88,0,8,24,0,9,145,83,7,59,0,8,120,0,8,56,0,9,209,81,7,17,0,8,104,0,8,40,0,9,177,0,8,8,0,8,136,0,8,72,0,9,241,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,201,81,7,13,0,8,100,0,8,36,0,9,169,0,8,4,0,8,132,0,8,68,0,9,233,80,7,8,0,8,92,0,8,28,0,9,153,84,7,83,0,8,124,0,8,60,0,9,217,82,7,23,0,8,108,0,8,44,0,9,185,0,8,12,0,8,140,0,8,76,0,9,249,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,197,81,7,11,0,8,98,0,8,34,0,9,165,0,8,2,0,8,130,0,8,66,0,9,229,80,7,7,0,8,90,0,8,26,0,9,149,84,7,67,0,8,122,0,8,58,0,9,213,82,7,19,0,8,106,0,8,42,0,9,181,0,8,10,0,8,138,0,8,74,0,9,245,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,205,81,7,15,0,8,102,0,8,38,0,9,173,0,8,6,0,8,134,0,8,70,0,9,237,80,7,9,0,8,94,0,8,30,0,9,157,84,7,99,0,8,126,0,8,62,0,9,221,82,7,27,0,8,110,0,8,46,0,9,189,0,8,14,0,8,142,0,8,78,0,9,253,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,195,80,7,10,0,8,97,0,8,33,0,9,163,0,8,1,0,8,129,0,8,65,0,9,227,80,7,6,0,8,89,0,8,25,0,9,147,83,7,59,0,8,121,0,8,57,0,9,211,81,7,17,0,8,105,0,8,41,0,9,179,0,8,9,0,8,137,0,8,73,0,9,243,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,203,81,7,13,0,8,101,0,8,37,0,9,171,0,8,5,0,8,133,0,8,69,0,9,235,80,7,8,0,8,93,0,8,29,0,9,155,84,7,83,0,8,125,0,8,61,0,9,219,82,7,23,0,8,109,0,8,45,0,9,187,0,8,13,0,8,141,0,8,77,0,9,251,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,199,81,7,11,0,8,99,0,8,35,0,9,167,0,8,3,0,8,131,0,8,67,0,9,231,80,7,7,0,8,91,0,8,27,0,9,151,84,7,67,0,8,123,0,8,59,0,9,215,82,7,19,0,8,107,0,8,43,0,9,183,0,8,11,0,8,139,0,8,75,0,9,247,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,207,81,7,15,0,8,103,0,8,39,0,9,175,0,8,7,0,8,135,0,8,71,0,9,239,80,7,9,0,8,95,0,8,31,0,9,159,84,7,99,0,8,127,0,8,63,0,9,223,82,7,27,0,8,111,0,8,47,0,9,191,0,8,15,0,8,143,0,8,79,0,9,255],du=[80,5,1,87,5,257,83,5,17,91,5,4097,81,5,5,89,5,1025,85,5,65,93,5,16385,80,5,3,88,5,513,84,5,33,92,5,8193,82,5,9,90,5,2049,86,5,129,192,5,24577,80,5,2,87,5,385,83,5,25,91,5,6145,81,5,7,89,5,1537,85,5,97,93,5,24577,80,5,4,88,5,769,84,5,49,92,5,12289,82,5,13,90,5,3073,86,5,193,192,5,24577],mu=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],gu=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,112,112],yu=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],bu=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],vu=15;function wu(){let t,e,r,n,i,o;function s(t,e,s,a,u,c,l,f,h,p,d){let m,g,y,b,v,w,x,E,A,_,D,S,k,C,F;_=0,v=s;do{r[t[e+_]]++,_++,v--}while(0!==v);if(r[0]==s)return l[0]=-1,f[0]=0,ou;for(E=f[0],w=1;w<=vu&&0===r[w];w++);for(x=w,Ev&&(E=v),f[0]=E,C=1<S+E;){if(b++,S+=E,F=y-S,F=F>E?E:F,(g=1<<(w=x-S))>m+1&&(g-=m+1,k=x,whu)return uu;i[b]=D=p[0],p[0]+=F,0!==b?(o[b]=v,n[0]=w,n[1]=E,w=v>>>S-E,n[2]=D-i[b-1]-w,h.set(n,3*(i[b-1]+w))):l[0]=D}for(n[1]=x-S,_>=s?n[0]=192:d[_]>>S;w>>=1)v^=w;for(v^=w,A=(1<257?(p==uu?h.msg="oversubscribed distance tree":p==lu?(h.msg="incomplete distance tree",p=uu):p!=cu&&(h.msg="empty distance tree with lengths",p=uu),p):ou)}}wu.inflate_trees_fixed=function(t,e,r,n){return t[0]=9,e[0]=5,r[0]=pu,n[0]=du,ou};const xu=0,Eu=1,Au=2,_u=3,Du=4,Su=5,ku=6,Cu=7,Fu=8,Ou=9;function ju(){const t=this;let e,r,n,i,o=0,s=0,a=0,u=0,c=0,l=0,f=0,h=0,p=0,d=0;function m(t,e,r,n,i,o,s,a){let u,c,l,f,h,p,d,m,g,y,b,v,w,x,E,A;d=a.next_in_index,m=a.avail_in,h=s.bitb,p=s.bitk,g=s.write,y=g>=c[A+1],p-=c[A+1],16&f){for(f&=15,w=c[A+2]+(h&fu[f]),h>>=f,p-=f;p<15;)m--,h|=(255&a.read_byte(d++))<>=c[A+1],p-=c[A+1],16&f){for(f&=15;p>=f,p-=f,y-=w,g>=x)E=g-x,g-E>0&&2>g-E?(s.win[g++]=s.win[E++],s.win[g++]=s.win[E++],w-=2):(s.win.set(s.win.subarray(E,E+2),g),g+=2,E+=2,w-=2);else{E=g-x;do{E+=s.end}while(E<0);if(f=s.end-E,w>f){if(w-=f,g-E>0&&f>g-E)do{s.win[g++]=s.win[E++]}while(0!=--f);else s.win.set(s.win.subarray(E,E+f),g),g+=f,E+=f,f=0;E=0}}if(g-E>0&&w>g-E)do{s.win[g++]=s.win[E++]}while(0!=--w);else s.win.set(s.win.subarray(E,E+w),g),g+=w,E+=w,w=0;break}if(64&f)return a.msg="invalid distance code",w=a.avail_in-m,w=p>>3>3:w,m+=w,d-=w,p-=w<<3,s.bitb=h,s.bitk=p,a.avail_in=m,a.total_in+=d-a.next_in_index,a.next_in_index=d,s.write=g,uu;u+=c[A+2],u+=h&fu[f],A=3*(l+u),f=c[A]}break}if(64&f)return 32&f?(w=a.avail_in-m,w=p>>3>3:w,m+=w,d-=w,p-=w<<3,s.bitb=h,s.bitk=p,a.avail_in=m,a.total_in+=d-a.next_in_index,a.next_in_index=d,s.write=g,su):(a.msg="invalid literal/length code",w=a.avail_in-m,w=p>>3>3:w,m+=w,d-=w,p-=w<<3,s.bitb=h,s.bitk=p,a.avail_in=m,a.total_in+=d-a.next_in_index,a.next_in_index=d,s.write=g,uu);if(u+=c[A+2],u+=h&fu[f],A=3*(l+u),0===(f=c[A])){h>>=c[A+1],p-=c[A+1],s.win[g++]=c[A+2],y--;break}}else h>>=c[A+1],p-=c[A+1],s.win[g++]=c[A+2],y--}while(y>=258&&m>=10);return w=a.avail_in-m,w=p>>3>3:w,m+=w,d-=w,p-=w<<3,s.bitb=h,s.bitk=p,a.avail_in=m,a.total_in+=d-a.next_in_index,a.next_in_index=d,s.write=g,ou}t.init=function(t,o,s,a,u,c){e=xu,f=t,h=o,n=s,p=a,i=u,d=c,r=null},t.proc=function(t,g,y){let b,v,w,x,E,A,_,D=0,S=0,k=0;for(k=g.next_in_index,x=g.avail_in,D=t.bitb,S=t.bitk,E=t.write,A=E=258&&x>=10&&(t.bitb=D,t.bitk=S,g.avail_in=x,g.total_in+=k-g.next_in_index,g.next_in_index=k,t.write=E,y=m(f,h,n,p,i,d,t,g),k=g.next_in_index,x=g.avail_in,D=t.bitb,S=t.bitk,E=t.write,A=E>>=r[v+1],S-=r[v+1],w=r[v],0===w){u=r[v+2],e=ku;break}if(16&w){c=15&w,o=r[v+2],e=Au;break}if(!(64&w)){a=w,s=v/3+r[v+2];break}if(32&w){e=Cu;break}return e=Ou,g.msg="invalid literal/length code",y=uu,t.bitb=D,t.bitk=S,g.avail_in=x,g.total_in+=k-g.next_in_index,g.next_in_index=k,t.write=E,t.inflate_flush(g,y);case Au:for(b=c;S>=b,S-=b,a=h,r=i,s=d,e=_u;case _u:for(b=a;S>=r[v+1],S-=r[v+1],w=r[v],16&w){c=15&w,l=r[v+2],e=Du;break}if(!(64&w)){a=w,s=v/3+r[v+2];break}return e=Ou,g.msg="invalid distance code",y=uu,t.bitb=D,t.bitk=S,g.avail_in=x,g.total_in+=k-g.next_in_index,g.next_in_index=k,t.write=E,t.inflate_flush(g,y);case Du:for(b=c;S>=b,S-=b,e=Su;case Su:for(_=E-l;_<0;)_+=t.end;for(;0!==o;){if(0===A&&(E==t.end&&0!==t.read&&(E=0,A=E7&&(S-=8,x++,k--),t.write=E,y=t.inflate_flush(g,y),E=t.write,A=Et.avail_out&&(n=t.avail_out),0!==n&&e==lu&&(e=ou),t.avail_out-=n,t.total_out+=n,t.next_out.set(r.win.subarray(o,o+n),i),i+=n,o+=n,o==r.end&&(o=0,r.write==r.end&&(r.write=0),n=r.write-o,n>t.avail_out&&(n=t.avail_out),0!==n&&e==lu&&(e=ou),t.avail_out-=n,t.total_out+=n,t.next_out.set(r.win.subarray(o,o+n),i),i+=n,o+=n),t.next_out_index=i,r.read=o,e},r.proc=function(t,e){let d,m,g,y,b,v,w,x;for(y=t.next_in_index,b=t.avail_in,m=r.bitb,g=r.bitk,v=r.write,w=v>>1){case 0:m>>>=3,g-=3,d=7&g,m>>>=d,g-=d,i=Ru;break;case 1:E=[],A=[],_=[[]],D=[[]],wu.inflate_trees_fixed(E,A,_,D),l.init(E[0],A[0],_[0],0,D[0],0),m>>>=3,g-=3,i=Iu;break;case 2:m>>>=3,g-=3,i=Nu;break;case 3:return m>>>=3,g-=3,i=Uu,t.msg="invalid block type",e=uu,r.bitb=m,r.bitk=g,t.avail_in=b,t.total_in+=y-t.next_in_index,t.next_in_index=y,r.write=v,r.inflate_flush(t,e)}break;case Ru:for(;g<32;){if(0===b)return r.bitb=m,r.bitk=g,t.avail_in=b,t.total_in+=y-t.next_in_index,t.next_in_index=y,r.write=v,r.inflate_flush(t,e);e=ou,b--,m|=(255&t.read_byte(y++))<>>16&65535)!=(65535&m))return i=Uu,t.msg="invalid stored block lengths",e=uu,r.bitb=m,r.bitk=g,t.avail_in=b,t.total_in+=y-t.next_in_index,t.next_in_index=y,r.write=v,r.inflate_flush(t,e);o=65535&m,m=g=0,i=0!==o?Pu:0!==f?Lu:Bu;break;case Pu:if(0===b)return r.bitb=m,r.bitk=g,t.avail_in=b,t.total_in+=y-t.next_in_index,t.next_in_index=y,r.write=v,r.inflate_flush(t,e);if(0===w&&(v==r.end&&0!==r.read&&(v=0,w=vb&&(d=b),d>w&&(d=w),r.win.set(t.read_buf(y,d),v),y+=d,b-=d,v+=d,w-=d,0!=(o-=d))break;i=0!==f?Lu:Bu;break;case Nu:for(;g<14;){if(0===b)return r.bitb=m,r.bitk=g,t.avail_in=b,t.total_in+=y-t.next_in_index,t.next_in_index=y,r.write=v,r.inflate_flush(t,e);e=ou,b--,m|=(255&t.read_byte(y++))<29||(d>>5&31)>29)return i=Uu,t.msg="too many length or distance symbols",e=uu,r.bitb=m,r.bitk=g,t.avail_in=b,t.total_in+=y-t.next_in_index,t.next_in_index=y,r.write=v,r.inflate_flush(t,e);if(d=258+(31&d)+(d>>5&31),!n||n.length>>=14,g-=14,a=0,i=$u;case $u:for(;a<4+(s>>>10);){for(;g<3;){if(0===b)return r.bitb=m,r.bitk=g,t.avail_in=b,t.total_in+=y-t.next_in_index,t.next_in_index=y,r.write=v,r.inflate_flush(t,e);e=ou,b--,m|=(255&t.read_byte(y++))<>>=3,g-=3}for(;a<19;)n[Tu[a++]]=0;if(u[0]=7,d=p.inflate_trees_bits(n,u,c,h,t),d!=ou)return(e=d)==uu&&(n=null,i=Uu),r.bitb=m,r.bitk=g,t.avail_in=b,t.total_in+=y-t.next_in_index,t.next_in_index=y,r.write=v,r.inflate_flush(t,e);a=0,i=Mu;case Mu:for(;d=s,!(a>=258+(31&d)+(d>>5&31));){let o,l;for(d=u[0];g>>=d,g-=d,n[a++]=l;else{for(x=18==l?7:l-14,o=18==l?11:3;g>>=d,g-=d,o+=m&fu[x],m>>>=x,g-=x,x=a,d=s,x+o>258+(31&d)+(d>>5&31)||16==l&&x<1)return n=null,i=Uu,t.msg="invalid bit length repeat",e=uu,r.bitb=m,r.bitk=g,t.avail_in=b,t.total_in+=y-t.next_in_index,t.next_in_index=y,r.write=v,r.inflate_flush(t,e);l=16==l?n[x-1]:0;do{n[x++]=l}while(0!=--o);a=x}}if(c[0]=-1,S=[],k=[],C=[],F=[],S[0]=9,k[0]=6,d=s,d=p.inflate_trees_dynamic(257+(31&d),1+(d>>5&31),n,S,k,C,F,h,t),d!=ou)return d==uu&&(n=null,i=Uu),e=d,r.bitb=m,r.bitk=g,t.avail_in=b,t.total_in+=y-t.next_in_index,t.next_in_index=y,r.write=v,r.inflate_flush(t,e);l.init(S[0],k[0],h,C[0],h,F[0]),i=Iu;case Iu:if(r.bitb=m,r.bitk=g,t.avail_in=b,t.total_in+=y-t.next_in_index,t.next_in_index=y,r.write=v,(e=l.proc(r,t,e))!=su)return r.inflate_flush(t,e);if(e=ou,l.free(t),y=t.next_in_index,b=t.avail_in,m=r.bitb,g=r.bitk,v=r.write,w=v15?(t.inflateEnd(r),au):(t.wbits=n,r.istate.blocks=new Wu(r,1<>4)>i.wbits){i.mode=Gu,t.msg="invalid win size",i.marker=5;break}i.mode=1;case 1:if(0===t.avail_in)return r;if(r=e,t.avail_in--,t.total_in++,n=255&t.read_byte(t.next_in_index++),((i.method<<8)+n)%31!=0){i.mode=Gu,t.msg="incorrect header check",i.marker=5;break}if(!(32&n)){i.mode=7;break}i.mode=2;case 2:if(0===t.avail_in)return r;r=e,t.avail_in--,t.total_in++,i.need=(255&t.read_byte(t.next_in_index++))<<24&4278190080,i.mode=3;case 3:if(0===t.avail_in)return r;r=e,t.avail_in--,t.total_in++,i.need+=(255&t.read_byte(t.next_in_index++))<<16&16711680,i.mode=4;case 4:if(0===t.avail_in)return r;r=e,t.avail_in--,t.total_in++,i.need+=(255&t.read_byte(t.next_in_index++))<<8&65280,i.mode=5;case 5:return 0===t.avail_in?r:(r=e,t.avail_in--,t.total_in++,i.need+=255&t.read_byte(t.next_in_index++),i.mode=6,2);case 6:return i.mode=Gu,t.msg="need dictionary",i.marker=0,au;case 7:if(r=i.blocks.proc(t,r),r==uu){i.mode=Gu,i.marker=0;break}if(r==ou&&(r=e),r!=su)return r;r=e,i.blocks.reset(t,i.was),i.mode=12;case 12:return t.avail_in=0,su;case Gu:return uu;default:return au}},t.inflateSetDictionary=function(t,e,r){let n=0,i=r;if(!t||!t.istate||6!=t.istate.mode)return au;const o=t.istate;return i>=1<{const t={};for(const e of Object.keys(rc))for(const r of Object.keys(rc[e])){const n=rc[e][r];if("string"==typeof n)t[n]=e+"/"+r;else for(let i=0;i>>1^3988292384:e>>>=1;nc[t]=e}TransformStream;const ic={concat(t,e){if(0===t.length||0===e.length)return t.concat(e);const r=t[t.length-1],n=ic.getPartial(r);return 32===n?t.concat(e):ic._shiftRight(e,n,0|r,t.slice(0,t.length-1))},bitLength(t){const e=t.length;if(0===e)return 0;const r=t[e-1];return 32*(e-1)+ic.getPartial(r)},clamp(t,e){if(32*t.length0&&e&&(t[r-1]=ic.partial(e,t[r-1]&2147483648>>e-1,1)),t},partial:(t,e,r)=>32===t?e:(r?0|e:e<<32-t)+1099511627776*t,getPartial:t=>Math.round(t/1099511627776)||32,_shiftRight(t,e,r,n){for(void 0===n&&(n=[]);e>=32;e-=32)n.push(r),r=0;if(0===e)return n.concat(t);for(let i=0;i>>e),r=t[i]<<32-e;const i=t.length?t[t.length-1]:0,o=ic.getPartial(i);return n.push(ic.partial(e+o&31,e+o>32?r:n.pop(),1)),n}},oc={bytes:{fromBits(t){const e=ic.bitLength(t)/8,r=new Uint8Array(e);let n;for(let i=0;i>>24,n<<=8;return r},toBits(t){const e=[];let r,n=0;for(r=0;r9007199254740991)throw new Error("Cannot hash more than 2^53 - 1 bits");const o=new Uint32Array(r);let s=0;for(let t=e.blockSize+n-(e.blockSize+n&e.blockSize-1);t<=i;t+=e.blockSize)e._block(o.subarray(16*s,16*(s+1))),s+=1;return r.splice(0,16*s),e}finalize(){const t=this;let e=t._buffer;const r=t._h;e=ic.concat(e,[ic.partial(1,1)]);for(let t=e.length+2;15&t;t++)e.push(0);for(e.push(Math.floor(t._length/4294967296)),e.push(0|t._length);e.length;)t._block(e.splice(0,16));return t.reset(),r}_f(t,e,r,n){return t<=19?e&r|~e&n:t<=39?e^r^n:t<=59?e&r|e&n|r&n:t<=79?e^r^n:void 0}_S(t,e){return e<>>32-t}_block(t){const e=this,r=e._h,n=Array(80);for(let e=0;e<16;e++)n[e]=t[e];let i=r[0],o=r[1],s=r[2],a=r[3],u=r[4];for(let t=0;t<=79;t++){t>=16&&(n[t]=e._S(1,n[t-3]^n[t-8]^n[t-14]^n[t-16]));const r=e._S(5,i)+e._f(t,o,s,a)+u+n[t]+e._key[Math.floor(t/20)]|0;u=a,a=s,s=e._S(30,o),o=i,i=r}r[0]=r[0]+i|0,r[1]=r[1]+o|0,r[2]=r[2]+s|0,r[3]=r[3]+a|0,r[4]=r[4]+u|0}},ac={importKey:t=>new ac.hmacSha1(oc.bytes.toBits(t)),pbkdf2(t,e,r,n){if(r=r||1e4,n<0||r<0)throw new Error("invalid params to pbkdf2");const i=1+(n>>5)<<2;let o,s,a,u,c;const l=new ArrayBuffer(i),f=new DataView(l);let h=0;const p=ic;for(e=oc.bytes.toBits(e),c=1;h<(i||1);c++){for(o=s=t.encrypt(p.concat(e,[c])),a=1;ai&&(t=(new r).update(t).finalize());for(let e=0;e?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ".split("").length,new Uint8Array([7,0,2,0,65,69,3,0,0]);try{hc="file:///home/floscr/Code/Work/Hyma/sd-test/webpack-test-v2/node_modules/@zip.js/zip.js/lib/zip-fs.js"}catch(t){}tc({baseURL:hc}),function(t){const e=()=>URL.createObjectURL(new Blob(['const{Array:e,Object:t,Number:n,Math:r,Error:s,Uint8Array:i,Uint16Array:o,Uint32Array:c,Int32Array:f,Map:a,DataView:l,Promise:u,TextEncoder:w,crypto:h,postMessage:d,TransformStream:p,ReadableStream:y,WritableStream:m,CompressionStream:b,DecompressionStream:g}=self,k=void 0,v="undefined",S="function";class z{constructor(e){return class extends p{constructor(t,n){const r=new e(n);super({transform(e,t){t.enqueue(r.append(e))},flush(e){const t=r.flush();t&&e.enqueue(t)}})}}}}const C=[];for(let e=0;256>e;e++){let t=e;for(let e=0;8>e;e++)1&t?t=t>>>1^3988292384:t>>>=1;C[e]=t}class x{constructor(e){this.t=e||-1}append(e){let t=0|this.t;for(let n=0,r=0|e.length;r>n;n++)t=t>>>8^C[255&(t^e[n])];this.t=t}get(){return~this.t}}class A extends p{constructor(){let e;const t=new x;super({transform(e,n){t.append(e),n.enqueue(e)},flush(){const n=new i(4);new l(n.buffer).setUint32(0,t.get()),e.value=n}}),e=this}}const _={concat(e,t){if(0===e.length||0===t.length)return e.concat(t);const n=e[e.length-1],r=_.i(n);return 32===r?e.concat(t):_.o(t,r,0|n,e.slice(0,e.length-1))},l(e){const t=e.length;if(0===t)return 0;const n=e[t-1];return 32*(t-1)+_.i(n)},u(e,t){if(32*e.length0&&t&&(e[n-1]=_.h(t,e[n-1]&2147483648>>t-1,1)),e},h:(e,t,n)=>32===e?t:(n?0|t:t<<32-e)+1099511627776*e,i:e=>r.round(e/1099511627776)||32,o(e,t,n,r){for(void 0===r&&(r=[]);t>=32;t-=32)r.push(n),n=0;if(0===t)return r.concat(e);for(let s=0;s>>t),n=e[s]<<32-t;const s=e.length?e[e.length-1]:0,i=_.i(s);return r.push(_.h(t+i&31,t+i>32?n:r.pop(),1)),r}},I={p:{m(e){const t=_.l(e)/8,n=new i(t);let r;for(let s=0;t>s;s++)3&s||(r=e[s/4]),n[s]=r>>>24,r<<=8;return n},k(e){const t=[];let n,r=0;for(n=0;n9007199254740991)throw new s("Cannot hash more than 2^53 - 1 bits");const o=new c(n);let f=0;for(let e=t.blockSize+r-(t.blockSize+r&t.blockSize-1);i>=e;e+=t.blockSize)t.P(o.subarray(16*f,16*(f+1))),f+=1;return n.splice(0,16*f),t}D(){const e=this;let t=e.A;const n=e.C;t=_.concat(t,[_.h(1,1)]);for(let e=t.length+2;15&e;e++)t.push(0);for(t.push(r.floor(e._/4294967296)),t.push(0|e._);t.length;)e.P(t.splice(0,16));return e.reset(),n}V(e,t,n,r){return e>19?e>39?e>59?e>79?void 0:t^n^r:t&n|t&r|n&r:t^n^r:t&n|~t&r}R(e,t){return t<>>32-e}P(t){const n=this,s=n.C,i=e(80);for(let e=0;16>e;e++)i[e]=t[e];let o=s[0],c=s[1],f=s[2],a=s[3],l=s[4];for(let e=0;79>=e;e++){16>e||(i[e]=n.R(1,i[e-3]^i[e-8]^i[e-14]^i[e-16]));const t=n.R(5,o)+n.V(e,c,f,a)+l+i[e]+n.S[r.floor(e/20)]|0;l=a,a=f,f=n.R(30,c),c=o,o=t}s[0]=s[0]+o|0,s[1]=s[1]+c|0,s[2]=s[2]+f|0,s[3]=s[3]+a|0,s[4]=s[4]+l|0}},D={getRandomValues(e){const t=new c(e.buffer),n=e=>{let t=987654321;const n=4294967295;return()=>(t=36969*(65535&t)+(t>>16)&n,(((t<<16)+(e=18e3*(65535&e)+(e>>16)&n)&n)/4294967296+.5)*(r.random()>.5?1:-1))};for(let s,i=0;inew V.B(I.p.k(e)),M(e,t,n,r){if(n=n||1e4,0>r||0>n)throw new s("invalid params to pbkdf2");const i=1+(r>>5)<<2;let o,c,f,a,u;const w=new ArrayBuffer(i),h=new l(w);let d=0;const p=_;for(t=I.p.k(t),u=1;(i||1)>d;u++){for(o=c=e.encrypt(p.concat(t,[u])),f=1;n>f;f++)for(c=e.encrypt(c),a=0;ad&&fs&&(e=(new n).update(e).D());for(let t=0;s>t;t++)r[0][t]=909522486^e[t],r[1][t]=1549556828^e[t];t.K[0].update(r[0]),t.K[1].update(r[1]),t.N=new n(t.K[0])}reset(){const e=this;e.N=new e.U(e.K[0]),e.O=!1}update(e){this.O=!0,this.N.update(e)}digest(){const e=this,t=e.N.D(),n=new e.U(e.K[1]).update(t).D();return e.reset(),n}encrypt(e){if(this.O)throw new s("encrypt on already updated hmac called!");return this.update(e),this.digest(e)}}},R=typeof h!=v&&typeof h.getRandomValues==S,B="Invalid password",E="Invalid signature",M="zipjs-abort-check-password";function U(e){return R?h.getRandomValues(e):D.getRandomValues(e)}const K=16,N={name:"PBKDF2"},O=t.assign({hash:{name:"HMAC"}},N),T=t.assign({iterations:1e3,hash:{name:"SHA-1"}},N),W=["deriveBits"],j=[8,12,16],H=[16,24,32],L=10,F=[0,0,0,0],q=typeof h!=v,G=q&&h.subtle,J=q&&typeof G!=v,Q=I.p,X=class{constructor(e){const t=this;t.T=[[[],[],[],[],[]],[[],[],[],[],[]]],t.T[0][0][0]||t.W();const n=t.T[0][4],r=t.T[1],i=e.length;let o,c,f,a=1;if(4!==i&&6!==i&&8!==i)throw new s("invalid aes key size");for(t.S=[c=e.slice(0),f=[]],o=i;4*i+28>o;o++){let e=c[o-1];(o%i==0||8===i&&o%i==4)&&(e=n[e>>>24]<<24^n[e>>16&255]<<16^n[e>>8&255]<<8^n[255&e],o%i==0&&(e=e<<8^e>>>24^a<<24,a=a<<1^283*(a>>7))),c[o]=c[o-i]^e}for(let e=0;o;e++,o--){const t=c[3&e?o:o-4];f[e]=4>=o||4>e?t:r[0][n[t>>>24]]^r[1][n[t>>16&255]]^r[2][n[t>>8&255]]^r[3][n[255&t]]}}encrypt(e){return this.j(e,0)}decrypt(e){return this.j(e,1)}W(){const e=this.T[0],t=this.T[1],n=e[4],r=t[4],s=[],i=[];let o,c,f,a;for(let e=0;256>e;e++)i[(s[e]=e<<1^283*(e>>7))^e]=e;for(let l=o=0;!n[l];l^=c||1,o=i[o]||1){let i=o^o<<1^o<<2^o<<3^o<<4;i=i>>8^255&i^99,n[l]=i,r[i]=l,a=s[f=s[c=s[l]]];let u=16843009*a^65537*f^257*c^16843008*l,w=257*s[i]^16843008*i;for(let n=0;4>n;n++)e[n][l]=w=w<<24^w>>>8,t[n][i]=u=u<<24^u>>>8}for(let n=0;5>n;n++)e[n]=e[n].slice(0),t[n]=t[n].slice(0)}j(e,t){if(4!==e.length)throw new s("invalid aes block size");const n=this.S[t],r=n.length/4-2,i=[0,0,0,0],o=this.T[t],c=o[0],f=o[1],a=o[2],l=o[3],u=o[4];let w,h,d,p=e[0]^n[0],y=e[t?3:1]^n[1],m=e[2]^n[2],b=e[t?1:3]^n[3],g=4;for(let e=0;r>e;e++)w=c[p>>>24]^f[y>>16&255]^a[m>>8&255]^l[255&b]^n[g],h=c[y>>>24]^f[m>>16&255]^a[b>>8&255]^l[255&p]^n[g+1],d=c[m>>>24]^f[b>>16&255]^a[p>>8&255]^l[255&y]^n[g+2],b=c[b>>>24]^f[p>>16&255]^a[y>>8&255]^l[255&m]^n[g+3],g+=4,p=w,y=h,m=d;for(let e=0;4>e;e++)i[t?3&-e:e]=u[p>>>24]<<24^u[y>>16&255]<<16^u[m>>8&255]<<8^u[255&b]^n[g++],w=p,p=y,y=m,m=b,b=w;return i}},Y=class{constructor(e,t){this.H=e,this.L=t,this.F=t}reset(){this.F=this.L}update(e){return this.q(this.H,e,this.F)}G(e){if(255&~(e>>24))e+=1<<24;else{let t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}return e}J(e){0===(e[0]=this.G(e[0]))&&(e[1]=this.G(e[1]))}q(e,t,n){let r;if(!(r=t.length))return[];const s=_.l(t);for(let s=0;r>s;s+=4){this.J(n);const r=e.encrypt(n);t[s]^=r[0],t[s+1]^=r[1],t[s+2]^=r[2],t[s+3]^=r[3]}return _.u(t,s)}},Z=V.B;let $=q&&J&&typeof G.importKey==S,ee=q&&J&&typeof G.deriveBits==S;class te extends p{constructor({password:e,rawPassword:n,signed:r,encryptionStrength:o,checkPasswordOnly:c}){super({start(){t.assign(this,{ready:new u((e=>this.X=e)),password:ie(e,n),signed:r,Y:o-1,pending:new i})},async transform(e,t){const n=this,{password:r,Y:o,X:f,ready:a}=n;r?(await(async(e,t,n,r)=>{const i=await se(e,t,n,ce(r,0,j[t])),o=ce(r,j[t]);if(i[0]!=o[0]||i[1]!=o[1])throw new s(B)})(n,o,r,ce(e,0,j[o]+2)),e=ce(e,j[o]+2),c?t.error(new s(M)):f()):await a;const l=new i(e.length-L-(e.length-L)%K);t.enqueue(re(n,e,l,0,L,!0))},async flush(e){const{signed:t,Z:n,$:r,pending:o,ready:c}=this;if(r&&n){await c;const f=ce(o,0,o.length-L),a=ce(o,o.length-L);let l=new i;if(f.length){const e=ae(Q,f);r.update(e);const t=n.update(e);l=fe(Q,t)}if(t){const e=ce(fe(Q,r.digest()),0,L);for(let t=0;L>t;t++)if(e[t]!=a[t])throw new s(E)}e.enqueue(l)}}})}}class ne extends p{constructor({password:e,rawPassword:n,encryptionStrength:r}){let s;super({start(){t.assign(this,{ready:new u((e=>this.X=e)),password:ie(e,n),Y:r-1,pending:new i})},async transform(e,t){const n=this,{password:r,Y:s,X:o,ready:c}=n;let f=new i;r?(f=await(async(e,t,n)=>{const r=U(new i(j[t]));return oe(r,await se(e,t,n,r))})(n,s,r),o()):await c;const a=new i(f.length+e.length-e.length%K);a.set(f,0),t.enqueue(re(n,e,a,f.length,0))},async flush(e){const{Z:t,$:n,pending:r,ready:o}=this;if(n&&t){await o;let c=new i;if(r.length){const e=t.update(ae(Q,r));n.update(e),c=fe(Q,e)}s.signature=fe(Q,n.digest()).slice(0,L),e.enqueue(oe(c,s.signature))}}}),s=this}}function re(e,t,n,r,s,o){const{Z:c,$:f,pending:a}=e,l=t.length-s;let u;for(a.length&&(t=oe(a,t),n=((e,t)=>{if(t&&t>e.length){const n=e;(e=new i(t)).set(n,0)}return e})(n,l-l%K)),u=0;l-K>=u;u+=K){const e=ae(Q,ce(t,u,u+K));o&&f.update(e);const s=c.update(e);o||f.update(s),n.set(fe(Q,s),u+r)}return e.pending=ce(t,u),n}async function se(n,r,s,o){n.password=null;const c=await(async(e,t,n,r,s)=>{if(!$)return V.importKey(t);try{return await G.importKey("raw",t,n,!1,s)}catch(e){return $=!1,V.importKey(t)}})(0,s,O,0,W),f=await(async(e,t,n)=>{if(!ee)return V.M(t,e.salt,T.iterations,n);try{return await G.deriveBits(e,t,n)}catch(r){return ee=!1,V.M(t,e.salt,T.iterations,n)}})(t.assign({salt:o},T),c,8*(2*H[r]+2)),a=new i(f),l=ae(Q,ce(a,0,H[r])),u=ae(Q,ce(a,H[r],2*H[r])),w=ce(a,2*H[r]);return t.assign(n,{keys:{key:l,ee:u,passwordVerification:w},Z:new Y(new X(l),e.from(F)),$:new Z(u)}),w}function ie(e,t){return t===k?(e=>{if(typeof w==v){const t=new i((e=unescape(encodeURIComponent(e))).length);for(let n=0;n>>24]),i=~e.ne.get(),e.keys=[n,s,i]}function ye(e){const t=2|e.keys[2];return me(r.imul(t,1^t)>>>8)}function me(e){return 255&e}function be(e){return 4294967295&e}const ge="deflate-raw";class ke extends p{constructor(e,{chunkSize:t,CompressionStream:n,CompressionStreamNative:r}){super({});const{compressed:s,encrypted:i,useCompressionStream:o,zipCrypto:c,signed:f,level:a}=e,u=this;let w,h,d=Se(super.readable);i&&!c||!f||(w=new A,d=xe(d,w)),s&&(d=Ce(d,o,{level:a,chunkSize:t},r,n)),i&&(c?d=xe(d,new ue(e)):(h=new ne(e),d=xe(d,h))),ze(u,d,(()=>{let e;i&&!c&&(e=h.signature),i&&!c||!f||(e=new l(w.value.buffer).getUint32(0)),u.signature=e}))}}class ve extends p{constructor(e,{chunkSize:t,DecompressionStream:n,DecompressionStreamNative:r}){super({});const{zipCrypto:i,encrypted:o,signed:c,signature:f,compressed:a,useCompressionStream:u}=e;let w,h,d=Se(super.readable);o&&(i?d=xe(d,new le(e)):(h=new te(e),d=xe(d,h))),a&&(d=Ce(d,u,{chunkSize:t},r,n)),o&&!i||!c||(w=new A,d=xe(d,w)),ze(this,d,(()=>{if((!o||i)&&c){const e=new l(w.value.buffer);if(f!=e.getUint32(0,!1))throw new s(E)}}))}}function Se(e){return xe(e,new p({transform(e,t){e&&e.length&&t.enqueue(e)}}))}function ze(e,n,r){n=xe(n,new p({flush:r})),t.defineProperty(e,"readable",{get:()=>n})}function Ce(e,t,n,r,s){try{e=xe(e,new(t&&r?r:s)(ge,n))}catch(r){if(!t)return e;try{e=xe(e,new s(ge,n))}catch(t){return e}}return e}function xe(e,t){return e.pipeThrough(t)}const Ae="data",_e="close";class Ie extends p{constructor(e,n){super({});const r=this,{codecType:s}=e;let i;s.startsWith("deflate")?i=ke:s.startsWith("inflate")&&(i=ve);let o=0,c=0;const f=new i(e,n),a=super.readable,l=new p({transform(e,t){e&&e.length&&(c+=e.length,t.enqueue(e))},flush(){t.assign(r,{inputSize:c})}}),u=new p({transform(e,t){e&&e.length&&(o+=e.length,t.enqueue(e))},flush(){const{signature:e}=f;t.assign(r,{signature:e,outputSize:o,inputSize:c})}});t.defineProperty(r,"readable",{get:()=>a.pipeThrough(l).pipeThrough(f).pipeThrough(u)})}}class Pe extends p{constructor(e){let t;super({transform:function n(r,s){if(t){const e=new i(t.length+r.length);e.set(t),e.set(r,t.length),r=e,t=null}r.length>e?(s.enqueue(r.slice(0,e)),n(r.slice(e),s)):t=r},flush(e){t&&t.length&&e.enqueue(t)}})}}const De=new a,Ve=new a;let Re,Be=0,Ee=!0;async function Me(e){try{const{options:t,scripts:r,config:s}=e;if(r&&r.length)try{Ee?importScripts.apply(k,r):await Ue(r)}catch(e){Ee=!1,await Ue(r)}self.initCodec&&self.initCodec(),s.CompressionStreamNative=self.CompressionStream,s.DecompressionStreamNative=self.DecompressionStream,self.Deflate&&(s.CompressionStream=new z(self.Deflate)),self.Inflate&&(s.DecompressionStream=new z(self.Inflate));const i={highWaterMark:1},o=e.readable||new y({async pull(e){const t=new u((e=>De.set(Be,e)));Ke({type:"pull",messageId:Be}),Be=(Be+1)%n.MAX_SAFE_INTEGER;const{value:r,done:s}=await t;e.enqueue(r),s&&e.close()}},i),c=e.writable||new m({async write(e){let t;const r=new u((e=>t=e));Ve.set(Be,t),Ke({type:Ae,value:e,messageId:Be}),Be=(Be+1)%n.MAX_SAFE_INTEGER,await r}},i),f=new Ie(t,s);Re=new AbortController;const{signal:a}=Re;await o.pipeThrough(f).pipeThrough(new Pe(s.chunkSize)).pipeTo(c,{signal:a,preventClose:!0,preventAbort:!0}),await c.getWriter().close();const{signature:l,inputSize:w,outputSize:h}=f;Ke({type:_e,result:{signature:l,inputSize:w,outputSize:h}})}catch(e){Ne(e)}}async function Ue(e){for(const t of e)await import(t)}function Ke(e){let{value:t}=e;if(t)if(t.length)try{t=new i(t),e.value=t.buffer,d(e,[e.value])}catch(t){d(e)}else d(e);else d(e)}function Ne(e=new s("Unknown error")){const{message:t,stack:n,code:r,name:i}=e;d({error:{message:t,stack:n,code:r,name:i}})}addEventListener("message",(({data:e})=>{const{type:t,messageId:n,value:r,done:s}=e;try{if("start"==t&&Me(e),t==Ae){const e=De.get(n);De.delete(n),e({value:new i(r),done:s})}if("ack"==t){const e=Ve.get(n);Ve.delete(n),e()}t==_e&&Re.abort()}catch(e){Ne(e)}}));const Oe=15,Te=573,We=-2;function je(t){return He(t.map((([t,n])=>new e(t).fill(n,0,t))))}function He(t){return t.reduce(((t,n)=>t.concat(e.isArray(n)?He(n):n)),[])}const Le=[0,1,2,3].concat(...je([[2,4],[2,5],[4,6],[4,7],[8,8],[8,9],[16,10],[16,11],[32,12],[32,13],[64,14],[64,15],[2,0],[1,16],[1,17],[2,18],[2,19],[4,20],[4,21],[8,22],[8,23],[16,24],[16,25],[32,26],[32,27],[64,28],[64,29]]));function Fe(){const e=this;function t(e,t){let n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}e.re=n=>{const s=e.se,i=e.oe.ie,o=e.oe.ce;let c,f,a,l=-1;for(n.fe=0,n.ae=Te,c=0;o>c;c++)0!==s[2*c]?(n.le[++n.fe]=l=c,n.ue[c]=0):s[2*c+1]=0;for(;2>n.fe;)a=n.le[++n.fe]=2>l?++l:0,s[2*a]=1,n.ue[a]=0,n.we--,i&&(n.he-=i[2*a+1]);for(e.de=l,c=r.floor(n.fe/2);c>=1;c--)n.pe(s,c);a=o;do{c=n.le[1],n.le[1]=n.le[n.fe--],n.pe(s,1),f=n.le[1],n.le[--n.ae]=c,n.le[--n.ae]=f,s[2*a]=s[2*c]+s[2*f],n.ue[a]=r.max(n.ue[c],n.ue[f])+1,s[2*c+1]=s[2*f+1]=a,n.le[1]=a++,n.pe(s,1)}while(n.fe>=2);n.le[--n.ae]=n.le[1],(t=>{const n=e.se,r=e.oe.ie,s=e.oe.ye,i=e.oe.me,o=e.oe.be;let c,f,a,l,u,w,h=0;for(l=0;Oe>=l;l++)t.ge[l]=0;for(n[2*t.le[t.ae]+1]=0,c=t.ae+1;Te>c;c++)f=t.le[c],l=n[2*n[2*f+1]+1]+1,l>o&&(l=o,h++),n[2*f+1]=l,f>e.de||(t.ge[l]++,u=0,i>f||(u=s[f-i]),w=n[2*f],t.we+=w*(l+u),r&&(t.he+=w*(r[2*f+1]+u)));if(0!==h){do{for(l=o-1;0===t.ge[l];)l--;t.ge[l]--,t.ge[l+1]+=2,t.ge[o]--,h-=2}while(h>0);for(l=o;0!==l;l--)for(f=t.ge[l];0!==f;)a=t.le[--c],a>e.de||(n[2*a+1]!=l&&(t.we+=(l-n[2*a+1])*n[2*a],n[2*a+1]=l),f--)}})(n),((e,n,r)=>{const s=[];let i,o,c,f=0;for(i=1;Oe>=i;i++)s[i]=f=f+r[i-1]<<1;for(o=0;n>=o;o++)c=e[2*o+1],0!==c&&(e[2*o]=t(s[c]++,c))})(s,e.de,n.ge)}}function qe(e,t,n,r,s){const i=this;i.ie=e,i.ye=t,i.me=n,i.ce=r,i.be=s}Fe.ke=[0,1,2,3,4,5,6,7].concat(...je([[2,8],[2,9],[2,10],[2,11],[4,12],[4,13],[4,14],[4,15],[8,16],[8,17],[8,18],[8,19],[16,20],[16,21],[16,22],[16,23],[32,24],[32,25],[32,26],[31,27],[1,28]])),Fe.ve=[0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,32,40,48,56,64,80,96,112,128,160,192,224,0],Fe.Se=[0,1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576],Fe.ze=e=>256>e?Le[e]:Le[256+(e>>>7)],Fe.Ce=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],Fe.xe=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Fe.Ae=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Fe._e=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];const Ge=je([[144,8],[112,9],[24,7],[8,8]]);qe.Ie=He([12,140,76,204,44,172,108,236,28,156,92,220,60,188,124,252,2,130,66,194,34,162,98,226,18,146,82,210,50,178,114,242,10,138,74,202,42,170,106,234,26,154,90,218,58,186,122,250,6,134,70,198,38,166,102,230,22,150,86,214,54,182,118,246,14,142,78,206,46,174,110,238,30,158,94,222,62,190,126,254,1,129,65,193,33,161,97,225,17,145,81,209,49,177,113,241,9,137,73,201,41,169,105,233,25,153,89,217,57,185,121,249,5,133,69,197,37,165,101,229,21,149,85,213,53,181,117,245,13,141,77,205,45,173,109,237,29,157,93,221,61,189,125,253,19,275,147,403,83,339,211,467,51,307,179,435,115,371,243,499,11,267,139,395,75,331,203,459,43,299,171,427,107,363,235,491,27,283,155,411,91,347,219,475,59,315,187,443,123,379,251,507,7,263,135,391,71,327,199,455,39,295,167,423,103,359,231,487,23,279,151,407,87,343,215,471,55,311,183,439,119,375,247,503,15,271,143,399,79,335,207,463,47,303,175,431,111,367,239,495,31,287,159,415,95,351,223,479,63,319,191,447,127,383,255,511,0,64,32,96,16,80,48,112,8,72,40,104,24,88,56,120,4,68,36,100,20,84,52,116,3,131,67,195,35,163,99,227].map(((e,t)=>[e,Ge[t]])));const Je=je([[30,5]]);function Qe(e,t,n,r,s){const i=this;i.Pe=e,i.De=t,i.Ve=n,i.Re=r,i.Be=s}qe.Ee=He([0,16,8,24,4,20,12,28,2,18,10,26,6,22,14,30,1,17,9,25,5,21,13,29,3,19,11,27,7,23].map(((e,t)=>[e,Je[t]]))),qe.Me=new qe(qe.Ie,Fe.Ce,257,286,Oe),qe.Ue=new qe(qe.Ee,Fe.xe,0,30,Oe),qe.Ke=new qe(null,Fe.Ae,0,19,7);const Xe=[new Qe(0,0,0,0,0),new Qe(4,4,8,4,1),new Qe(4,5,16,8,1),new Qe(4,6,32,32,1),new Qe(4,4,16,16,2),new Qe(8,16,32,32,2),new Qe(8,16,128,128,2),new Qe(8,32,128,256,2),new Qe(32,128,258,1024,2),new Qe(32,258,258,4096,2)],Ye=["need dictionary","stream end","","","stream error","data error","","buffer error","",""],Ze=113,$e=666,et=262;function tt(e,t,n,r){const s=e[2*t],i=e[2*n];return i>s||s==i&&r[t]<=r[n]}function nt(){const e=this;let t,n,s,c,f,a,l,u,w,h,d,p,y,m,b,g,k,v,S,z,C,x,A,_,I,P,D,V,R,B,E,M,U;const K=new Fe,N=new Fe,O=new Fe;let T,W,j,H,L,F;function q(){let t;for(t=0;286>t;t++)E[2*t]=0;for(t=0;30>t;t++)M[2*t]=0;for(t=0;19>t;t++)U[2*t]=0;E[512]=1,e.we=e.he=0,W=j=0}function G(e,t){let n,r=-1,s=e[1],i=0,o=7,c=4;0===s&&(o=138,c=3),e[2*(t+1)+1]=65535;for(let f=0;t>=f;f++)n=s,s=e[2*(f+1)+1],++ii?U[2*n]+=i:0!==n?(n!=r&&U[2*n]++,U[32]++):i>10?U[36]++:U[34]++,i=0,r=n,0===s?(o=138,c=3):n==s?(o=6,c=3):(o=7,c=4))}function J(t){e.Ne[e.pending++]=t}function Q(e){J(255&e),J(e>>>8&255)}function X(e,t){let n;const r=t;F>16-r?(n=e,L|=n<>>16-F,F+=r-16):(L|=e<=n;n++)if(r=i,i=e[2*(n+1)+1],++o>=c||r!=i){if(f>o)do{Y(r,U)}while(0!=--o);else 0!==r?(r!=s&&(Y(r,U),o--),Y(16,U),X(o-3,2)):o>10?(Y(18,U),X(o-11,7)):(Y(17,U),X(o-3,3));o=0,s=r,0===i?(c=138,f=3):r==i?(c=6,f=3):(c=7,f=4)}}function $(){16==F?(Q(L),L=0,F=0):8>F||(J(255&L),L>>>=8,F-=8)}function ee(t,n){let s,i,o;if(e.Oe[W]=t,e.Te[W]=255&n,W++,0===t?E[2*n]++:(j++,t--,E[2*(Fe.ke[n]+256+1)]++,M[2*Fe.ze(t)]++),!(8191&W)&&D>2){for(s=8*W,i=C-k,o=0;30>o;o++)s+=M[2*o]*(5+Fe.xe[o]);if(s>>>=3,jc);Y(256,t),H=t[513]}function ne(){F>8?Q(L):F>0&&J(255&L),L=0,F=0}function re(t,n,r){X(0+(r?1:0),3),((t,n)=>{ne(),H=8,Q(n),Q(~n),e.Ne.set(u.subarray(t,t+n),e.pending),e.pending+=n})(t,n)}function se(n){((t,n,r)=>{let s,i,o=0;D>0?(K.re(e),N.re(e),o=(()=>{let t;for(G(E,K.de),G(M,N.de),O.re(e),t=18;t>=3&&0===U[2*Fe._e[t]+1];t--);return e.we+=14+3*(t+1),t})(),s=e.we+3+7>>>3,i=e.he+3+7>>>3,i>s||(s=i)):s=i=n+5,n+4>s||-1==t?i==s?(X(2+(r?1:0),3),te(qe.Ie,qe.Ee)):(X(4+(r?1:0),3),((e,t,n)=>{let r;for(X(e-257,5),X(t-1,5),X(n-4,4),r=0;n>r;r++)X(U[2*Fe._e[r]+1],3);Z(E,e-1),Z(M,t-1)})(K.de+1,N.de+1,o+1),te(E,M)):re(t,n,r),q(),r&&ne()})(0>k?-1:k,C-k,n),k=C,t.We()}function ie(){let e,n,r,s;do{if(s=w-A-C,0===s&&0===C&&0===A)s=f;else if(-1==s)s--;else if(C>=f+f-et){u.set(u.subarray(f,f+f),0),x-=f,C-=f,k-=f,e=y,r=e;do{n=65535&d[--r],d[r]=f>n?0:n-f}while(0!=--e);e=f,r=e;do{n=65535&h[--r],h[r]=f>n?0:n-f}while(0!=--e);s+=f}if(0===t.je)return;e=t.He(u,C+A,s),A+=e,3>A||(p=255&u[C],p=(p<A&&0!==t.je)}function oe(e){let t,n,r=I,s=C,i=_;const o=C>f-et?C-(f-et):0;let c=B;const a=l,w=C+258;let d=u[s+i-1],p=u[s+i];R>_||(r>>=2),c>A&&(c=A);do{if(t=e,u[t+i]==p&&u[t+i-1]==d&&u[t]==u[s]&&u[++t]==u[s+1]){s+=2,t++;do{}while(u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&w>s);if(n=258-(w-s),s=w-258,n>i){if(x=e,i=n,n>=c)break;d=u[s+i-1],p=u[s+i]}}}while((e=65535&h[e&a])>o&&0!=--r);return i>A?A:i}e.ue=[],e.ge=[],e.le=[],E=[],M=[],U=[],e.pe=(t,n)=>{const r=e.le,s=r[n];let i=n<<1;for(;i<=e.fe&&(i(W||(W=8),j||(j=8),G||(G=0),t.Fe=null,-1==S&&(S=6),1>j||j>9||8!=W||9>x||x>15||0>S||S>9||0>G||G>2?We:(t.qe=e,a=x,f=1<(t.Ge=t.Je=0,t.Fe=null,e.pending=0,e.Qe=0,n=Ze,c=0,K.se=E,K.oe=qe.Me,N.se=M,N.oe=qe.Ue,O.se=U,O.oe=qe.Ke,L=0,F=0,H=8,q(),(()=>{w=2*f,d[y-1]=0;for(let e=0;y-1>e;e++)d[e]=0;P=Xe[D].De,R=Xe[D].Pe,B=Xe[D].Ve,I=Xe[D].Re,C=0,k=0,A=0,v=_=2,z=0,p=0})(),0))(t))),e.Xe=()=>42!=n&&n!=Ze&&n!=$e?We:(e.Te=null,e.Oe=null,e.Ne=null,d=null,h=null,u=null,e.qe=null,n==Ze?-3:0),e.Ye=(e,t,n)=>{let r=0;return-1==t&&(t=6),0>t||t>9||0>n||n>2?We:(Xe[D].Be!=Xe[t].Be&&0!==e.Ge&&(r=e.Ze(1)),D!=t&&(D=t,P=Xe[D].De,R=Xe[D].Pe,B=Xe[D].Ve,I=Xe[D].Re),V=n,r)},e.$e=(e,t,r)=>{let s,i=r,o=0;if(!t||42!=n)return We;if(3>i)return 0;for(i>f-et&&(i=f-et,o=r-i),u.set(t.subarray(o,o+i),0),C=i,k=i,p=255&u[0],p=(p<=s;s++)p=(p<{let o,w,m,I,R;if(i>4||0>i)return We;if(!r.et||!r.tt&&0!==r.je||n==$e&&4!=i)return r.Fe=Ye[4],We;if(0===r.nt)return r.Fe=Ye[7],-5;var B;if(t=r,I=c,c=i,42==n&&(w=8+(a-8<<4)<<8,m=(D-1&255)>>1,m>3&&(m=3),w|=m<<6,0!==C&&(w|=32),w+=31-w%31,n=Ze,J((B=w)>>8&255),J(255&B)),0!==e.pending){if(t.We(),0===t.nt)return c=-1,0}else if(0===t.je&&I>=i&&4!=i)return t.Fe=Ye[7],-5;if(n==$e&&0!==t.je)return r.Fe=Ye[7],-5;if(0!==t.je||0!==A||0!=i&&n!=$e){switch(R=-1,Xe[D].Be){case 0:R=(e=>{let n,r=65535;for(r>s-5&&(r=s-5);;){if(1>=A){if(ie(),0===A&&0==e)return 0;if(0===A)break}if(C+=A,A=0,n=k+r,(0===C||C>=n)&&(A=C-n,C=n,se(!1),0===t.nt))return 0;if(C-k>=f-et&&(se(!1),0===t.nt))return 0}return se(4==e),0===t.nt?4==e?2:0:4==e?3:1})(i);break;case 1:R=(e=>{let n,r=0;for(;;){if(et>A){if(ie(),et>A&&0==e)return 0;if(0===A)break}if(3>A||(p=(p<f-et||2!=V&&(v=oe(r)),3>v)n=ee(0,255&u[C]),A--,C++;else if(n=ee(C-x,v-3),A-=v,v>P||3>A)C+=v,v=0,p=255&u[C],p=(p<{let n,r,s=0;for(;;){if(et>A){if(ie(),et>A&&0==e)return 0;if(0===A)break}if(3>A||(p=(p<_&&f-et>=(C-s&65535)&&(2!=V&&(v=oe(s)),5>=v&&(1==V||3==v&&C-x>4096)&&(v=2)),3>_||v>_)if(0!==z){if(n=ee(0,255&u[C-1]),n&&se(!1),C++,A--,0===t.nt)return 0}else z=1,C++,A--;else{r=C+A-3,n=ee(C-1-S,_-3),A-=_-1,_-=2;do{++C>r||(p=(p<1+H+10-F&&(X(2,3),Y(256,qe.Ie),$()),H=7;else if(re(0,0,!1),3==i)for(o=0;y>o;o++)d[o]=0;if(t.We(),0===t.nt)return c=-1,0}}return 4!=i?0:1}}function rt(){const e=this;e.rt=0,e.st=0,e.je=0,e.Ge=0,e.nt=0,e.Je=0}function st(e){const t=new rt,n=(o=e&&e.chunkSize?e.chunkSize:65536)+5*(r.floor(o/16383)+1);var o;const c=new i(n);let f=e?e.level:-1;void 0===f&&(f=-1),t.Le(f),t.et=c,this.append=(e,r)=>{let o,f,a=0,l=0,u=0;const w=[];if(e.length){t.rt=0,t.tt=e,t.je=e.length;do{if(t.st=0,t.nt=n,o=t.Ze(0),0!=o)throw new s("deflating: "+t.Fe);t.st&&(t.st==n?w.push(new i(c)):w.push(c.subarray(0,t.st))),u+=t.st,r&&t.rt>0&&t.rt!=a&&(r(t.rt),a=t.rt)}while(t.je>0||0===t.nt);return w.length>1?(f=new i(u),w.forEach((e=>{f.set(e,l),l+=e.length}))):f=w[0]?new i(w[0]):new i,f}},this.flush=()=>{let e,r,o=0,f=0;const a=[];do{if(t.st=0,t.nt=n,e=t.Ze(4),1!=e&&0!=e)throw new s("deflating: "+t.Fe);n-t.nt>0&&a.push(c.slice(0,t.st)),f+=t.st}while(t.je>0||0===t.nt);return t.Xe(),r=new i(f),a.forEach((e=>{r.set(e,o),o+=e.length})),r}}rt.prototype={Le(e,t){const n=this;return n.qe=new nt,t||(t=Oe),n.qe.Le(n,e,t)},Ze(e){const t=this;return t.qe?t.qe.Ze(t,e):We},Xe(){const e=this;if(!e.qe)return We;const t=e.qe.Xe();return e.qe=null,t},Ye(e,t){const n=this;return n.qe?n.qe.Ye(n,e,t):We},$e(e,t){const n=this;return n.qe?n.qe.$e(n,e,t):We},He(e,t,n){const r=this;let s=r.je;return s>n&&(s=n),0===s?0:(r.je-=s,e.set(r.tt.subarray(r.rt,r.rt+s),t),r.rt+=s,r.Ge+=s,s)},We(){const e=this;let t=e.qe.pending;t>e.nt&&(t=e.nt),0!==t&&(e.et.set(e.qe.Ne.subarray(e.qe.Qe,e.qe.Qe+t),e.st),e.st+=t,e.qe.Qe+=t,e.Je+=t,e.nt-=t,e.qe.pending-=t,0===e.qe.pending&&(e.qe.Qe=0))}};const it=0,ot=1,ct=-2,ft=-3,at=-4,lt=-5,ut=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],wt=1440,ht=[96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,192,80,7,10,0,8,96,0,8,32,0,9,160,0,8,0,0,8,128,0,8,64,0,9,224,80,7,6,0,8,88,0,8,24,0,9,144,83,7,59,0,8,120,0,8,56,0,9,208,81,7,17,0,8,104,0,8,40,0,9,176,0,8,8,0,8,136,0,8,72,0,9,240,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,200,81,7,13,0,8,100,0,8,36,0,9,168,0,8,4,0,8,132,0,8,68,0,9,232,80,7,8,0,8,92,0,8,28,0,9,152,84,7,83,0,8,124,0,8,60,0,9,216,82,7,23,0,8,108,0,8,44,0,9,184,0,8,12,0,8,140,0,8,76,0,9,248,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,196,81,7,11,0,8,98,0,8,34,0,9,164,0,8,2,0,8,130,0,8,66,0,9,228,80,7,7,0,8,90,0,8,26,0,9,148,84,7,67,0,8,122,0,8,58,0,9,212,82,7,19,0,8,106,0,8,42,0,9,180,0,8,10,0,8,138,0,8,74,0,9,244,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,204,81,7,15,0,8,102,0,8,38,0,9,172,0,8,6,0,8,134,0,8,70,0,9,236,80,7,9,0,8,94,0,8,30,0,9,156,84,7,99,0,8,126,0,8,62,0,9,220,82,7,27,0,8,110,0,8,46,0,9,188,0,8,14,0,8,142,0,8,78,0,9,252,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,194,80,7,10,0,8,97,0,8,33,0,9,162,0,8,1,0,8,129,0,8,65,0,9,226,80,7,6,0,8,89,0,8,25,0,9,146,83,7,59,0,8,121,0,8,57,0,9,210,81,7,17,0,8,105,0,8,41,0,9,178,0,8,9,0,8,137,0,8,73,0,9,242,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,202,81,7,13,0,8,101,0,8,37,0,9,170,0,8,5,0,8,133,0,8,69,0,9,234,80,7,8,0,8,93,0,8,29,0,9,154,84,7,83,0,8,125,0,8,61,0,9,218,82,7,23,0,8,109,0,8,45,0,9,186,0,8,13,0,8,141,0,8,77,0,9,250,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,198,81,7,11,0,8,99,0,8,35,0,9,166,0,8,3,0,8,131,0,8,67,0,9,230,80,7,7,0,8,91,0,8,27,0,9,150,84,7,67,0,8,123,0,8,59,0,9,214,82,7,19,0,8,107,0,8,43,0,9,182,0,8,11,0,8,139,0,8,75,0,9,246,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,206,81,7,15,0,8,103,0,8,39,0,9,174,0,8,7,0,8,135,0,8,71,0,9,238,80,7,9,0,8,95,0,8,31,0,9,158,84,7,99,0,8,127,0,8,63,0,9,222,82,7,27,0,8,111,0,8,47,0,9,190,0,8,15,0,8,143,0,8,79,0,9,254,96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,193,80,7,10,0,8,96,0,8,32,0,9,161,0,8,0,0,8,128,0,8,64,0,9,225,80,7,6,0,8,88,0,8,24,0,9,145,83,7,59,0,8,120,0,8,56,0,9,209,81,7,17,0,8,104,0,8,40,0,9,177,0,8,8,0,8,136,0,8,72,0,9,241,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,201,81,7,13,0,8,100,0,8,36,0,9,169,0,8,4,0,8,132,0,8,68,0,9,233,80,7,8,0,8,92,0,8,28,0,9,153,84,7,83,0,8,124,0,8,60,0,9,217,82,7,23,0,8,108,0,8,44,0,9,185,0,8,12,0,8,140,0,8,76,0,9,249,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,197,81,7,11,0,8,98,0,8,34,0,9,165,0,8,2,0,8,130,0,8,66,0,9,229,80,7,7,0,8,90,0,8,26,0,9,149,84,7,67,0,8,122,0,8,58,0,9,213,82,7,19,0,8,106,0,8,42,0,9,181,0,8,10,0,8,138,0,8,74,0,9,245,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,205,81,7,15,0,8,102,0,8,38,0,9,173,0,8,6,0,8,134,0,8,70,0,9,237,80,7,9,0,8,94,0,8,30,0,9,157,84,7,99,0,8,126,0,8,62,0,9,221,82,7,27,0,8,110,0,8,46,0,9,189,0,8,14,0,8,142,0,8,78,0,9,253,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,195,80,7,10,0,8,97,0,8,33,0,9,163,0,8,1,0,8,129,0,8,65,0,9,227,80,7,6,0,8,89,0,8,25,0,9,147,83,7,59,0,8,121,0,8,57,0,9,211,81,7,17,0,8,105,0,8,41,0,9,179,0,8,9,0,8,137,0,8,73,0,9,243,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,203,81,7,13,0,8,101,0,8,37,0,9,171,0,8,5,0,8,133,0,8,69,0,9,235,80,7,8,0,8,93,0,8,29,0,9,155,84,7,83,0,8,125,0,8,61,0,9,219,82,7,23,0,8,109,0,8,45,0,9,187,0,8,13,0,8,141,0,8,77,0,9,251,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,199,81,7,11,0,8,99,0,8,35,0,9,167,0,8,3,0,8,131,0,8,67,0,9,231,80,7,7,0,8,91,0,8,27,0,9,151,84,7,67,0,8,123,0,8,59,0,9,215,82,7,19,0,8,107,0,8,43,0,9,183,0,8,11,0,8,139,0,8,75,0,9,247,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,207,81,7,15,0,8,103,0,8,39,0,9,175,0,8,7,0,8,135,0,8,71,0,9,239,80,7,9,0,8,95,0,8,31,0,9,159,84,7,99,0,8,127,0,8,63,0,9,223,82,7,27,0,8,111,0,8,47,0,9,191,0,8,15,0,8,143,0,8,79,0,9,255],dt=[80,5,1,87,5,257,83,5,17,91,5,4097,81,5,5,89,5,1025,85,5,65,93,5,16385,80,5,3,88,5,513,84,5,33,92,5,8193,82,5,9,90,5,2049,86,5,129,192,5,24577,80,5,2,87,5,385,83,5,25,91,5,6145,81,5,7,89,5,1537,85,5,97,93,5,24577,80,5,4,88,5,769,84,5,49,92,5,12289,82,5,13,90,5,3073,86,5,193,192,5,24577],pt=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],yt=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,112,112],mt=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],bt=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],gt=15;function kt(){let e,t,n,r,s,i;function o(e,t,o,c,f,a,l,u,w,h,d){let p,y,m,b,g,k,v,S,z,C,x,A,_,I,P;C=0,g=o;do{n[e[t+C]]++,C++,g--}while(0!==g);if(n[0]==o)return l[0]=-1,u[0]=0,it;for(S=u[0],k=1;gt>=k&&0===n[k];k++);for(v=k,k>S&&(S=k),g=gt;0!==g&&0===n[g];g--);for(m=g,S>g&&(S=g),u[0]=S,I=1<k;k++,I<<=1)if(0>(I-=n[k]))return ft;if(0>(I-=n[g]))return ft;for(n[g]+=I,i[1]=k=0,C=1,_=2;0!=--g;)i[_]=k+=n[C],_++,C++;g=0,C=0;do{0!==(k=e[t+C])&&(d[i[k]++]=g),C++}while(++g=v;v++)for(p=n[v];0!=p--;){for(;v>A+S;){if(b++,A+=S,P=m-A,P=P>S?S:P,(y=1<<(k=v-A))>p+1&&(y-=p+1,_=v,P>k))for(;++kn[++_];)y-=n[_];if(P=1<wt)return ft;s[b]=x=h[0],h[0]+=P,0!==b?(i[b]=g,r[0]=k,r[1]=S,k=g>>>A-S,r[2]=x-s[b-1]-k,w.set(r,3*(s[b-1]+k))):l[0]=x}for(r[1]=v-A,o>C?d[C]d[C]?0:96,r[2]=d[C++]):(r[0]=a[d[C]-c]+16+64,r[2]=f[d[C++]-c]):r[0]=192,y=1<>>A;P>k;k+=y)w.set(r,3*(x+k));for(k=1<>>=1)g^=k;for(g^=k,z=(1<c;c++)t[c]=0;for(c=0;gt+1>c;c++)n[c]=0;for(c=0;3>c;c++)r[c]=0;s.set(n.subarray(0,gt),0),i.set(n.subarray(0,gt+1),0)}this.it=(n,r,s,i,f)=>{let a;return c(19),e[0]=0,a=o(n,0,19,19,null,null,s,r,i,e,t),a==ft?f.Fe="oversubscribed dynamic bit lengths tree":a!=lt&&0!==r[0]||(f.Fe="incomplete dynamic bit lengths tree",a=ft),a},this.ot=(n,r,s,i,f,a,l,u,w)=>{let h;return c(288),e[0]=0,h=o(s,0,n,257,pt,yt,a,i,u,e,t),h!=it||0===i[0]?(h==ft?w.Fe="oversubscribed literal/length tree":h!=at&&(w.Fe="incomplete literal/length tree",h=ft),h):(c(288),h=o(s,n,r,0,mt,bt,l,f,u,e,t),h!=it||0===f[0]&&n>257?(h==ft?w.Fe="oversubscribed distance tree":h==lt?(w.Fe="incomplete distance tree",h=ft):h!=at&&(w.Fe="empty distance tree with lengths",h=ft),h):it)}}kt.ct=(e,t,n,r)=>(e[0]=9,t[0]=5,n[0]=ht,r[0]=dt,it);const vt=0,St=1,zt=2,Ct=3,xt=4,At=5,_t=6,It=7,Pt=8,Dt=9;function Vt(){const e=this;let t,n,r,s,i=0,o=0,c=0,f=0,a=0,l=0,u=0,w=0,h=0,d=0;function p(e,t,n,r,s,i,o,c){let f,a,l,u,w,h,d,p,y,m,b,g,k,v,S,z;d=c.rt,p=c.je,w=o.ft,h=o.lt,y=o.write,m=yh;)p--,w|=(255&c.ut(d++))<>=a[z+1],h-=a[z+1],16&u){for(u&=15,k=a[z+2]+(w&ut[u]),w>>=u,h-=u;15>h;)p--,w|=(255&c.ut(d++))<>=a[z+1],h-=a[z+1],16&u){for(u&=15;u>h;)p--,w|=(255&c.ut(d++))<>=u,h-=u,m-=k,v>y){S=y-v;do{S+=o.end}while(0>S);if(u=o.end-S,k>u){if(k-=u,y-S>0&&u>y-S)do{o.wt[y++]=o.wt[S++]}while(0!=--u);else o.wt.set(o.wt.subarray(S,S+u),y),y+=u,S+=u,u=0;S=0}}else S=y-v,y-S>0&&2>y-S?(o.wt[y++]=o.wt[S++],o.wt[y++]=o.wt[S++],k-=2):(o.wt.set(o.wt.subarray(S,S+2),y),y+=2,S+=2,k-=2);if(y-S>0&&k>y-S)do{o.wt[y++]=o.wt[S++]}while(0!=--k);else o.wt.set(o.wt.subarray(S,S+k),y),y+=k,S+=k,k=0;break}if(64&u)return c.Fe="invalid distance code",k=c.je-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ft=w,o.lt=h,c.je=p,c.Ge+=d-c.rt,c.rt=d,o.write=y,ft;f+=a[z+2],f+=w&ut[u],z=3*(l+f),u=a[z]}break}if(64&u)return 32&u?(k=c.je-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ft=w,o.lt=h,c.je=p,c.Ge+=d-c.rt,c.rt=d,o.write=y,ot):(c.Fe="invalid literal/length code",k=c.je-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ft=w,o.lt=h,c.je=p,c.Ge+=d-c.rt,c.rt=d,o.write=y,ft);if(f+=a[z+2],f+=w&ut[u],z=3*(l+f),0===(u=a[z])){w>>=a[z+1],h-=a[z+1],o.wt[y++]=a[z+2],m--;break}}else w>>=a[z+1],h-=a[z+1],o.wt[y++]=a[z+2],m--}while(m>=258&&p>=10);return k=c.je-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ft=w,o.lt=h,c.je=p,c.Ge+=d-c.rt,c.rt=d,o.write=y,it}e.init=(e,i,o,c,f,a)=>{t=vt,u=e,w=i,r=o,h=c,s=f,d=a,n=null},e.ht=(e,y,m)=>{let b,g,k,v,S,z,C,x=0,A=0,_=0;for(_=y.rt,v=y.je,x=e.ft,A=e.lt,S=e.write,z=S=258&&v>=10&&(e.ft=x,e.lt=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,m=p(u,w,r,h,s,d,e,y),_=y.rt,v=y.je,x=e.ft,A=e.lt,S=e.write,z=SA;){if(0===v)return e.ft=x,e.lt=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.dt(y,m);m=it,v--,x|=(255&y.ut(_++))<>>=n[g+1],A-=n[g+1],k=n[g],0===k){f=n[g+2],t=_t;break}if(16&k){a=15&k,i=n[g+2],t=zt;break}if(!(64&k)){c=k,o=g/3+n[g+2];break}if(32&k){t=It;break}return t=Dt,y.Fe="invalid literal/length code",m=ft,e.ft=x,e.lt=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.dt(y,m);case zt:for(b=a;b>A;){if(0===v)return e.ft=x,e.lt=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.dt(y,m);m=it,v--,x|=(255&y.ut(_++))<>=b,A-=b,c=w,n=s,o=d,t=Ct;case Ct:for(b=c;b>A;){if(0===v)return e.ft=x,e.lt=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.dt(y,m);m=it,v--,x|=(255&y.ut(_++))<>=n[g+1],A-=n[g+1],k=n[g],16&k){a=15&k,l=n[g+2],t=xt;break}if(!(64&k)){c=k,o=g/3+n[g+2];break}return t=Dt,y.Fe="invalid distance code",m=ft,e.ft=x,e.lt=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.dt(y,m);case xt:for(b=a;b>A;){if(0===v)return e.ft=x,e.lt=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.dt(y,m);m=it,v--,x|=(255&y.ut(_++))<>=b,A-=b,t=At;case At:for(C=S-l;0>C;)C+=e.end;for(;0!==i;){if(0===z&&(S==e.end&&0!==e.read&&(S=0,z=S7&&(A-=8,v++,_--),e.write=S,m=e.dt(y,m),S=e.write,z=S{}}const Rt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Bt=0,Et=1,Mt=2,Ut=3,Kt=4,Nt=5,Ot=6,Tt=7,Wt=8,jt=9;function Ht(e,t){const n=this;let r,s=Bt,o=0,c=0,a=0;const l=[0],u=[0],w=new Vt;let h=0,d=new f(3*wt);const p=new kt;n.lt=0,n.ft=0,n.wt=new i(t),n.end=t,n.read=0,n.write=0,n.reset=(e,t)=>{t&&(t[0]=0),s==Ot&&w.yt(e),s=Bt,n.lt=0,n.ft=0,n.read=n.write=0},n.reset(e,null),n.dt=(e,t)=>{let r,s,i;return s=e.st,i=n.read,r=(i>n.write?n.end:n.write)-i,r>e.nt&&(r=e.nt),0!==r&&t==lt&&(t=it),e.nt-=r,e.Je+=r,e.et.set(n.wt.subarray(i,i+r),s),s+=r,i+=r,i==n.end&&(i=0,n.write==n.end&&(n.write=0),r=n.write-i,r>e.nt&&(r=e.nt),0!==r&&t==lt&&(t=it),e.nt-=r,e.Je+=r,e.et.set(n.wt.subarray(i,i+r),s),s+=r,i+=r),e.st=s,n.read=i,t},n.ht=(e,t)=>{let i,f,y,m,b,g,k,v;for(m=e.rt,b=e.je,f=n.ft,y=n.lt,g=n.write,k=gy;){if(0===b)return n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);t=it,b--,f|=(255&e.ut(m++))<>>1){case 0:f>>>=3,y-=3,i=7&y,f>>>=i,y-=i,s=Et;break;case 1:S=[],z=[],C=[[]],x=[[]],kt.ct(S,z,C,x),w.init(S[0],z[0],C[0],0,x[0],0),f>>>=3,y-=3,s=Ot;break;case 2:f>>>=3,y-=3,s=Ut;break;case 3:return f>>>=3,y-=3,s=jt,e.Fe="invalid block type",t=ft,n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t)}break;case Et:for(;32>y;){if(0===b)return n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);t=it,b--,f|=(255&e.ut(m++))<>>16&65535)!=(65535&f))return s=jt,e.Fe="invalid stored block lengths",t=ft,n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);o=65535&f,f=y=0,s=0!==o?Mt:0!==h?Tt:Bt;break;case Mt:if(0===b)return n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);if(0===k&&(g==n.end&&0!==n.read&&(g=0,k=gb&&(i=b),i>k&&(i=k),n.wt.set(e.He(m,i),g),m+=i,b-=i,g+=i,k-=i,0!=(o-=i))break;s=0!==h?Tt:Bt;break;case Ut:for(;14>y;){if(0===b)return n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);t=it,b--,f|=(255&e.ut(m++))<29||(i>>5&31)>29)return s=jt,e.Fe="too many length or distance symbols",t=ft,n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);if(i=258+(31&i)+(i>>5&31),!r||r.lengthv;v++)r[v]=0;f>>>=14,y-=14,a=0,s=Kt;case Kt:for(;4+(c>>>10)>a;){for(;3>y;){if(0===b)return n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);t=it,b--,f|=(255&e.ut(m++))<>>=3,y-=3}for(;19>a;)r[Rt[a++]]=0;if(l[0]=7,i=p.it(r,l,u,d,e),i!=it)return(t=i)==ft&&(r=null,s=jt),n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);a=0,s=Nt;case Nt:for(;i=c,258+(31&i)+(i>>5&31)>a;){let o,w;for(i=l[0];i>y;){if(0===b)return n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);t=it,b--,f|=(255&e.ut(m++))<w)f>>>=i,y-=i,r[a++]=w;else{for(v=18==w?7:w-14,o=18==w?11:3;i+v>y;){if(0===b)return n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);t=it,b--,f|=(255&e.ut(m++))<>>=i,y-=i,o+=f&ut[v],f>>>=v,y-=v,v=a,i=c,v+o>258+(31&i)+(i>>5&31)||16==w&&1>v)return r=null,s=jt,e.Fe="invalid bit length repeat",t=ft,n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);w=16==w?r[v-1]:0;do{r[v++]=w}while(0!=--o);a=v}}if(u[0]=-1,A=[],_=[],I=[],P=[],A[0]=9,_[0]=6,i=c,i=p.ot(257+(31&i),1+(i>>5&31),r,A,_,I,P,d,e),i!=it)return i==ft&&(r=null,s=jt),t=i,n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);w.init(A[0],_[0],d,I[0],d,P[0]),s=Ot;case Ot:if(n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,(t=w.ht(n,e,t))!=ot)return n.dt(e,t);if(t=it,w.yt(e),m=e.rt,b=e.je,f=n.ft,y=n.lt,g=n.write,k=g{n.reset(e,null),n.wt=null,d=null},n.bt=(e,t,r)=>{n.wt.set(e.subarray(t,t+r),0),n.read=n.write=r},n.gt=()=>s==Et?1:0}const Lt=13,Ft=[0,0,255,255];function qt(){const e=this;function t(e){return e&&e.kt?(e.Ge=e.Je=0,e.Fe=null,e.kt.mode=7,e.kt.vt.reset(e,null),it):ct}e.mode=0,e.method=0,e.St=[0],e.zt=0,e.marker=0,e.Ct=0,e.xt=t=>(e.vt&&e.vt.yt(t),e.vt=null,it),e.At=(n,r)=>(n.Fe=null,e.vt=null,8>r||r>15?(e.xt(n),ct):(e.Ct=r,n.kt.vt=new Ht(n,1<{let n,r;if(!e||!e.kt||!e.tt)return ct;const s=e.kt;for(t=4==t?lt:it,n=lt;;)switch(s.mode){case 0:if(0===e.je)return n;if(n=t,e.je--,e.Ge++,8!=(15&(s.method=e.ut(e.rt++)))){s.mode=Lt,e.Fe="unknown compression method",s.marker=5;break}if(8+(s.method>>4)>s.Ct){s.mode=Lt,e.Fe="invalid win size",s.marker=5;break}s.mode=1;case 1:if(0===e.je)return n;if(n=t,e.je--,e.Ge++,r=255&e.ut(e.rt++),((s.method<<8)+r)%31!=0){s.mode=Lt,e.Fe="incorrect header check",s.marker=5;break}if(!(32&r)){s.mode=7;break}s.mode=2;case 2:if(0===e.je)return n;n=t,e.je--,e.Ge++,s.zt=(255&e.ut(e.rt++))<<24&4278190080,s.mode=3;case 3:if(0===e.je)return n;n=t,e.je--,e.Ge++,s.zt+=(255&e.ut(e.rt++))<<16&16711680,s.mode=4;case 4:if(0===e.je)return n;n=t,e.je--,e.Ge++,s.zt+=(255&e.ut(e.rt++))<<8&65280,s.mode=5;case 5:return 0===e.je?n:(n=t,e.je--,e.Ge++,s.zt+=255&e.ut(e.rt++),s.mode=6,2);case 6:return s.mode=Lt,e.Fe="need dictionary",s.marker=0,ct;case 7:if(n=s.vt.ht(e,n),n==ft){s.mode=Lt,s.marker=0;break}if(n==it&&(n=t),n!=ot)return n;n=t,s.vt.reset(e,s.St),s.mode=12;case 12:return e.je=0,ot;case Lt:return ft;default:return ct}},e.It=(e,t,n)=>{let r=0,s=n;if(!e||!e.kt||6!=e.kt.mode)return ct;const i=e.kt;return s<1<{let n,r,s,i,o;if(!e||!e.kt)return ct;const c=e.kt;if(c.mode!=Lt&&(c.mode=Lt,c.marker=0),0===(n=e.je))return lt;for(r=e.rt,s=c.marker;0!==n&&4>s;)e.ut(r)==Ft[s]?s++:s=0!==e.ut(r)?0:4-s,r++,n--;return e.Ge+=r-e.rt,e.rt=r,e.je=n,c.marker=s,4!=s?ft:(i=e.Ge,o=e.Je,t(e),e.Ge=i,e.Je=o,c.mode=7,it)},e.Dt=e=>e&&e.kt&&e.kt.vt?e.kt.vt.gt():ct}function Gt(){}function Jt(e){const t=new Gt,n=e&&e.chunkSize?r.floor(2*e.chunkSize):131072,o=new i(n);let c=!1;t.At(),t.et=o,this.append=(e,r)=>{const f=[];let a,l,u=0,w=0,h=0;if(0!==e.length){t.rt=0,t.tt=e,t.je=e.length;do{if(t.st=0,t.nt=n,0!==t.je||c||(t.rt=0,c=!0),a=t._t(0),c&&a===lt){if(0!==t.je)throw new s("inflating: bad input")}else if(a!==it&&a!==ot)throw new s("inflating: "+t.Fe);if((c||a===ot)&&t.je===e.length)throw new s("inflating: bad input");t.st&&(t.st===n?f.push(new i(o)):f.push(o.subarray(0,t.st))),h+=t.st,r&&t.rt>0&&t.rt!=u&&(r(t.rt),u=t.rt)}while(t.je>0||0===t.nt);return f.length>1?(l=new i(h),f.forEach((e=>{l.set(e,w),w+=e.length}))):l=f[0]?new i(f[0]):new i,l}},this.flush=()=>{t.xt()}}Gt.prototype={At(e){const t=this;return t.kt=new qt,e||(e=15),t.kt.At(t,e)},_t(e){const t=this;return t.kt?t.kt._t(t,e):ct},xt(){const e=this;if(!e.kt)return ct;const t=e.kt.xt(e);return e.kt=null,t},Pt(){const e=this;return e.kt?e.kt.Pt(e):ct},It(e,t){const n=this;return n.kt?n.kt.It(n,e,t):ct},ut(e){return this.tt[e]},He(e,t){return this.tt.subarray(e,e+t)}},self.initCodec=()=>{self.Deflate=st,self.Inflate=Jt};\n'],{type:"text/javascript"}));t({workerScripts:{inflate:[e],deflate:[e]}})}(tc),tc({Deflate:function(t){const e=new iu,r=(n=t&&t.chunkSize?t.chunkSize:65536)+5*(Math.floor(n/16383)+1);var n;const i=new Uint8Array(r);let o=t?t.level:-1;void 0===o&&(o=-1),e.deflateInit(o),e.next_out=i,this.append=function(t,n){let o,s,a=0,u=0,c=0;const l=[];if(t.length){e.next_in_index=0,e.next_in=t,e.avail_in=t.length;do{if(e.next_out_index=0,e.avail_out=r,o=e.deflate(0),0!=o)throw new Error("deflating: "+e.msg);e.next_out_index&&(e.next_out_index==r?l.push(new Uint8Array(i)):l.push(i.subarray(0,e.next_out_index))),c+=e.next_out_index,n&&e.next_in_index>0&&e.next_in_index!=a&&(n(e.next_in_index),a=e.next_in_index)}while(e.avail_in>0||0===e.avail_out);return l.length>1?(s=new Uint8Array(c),l.forEach((function(t){s.set(t,u),u+=t.length}))):s=l[0]?new Uint8Array(l[0]):new Uint8Array,s}},this.flush=function(){let t,n,o=0,s=0;const a=[];do{if(e.next_out_index=0,e.avail_out=r,t=e.deflate(4),1!=t&&0!=t)throw new Error("deflating: "+e.msg);r-e.avail_out>0&&a.push(i.slice(0,e.next_out_index)),s+=e.next_out_index}while(e.avail_in>0||0===e.avail_out);return e.deflateEnd(),n=new Uint8Array(s),a.forEach((function(t){n.set(t,o),o+=t.length})),n}},Inflate:function(t){const e=new Vu,r=t&&t.chunkSize?Math.floor(2*t.chunkSize):131072,n=new Uint8Array(r);let i=!1;e.inflateInit(),e.next_out=n,this.append=function(t,o){const s=[];let a,u,c=0,l=0,f=0;if(0!==t.length){e.next_in_index=0,e.next_in=t,e.avail_in=t.length;do{if(e.next_out_index=0,e.avail_out=r,0!==e.avail_in||i||(e.next_in_index=0,i=!0),a=e.inflate(0),i&&a===lu){if(0!==e.avail_in)throw new Error("inflating: bad input")}else if(a!==ou&&a!==su)throw new Error("inflating: "+e.msg);if((i||a===su)&&e.avail_in===t.length)throw new Error("inflating: bad input");e.next_out_index&&(e.next_out_index===r?s.push(new Uint8Array(n)):s.push(n.subarray(0,e.next_out_index))),f+=e.next_out_index,o&&e.next_in_index>0&&e.next_in_index!=c&&(o(e.next_in_index),c=e.next_in_index)}while(e.avail_in>0||0===e.avail_out);return s.length>1?(u=new Uint8Array(f),s.forEach((function(t){u.set(t,l),l+=t.length}))):u=s[0]?new Uint8Array(s[0]):new Uint8Array,u}},this.flush=function(){e.inflateEnd()}}});const pc=t=>{const{file:e,header:r,dictionary:n,options:i}=t,o=e?.options?.resourceType||null,s=e?.options?.resourceMap||{dimension:"dimen",fontSize:"dimen",color:"color",string:"string",content:"string",time:"integer",number:"integer"};function a(t){return o||(t.type&&s[t.type]?s[t.type]:"string")}return`\n\n${r}\n\n ${n.allTokens.map((t=>`<${a(t)} name="${t.name}">${function(t,r){let n=i.usesDtcg?t.original.$value:t.original.value;return e?.options&&e.options.outputReferences&&Go(n)?`@${a(t)}/${function(t,e,r={},n=[]){return Sa(t,e,r,n,!0)}(n,r)[0].name}`:i.usesDtcg?t.$value:t.value}(t,n.tokens)}${t.comment?`\x3c!-- ${t.comment} --\x3e`:""}`)).join("\n ")}\n`};function dc(t,e,r){r=r||" ";let n="@{\n";if(Object.hasOwn(t,(e.usesDtcg?"$":"")+"value")){const i=t;let o=e.usesDtcg?i.$value:i.value;"dimension"!==i.type&&"fontSize"!==i.type&&"time"!==i.type||(o="@"+o),n+=r+'@"value": '+o+",\n",n+=r+'@"name": @"'+i.name+'",\n';for(const t in i.attributes)i.attributes[t]&&(n+=r+'@"'+t+'": @"'+i.attributes[t]+'",\n');return n.slice(0,-2)+"\n"+r+"}"}for(const i in t)n+=r+'@"'+i+'": '+dc(t[i],e,r+" ")+",\n";return n.slice(0,-2)+"\n"+r+"}"}const mc=({dictionary:t,options:e,file:r,header:n})=>`\n//\n// ${r.destination??""}\n//\n${n}\n#import "${e.className??""}.h"\n\n@implementation ${e.className??""}\n\n+ (NSDictionary *)getProperty:(NSString *)keyPath {\n return [[self properties] valueForKeyPath:keyPath];\n}\n\n+ (nonnull)getValue:(NSString *)keyPath {\n return [[self properties] valueForKeyPath:[NSString stringWithFormat:@"%@.value", keyPath]];\n}\n\n+ (NSDictionary *)properties {\n static NSDictionary * dictionary;\n static dispatch_once_t onceToken;\n\n dispatch_once(&onceToken, ^{\n dictionary = ${dc(t.tokens,e)};\n });\n\n return dictionary;\n}\n\n@end\n\n`,gc=({allTokens:t,file:e,formatProperty:r,options:n,header:i})=>`\n//\n// ${e.destination}\n//\n${i}\n${n.import.map((t=>`import ${t}`)).join("\n")}\n\n${n.accessControl?`${n.accessControl} `:""}${n.objectType?`${n.objectType} `:""}${n.className?`${n.className} `:""}{\n ${t.map((t=>`${n.accessControl?`${n.accessControl} `:""}static let ${r(t)}`)).join("\n ")}\n}`;function yc(t,e,r=0){let n="";return null===t?n+="''":"string"==typeof t?n+=`'${t}'`:Object.hasOwn(t,(e.usesDtcg?"$":"")+"value")?n+=`$${t.name}`:(n+="(\n",n+=Object.keys(t).map((function(n){const i=t[n];return`${" ".repeat(r+1)}'${n}': ${yc(i,e,r+1)}`})).join(",\n"),n+="\n"+" ".repeat(r)+")"),n}const bc=({dictionary:t,options:e})=>`\n$${e.mapName??"tokens"}: ${yc(t.tokens,e)};\n`;function vc(t){const e=structuredClone(t)??{};return delete e.prefix,e}const wc={"css/variables":async function({dictionary:t,options:e={},file:r}){const n=e.selector?e.selector:":root",{outputReferences:i,outputReferenceFallbacks:o,usesDtcg:s,formatting:a}=e;return await ja({file:r,formatting:vc(a),options:e})+`${n} {\n`+Ra({format:"css",dictionary:t,outputReferences:i,outputReferenceFallbacks:o,formatting:a,usesDtcg:s})+"\n}\n"},"scss/map-flat":async function({dictionary:t,options:e,file:r}){const{allTokens:n}=t,{formatting:i}=e;return(({allTokens:t,options:e,header:r})=>`\n${r}$${e.mapName??"tokens"}: (\n${t.map((t=>`${t.comment?` // ${t.comment}\n`:""} '${t.name}': ${e.usesDtcg?t.$value:t.value}`)).join(",\n")}\n);`)({allTokens:n,options:e,header:await ja({file:r,commentStyle:"long",formatting:vc(i),options:e})})},"scss/map-deep":async function({dictionary:t,options:e,file:r}){const{outputReferences:n,themeable:i=!0,formatting:o,usesDtcg:s}=e;return"\n"+await ja({file:r,commentStyle:"long",formatting:vc(o),options:e})+Ra({format:"sass",dictionary:t,outputReferences:n,themeable:i,formatting:o,usesDtcg:s})+"\n"+bc({dictionary:t,options:e})},"scss/variables":async function({dictionary:t,options:e,file:r}){const{outputReferences:n,themeable:i=!1,formatting:o,usesDtcg:s}=e;return await ja({file:r,commentStyle:"short",formatting:vc(o),options:e})+Ra({format:"sass",dictionary:t,outputReferences:n,themeable:i,formatting:o,usesDtcg:s})+"\n"},"scss/icons":async function({dictionary:t,options:e,file:r,platform:n}){const{formatting:i}=e;return await ja({file:r,commentStyle:"short",formatting:vc(i),options:e})+Na("$",t.allTokens,e,n)},"less/variables":async function({dictionary:t,options:e,file:r}){const{outputReferences:n,formatting:i,usesDtcg:o}=e;return await ja({file:r,commentStyle:"short",formatting:vc(i),options:e})+Ra({format:"less",dictionary:t,outputReferences:n,formatting:i,usesDtcg:o})+"\n"},"less/icons":async function({dictionary:t,options:e,file:r,platform:n}){const{formatting:i}=e;return await ja({file:r,commentStyle:"short",formatting:vc(i),options:e})+Na("@",t.allTokens,e,n)},"stylus/variables":async function({dictionary:t,options:e,file:r,platform:n}){const{formatting:i,usesDtcg:o}=e,s=!!n.options?.outputReferences;return await ja({file:r,commentStyle:"short",formatting:vc(i),options:e})+Ra({format:"stylus",dictionary:t,outputReferences:s,formatting:i,usesDtcg:o})+"\n"},"javascript/module":async function({dictionary:t,file:e,options:r}){const{formatting:n}=r;return await ja({file:e,formatting:vc(n),options:r})+"module.exports = "+JSON.stringify(t.tokens,null,2)+";\n"},"javascript/module-flat":async function({dictionary:t,file:e,options:r}){const{formatting:n}=r;return await ja({file:e,formatting:vc(n),options:r})+"module.exports = {\n"+t.allTokens.map((function(t){return` "${t.name}": ${JSON.stringify(r.usesDtcg?t.$value:t.value)}`})).join(",\n")+"\n};\n"},"javascript/object":async function({dictionary:t,file:e,options:r}){const{formatting:n}=r;return await ja({file:e,formatting:vc(n),options:r})+"var "+(e.options?.name||"_styleDictionary")+" = "+JSON.stringify(t.tokens,null,2)+";\n"},"javascript/umd":async function({dictionary:t,file:e,options:r}){const n=e.options?.name||"_styleDictionary",{formatting:i}=r;return await ja({file:e,formatting:vc(i),options:r})+'(function(root, factory) {\n if (typeof module === "object" && module.exports) {\n module.exports = factory();\n } else if (typeof exports === "object") {\n exports["'+n+'"] = factory();\n } else if (typeof define === "function" && define.amd) {\n define([], factory);\n } else {\n root["'+n+'"] = factory();\n }\n}(this, function() {\n return '+JSON.stringify(t.tokens,null,2)+";\n}))\n"},"javascript/es6":async function({dictionary:t,file:e,options:r}){const{formatting:n}=r;return await ja({file:e,formatting:vc(n),options:r})+t.allTokens.map((function(t){let e="export const "+t.name+" = "+JSON.stringify(r.usesDtcg?t.$value:t.value)+";";return t.comment&&(e=e.concat(" // "+t.comment)),e})).join("\n")+"\n"},"typescript/es6-declarations":async function({dictionary:t,file:e,options:r}){const{formatting:n}=r;return await ja({file:e,formatting:vc(n),options:r})+t.allTokens.map((function(t){let e="";return t.comment&&(e+="/** "+t.comment+" */\n"),e+="export const "+t.name+" : "+Pa(r.usesDtcg?t.$value:t.value,r)+";",e})).join("\n")+"\n"},"typescript/module-declarations":async function({dictionary:t,file:e,options:r}){const{moduleName:n="tokens"}=r,i=`interface DesignToken {\n ${r.usesDtcg?"$":""}value?: any;\n ${r.usesDtcg?"$":""}type?: string;\n ${r.usesDtcg?"$description?: string;":"comment?: string;"}\n name?: string;\n themeable?: boolean;\n attributes?: Record;\n [key: string]: any;\n}`,{formatting:o}=r,s=await ja({file:e,formatting:vc(o),options:r})+`export default ${n};\n\ndeclare ${i}\n\ndeclare const ${n}: ${JSON.stringify(function t(e){let n=Object.create(null);const i=r.usesDtcg?"$value":"value";if(Object.hasOwn(e,i))n="DesignToken";else for(let r in e)Object.hasOwn(e,r)&&"object"==typeof e[r]&&(n[r]=t(e[r]));return n}(t.tokens),null,2)}`;return s.replace(/"DesignToken"/g,"DesignToken")+"\n"},"android/resources":async function({dictionary:t,file:e,options:r}){const{formatting:n}=r,i=await ja({file:e,commentStyle:"xml",formatting:vc(n),options:r});return pc({dictionary:t,file:e,header:i,options:r})},"android/colors":async function({dictionary:t,options:e,file:r}){const{formatting:n}=e;return(({dictionary:t,options:e,header:r})=>`\n\n${r}\n\n${t.allTokens.filter((t=>"color"===t.type)).map((t=>` ${e.usesDtcg?t.$value:t.value}${t.comment?`\x3c!-- ${t.comment} --\x3e`:""}`)).join("\n")}\n`)({dictionary:t,options:e,header:await ja({file:r,commentStyle:"xml",formatting:vc(n),options:e})})},"android/dimens":async function({dictionary:t,options:e,file:r}){const{formatting:n}=e;return(({dictionary:t,options:e,header:r})=>`\n\n${r}\n\n${t.allTokens.filter((t=>"dimension"===t.type)).map((t=>` ${e.usesDtcg?t.$value:t.value}${t.comment?`\x3c!-- ${t.comment} --\x3e`:""}`)).join("\n")}\n`)({dictionary:t,options:e,header:await ja({file:r,commentStyle:"xml",formatting:vc(n),options:e})})},"android/fontDimens":async function({dictionary:t,options:e,file:r}){const{formatting:n}=e;return(({dictionary:t,options:e,header:r})=>`\n\n${r}\n\n${t.allTokens.filter((t=>"fontSize"===t.type)).map((t=>` ${e.usesDtcg?t.$value:t.value}${t.comment?`\x3c!-- ${t.comment} --\x3e`:""}`)).join("\n")}\n`)({dictionary:t,options:e,header:await ja({file:r,commentStyle:"xml",formatting:vc(n),options:e})})},"android/integers":async function({dictionary:t,options:e,file:r}){const{formatting:n}=e;return(({dictionary:t,options:e,header:r})=>`\n\n${r}\n\n${t.allTokens.filter((t=>"time"===t.type)).map((t=>` ${e.usesDtcg?t.$value:t.value}${t.comment?`\x3c!-- ${t.comment} --\x3e`:""}`)).join("\n")}\n`)({dictionary:t,options:e,header:await ja({file:r,commentStyle:"xml",formatting:vc(n),options:e})})},"android/strings":async function({dictionary:t,options:e,file:r}){const{formatting:n}=e;return(({dictionary:t,options:e,header:r})=>`\n\n${r}\n\n${t.allTokens.filter((t=>"content"===t.type)).map((t=>` ${e.usesDtcg?t.$value:t.value}${t.comment?`\x3c!-- ${t.comment} --\x3e`:""}`)).join("\n")}\n`)({dictionary:t,options:e,header:await ja({file:r,commentStyle:"xml",formatting:vc(n),options:e})})},"compose/object":async function({dictionary:t,options:e,file:r}){const{allTokens:n,tokens:i,unfilteredTokens:o}=t,{outputReferences:s,formatting:a,usesDtcg:u}=e,c=Ca({outputReferences:s,dictionary:t,formatting:{suffix:"",commentStyle:"none",...a},usesDtcg:u});let l;return l=s?[...n].sort(Ta(i,{unfilteredTokens:o})):[...n].sort($a),(({allTokens:t,formatProperty:e,options:r,header:n})=>`\n${n}\n\npackage ${r.packageName??""};\n\n${r.import.map((t=>`import ${t}`)).join("\n")}\n\nobject ${r.className??""} {\n${t.map((t=>`${t.comment?` /** ${t.comment} */\n`:""} val ${e(t)}`)).join("\n")}\n}`)({allTokens:l,options:e=function(t={}){return void 0===t.import?t.import=["androidx.compose.ui.graphics.Color","androidx.compose.ui.unit.*"]:"string"==typeof t.import&&(t.import=[t.import]),t}(e),formatProperty:c,header:await ja({file:r,commentStyle:"short",formatting:vc(a),options:e})})},"ios/macros":async function({dictionary:t,options:e,file:r}){const{formatting:n}=e;return(({dictionary:t,options:e,file:r,header:n})=>`\n//\n// ${r.destination??""}\n//\n${n}\n#import \n#import \n\n${t.allTokens.map((t=>`#define ${t.name} ${e.usesDtcg?t.$value:t.value}`)).join("\n")}\n`)({dictionary:t,options:e,file:r,header:await ja({file:r,commentStyle:"short",formatting:vc(n),options:e})})},"ios/plist":async function({dictionary:t,options:e,file:r}){const{formatting:n}=e;return(({dictionary:t,options:e,header:r})=>`\n\n\n${r}\n\n \n ${t.allTokens.filter((t=>"asset"!==t.type&&"border"!==t.type&&"shadow"!==t.type&&"transition"!==t.type)).map((t=>((t,e)=>{let r=` ${t.name}\n`;return"color"===t.type?r+=` \n r\n ${(e.usesDtcg?t.$value:t.value)[0]/255}\n g\n ${(e.usesDtcg?t.$value:t.value)[1]/255}\n b\n ${(e.usesDtcg?t.$value:t.value)[2]/255}\n a\n 1\n `:"dimension"===t.type?r+=`${e.usesDtcg?t.$value:t.value}`:r+=`${e.usesDtcg?t.$value:t.value}`,t.comment&&(r+=`\n \x3c!-- ${t.comment} --\x3e`),r})(t,e))).join("\n")}\n \n`)({dictionary:t,options:e,header:await ja({file:r,commentStyle:"xml",formatting:vc(n),options:e})})},"ios/singleton.m":async function({dictionary:t,options:e,file:r}){const{formatting:n}=e,i=await ja({file:r,commentStyle:"short",formatting:vc(n),options:e});return mc({dictionary:t,options:e,file:r,header:i})},"ios/singleton.h":async function({file:t,options:e}){const{formatting:r}=e;return(({file:t,options:e,header:r})=>`\n//\n// ${t.destination??""}\n//\n${r}\n#import \n#import \n\n@interface ${e.className?`${e.className} `:""}: NSObject\n\n+ (NSDictionary *)properties;\n+ (NSDictionary *)getProperty:(NSString *)keyPath;\n+ (nonnull)getValue:(NSString *)keyPath;\n\n@end`)({file:t,options:e,header:await ja({file:t,commentStyle:"short",formatting:vc(r),options:e})})},"ios/static.h":async function({dictionary:t,file:e,options:r}){const{formatting:n}=r;return(({dictionary:t,file:e,options:r,header:n})=>`\n// ${e.destination??""}\n//\n${n}\n#import \n\n\n${t.allTokens.map((t=>`extern ${r.type?`${r.type} `:""}const ${t.name};`)).join("\n")}`)({dictionary:t,file:e,options:r,header:await ja({file:e,commentStyle:"short",formatting:vc(n),options:r})})},"ios/static.m":async function({dictionary:t,options:e,file:r}){const{formatting:n}=e;return(({dictionary:t,file:e,options:r,header:n})=>`\n//\n// ${e.destination??""}\n//\n${n}\n#import "${r.className??""}.h"\n\n\n${t.allTokens.map((t=>`${r.type?`${r.type} `:""}const ${t.name} = ${r.usesDtcg?t.$value:t.value};`)).join("\n")}`)({dictionary:t,options:e,file:r,header:await ja({file:r,commentStyle:"short",formatting:vc(n),options:e})})},"ios/colors.h":async function({dictionary:t,options:e,file:r}){const{formatting:n}=e;return(({dictionary:t,options:e,file:r,header:n})=>`\n//\n// ${r.destination??""}\n//\n${n}\n#import \n\ntypedef NS_ENUM(NSInteger, ${e.type??""}) {\n${t.allTokens.map((t=>`${t.name}`)).join(",\n")}\n};\n\n@interface ${e.className?`${e.className} `:""}: NSObject\n+ (NSArray *)values;\n+ (UIColor *)color:(${e.type??""})color;\n@end`)({dictionary:t,file:r,options:e,header:await ja({file:r,commentStyle:"short",formatting:vc(n),options:e})})},"ios/colors.m":async function({dictionary:t,options:e,file:r}){const{formatting:n}=e;return(({dictionary:t,file:e,options:r,header:n})=>`\n//\n// ${e.destination??""}\n//\n${n}\n#import "${r.className??""}.h"\n\n@implementation ${r.className??""}\n\n+ (UIColor *)color:(${r.type??""})colorEnum{\n return [[self values] objectAtIndex:colorEnum];\n}\n\n+ (NSArray *)values {\n static NSArray* colorArray;\n static dispatch_once_t onceToken;\n\n dispatch_once(&onceToken, ^{\n colorArray = @[\n${t.allTokens.map((t=>r.usesDtcg?t.$value:t.value)).join(",\n")}\n ];\n });\n\n return colorArray;\n}\n\n@end`)({dictionary:t,options:e,file:r,header:await ja({file:r,commentStyle:"short",formatting:vc(n),options:e})})},"ios/strings.h":async function({dictionary:t,file:e,options:r}){const{formatting:n}=r;return(({dictionary:t,file:e,options:r,header:n})=>`\n//\n// ${e.destination??""}\n//\n${n}\n#import \n\n\n${t.allTokens.map((t=>`extern NSString * const ${t.name};`)).join("\n")}\n\n@interface ${r.className??""} : NSObject\n+ (NSArray *)values;\n@end`)({dictionary:t,file:e,options:r,header:await ja({file:e,commentStyle:"short",formatting:vc(n),options:r})})},"ios/strings.m":async function({dictionary:t,options:e,file:r}){const{formatting:n}=e;return(({dictionary:t,file:e,options:r,header:n})=>`\n//\n// ${e.destination??""}\n//\n${n}\n#import "${r.className??""}.h"\n\n\n${t.allTokens.map((t=>`NSString * const ${t.name} = ${r.usesDtcg?t.$value:t.value};`)).join("\n")}\n\n@implementation ${r.className??""}\n\n+ (NSArray *)values {\n static NSArray* array;\n static dispatch_once_t onceToken;\n\n dispatch_once(&onceToken, ^{\n array = @[\n ${t.allTokens.map((t=>function(t,e){let r="@{\n";r+=' @"value": '+(e.usesDtcg?t.$value:t.value)+",\n",r+=' @"name": @"'+t.name+'",\n';for(const e in t.attributes)t.attributes[e]&&(r+=' @"'+e+'": @"'+t.attributes[e]+'",\n');return r.slice(0,-2)+"\n }"}(t,r))).join(",\n")}\n ];\n });\n\n return array;\n}\n\n@end\n\n`)({dictionary:t,options:e,file:r,header:await ja({file:r,commentStyle:"short",formatting:vc(n),options:e})})},"ios-swift/class.swift":async function({dictionary:t,options:e,file:r,platform:n}){const{allTokens:i,tokens:o,unfilteredTokens:s}=t,{outputReferences:a,formatting:u,usesDtcg:c}=e;e=Ia(e,"class",n.transformGroup);const l=Ca({outputReferences:a,dictionary:t,formatting:{suffix:"",...u},usesDtcg:c});let f;f=a?[...i].sort(Ta(o,{unfilteredTokens:s})):[...i].sort($a);const h=await ja({file:r,commentStyle:"short",formatting:vc(u),options:e});return gc({allTokens:f,file:r,options:e,formatProperty:l,header:h})},"ios-swift/enum.swift":async function({dictionary:t,options:e,file:r,platform:n}){const{allTokens:i,tokens:o,unfilteredTokens:s}=t,{outputReferences:a,formatting:u,usesDtcg:c}=e;e=Ia(e,"enum",n.transformGroup);const l=Ca({outputReferences:a,dictionary:t,formatting:{suffix:"",...u},usesDtcg:c});let f;f=a?[...i].sort(Ta(o,{unfilteredTokens:s})):[...i].sort($a);const h=await ja({file:r,commentStyle:"short",formatting:vc(u),options:e});return gc({allTokens:f,file:r,options:e,formatProperty:l,header:h})},"ios-swift/any.swift":async function({dictionary:t,options:e,file:r,platform:n}){const{allTokens:i,tokens:o,unfilteredTokens:s}=t,{outputReferences:a,formatting:u,usesDtcg:c}=e;e=Ia(e,e.objectType,n.transformGroup);const l=Ca({outputReferences:a,dictionary:t,formatting:{suffix:"",...u},usesDtcg:c});let f;f=a?[...i].sort(Ta(o,{unfilteredTokens:s})):[...i].sort($a);const h=await ja({file:r,commentStyle:"short",formatting:vc(u),options:e});return gc({allTokens:f,file:r,options:e,formatProperty:l,header:h})},"css/fonts.css":({dictionary:t})=>{return e=t.tokens,`${Object.values(e&&e.asset&&e.asset.font||{}).map((t=>{let e=[];return t.eot&&e.push("url('../"+t.eot.value+"');\n\tsrc: url('../"+t.eot.value+"?#iefix') format('embedded-opentype')"),t.otf&&e.push("url('../"+t.otf.value+"') format('otf')"),t.ttf&&e.push("url('../"+t.ttf.value+"') format('truetype')"),t.svg&&e.push("url('../"+t.svg.value+"#"+t.name.value.replace(/ /g,"%20")+"') format('svg')"),t.woff&&e.push("url('../"+t.woff.value+"') format('woff')"),t.woff2&&e.push("url('../"+t.woff2.value+"') format('woff2')"),`@font-face {\n font-family: "${t.name.value}";\n src: ${e.join(",\n\t\t")};\n${t.style??`\n font-style: ${t.style.value};`}${t.weight??`\n font-weight: ${t.weight.value};`}}`}))}`;var e},json:function({dictionary:t}){return JSON.stringify(t.tokens,null,2)+"\n"},"json/asset":function({dictionary:t}){return JSON.stringify({asset:t.tokens.asset},null,2)},"json/nested":function({dictionary:t,options:e}){return JSON.stringify(Ma(t.tokens,e.usesDtcg),null,2)+"\n"},"json/flat":function({dictionary:t,options:e}){return"{\n"+t.allTokens.map((function(t){return` "${t.name}": ${JSON.stringify(e.usesDtcg?t.$value:t.value)}`})).join(",\n")+"\n}\n"},"sketch/palette":function({dictionary:t,options:e}){const r={compatibleVersion:"1.0",pluginVersion:"1.1",colors:[]};return r.colors=t.allTokens.filter((function(t){return"color"===t.type})).map((function(t){return e.usesDtcg?t.$value:t.value})),JSON.stringify(r,null,2)+"\n"},"sketch/palette/v2":function({dictionary:t,options:e}){const r={compatibleVersion:"2.0",pluginVersion:"2.2",colors:t.allTokens.map((function(t){return Object.assign({name:t.name},e.usesDtcg?t.$value:t.value)}))};return JSON.stringify(r,null,2)+"\n"},"flutter/class.dart":async function({dictionary:t,options:e,file:r}){const{allTokens:n,tokens:i,unfilteredTokens:o}=t,{outputReferences:s,formatting:a,usesDtcg:u}=e,c=Ca({outputReferences:s,dictionary:t,formatting:a,usesDtcg:u});let l;return l=s?[...n].sort(Ta(i,{unfilteredTokens:o})):[...n].sort($a),(({allTokens:t,file:e,options:r,formatProperty:n,header:i})=>`\n//\n// ${e.destination}\n//\n${i}\n\nimport 'dart:ui';\n\nclass ${r.className?`${r.className} `:""}{\n ${r.className??""}._();\n\n ${t.map((t=>`static const ${n(t)}`)).join("\n ")}\n}`)({allTokens:l,file:r,options:e,formatProperty:c,header:await ja({file:r,commentStyle:"short",formatting:vc(a),options:e})})}};wc["json/nested"].nested=!0,wc["javascript/module"].nested=!0,wc["javascript/object"].nested=!0;const xc=wc,Ec={"android/copyImages":{do:async function(t,e,r,n=Oe){const i=`${e.buildPath}android/main/res/drawable-`;await Promise.all(t.allTokens.map((t=>{if("asset"===t.type){const e=t.path.slice(2,4).join("_"),o=`${i}${t.attributes?.state}`,s=`${o}/${e}.png`;return n.promises.mkdir(o,{recursive:!0}).then((()=>n.promises.copyFile(r.usesDtcg?t.$value:t.value,s)))}})))},undo:async function(t,e,r,n=Oe){const i=`${e.buildPath}android/main/res/drawable-`;await Promise.all(t.allTokens.map((t=>{if("asset"===t.type){const e=t.path.slice(2,4).join("_"),r=`${i}${t.attributes?.state}/${e}.png`;return n.promises.unlink(r)}})))}},copy_assets:{do:async function(t,e,r,n=Oe){return"silent"!==e.log?.verbosity&&console.log("Copying assets directory to "+e.buildPath+"assets"),n.promises.copyFile("assets",e.buildPath+"assets")},undo:async function(t,e,r,n=Oe){return"silent"!==e.log?.verbosity&&console.log("Removing assets directory from "+e.buildPath+"assets"),n.promises.unlink(e.buildPath+"assets")}}},Ac={removePrivate:function(t){return!t||!t.private}};function _c(){return{parsers:{},preprocessors:{},transformGroups:{..._a},transforms:{...Aa},formats:{...xc},fileHeaders:{},filters:{...Ac},actions:{...Ec}}}class Dc{static hooks=_c();get hooks(){const t=this.constructor;return cs(t.hooks,this._hooks??{})}set hooks(t){this._hooks=t}static deleteExistingHook(t,e,r){t.hooks[e][r]&&delete t.hooks[e][r]}static registerTransform(t){this.__registerTransform(t,this)}registerTransform(t){this.constructor.__registerTransform(t,this)}static __registerTransform(t,e){const r=["name","value","attribute"],{type:n,name:i,filter:o,transitive:s,transform:a}=t;if("string"!=typeof n)throw new Error("type must be a string");if(r.indexOf(n)<0)throw new Error(n+" type is not one of: "+r.join(", "));if("string"!=typeof i)throw new Error("name must be a string");if(o&&"function"!=typeof o)throw new Error("filter must be a function");if("function"!=typeof a)throw new Error("transform must be a function");return this.deleteExistingHook(e,"transforms",i),e.hooks=cs(e.hooks,{transforms:{[i]:{type:n,filter:o,transitive:!!s,transform:a}}}),this}static registerTransformGroup(t){this.__registerTransformGroup(t,this)}registerTransformGroup(t){this.constructor.__registerTransformGroup(t,this)}static __registerTransformGroup(t,e){const{name:r,transforms:n}=t;if("string"!=typeof r)throw new Error("transform name must be a string");if(!Array.isArray(n))throw new Error("transforms must be an array of registered value transforms");return n.forEach((t=>{if(!e.hooks.transforms||!(t in e.hooks.transforms))throw new Error("transforms must be an array of registered value transforms")})),this.deleteExistingHook(e,"transformGroups",r),e.hooks=cs(e.hooks,{transformGroups:{[r]:n}}),e}static registerFormat(t){this.__registerFormat(t,this)}registerFormat(t){this.constructor.__registerFormat(t,this)}static __registerFormat(t,e){const{name:r,format:n}=t;if("string"!=typeof r)throw new Error("Can't register format; format.name must be a string");if("function"!=typeof n)throw new Error("Can't register format; format.format must be a function");return this.deleteExistingHook(e,"formats",r),e.hooks=cs(e.hooks,{formats:{[r]:n}}),e}static registerAction(t){this.__registerAction(t,this)}registerAction(t){this.constructor.__registerAction(t,this)}static __registerAction(t,e){const{name:r,do:n,undo:i}=t;if("string"!=typeof r)throw new Error("name must be a string");if("function"!=typeof n)throw new Error("do must be a function");return this.deleteExistingHook(e,"actions",r),e.hooks=cs(e.hooks,{actions:{[r]:{do:n,undo:i}}}),e}static registerFilter(t){this.__registerFilter(t,this)}registerFilter(t){this.constructor.__registerFilter(t,this)}static __registerFilter(t,e){const{name:r,filter:n}=t;if("string"!=typeof r)throw new Error("Can't register filter; filter.name must be a string");if("function"!=typeof n)throw new Error("Can't register filter; filter.filter must be a function");return this.deleteExistingHook(e,"filters",r),e.hooks=cs(e.hooks,{filters:{[r]:n}}),e}static registerParser(t){this.__registerParser(t,this)}registerParser(t){this.constructor.__registerParser(t,this)}static __registerParser(t,e){const{name:r,pattern:n,parser:i}=t;if("string"!=typeof r)throw new Error("Can't register parser; parser.name must be a string");if(!(n instanceof RegExp))throw new Error("Can't register parser; parser.pattern must be a regular expression");if("function"!=typeof i)throw new Error("Can't register parser; parser.parser must be a function");return this.deleteExistingHook(e,"parsers",r),e.hooks=cs(e.hooks,{parsers:{[r]:{pattern:n,parser:i}}}),e}static registerPreprocessor(t){this.__registerPreprocessor(t,this)}registerPreprocessor(t){this.constructor.__registerPreprocessor(t,this)}static __registerPreprocessor(t,e){const{name:r,preprocessor:n}=t,i="Cannot register preprocessor;";if("string"!=typeof r)throw new Error(`${i} Preprocessor.name must be a string`);if(!(n instanceof Function))throw new Error(`${i} Preprocessor.preprocessor must be a function`);return this.deleteExistingHook(e,"preprocessors",r),e.hooks=cs(e.hooks,{preprocessors:{[r]:n}}),e}static registerFileHeader(t){this.__registerFileHeader(t,this)}registerFileHeader(t){this.constructor.__registerFileHeader(t,this)}static __registerFileHeader(t,e){const{name:r,fileHeader:n}=t;if("string"!=typeof r)throw new Error("Can't register file header; options.name must be a string");if("function"!=typeof n)throw new Error("Can't register file header; options.fileHeader must be a function");return this.deleteExistingHook(e,"fileHeaders",r),e.hooks=cs(e.hooks,{fileHeaders:{[r]:n}}),e}constructor(){this.hooks=_c()}}async function Sc(t,e,r,n){const i=structuredClone(t),o=e.transforms||[];for(let s=0;s{-1===i.indexOf(t)&&i.push(t),s[u]=l,o.pop()};if(Go(r.usesDtcg?l.$value:l.value,e)){f();continue}const h=await Sc(l,e,r,a);if(void 0===h){f();continue}s[u]=h;for(let e=i.length-1;e>=0;e--)i[e]===t&&i.splice(e,1);n.push(t)}else s[u]=l?await Cc(c,e,r,{transformedPropRefs:n,deferredPropValueTransforms:i},o,s[u],a):c;o.pop()}return s}const Fc=Lo.GROUP.MissingRegisterTransformErrors;function Oc(t,e,r){const n={...t};n.log=cs(e.log??{},t.log??{});let i=[];if(n.transformGroup){if(!e.hooks.transformGroups?.[n.transformGroup]){let t=`\nUnknown transformGroup "${n.transformGroup}" found in platform "${r}":\n"${n.transformGroup}" does not match the name of a registered transformGroup.\n`;throw new Error(t)}i=e.hooks.transformGroups[n.transformGroup]}n.transforms&&(i=i.concat(n.transforms)),n.transforms=i.map((function(t){return e.hooks.transforms?.[t]||Lo.add(Fc,`"${t}"`),e.hooks.transforms[t]}));let o=Lo.count(Fc);if(o>0){const t=Lo.flush(Fc).join(", ");let e;throw e=1==o?`\nUnknown transform ${t} found in platform "${r}":\n${t} does not match the name of a registered transform.\n`:`\nUnknown transforms ${t} found in platform "${r}":\nNone of ${t} match the name of a registered transform.\n`,new Error(e)}if(n.options?.fileHeader){const t=n.options.fileHeader;if("string"==typeof t){if(!e.hooks.fileHeaders?.[t])throw new Error(`Can't find fileHeader: ${t}`);n.options.fileHeader=e.hooks.fileHeaders[t]}else{if("function"!=typeof t)throw new Error("fileHeader must be a string or a function");n.options.fileHeader=t}}n.files&&(n.files=n.files.map((function(t){const r={options:{}};if(t.options&&t.options.fileHeader&&r.options){const n=t.options.fileHeader;if("string"==typeof n){if(!e.hooks.fileHeaders?.[n])throw new Error(`Can't find fileHeader: ${n}`);r.options.fileHeader=e.hooks.fileHeaders[n]}else{if("function"!=typeof n)throw new Error("fileHeader must be a string or a function");r.options.fileHeader=n}}if(t.filter)if("string"==typeof t.filter){if(!e.hooks.filters?.[t.filter])throw new Error("Can't find filter: "+t.filter);r.filter=e.hooks.filters[t.filter]}else if("object"==typeof t.filter){const e=function(t,r){return To(r)?Object.keys(r).every((n=>e(t[n],r[n]))):t==r},n=function(t){let r={...t};return t=>e(t,r)};r.filter=n(t.filter)}else{if("function"!=typeof t.filter)throw new Error("Filter format not valid: "+typeof t.filter);r.filter=t.filter}if(!t.format)throw new Error("Please supply a format for file: "+JSON.stringify(t));{const n=t.format;if(!e.hooks.formats[n])throw new Error("Can't find format: "+n);r.format=e.hooks.formats[n]}return Bo([{destination:""},t,r])})));const s=n.actions||[];return n.actions=s.map((function(t){if("function"!=typeof e.hooks.actions?.[t].undo){const e=`${t} action does not have a clean function!`;if("error"===n.log?.warnings)throw new Error(e);"silent"!==n.log?.verbosity&&console.log(er.rgb(255,140,0).bold(e))}return e.hooks.actions?.[t]})),n}async function jc(t,e,r){return Promise.all(t.map((t=>e(t,r)))).then((e=>t.filter(((t,r)=>e[r]))))}async function Tc(t,e,r){return await Object.entries(t??[]).reduce((async(t,[n,i])=>{const o=await t,s=r.usesDtcg?i.$value:i.value;if(To(i)){if(void 0!==s)return 0===(await jc([i],e,r)).length?o:{...o,[n]:i};{const t=await Tc(i,e,r);return Object.entries(t||{}).length<1?o:{...o,[n]:t}}}return o}),{})}const Bc=Lo.GROUP.PropertyValueCollisions,Rc=Lo.GROUP.PropertyReferenceWarnings,Pc=Lo.GROUP.UnknownCSSFontProperties;class Nc extends Dc{static VERSION="4.0.0-prerelease.34";get options(){return cs({hooks:this.hooks},this._options??{})}set options(t){this._options=t}constructor(t={},{init:e=!0,verbosity:r,warnings:n,volume:i}={}){super(),this.config=t,this.options={},this.tokens={},this.allTokens=[],this.usesDtcg=void 0,this.log={warnings:"warn",verbosity:"default"},this.source=[],this.include=[],this.expand=void 0,this.platforms={},this.parsers=[],this.preprocessors=[],i&&(i.__custom_fs__=!0),this.volume=i??Oe,this.unfilteredTokens={},this.unfilteredAllTokens=[],this.hasInitialized=new Promise((t=>{this.hasInitializedResolve=t})),e&&this.init({verbosity:r,warnings:n})}async init(t){return this.extend(void 0,{...t,mutateOriginal:!0})}async extend(e=this.config,r={}){if(!r.mutateOriginal)return new Nc(cs(this.options,e),{init:!1,verbosity:r.verbosity,warnings:r.warnings,volume:r.volume}).init(r);let n,i={},o={},s={};if("string"==typeof e){const r=L(e).replace(/^\./,""),i=jo(e,this.volume.__custom_fs__);if(["json","json5","jsonc"].includes(r))n=t.parse(this.volume.readFileSync(i,"utf-8"));else{let t=i;"object"!=typeof window&&"win32"===process?.platform&&(t=new URL(`file:///${t}`).href),n=(await import(t)).default}}else n=e;this.log={...this.log,...n.log,verbosity:r.verbosity??n.log?.verbosity??this.log.verbosity,warnings:r.warnings??n.log?.warnings??this.log.warnings},this.options={...n,log:this.log},Object.entries(this.options).forEach((([t,e])=>{this[t]=e})),Object.entries(this.tokens).length>0&&void 0===this.usesDtcg&&(this.usesDtcg=Ro(this.tokens));const a=Object.fromEntries(Object.entries(this.hooks.parsers??{}).filter((([t])=>this.parsers.includes(t))));if(i=Bo([{},this.tokens||{}]),this.include){if(!Array.isArray(this.include))throw new Error("include must be an array");const t=await No(this.include,!0,void 0,!1,a,this.usesDtcg,this.volume);o=t.tokens,void 0===this.usesDtcg&&(this.usesDtcg=t.usesDtcg)}if(this.source){if(!Array.isArray(this.source))throw new Error("source must be an array");const t=await No(this.source,!0,(function(t){Lo.add(Bc,`Collision detected at: ${t.path.join(".")}! Original value: ${t.target[t.key]}, New value: ${t.copy[t.key]}`)}),!0,a,this.usesDtcg,this.volume);s=t.tokens,void 0===this.usesDtcg&&(this.usesDtcg=t.usesDtcg);const e=Lo.count(Bc);if(e>0){const t=Lo.flush(Bc).join("\n");let r=`\nToken collisions detected (${e}):\n`;if("verbose"===this.log.verbosity?r+=`\n${t}\n\n`:r+=Io,"error"===this.log?.warnings)throw new Error(r);"silent"!==this.log?.verbosity&&"disabled"!==this.log.warnings&&console.log(er.rgb(255,140,0).bold(r))}}let u=Bo([{},i,o,s]);return this.usesDtcg&&(u=function(t){const e=structuredClone(t),r=(t,e)=>{let n=e;const i=Object.keys(t);!i.includes("$type")&&n&&i.includes("$value")&&(t.$type=n),t.$type&&(n=t.$type),Object.values(t).forEach((t=>{To(t)&&r(t,n)}))};return r(e),e}(u)),this.shouldRunExpansion(this.expand)&&(u=ms(u,this.options)),this.options={...this.options,usesDtcg:this.usesDtcg},this.tokens=await Qo(u,this.preprocessors,this.hooks.preprocessors,this.options),this.hasInitializedResolve(null),this}shouldRunExpansion(t){return!(void 0===t||"boolean"==typeof t&&!1===t||"object"==typeof t&&Object.values(t).every((t=>!1===t)))}async exportPlatform(t){if(await this.hasInitialized,!t||!this.platforms?.[t])throw new Error("Please supply a valid platform");const e=Oc(this.platforms[t],this,t);let r=this.tokens;this.shouldRunExpansion(e.expand)&&(r=ms(r,this.options,e)),r=await Qo(r,e.preprocessors,this.hooks.preprocessors);let n=r;const i=[],o={transformedPropRefs:[],deferredPropValueTransforms:i};let s=0,a=!1;for(;!a;){const t=await Cc(n,e,this.options,o,[],{},this.volume),r=i.map((t=>Uo([t,this.usesDtcg?"$value":"value"])));n=Ko(t,{ignorePaths:r,usesDtcg:this.usesDtcg});const u=i.length;0===u?a=!0:s===u?(Ko(t,{usesDtcg:this.usesDtcg}),a=!0):s=u}const u=Lo.count(Rc);if(u>0){const t=Lo.flush(Rc).join("\n");let e=`\nReference Errors:\nSome token references (${u}) could not be found.\n`;throw"verbose"===this.log.verbosity?e+=`\n${t}\n`:e+=`${Io}\n`,new Error(e)}const c=Lo.count(Pc);if(c>0){const t=Lo.flush(Pc).join("\n");let e=`\nUnknown CSS Font Shorthand properties found for ${c} tokens, CSS output for Font values will be missing some typography token properties as a result:\n`;if("verbose"===this.log.verbosity?e+=`\n${t}\n`:e+=`${Io}\n`,"error"===this.log.warnings)throw new Error(e);"disabled"!==this.log.warnings&&"silent"!==this.log.verbosity&&console.log(er.rgb(255,140,0).bold(e))}return n}async getPlatform(t){if(await this.hasInitialized,!this.platforms?.[t])throw new Error(`Platform "${t}" does not exist`);const e=Oc(this.platforms[t],this,t),r=await this.exportPlatform(t);return this.allTokens=Zo(r,this.usesDtcg),{dictionary:{tokens:r,allTokens:this.allTokens},platformConfig:e}}async formatFile(t,e,r){await this.hasInitialized;const n={warning:[],success:[]},{destination:i}=t||{},o=t.filter;let{format:s}=t||{};if("function"!=typeof s)throw new Error("Please enter a valid file format");if(void 0!==i&&"string"!=typeof i)throw new Error("Please enter a valid destination");const a=s.nested;s=s.bind(t);let u=i;e.buildPath&&(u=e.buildPath+u);const c=await async function(t,e,r={}){if(e){if("function"!=typeof e)throw new Error("filter is not a function");return{allTokens:await jc(t.allTokens??[],e,r),tokens:await Tc(t.tokens,e,r)}}return t}(r,o,this.options),l={...r,tokens:c.tokens,allTokens:c.allTokens,unfilteredTokens:r.tokens,unfilteredAllTokens:Zo(r.tokens,this.usesDtcg)};if(Object.hasOwn(c,"tokens")&&0===Object.keys(c.tokens).length&&c.tokens.constructor===Object){let t=`No tokens for ${i}. File not created.`;if("error"===e.log?.warnings)throw new Error(t);return"silent"!==e.log?.verbosity&&"disabled"!==e.log?.warnings&&n.warning.push(er.rgb(255,140,0)(t)),{logs:n,destination:u,output:void 0}}const f={};c.allTokens&&c.allTokens.forEach((t=>{let e=t.name;f[e]||(f[e]=[]),f[e].push(t)}));const h=Lo.GROUP.PropertyNameCollisionWarnings+":"+i;Lo.clear(h),Object.keys(f).forEach((t=>{if(f[t].length>1){let e=f[t].map((t=>er.rgb(255,69,0)(t.path.join("."))+" "+er.rgb(255,140,0)(this.usesDtcg?t.$value:t.value))).join("\n ");Lo.add(h,`Output name ${er.rgb(255,69,0).bold(t)} was generated by:\n ${e}`)}}));const p=Lo.count(h),d=await s(function({dictionary:t,platform:e,options:r,file:n}){const{allTokens:i,tokens:o}=t,{options:s}=e;return{dictionary:t,allTokens:i,tokens:o,platform:e,file:n=Bo([{},{options:s},n]),options:{...r,...n.options||{},usesDtcg:r?.usesDtcg??!1}}}({dictionary:l,platform:e,options:this.options,file:t})),m=Lo.count(Lo.GROUP.FilteredOutputReferences);if(!a&&0!==p||0!==m||"silent"===e.log?.verbosity){const t=`⚠️ ${u}`;if(p>0){const r=Lo.fetchMessages(h).join("\n "),o=`While building ${er.rgb(255,69,0).bold(i)}, token collisions were found; output may be unexpected. Ignore this warning if intentional.`,s=er.rgb(255,165,0)(["This many-to-one issue is usually caused by some combination of:","* conflicting or similar paths/names in token definitions","* platform transforms/transformGroups affecting names, especially when removing specificity","* overly inclusive file filters"].join("\n ")),a="verbose"===e.log?.verbosity?`${t}\n${o}\n ${r}\n${s}`:`${t}\n${o}\n\n${Io}`;if("error"===e?.log?.warnings)throw new Error(a);"silent"!==e.log?.verbosity&&"disabled"!==e.log?.warnings&&n.warning.push(er.rgb(255,140,0).bold(a))}if(m>0){const r=Lo.flush(Lo.GROUP.FilteredOutputReferences).join("\n "),o=`While building ${er.rgb(255,69,0).bold(i)}, filtered out token references were found; output may be unexpected. Ignore this warning if intentional.`,s=er.rgb(255,165,0)(["This is caused when combining a filter and `outputReferences`."].join("\n ")),a="verbose"===e.log?.verbosity?`${t}\n${o}\nHere are the references that are used but not defined in the file:\n ${r}\n${s}`:`${t}\n${o}\n\n${Io}`;if("error"===e?.log?.warnings)throw new Error(a);"silent"!==e.log?.verbosity&&"disabled"!==e.log?.warnings&&n.warning.push(er.rgb(255,140,0).bold(a))}}else n.success.push(er.bold.green(`✔︎ ${u}`));return{logs:n,output:d,destination:u}}async formatPlatform(t){await this.hasInitialized;const{dictionary:e,platformConfig:r}=await this.getPlatform(t);if(r.buildPath&&"/"!==r.buildPath.slice(-1)&&"\\"!==r.buildPath.slice(-1))throw new Error("Build path must end in a trailing slash or you will get weird file names.");if(!r.files)throw new Error(`Cannot format platform ${t} due to missing "files" property`);const n=await Promise.all(r.files.map((t=>{if(t.format)return this.formatFile(t,r,e);throw new Error("Please supply a format")}))),i=n.map((t=>t.logs));if(i){"silent"!==this.log?.verbosity&&console.log("\n"+t);for(let t of i)t.success.forEach((t=>{console.log(t)})),t.warning.forEach((t=>{console.log(t)}))}return n.map((({output:t,destination:e})=>({output:t,destination:e})))}async formatAllPlatforms(){if(await this.hasInitialized,!this.platforms)throw new Error('Cannot format platforms due to missing property "platforms" on config');return(await Promise.all(Object.keys(this.platforms).map((async t=>({platform:t,outputs:await this.formatPlatform(t)}))))).reduce(((t,e)=>({...t,[e.platform]:e.outputs})),{})}async buildPlatform(t){await this.hasInitialized;const{dictionary:e,platformConfig:r}=await this.getPlatform(t),n=async(t,e)=>{const r=I(t);try{await this.volume.promises.access(r)}catch(t){await this.volume.promises.mkdir(r,{recursive:!0})}return this.volume.promises.writeFile(t,e)},i=await this.formatPlatform(t);return i&&await Promise.all(i.map((({destination:t,output:e})=>{if(e&&t){if("string"!=typeof e){if("silent"!==this.log.verbosity&&"disabled"!==this.log.warnings){const e=`Content type of ${t} is not a string, so no file was created.`;if("error"===this.log.warnings)throw new Error(e);console.log(er.rgb(255,140,0).bold(e))}return}return n(t,e)}}))),await async function(t,e,r,n=Oe){if(e.actions)return Promise.all(e.actions.map((i=>{if("string"!=typeof i&&"function"==typeof i.do)return i.do(t,e,r,n)})))}(e,r,this.options,this.volume),this}async buildAllPlatforms(){return await this.hasInitialized,this.platforms&&await Promise.all(Object.keys(this.platforms).map((t=>this.buildPlatform(t)))),this}async cleanPlatform(t){const{dictionary:e,platformConfig:r}=await this.getPlatform(t),n=await async function(t,e){if(t.buildPath&&"/"!==t.buildPath.slice(-1))throw new Error("Build path must end in a trailing slash or you will get weird file names.");if(t.files)return Promise.all(t.files.map((r=>{if(r.format)return async function(t,e={},r=Oe){const n={warning:[],success:[]};let{destination:i}=t;if("string"!=typeof i)throw new Error("Please enter a valid destination");return e.buildPath&&(i=e.buildPath+i),r.existsSync(i)||"silent"===e?.log?.verbosity?(r.unlinkSync(i),"silent"!==e?.log?.verbosity&&n.success.push(er.bold.red("-")+" "+i),n):(n.success.push(er.bold.red("!")+" "+i+", does not exist"),n)}(r,t,e);throw new Error("Please supply a template or format")})))}(r,this.volume);if(n){"silent"!==this.log?.verbosity&&console.log("\n"+t);for(let t of n){for(let e of t.success)console.log(e);for(let e of t.warning)console.log(e)}}return await async function(t,e,r,n=Oe){if(e.actions)return Promise.all(e.actions.map((i=>{if("string"!=typeof i&&"function"==typeof i.undo)return i.undo(t,e,r,n)})))}(e,r,this.options,this.volume),await async function(t,e){if(t.buildPath&&"/"!==t.buildPath.slice(-1))throw new Error("Build path must end in a trailing slash or you will get weird file names.");if(t.files)return Promise.all(t.files?.map((r=>{if(r.format)return async function(t,e={},r=Oe){let{destination:n}=t;if("string"!=typeof n)throw new Error("Please enter a valid destination");e.buildPath&&(n=e.buildPath+n);let i=I(n);for(;i;){if(r.existsSync(i)){if(0!==r.readdirSync(i,"buffer").length)break;"silent"!==e.log?.verbosity&&console.log(er.bold.red("-")+" "+i),r.rmSync(i,{recursive:!0})}const t=i.split("/");t.pop(),i=t.join("/")}}(r,t,e);throw new Error("Please supply a format")})))}(r,this.volume),this}async cleanAllPlatforms(){return await this.hasInitialized,this.platforms&&await Promise.all(Object.keys(this.platforms).map((t=>this.cleanPlatform(t)))),this}}function $c(t){return void 0===t?t:isNaN(t)||""===t||0===parseFloat(t)?`${t}`:`${t}px`}function Mc(t,e,r){return Math.min(Math.max(t,r),e)}class Ic extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}var Lc=Ic;function zc(t){if("string"!=typeof t)throw new Lc(t);if("transparent"===t.trim().toLowerCase())return[0,0,0,0];let e=t.trim();e=Kc.test(t)?function(t){const e=t.toLowerCase().trim(),r=Wc[function(t){let e=5381,r=t.length;for(;r;)e=33*e^t.charCodeAt(--r);return(e>>>0)%2341}(e)];if(!r)throw new Lc(t);return`#${r}`}(t):t;const r=qc.exec(e);if(r){const t=Array.from(r).slice(1);return[...t.slice(0,3).map((t=>parseInt(Gc(t,2),16))),parseInt(Gc(t[3]||"f",2),16)/255]}const n=Hc.exec(e);if(n){const t=Array.from(n).slice(1);return[...t.slice(0,3).map((t=>parseInt(t,16))),parseInt(t[3]||"ff",16)/255]}const i=Vc.exec(e);if(i){const t=Array.from(i).slice(1);return[...t.slice(0,3).map((t=>parseInt(t,10))),parseFloat(t[3]||"1")]}const o=Yc.exec(e);if(o){const[e,r,n,i]=Array.from(o).slice(1).map(parseFloat);if(Mc(0,100,r)!==r)throw new Lc(t);if(Mc(0,100,n)!==n)throw new Lc(t);return[...Xc(e,r,n),Number.isNaN(i)?1:i]}throw new Lc(t)}const Uc=t=>parseInt(t.replace(/_/g,""),36),Wc="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce(((t,e)=>{const r=Uc(e.substring(0,3)),n=Uc(e.substring(3)).toString(16);let i="";for(let t=0;t<6-n.length;t++)i+="0";return t[r]=`${i}${n}`,t}),{}),Gc=(t,e)=>Array.from(Array(e)).map((()=>t)).join(""),qc=new RegExp(`^#${Gc("([a-f0-9])",3)}([a-f0-9])?$`,"i"),Hc=new RegExp(`^#${Gc("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),Vc=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${Gc(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),Yc=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,Kc=/^[a-z]+$/i,Jc=t=>Math.round(255*t),Xc=(t,e,r)=>{let n=r/100;if(0===e)return[n,n,n].map(Jc);const i=(t%360+360)%360/60,o=(1-Math.abs(2*n-1))*(e/100),s=o*(1-Math.abs(i%2-1));let a=0,u=0,c=0;i>=0&&i<1?(a=o,u=s):i>=1&&i<2?(a=s,u=o):i>=2&&i<3?(u=o,c=s):i>=3&&i<4?(u=s,c=o):i>=4&&i<5?(a=s,c=o):i>=5&&i<6&&(a=o,c=s);const l=n-o/2;return[a+l,u+l,c+l].map(Jc)};function Zc(t){return void 0===t?t:t.replace(/rgba\(\s*(?#.+?)\s*,\s*(?\d*(\.\d*|%)*)\s*\)/g,((t,e,r)=>{try{const[t,n,i]=zc(e);return`rgba(${t}, ${n}, ${i}, ${r})`}catch(r){return console.warn(`Tried parsing "${e}" as a hex value, but failed.`),t}}))}var Qc="INUMBER",tl="IOP1",el="IOP2",rl="IOP3",nl="IVAR",il="IVARNAME",ol="IFUNCALL",sl="IFUNDEF",al="IEXPR",ul="IEXPREVAL",cl="IMEMBER",ll="IENDSTATEMENT",fl="IARRAY";function hl(t,e){this.type=t,this.value=null!=e?e:0}function pl(t){return new hl(tl,t)}function dl(t){return new hl(el,t)}function ml(t){return new hl(rl,t)}function gl(t,e,r,n,i){for(var o,s,a,u,c=[],l=[],f=0;f1)s=c.pop(),o=c.pop(),u=r[h.value],h=new hl(Qc,u(o.value,s.value)),c.push(h);else if(p===rl&&c.length>2)a=c.pop(),s=c.pop(),o=c.pop(),"?"===h.value?c.push(o.value?s.value:a.value):(u=n[h.value],h=new hl(Qc,u(o.value,s.value,a.value)),c.push(h));else if(p===tl&&c.length>0)o=c.pop(),u=e[h.value],h=new hl(Qc,u(o.value)),c.push(h);else if(p===al){for(;c.length>0;)l.push(c.shift());l.push(new hl(al,gl(h.value,e,r,n,i)))}else if(p===cl&&c.length>0)o=c.pop(),c.push(new hl(Qc,o.value[h.value]));else{for(;c.length>0;)l.push(c.shift());l.push(h)}}for(;c.length>0;)l.push(c.shift());return l}function yl(t,e,r){for(var n=[],i=0;i0;)a.unshift(xl(c.pop(),r));if(!(s=c.pop()).apply||!s.call)throw new Error(s+" is not a function");c.push(s.apply(void 0,a))}else if(p===sl)c.push(function(){for(var t=c.pop(),n=[],i=h.value;i-- >0;)n.unshift(c.pop());var o=c.pop(),s=function(){for(var i=Object.assign({},r),o=0,s=n.length;o0;)a.unshift(c.pop());c.push(a)}}if(c.length>1)throw new Error("invalid Expression (parity)");return 0===c[0]?0:xl(c[0],r)}function vl(t,e,r){return wl(t)?t:{type:ul,value:function(r){return bl(t.value,e,r)}}}function wl(t){return t&&t.type===ul}function xl(t,e){return wl(t)?t.value(e):t}function El(t,e){for(var r,n,i,o,s,a,u=[],c=0;c0;)s.unshift(u.pop());o=u.pop(),u.push(o+"("+s.join(", ")+")")}else if(f===sl){for(n=u.pop(),a=l.value,s=[];a-- >0;)s.unshift(u.pop());r=u.pop(),e?u.push("("+r+" = function("+s.join(", ")+") { return "+n+" })"):u.push("("+r+"("+s.join(", ")+") = "+n+")")}else if(f===cl)r=u.pop(),u.push(r+"."+l.value);else if(f===fl){for(a=l.value,s=[];a-- >0;)s.unshift(u.pop());u.push("["+s.join(", ")+"]")}else if(f===al)u.push("("+El(l.value,e)+")");else if(f!==ll)throw new Error("invalid Expression")}return u.length>1&&(u=e?[u.join(",")]:[u.join(";")]),String(u[0])}function Al(t){return"string"==typeof t?JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029"):t}function _l(t,e){for(var r=0;r=this.expression.length?this.newToken(kl,"EOF"):this.isWhitespace()||this.isComment()?this.next():this.isRadixInteger()||this.isNumber()||this.isOperator()||this.isString()||this.isParen()||this.isBracket()||this.isComma()||this.isSemicolon()||this.isNamedOp()||this.isConst()||this.isName()?this.current:void this.parseError('Unknown character "'+this.expression.charAt(this.pos)+'"')},$l.prototype.isString=function(){var t=!1,e=this.pos,r=this.expression.charAt(e);if("'"===r||'"'===r)for(var n=this.expression.indexOf(r,e+1);n>=0&&this.pos"9")))break}if(e>t){var n=this.expression.substring(t,e);if(n in this.consts)return this.current=this.newToken(Fl,this.consts[n]),this.pos+=n.length,!0}return!1},$l.prototype.isNamedOp=function(){for(var t=this.pos,e=t;e"9")))break}if(e>t){var n=this.expression.substring(t,e);if(this.isOperatorEnabled(n)&&(n in this.binaryOps||n in this.unaryOps||n in this.ternaryOps))return this.current=this.newToken(Cl,n),this.pos+=n.length,!0}return!1},$l.prototype.isName=function(){for(var t=this.pos,e=t,r=!1;e"9"))break}else r=!0}if(r){var i=this.expression.substring(t,e);return this.current=this.newToken(Rl,i),this.pos+=i.length,!0}return!1},$l.prototype.isWhitespace=function(){for(var t=!1,e=this.expression.charAt(this.pos);!(" "!==e&&"\t"!==e&&"\n"!==e&&"\r"!==e||(t=!0,this.pos++,this.pos>=this.expression.length));)e=this.expression.charAt(this.pos);return t};var Ml=/^[0-9a-f]{4}$/i;function Il(t,e,r){this.parser=t,this.tokens=e,this.current=null,this.nextToken=null,this.next(),this.savedCurrent=null,this.savedNextToken=null,this.allowMemberAccess=!1!==r.allowMemberAccess}$l.prototype.unescape=function(t){var e=t.indexOf("\\");if(e<0)return t;for(var r=t.substring(0,e);e>=0;){var n=t.charAt(++e);switch(n){case"'":r+="'";break;case'"':r+='"';break;case"\\":r+="\\";break;case"/":r+="/";break;case"b":r+="\b";break;case"f":r+="\f";break;case"n":r+="\n";break;case"r":r+="\r";break;case"t":r+="\t";break;case"u":var i=t.substring(e+1,e+5);Ml.test(i)||this.parseError("Illegal escape sequence: \\u"+i),r+=String.fromCharCode(parseInt(i,16)),e+=4;break;default:throw this.parseError('Illegal escape sequence: "\\'+n+'"')}++e;var o=t.indexOf("\\",e);r+=t.substring(e,o<0?t.length:o),e=o}return r},$l.prototype.isComment=function(){return"/"===this.expression.charAt(this.pos)&&"*"===this.expression.charAt(this.pos+1)&&(this.pos=this.expression.indexOf("*/",this.pos)+2,1===this.pos&&(this.pos=this.expression.length),!0)},$l.prototype.isRadixInteger=function(){var t,e,r=this.pos;if(r>=this.expression.length-2||"0"!==this.expression.charAt(r))return!1;if(++r,"x"===this.expression.charAt(r))t=16,e=/^[0-9a-f]$/i,++r;else{if("b"!==this.expression.charAt(r))return!1;t=2,e=/^[01]$/i,++r}for(var n=!1,i=r;r="0"&&t<="9"||!o&&"."===t);)"."===t?o=!0:s=!0,r++,e=s;if(e&&(i=r),"e"===t||"E"===t){r++;for(var a=!0,u=!1;r="0"&&t<="9"))break;u=!0,a=!1}else a=!1;r++}u||(r=i)}return e?(this.current=this.newToken(Fl,parseFloat(this.expression.substring(n,r))),this.pos=r):this.pos=i,e},$l.prototype.isOperator=function(){var t=this.pos,e=this.expression.charAt(this.pos);if("+"===e||"-"===e||"*"===e||"/"===e||"%"===e||"^"===e||"?"===e||":"===e||"."===e)this.current=this.newToken(Cl,e);else if("∙"===e||"•"===e)this.current=this.newToken(Cl,"*");else if(">"===e)"="===this.expression.charAt(this.pos+1)?(this.current=this.newToken(Cl,">="),this.pos++):this.current=this.newToken(Cl,">");else if("<"===e)"="===this.expression.charAt(this.pos+1)?(this.current=this.newToken(Cl,"<="),this.pos++):this.current=this.newToken(Cl,"<");else if("|"===e){if("|"!==this.expression.charAt(this.pos+1))return!1;this.current=this.newToken(Cl,"||"),this.pos++}else if("="===e)"="===this.expression.charAt(this.pos+1)?(this.current=this.newToken(Cl,"=="),this.pos++):this.current=this.newToken(Cl,e);else{if("!"!==e)return!1;"="===this.expression.charAt(this.pos+1)?(this.current=this.newToken(Cl,"!="),this.pos++):this.current=this.newToken(Cl,e)}return this.pos++,!!this.isOperatorEnabled(this.current.value)||(this.pos=t,!1)},$l.prototype.isOperatorEnabled=function(t){return this.parser.isOperatorEnabled(t)},$l.prototype.getCoordinates=function(){var t,e=0,r=-1;do{e++,t=this.pos-r,r=this.expression.indexOf("\n",r+1)}while(r>=0&&r=",">","in"];Il.prototype.parseComparison=function(t){for(this.parseAddSub(t);this.accept(Cl,Ll);){var e=this.current;this.parseAddSub(t),t.push(dl(e.value))}};var zl=["+","-","||"];Il.prototype.parseAddSub=function(t){for(this.parseTerm(t);this.accept(Cl,zl);){var e=this.current;this.parseTerm(t),t.push(dl(e.value))}};var Ul=["*","/","%"];function Wl(t,e){return Number(t)+Number(e)}function Gl(t,e){return t-e}function ql(t,e){return t*e}function Hl(t,e){return t/e}function Vl(t,e){return t%e}function Yl(t,e){return Array.isArray(t)&&Array.isArray(e)?t.concat(e):""+t+e}function Kl(t,e){return t===e}function Jl(t,e){return t!==e}function Xl(t,e){return t>e}function Zl(t,e){return t=e}function tf(t,e){return t<=e}function ef(t,e){return Boolean(t&&e)}function rf(t,e){return Boolean(t||e)}function nf(t,e){return _l(e,t)}function of(t){return(Math.exp(t)-Math.exp(-t))/2}function sf(t){return(Math.exp(t)+Math.exp(-t))/2}function af(t){return t===1/0?1:t===-1/0?-1:(Math.exp(t)-Math.exp(-t))/(Math.exp(t)+Math.exp(-t))}function uf(t){return t===-1/0?t:Math.log(t+Math.sqrt(t*t+1))}function cf(t){return Math.log(t+Math.sqrt(t*t-1))}function lf(t){return Math.log((1+t)/(1-t))/2}function ff(t){return Math.log(t)*Math.LOG10E}function hf(t){return-t}function pf(t){return!t}function df(t){return t<0?Math.ceil(t):Math.floor(t)}function mf(t){return Math.random()*(t||1)}function gf(t){return vf(t+1)}Il.prototype.parseTerm=function(t){for(this.parseFactor(t);this.accept(Cl,Ul);){var e=this.current;this.parseFactor(t),t.push(dl(e.value))}},Il.prototype.parseFactor=function(t){var e=this.tokens.unaryOps;if(this.save(),this.accept(Cl,(function(t){return t.value in e}))){if("-"!==this.current.value&&"+"!==this.current.value){if(this.nextToken.type===jl&&"("===this.nextToken.value)return this.restore(),void this.parseExponential(t);if(this.nextToken.type===Pl||this.nextToken.type===Bl||this.nextToken.type===kl||this.nextToken.type===jl&&")"===this.nextToken.value)return this.restore(),void this.parseAtom(t)}var r=this.current;this.parseFactor(t),t.push(pl(r.value))}else this.parseExponential(t)},Il.prototype.parseExponential=function(t){for(this.parsePostfixExpression(t);this.accept(Cl,"^");)this.parseFactor(t),t.push(dl("^"))},Il.prototype.parsePostfixExpression=function(t){for(this.parseFunctionCall(t);this.accept(Cl,"!");)t.push(pl("!"))},Il.prototype.parseFunctionCall=function(t){var e=this.tokens.unaryOps;if(this.accept(Cl,(function(t){return t.value in e}))){var r=this.current;this.parseAtom(t),t.push(pl(r.value))}else for(this.parseMemberExpression(t);this.accept(jl,"(");)if(this.accept(jl,")"))t.push(new hl(ol,0));else{var n=this.parseArgumentList(t);t.push(new hl(ol,n))}},Il.prototype.parseArgumentList=function(t){for(var e=0;!this.accept(jl,")");)for(this.parseExpression(t),++e;this.accept(Bl);)this.parseExpression(t),++e;return e},Il.prototype.parseMemberExpression=function(t){for(this.parseAtom(t);this.accept(Cl,".")||this.accept(Tl,"[");){var e=this.current;if("."===e.value){if(!this.allowMemberAccess)throw new Error('unexpected ".", member access is not permitted');this.expect(Rl),t.push(new hl(cl,this.current.value))}else{if("["!==e.value)throw new Error("unexpected symbol: "+e.value);if(!this.tokens.isOperatorEnabled("["))throw new Error('unexpected "[]", arrays are disabled');this.parseExpression(t),this.expect(Tl,"]"),t.push(dl("["))}}};var yf=4.7421875,bf=[.9999999999999971,57.15623566586292,-59.59796035547549,14.136097974741746,-.4919138160976202,3399464998481189e-20,4652362892704858e-20,-9837447530487956e-20,.0001580887032249125,-.00021026444172410488,.00021743961811521265,-.0001643181065367639,8441822398385275e-20,-26190838401581408e-21,36899182659531625e-22];function vf(t){var e,r;if(function(t){return isFinite(t)&&t===Math.round(t)}(t)){if(t<=0)return isFinite(t)?1/0:NaN;if(t>171)return 1/0;for(var n=t-2,i=t-1;n>1;)i*=n,n--;return 0===i&&(i=1),i}if(t<.5)return Math.PI/(Math.sin(Math.PI*t)*vf(1-t));if(t>=171.35)return 1/0;if(t>85){var o=t*t,s=o*t,a=s*t,u=a*t;return Math.sqrt(2*Math.PI/t)*Math.pow(t/Math.E,t)*(1+1/(12*t)+1/(288*o)-139/(51840*s)-571/(2488320*a)+163879/(209018880*u)+5246819/(75246796800*u*t))}--t,r=bf[0];for(var c=1;c0?(n=i/e)*n:i}return e===1/0?1/0:e*Math.sqrt(t)}function Ef(t,e,r){return t?e:r}function Af(t,e){return void 0===e||0==+e?Math.round(t):(t=+t,e=-+e,isNaN(t)||"number"!=typeof e||e%1!=0?NaN:(t=t.toString().split("e"),+((t=(t=Math.round(+(t[0]+"e"+(t[1]?+t[1]-e:-e)))).toString().split("e"))[0]+"e"+(t[1]?+t[1]+e:e))))}function _f(t,e,r){return r&&(r[t]=e),e}function Df(t,e){return t[0|e]}function Sf(t){return 1===arguments.length&&Array.isArray(t)?Math.max.apply(Math,t):Math.max.apply(Math,arguments)}function kf(t){return 1===arguments.length&&Array.isArray(t)?Math.min.apply(Math,t):Math.min.apply(Math,arguments)}function Cf(t,e){if("function"!=typeof t)throw new Error("First argument to map is not a function");if(!Array.isArray(e))throw new Error("Second argument to map is not an array");return e.map((function(e,r){return t(e,r)}))}function Ff(t,e,r){if("function"!=typeof t)throw new Error("First argument to fold is not a function");if(!Array.isArray(r))throw new Error("Second argument to fold is not an array");return r.reduce((function(e,r,n){return t(e,r,n)}),e)}function Of(t,e){if("function"!=typeof t)throw new Error("First argument to filter is not a function");if(!Array.isArray(e))throw new Error("Second argument to filter is not an array");return e.filter((function(e,r){return t(e,r)}))}function jf(t,e){if(!Array.isArray(e)&&"string"!=typeof e)throw new Error("Second argument to indexOf is not a string or array");return e.indexOf(t)}function Tf(t,e){if(!Array.isArray(e))throw new Error("Second argument to join is not an array");return e.join(t)}function Bf(t){return(t>0)-(t<0)||+t}var Rf=1/3;function Pf(t){return t<0?-Math.pow(-t,Rf):Math.pow(t,Rf)}function Nf(t){return Math.exp(t)-1}function $f(t){return Math.log(1+t)}function Mf(t){return Math.log(t)/Math.LN2}function If(t){if(!Array.isArray(t))throw new Error("Sum argument is not an array");return t.reduce((function(t,e){return t+Number(e)}),0)}function Lf(t){this.options=t||{},this.unaryOps={sin:Math.sin,cos:Math.cos,tan:Math.tan,asin:Math.asin,acos:Math.acos,atan:Math.atan,sinh:Math.sinh||of,cosh:Math.cosh||sf,tanh:Math.tanh||af,asinh:Math.asinh||uf,acosh:Math.acosh||cf,atanh:Math.atanh||lf,sqrt:Math.sqrt,cbrt:Math.cbrt||Pf,log:Math.log,log2:Math.log2||Mf,ln:Math.log,lg:Math.log10||ff,log10:Math.log10||ff,expm1:Math.expm1||Nf,log1p:Math.log1p||$f,abs:Math.abs,ceil:Math.ceil,floor:Math.floor,round:Math.round,trunc:Math.trunc||df,"-":hf,"+":Number,exp:Math.exp,not:pf,length:wf,"!":gf,sign:Math.sign||Bf},this.binaryOps={"+":Wl,"-":Gl,"*":ql,"/":Hl,"%":Vl,"^":Math.pow,"||":Yl,"==":Kl,"!=":Jl,">":Xl,"<":Zl,">=":Ql,"<=":tf,and:ef,or:rf,in:nf,"=":_f,"[":Df},this.ternaryOps={"?":Ef},this.functions={random:mf,fac:gf,min:kf,max:Sf,hypot:Math.hypot||xf,pyt:Math.hypot||xf,pow:Math.pow,atan2:Math.atan2,if:Ef,gamma:vf,roundTo:Af,map:Cf,fold:Ff,filter:Of,indexOf:jf,join:Tf,sum:If},this.consts={E:Math.E,PI:Math.PI,true:!0,false:!1}}Lf.prototype.parse=function(t){var e=[],r=new Il(this,new $l(this,t),{allowMemberAccess:this.options.allowMemberAccess});return r.parseExpression(e),r.expect(kl,"EOF"),new Sl(e,this)},Lf.prototype.evaluate=function(t,e){return this.parse(t).evaluate(e)};var zf=new Lf;Lf.parse=function(t){return zf.parse(t)},Lf.evaluate=function(t,e){return zf.parse(t).evaluate(e)};var Uf={"+":"add","-":"subtract","*":"multiply","/":"divide","%":"remainder","^":"power","!":"factorial","<":"comparison",">":"comparison","<=":"comparison",">=":"comparison","==":"comparison","!=":"comparison","||":"concatenate",and:"logical",or:"logical",not:"logical","?":"conditional",":":"conditional","=":"assignment","[":"array","()=":"fndef"};Lf.prototype.isOperatorEnabled=function(t){var e=function(t){return Uf.hasOwnProperty(t)?Uf[t]:t}(t),r=this.options.operators||{};return!(e in r)||!!r[e]};var Wf={},Gf={},qf={};Object.defineProperty(qf,"__esModule",{value:!0});class Hf extends SyntaxError{static fromCode(t,e){return new Hf(Vf[t],t,e)}constructor(t,e,r){super(t),this.code=e,this.index=r}}qf.ParseError=Hf;const Vf={"eof-in-string":"Unclosed string","eof-in-comment":"Unclosed comment","eof-in-bracket":"Unclosed bracket","unexpected-parenthesis":"Unexpected token","unexpected-calc-token":"Unexpected token"};var Yf;Yf=Gf,Object.defineProperty(Yf,"__esModule",{value:!0}),function(t){for(var e in t)Yf.hasOwnProperty(e)||(Yf[e]=t[e])}(qf);var Kf={},Jf={},Xf={},Zf={};function Qf(t,e){const r=t.raws[e];return r?r.raw:`${t[e]}`}function th(t,e){return t.raws[e]||""}function eh(t,e){return`${th(t,"before")}${e}`}function rh(t){return eh(t,`${Qf(t,"value")}${Qf(t,"unit")}`)}Object.defineProperty(Zf,"__esModule",{value:!0}),Zf.Stringifier=class{constructor(t){this.options=Object.assign({autofix:!1},t||{})}stringify(t){return this[t.type](t)}Root(t){let e="";for(const r of t.nodes)e+=this.stringify(r);return e+=th(t,"after"),e}Function(t){let e=`${t.name}(`;for(const r of t.nodes)e+=this.stringify(r);return e+=th(t,"beforeClose"),!this.options.autofix&&t.unclosed||(e+=")"),eh(t,e)}Parentheses(t){let e="(";for(const r of t.nodes)e+=this.stringify(r);return e+=th(t,"beforeClose"),!this.options.autofix&&t.unclosed||(e+=")"),eh(t,e)}MathExpression(t){let e="",r=th(t,"between"),n="",i="";return this.options.autofix&&(r||(r=" "),t.right.raws.before||(n=" "),"MathExpression"===t.left.type&&("+"!==t.left.operator&&"-"!==t.left.operator||"*"!==t.operator&&"/"!==t.operator||(e+="(",r=`)${r}`)),"MathExpression"===t.right.type&&(("+"!==t.operator||"-"!==t.right.operator)&&("-"!==t.operator&&"*"!==t.operator||"+"!==t.right.operator&&"-"!==t.right.operator)&&"/"!==t.operator||(n+="(",i=`)${i}`))),eh(t,`${e}${this.stringify(t.left)}${r}${t.operator}${n}${this.stringify(t.right)}${i}`)}Number(t){return eh(t,Qf(t,"value"))}Punctuator(t){return eh(t,t.value)}Word(t){return eh(t,t.value)}String(t){return eh(t,t.value)}Operator(t){return eh(t,t.value)}Length(t){return rh(t)}Angle(t){return rh(t)}Time(t){return rh(t)}Frequency(t){return rh(t)}Resolution(t){return rh(t)}Percentage(t){return rh(t)}Flex(t){return rh(t)}word(t){return t.value}punctuator(t){return t.value}operator(t){return t.value}whitespace(t){return t.value}comment(t){return t.value}string(t){return t.value}"inline-comment"(t){return t.value}},Object.defineProperty(Xf,"__esModule",{value:!0});const nh=Zf;let ih=null;class oh{constructor(){this.parent=null}toString(t){return"function"==typeof t?t(this):(t||ih||(ih=new nh.Stringifier)).stringify(this)}walk(t,e){const r=this;let n;const i=[...r.nodes||[],r.left,r.right].filter((t=>Boolean(t))),o="string"==typeof t?e=>e.type===t:e=>t.test(e.type);for(const r of i){if(o(r)&&(n=e(r),!1===n))break;if(r.walk&&(n=r.walk(t,e),!1===n))break}return n}}class sh extends oh{push(...t){for(const e of t)"Root"===e.type?this.push(...e.nodes):(e.parent=this,this.nodes.push(e));return this}unshift(...t){for(const e of t.reverse())"Root"===e.type?this.unshift(...e.nodes):(e.parent=this,this.nodes.unshift(e));return this}append(...t){return this.push(...t)}prepend(...t){return this.unshift(...t)}insertBefore(t,e){if("Root"===e.type){const{nodes:r}=e;if(1===r.length)return this.insertBefore(t,r[0]);throw new Error("The given Root node is illegal.")}const r=this.nodes.indexOf(t);if(r<0)throw new Error("The given node could not be found.");return e.parent=this,this.nodes.splice(r,0,e),this}insertAfter(t,e){if("Root"===e.type){const{nodes:r}=e;if(1===r.length)return this.insertAfter(t,r[0]);throw new Error("The given Root node is illegal.")}const r=this.nodes.indexOf(t);if(r<0)throw new Error("The given node could not be found.");return e.parent=this,this.nodes.splice(r+1,0,e),this}removeAll(){for(const t of this.nodes)t.parent=null;return this.nodes=[],this}removeChild(t){const e=this.nodes.indexOf(t);return this.nodes[e].parent=null,this.nodes.splice(e,1),this}get first(){return this.nodes[0]||null}get last(){return this.nodes[this.nodes.length-1]||null}}Xf.NumberValue=class extends oh{constructor(t,e,r){super();const n=parseFloat(t);this.type="Number",this.value=n,this.raws={before:e,value:{raw:t,value:n}},this.source=r}};class ah extends oh{constructor(t,e,r,n,i){super();const o=parseFloat(e);this.type=t,this.value=o,this.unit=r,this.raws={before:n,value:{raw:e,value:o}},this.source=i}}Xf.LengthValue=class extends ah{constructor(t,e,r,n){super("Length",t,e,r,n)}},Xf.AngleValue=class extends ah{constructor(t,e,r,n){super("Angle",t,e,r,n)}},Xf.TimeValue=class extends ah{constructor(t,e,r,n){super("Time",t,e,r,n)}},Xf.FrequencyValue=class extends ah{constructor(t,e,r,n){super("Frequency",t,e,r,n)}},Xf.ResolutionValue=class extends ah{constructor(t,e,r,n){super("Resolution",t,e,r,n)}},Xf.PercentageValue=class extends ah{constructor(t,e,r,n){super("Percentage",t,e,r,n)}},Xf.FlexValue=class extends ah{constructor(t,e,r,n){super("Flex",t,e,r,n)}};class uh extends oh{constructor(t,e,r,n){super(),this.type=t,this.value=e,this.raws={before:r},this.source=n}}function ch(t,e,r){const n=Symbol(`${e}`);Object.defineProperties(t,{[n]:{writable:!0,enumerable:!1},[e]:{get(){return this[n]},set(t){const e=this[n];this[n]=r(t,e)},enumerable:!0}})}Xf.Word=class extends uh{constructor(t,e,r){super("Word",t,e,r)}},Xf.StringNode=class extends uh{constructor(t,e,r){super("String",t,e,r)}},Xf.MathExpression=class extends oh{constructor(t,e,r,n,i){super();const o=e.value,s=e.raws.before;this.type="MathExpression";const a=(t,e)=>{let r;if("Root"===t.type){const{nodes:e}=t;if(1!==e.length)throw new Error("The given Root node is illegal.");r=e[0]}else r=t;return r.parent=this,e&&(e.parent=null),r};ch(this,"left",a),this.left=t,this.operator=o,ch(this,"right",a),this.right=r,this.raws={before:n,between:s},this.source=i}},Xf.FunctionNode=class extends sh{constructor(t,e,r){super(),this.type="Function",this.name=t,this.nodes=[],this.raws={before:e},this.source=r}},Xf.Parentheses=class extends sh{constructor(t,e){super(),this.type="Parentheses",this.nodes=[],this.raws={before:t},this.source=e}},Xf.Punctuator=class extends uh{constructor(t,e,r){super("Punctuator",t,e,r)}},Xf.Root=class extends sh{constructor(t){super(),this.type="Root",this.nodes=[],this.tokens=[],this.errors=[],this.raws={after:""},this.source=t}},Xf.Operator=class extends uh{constructor(t,e,r){super("Operator",t,e,r)}};var lh={},fh="-".charCodeAt(0),hh="+".charCodeAt(0),ph=".".charCodeAt(0),dh="e".charCodeAt(0),mh="E".charCodeAt(0);Object.defineProperty(lh,"__esModule",{value:!0});const gh=Xf,yh=["em","ex","ch","rem","vw","vh","vmin","vmax","px","mm","cm","in","pt","pc","Q","vm"],bh=["deg","grad","turn","rad"],vh=["s","ms"],wh=["Hz","kHz"],xh=["dpi","dpcm","dppm"],Eh=["fr"],Ah=yh.map((t=>t.toLowerCase())),_h=bh.map((t=>t.toLowerCase())),Dh=vh.map((t=>t.toLowerCase())),Sh=wh.map((t=>t.toLowerCase())),kh=xh.map((t=>t.toLowerCase())),Ch=Eh.map((t=>t.toLowerCase()));function Fh(t,e,r,n){const{source:i}=e;return new t(r,n,i)}lh.newPunctuator=function(t,e){if(","===t.value||")"===t.value)return Fh(gh.Punctuator,t,t.value,e);throw new Error(`illegal argument error "${t.value}"`)},lh.newOperator=function(t,e){return Fh(gh.Operator,t,t.value,e)},lh.newString=function(t,e){return Fh(gh.StringNode,t,t.value,e)},lh.newWordNode=function(t,e){return function(t,e){if("word"===t.type){const r=function(t){for(var e,r=0,n=t.length,i=!1,o=-1,s=!1;r=48&&e<=57)s=!0;else if(e===dh||e===mh){if(o>-1)break;o=r}else if(e===ph){if(i)break;i=!0}else{if(e!==hh&&e!==fh)break;if(0!==r)break}r+=1}return o+1===r&&r--,!!s&&{number:t.slice(0,r),unit:t.slice(r)}}(t.value);if(r){const n=function(t,e,r){const{source:n}=e;if(!t.unit)return new gh.NumberValue(t.number,r,n);const i=t.unit.toLowerCase();function o(e,i){const o=new e(t.number,i,r,n);return i!==t.unit&&(o.raws.unit={raw:t.unit,value:i}),o}let s;return(s=Ah.indexOf(i))>=0?o(gh.LengthValue,yh[s]):(s=_h.indexOf(i))>=0?o(gh.AngleValue,bh[s]):(s=Dh.indexOf(i))>=0?o(gh.TimeValue,vh[s]):(s=Sh.indexOf(i))>=0?o(gh.FrequencyValue,wh[s]):(s=kh.indexOf(i))>=0?o(gh.ResolutionValue,xh[s]):(s=Ch.indexOf(i))>=0?o(gh.FlexValue,Eh[s]):"%"===i?o(gh.PercentageValue,"%"):null}(r,t,e);if(n)return n}}return Fh(gh.Word,t,t.value,e)}(t,e)},lh.newFunction=function(t,e,r){return new gh.FunctionNode(t.value,e,{start:t.source.start,end:r.source.end})},lh.newParentheses=function(t,e){return new gh.Parentheses(e,{start:t.source.start,end:t.source.end})},lh.newMathExpression=function(t,e,r){const n="string"==typeof e?Fh(gh.Operator,{source:{start:{index:0},end:{index:0}}},e," "):e,{before:i}=t.raws;return t.raws.before="",new gh.MathExpression(t,n,r,i,{start:t.source.start,operator:n.source,end:r.source.end})};var Oh={};Object.defineProperty(Oh,"__esModule",{value:!0});const jh=/^(-(webkit|mox)-)?calc/iu,Th=/^(-(webkit|mox)-)?min/iu,Bh=/^(-(webkit|mox)-)?max/iu,Rh=/^(-(webkit|mox)-)?clamp/iu;function Ph(t){return jh.test(t)}function Nh(t){return Th.test(t)}function $h(t){return Bh.test(t)}function Mh(t){return Rh.test(t)}Oh.isCalc=Ph,Oh.isMin=Nh,Oh.isMax=$h,Oh.isClamp=Mh,Oh.isMathFunction=function(t){return Ph(t)||Mh(t)||Nh(t)||$h(t)};var Ih={};function Lh(t){return"Punctuator"===t.type&&","===t.value}Object.defineProperty(Ih,"__esModule",{value:!0}),Ih.isComma=Lh,Ih.getFunctionArguments=function(t){const{nodes:e}=t,r=e[0];if(!r||Lh(r))return null;const n=[r],i=e.length;for(let t=1;t0&&(Yh(this.root).end.index=e[e.length-1].source.end.index),this.errors.unshift(...this.tokenizer.errors),this.errors.sort(((t,e)=>t.index-e.index)),this.root}reportParseError(t,e=0){if(this.errors.find((r=>r.code===t&&r.index===e)))return;const r=zh.ParseError.fromCode(t,e);this.errors.push(r)}processExpressions(t){let e;for(;e=this.scan();){const{token:r}=e;switch(r.type){case"word":if(Hh.test(r.value)){const n=this.scan();if(n){if(!n.raws&&"punctuator"===n.token.type&&"("===n.token.value)return this.processFunction(r,e.raws,n.token,t);this.back(n)}}t.container.push(Wh.newWordNode(r,e.raws));break;case"string":t.container.push(Wh.newString(r,e.raws));break;case"operator":this.checkAndMergeMathExpr(t,Vh[r.value]),t.container.push(Wh.newOperator(r,e.raws));break;case"punctuator":return this.checkAndMergeMathExpr(t),this.processPunctuator(r,e.raws,t)}}return this.postStack(t),t.eof(),null}checkAndMergeMathExpr(t,e){const{container:r}=t,{nodes:n}=r;if(n.length>=3){const i=n[n.length-2];if("Operator"===i.type&&Vh[i.value]&&(null==e||e<=Vh[i.value])){const e=this.mergeMathExpr(t);e&&r.push(e)}}}processPunctuator(t,e,r){const{container:n,parent:i}=r;if("("===t.value){const i=Wh.newParentheses(t,e);return n.push(i),this.createNestedStateContainer(i,r.fnName,r)}if(this.postStack(r),")"===t.value){if(i)return r.post(t,e),i;this.reportParseError("unexpected-parenthesis",t.source.start.index)}return n.push(Wh.newPunctuator(t,e)),r}processFunction(t,e,r,n){const i=Wh.newFunction(t,e,r);return n.container.push(i),this.createNestedStateContainer(i,i.name,n)}createNestedStateContainer(t,e,r){return{container:t,parent:r,fnName:e,post(e,r){r&&(t.raws.beforeClose=r),Yh(t).end=e.source.end},eof:()=>{t.unclosed=!0;const e=this.tokens[this.tokens.length-1],n=t.last;n&&(Yh(t).end=Yh(n).end),this.reportParseError("eof-in-bracket",e.source.end.index),r.eof()}}}mergeMathExpr(t){const{container:{nodes:e}}=t,r=e.pop(),n=e.pop(),i=e.pop()||null,o=()=>{i&&e.push(i),e.push(n,r)},s=e=>{Gh.isMathFunction(t.fnName)&&this.reportParseError("unexpected-calc-token",Yh(e).start.index)},a=Kh(r);if(qh.isComma(n))return a||s(r),o(),null;if(!i)return s(Kh(n)?r:n),o(),null;const u=Kh(i);return u?"Operator"!==n.type?(s(n),o(),null):a?Wh.newMathExpression(u,n,a):(s(r),o(),null):(s(Kh(e[e.length-1])?n:i),o(),null)}postStack(t){const{container:e}=t,{nodes:r}=e;for(;r.length>1;){const r=this.mergeMathExpr(t);if(!r)return;e.push(r)}}scan(){const t=this.rescans.shift();if(t)return t;let e="",r=this.tokenizer.nextToken();for(;r;){if(this.tokens.push(r),"whitespace"!==r.type&&"comment"!==r.type&&"inline-comment"!==r.type)return{token:r,raws:e};e+=r.value,r=this.tokenizer.nextToken()}return e&&(this.root.raws.after=e),null}back(t){this.rescans.unshift(t)}};var Jh={},Xh={};!function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.EOF=-1,t.NULL=0,t.TAB=9,t.CR=13,t.LF=10,t.FF=12,t.SPACE=32,t.DQUOTE=34,t.SQUOTE=39,t.LPAREN=40,t.RPAREN=41,t.STAR=42,t.PLUS=43,t.COMMA=44,t.MINUS=45,t.DOT=46,t.SLASH=47,t.LBRACKET=91,t.BACKSLASH=92,t.RBRACKET=93,t.LBRACE=123,t.RBRACE=125,t.isWhitespace=function(e){return e===t.TAB||e===t.LF||e===t.FF||e===t.CR||e===t.SPACE},t.isDigit=function(t){return t>=48&&t<=57},t.isLetter=function(t){return t>=97&&t<=122||t>=65&&t<=90}}(Xh),Object.defineProperty(Jh,"__esModule",{value:!0});const Zh=Gf,Qh=Xh;function tp(t){return t===Qh.LPAREN||t===Qh.RPAREN||t===Qh.COMMA}function ep(t){return Qh.isDigit(t)||t===Qh.DOT}function rp(t){return t===Qh.DQUOTE||t===Qh.SQUOTE}function np(t){return t===Qh.LPAREN?Qh.RPAREN:t===Qh.LBRACE?Qh.RBRACE:Qh.RBRACKET}Jh.Tokenizer=class{constructor(t,e){this.lastCode=Qh.NULL,this.rescan=!1,this.token=null,this.lastTokenType=null,this.errors=[],this.text=t,this.offset=-1,this.state="SCAN",this.nextTokenOffset=0,this.options=Object.assign({allowInlineCommnets:!0},e||{})}nextToken(){for(;null==this.token;){const t=this.scan();if(this.state=this[this.state](t)||"SCAN",t===Qh.EOF&&!this.rescan)break}const{token:t}=this;return this.token=null,t}scan(){return this.rescan?(this.rescan=!1,this.lastCode):this.next()}next(){return this.offset=this.text.length?this.lastCode=Qh.EOF:this.lastCode=this.text.charCodeAt(this.offset)}back(){this.rescan=!0}reportParseError(t){const e=Zh.ParseError.fromCode(t,this.offset);this.errors.push(e)}getCode(t=0){return this.text.charCodeAt(this.nextTokenOffset+t)}commitToken(t,e=0){const r=this.nextTokenOffset,n=this.offset+e+1,i=this.text.slice(r,n);this.token={type:t,value:i,source:{start:{index:r},end:{index:n}}},this.nextTokenOffset=n,this.lastTokenType=t}SCAN(t){return Qh.isWhitespace(t)?"WHITESPACE":t===Qh.DQUOTE?"DQUOTE":t===Qh.SQUOTE?"SQUOTE":t===Qh.SLASH?"SLASH":t===Qh.MINUS?"MINUS":t===Qh.PLUS?"PLUS":t===Qh.STAR?(this.commitToken("operator"),"SCAN"):tp(t)?(this.commitToken("punctuator"),"SCAN"):t===Qh.LBRACKET?"LBRACKET":t===Qh.LBRACE?"LBRACE":t===Qh.EOF?"SCAN":"WORD"}WORD(t){for(;!Qh.isWhitespace(t)&&!tp(t)&&t!==Qh.PLUS&&t!==Qh.STAR&&t!==Qh.SLASH&&!rp(t)&&t!==Qh.EOF;){if(t===Qh.MINUS){const t=this.getCode();if(ep(t)||(t===Qh.MINUS||t===Qh.PLUS)&&ep(this.getCode(1)))return this.commitToken("word",-1),"MINUS"}else t!==Qh.LBRACE&&t!==Qh.LBRACKET&&t!==Qh.LPAREN||this.skipBrakets(this.next(),np(t));t=this.next()}this.commitToken("word",-1),this.back()}LBRACKET(t){return this.skipBrakets(t,Qh.RBRACKET),"WORD"}LBRACE(t){return this.skipBrakets(t,Qh.RBRACE),"WORD"}WHITESPACE(t){for(;Qh.isWhitespace(t);)t=this.next();this.commitToken("whitespace",-1),this.back()}SLASH(t){return t===Qh.STAR?"COMMENT":t===Qh.SLASH&&this.options.allowInlineCommnets?"INLINE_COMMENT":(this.commitToken("operator",-1),void this.back())}COMMENT(t){for(;t!==Qh.EOF;){if(t===Qh.STAR&&(t=this.next())===Qh.SLASH)return void this.commitToken("comment");t=this.next()}this.commitToken("comment",-1),this.reportParseError("eof-in-comment")}INLINE_COMMENT(t){for(;t!==Qh.EOF;){if(t===Qh.LF||t===Qh.FF)return void this.commitToken("inline-comment");if(t===Qh.CR)return(t=this.next())===Qh.LF?void this.commitToken("inline-comment"):(this.commitToken("inline-comment",-1),this.back());t=this.next()}this.commitToken("inline-comment",-1)}MINUS(t){return"word"===this.lastTokenType||t===Qh.EOF||t!==Qh.MINUS&&!ep(t)&&!Qh.isLetter(t)?(this.commitToken("operator",-1),void this.back()):"WORD"}PLUS(t){if("word"!==this.lastTokenType&&ep(t))return"WORD";this.commitToken("operator",-1),this.back()}DQUOTE(t){this.skipString(t,Qh.DQUOTE)}SQUOTE(t){this.skipString(t,Qh.SQUOTE)}skipBrakets(t,e){const r=[];for(;t!==Qh.EOF;){if(e===t){const t=r.pop()||null;if(!t)return;e=t}else t!==Qh.LBRACE&&t!==Qh.LBRACKET&&t!==Qh.LPAREN||(e&&r.push(e),e=np(t));t=this.next()}this.reportParseError("eof-in-bracket")}skipString(t,e){for(;t!==Qh.EOF;){if(t===Qh.BACKSLASH)t=this.next();else if(t===e)return void this.commitToken("string");t=this.next()}this.commitToken("string",-1),this.reportParseError("eof-in-string")}};var ip={};Object.defineProperty(ip,"__esModule",{value:!0});const op=Oh,sp=Ih;function ap(t){const e=up(t.left),r=up(t.right),{operator:n}=t;switch(n){case"+":case"-":return"Unknown"===e||"Unknown"===r?"Unknown":e===r?e:"Number"===e||"Number"===r?"invalid":"Percentage"===e?r:"Percentage"===r?e:"invalid";case"*":return"Unknown"===e||"Unknown"===r?"Unknown":"Number"===e?r:"Number"===r?e:"invalid";case"/":return"Unknown"===r?"Unknown":"Number"===r?e:"invalid"}return"Unknown"}function up(t){if("MathExpression"===t.type){const e=ap(t);return"invalid"===e?"Unknown":e}return"Parentheses"===t.type?1===t.nodes.length?up(t.nodes[0]):"Unknown":"Function"===t.type?op.isCalc(t.name)?1===(e=t).nodes.length?cp(e):"Unknown":op.isMin(t.name)||op.isMax(t.name)?cp(t):op.isClamp(t.name)?function(t){return 5===t.nodes.length?cp(t):"Unknown"}(t):"Unknown":function(t){const{type:e}=t;return"Number"===e||"Length"===e||"Angle"===e||"Time"===e||"Frequency"===e||"Resolution"===e||"Percentage"===e||"Flex"===e?e:"Unknown"}(t);var e}function cp(t){const e=sp.getFunctionArguments(t);if(!e)return"Unknown";const r=e.map(up);let n=null;for(const t of r)if(n&&"Percentage"!==n){if("Percentage"===t);else if(n!==t)return"Unknown"}else n=t;return n||"Unknown"}ip.getResolvedType=ap;var lp={};Object.defineProperty(lp,"__esModule",{value:!0});const fp=Oh,hp=Ih;function pp(t){if("Number"===t.type||"Length"===t.type||"Angle"===t.type||"Time"===t.type||"Frequency"===t.type||"Resolution"===t.type||"Percentage"===t.type||"Flex"===t.type)return t;if("MathExpression"===t.type)return function(t){const e=pp(t.left),r=pp(t.right);if(!e||!r)return null;switch(t.operator){case"+":case"-":return function(t,e,r){if(t.type!==r.type)return null;const n="-"===e?(t,e)=>t-e:(t,e)=>t+e;return"Number"===t.type?{type:"Number",value:n(t.value,r.value)}:t.unit===r.unit?{type:t.type,value:n(t.value,r.value),unit:t.unit}:null}(e,t.operator,r);case"/":return function(t,e){return"Number"!==e.type?null:"Number"===t.type?{type:"Number",value:t.value/e.value}:{type:t.type,value:t.value/e.value,unit:t.unit}}(e,r);case"*":return function(t,e){return"Number"===t.type?"Number"===e.type?{type:"Number",value:t.value*e.value}:{type:e.type,value:t.value*e.value,unit:e.unit}:"Number"===e.type?{type:t.type,value:t.value*e.value,unit:t.unit}:null}(e,r)}return null}(t);if("Parentheses"===t.type||"Root"===t.type){if(1===t.nodes.length)return pp(t.nodes[0])}else if("Function"===t.type&&"Function"===t.type&&fp.isCalc(t.name))return function(t){const e=hp.getFunctionArguments(t);return e&&1===e.length?pp(e[0]):null}(t);return null}lp.reduce=function(t){return pp(t)},Object.defineProperty(Kf,"__esModule",{value:!0});var dp=Jf;Kf.Parser=dp.Parser;var mp=Jh;Kf.Tokenizer=mp.Tokenizer;var gp=Zf;Kf.Stringifier=gp.Stringifier;var yp=ip;Kf.getResolvedType=yp.getResolvedType;var bp=lp;Kf.reduceExpression=bp.reduce;var vp=lh;Kf.newMathExpression=vp.newMathExpression,Object.defineProperty(Wf,"__esModule",{value:!0});const wp=Gf;Wf.AST=wp;const xp=Kf;Wf.Parser=xp.Parser,Wf.Tokenizer=xp.Tokenizer,Wf.Stringifier=xp.Stringifier,Wf.getResolvedType=xp.getResolvedType;var Ep=Wf.reduceExpression=xp.reduceExpression;function Ap(t,e){const r=new xp.Tokenizer(t,e);return new xp.Parser(r,e).parse()}Wf.mathExpr=xp.newMathExpression;var _p=Wf.parse=Ap;function Dp(t,e){return new xp.Stringifier(e).stringify(t)}Wf.stringify=Dp,Wf.default={parse:Ap,stringify:Dp,getResolvedType:xp.getResolvedType,reduceExpression:xp.reduceExpression,mathExpr:xp.newMathExpression,Parser:xp.Parser,Tokenizer:xp.Tokenizer,Stringifier:xp.Stringifier,AST:wp};const Sp=["+","-","*","/"],kp=new Lf;function Cp(t,e){const r=t.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1"),n=new RegExp(`\\(.*?${r}.*?\\)`,"g");return!!e.match(n)||!!t.match(/\(/g)}function Fp(t){if("string"!=typeof t)return t;const e=function(t){const e=t.split(" "),r=[];let n=!1;if(e.forEach(((i,o)=>{const s=o>0?e[o-1]:"",a=e[o+1]??"";[Sp.includes(i),Sp.includes(a)&&Sp.includes(s),""===s&&Sp.includes(a),""===a&&Sp.includes(s),e.length<=1,Boolean(i.match(/\)$/)&&Sp.includes(a)),Cp(i,t)].every((t=>!t))&&(n?n=!1:(r.push(o),Sp.find((t=>i.includes(t)))||(n=!0)))})),r.length>0){r.push(e.length);const t=[];let n=0;return r.forEach((r=>{const i=e.slice(n,r+1).join(" ");i&&t.push(i),n=r+1})),t}return[t]}(t),r=e.map((t=>function(t){let e,r=t;try{e=kp.evaluate(`${r}`),"number"==typeof e&&(r=e)}catch(t){}const n=t.match("px"),i=t.replace(/px/g,""),o=/(\d+\.?\d*)(?([a-zA-Z]|%)+)/g;let s;const a=new Set;for(;null!==(s=o.exec(i));)a.add(s.groups.unit);if(a.size>1)return r;const u=Array.from(a)[0]??(n?"px":""),c=_p(i,{allowInlineCommnets:!1});if(1===c.nodes.length&&"Number"===c.nodes[0].type)return`${r}`;const l=Ep(c);if(l&&(r=l.value),"number"!=typeof r)return r;const f=Number(Number.parseFloat(`${r}`).toFixed(3));return r=u?`${f}${u}`:f,r}(t)));return 1===r.length?r[0]:r.join(" ")}function Op(t){return null==t||""===t}function jp(t){if("object"!=typeof t)return t;let{x:e,y:r,blur:n,spread:i}=t;const{color:o,type:s}=t;return e=$c(Fp(e)),r=$c(Fp(r)),n=$c(Fp(n)),i=$c(Fp(i)),`${"innerShadow"===s?"inset ":""}${Op(e)?0:e} ${Op(r)?0:r} ${Op(n)?0:n}${Op(i)?" ":` ${i} `}${Zc(o)??"rgba(0, 0, 0, 1)"}`.trim()}const Tp={hairline:100,thin:100,extralight:200,ultralight:200,extraleicht:200,light:300,leicht:300,normal:400,regular:400,buch:400,book:400,medium:500,kraeftig:500,kräftig:500,semibold:600,demibold:600,halbfett:600,bold:700,dreiviertelfett:700,extrabold:800,ultrabold:800,fett:800,black:900,heavy:900,super:900,extrafett:900,ultra:950,ultrablack:950,extrablack:950},Bp=["italic","oblique","normal"],Rp=new RegExp(`(?.+?)\\s?(?